configure 828 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.3.3.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/appneta/tcpreplay/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tcpreplay'
  542. PACKAGE_TARNAME='tcpreplay'
  543. PACKAGE_VERSION='4.3.3'
  544. PACKAGE_STRING='tcpreplay 4.3.3'
  545. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  546. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  547. ac_unique_file="src/tcpreplay.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOPTS_DIR
  589. LIBOPTS_CFLAGS
  590. LIBOPTS_LDADD
  591. NEED_LIBOPTS_FALSE
  592. NEED_LIBOPTS_TRUE
  593. INSTALL_LIBOPTS_FALSE
  594. INSTALL_LIBOPTS_TRUE
  595. POSIX_SHELL
  596. GL_GENERATE_STDNORETURN_H_FALSE
  597. GL_GENERATE_STDNORETURN_H_TRUE
  598. STDNORETURN_H
  599. nic2
  600. nic1
  601. ENABLE_OSX_FRAMEWORKS_FALSE
  602. ENABLE_OSX_FRAMEWORKS_TRUE
  603. ENABLE_TCPDUMP_FALSE
  604. ENABLE_TCPDUMP_TRUE
  605. tcpdump_path
  606. LNAV_CFLAGS
  607. LNAVLIB
  608. pcncfg
  609. PCAP_BPF_H_FILE
  610. COMPILE_FRAGROUTE_FALSE
  611. COMPILE_FRAGROUTE_TRUE
  612. LDNETLIB
  613. LDNETINC
  614. COMPILE_NETMAP_FALSE
  615. COMPILE_NETMAP_TRUE
  616. NETMAPFLAGS
  617. NETMAPINCDIR
  618. NETMAPUSERINC
  619. NETMAPINC
  620. COMPILE_TCPLIVEPLAY_FALSE
  621. COMPILE_TCPLIVEPLAY_TRUE
  622. COMPILE_TCPBRIDGE_FALSE
  623. COMPILE_TCPBRIDGE_TRUE
  624. LPCAPLIB
  625. LPCAPINC
  626. PCAP_CONFIG
  627. DMALLOC_LIB
  628. timestamp_trace_flag
  629. extra_debug_flag
  630. debug_run_time_flag
  631. debug_flag
  632. build_asan
  633. WORDS_BIGENDIAN_FALSE
  634. WORDS_BIGENDIAN_TRUE
  635. SYSTEM_STRLCPY_FALSE
  636. SYSTEM_STRLCPY_TRUE
  637. LIBOBJS
  638. rmmod
  639. insmod
  640. depmod
  641. GROFF
  642. AUTOGEN
  643. CUT
  644. ECHO
  645. PRINTF
  646. CXXCPP
  647. am__fastdepCXX_FALSE
  648. am__fastdepCXX_TRUE
  649. CXXDEPMODE
  650. ac_ct_CXX
  651. CXXFLAGS
  652. CXX
  653. CPP
  654. LT_SYS_LIBRARY_PATH
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. RANLIB
  662. DLLTOOL
  663. OBJDUMP
  664. LN_S
  665. NM
  666. ac_ct_DUMPBIN
  667. DUMPBIN
  668. LD
  669. FGREP
  670. EGREP
  671. GREP
  672. SED
  673. am__fastdepCC_FALSE
  674. am__fastdepCC_TRUE
  675. CCDEPMODE
  676. am__nodep
  677. AMDEPBACKSLASH
  678. AMDEP_FALSE
  679. AMDEP_TRUE
  680. am__quote
  681. am__include
  682. DEPDIR
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. ac_ct_AR
  691. AR
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. AM_DEFAULT_V
  695. AM_V
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. LIBTOOL
  720. MACOSX_SDK_PATH
  721. CROSS_LD
  722. CROSS_ARCH
  723. target_os
  724. target_vendor
  725. target_cpu
  726. target
  727. host_os
  728. host_vendor
  729. host_cpu
  730. host
  731. build_os
  732. build_vendor
  733. build_cpu
  734. build
  735. TCPREPLAY_RELEASE
  736. TCPREPLAY_VERSION
  737. MAINT
  738. MAINTAINER_MODE_FALSE
  739. MAINTAINER_MODE_TRUE
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. runstatedir
  760. localstatedir
  761. sharedstatedir
  762. sysconfdir
  763. datadir
  764. datarootdir
  765. libexecdir
  766. sbindir
  767. bindir
  768. program_transform_name
  769. prefix
  770. exec_prefix
  771. PACKAGE_URL
  772. PACKAGE_BUGREPORT
  773. PACKAGE_STRING
  774. PACKAGE_VERSION
  775. PACKAGE_TARNAME
  776. PACKAGE_NAME
  777. PATH_SEPARATOR
  778. SHELL'
  779. ac_subst_files=''
  780. ac_user_opts='
  781. enable_option_checking
  782. enable_maintainer_mode
  783. with_dmalloc
  784. with_macosx_sdk
  785. with_pfring_lib
  786. enable_silent_rules
  787. enable_dependency_tracking
  788. enable_shared
  789. enable_static
  790. with_pic
  791. enable_fast_install
  792. with_aix_soname
  793. with_gnu_ld
  794. with_sysroot
  795. enable_libtool_lock
  796. enable_largefile
  797. enable_asan
  798. enable_debug
  799. enable_extra_debug
  800. enable_timestamp_trace
  801. enable_dmalloc
  802. enable_pedantic
  803. enable_efence
  804. enable_gprof
  805. enable_pcapconfig
  806. enable_64bits
  807. enable_force_bpf
  808. enable_force_pf
  809. enable_force_libdnet
  810. enable_force_inject
  811. enable_force_sendpacket
  812. enable_static_link
  813. enable_dynamic_link
  814. enable_tuntap
  815. with_libpcap
  816. with_netmap
  817. with_libdnet
  818. with_pcapnav_config
  819. with_tcpdump
  820. with_testnic
  821. with_testnic2
  822. enable_nls
  823. enable_local_libopts
  824. enable_libopts_install
  825. with_autoopts_config
  826. with_regex_header
  827. with_libregex
  828. with_libregex_cflags
  829. with_libregex_libs
  830. enable_optional_args
  831. '
  832. ac_precious_vars='build_alias
  833. host_alias
  834. target_alias
  835. CC
  836. CFLAGS
  837. LDFLAGS
  838. LIBS
  839. CPPFLAGS
  840. LT_SYS_LIBRARY_PATH
  841. CPP
  842. CXX
  843. CXXFLAGS
  844. CCC
  845. CXXCPP'
  846. # Initialize some variables set by options.
  847. ac_init_help=
  848. ac_init_version=false
  849. ac_unrecognized_opts=
  850. ac_unrecognized_sep=
  851. # The variables have the same names as the options, with
  852. # dashes changed to underlines.
  853. cache_file=/dev/null
  854. exec_prefix=NONE
  855. no_create=
  856. no_recursion=
  857. prefix=NONE
  858. program_prefix=NONE
  859. program_suffix=NONE
  860. program_transform_name=s,x,x,
  861. silent=
  862. site=
  863. srcdir=
  864. verbose=
  865. x_includes=NONE
  866. x_libraries=NONE
  867. # Installation directory options.
  868. # These are left unexpanded so users can "make install exec_prefix=/foo"
  869. # and all the variables that are supposed to be based on exec_prefix
  870. # by default will actually change.
  871. # Use braces instead of parens because sh, perl, etc. also accept them.
  872. # (The list follows the same order as the GNU Coding Standards.)
  873. bindir='${exec_prefix}/bin'
  874. sbindir='${exec_prefix}/sbin'
  875. libexecdir='${exec_prefix}/libexec'
  876. datarootdir='${prefix}/share'
  877. datadir='${datarootdir}'
  878. sysconfdir='${prefix}/etc'
  879. sharedstatedir='${prefix}/com'
  880. localstatedir='${prefix}/var'
  881. runstatedir='${localstatedir}/run'
  882. includedir='${prefix}/include'
  883. oldincludedir='/usr/include'
  884. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  885. infodir='${datarootdir}/info'
  886. htmldir='${docdir}'
  887. dvidir='${docdir}'
  888. pdfdir='${docdir}'
  889. psdir='${docdir}'
  890. libdir='${exec_prefix}/lib'
  891. localedir='${datarootdir}/locale'
  892. mandir='${datarootdir}/man'
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897. # If the previous option needs an argument, assign it.
  898. if test -n "$ac_prev"; then
  899. eval $ac_prev=\$ac_option
  900. ac_prev=
  901. continue
  902. fi
  903. case $ac_option in
  904. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  905. *=) ac_optarg= ;;
  906. *) ac_optarg=yes ;;
  907. esac
  908. # Accept the important Cygnus configure options, so we can diagnose typos.
  909. case $ac_dashdash$ac_option in
  910. --)
  911. ac_dashdash=yes ;;
  912. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  913. ac_prev=bindir ;;
  914. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  915. bindir=$ac_optarg ;;
  916. -build | --build | --buil | --bui | --bu)
  917. ac_prev=build_alias ;;
  918. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  919. build_alias=$ac_optarg ;;
  920. -cache-file | --cache-file | --cache-fil | --cache-fi \
  921. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  922. ac_prev=cache_file ;;
  923. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  924. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  925. cache_file=$ac_optarg ;;
  926. --config-cache | -C)
  927. cache_file=config.cache ;;
  928. -datadir | --datadir | --datadi | --datad)
  929. ac_prev=datadir ;;
  930. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  931. datadir=$ac_optarg ;;
  932. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  933. | --dataroo | --dataro | --datar)
  934. ac_prev=datarootdir ;;
  935. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  936. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  937. datarootdir=$ac_optarg ;;
  938. -disable-* | --disable-*)
  939. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  940. # Reject names that are not valid shell variable names.
  941. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  942. as_fn_error $? "invalid feature name: $ac_useropt"
  943. ac_useropt_orig=$ac_useropt
  944. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  945. case $ac_user_opts in
  946. *"
  947. "enable_$ac_useropt"
  948. "*) ;;
  949. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  950. ac_unrecognized_sep=', ';;
  951. esac
  952. eval enable_$ac_useropt=no ;;
  953. -docdir | --docdir | --docdi | --doc | --do)
  954. ac_prev=docdir ;;
  955. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  956. docdir=$ac_optarg ;;
  957. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  958. ac_prev=dvidir ;;
  959. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  960. dvidir=$ac_optarg ;;
  961. -enable-* | --enable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid feature name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=\$ac_optarg ;;
  976. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  977. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  978. | --exec | --exe | --ex)
  979. ac_prev=exec_prefix ;;
  980. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  981. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  982. | --exec=* | --exe=* | --ex=*)
  983. exec_prefix=$ac_optarg ;;
  984. -gas | --gas | --ga | --g)
  985. # Obsolete; use --with-gas.
  986. with_gas=yes ;;
  987. -help | --help | --hel | --he | -h)
  988. ac_init_help=long ;;
  989. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  990. ac_init_help=recursive ;;
  991. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  992. ac_init_help=short ;;
  993. -host | --host | --hos | --ho)
  994. ac_prev=host_alias ;;
  995. -host=* | --host=* | --hos=* | --ho=*)
  996. host_alias=$ac_optarg ;;
  997. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  998. ac_prev=htmldir ;;
  999. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1000. | --ht=*)
  1001. htmldir=$ac_optarg ;;
  1002. -includedir | --includedir | --includedi | --included | --include \
  1003. | --includ | --inclu | --incl | --inc)
  1004. ac_prev=includedir ;;
  1005. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1006. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1007. includedir=$ac_optarg ;;
  1008. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1009. ac_prev=infodir ;;
  1010. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1011. infodir=$ac_optarg ;;
  1012. -libdir | --libdir | --libdi | --libd)
  1013. ac_prev=libdir ;;
  1014. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1015. libdir=$ac_optarg ;;
  1016. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1017. | --libexe | --libex | --libe)
  1018. ac_prev=libexecdir ;;
  1019. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1020. | --libexe=* | --libex=* | --libe=*)
  1021. libexecdir=$ac_optarg ;;
  1022. -localedir | --localedir | --localedi | --localed | --locale)
  1023. ac_prev=localedir ;;
  1024. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1025. localedir=$ac_optarg ;;
  1026. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1027. | --localstate | --localstat | --localsta | --localst | --locals)
  1028. ac_prev=localstatedir ;;
  1029. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1030. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1031. localstatedir=$ac_optarg ;;
  1032. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1033. ac_prev=mandir ;;
  1034. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1035. mandir=$ac_optarg ;;
  1036. -nfp | --nfp | --nf)
  1037. # Obsolete; use --without-fp.
  1038. with_fp=no ;;
  1039. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1040. | --no-cr | --no-c | -n)
  1041. no_create=yes ;;
  1042. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1043. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1044. no_recursion=yes ;;
  1045. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1046. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1047. | --oldin | --oldi | --old | --ol | --o)
  1048. ac_prev=oldincludedir ;;
  1049. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1050. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1051. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1052. oldincludedir=$ac_optarg ;;
  1053. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1054. ac_prev=prefix ;;
  1055. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1056. prefix=$ac_optarg ;;
  1057. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1058. | --program-pre | --program-pr | --program-p)
  1059. ac_prev=program_prefix ;;
  1060. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1061. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1062. program_prefix=$ac_optarg ;;
  1063. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1064. | --program-suf | --program-su | --program-s)
  1065. ac_prev=program_suffix ;;
  1066. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1067. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1068. program_suffix=$ac_optarg ;;
  1069. -program-transform-name | --program-transform-name \
  1070. | --program-transform-nam | --program-transform-na \
  1071. | --program-transform-n | --program-transform- \
  1072. | --program-transform | --program-transfor \
  1073. | --program-transfo | --program-transf \
  1074. | --program-trans | --program-tran \
  1075. | --progr-tra | --program-tr | --program-t)
  1076. ac_prev=program_transform_name ;;
  1077. -program-transform-name=* | --program-transform-name=* \
  1078. | --program-transform-nam=* | --program-transform-na=* \
  1079. | --program-transform-n=* | --program-transform-=* \
  1080. | --program-transform=* | --program-transfor=* \
  1081. | --program-transfo=* | --program-transf=* \
  1082. | --program-trans=* | --program-tran=* \
  1083. | --progr-tra=* | --program-tr=* | --program-t=*)
  1084. program_transform_name=$ac_optarg ;;
  1085. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1086. ac_prev=pdfdir ;;
  1087. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1088. pdfdir=$ac_optarg ;;
  1089. -psdir | --psdir | --psdi | --psd | --ps)
  1090. ac_prev=psdir ;;
  1091. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1092. psdir=$ac_optarg ;;
  1093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1094. | -silent | --silent | --silen | --sile | --sil)
  1095. silent=yes ;;
  1096. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1097. | --runstate | --runstat | --runsta | --runst | --runs \
  1098. | --run | --ru | --r)
  1099. ac_prev=runstatedir ;;
  1100. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1101. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1102. | --run=* | --ru=* | --r=*)
  1103. runstatedir=$ac_optarg ;;
  1104. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1105. ac_prev=sbindir ;;
  1106. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1107. | --sbi=* | --sb=*)
  1108. sbindir=$ac_optarg ;;
  1109. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1110. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1111. | --sharedst | --shareds | --shared | --share | --shar \
  1112. | --sha | --sh)
  1113. ac_prev=sharedstatedir ;;
  1114. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1115. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1116. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1117. | --sha=* | --sh=*)
  1118. sharedstatedir=$ac_optarg ;;
  1119. -site | --site | --sit)
  1120. ac_prev=site ;;
  1121. -site=* | --site=* | --sit=*)
  1122. site=$ac_optarg ;;
  1123. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1124. ac_prev=srcdir ;;
  1125. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1126. srcdir=$ac_optarg ;;
  1127. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1128. | --syscon | --sysco | --sysc | --sys | --sy)
  1129. ac_prev=sysconfdir ;;
  1130. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1131. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1132. sysconfdir=$ac_optarg ;;
  1133. -target | --target | --targe | --targ | --tar | --ta | --t)
  1134. ac_prev=target_alias ;;
  1135. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1136. target_alias=$ac_optarg ;;
  1137. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138. verbose=yes ;;
  1139. -version | --version | --versio | --versi | --vers | -V)
  1140. ac_init_version=: ;;
  1141. -with-* | --with-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=\$ac_optarg ;;
  1156. -without-* | --without-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error $? "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=no ;;
  1171. --x)
  1172. # Obsolete; use --with-x.
  1173. with_x=yes ;;
  1174. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1175. | --x-incl | --x-inc | --x-in | --x-i)
  1176. ac_prev=x_includes ;;
  1177. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1178. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1179. x_includes=$ac_optarg ;;
  1180. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1181. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1182. ac_prev=x_libraries ;;
  1183. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1184. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1185. x_libraries=$ac_optarg ;;
  1186. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1187. Try \`$0 --help' for more information"
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. case $ac_envvar in #(
  1193. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1194. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1195. esac
  1196. eval $ac_envvar=\$ac_optarg
  1197. export $ac_envvar ;;
  1198. *)
  1199. # FIXME: should be removed in autoconf 3.0.
  1200. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1201. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1203. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1204. ;;
  1205. esac
  1206. done
  1207. if test -n "$ac_prev"; then
  1208. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1209. as_fn_error $? "missing argument to $ac_option"
  1210. fi
  1211. if test -n "$ac_unrecognized_opts"; then
  1212. case $enable_option_checking in
  1213. no) ;;
  1214. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1215. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1216. esac
  1217. fi
  1218. # Check all directory arguments for consistency.
  1219. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. libdir localedir mandir runstatedir
  1223. do
  1224. eval ac_val=\$$ac_var
  1225. # Remove trailing slashes.
  1226. case $ac_val in
  1227. */ )
  1228. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1229. eval $ac_var=\$ac_val;;
  1230. esac
  1231. # Be sure to have absolute directory names.
  1232. case $ac_val in
  1233. [\\/$]* | ?:[\\/]* ) continue;;
  1234. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1235. esac
  1236. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1237. done
  1238. # There might be people who depend on the old broken behavior: `$host'
  1239. # used to hold the argument of --host etc.
  1240. # FIXME: To remove some day.
  1241. build=$build_alias
  1242. host=$host_alias
  1243. target=$target_alias
  1244. # FIXME: To remove some day.
  1245. if test "x$host_alias" != x; then
  1246. if test "x$build_alias" = x; then
  1247. cross_compiling=maybe
  1248. elif test "x$build_alias" != "x$host_alias"; then
  1249. cross_compiling=yes
  1250. fi
  1251. fi
  1252. ac_tool_prefix=
  1253. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1254. test "$silent" = yes && exec 6>/dev/null
  1255. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1256. ac_ls_di=`ls -di .` &&
  1257. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1258. as_fn_error $? "working directory cannot be determined"
  1259. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1260. as_fn_error $? "pwd does not report name of working directory"
  1261. # Find the source files, if location was not specified.
  1262. if test -z "$srcdir"; then
  1263. ac_srcdir_defaulted=yes
  1264. # Try the directory containing this script, then the parent directory.
  1265. ac_confdir=`$as_dirname -- "$as_myself" ||
  1266. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1267. X"$as_myself" : 'X\(//\)[^/]' \| \
  1268. X"$as_myself" : 'X\(//\)$' \| \
  1269. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1270. $as_echo X"$as_myself" |
  1271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)[^/].*/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\/\)$/{
  1280. s//\1/
  1281. q
  1282. }
  1283. /^X\(\/\).*/{
  1284. s//\1/
  1285. q
  1286. }
  1287. s/.*/./; q'`
  1288. srcdir=$ac_confdir
  1289. if test ! -r "$srcdir/$ac_unique_file"; then
  1290. srcdir=..
  1291. fi
  1292. else
  1293. ac_srcdir_defaulted=no
  1294. fi
  1295. if test ! -r "$srcdir/$ac_unique_file"; then
  1296. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1297. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1298. fi
  1299. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1300. ac_abs_confdir=`(
  1301. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1302. pwd)`
  1303. # When building in place, set srcdir=.
  1304. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1305. srcdir=.
  1306. fi
  1307. # Remove unnecessary trailing slashes from srcdir.
  1308. # Double slashes in file names in object file debugging info
  1309. # mess up M-x gdb in Emacs.
  1310. case $srcdir in
  1311. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1312. esac
  1313. for ac_var in $ac_precious_vars; do
  1314. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_env_${ac_var}_value=\$${ac_var}
  1316. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1318. done
  1319. #
  1320. # Report the --help message.
  1321. #
  1322. if test "$ac_init_help" = "long"; then
  1323. # Omit some internal or obsolete options to make the list less imposing.
  1324. # This message is too long to be a string in the A/UX 3.1 sh.
  1325. cat <<_ACEOF
  1326. \`configure' configures tcpreplay 4.3.3 to adapt to many kinds of systems.
  1327. Usage: $0 [OPTION]... [VAR=VALUE]...
  1328. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1329. VAR=VALUE. See below for descriptions of some of the useful variables.
  1330. Defaults for the options are specified in brackets.
  1331. Configuration:
  1332. -h, --help display this help and exit
  1333. --help=short display options specific to this package
  1334. --help=recursive display the short help of all the included packages
  1335. -V, --version display version information and exit
  1336. -q, --quiet, --silent do not print \`checking ...' messages
  1337. --cache-file=FILE cache test results in FILE [disabled]
  1338. -C, --config-cache alias for \`--cache-file=config.cache'
  1339. -n, --no-create do not create output files
  1340. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1341. Installation directories:
  1342. --prefix=PREFIX install architecture-independent files in PREFIX
  1343. [$ac_default_prefix]
  1344. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1345. [PREFIX]
  1346. By default, \`make install' will install all the files in
  1347. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1348. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1349. for instance \`--prefix=\$HOME'.
  1350. For better control, use the options below.
  1351. Fine tuning of the installation directories:
  1352. --bindir=DIR user executables [EPREFIX/bin]
  1353. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1354. --libexecdir=DIR program executables [EPREFIX/libexec]
  1355. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1356. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1357. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1358. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1359. --libdir=DIR object code libraries [EPREFIX/lib]
  1360. --includedir=DIR C header files [PREFIX/include]
  1361. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1362. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1363. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1364. --infodir=DIR info documentation [DATAROOTDIR/info]
  1365. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1366. --mandir=DIR man documentation [DATAROOTDIR/man]
  1367. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1368. --htmldir=DIR html documentation [DOCDIR]
  1369. --dvidir=DIR dvi documentation [DOCDIR]
  1370. --pdfdir=DIR pdf documentation [DOCDIR]
  1371. --psdir=DIR ps documentation [DOCDIR]
  1372. _ACEOF
  1373. cat <<\_ACEOF
  1374. Program names:
  1375. --program-prefix=PREFIX prepend PREFIX to installed program names
  1376. --program-suffix=SUFFIX append SUFFIX to installed program names
  1377. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1378. System types:
  1379. --build=BUILD configure for building on BUILD [guessed]
  1380. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1381. --target=TARGET configure for building compilers for TARGET [HOST]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. case $ac_init_help in
  1386. short | recursive ) echo "Configuration of tcpreplay 4.3.3:";;
  1387. esac
  1388. cat <<\_ACEOF
  1389. Optional Features:
  1390. --disable-option-checking ignore unrecognized --enable/--with options
  1391. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1392. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1393. --disable-maintainer-mode
  1394. disable make rules and dependencies not useful (and
  1395. sometimes confusing) to the casual installer
  1396. --enable-silent-rules less verbose build output (undo: "make V=1")
  1397. --disable-silent-rules verbose build output (undo: "make V=0")
  1398. --enable-dependency-tracking
  1399. do not reject slow dependency extractors
  1400. --disable-dependency-tracking
  1401. speeds up one-time build
  1402. --enable-shared[=PKGS] build shared libraries [default=yes]
  1403. --enable-static[=PKGS] build static libraries [default=yes]
  1404. --enable-fast-install[=PKGS]
  1405. optimize for fast installation [default=yes]
  1406. --disable-libtool-lock avoid locking (might break parallel builds)
  1407. --disable-largefile omit support for large files
  1408. --enable-asan Enable Address Sanitizer support
  1409. --enable-debug Enable debugging code and support for the -d option
  1410. --enable-extra-debug Enable additional debugging code (may affect
  1411. performance)
  1412. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1413. test
  1414. --enable-dmalloc Enable linking to dmalloc for better memory
  1415. debugging
  1416. --enable-pedantic Enable gcc's -pedantic option
  1417. --enable-efence Enable Electric Fence memory debugger
  1418. --enable-gprof Enable GNU Profiler
  1419. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1420. scanning
  1421. --disable-64bits Do not use 64bit packet counters
  1422. --enable-force-bpf Force using BPF for sending packets
  1423. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1424. --enable-force-libdnet Force using libdnet for sending packets
  1425. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1426. packets
  1427. --enable-force-sendpacket
  1428. Force using libpcap's pcap_sendpacket() for sending
  1429. packets
  1430. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1431. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1432. default yes
  1433. --disable-tuntap Disable tuntap support
  1434. --disable-nls disable nls support in libopts
  1435. --enable-local-libopts Use the supplied libopts tearoff code
  1436. --enable-libopts-install
  1437. Install libopts with client installation
  1438. --disable-optional-args not wanting optional option args
  1439. Optional Packages:
  1440. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1441. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1442. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1443. --with-macosx-sdk Use a specific SDK for building.
  1444. Usage: --with-macosx-sdk=<version>
  1445. e. g.: --with-macosx-sdk=10.8
  1446. --with-pfring-lib Use a specific PF_RING static library when using
  1447. PF_RING libpcap.
  1448. Usage: --with-pfring-lib=<library>
  1449. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1450. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1451. both]
  1452. --with-aix-soname=aix|svr4|both
  1453. shared library versioning (aka "SONAME") variant to
  1454. provide on AIX, [default=aix].
  1455. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1456. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1457. compiler's sysroot if not specified).
  1458. --with-libpcap=DIR Use libpcap in DIR
  1459. --with-netmap=DIR Use netmap in DIR
  1460. --with-libdnet=DIR Use libdnet in DIR
  1461. --with-pcapnav-config=FILE
  1462. Use given pcapnav-config
  1463. --with-tcpdump=FILE Path to tcpdump binary
  1464. --with-testnic=NIC Select which network card to use for testing
  1465. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1466. testing
  1467. --with-autoopts-config specify the config-info script
  1468. --with-regex-header a reg expr header is specified
  1469. --with-libregex libregex installation prefix
  1470. --with-libregex-cflags libregex compile flags
  1471. --with-libregex-libs libregex link command arguments
  1472. Some influential environment variables:
  1473. CC C compiler command
  1474. CFLAGS C compiler flags
  1475. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1476. nonstandard directory <lib dir>
  1477. LIBS libraries to pass to the linker, e.g. -l<library>
  1478. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1479. you have headers in a nonstandard directory <include dir>
  1480. LT_SYS_LIBRARY_PATH
  1481. User-defined run-time library search path.
  1482. CPP C preprocessor
  1483. CXX C++ compiler command
  1484. CXXFLAGS C++ compiler flags
  1485. CXXCPP C++ preprocessor
  1486. Use these variables to override the choices made by `configure' or to help
  1487. it to find libraries and programs with nonstandard names/locations.
  1488. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1489. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1490. _ACEOF
  1491. ac_status=$?
  1492. fi
  1493. if test "$ac_init_help" = "recursive"; then
  1494. # If there are subdirs, report their specific --help.
  1495. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1496. test -d "$ac_dir" ||
  1497. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1498. continue
  1499. ac_builddir=.
  1500. case "$ac_dir" in
  1501. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1502. *)
  1503. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1504. # A ".." for each directory in $ac_dir_suffix.
  1505. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1506. case $ac_top_builddir_sub in
  1507. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1508. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1509. esac ;;
  1510. esac
  1511. ac_abs_top_builddir=$ac_pwd
  1512. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1513. # for backward compatibility:
  1514. ac_top_builddir=$ac_top_build_prefix
  1515. case $srcdir in
  1516. .) # We are building in place.
  1517. ac_srcdir=.
  1518. ac_top_srcdir=$ac_top_builddir_sub
  1519. ac_abs_top_srcdir=$ac_pwd ;;
  1520. [\\/]* | ?:[\\/]* ) # Absolute name.
  1521. ac_srcdir=$srcdir$ac_dir_suffix;
  1522. ac_top_srcdir=$srcdir
  1523. ac_abs_top_srcdir=$srcdir ;;
  1524. *) # Relative name.
  1525. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1526. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1527. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1528. esac
  1529. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1530. cd "$ac_dir" || { ac_status=$?; continue; }
  1531. # Check for guested configure.
  1532. if test -f "$ac_srcdir/configure.gnu"; then
  1533. echo &&
  1534. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1535. elif test -f "$ac_srcdir/configure"; then
  1536. echo &&
  1537. $SHELL "$ac_srcdir/configure" --help=recursive
  1538. else
  1539. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1540. fi || ac_status=$?
  1541. cd "$ac_pwd" || { ac_status=$?; break; }
  1542. done
  1543. fi
  1544. test -n "$ac_init_help" && exit $ac_status
  1545. if $ac_init_version; then
  1546. cat <<\_ACEOF
  1547. tcpreplay configure 4.3.3
  1548. generated by GNU Autoconf 2.69
  1549. Copyright (C) 2012 Free Software Foundation, Inc.
  1550. This configure script is free software; the Free Software Foundation
  1551. gives unlimited permission to copy, distribute and modify it.
  1552. _ACEOF
  1553. exit
  1554. fi
  1555. ## ------------------------ ##
  1556. ## Autoconf initialization. ##
  1557. ## ------------------------ ##
  1558. # ac_fn_c_try_compile LINENO
  1559. # --------------------------
  1560. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1561. ac_fn_c_try_compile ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. rm -f conftest.$ac_objext
  1565. if { { ac_try="$ac_compile"
  1566. case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_compile") 2>conftest.err
  1573. ac_status=$?
  1574. if test -s conftest.err; then
  1575. grep -v '^ *+' conftest.err >conftest.er1
  1576. cat conftest.er1 >&5
  1577. mv -f conftest.er1 conftest.err
  1578. fi
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; } && {
  1581. test -z "$ac_c_werror_flag" ||
  1582. test ! -s conftest.err
  1583. } && test -s conftest.$ac_objext; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: failed program was:" >&5
  1587. sed 's/^/| /' conftest.$ac_ext >&5
  1588. ac_retval=1
  1589. fi
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_compile
  1593. # ac_fn_c_try_link LINENO
  1594. # -----------------------
  1595. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_c_try_link ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. rm -f conftest.$ac_objext conftest$ac_exeext
  1600. if { { ac_try="$ac_link"
  1601. case "(($ac_try" in
  1602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1603. *) ac_try_echo=$ac_try;;
  1604. esac
  1605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1606. $as_echo "$ac_try_echo"; } >&5
  1607. (eval "$ac_link") 2>conftest.err
  1608. ac_status=$?
  1609. if test -s conftest.err; then
  1610. grep -v '^ *+' conftest.err >conftest.er1
  1611. cat conftest.er1 >&5
  1612. mv -f conftest.er1 conftest.err
  1613. fi
  1614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615. test $ac_status = 0; } && {
  1616. test -z "$ac_c_werror_flag" ||
  1617. test ! -s conftest.err
  1618. } && test -s conftest$ac_exeext && {
  1619. test "$cross_compiling" = yes ||
  1620. test -x conftest$ac_exeext
  1621. }; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: failed program was:" >&5
  1625. sed 's/^/| /' conftest.$ac_ext >&5
  1626. ac_retval=1
  1627. fi
  1628. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1629. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1630. # interfere with the next link command; also delete a directory that is
  1631. # left behind by Apple's compiler. We do this before executing the actions.
  1632. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. as_fn_set_status $ac_retval
  1635. } # ac_fn_c_try_link
  1636. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1637. # -------------------------------------------------------
  1638. # Tests whether HEADER exists and can be compiled using the include files in
  1639. # INCLUDES, setting the cache variable VAR accordingly.
  1640. ac_fn_c_check_header_compile ()
  1641. {
  1642. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1644. $as_echo_n "checking for $2... " >&6; }
  1645. if eval \${$3+:} false; then :
  1646. $as_echo_n "(cached) " >&6
  1647. else
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. $4
  1651. #include <$2>
  1652. _ACEOF
  1653. if ac_fn_c_try_compile "$LINENO"; then :
  1654. eval "$3=yes"
  1655. else
  1656. eval "$3=no"
  1657. fi
  1658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1659. fi
  1660. eval ac_res=\$$3
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1662. $as_echo "$ac_res" >&6; }
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. } # ac_fn_c_check_header_compile
  1665. # ac_fn_c_try_cpp LINENO
  1666. # ----------------------
  1667. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1668. ac_fn_c_try_cpp ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1672. case "(($ac_try" in
  1673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1674. *) ac_try_echo=$ac_try;;
  1675. esac
  1676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1677. $as_echo "$ac_try_echo"; } >&5
  1678. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1679. ac_status=$?
  1680. if test -s conftest.err; then
  1681. grep -v '^ *+' conftest.err >conftest.er1
  1682. cat conftest.er1 >&5
  1683. mv -f conftest.er1 conftest.err
  1684. fi
  1685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686. test $ac_status = 0; } > conftest.i && {
  1687. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1688. test ! -s conftest.err
  1689. }; then :
  1690. ac_retval=0
  1691. else
  1692. $as_echo "$as_me: failed program was:" >&5
  1693. sed 's/^/| /' conftest.$ac_ext >&5
  1694. ac_retval=1
  1695. fi
  1696. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1697. as_fn_set_status $ac_retval
  1698. } # ac_fn_c_try_cpp
  1699. # ac_fn_c_try_run LINENO
  1700. # ----------------------
  1701. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1702. # that executables *can* be run.
  1703. ac_fn_c_try_run ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. if { { ac_try="$ac_link"
  1707. case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. $as_echo "$ac_try_echo"; } >&5
  1713. (eval "$ac_link") 2>&5
  1714. ac_status=$?
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1717. { { case "(($ac_try" in
  1718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719. *) ac_try_echo=$ac_try;;
  1720. esac
  1721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722. $as_echo "$ac_try_echo"; } >&5
  1723. (eval "$ac_try") 2>&5
  1724. ac_status=$?
  1725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1726. test $ac_status = 0; }; }; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: program exited with status $ac_status" >&5
  1730. $as_echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. ac_retval=$ac_status
  1733. fi
  1734. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. as_fn_set_status $ac_retval
  1737. } # ac_fn_c_try_run
  1738. # ac_fn_c_check_func LINENO FUNC VAR
  1739. # ----------------------------------
  1740. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1741. ac_fn_c_check_func ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1745. $as_echo_n "checking for $2... " >&6; }
  1746. if eval \${$3+:} false; then :
  1747. $as_echo_n "(cached) " >&6
  1748. else
  1749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1750. /* end confdefs.h. */
  1751. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1752. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1753. #define $2 innocuous_$2
  1754. /* System header to define __stub macros and hopefully few prototypes,
  1755. which can conflict with char $2 (); below.
  1756. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1757. <limits.h> exists even on freestanding compilers. */
  1758. #ifdef __STDC__
  1759. # include <limits.h>
  1760. #else
  1761. # include <assert.h>
  1762. #endif
  1763. #undef $2
  1764. /* Override any GCC internal prototype to avoid an error.
  1765. Use char because int might match the return type of a GCC
  1766. builtin and then its argument prototype would still apply. */
  1767. #ifdef __cplusplus
  1768. extern "C"
  1769. #endif
  1770. char $2 ();
  1771. /* The GNU C library defines this for functions which it implements
  1772. to always fail with ENOSYS. Some functions are actually named
  1773. something starting with __ and the normal name is an alias. */
  1774. #if defined __stub_$2 || defined __stub___$2
  1775. choke me
  1776. #endif
  1777. int
  1778. main ()
  1779. {
  1780. return $2 ();
  1781. ;
  1782. return 0;
  1783. }
  1784. _ACEOF
  1785. if ac_fn_c_try_link "$LINENO"; then :
  1786. eval "$3=yes"
  1787. else
  1788. eval "$3=no"
  1789. fi
  1790. rm -f core conftest.err conftest.$ac_objext \
  1791. conftest$ac_exeext conftest.$ac_ext
  1792. fi
  1793. eval ac_res=\$$3
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1795. $as_echo "$ac_res" >&6; }
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. } # ac_fn_c_check_func
  1798. # ac_fn_cxx_try_compile LINENO
  1799. # ----------------------------
  1800. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_cxx_try_compile ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext
  1805. if { { ac_try="$ac_compile"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_compile") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_cxx_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest.$ac_objext; then :
  1824. ac_retval=0
  1825. else
  1826. $as_echo "$as_me: failed program was:" >&5
  1827. sed 's/^/| /' conftest.$ac_ext >&5
  1828. ac_retval=1
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_cxx_try_compile
  1833. # ac_fn_cxx_try_cpp LINENO
  1834. # ------------------------
  1835. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1836. ac_fn_cxx_try_cpp ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1840. case "(($ac_try" in
  1841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1842. *) ac_try_echo=$ac_try;;
  1843. esac
  1844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1845. $as_echo "$ac_try_echo"; } >&5
  1846. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1847. ac_status=$?
  1848. if test -s conftest.err; then
  1849. grep -v '^ *+' conftest.err >conftest.er1
  1850. cat conftest.er1 >&5
  1851. mv -f conftest.er1 conftest.err
  1852. fi
  1853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1854. test $ac_status = 0; } > conftest.i && {
  1855. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1856. test ! -s conftest.err
  1857. }; then :
  1858. ac_retval=0
  1859. else
  1860. $as_echo "$as_me: failed program was:" >&5
  1861. sed 's/^/| /' conftest.$ac_ext >&5
  1862. ac_retval=1
  1863. fi
  1864. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1865. as_fn_set_status $ac_retval
  1866. } # ac_fn_cxx_try_cpp
  1867. # ac_fn_cxx_try_link LINENO
  1868. # -------------------------
  1869. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1870. ac_fn_cxx_try_link ()
  1871. {
  1872. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1873. rm -f conftest.$ac_objext conftest$ac_exeext
  1874. if { { ac_try="$ac_link"
  1875. case "(($ac_try" in
  1876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1877. *) ac_try_echo=$ac_try;;
  1878. esac
  1879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1880. $as_echo "$ac_try_echo"; } >&5
  1881. (eval "$ac_link") 2>conftest.err
  1882. ac_status=$?
  1883. if test -s conftest.err; then
  1884. grep -v '^ *+' conftest.err >conftest.er1
  1885. cat conftest.er1 >&5
  1886. mv -f conftest.er1 conftest.err
  1887. fi
  1888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1889. test $ac_status = 0; } && {
  1890. test -z "$ac_cxx_werror_flag" ||
  1891. test ! -s conftest.err
  1892. } && test -s conftest$ac_exeext && {
  1893. test "$cross_compiling" = yes ||
  1894. test -x conftest$ac_exeext
  1895. }; then :
  1896. ac_retval=0
  1897. else
  1898. $as_echo "$as_me: failed program was:" >&5
  1899. sed 's/^/| /' conftest.$ac_ext >&5
  1900. ac_retval=1
  1901. fi
  1902. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1903. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1904. # interfere with the next link command; also delete a directory that is
  1905. # left behind by Apple's compiler. We do this before executing the actions.
  1906. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1907. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1908. as_fn_set_status $ac_retval
  1909. } # ac_fn_cxx_try_link
  1910. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1911. # -------------------------------------------------------
  1912. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1913. # the include files in INCLUDES and setting the cache variable VAR
  1914. # accordingly.
  1915. ac_fn_c_check_header_mongrel ()
  1916. {
  1917. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1918. if eval \${$3+:} false; then :
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1920. $as_echo_n "checking for $2... " >&6; }
  1921. if eval \${$3+:} false; then :
  1922. $as_echo_n "(cached) " >&6
  1923. fi
  1924. eval ac_res=\$$3
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1926. $as_echo "$ac_res" >&6; }
  1927. else
  1928. # Is the header compilable?
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1930. $as_echo_n "checking $2 usability... " >&6; }
  1931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1932. /* end confdefs.h. */
  1933. $4
  1934. #include <$2>
  1935. _ACEOF
  1936. if ac_fn_c_try_compile "$LINENO"; then :
  1937. ac_header_compiler=yes
  1938. else
  1939. ac_header_compiler=no
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1943. $as_echo "$ac_header_compiler" >&6; }
  1944. # Is the header present?
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1946. $as_echo_n "checking $2 presence... " >&6; }
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. #include <$2>
  1950. _ACEOF
  1951. if ac_fn_c_try_cpp "$LINENO"; then :
  1952. ac_header_preproc=yes
  1953. else
  1954. ac_header_preproc=no
  1955. fi
  1956. rm -f conftest.err conftest.i conftest.$ac_ext
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1958. $as_echo "$ac_header_preproc" >&6; }
  1959. # So? What about this header?
  1960. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1961. yes:no: )
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1963. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1965. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1966. ;;
  1967. no:yes:* )
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1969. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1971. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1973. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1975. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1977. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1978. ( $as_echo "## ---------------------------------------------------------- ##
  1979. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1980. ## ---------------------------------------------------------- ##"
  1981. ) | sed "s/^/$as_me: WARNING: /" >&2
  1982. ;;
  1983. esac
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1985. $as_echo_n "checking for $2... " >&6; }
  1986. if eval \${$3+:} false; then :
  1987. $as_echo_n "(cached) " >&6
  1988. else
  1989. eval "$3=\$ac_header_compiler"
  1990. fi
  1991. eval ac_res=\$$3
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1993. $as_echo "$ac_res" >&6; }
  1994. fi
  1995. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1996. } # ac_fn_c_check_header_mongrel
  1997. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1998. # -------------------------------------------
  1999. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2000. # variable VAR accordingly.
  2001. ac_fn_c_check_type ()
  2002. {
  2003. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2005. $as_echo_n "checking for $2... " >&6; }
  2006. if eval \${$3+:} false; then :
  2007. $as_echo_n "(cached) " >&6
  2008. else
  2009. eval "$3=no"
  2010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2011. /* end confdefs.h. */
  2012. $4
  2013. int
  2014. main ()
  2015. {
  2016. if (sizeof ($2))
  2017. return 0;
  2018. ;
  2019. return 0;
  2020. }
  2021. _ACEOF
  2022. if ac_fn_c_try_compile "$LINENO"; then :
  2023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2024. /* end confdefs.h. */
  2025. $4
  2026. int
  2027. main ()
  2028. {
  2029. if (sizeof (($2)))
  2030. return 0;
  2031. ;
  2032. return 0;
  2033. }
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. else
  2037. eval "$3=yes"
  2038. fi
  2039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2040. fi
  2041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2042. fi
  2043. eval ac_res=\$$3
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2045. $as_echo "$ac_res" >&6; }
  2046. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2047. } # ac_fn_c_check_type
  2048. # ac_fn_c_find_intX_t LINENO BITS VAR
  2049. # -----------------------------------
  2050. # Finds a signed integer type with width BITS, setting cache variable VAR
  2051. # accordingly.
  2052. ac_fn_c_find_intX_t ()
  2053. {
  2054. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2056. $as_echo_n "checking for int$2_t... " >&6; }
  2057. if eval \${$3+:} false; then :
  2058. $as_echo_n "(cached) " >&6
  2059. else
  2060. eval "$3=no"
  2061. # Order is important - never check a type that is potentially smaller
  2062. # than half of the expected target width.
  2063. for ac_type in int$2_t 'int' 'long int' \
  2064. 'long long int' 'short int' 'signed char'; do
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $ac_includes_default
  2068. enum { N = $2 / 2 - 1 };
  2069. int
  2070. main ()
  2071. {
  2072. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2073. test_array [0] = 0;
  2074. return test_array [0];
  2075. ;
  2076. return 0;
  2077. }
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. $ac_includes_default
  2083. enum { N = $2 / 2 - 1 };
  2084. int
  2085. main ()
  2086. {
  2087. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2088. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2089. test_array [0] = 0;
  2090. return test_array [0];
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. else
  2097. case $ac_type in #(
  2098. int$2_t) :
  2099. eval "$3=yes" ;; #(
  2100. *) :
  2101. eval "$3=\$ac_type" ;;
  2102. esac
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. if eval test \"x\$"$3"\" = x"no"; then :
  2108. else
  2109. break
  2110. fi
  2111. done
  2112. fi
  2113. eval ac_res=\$$3
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2115. $as_echo "$ac_res" >&6; }
  2116. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2117. } # ac_fn_c_find_intX_t
  2118. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2119. # ------------------------------------
  2120. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2121. # accordingly.
  2122. ac_fn_c_find_uintX_t ()
  2123. {
  2124. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2126. $as_echo_n "checking for uint$2_t... " >&6; }
  2127. if eval \${$3+:} false; then :
  2128. $as_echo_n "(cached) " >&6
  2129. else
  2130. eval "$3=no"
  2131. # Order is important - never check a type that is potentially smaller
  2132. # than half of the expected target width.
  2133. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2134. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2136. /* end confdefs.h. */
  2137. $ac_includes_default
  2138. int
  2139. main ()
  2140. {
  2141. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2142. test_array [0] = 0;
  2143. return test_array [0];
  2144. ;
  2145. return 0;
  2146. }
  2147. _ACEOF
  2148. if ac_fn_c_try_compile "$LINENO"; then :
  2149. case $ac_type in #(
  2150. uint$2_t) :
  2151. eval "$3=yes" ;; #(
  2152. *) :
  2153. eval "$3=\$ac_type" ;;
  2154. esac
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. if eval test \"x\$"$3"\" = x"no"; then :
  2158. else
  2159. break
  2160. fi
  2161. done
  2162. fi
  2163. eval ac_res=\$$3
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2165. $as_echo "$ac_res" >&6; }
  2166. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2167. } # ac_fn_c_find_uintX_t
  2168. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2169. # ----------------------------------------------------
  2170. # Tries to find if the field MEMBER exists in type AGGR, after including
  2171. # INCLUDES, setting cache variable VAR accordingly.
  2172. ac_fn_c_check_member ()
  2173. {
  2174. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2176. $as_echo_n "checking for $2.$3... " >&6; }
  2177. if eval \${$4+:} false; then :
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2181. /* end confdefs.h. */
  2182. $5
  2183. int
  2184. main ()
  2185. {
  2186. static $2 ac_aggr;
  2187. if (ac_aggr.$3)
  2188. return 0;
  2189. ;
  2190. return 0;
  2191. }
  2192. _ACEOF
  2193. if ac_fn_c_try_compile "$LINENO"; then :
  2194. eval "$4=yes"
  2195. else
  2196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2197. /* end confdefs.h. */
  2198. $5
  2199. int
  2200. main ()
  2201. {
  2202. static $2 ac_aggr;
  2203. if (sizeof ac_aggr.$3)
  2204. return 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. eval "$4=yes"
  2211. else
  2212. eval "$4=no"
  2213. fi
  2214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2217. fi
  2218. eval ac_res=\$$4
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2220. $as_echo "$ac_res" >&6; }
  2221. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2222. } # ac_fn_c_check_member
  2223. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2224. # ---------------------------------------------
  2225. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2226. # accordingly.
  2227. ac_fn_c_check_decl ()
  2228. {
  2229. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2230. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2231. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2233. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2234. if eval \${$3+:} false; then :
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. $4
  2240. int
  2241. main ()
  2242. {
  2243. #ifndef $as_decl_name
  2244. #ifdef __cplusplus
  2245. (void) $as_decl_use;
  2246. #else
  2247. (void) $as_decl_name;
  2248. #endif
  2249. #endif
  2250. ;
  2251. return 0;
  2252. }
  2253. _ACEOF
  2254. if ac_fn_c_try_compile "$LINENO"; then :
  2255. eval "$3=yes"
  2256. else
  2257. eval "$3=no"
  2258. fi
  2259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2260. fi
  2261. eval ac_res=\$$3
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2263. $as_echo "$ac_res" >&6; }
  2264. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2265. } # ac_fn_c_check_decl
  2266. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2267. # --------------------------------------------
  2268. # Tries to find the compile-time value of EXPR in a program that includes
  2269. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2270. # computed
  2271. ac_fn_c_compute_int ()
  2272. {
  2273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2274. if test "$cross_compiling" = yes; then
  2275. # Depending upon the size, compute the lo and hi bounds.
  2276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2277. /* end confdefs.h. */
  2278. $4
  2279. int
  2280. main ()
  2281. {
  2282. static int test_array [1 - 2 * !(($2) >= 0)];
  2283. test_array [0] = 0;
  2284. return test_array [0];
  2285. ;
  2286. return 0;
  2287. }
  2288. _ACEOF
  2289. if ac_fn_c_try_compile "$LINENO"; then :
  2290. ac_lo=0 ac_mid=0
  2291. while :; do
  2292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2293. /* end confdefs.h. */
  2294. $4
  2295. int
  2296. main ()
  2297. {
  2298. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2299. test_array [0] = 0;
  2300. return test_array [0];
  2301. ;
  2302. return 0;
  2303. }
  2304. _ACEOF
  2305. if ac_fn_c_try_compile "$LINENO"; then :
  2306. ac_hi=$ac_mid; break
  2307. else
  2308. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2309. if test $ac_lo -le $ac_mid; then
  2310. ac_lo= ac_hi=
  2311. break
  2312. fi
  2313. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2314. fi
  2315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2316. done
  2317. else
  2318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2319. /* end confdefs.h. */
  2320. $4
  2321. int
  2322. main ()
  2323. {
  2324. static int test_array [1 - 2 * !(($2) < 0)];
  2325. test_array [0] = 0;
  2326. return test_array [0];
  2327. ;
  2328. return 0;
  2329. }
  2330. _ACEOF
  2331. if ac_fn_c_try_compile "$LINENO"; then :
  2332. ac_hi=-1 ac_mid=-1
  2333. while :; do
  2334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2335. /* end confdefs.h. */
  2336. $4
  2337. int
  2338. main ()
  2339. {
  2340. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2341. test_array [0] = 0;
  2342. return test_array [0];
  2343. ;
  2344. return 0;
  2345. }
  2346. _ACEOF
  2347. if ac_fn_c_try_compile "$LINENO"; then :
  2348. ac_lo=$ac_mid; break
  2349. else
  2350. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2351. if test $ac_mid -le $ac_hi; then
  2352. ac_lo= ac_hi=
  2353. break
  2354. fi
  2355. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2356. fi
  2357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2358. done
  2359. else
  2360. ac_lo= ac_hi=
  2361. fi
  2362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2363. fi
  2364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2365. # Binary search between lo and hi bounds.
  2366. while test "x$ac_lo" != "x$ac_hi"; do
  2367. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2369. /* end confdefs.h. */
  2370. $4
  2371. int
  2372. main ()
  2373. {
  2374. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2375. test_array [0] = 0;
  2376. return test_array [0];
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. if ac_fn_c_try_compile "$LINENO"; then :
  2382. ac_hi=$ac_mid
  2383. else
  2384. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2385. fi
  2386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2387. done
  2388. case $ac_lo in #((
  2389. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2390. '') ac_retval=1 ;;
  2391. esac
  2392. else
  2393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2394. /* end confdefs.h. */
  2395. $4
  2396. static long int longval () { return $2; }
  2397. static unsigned long int ulongval () { return $2; }
  2398. #include <stdio.h>
  2399. #include <stdlib.h>
  2400. int
  2401. main ()
  2402. {
  2403. FILE *f = fopen ("conftest.val", "w");
  2404. if (! f)
  2405. return 1;
  2406. if (($2) < 0)
  2407. {
  2408. long int i = longval ();
  2409. if (i != ($2))
  2410. return 1;
  2411. fprintf (f, "%ld", i);
  2412. }
  2413. else
  2414. {
  2415. unsigned long int i = ulongval ();
  2416. if (i != ($2))
  2417. return 1;
  2418. fprintf (f, "%lu", i);
  2419. }
  2420. /* Do not output a trailing newline, as this causes \r\n confusion
  2421. on some platforms. */
  2422. return ferror (f) || fclose (f) != 0;
  2423. ;
  2424. return 0;
  2425. }
  2426. _ACEOF
  2427. if ac_fn_c_try_run "$LINENO"; then :
  2428. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2429. else
  2430. ac_retval=1
  2431. fi
  2432. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2433. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2434. rm -f conftest.val
  2435. fi
  2436. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2437. as_fn_set_status $ac_retval
  2438. } # ac_fn_c_compute_int
  2439. cat >config.log <<_ACEOF
  2440. This file contains any messages produced by compilers while
  2441. running configure, to aid debugging if configure makes a mistake.
  2442. It was created by tcpreplay $as_me 4.3.3, which was
  2443. generated by GNU Autoconf 2.69. Invocation command line was
  2444. $ $0 $@
  2445. _ACEOF
  2446. exec 5>>config.log
  2447. {
  2448. cat <<_ASUNAME
  2449. ## --------- ##
  2450. ## Platform. ##
  2451. ## --------- ##
  2452. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2453. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2454. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2455. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2456. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2457. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2458. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2459. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2460. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2461. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2462. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2463. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2464. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2465. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2466. _ASUNAME
  2467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2468. for as_dir in $PATH
  2469. do
  2470. IFS=$as_save_IFS
  2471. test -z "$as_dir" && as_dir=.
  2472. $as_echo "PATH: $as_dir"
  2473. done
  2474. IFS=$as_save_IFS
  2475. } >&5
  2476. cat >&5 <<_ACEOF
  2477. ## ----------- ##
  2478. ## Core tests. ##
  2479. ## ----------- ##
  2480. _ACEOF
  2481. # Keep a trace of the command line.
  2482. # Strip out --no-create and --no-recursion so they do not pile up.
  2483. # Strip out --silent because we don't want to record it for future runs.
  2484. # Also quote any args containing shell meta-characters.
  2485. # Make two passes to allow for proper duplicate-argument suppression.
  2486. ac_configure_args=
  2487. ac_configure_args0=
  2488. ac_configure_args1=
  2489. ac_must_keep_next=false
  2490. for ac_pass in 1 2
  2491. do
  2492. for ac_arg
  2493. do
  2494. case $ac_arg in
  2495. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2496. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2497. | -silent | --silent | --silen | --sile | --sil)
  2498. continue ;;
  2499. *\'*)
  2500. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2501. esac
  2502. case $ac_pass in
  2503. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2504. 2)
  2505. as_fn_append ac_configure_args1 " '$ac_arg'"
  2506. if test $ac_must_keep_next = true; then
  2507. ac_must_keep_next=false # Got value, back to normal.
  2508. else
  2509. case $ac_arg in
  2510. *=* | --config-cache | -C | -disable-* | --disable-* \
  2511. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2512. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2513. | -with-* | --with-* | -without-* | --without-* | --x)
  2514. case "$ac_configure_args0 " in
  2515. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2516. esac
  2517. ;;
  2518. -* ) ac_must_keep_next=true ;;
  2519. esac
  2520. fi
  2521. as_fn_append ac_configure_args " '$ac_arg'"
  2522. ;;
  2523. esac
  2524. done
  2525. done
  2526. { ac_configure_args0=; unset ac_configure_args0;}
  2527. { ac_configure_args1=; unset ac_configure_args1;}
  2528. # When interrupted or exit'd, cleanup temporary files, and complete
  2529. # config.log. We remove comments because anyway the quotes in there
  2530. # would cause problems or look ugly.
  2531. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2532. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2533. trap 'exit_status=$?
  2534. # Save into config.log some information that might help in debugging.
  2535. {
  2536. echo
  2537. $as_echo "## ---------------- ##
  2538. ## Cache variables. ##
  2539. ## ---------------- ##"
  2540. echo
  2541. # The following way of writing the cache mishandles newlines in values,
  2542. (
  2543. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2544. eval ac_val=\$$ac_var
  2545. case $ac_val in #(
  2546. *${as_nl}*)
  2547. case $ac_var in #(
  2548. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2549. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2550. esac
  2551. case $ac_var in #(
  2552. _ | IFS | as_nl) ;; #(
  2553. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2554. *) { eval $ac_var=; unset $ac_var;} ;;
  2555. esac ;;
  2556. esac
  2557. done
  2558. (set) 2>&1 |
  2559. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2560. *${as_nl}ac_space=\ *)
  2561. sed -n \
  2562. "s/'\''/'\''\\\\'\'''\''/g;
  2563. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2564. ;; #(
  2565. *)
  2566. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2567. ;;
  2568. esac |
  2569. sort
  2570. )
  2571. echo
  2572. $as_echo "## ----------------- ##
  2573. ## Output variables. ##
  2574. ## ----------------- ##"
  2575. echo
  2576. for ac_var in $ac_subst_vars
  2577. do
  2578. eval ac_val=\$$ac_var
  2579. case $ac_val in
  2580. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2581. esac
  2582. $as_echo "$ac_var='\''$ac_val'\''"
  2583. done | sort
  2584. echo
  2585. if test -n "$ac_subst_files"; then
  2586. $as_echo "## ------------------- ##
  2587. ## File substitutions. ##
  2588. ## ------------------- ##"
  2589. echo
  2590. for ac_var in $ac_subst_files
  2591. do
  2592. eval ac_val=\$$ac_var
  2593. case $ac_val in
  2594. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2595. esac
  2596. $as_echo "$ac_var='\''$ac_val'\''"
  2597. done | sort
  2598. echo
  2599. fi
  2600. if test -s confdefs.h; then
  2601. $as_echo "## ----------- ##
  2602. ## confdefs.h. ##
  2603. ## ----------- ##"
  2604. echo
  2605. cat confdefs.h
  2606. echo
  2607. fi
  2608. test "$ac_signal" != 0 &&
  2609. $as_echo "$as_me: caught signal $ac_signal"
  2610. $as_echo "$as_me: exit $exit_status"
  2611. } >&5
  2612. rm -f core *.core core.conftest.* &&
  2613. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2614. exit $exit_status
  2615. ' 0
  2616. for ac_signal in 1 2 13 15; do
  2617. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2618. done
  2619. ac_signal=0
  2620. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2621. rm -f -r conftest* confdefs.h
  2622. $as_echo "/* confdefs.h */" > confdefs.h
  2623. # Predefined preprocessor variables.
  2624. cat >>confdefs.h <<_ACEOF
  2625. #define PACKAGE_NAME "$PACKAGE_NAME"
  2626. _ACEOF
  2627. cat >>confdefs.h <<_ACEOF
  2628. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2629. _ACEOF
  2630. cat >>confdefs.h <<_ACEOF
  2631. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2632. _ACEOF
  2633. cat >>confdefs.h <<_ACEOF
  2634. #define PACKAGE_STRING "$PACKAGE_STRING"
  2635. _ACEOF
  2636. cat >>confdefs.h <<_ACEOF
  2637. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2638. _ACEOF
  2639. cat >>confdefs.h <<_ACEOF
  2640. #define PACKAGE_URL "$PACKAGE_URL"
  2641. _ACEOF
  2642. # Let the site file select an alternate cache file if it wants to.
  2643. # Prefer an explicitly selected file to automatically selected ones.
  2644. ac_site_file1=NONE
  2645. ac_site_file2=NONE
  2646. if test -n "$CONFIG_SITE"; then
  2647. # We do not want a PATH search for config.site.
  2648. case $CONFIG_SITE in #((
  2649. -*) ac_site_file1=./$CONFIG_SITE;;
  2650. */*) ac_site_file1=$CONFIG_SITE;;
  2651. *) ac_site_file1=./$CONFIG_SITE;;
  2652. esac
  2653. elif test "x$prefix" != xNONE; then
  2654. ac_site_file1=$prefix/share/config.site
  2655. ac_site_file2=$prefix/etc/config.site
  2656. else
  2657. ac_site_file1=$ac_default_prefix/share/config.site
  2658. ac_site_file2=$ac_default_prefix/etc/config.site
  2659. fi
  2660. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2661. do
  2662. test "x$ac_site_file" = xNONE && continue
  2663. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2665. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2666. sed 's/^/| /' "$ac_site_file" >&5
  2667. . "$ac_site_file" \
  2668. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2669. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2670. as_fn_error $? "failed to load site script $ac_site_file
  2671. See \`config.log' for more details" "$LINENO" 5; }
  2672. fi
  2673. done
  2674. if test -r "$cache_file"; then
  2675. # Some versions of bash will fail to source /dev/null (special files
  2676. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2677. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2679. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2680. case $cache_file in
  2681. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2682. *) . "./$cache_file";;
  2683. esac
  2684. fi
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2687. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2688. >$cache_file
  2689. fi
  2690. as_fn_append ac_header_list " sys/time.h"
  2691. as_fn_append ac_header_list " unistd.h"
  2692. as_fn_append ac_func_list " alarm"
  2693. as_fn_append ac_header_list " stdlib.h"
  2694. as_fn_append ac_header_list " sys/param.h"
  2695. # Check that the precious variables saved in the cache have kept the same
  2696. # value.
  2697. ac_cache_corrupted=false
  2698. for ac_var in $ac_precious_vars; do
  2699. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2700. eval ac_new_set=\$ac_env_${ac_var}_set
  2701. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2702. eval ac_new_val=\$ac_env_${ac_var}_value
  2703. case $ac_old_set,$ac_new_set in
  2704. set,)
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2706. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2707. ac_cache_corrupted=: ;;
  2708. ,set)
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2710. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2711. ac_cache_corrupted=: ;;
  2712. ,);;
  2713. *)
  2714. if test "x$ac_old_val" != "x$ac_new_val"; then
  2715. # differences in whitespace do not lead to failure.
  2716. ac_old_val_w=`echo x $ac_old_val`
  2717. ac_new_val_w=`echo x $ac_new_val`
  2718. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2720. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2721. ac_cache_corrupted=:
  2722. else
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2724. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2725. eval $ac_var=\$ac_old_val
  2726. fi
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2728. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2730. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2731. fi;;
  2732. esac
  2733. # Pass precious variables to config.status.
  2734. if test "$ac_new_set" = set; then
  2735. case $ac_new_val in
  2736. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2737. *) ac_arg=$ac_var=$ac_new_val ;;
  2738. esac
  2739. case " $ac_configure_args " in
  2740. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2741. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2742. esac
  2743. fi
  2744. done
  2745. if $ac_cache_corrupted; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2747. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2749. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2750. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2751. fi
  2752. ## -------------------- ##
  2753. ## Main body of script. ##
  2754. ## -------------------- ##
  2755. ac_ext=c
  2756. ac_cpp='$CPP $CPPFLAGS'
  2757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2760. ac_config_headers="$ac_config_headers src/config.h"
  2761. ac_aux_dir=
  2762. for ac_dir in config "$srcdir"/config; do
  2763. if test -f "$ac_dir/install-sh"; then
  2764. ac_aux_dir=$ac_dir
  2765. ac_install_sh="$ac_aux_dir/install-sh -c"
  2766. break
  2767. elif test -f "$ac_dir/install.sh"; then
  2768. ac_aux_dir=$ac_dir
  2769. ac_install_sh="$ac_aux_dir/install.sh -c"
  2770. break
  2771. elif test -f "$ac_dir/shtool"; then
  2772. ac_aux_dir=$ac_dir
  2773. ac_install_sh="$ac_aux_dir/shtool install -c"
  2774. break
  2775. fi
  2776. done
  2777. if test -z "$ac_aux_dir"; then
  2778. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2779. fi
  2780. # These three variables are undocumented and unsupported,
  2781. # and are intended to be withdrawn in a future Autoconf release.
  2782. # They can cause serious problems if a builder's source tree is in a directory
  2783. # whose full name contains unusual characters.
  2784. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2785. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2786. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2788. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2789. # Check whether --enable-maintainer-mode was given.
  2790. if test "${enable_maintainer_mode+set}" = set; then :
  2791. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2792. else
  2793. USE_MAINTAINER_MODE=yes
  2794. fi
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2796. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2797. if test $USE_MAINTAINER_MODE = yes; then
  2798. MAINTAINER_MODE_TRUE=
  2799. MAINTAINER_MODE_FALSE='#'
  2800. else
  2801. MAINTAINER_MODE_TRUE='#'
  2802. MAINTAINER_MODE_FALSE=
  2803. fi
  2804. MAINT=$MAINTAINER_MODE_TRUE
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2806. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2807. # Check whether --with-dmalloc was given.
  2808. if test "${with_dmalloc+set}" = set; then :
  2809. withval=$with_dmalloc; if test "$withval" = yes; then
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2811. $as_echo "yes" >&6; }
  2812. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2813. LIBS="$LIBS -ldmalloc"
  2814. LDFLAGS="$LDFLAGS -g"
  2815. else
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2817. $as_echo "no" >&6; }
  2818. fi
  2819. else
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2821. $as_echo "no" >&6; }
  2822. fi
  2823. MAINTAINER_AUTOGEN_VERSION=5.18.12
  2824. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2825. TCPREPLAY_RELEASE=1
  2826. # Make sure we can run config.sub.
  2827. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2828. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2830. $as_echo_n "checking build system type... " >&6; }
  2831. if ${ac_cv_build+:} false; then :
  2832. $as_echo_n "(cached) " >&6
  2833. else
  2834. ac_build_alias=$build_alias
  2835. test "x$ac_build_alias" = x &&
  2836. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2837. test "x$ac_build_alias" = x &&
  2838. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2839. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2840. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2843. $as_echo "$ac_cv_build" >&6; }
  2844. case $ac_cv_build in
  2845. *-*-*) ;;
  2846. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2847. esac
  2848. build=$ac_cv_build
  2849. ac_save_IFS=$IFS; IFS='-'
  2850. set x $ac_cv_build
  2851. shift
  2852. build_cpu=$1
  2853. build_vendor=$2
  2854. shift; shift
  2855. # Remember, the first character of IFS is used to create $*,
  2856. # except with old shells:
  2857. build_os=$*
  2858. IFS=$ac_save_IFS
  2859. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2861. $as_echo_n "checking host system type... " >&6; }
  2862. if ${ac_cv_host+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. if test "x$host_alias" = x; then
  2866. ac_cv_host=$ac_cv_build
  2867. else
  2868. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2869. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2870. fi
  2871. fi
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2873. $as_echo "$ac_cv_host" >&6; }
  2874. case $ac_cv_host in
  2875. *-*-*) ;;
  2876. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2877. esac
  2878. host=$ac_cv_host
  2879. ac_save_IFS=$IFS; IFS='-'
  2880. set x $ac_cv_host
  2881. shift
  2882. host_cpu=$1
  2883. host_vendor=$2
  2884. shift; shift
  2885. # Remember, the first character of IFS is used to create $*,
  2886. # except with old shells:
  2887. host_os=$*
  2888. IFS=$ac_save_IFS
  2889. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2891. $as_echo_n "checking target system type... " >&6; }
  2892. if ${ac_cv_target+:} false; then :
  2893. $as_echo_n "(cached) " >&6
  2894. else
  2895. if test "x$target_alias" = x; then
  2896. ac_cv_target=$ac_cv_host
  2897. else
  2898. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2899. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2900. fi
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2903. $as_echo "$ac_cv_target" >&6; }
  2904. case $ac_cv_target in
  2905. *-*-*) ;;
  2906. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2907. esac
  2908. target=$ac_cv_target
  2909. ac_save_IFS=$IFS; IFS='-'
  2910. set x $ac_cv_target
  2911. shift
  2912. target_cpu=$1
  2913. target_vendor=$2
  2914. shift; shift
  2915. # Remember, the first character of IFS is used to create $*,
  2916. # except with old shells:
  2917. target_os=$*
  2918. IFS=$ac_save_IFS
  2919. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2920. # The aliases save the names the user supplied, while $host etc.
  2921. # will get canonicalized.
  2922. test -n "$target_alias" &&
  2923. test "$program_prefix$program_suffix$program_transform_name" = \
  2924. NONENONEs,x,x, &&
  2925. program_prefix=${target_alias}-
  2926. CROSS_ARCH=
  2927. CROSS_LD=
  2928. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2929. if test "$cross_compiling" = "yes" ; then
  2930. CROSS_ARCH="ARCH=$host_cpu"
  2931. CROSS_LD="LD=$LD"
  2932. fi
  2933. # Check whether --with-macosx-sdk was given.
  2934. if test "${with_macosx_sdk+set}" = set; then :
  2935. withval=$with_macosx_sdk;
  2936. fi
  2937. case "$host_os" in
  2938. darwin*) # Mac OS X or iOS
  2939. # If no --with-macosx-sdk option is given, look for one
  2940. # The intent is that for "most" Mac-based developers, a suitable
  2941. # SDK will be found automatically without any configure options.
  2942. # For developers with a current Xcode, the lowest-numbered SDK
  2943. # higher than or equal to the minimum required should be found.
  2944. # To find a list of available version run `xcodebuild -showsdks`
  2945. MULTIARCH=${host_cpu}-${host_os}
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2947. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2948. for _macosx_sdk in $with_macosx_sdk 10.8 10.9 10.10 10.11 10.12 10.13 10.14 10.15 10.16 10.17 10.18 10.19 10.20 11.0 11.1 11.2 11.3 11.4 11.5; do
  2949. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macosx_sdk} --show-sdk-path 2> /dev/null)
  2950. if test -d "$MACOSX_SDK_PATH"; then
  2951. with_macosx_sdk="${_macosx_sdk}"
  2952. break
  2953. else
  2954. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macosx_sdk}.sdk
  2955. if test -d "$MACOSX_SDK_PATH"; then
  2956. with_macosx_sdk="${_macosx_sdk}"
  2957. break
  2958. fi
  2959. fi
  2960. done
  2961. if test -d "$MACOSX_SDK_PATH"; then
  2962. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2963. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2964. AR=$(xcrun -find ar)
  2965. NM=$(xcrun -find nm)
  2966. STRIP=$(xcrun -find strip)
  2967. LIBTOOL=$(xcrun -find libtool)
  2968. RANLIB=$(xcrun -find ranlib)
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2970. $as_echo "$CC" >&6; }
  2971. else
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2973. $as_echo "legacy" >&6; }
  2974. fi
  2975. ;;
  2976. Linux*)
  2977. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  2978. ;;
  2979. *)
  2980. MULTIARCH=${host_cpu}-${host_os}
  2981. ;;
  2982. esac
  2983. # Note that the OS X libtool command is unrelated to GNU libtool
  2984. # Check whether --with-pfring-lib was given.
  2985. if test "${with_pfring_lib+set}" = set; then :
  2986. withval=$with_pfring_lib;
  2987. fi
  2988. have_cygwin=no
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  2990. $as_echo_n "checking for cygwin development environment... " >&6; }
  2991. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  2992. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2994. $as_echo "yes" >&6; }
  2995. have_cygwin=yes
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2998. $as_echo "no" >&6; }
  2999. fi
  3000. am__api_version='1.15'
  3001. # Find a good install program. We prefer a C program (faster),
  3002. # so one script is as good as another. But avoid the broken or
  3003. # incompatible versions:
  3004. # SysV /etc/install, /usr/sbin/install
  3005. # SunOS /usr/etc/install
  3006. # IRIX /sbin/install
  3007. # AIX /bin/install
  3008. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3009. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3010. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3011. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3012. # OS/2's system install, which has a completely different semantic
  3013. # ./install, which can be erroneously created by make from ./install.sh.
  3014. # Reject install programs that cannot install multiple files.
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3016. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3017. if test -z "$INSTALL"; then
  3018. if ${ac_cv_path_install+:} false; then :
  3019. $as_echo_n "(cached) " >&6
  3020. else
  3021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3022. for as_dir in $PATH
  3023. do
  3024. IFS=$as_save_IFS
  3025. test -z "$as_dir" && as_dir=.
  3026. # Account for people who put trailing slashes in PATH elements.
  3027. case $as_dir/ in #((
  3028. ./ | .// | /[cC]/* | \
  3029. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3030. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3031. /usr/ucb/* ) ;;
  3032. *)
  3033. # OSF1 and SCO ODT 3.0 have their own names for install.
  3034. # Don't use installbsd from OSF since it installs stuff as root
  3035. # by default.
  3036. for ac_prog in ginstall scoinst install; do
  3037. for ac_exec_ext in '' $ac_executable_extensions; do
  3038. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3039. if test $ac_prog = install &&
  3040. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3041. # AIX install. It has an incompatible calling convention.
  3042. :
  3043. elif test $ac_prog = install &&
  3044. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3045. # program-specific install script used by HP pwplus--don't use.
  3046. :
  3047. else
  3048. rm -rf conftest.one conftest.two conftest.dir
  3049. echo one > conftest.one
  3050. echo two > conftest.two
  3051. mkdir conftest.dir
  3052. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3053. test -s conftest.one && test -s conftest.two &&
  3054. test -s conftest.dir/conftest.one &&
  3055. test -s conftest.dir/conftest.two
  3056. then
  3057. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3058. break 3
  3059. fi
  3060. fi
  3061. fi
  3062. done
  3063. done
  3064. ;;
  3065. esac
  3066. done
  3067. IFS=$as_save_IFS
  3068. rm -rf conftest.one conftest.two conftest.dir
  3069. fi
  3070. if test "${ac_cv_path_install+set}" = set; then
  3071. INSTALL=$ac_cv_path_install
  3072. else
  3073. # As a last resort, use the slow shell script. Don't cache a
  3074. # value for INSTALL within a source directory, because that will
  3075. # break other packages using the cache if that directory is
  3076. # removed, or if the value is a relative name.
  3077. INSTALL=$ac_install_sh
  3078. fi
  3079. fi
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3081. $as_echo "$INSTALL" >&6; }
  3082. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3083. # It thinks the first close brace ends the variable substitution.
  3084. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3085. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3086. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3088. $as_echo_n "checking whether build environment is sane... " >&6; }
  3089. # Reject unsafe characters in $srcdir or the absolute working directory
  3090. # name. Accept space and tab only in the latter.
  3091. am_lf='
  3092. '
  3093. case `pwd` in
  3094. *[\\\"\#\$\&\'\`$am_lf]*)
  3095. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3096. esac
  3097. case $srcdir in
  3098. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3099. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3100. esac
  3101. # Do 'set' in a subshell so we don't clobber the current shell's
  3102. # arguments. Must try -L first in case configure is actually a
  3103. # symlink; some systems play weird games with the mod time of symlinks
  3104. # (eg FreeBSD returns the mod time of the symlink's containing
  3105. # directory).
  3106. if (
  3107. am_has_slept=no
  3108. for am_try in 1 2; do
  3109. echo "timestamp, slept: $am_has_slept" > conftest.file
  3110. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3111. if test "$*" = "X"; then
  3112. # -L didn't work.
  3113. set X `ls -t "$srcdir/configure" conftest.file`
  3114. fi
  3115. if test "$*" != "X $srcdir/configure conftest.file" \
  3116. && test "$*" != "X conftest.file $srcdir/configure"; then
  3117. # If neither matched, then we have a broken ls. This can happen
  3118. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3119. # broken ls alias from the environment. This has actually
  3120. # happened. Such a system could not be considered "sane".
  3121. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3122. alias in your environment" "$LINENO" 5
  3123. fi
  3124. if test "$2" = conftest.file || test $am_try -eq 2; then
  3125. break
  3126. fi
  3127. # Just in case.
  3128. sleep 1
  3129. am_has_slept=yes
  3130. done
  3131. test "$2" = conftest.file
  3132. )
  3133. then
  3134. # Ok.
  3135. :
  3136. else
  3137. as_fn_error $? "newly created file is older than distributed files!
  3138. Check your system clock" "$LINENO" 5
  3139. fi
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3141. $as_echo "yes" >&6; }
  3142. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3143. # generated files are strictly newer.
  3144. am_sleep_pid=
  3145. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3146. ( sleep 1 ) &
  3147. am_sleep_pid=$!
  3148. fi
  3149. rm -f conftest.file
  3150. test "$program_prefix" != NONE &&
  3151. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3152. # Use a double $ so make ignores it.
  3153. test "$program_suffix" != NONE &&
  3154. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3155. # Double any \ or $.
  3156. # By default was `s,x,x', remove it if useless.
  3157. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3158. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3159. # Expand $ac_aux_dir to an absolute path.
  3160. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3161. if test x"${MISSING+set}" != xset; then
  3162. case $am_aux_dir in
  3163. *\ * | *\ *)
  3164. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3165. *)
  3166. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3167. esac
  3168. fi
  3169. # Use eval to expand $SHELL
  3170. if eval "$MISSING --is-lightweight"; then
  3171. am_missing_run="$MISSING "
  3172. else
  3173. am_missing_run=
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3175. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3176. fi
  3177. if test x"${install_sh+set}" != xset; then
  3178. case $am_aux_dir in
  3179. *\ * | *\ *)
  3180. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3181. *)
  3182. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3183. esac
  3184. fi
  3185. # Installed binaries are usually stripped using 'strip' when the user
  3186. # run "make install-strip". However 'strip' might not be the right
  3187. # tool to use in cross-compilation environments, therefore Automake
  3188. # will honor the 'STRIP' environment variable to overrule this program.
  3189. if test "$cross_compiling" != no; then
  3190. if test -n "$ac_tool_prefix"; then
  3191. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3192. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3194. $as_echo_n "checking for $ac_word... " >&6; }
  3195. if ${ac_cv_prog_STRIP+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. if test -n "$STRIP"; then
  3199. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3200. else
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH
  3203. do
  3204. IFS=$as_save_IFS
  3205. test -z "$as_dir" && as_dir=.
  3206. for ac_exec_ext in '' $ac_executable_extensions; do
  3207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3208. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3210. break 2
  3211. fi
  3212. done
  3213. done
  3214. IFS=$as_save_IFS
  3215. fi
  3216. fi
  3217. STRIP=$ac_cv_prog_STRIP
  3218. if test -n "$STRIP"; then
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3220. $as_echo "$STRIP" >&6; }
  3221. else
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3223. $as_echo "no" >&6; }
  3224. fi
  3225. fi
  3226. if test -z "$ac_cv_prog_STRIP"; then
  3227. ac_ct_STRIP=$STRIP
  3228. # Extract the first word of "strip", so it can be a program name with args.
  3229. set dummy strip; ac_word=$2
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3231. $as_echo_n "checking for $ac_word... " >&6; }
  3232. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3233. $as_echo_n "(cached) " >&6
  3234. else
  3235. if test -n "$ac_ct_STRIP"; then
  3236. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3237. else
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. test -z "$as_dir" && as_dir=.
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3245. ac_cv_prog_ac_ct_STRIP="strip"
  3246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3247. break 2
  3248. fi
  3249. done
  3250. done
  3251. IFS=$as_save_IFS
  3252. fi
  3253. fi
  3254. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3255. if test -n "$ac_ct_STRIP"; then
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3257. $as_echo "$ac_ct_STRIP" >&6; }
  3258. else
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3260. $as_echo "no" >&6; }
  3261. fi
  3262. if test "x$ac_ct_STRIP" = x; then
  3263. STRIP=":"
  3264. else
  3265. case $cross_compiling:$ac_tool_warned in
  3266. yes:)
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3268. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3269. ac_tool_warned=yes ;;
  3270. esac
  3271. STRIP=$ac_ct_STRIP
  3272. fi
  3273. else
  3274. STRIP="$ac_cv_prog_STRIP"
  3275. fi
  3276. fi
  3277. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3279. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3280. if test -z "$MKDIR_P"; then
  3281. if ${ac_cv_path_mkdir+:} false; then :
  3282. $as_echo_n "(cached) " >&6
  3283. else
  3284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3285. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3286. do
  3287. IFS=$as_save_IFS
  3288. test -z "$as_dir" && as_dir=.
  3289. for ac_prog in mkdir gmkdir; do
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3292. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3293. 'mkdir (GNU coreutils) '* | \
  3294. 'mkdir (coreutils) '* | \
  3295. 'mkdir (fileutils) '4.1*)
  3296. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3297. break 3;;
  3298. esac
  3299. done
  3300. done
  3301. done
  3302. IFS=$as_save_IFS
  3303. fi
  3304. test -d ./--version && rmdir ./--version
  3305. if test "${ac_cv_path_mkdir+set}" = set; then
  3306. MKDIR_P="$ac_cv_path_mkdir -p"
  3307. else
  3308. # As a last resort, use the slow shell script. Don't cache a
  3309. # value for MKDIR_P within a source directory, because that will
  3310. # break other packages using the cache if that directory is
  3311. # removed, or if the value is a relative name.
  3312. MKDIR_P="$ac_install_sh -d"
  3313. fi
  3314. fi
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3316. $as_echo "$MKDIR_P" >&6; }
  3317. for ac_prog in gawk mawk nawk awk
  3318. do
  3319. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3320. set dummy $ac_prog; ac_word=$2
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3322. $as_echo_n "checking for $ac_word... " >&6; }
  3323. if ${ac_cv_prog_AWK+:} false; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. if test -n "$AWK"; then
  3327. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3328. else
  3329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3330. for as_dir in $PATH
  3331. do
  3332. IFS=$as_save_IFS
  3333. test -z "$as_dir" && as_dir=.
  3334. for ac_exec_ext in '' $ac_executable_extensions; do
  3335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3336. ac_cv_prog_AWK="$ac_prog"
  3337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3338. break 2
  3339. fi
  3340. done
  3341. done
  3342. IFS=$as_save_IFS
  3343. fi
  3344. fi
  3345. AWK=$ac_cv_prog_AWK
  3346. if test -n "$AWK"; then
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3348. $as_echo "$AWK" >&6; }
  3349. else
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3351. $as_echo "no" >&6; }
  3352. fi
  3353. test -n "$AWK" && break
  3354. done
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3356. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3357. set x ${MAKE-make}
  3358. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3359. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3360. $as_echo_n "(cached) " >&6
  3361. else
  3362. cat >conftest.make <<\_ACEOF
  3363. SHELL = /bin/sh
  3364. all:
  3365. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3366. _ACEOF
  3367. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3368. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3369. *@@@%%%=?*=@@@%%%*)
  3370. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3371. *)
  3372. eval ac_cv_prog_make_${ac_make}_set=no;;
  3373. esac
  3374. rm -f conftest.make
  3375. fi
  3376. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3378. $as_echo "yes" >&6; }
  3379. SET_MAKE=
  3380. else
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3382. $as_echo "no" >&6; }
  3383. SET_MAKE="MAKE=${MAKE-make}"
  3384. fi
  3385. rm -rf .tst 2>/dev/null
  3386. mkdir .tst 2>/dev/null
  3387. if test -d .tst; then
  3388. am__leading_dot=.
  3389. else
  3390. am__leading_dot=_
  3391. fi
  3392. rmdir .tst 2>/dev/null
  3393. # Check whether --enable-silent-rules was given.
  3394. if test "${enable_silent_rules+set}" = set; then :
  3395. enableval=$enable_silent_rules;
  3396. fi
  3397. case $enable_silent_rules in # (((
  3398. yes) AM_DEFAULT_VERBOSITY=0;;
  3399. no) AM_DEFAULT_VERBOSITY=1;;
  3400. *) AM_DEFAULT_VERBOSITY=1;;
  3401. esac
  3402. am_make=${MAKE-make}
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3404. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3405. if ${am_cv_make_support_nested_variables+:} false; then :
  3406. $as_echo_n "(cached) " >&6
  3407. else
  3408. if $as_echo 'TRUE=$(BAR$(V))
  3409. BAR0=false
  3410. BAR1=true
  3411. V=1
  3412. am__doit:
  3413. @$(TRUE)
  3414. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3415. am_cv_make_support_nested_variables=yes
  3416. else
  3417. am_cv_make_support_nested_variables=no
  3418. fi
  3419. fi
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3421. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3422. if test $am_cv_make_support_nested_variables = yes; then
  3423. AM_V='$(V)'
  3424. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3425. else
  3426. AM_V=$AM_DEFAULT_VERBOSITY
  3427. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3428. fi
  3429. AM_BACKSLASH='\'
  3430. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3431. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3432. # is not polluted with repeated "-I."
  3433. am__isrc=' -I$(srcdir)'
  3434. # test to see if srcdir already configured
  3435. if test -f $srcdir/config.status; then
  3436. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3437. fi
  3438. fi
  3439. # test whether we have cygpath
  3440. if test -z "$CYGPATH_W"; then
  3441. if (cygpath --version) >/dev/null 2>/dev/null; then
  3442. CYGPATH_W='cygpath -w'
  3443. else
  3444. CYGPATH_W=echo
  3445. fi
  3446. fi
  3447. # Define the identity of the package.
  3448. PACKAGE='tcpreplay'
  3449. VERSION='4.3.3'
  3450. cat >>confdefs.h <<_ACEOF
  3451. #define PACKAGE "$PACKAGE"
  3452. _ACEOF
  3453. cat >>confdefs.h <<_ACEOF
  3454. #define VERSION "$VERSION"
  3455. _ACEOF
  3456. # Some tools Automake needs.
  3457. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3458. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3459. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3460. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3461. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3462. # For better backward compatibility. To be removed once Automake 1.9.x
  3463. # dies out for good. For more background, see:
  3464. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3465. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3466. mkdir_p='$(MKDIR_P)'
  3467. # We need awk for the "check" target (and possibly the TAP driver). The
  3468. # system "awk" is bad on some platforms.
  3469. # Always define AMTAR for backward compatibility. Yes, it's still used
  3470. # in the wild :-( We should find a proper way to deprecate it ...
  3471. AMTAR='$${TAR-tar}'
  3472. # We'll loop over all known methods to create a tar archive until one works.
  3473. _am_tools='gnutar pax cpio none'
  3474. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3475. # POSIX will say in a future version that running "rm -f" with no argument
  3476. # is OK; and we want to be able to make that assumption in our Makefile
  3477. # recipes. So use an aggressive probe to check that the usage we want is
  3478. # actually supported "in the wild" to an acceptable degree.
  3479. # See automake bug#10828.
  3480. # To make any issue more visible, cause the running configure to be aborted
  3481. # by default if the 'rm' program in use doesn't match our expectations; the
  3482. # user can still override this though.
  3483. if rm -f && rm -fr && rm -rf; then : OK; else
  3484. cat >&2 <<'END'
  3485. Oops!
  3486. Your 'rm' program seems unable to run without file operands specified
  3487. on the command line, even when the '-f' option is present. This is contrary
  3488. to the behaviour of most rm programs out there, and not conforming with
  3489. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3490. Please tell bug-automake@gnu.org about your system, including the value
  3491. of your $PATH and any error possibly output before this message. This
  3492. can help us improve future automake versions.
  3493. END
  3494. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3495. echo 'Configuration will proceed anyway, since you have set the' >&2
  3496. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3497. echo >&2
  3498. else
  3499. cat >&2 <<'END'
  3500. Aborting the configuration process, to ensure you take notice of the issue.
  3501. You can download and install GNU coreutils to get an 'rm' implementation
  3502. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3503. If you want to complete the configuration process using your problematic
  3504. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3505. to "yes", and re-run configure.
  3506. END
  3507. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3508. fi
  3509. fi
  3510. # Check whether --enable-silent-rules was given.
  3511. if test "${enable_silent_rules+set}" = set; then :
  3512. enableval=$enable_silent_rules;
  3513. fi
  3514. case $enable_silent_rules in # (((
  3515. yes) AM_DEFAULT_VERBOSITY=0;;
  3516. no) AM_DEFAULT_VERBOSITY=1;;
  3517. *) AM_DEFAULT_VERBOSITY=0;;
  3518. esac
  3519. am_make=${MAKE-make}
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3521. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3522. if ${am_cv_make_support_nested_variables+:} false; then :
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. if $as_echo 'TRUE=$(BAR$(V))
  3526. BAR0=false
  3527. BAR1=true
  3528. V=1
  3529. am__doit:
  3530. @$(TRUE)
  3531. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3532. am_cv_make_support_nested_variables=yes
  3533. else
  3534. am_cv_make_support_nested_variables=no
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3538. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3539. if test $am_cv_make_support_nested_variables = yes; then
  3540. AM_V='$(V)'
  3541. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3542. else
  3543. AM_V=$AM_DEFAULT_VERBOSITY
  3544. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3545. fi
  3546. AM_BACKSLASH='\'
  3547. DEPDIR="${am__leading_dot}deps"
  3548. ac_config_commands="$ac_config_commands depfiles"
  3549. am_make=${MAKE-make}
  3550. cat > confinc << 'END'
  3551. am__doit:
  3552. @echo this is the am__doit target
  3553. .PHONY: am__doit
  3554. END
  3555. # If we don't find an include directive, just comment out the code.
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3557. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3558. am__include="#"
  3559. am__quote=
  3560. _am_result=none
  3561. # First try GNU make style include.
  3562. echo "include confinc" > confmf
  3563. # Ignore all kinds of additional output from 'make'.
  3564. case `$am_make -s -f confmf 2> /dev/null` in #(
  3565. *the\ am__doit\ target*)
  3566. am__include=include
  3567. am__quote=
  3568. _am_result=GNU
  3569. ;;
  3570. esac
  3571. # Now try BSD make style include.
  3572. if test "$am__include" = "#"; then
  3573. echo '.include "confinc"' > confmf
  3574. case `$am_make -s -f confmf 2> /dev/null` in #(
  3575. *the\ am__doit\ target*)
  3576. am__include=.include
  3577. am__quote="\""
  3578. _am_result=BSD
  3579. ;;
  3580. esac
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3583. $as_echo "$_am_result" >&6; }
  3584. rm -f confinc confmf
  3585. # Check whether --enable-dependency-tracking was given.
  3586. if test "${enable_dependency_tracking+set}" = set; then :
  3587. enableval=$enable_dependency_tracking;
  3588. fi
  3589. if test "x$enable_dependency_tracking" != xno; then
  3590. am_depcomp="$ac_aux_dir/depcomp"
  3591. AMDEPBACKSLASH='\'
  3592. am__nodep='_no'
  3593. fi
  3594. if test "x$enable_dependency_tracking" != xno; then
  3595. AMDEP_TRUE=
  3596. AMDEP_FALSE='#'
  3597. else
  3598. AMDEP_TRUE='#'
  3599. AMDEP_FALSE=
  3600. fi
  3601. ac_ext=c
  3602. ac_cpp='$CPP $CPPFLAGS'
  3603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3606. if test -n "$ac_tool_prefix"; then
  3607. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3608. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3610. $as_echo_n "checking for $ac_word... " >&6; }
  3611. if ${ac_cv_prog_CC+:} false; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. if test -n "$CC"; then
  3615. ac_cv_prog_CC="$CC" # Let the user override the test.
  3616. else
  3617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. for as_dir in $PATH
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_exec_ext in '' $ac_executable_extensions; do
  3623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3624. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3626. break 2
  3627. fi
  3628. done
  3629. done
  3630. IFS=$as_save_IFS
  3631. fi
  3632. fi
  3633. CC=$ac_cv_prog_CC
  3634. if test -n "$CC"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3636. $as_echo "$CC" >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. fi
  3642. if test -z "$ac_cv_prog_CC"; then
  3643. ac_ct_CC=$CC
  3644. # Extract the first word of "gcc", so it can be a program name with args.
  3645. set dummy gcc; ac_word=$2
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3647. $as_echo_n "checking for $ac_word... " >&6; }
  3648. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3649. $as_echo_n "(cached) " >&6
  3650. else
  3651. if test -n "$ac_ct_CC"; then
  3652. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3653. else
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_exec_ext in '' $ac_executable_extensions; do
  3660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3661. ac_cv_prog_ac_ct_CC="gcc"
  3662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3663. break 2
  3664. fi
  3665. done
  3666. done
  3667. IFS=$as_save_IFS
  3668. fi
  3669. fi
  3670. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3671. if test -n "$ac_ct_CC"; then
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3673. $as_echo "$ac_ct_CC" >&6; }
  3674. else
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3676. $as_echo "no" >&6; }
  3677. fi
  3678. if test "x$ac_ct_CC" = x; then
  3679. CC=""
  3680. else
  3681. case $cross_compiling:$ac_tool_warned in
  3682. yes:)
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3685. ac_tool_warned=yes ;;
  3686. esac
  3687. CC=$ac_ct_CC
  3688. fi
  3689. else
  3690. CC="$ac_cv_prog_CC"
  3691. fi
  3692. if test -z "$CC"; then
  3693. if test -n "$ac_tool_prefix"; then
  3694. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3695. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. if ${ac_cv_prog_CC+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if test -n "$CC"; then
  3702. ac_cv_prog_CC="$CC" # Let the user override the test.
  3703. else
  3704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3705. for as_dir in $PATH
  3706. do
  3707. IFS=$as_save_IFS
  3708. test -z "$as_dir" && as_dir=.
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3711. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3713. break 2
  3714. fi
  3715. done
  3716. done
  3717. IFS=$as_save_IFS
  3718. fi
  3719. fi
  3720. CC=$ac_cv_prog_CC
  3721. if test -n "$CC"; then
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3723. $as_echo "$CC" >&6; }
  3724. else
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3726. $as_echo "no" >&6; }
  3727. fi
  3728. fi
  3729. fi
  3730. if test -z "$CC"; then
  3731. # Extract the first word of "cc", so it can be a program name with args.
  3732. set dummy cc; ac_word=$2
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3734. $as_echo_n "checking for $ac_word... " >&6; }
  3735. if ${ac_cv_prog_CC+:} false; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. if test -n "$CC"; then
  3739. ac_cv_prog_CC="$CC" # Let the user override the test.
  3740. else
  3741. ac_prog_rejected=no
  3742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3743. for as_dir in $PATH
  3744. do
  3745. IFS=$as_save_IFS
  3746. test -z "$as_dir" && as_dir=.
  3747. for ac_exec_ext in '' $ac_executable_extensions; do
  3748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3749. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3750. ac_prog_rejected=yes
  3751. continue
  3752. fi
  3753. ac_cv_prog_CC="cc"
  3754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3755. break 2
  3756. fi
  3757. done
  3758. done
  3759. IFS=$as_save_IFS
  3760. if test $ac_prog_rejected = yes; then
  3761. # We found a bogon in the path, so make sure we never use it.
  3762. set dummy $ac_cv_prog_CC
  3763. shift
  3764. if test $# != 0; then
  3765. # We chose a different compiler from the bogus one.
  3766. # However, it has the same basename, so the bogon will be chosen
  3767. # first if we set CC to just the basename; use the full file name.
  3768. shift
  3769. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3770. fi
  3771. fi
  3772. fi
  3773. fi
  3774. CC=$ac_cv_prog_CC
  3775. if test -n "$CC"; then
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3777. $as_echo "$CC" >&6; }
  3778. else
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3780. $as_echo "no" >&6; }
  3781. fi
  3782. fi
  3783. if test -z "$CC"; then
  3784. if test -n "$ac_tool_prefix"; then
  3785. for ac_prog in cl.exe
  3786. do
  3787. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3788. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3790. $as_echo_n "checking for $ac_word... " >&6; }
  3791. if ${ac_cv_prog_CC+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. if test -n "$CC"; then
  3795. ac_cv_prog_CC="$CC" # Let the user override the test.
  3796. else
  3797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798. for as_dir in $PATH
  3799. do
  3800. IFS=$as_save_IFS
  3801. test -z "$as_dir" && as_dir=.
  3802. for ac_exec_ext in '' $ac_executable_extensions; do
  3803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3804. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3806. break 2
  3807. fi
  3808. done
  3809. done
  3810. IFS=$as_save_IFS
  3811. fi
  3812. fi
  3813. CC=$ac_cv_prog_CC
  3814. if test -n "$CC"; then
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3816. $as_echo "$CC" >&6; }
  3817. else
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3819. $as_echo "no" >&6; }
  3820. fi
  3821. test -n "$CC" && break
  3822. done
  3823. fi
  3824. if test -z "$CC"; then
  3825. ac_ct_CC=$CC
  3826. for ac_prog in cl.exe
  3827. do
  3828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3829. set dummy $ac_prog; ac_word=$2
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. $as_echo_n "checking for $ac_word... " >&6; }
  3832. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -n "$ac_ct_CC"; then
  3836. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3837. else
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3845. ac_cv_prog_ac_ct_CC="$ac_prog"
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847. break 2
  3848. fi
  3849. done
  3850. done
  3851. IFS=$as_save_IFS
  3852. fi
  3853. fi
  3854. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3855. if test -n "$ac_ct_CC"; then
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3857. $as_echo "$ac_ct_CC" >&6; }
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. fi
  3862. test -n "$ac_ct_CC" && break
  3863. done
  3864. if test "x$ac_ct_CC" = x; then
  3865. CC=""
  3866. else
  3867. case $cross_compiling:$ac_tool_warned in
  3868. yes:)
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3871. ac_tool_warned=yes ;;
  3872. esac
  3873. CC=$ac_ct_CC
  3874. fi
  3875. fi
  3876. fi
  3877. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3879. as_fn_error $? "no acceptable C compiler found in \$PATH
  3880. See \`config.log' for more details" "$LINENO" 5; }
  3881. # Provide some information about the compiler.
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3883. set X $ac_compile
  3884. ac_compiler=$2
  3885. for ac_option in --version -v -V -qversion; do
  3886. { { ac_try="$ac_compiler $ac_option >&5"
  3887. case "(($ac_try" in
  3888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3889. *) ac_try_echo=$ac_try;;
  3890. esac
  3891. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3892. $as_echo "$ac_try_echo"; } >&5
  3893. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3894. ac_status=$?
  3895. if test -s conftest.err; then
  3896. sed '10a\
  3897. ... rest of stderr output deleted ...
  3898. 10q' conftest.err >conftest.er1
  3899. cat conftest.er1 >&5
  3900. fi
  3901. rm -f conftest.er1 conftest.err
  3902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3903. test $ac_status = 0; }
  3904. done
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. int
  3908. main ()
  3909. {
  3910. ;
  3911. return 0;
  3912. }
  3913. _ACEOF
  3914. ac_clean_files_save=$ac_clean_files
  3915. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3916. # Try to create an executable without -o first, disregard a.out.
  3917. # It will help us diagnose broken compilers, and finding out an intuition
  3918. # of exeext.
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3920. $as_echo_n "checking whether the C compiler works... " >&6; }
  3921. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3922. # The possible output files:
  3923. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3924. ac_rmfiles=
  3925. for ac_file in $ac_files
  3926. do
  3927. case $ac_file in
  3928. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3929. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3930. esac
  3931. done
  3932. rm -f $ac_rmfiles
  3933. if { { ac_try="$ac_link_default"
  3934. case "(($ac_try" in
  3935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3936. *) ac_try_echo=$ac_try;;
  3937. esac
  3938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3939. $as_echo "$ac_try_echo"; } >&5
  3940. (eval "$ac_link_default") 2>&5
  3941. ac_status=$?
  3942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3943. test $ac_status = 0; }; then :
  3944. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3945. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3946. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3947. # so that the user can short-circuit this test for compilers unknown to
  3948. # Autoconf.
  3949. for ac_file in $ac_files ''
  3950. do
  3951. test -f "$ac_file" || continue
  3952. case $ac_file in
  3953. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3954. ;;
  3955. [ab].out )
  3956. # We found the default executable, but exeext='' is most
  3957. # certainly right.
  3958. break;;
  3959. *.* )
  3960. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3961. then :; else
  3962. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3963. fi
  3964. # We set ac_cv_exeext here because the later test for it is not
  3965. # safe: cross compilers may not add the suffix if given an `-o'
  3966. # argument, so we may need to know it at that point already.
  3967. # Even if this section looks crufty: it has the advantage of
  3968. # actually working.
  3969. break;;
  3970. * )
  3971. break;;
  3972. esac
  3973. done
  3974. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3975. else
  3976. ac_file=''
  3977. fi
  3978. if test -z "$ac_file"; then :
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3980. $as_echo "no" >&6; }
  3981. $as_echo "$as_me: failed program was:" >&5
  3982. sed 's/^/| /' conftest.$ac_ext >&5
  3983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3985. as_fn_error 77 "C compiler cannot create executables
  3986. See \`config.log' for more details" "$LINENO" 5; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3989. $as_echo "yes" >&6; }
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3992. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3994. $as_echo "$ac_file" >&6; }
  3995. ac_exeext=$ac_cv_exeext
  3996. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3997. ac_clean_files=$ac_clean_files_save
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3999. $as_echo_n "checking for suffix of executables... " >&6; }
  4000. if { { ac_try="$ac_link"
  4001. case "(($ac_try" in
  4002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4003. *) ac_try_echo=$ac_try;;
  4004. esac
  4005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4006. $as_echo "$ac_try_echo"; } >&5
  4007. (eval "$ac_link") 2>&5
  4008. ac_status=$?
  4009. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4010. test $ac_status = 0; }; then :
  4011. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4012. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4013. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4014. # `rm'.
  4015. for ac_file in conftest.exe conftest conftest.*; do
  4016. test -f "$ac_file" || continue
  4017. case $ac_file in
  4018. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4019. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4020. break;;
  4021. * ) break;;
  4022. esac
  4023. done
  4024. else
  4025. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4027. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4028. See \`config.log' for more details" "$LINENO" 5; }
  4029. fi
  4030. rm -f conftest conftest$ac_cv_exeext
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4032. $as_echo "$ac_cv_exeext" >&6; }
  4033. rm -f conftest.$ac_ext
  4034. EXEEXT=$ac_cv_exeext
  4035. ac_exeext=$EXEEXT
  4036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4037. /* end confdefs.h. */
  4038. #include <stdio.h>
  4039. int
  4040. main ()
  4041. {
  4042. FILE *f = fopen ("conftest.out", "w");
  4043. return ferror (f) || fclose (f) != 0;
  4044. ;
  4045. return 0;
  4046. }
  4047. _ACEOF
  4048. ac_clean_files="$ac_clean_files conftest.out"
  4049. # Check that the compiler produces executables we can run. If not, either
  4050. # the compiler is broken, or we cross compile.
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4052. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4053. if test "$cross_compiling" != yes; then
  4054. { { ac_try="$ac_link"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4060. $as_echo "$ac_try_echo"; } >&5
  4061. (eval "$ac_link") 2>&5
  4062. ac_status=$?
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4064. test $ac_status = 0; }
  4065. if { ac_try='./conftest$ac_cv_exeext'
  4066. { { case "(($ac_try" in
  4067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4068. *) ac_try_echo=$ac_try;;
  4069. esac
  4070. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4071. $as_echo "$ac_try_echo"; } >&5
  4072. (eval "$ac_try") 2>&5
  4073. ac_status=$?
  4074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4075. test $ac_status = 0; }; }; then
  4076. cross_compiling=no
  4077. else
  4078. if test "$cross_compiling" = maybe; then
  4079. cross_compiling=yes
  4080. else
  4081. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4083. as_fn_error $? "cannot run C compiled programs.
  4084. If you meant to cross compile, use \`--host'.
  4085. See \`config.log' for more details" "$LINENO" 5; }
  4086. fi
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4090. $as_echo "$cross_compiling" >&6; }
  4091. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4092. ac_clean_files=$ac_clean_files_save
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4094. $as_echo_n "checking for suffix of object files... " >&6; }
  4095. if ${ac_cv_objext+:} false; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4099. /* end confdefs.h. */
  4100. int
  4101. main ()
  4102. {
  4103. ;
  4104. return 0;
  4105. }
  4106. _ACEOF
  4107. rm -f conftest.o conftest.obj
  4108. if { { ac_try="$ac_compile"
  4109. case "(($ac_try" in
  4110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4111. *) ac_try_echo=$ac_try;;
  4112. esac
  4113. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4114. $as_echo "$ac_try_echo"; } >&5
  4115. (eval "$ac_compile") 2>&5
  4116. ac_status=$?
  4117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4118. test $ac_status = 0; }; then :
  4119. for ac_file in conftest.o conftest.obj conftest.*; do
  4120. test -f "$ac_file" || continue;
  4121. case $ac_file in
  4122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4123. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4124. break;;
  4125. esac
  4126. done
  4127. else
  4128. $as_echo "$as_me: failed program was:" >&5
  4129. sed 's/^/| /' conftest.$ac_ext >&5
  4130. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4131. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4132. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4133. See \`config.log' for more details" "$LINENO" 5; }
  4134. fi
  4135. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4136. fi
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4138. $as_echo "$ac_cv_objext" >&6; }
  4139. OBJEXT=$ac_cv_objext
  4140. ac_objext=$OBJEXT
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4142. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4143. if ${ac_cv_c_compiler_gnu+:} false; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4147. /* end confdefs.h. */
  4148. int
  4149. main ()
  4150. {
  4151. #ifndef __GNUC__
  4152. choke me
  4153. #endif
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. if ac_fn_c_try_compile "$LINENO"; then :
  4159. ac_compiler_gnu=yes
  4160. else
  4161. ac_compiler_gnu=no
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4164. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4167. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4168. if test $ac_compiler_gnu = yes; then
  4169. GCC=yes
  4170. else
  4171. GCC=
  4172. fi
  4173. ac_test_CFLAGS=${CFLAGS+set}
  4174. ac_save_CFLAGS=$CFLAGS
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4176. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4177. if ${ac_cv_prog_cc_g+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. ac_save_c_werror_flag=$ac_c_werror_flag
  4181. ac_c_werror_flag=yes
  4182. ac_cv_prog_cc_g=no
  4183. CFLAGS="-g"
  4184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4185. /* end confdefs.h. */
  4186. int
  4187. main ()
  4188. {
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. if ac_fn_c_try_compile "$LINENO"; then :
  4194. ac_cv_prog_cc_g=yes
  4195. else
  4196. CFLAGS=""
  4197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4198. /* end confdefs.h. */
  4199. int
  4200. main ()
  4201. {
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. if ac_fn_c_try_compile "$LINENO"; then :
  4207. else
  4208. ac_c_werror_flag=$ac_save_c_werror_flag
  4209. CFLAGS="-g"
  4210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4211. /* end confdefs.h. */
  4212. int
  4213. main ()
  4214. {
  4215. ;
  4216. return 0;
  4217. }
  4218. _ACEOF
  4219. if ac_fn_c_try_compile "$LINENO"; then :
  4220. ac_cv_prog_cc_g=yes
  4221. fi
  4222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4223. fi
  4224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4227. ac_c_werror_flag=$ac_save_c_werror_flag
  4228. fi
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4230. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4231. if test "$ac_test_CFLAGS" = set; then
  4232. CFLAGS=$ac_save_CFLAGS
  4233. elif test $ac_cv_prog_cc_g = yes; then
  4234. if test "$GCC" = yes; then
  4235. CFLAGS="-g -O2"
  4236. else
  4237. CFLAGS="-g"
  4238. fi
  4239. else
  4240. if test "$GCC" = yes; then
  4241. CFLAGS="-O2"
  4242. else
  4243. CFLAGS=
  4244. fi
  4245. fi
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4247. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4248. if ${ac_cv_prog_cc_c89+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. ac_cv_prog_cc_c89=no
  4252. ac_save_CC=$CC
  4253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4254. /* end confdefs.h. */
  4255. #include <stdarg.h>
  4256. #include <stdio.h>
  4257. struct stat;
  4258. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4259. struct buf { int x; };
  4260. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4261. static char *e (p, i)
  4262. char **p;
  4263. int i;
  4264. {
  4265. return p[i];
  4266. }
  4267. static char *f (char * (*g) (char **, int), char **p, ...)
  4268. {
  4269. char *s;
  4270. va_list v;
  4271. va_start (v,p);
  4272. s = g (p, va_arg (v,int));
  4273. va_end (v);
  4274. return s;
  4275. }
  4276. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4277. function prototypes and stuff, but not '\xHH' hex character constants.
  4278. These don't provoke an error unfortunately, instead are silently treated
  4279. as 'x'. The following induces an error, until -std is added to get
  4280. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4281. array size at least. It's necessary to write '\x00'==0 to get something
  4282. that's true only with -std. */
  4283. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4284. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4285. inside strings and character constants. */
  4286. #define FOO(x) 'x'
  4287. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4288. int test (int i, double x);
  4289. struct s1 {int (*f) (int a);};
  4290. struct s2 {int (*f) (double a);};
  4291. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4292. int argc;
  4293. char **argv;
  4294. int
  4295. main ()
  4296. {
  4297. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4298. ;
  4299. return 0;
  4300. }
  4301. _ACEOF
  4302. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4303. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4304. do
  4305. CC="$ac_save_CC $ac_arg"
  4306. if ac_fn_c_try_compile "$LINENO"; then :
  4307. ac_cv_prog_cc_c89=$ac_arg
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext
  4310. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4311. done
  4312. rm -f conftest.$ac_ext
  4313. CC=$ac_save_CC
  4314. fi
  4315. # AC_CACHE_VAL
  4316. case "x$ac_cv_prog_cc_c89" in
  4317. x)
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4319. $as_echo "none needed" >&6; } ;;
  4320. xno)
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4322. $as_echo "unsupported" >&6; } ;;
  4323. *)
  4324. CC="$CC $ac_cv_prog_cc_c89"
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4326. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4327. esac
  4328. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4329. fi
  4330. ac_ext=c
  4331. ac_cpp='$CPP $CPPFLAGS'
  4332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4335. ac_ext=c
  4336. ac_cpp='$CPP $CPPFLAGS'
  4337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4341. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4342. if ${am_cv_prog_cc_c_o+:} false; then :
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4346. /* end confdefs.h. */
  4347. int
  4348. main ()
  4349. {
  4350. ;
  4351. return 0;
  4352. }
  4353. _ACEOF
  4354. # Make sure it works both with $CC and with simple cc.
  4355. # Following AC_PROG_CC_C_O, we do the test twice because some
  4356. # compilers refuse to overwrite an existing .o file with -o,
  4357. # though they will create one.
  4358. am_cv_prog_cc_c_o=yes
  4359. for am_i in 1 2; do
  4360. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4361. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4362. ac_status=$?
  4363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4364. (exit $ac_status); } \
  4365. && test -f conftest2.$ac_objext; then
  4366. : OK
  4367. else
  4368. am_cv_prog_cc_c_o=no
  4369. break
  4370. fi
  4371. done
  4372. rm -f core conftest*
  4373. unset am_i
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4376. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4377. if test "$am_cv_prog_cc_c_o" != yes; then
  4378. # Losing compiler, so override with the script.
  4379. # FIXME: It is wrong to rewrite CC.
  4380. # But if we don't then we get into trouble of one sort or another.
  4381. # A longer-term fix would be to have automake use am__CC in this case,
  4382. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4383. CC="$am_aux_dir/compile $CC"
  4384. fi
  4385. ac_ext=c
  4386. ac_cpp='$CPP $CPPFLAGS'
  4387. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4388. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4389. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4390. depcc="$CC" am_compiler_list=
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4392. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4393. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4397. # We make a subdir and do the tests there. Otherwise we can end up
  4398. # making bogus files that we don't know about and never remove. For
  4399. # instance it was reported that on HP-UX the gcc test will end up
  4400. # making a dummy file named 'D' -- because '-MD' means "put the output
  4401. # in D".
  4402. rm -rf conftest.dir
  4403. mkdir conftest.dir
  4404. # Copy depcomp to subdir because otherwise we won't find it if we're
  4405. # using a relative directory.
  4406. cp "$am_depcomp" conftest.dir
  4407. cd conftest.dir
  4408. # We will build objects and dependencies in a subdirectory because
  4409. # it helps to detect inapplicable dependency modes. For instance
  4410. # both Tru64's cc and ICC support -MD to output dependencies as a
  4411. # side effect of compilation, but ICC will put the dependencies in
  4412. # the current directory while Tru64 will put them in the object
  4413. # directory.
  4414. mkdir sub
  4415. am_cv_CC_dependencies_compiler_type=none
  4416. if test "$am_compiler_list" = ""; then
  4417. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4418. fi
  4419. am__universal=false
  4420. case " $depcc " in #(
  4421. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4422. esac
  4423. for depmode in $am_compiler_list; do
  4424. # Setup a source with many dependencies, because some compilers
  4425. # like to wrap large dependency lists on column 80 (with \), and
  4426. # we should not choose a depcomp mode which is confused by this.
  4427. #
  4428. # We need to recreate these files for each test, as the compiler may
  4429. # overwrite some of them when testing with obscure command lines.
  4430. # This happens at least with the AIX C compiler.
  4431. : > sub/conftest.c
  4432. for i in 1 2 3 4 5 6; do
  4433. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4434. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4435. # Solaris 10 /bin/sh.
  4436. echo '/* dummy */' > sub/conftst$i.h
  4437. done
  4438. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4439. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4440. # mode. It turns out that the SunPro C++ compiler does not properly
  4441. # handle '-M -o', and we need to detect this. Also, some Intel
  4442. # versions had trouble with output in subdirs.
  4443. am__obj=sub/conftest.${OBJEXT-o}
  4444. am__minus_obj="-o $am__obj"
  4445. case $depmode in
  4446. gcc)
  4447. # This depmode causes a compiler race in universal mode.
  4448. test "$am__universal" = false || continue
  4449. ;;
  4450. nosideeffect)
  4451. # After this tag, mechanisms are not by side-effect, so they'll
  4452. # only be used when explicitly requested.
  4453. if test "x$enable_dependency_tracking" = xyes; then
  4454. continue
  4455. else
  4456. break
  4457. fi
  4458. ;;
  4459. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4460. # This compiler won't grok '-c -o', but also, the minuso test has
  4461. # not run yet. These depmodes are late enough in the game, and
  4462. # so weak that their functioning should not be impacted.
  4463. am__obj=conftest.${OBJEXT-o}
  4464. am__minus_obj=
  4465. ;;
  4466. none) break ;;
  4467. esac
  4468. if depmode=$depmode \
  4469. source=sub/conftest.c object=$am__obj \
  4470. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4471. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4472. >/dev/null 2>conftest.err &&
  4473. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4474. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4475. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4476. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4477. # icc doesn't choke on unknown options, it will just issue warnings
  4478. # or remarks (even with -Werror). So we grep stderr for any message
  4479. # that says an option was ignored or not supported.
  4480. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4481. # icc: Command line warning: ignoring option '-M'; no argument required
  4482. # The diagnosis changed in icc 8.0:
  4483. # icc: Command line remark: option '-MP' not supported
  4484. if (grep 'ignoring option' conftest.err ||
  4485. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4486. am_cv_CC_dependencies_compiler_type=$depmode
  4487. break
  4488. fi
  4489. fi
  4490. done
  4491. cd ..
  4492. rm -rf conftest.dir
  4493. else
  4494. am_cv_CC_dependencies_compiler_type=none
  4495. fi
  4496. fi
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4498. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4499. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4500. if
  4501. test "x$enable_dependency_tracking" != xno \
  4502. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4503. am__fastdepCC_TRUE=
  4504. am__fastdepCC_FALSE='#'
  4505. else
  4506. am__fastdepCC_TRUE='#'
  4507. am__fastdepCC_FALSE=
  4508. fi
  4509. if test -n "$ac_tool_prefix"; then
  4510. for ac_prog in ar lib "link -lib"
  4511. do
  4512. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4513. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4515. $as_echo_n "checking for $ac_word... " >&6; }
  4516. if ${ac_cv_prog_AR+:} false; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. if test -n "$AR"; then
  4520. ac_cv_prog_AR="$AR" # Let the user override the test.
  4521. else
  4522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4523. for as_dir in $PATH
  4524. do
  4525. IFS=$as_save_IFS
  4526. test -z "$as_dir" && as_dir=.
  4527. for ac_exec_ext in '' $ac_executable_extensions; do
  4528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4529. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4531. break 2
  4532. fi
  4533. done
  4534. done
  4535. IFS=$as_save_IFS
  4536. fi
  4537. fi
  4538. AR=$ac_cv_prog_AR
  4539. if test -n "$AR"; then
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4541. $as_echo "$AR" >&6; }
  4542. else
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4544. $as_echo "no" >&6; }
  4545. fi
  4546. test -n "$AR" && break
  4547. done
  4548. fi
  4549. if test -z "$AR"; then
  4550. ac_ct_AR=$AR
  4551. for ac_prog in ar lib "link -lib"
  4552. do
  4553. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4554. set dummy $ac_prog; ac_word=$2
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4556. $as_echo_n "checking for $ac_word... " >&6; }
  4557. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4558. $as_echo_n "(cached) " >&6
  4559. else
  4560. if test -n "$ac_ct_AR"; then
  4561. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4562. else
  4563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4564. for as_dir in $PATH
  4565. do
  4566. IFS=$as_save_IFS
  4567. test -z "$as_dir" && as_dir=.
  4568. for ac_exec_ext in '' $ac_executable_extensions; do
  4569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4570. ac_cv_prog_ac_ct_AR="$ac_prog"
  4571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4572. break 2
  4573. fi
  4574. done
  4575. done
  4576. IFS=$as_save_IFS
  4577. fi
  4578. fi
  4579. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4580. if test -n "$ac_ct_AR"; then
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4582. $as_echo "$ac_ct_AR" >&6; }
  4583. else
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4585. $as_echo "no" >&6; }
  4586. fi
  4587. test -n "$ac_ct_AR" && break
  4588. done
  4589. if test "x$ac_ct_AR" = x; then
  4590. AR="false"
  4591. else
  4592. case $cross_compiling:$ac_tool_warned in
  4593. yes:)
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4596. ac_tool_warned=yes ;;
  4597. esac
  4598. AR=$ac_ct_AR
  4599. fi
  4600. fi
  4601. : ${AR=ar}
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4603. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4604. if ${am_cv_ar_interface+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. ac_ext=c
  4608. ac_cpp='$CPP $CPPFLAGS'
  4609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4612. am_cv_ar_interface=ar
  4613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end confdefs.h. */
  4615. int some_variable = 0;
  4616. _ACEOF
  4617. if ac_fn_c_try_compile "$LINENO"; then :
  4618. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4619. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4620. (eval $am_ar_try) 2>&5
  4621. ac_status=$?
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4623. test $ac_status = 0; }
  4624. if test "$ac_status" -eq 0; then
  4625. am_cv_ar_interface=ar
  4626. else
  4627. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4628. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4629. (eval $am_ar_try) 2>&5
  4630. ac_status=$?
  4631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4632. test $ac_status = 0; }
  4633. if test "$ac_status" -eq 0; then
  4634. am_cv_ar_interface=lib
  4635. else
  4636. am_cv_ar_interface=unknown
  4637. fi
  4638. fi
  4639. rm -f conftest.lib libconftest.a
  4640. fi
  4641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4642. ac_ext=c
  4643. ac_cpp='$CPP $CPPFLAGS'
  4644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4647. fi
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4649. $as_echo "$am_cv_ar_interface" >&6; }
  4650. case $am_cv_ar_interface in
  4651. ar)
  4652. ;;
  4653. lib)
  4654. # Microsoft lib, so override with the ar-lib wrapper script.
  4655. # FIXME: It is wrong to rewrite AR.
  4656. # But if we don't then we get into trouble of one sort or another.
  4657. # A longer-term fix would be to have automake use am__AR in this case,
  4658. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4659. # similar.
  4660. AR="$am_aux_dir/ar-lib $AR"
  4661. ;;
  4662. unknown)
  4663. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4664. ;;
  4665. esac
  4666. case `pwd` in
  4667. *\ * | *\ *)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4669. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4670. esac
  4671. macro_version='2.4.6'
  4672. macro_revision='2.4.6'
  4673. ltmain=$ac_aux_dir/ltmain.sh
  4674. # Backslashify metacharacters that are still active within
  4675. # double-quoted strings.
  4676. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4677. # Same as above, but do not quote variable references.
  4678. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4679. # Sed substitution to delay expansion of an escaped shell variable in a
  4680. # double_quote_subst'ed string.
  4681. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4682. # Sed substitution to delay expansion of an escaped single quote.
  4683. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4684. # Sed substitution to avoid accidental globbing in evaled expressions
  4685. no_glob_subst='s/\*/\\\*/g'
  4686. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4687. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4688. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4690. $as_echo_n "checking how to print strings... " >&6; }
  4691. # Test print first, because it will be a builtin if present.
  4692. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4693. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4694. ECHO='print -r --'
  4695. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4696. ECHO='printf %s\n'
  4697. else
  4698. # Use this function as a fallback that always works.
  4699. func_fallback_echo ()
  4700. {
  4701. eval 'cat <<_LTECHO_EOF
  4702. $1
  4703. _LTECHO_EOF'
  4704. }
  4705. ECHO='func_fallback_echo'
  4706. fi
  4707. # func_echo_all arg...
  4708. # Invoke $ECHO with all args, space-separated.
  4709. func_echo_all ()
  4710. {
  4711. $ECHO ""
  4712. }
  4713. case $ECHO in
  4714. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4715. $as_echo "printf" >&6; } ;;
  4716. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4717. $as_echo "print -r" >&6; } ;;
  4718. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4719. $as_echo "cat" >&6; } ;;
  4720. esac
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4722. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4723. if ${ac_cv_path_SED+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4727. for ac_i in 1 2 3 4 5 6 7; do
  4728. ac_script="$ac_script$as_nl$ac_script"
  4729. done
  4730. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4731. { ac_script=; unset ac_script;}
  4732. if test -z "$SED"; then
  4733. ac_path_SED_found=false
  4734. # Loop through the user's path and test for each of PROGNAME-LIST
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_prog in sed gsed; do
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4743. as_fn_executable_p "$ac_path_SED" || continue
  4744. # Check for GNU ac_path_SED and select it if it is found.
  4745. # Check for GNU $ac_path_SED
  4746. case `"$ac_path_SED" --version 2>&1` in
  4747. *GNU*)
  4748. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4749. *)
  4750. ac_count=0
  4751. $as_echo_n 0123456789 >"conftest.in"
  4752. while :
  4753. do
  4754. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4755. mv "conftest.tmp" "conftest.in"
  4756. cp "conftest.in" "conftest.nl"
  4757. $as_echo '' >> "conftest.nl"
  4758. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4759. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4760. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4761. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4762. # Best one so far, save it but keep looking for a better one
  4763. ac_cv_path_SED="$ac_path_SED"
  4764. ac_path_SED_max=$ac_count
  4765. fi
  4766. # 10*(2^10) chars as input seems more than enough
  4767. test $ac_count -gt 10 && break
  4768. done
  4769. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4770. esac
  4771. $ac_path_SED_found && break 3
  4772. done
  4773. done
  4774. done
  4775. IFS=$as_save_IFS
  4776. if test -z "$ac_cv_path_SED"; then
  4777. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4778. fi
  4779. else
  4780. ac_cv_path_SED=$SED
  4781. fi
  4782. fi
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4784. $as_echo "$ac_cv_path_SED" >&6; }
  4785. SED="$ac_cv_path_SED"
  4786. rm -f conftest.sed
  4787. test -z "$SED" && SED=sed
  4788. Xsed="$SED -e 1s/^X//"
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4790. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4791. if ${ac_cv_path_GREP+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. if test -z "$GREP"; then
  4795. ac_path_GREP_found=false
  4796. # Loop through the user's path and test for each of PROGNAME-LIST
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4799. do
  4800. IFS=$as_save_IFS
  4801. test -z "$as_dir" && as_dir=.
  4802. for ac_prog in grep ggrep; do
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4805. as_fn_executable_p "$ac_path_GREP" || continue
  4806. # Check for GNU ac_path_GREP and select it if it is found.
  4807. # Check for GNU $ac_path_GREP
  4808. case `"$ac_path_GREP" --version 2>&1` in
  4809. *GNU*)
  4810. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4811. *)
  4812. ac_count=0
  4813. $as_echo_n 0123456789 >"conftest.in"
  4814. while :
  4815. do
  4816. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4817. mv "conftest.tmp" "conftest.in"
  4818. cp "conftest.in" "conftest.nl"
  4819. $as_echo 'GREP' >> "conftest.nl"
  4820. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4821. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4822. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4823. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4824. # Best one so far, save it but keep looking for a better one
  4825. ac_cv_path_GREP="$ac_path_GREP"
  4826. ac_path_GREP_max=$ac_count
  4827. fi
  4828. # 10*(2^10) chars as input seems more than enough
  4829. test $ac_count -gt 10 && break
  4830. done
  4831. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4832. esac
  4833. $ac_path_GREP_found && break 3
  4834. done
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. if test -z "$ac_cv_path_GREP"; then
  4839. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4840. fi
  4841. else
  4842. ac_cv_path_GREP=$GREP
  4843. fi
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4846. $as_echo "$ac_cv_path_GREP" >&6; }
  4847. GREP="$ac_cv_path_GREP"
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4849. $as_echo_n "checking for egrep... " >&6; }
  4850. if ${ac_cv_path_EGREP+:} false; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4854. then ac_cv_path_EGREP="$GREP -E"
  4855. else
  4856. if test -z "$EGREP"; then
  4857. ac_path_EGREP_found=false
  4858. # Loop through the user's path and test for each of PROGNAME-LIST
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_prog in egrep; do
  4865. for ac_exec_ext in '' $ac_executable_extensions; do
  4866. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4867. as_fn_executable_p "$ac_path_EGREP" || continue
  4868. # Check for GNU ac_path_EGREP and select it if it is found.
  4869. # Check for GNU $ac_path_EGREP
  4870. case `"$ac_path_EGREP" --version 2>&1` in
  4871. *GNU*)
  4872. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4873. *)
  4874. ac_count=0
  4875. $as_echo_n 0123456789 >"conftest.in"
  4876. while :
  4877. do
  4878. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4879. mv "conftest.tmp" "conftest.in"
  4880. cp "conftest.in" "conftest.nl"
  4881. $as_echo 'EGREP' >> "conftest.nl"
  4882. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4883. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4884. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4885. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4886. # Best one so far, save it but keep looking for a better one
  4887. ac_cv_path_EGREP="$ac_path_EGREP"
  4888. ac_path_EGREP_max=$ac_count
  4889. fi
  4890. # 10*(2^10) chars as input seems more than enough
  4891. test $ac_count -gt 10 && break
  4892. done
  4893. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4894. esac
  4895. $ac_path_EGREP_found && break 3
  4896. done
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. if test -z "$ac_cv_path_EGREP"; then
  4901. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4902. fi
  4903. else
  4904. ac_cv_path_EGREP=$EGREP
  4905. fi
  4906. fi
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4909. $as_echo "$ac_cv_path_EGREP" >&6; }
  4910. EGREP="$ac_cv_path_EGREP"
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4912. $as_echo_n "checking for fgrep... " >&6; }
  4913. if ${ac_cv_path_FGREP+:} false; then :
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4917. then ac_cv_path_FGREP="$GREP -F"
  4918. else
  4919. if test -z "$FGREP"; then
  4920. ac_path_FGREP_found=false
  4921. # Loop through the user's path and test for each of PROGNAME-LIST
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_prog in fgrep; do
  4928. for ac_exec_ext in '' $ac_executable_extensions; do
  4929. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4930. as_fn_executable_p "$ac_path_FGREP" || continue
  4931. # Check for GNU ac_path_FGREP and select it if it is found.
  4932. # Check for GNU $ac_path_FGREP
  4933. case `"$ac_path_FGREP" --version 2>&1` in
  4934. *GNU*)
  4935. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4936. *)
  4937. ac_count=0
  4938. $as_echo_n 0123456789 >"conftest.in"
  4939. while :
  4940. do
  4941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4942. mv "conftest.tmp" "conftest.in"
  4943. cp "conftest.in" "conftest.nl"
  4944. $as_echo 'FGREP' >> "conftest.nl"
  4945. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4947. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4948. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4949. # Best one so far, save it but keep looking for a better one
  4950. ac_cv_path_FGREP="$ac_path_FGREP"
  4951. ac_path_FGREP_max=$ac_count
  4952. fi
  4953. # 10*(2^10) chars as input seems more than enough
  4954. test $ac_count -gt 10 && break
  4955. done
  4956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4957. esac
  4958. $ac_path_FGREP_found && break 3
  4959. done
  4960. done
  4961. done
  4962. IFS=$as_save_IFS
  4963. if test -z "$ac_cv_path_FGREP"; then
  4964. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4965. fi
  4966. else
  4967. ac_cv_path_FGREP=$FGREP
  4968. fi
  4969. fi
  4970. fi
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4972. $as_echo "$ac_cv_path_FGREP" >&6; }
  4973. FGREP="$ac_cv_path_FGREP"
  4974. test -z "$GREP" && GREP=grep
  4975. # Check whether --with-gnu-ld was given.
  4976. if test "${with_gnu_ld+set}" = set; then :
  4977. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4978. else
  4979. with_gnu_ld=no
  4980. fi
  4981. ac_prog=ld
  4982. if test yes = "$GCC"; then
  4983. # Check if gcc -print-prog-name=ld gives a path.
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4985. $as_echo_n "checking for ld used by $CC... " >&6; }
  4986. case $host in
  4987. *-*-mingw*)
  4988. # gcc leaves a trailing carriage return, which upsets mingw
  4989. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4990. *)
  4991. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4992. esac
  4993. case $ac_prog in
  4994. # Accept absolute paths.
  4995. [\\/]* | ?:[\\/]*)
  4996. re_direlt='/[^/][^/]*/\.\./'
  4997. # Canonicalize the pathname of ld
  4998. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4999. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5000. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5001. done
  5002. test -z "$LD" && LD=$ac_prog
  5003. ;;
  5004. "")
  5005. # If it fails, then pretend we aren't using GCC.
  5006. ac_prog=ld
  5007. ;;
  5008. *)
  5009. # If it is relative, then search for the first ld in PATH.
  5010. with_gnu_ld=unknown
  5011. ;;
  5012. esac
  5013. elif test yes = "$with_gnu_ld"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5015. $as_echo_n "checking for GNU ld... " >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5018. $as_echo_n "checking for non-GNU ld... " >&6; }
  5019. fi
  5020. if ${lt_cv_path_LD+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -z "$LD"; then
  5024. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5025. for ac_dir in $PATH; do
  5026. IFS=$lt_save_ifs
  5027. test -z "$ac_dir" && ac_dir=.
  5028. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5029. lt_cv_path_LD=$ac_dir/$ac_prog
  5030. # Check to see if the program is GNU ld. I'd rather use --version,
  5031. # but apparently some variants of GNU ld only accept -v.
  5032. # Break only if it was the GNU/non-GNU ld that we prefer.
  5033. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5034. *GNU* | *'with BFD'*)
  5035. test no != "$with_gnu_ld" && break
  5036. ;;
  5037. *)
  5038. test yes != "$with_gnu_ld" && break
  5039. ;;
  5040. esac
  5041. fi
  5042. done
  5043. IFS=$lt_save_ifs
  5044. else
  5045. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5046. fi
  5047. fi
  5048. LD=$lt_cv_path_LD
  5049. if test -n "$LD"; then
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5051. $as_echo "$LD" >&6; }
  5052. else
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5054. $as_echo "no" >&6; }
  5055. fi
  5056. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5058. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5059. if ${lt_cv_prog_gnu_ld+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5063. case `$LD -v 2>&1 </dev/null` in
  5064. *GNU* | *'with BFD'*)
  5065. lt_cv_prog_gnu_ld=yes
  5066. ;;
  5067. *)
  5068. lt_cv_prog_gnu_ld=no
  5069. ;;
  5070. esac
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5073. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5074. with_gnu_ld=$lt_cv_prog_gnu_ld
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5076. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5077. if ${lt_cv_path_NM+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. if test -n "$NM"; then
  5081. # Let the user override the test.
  5082. lt_cv_path_NM=$NM
  5083. else
  5084. lt_nm_to_check=${ac_tool_prefix}nm
  5085. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5086. lt_nm_to_check="$lt_nm_to_check nm"
  5087. fi
  5088. for lt_tmp_nm in $lt_nm_to_check; do
  5089. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5090. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5091. IFS=$lt_save_ifs
  5092. test -z "$ac_dir" && ac_dir=.
  5093. tmp_nm=$ac_dir/$lt_tmp_nm
  5094. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5095. # Check to see if the nm accepts a BSD-compat flag.
  5096. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5097. # nm: unknown option "B" ignored
  5098. # Tru64's nm complains that /dev/null is an invalid object file
  5099. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5100. case $build_os in
  5101. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5102. *) lt_bad_file=/dev/null ;;
  5103. esac
  5104. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5105. *$lt_bad_file* | *'Invalid file or object type'*)
  5106. lt_cv_path_NM="$tmp_nm -B"
  5107. break 2
  5108. ;;
  5109. *)
  5110. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5111. */dev/null*)
  5112. lt_cv_path_NM="$tmp_nm -p"
  5113. break 2
  5114. ;;
  5115. *)
  5116. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5117. continue # so that we can try to find one that supports BSD flags
  5118. ;;
  5119. esac
  5120. ;;
  5121. esac
  5122. fi
  5123. done
  5124. IFS=$lt_save_ifs
  5125. done
  5126. : ${lt_cv_path_NM=no}
  5127. fi
  5128. fi
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5130. $as_echo "$lt_cv_path_NM" >&6; }
  5131. if test no != "$lt_cv_path_NM"; then
  5132. NM=$lt_cv_path_NM
  5133. else
  5134. # Didn't find any BSD compatible name lister, look for dumpbin.
  5135. if test -n "$DUMPBIN"; then :
  5136. # Let the user override the test.
  5137. else
  5138. if test -n "$ac_tool_prefix"; then
  5139. for ac_prog in dumpbin "link -dump"
  5140. do
  5141. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5142. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5144. $as_echo_n "checking for $ac_word... " >&6; }
  5145. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. if test -n "$DUMPBIN"; then
  5149. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5150. else
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. test -z "$as_dir" && as_dir=.
  5156. for ac_exec_ext in '' $ac_executable_extensions; do
  5157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5158. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5160. break 2
  5161. fi
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. fi
  5166. fi
  5167. DUMPBIN=$ac_cv_prog_DUMPBIN
  5168. if test -n "$DUMPBIN"; then
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5170. $as_echo "$DUMPBIN" >&6; }
  5171. else
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5173. $as_echo "no" >&6; }
  5174. fi
  5175. test -n "$DUMPBIN" && break
  5176. done
  5177. fi
  5178. if test -z "$DUMPBIN"; then
  5179. ac_ct_DUMPBIN=$DUMPBIN
  5180. for ac_prog in dumpbin "link -dump"
  5181. do
  5182. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5183. set dummy $ac_prog; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. if test -n "$ac_ct_DUMPBIN"; then
  5190. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5191. else
  5192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5193. for as_dir in $PATH
  5194. do
  5195. IFS=$as_save_IFS
  5196. test -z "$as_dir" && as_dir=.
  5197. for ac_exec_ext in '' $ac_executable_extensions; do
  5198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5199. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5201. break 2
  5202. fi
  5203. done
  5204. done
  5205. IFS=$as_save_IFS
  5206. fi
  5207. fi
  5208. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5209. if test -n "$ac_ct_DUMPBIN"; then
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5211. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5214. $as_echo "no" >&6; }
  5215. fi
  5216. test -n "$ac_ct_DUMPBIN" && break
  5217. done
  5218. if test "x$ac_ct_DUMPBIN" = x; then
  5219. DUMPBIN=":"
  5220. else
  5221. case $cross_compiling:$ac_tool_warned in
  5222. yes:)
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5225. ac_tool_warned=yes ;;
  5226. esac
  5227. DUMPBIN=$ac_ct_DUMPBIN
  5228. fi
  5229. fi
  5230. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5231. *COFF*)
  5232. DUMPBIN="$DUMPBIN -symbols -headers"
  5233. ;;
  5234. *)
  5235. DUMPBIN=:
  5236. ;;
  5237. esac
  5238. fi
  5239. if test : != "$DUMPBIN"; then
  5240. NM=$DUMPBIN
  5241. fi
  5242. fi
  5243. test -z "$NM" && NM=nm
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5245. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5246. if ${lt_cv_nm_interface+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. lt_cv_nm_interface="BSD nm"
  5250. echo "int some_variable = 0;" > conftest.$ac_ext
  5251. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5252. (eval "$ac_compile" 2>conftest.err)
  5253. cat conftest.err >&5
  5254. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5255. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5256. cat conftest.err >&5
  5257. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5258. cat conftest.out >&5
  5259. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5260. lt_cv_nm_interface="MS dumpbin"
  5261. fi
  5262. rm -f conftest*
  5263. fi
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5265. $as_echo "$lt_cv_nm_interface" >&6; }
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5267. $as_echo_n "checking whether ln -s works... " >&6; }
  5268. LN_S=$as_ln_s
  5269. if test "$LN_S" = "ln -s"; then
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5271. $as_echo "yes" >&6; }
  5272. else
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5274. $as_echo "no, using $LN_S" >&6; }
  5275. fi
  5276. # find the maximum length of command line arguments
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5278. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5279. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. i=0
  5283. teststring=ABCD
  5284. case $build_os in
  5285. msdosdjgpp*)
  5286. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5287. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5288. # during glob expansion). Even if it were fixed, the result of this
  5289. # check would be larger than it should be.
  5290. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5291. ;;
  5292. gnu*)
  5293. # Under GNU Hurd, this test is not required because there is
  5294. # no limit to the length of command line arguments.
  5295. # Libtool will interpret -1 as no limit whatsoever
  5296. lt_cv_sys_max_cmd_len=-1;
  5297. ;;
  5298. cygwin* | mingw* | cegcc*)
  5299. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5300. # about 5 minutes as the teststring grows exponentially.
  5301. # Worse, since 9x/ME are not pre-emptively multitasking,
  5302. # you end up with a "frozen" computer, even though with patience
  5303. # the test eventually succeeds (with a max line length of 256k).
  5304. # Instead, let's just punt: use the minimum linelength reported by
  5305. # all of the supported platforms: 8192 (on NT/2K/XP).
  5306. lt_cv_sys_max_cmd_len=8192;
  5307. ;;
  5308. mint*)
  5309. # On MiNT this can take a long time and run out of memory.
  5310. lt_cv_sys_max_cmd_len=8192;
  5311. ;;
  5312. amigaos*)
  5313. # On AmigaOS with pdksh, this test takes hours, literally.
  5314. # So we just punt and use a minimum line length of 8192.
  5315. lt_cv_sys_max_cmd_len=8192;
  5316. ;;
  5317. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5318. # This has been around since 386BSD, at least. Likely further.
  5319. if test -x /sbin/sysctl; then
  5320. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5321. elif test -x /usr/sbin/sysctl; then
  5322. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5323. else
  5324. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5325. fi
  5326. # And add a safety zone
  5327. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5328. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5329. ;;
  5330. interix*)
  5331. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5332. lt_cv_sys_max_cmd_len=196608
  5333. ;;
  5334. os2*)
  5335. # The test takes a long time on OS/2.
  5336. lt_cv_sys_max_cmd_len=8192
  5337. ;;
  5338. osf*)
  5339. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5340. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5341. # nice to cause kernel panics so lets avoid the loop below.
  5342. # First set a reasonable default.
  5343. lt_cv_sys_max_cmd_len=16384
  5344. #
  5345. if test -x /sbin/sysconfig; then
  5346. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5347. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5348. esac
  5349. fi
  5350. ;;
  5351. sco3.2v5*)
  5352. lt_cv_sys_max_cmd_len=102400
  5353. ;;
  5354. sysv5* | sco5v6* | sysv4.2uw2*)
  5355. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5356. if test -n "$kargmax"; then
  5357. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5358. else
  5359. lt_cv_sys_max_cmd_len=32768
  5360. fi
  5361. ;;
  5362. *)
  5363. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5364. if test -n "$lt_cv_sys_max_cmd_len" && \
  5365. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5367. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5368. else
  5369. # Make teststring a little bigger before we do anything with it.
  5370. # a 1K string should be a reasonable start.
  5371. for i in 1 2 3 4 5 6 7 8; do
  5372. teststring=$teststring$teststring
  5373. done
  5374. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5375. # If test is not a shell built-in, we'll probably end up computing a
  5376. # maximum length that is only half of the actual maximum length, but
  5377. # we can't tell.
  5378. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5379. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5380. test 17 != "$i" # 1/2 MB should be enough
  5381. do
  5382. i=`expr $i + 1`
  5383. teststring=$teststring$teststring
  5384. done
  5385. # Only check the string length outside the loop.
  5386. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5387. teststring=
  5388. # Add a significant safety factor because C++ compilers can tack on
  5389. # massive amounts of additional arguments before passing them to the
  5390. # linker. It appears as though 1/2 is a usable value.
  5391. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5392. fi
  5393. ;;
  5394. esac
  5395. fi
  5396. if test -n "$lt_cv_sys_max_cmd_len"; then
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5398. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5399. else
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5401. $as_echo "none" >&6; }
  5402. fi
  5403. max_cmd_len=$lt_cv_sys_max_cmd_len
  5404. : ${CP="cp -f"}
  5405. : ${MV="mv -f"}
  5406. : ${RM="rm -f"}
  5407. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5408. lt_unset=unset
  5409. else
  5410. lt_unset=false
  5411. fi
  5412. # test EBCDIC or ASCII
  5413. case `echo X|tr X '\101'` in
  5414. A) # ASCII based system
  5415. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5416. lt_SP2NL='tr \040 \012'
  5417. lt_NL2SP='tr \015\012 \040\040'
  5418. ;;
  5419. *) # EBCDIC based system
  5420. lt_SP2NL='tr \100 \n'
  5421. lt_NL2SP='tr \r\n \100\100'
  5422. ;;
  5423. esac
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5425. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5426. if ${lt_cv_to_host_file_cmd+:} false; then :
  5427. $as_echo_n "(cached) " >&6
  5428. else
  5429. case $host in
  5430. *-*-mingw* )
  5431. case $build in
  5432. *-*-mingw* ) # actually msys
  5433. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5434. ;;
  5435. *-*-cygwin* )
  5436. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5437. ;;
  5438. * ) # otherwise, assume *nix
  5439. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5440. ;;
  5441. esac
  5442. ;;
  5443. *-*-cygwin* )
  5444. case $build in
  5445. *-*-mingw* ) # actually msys
  5446. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5447. ;;
  5448. *-*-cygwin* )
  5449. lt_cv_to_host_file_cmd=func_convert_file_noop
  5450. ;;
  5451. * ) # otherwise, assume *nix
  5452. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5453. ;;
  5454. esac
  5455. ;;
  5456. * ) # unhandled hosts (and "normal" native builds)
  5457. lt_cv_to_host_file_cmd=func_convert_file_noop
  5458. ;;
  5459. esac
  5460. fi
  5461. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5463. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5465. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5466. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5467. $as_echo_n "(cached) " >&6
  5468. else
  5469. #assume ordinary cross tools, or native build.
  5470. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5471. case $host in
  5472. *-*-mingw* )
  5473. case $build in
  5474. *-*-mingw* ) # actually msys
  5475. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5476. ;;
  5477. esac
  5478. ;;
  5479. esac
  5480. fi
  5481. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5483. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5485. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5486. if ${lt_cv_ld_reload_flag+:} false; then :
  5487. $as_echo_n "(cached) " >&6
  5488. else
  5489. lt_cv_ld_reload_flag='-r'
  5490. fi
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5492. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5493. reload_flag=$lt_cv_ld_reload_flag
  5494. case $reload_flag in
  5495. "" | " "*) ;;
  5496. *) reload_flag=" $reload_flag" ;;
  5497. esac
  5498. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5499. case $host_os in
  5500. cygwin* | mingw* | pw32* | cegcc*)
  5501. if test yes != "$GCC"; then
  5502. reload_cmds=false
  5503. fi
  5504. ;;
  5505. darwin*)
  5506. if test yes = "$GCC"; then
  5507. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5508. else
  5509. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5510. fi
  5511. ;;
  5512. esac
  5513. if test -n "$ac_tool_prefix"; then
  5514. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5515. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -n "$OBJDUMP"; then
  5522. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5531. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. fi
  5539. fi
  5540. OBJDUMP=$ac_cv_prog_OBJDUMP
  5541. if test -n "$OBJDUMP"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5543. $as_echo "$OBJDUMP" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi
  5548. fi
  5549. if test -z "$ac_cv_prog_OBJDUMP"; then
  5550. ac_ct_OBJDUMP=$OBJDUMP
  5551. # Extract the first word of "objdump", so it can be a program name with args.
  5552. set dummy objdump; ac_word=$2
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5554. $as_echo_n "checking for $ac_word... " >&6; }
  5555. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5556. $as_echo_n "(cached) " >&6
  5557. else
  5558. if test -n "$ac_ct_OBJDUMP"; then
  5559. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5560. else
  5561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5562. for as_dir in $PATH
  5563. do
  5564. IFS=$as_save_IFS
  5565. test -z "$as_dir" && as_dir=.
  5566. for ac_exec_ext in '' $ac_executable_extensions; do
  5567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5568. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5570. break 2
  5571. fi
  5572. done
  5573. done
  5574. IFS=$as_save_IFS
  5575. fi
  5576. fi
  5577. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5578. if test -n "$ac_ct_OBJDUMP"; then
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5580. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5581. else
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5583. $as_echo "no" >&6; }
  5584. fi
  5585. if test "x$ac_ct_OBJDUMP" = x; then
  5586. OBJDUMP="false"
  5587. else
  5588. case $cross_compiling:$ac_tool_warned in
  5589. yes:)
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5592. ac_tool_warned=yes ;;
  5593. esac
  5594. OBJDUMP=$ac_ct_OBJDUMP
  5595. fi
  5596. else
  5597. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5598. fi
  5599. test -z "$OBJDUMP" && OBJDUMP=objdump
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5601. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5602. if ${lt_cv_deplibs_check_method+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5606. lt_cv_file_magic_test_file=
  5607. lt_cv_deplibs_check_method='unknown'
  5608. # Need to set the preceding variable on all platforms that support
  5609. # interlibrary dependencies.
  5610. # 'none' -- dependencies not supported.
  5611. # 'unknown' -- same as none, but documents that we really don't know.
  5612. # 'pass_all' -- all dependencies passed with no checks.
  5613. # 'test_compile' -- check by making test program.
  5614. # 'file_magic [[regex]]' -- check by looking for files in library path
  5615. # that responds to the $file_magic_cmd with a given extended regex.
  5616. # If you have 'file' or equivalent on your system and you're not sure
  5617. # whether 'pass_all' will *always* work, you probably want this one.
  5618. case $host_os in
  5619. aix[4-9]*)
  5620. lt_cv_deplibs_check_method=pass_all
  5621. ;;
  5622. beos*)
  5623. lt_cv_deplibs_check_method=pass_all
  5624. ;;
  5625. bsdi[45]*)
  5626. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5627. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5628. lt_cv_file_magic_test_file=/shlib/libc.so
  5629. ;;
  5630. cygwin*)
  5631. # func_win32_libid is a shell function defined in ltmain.sh
  5632. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5633. lt_cv_file_magic_cmd='func_win32_libid'
  5634. ;;
  5635. mingw* | pw32*)
  5636. # Base MSYS/MinGW do not provide the 'file' command needed by
  5637. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5638. # unless we find 'file', for example because we are cross-compiling.
  5639. if ( file / ) >/dev/null 2>&1; then
  5640. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5641. lt_cv_file_magic_cmd='func_win32_libid'
  5642. else
  5643. # Keep this pattern in sync with the one in func_win32_libid.
  5644. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5645. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5646. fi
  5647. ;;
  5648. cegcc*)
  5649. # use the weaker test based on 'objdump'. See mingw*.
  5650. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5651. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5652. ;;
  5653. darwin* | rhapsody*)
  5654. lt_cv_deplibs_check_method=pass_all
  5655. ;;
  5656. freebsd* | dragonfly*)
  5657. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5658. case $host_cpu in
  5659. i*86 )
  5660. # Not sure whether the presence of OpenBSD here was a mistake.
  5661. # Let's accept both of them until this is cleared up.
  5662. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5663. lt_cv_file_magic_cmd=/usr/bin/file
  5664. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5665. ;;
  5666. esac
  5667. else
  5668. lt_cv_deplibs_check_method=pass_all
  5669. fi
  5670. ;;
  5671. haiku*)
  5672. lt_cv_deplibs_check_method=pass_all
  5673. ;;
  5674. hpux10.20* | hpux11*)
  5675. lt_cv_file_magic_cmd=/usr/bin/file
  5676. case $host_cpu in
  5677. ia64*)
  5678. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5679. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5680. ;;
  5681. hppa*64*)
  5682. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5683. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5684. ;;
  5685. *)
  5686. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5687. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5688. ;;
  5689. esac
  5690. ;;
  5691. interix[3-9]*)
  5692. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5693. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5694. ;;
  5695. irix5* | irix6* | nonstopux*)
  5696. case $LD in
  5697. *-32|*"-32 ") libmagic=32-bit;;
  5698. *-n32|*"-n32 ") libmagic=N32;;
  5699. *-64|*"-64 ") libmagic=64-bit;;
  5700. *) libmagic=never-match;;
  5701. esac
  5702. lt_cv_deplibs_check_method=pass_all
  5703. ;;
  5704. # This must be glibc/ELF.
  5705. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5706. lt_cv_deplibs_check_method=pass_all
  5707. ;;
  5708. netbsd* | netbsdelf*-gnu)
  5709. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5710. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5711. else
  5712. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5713. fi
  5714. ;;
  5715. newos6*)
  5716. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5717. lt_cv_file_magic_cmd=/usr/bin/file
  5718. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5719. ;;
  5720. *nto* | *qnx*)
  5721. lt_cv_deplibs_check_method=pass_all
  5722. ;;
  5723. openbsd* | bitrig*)
  5724. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5725. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5726. else
  5727. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5728. fi
  5729. ;;
  5730. osf3* | osf4* | osf5*)
  5731. lt_cv_deplibs_check_method=pass_all
  5732. ;;
  5733. rdos*)
  5734. lt_cv_deplibs_check_method=pass_all
  5735. ;;
  5736. solaris*)
  5737. lt_cv_deplibs_check_method=pass_all
  5738. ;;
  5739. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. sysv4 | sysv4.3*)
  5743. case $host_vendor in
  5744. motorola)
  5745. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5746. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5747. ;;
  5748. ncr)
  5749. lt_cv_deplibs_check_method=pass_all
  5750. ;;
  5751. sequent)
  5752. lt_cv_file_magic_cmd='/bin/file'
  5753. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5754. ;;
  5755. sni)
  5756. lt_cv_file_magic_cmd='/bin/file'
  5757. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5758. lt_cv_file_magic_test_file=/lib/libc.so
  5759. ;;
  5760. siemens)
  5761. lt_cv_deplibs_check_method=pass_all
  5762. ;;
  5763. pc)
  5764. lt_cv_deplibs_check_method=pass_all
  5765. ;;
  5766. esac
  5767. ;;
  5768. tpf*)
  5769. lt_cv_deplibs_check_method=pass_all
  5770. ;;
  5771. os2*)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. esac
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5777. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5778. file_magic_glob=
  5779. want_nocaseglob=no
  5780. if test "$build" = "$host"; then
  5781. case $host_os in
  5782. mingw* | pw32*)
  5783. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5784. want_nocaseglob=yes
  5785. else
  5786. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5787. fi
  5788. ;;
  5789. esac
  5790. fi
  5791. file_magic_cmd=$lt_cv_file_magic_cmd
  5792. deplibs_check_method=$lt_cv_deplibs_check_method
  5793. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5794. if test -n "$ac_tool_prefix"; then
  5795. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5796. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5798. $as_echo_n "checking for $ac_word... " >&6; }
  5799. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. if test -n "$DLLTOOL"; then
  5803. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5804. else
  5805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5806. for as_dir in $PATH
  5807. do
  5808. IFS=$as_save_IFS
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5812. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5814. break 2
  5815. fi
  5816. done
  5817. done
  5818. IFS=$as_save_IFS
  5819. fi
  5820. fi
  5821. DLLTOOL=$ac_cv_prog_DLLTOOL
  5822. if test -n "$DLLTOOL"; then
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5824. $as_echo "$DLLTOOL" >&6; }
  5825. else
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5827. $as_echo "no" >&6; }
  5828. fi
  5829. fi
  5830. if test -z "$ac_cv_prog_DLLTOOL"; then
  5831. ac_ct_DLLTOOL=$DLLTOOL
  5832. # Extract the first word of "dlltool", so it can be a program name with args.
  5833. set dummy dlltool; ac_word=$2
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5835. $as_echo_n "checking for $ac_word... " >&6; }
  5836. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5837. $as_echo_n "(cached) " >&6
  5838. else
  5839. if test -n "$ac_ct_DLLTOOL"; then
  5840. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5841. else
  5842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5843. for as_dir in $PATH
  5844. do
  5845. IFS=$as_save_IFS
  5846. test -z "$as_dir" && as_dir=.
  5847. for ac_exec_ext in '' $ac_executable_extensions; do
  5848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5849. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5851. break 2
  5852. fi
  5853. done
  5854. done
  5855. IFS=$as_save_IFS
  5856. fi
  5857. fi
  5858. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5859. if test -n "$ac_ct_DLLTOOL"; then
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5861. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5862. else
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. $as_echo "no" >&6; }
  5865. fi
  5866. if test "x$ac_ct_DLLTOOL" = x; then
  5867. DLLTOOL="false"
  5868. else
  5869. case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875. DLLTOOL=$ac_ct_DLLTOOL
  5876. fi
  5877. else
  5878. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5879. fi
  5880. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5882. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5883. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5887. case $host_os in
  5888. cygwin* | mingw* | pw32* | cegcc*)
  5889. # two different shell functions defined in ltmain.sh;
  5890. # decide which one to use based on capabilities of $DLLTOOL
  5891. case `$DLLTOOL --help 2>&1` in
  5892. *--identify-strict*)
  5893. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5894. ;;
  5895. *)
  5896. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5897. ;;
  5898. esac
  5899. ;;
  5900. *)
  5901. # fallback: assume linklib IS sharedlib
  5902. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5903. ;;
  5904. esac
  5905. fi
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5907. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5908. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5909. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5910. if test -n "$ac_tool_prefix"; then
  5911. for ac_prog in ar
  5912. do
  5913. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5914. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if ${ac_cv_prog_AR+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$AR"; then
  5921. ac_cv_prog_AR="$AR" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5930. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. AR=$ac_cv_prog_AR
  5940. if test -n "$AR"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5942. $as_echo "$AR" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. test -n "$AR" && break
  5948. done
  5949. fi
  5950. if test -z "$AR"; then
  5951. ac_ct_AR=$AR
  5952. for ac_prog in ar
  5953. do
  5954. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5955. set dummy $ac_prog; ac_word=$2
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5957. $as_echo_n "checking for $ac_word... " >&6; }
  5958. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. if test -n "$ac_ct_AR"; then
  5962. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5963. else
  5964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5965. for as_dir in $PATH
  5966. do
  5967. IFS=$as_save_IFS
  5968. test -z "$as_dir" && as_dir=.
  5969. for ac_exec_ext in '' $ac_executable_extensions; do
  5970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5971. ac_cv_prog_ac_ct_AR="$ac_prog"
  5972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5973. break 2
  5974. fi
  5975. done
  5976. done
  5977. IFS=$as_save_IFS
  5978. fi
  5979. fi
  5980. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5981. if test -n "$ac_ct_AR"; then
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5983. $as_echo "$ac_ct_AR" >&6; }
  5984. else
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5986. $as_echo "no" >&6; }
  5987. fi
  5988. test -n "$ac_ct_AR" && break
  5989. done
  5990. if test "x$ac_ct_AR" = x; then
  5991. AR="false"
  5992. else
  5993. case $cross_compiling:$ac_tool_warned in
  5994. yes:)
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5997. ac_tool_warned=yes ;;
  5998. esac
  5999. AR=$ac_ct_AR
  6000. fi
  6001. fi
  6002. : ${AR=ar}
  6003. : ${AR_FLAGS=cru}
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6005. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6006. if ${lt_cv_ar_at_file+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. lt_cv_ar_at_file=no
  6010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end confdefs.h. */
  6012. int
  6013. main ()
  6014. {
  6015. ;
  6016. return 0;
  6017. }
  6018. _ACEOF
  6019. if ac_fn_c_try_compile "$LINENO"; then :
  6020. echo conftest.$ac_objext > conftest.lst
  6021. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6022. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6023. (eval $lt_ar_try) 2>&5
  6024. ac_status=$?
  6025. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6026. test $ac_status = 0; }
  6027. if test 0 -eq "$ac_status"; then
  6028. # Ensure the archiver fails upon bogus file names.
  6029. rm -f conftest.$ac_objext libconftest.a
  6030. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6031. (eval $lt_ar_try) 2>&5
  6032. ac_status=$?
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6034. test $ac_status = 0; }
  6035. if test 0 -ne "$ac_status"; then
  6036. lt_cv_ar_at_file=@
  6037. fi
  6038. fi
  6039. rm -f conftest.* libconftest.a
  6040. fi
  6041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6042. fi
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6044. $as_echo "$lt_cv_ar_at_file" >&6; }
  6045. if test no = "$lt_cv_ar_at_file"; then
  6046. archiver_list_spec=
  6047. else
  6048. archiver_list_spec=$lt_cv_ar_at_file
  6049. fi
  6050. if test -n "$ac_tool_prefix"; then
  6051. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6052. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6054. $as_echo_n "checking for $ac_word... " >&6; }
  6055. if ${ac_cv_prog_STRIP+:} false; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. if test -n "$STRIP"; then
  6059. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6060. else
  6061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6062. for as_dir in $PATH
  6063. do
  6064. IFS=$as_save_IFS
  6065. test -z "$as_dir" && as_dir=.
  6066. for ac_exec_ext in '' $ac_executable_extensions; do
  6067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6068. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6070. break 2
  6071. fi
  6072. done
  6073. done
  6074. IFS=$as_save_IFS
  6075. fi
  6076. fi
  6077. STRIP=$ac_cv_prog_STRIP
  6078. if test -n "$STRIP"; then
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6080. $as_echo "$STRIP" >&6; }
  6081. else
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6083. $as_echo "no" >&6; }
  6084. fi
  6085. fi
  6086. if test -z "$ac_cv_prog_STRIP"; then
  6087. ac_ct_STRIP=$STRIP
  6088. # Extract the first word of "strip", so it can be a program name with args.
  6089. set dummy strip; ac_word=$2
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6091. $as_echo_n "checking for $ac_word... " >&6; }
  6092. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. if test -n "$ac_ct_STRIP"; then
  6096. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6097. else
  6098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6099. for as_dir in $PATH
  6100. do
  6101. IFS=$as_save_IFS
  6102. test -z "$as_dir" && as_dir=.
  6103. for ac_exec_ext in '' $ac_executable_extensions; do
  6104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6105. ac_cv_prog_ac_ct_STRIP="strip"
  6106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6107. break 2
  6108. fi
  6109. done
  6110. done
  6111. IFS=$as_save_IFS
  6112. fi
  6113. fi
  6114. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6115. if test -n "$ac_ct_STRIP"; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6117. $as_echo "$ac_ct_STRIP" >&6; }
  6118. else
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6120. $as_echo "no" >&6; }
  6121. fi
  6122. if test "x$ac_ct_STRIP" = x; then
  6123. STRIP=":"
  6124. else
  6125. case $cross_compiling:$ac_tool_warned in
  6126. yes:)
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6129. ac_tool_warned=yes ;;
  6130. esac
  6131. STRIP=$ac_ct_STRIP
  6132. fi
  6133. else
  6134. STRIP="$ac_cv_prog_STRIP"
  6135. fi
  6136. test -z "$STRIP" && STRIP=:
  6137. if test -n "$ac_tool_prefix"; then
  6138. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6139. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if ${ac_cv_prog_RANLIB+:} false; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. if test -n "$RANLIB"; then
  6146. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6147. else
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6155. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. fi
  6163. fi
  6164. RANLIB=$ac_cv_prog_RANLIB
  6165. if test -n "$RANLIB"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6167. $as_echo "$RANLIB" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. fi
  6173. if test -z "$ac_cv_prog_RANLIB"; then
  6174. ac_ct_RANLIB=$RANLIB
  6175. # Extract the first word of "ranlib", so it can be a program name with args.
  6176. set dummy ranlib; ac_word=$2
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6178. $as_echo_n "checking for $ac_word... " >&6; }
  6179. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6180. $as_echo_n "(cached) " >&6
  6181. else
  6182. if test -n "$ac_ct_RANLIB"; then
  6183. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6184. else
  6185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6186. for as_dir in $PATH
  6187. do
  6188. IFS=$as_save_IFS
  6189. test -z "$as_dir" && as_dir=.
  6190. for ac_exec_ext in '' $ac_executable_extensions; do
  6191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6192. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6194. break 2
  6195. fi
  6196. done
  6197. done
  6198. IFS=$as_save_IFS
  6199. fi
  6200. fi
  6201. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6202. if test -n "$ac_ct_RANLIB"; then
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6204. $as_echo "$ac_ct_RANLIB" >&6; }
  6205. else
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6207. $as_echo "no" >&6; }
  6208. fi
  6209. if test "x$ac_ct_RANLIB" = x; then
  6210. RANLIB=":"
  6211. else
  6212. case $cross_compiling:$ac_tool_warned in
  6213. yes:)
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6216. ac_tool_warned=yes ;;
  6217. esac
  6218. RANLIB=$ac_ct_RANLIB
  6219. fi
  6220. else
  6221. RANLIB="$ac_cv_prog_RANLIB"
  6222. fi
  6223. test -z "$RANLIB" && RANLIB=:
  6224. # Determine commands to create old-style static archives.
  6225. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6226. old_postinstall_cmds='chmod 644 $oldlib'
  6227. old_postuninstall_cmds=
  6228. if test -n "$RANLIB"; then
  6229. case $host_os in
  6230. bitrig* | openbsd*)
  6231. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6232. ;;
  6233. *)
  6234. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6235. ;;
  6236. esac
  6237. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6238. fi
  6239. case $host_os in
  6240. darwin*)
  6241. lock_old_archive_extraction=yes ;;
  6242. *)
  6243. lock_old_archive_extraction=no ;;
  6244. esac
  6245. # If no C compiler was specified, use CC.
  6246. LTCC=${LTCC-"$CC"}
  6247. # If no C compiler flags were specified, use CFLAGS.
  6248. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6249. # Allow CC to be a program name with arguments.
  6250. compiler=$CC
  6251. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6253. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6254. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. # These are sane defaults that work on at least a few old systems.
  6258. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6259. # Character class describing NM global symbol codes.
  6260. symcode='[BCDEGRST]'
  6261. # Regexp to match symbols that can be accessed directly from C.
  6262. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6263. # Define system-specific variables.
  6264. case $host_os in
  6265. aix*)
  6266. symcode='[BCDT]'
  6267. ;;
  6268. cygwin* | mingw* | pw32* | cegcc*)
  6269. symcode='[ABCDGISTW]'
  6270. ;;
  6271. hpux*)
  6272. if test ia64 = "$host_cpu"; then
  6273. symcode='[ABCDEGRST]'
  6274. fi
  6275. ;;
  6276. irix* | nonstopux*)
  6277. symcode='[BCDEGRST]'
  6278. ;;
  6279. osf*)
  6280. symcode='[BCDEGQRST]'
  6281. ;;
  6282. solaris*)
  6283. symcode='[BDRT]'
  6284. ;;
  6285. sco3.2v5*)
  6286. symcode='[DT]'
  6287. ;;
  6288. sysv4.2uw2*)
  6289. symcode='[DT]'
  6290. ;;
  6291. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6292. symcode='[ABDT]'
  6293. ;;
  6294. sysv4)
  6295. symcode='[DFNSTU]'
  6296. ;;
  6297. esac
  6298. # If we're using GNU nm, then use its standard symbol codes.
  6299. case `$NM -V 2>&1` in
  6300. *GNU* | *'with BFD'*)
  6301. symcode='[ABCDGIRSTW]' ;;
  6302. esac
  6303. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6304. # Gets list of data symbols to import.
  6305. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6306. # Adjust the below global symbol transforms to fixup imported variables.
  6307. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6308. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6309. lt_c_name_lib_hook="\
  6310. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6311. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6312. else
  6313. # Disable hooks by default.
  6314. lt_cv_sys_global_symbol_to_import=
  6315. lt_cdecl_hook=
  6316. lt_c_name_hook=
  6317. lt_c_name_lib_hook=
  6318. fi
  6319. # Transform an extracted symbol line into a proper C declaration.
  6320. # Some systems (esp. on ia64) link data and code symbols differently,
  6321. # so use this general approach.
  6322. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6323. $lt_cdecl_hook\
  6324. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6325. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6326. # Transform an extracted symbol line into symbol name and symbol address
  6327. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6328. $lt_c_name_hook\
  6329. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6330. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6331. # Transform an extracted symbol line into symbol name with lib prefix and
  6332. # symbol address.
  6333. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6334. $lt_c_name_lib_hook\
  6335. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6336. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6337. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6338. # Handle CRLF in mingw tool chain
  6339. opt_cr=
  6340. case $build_os in
  6341. mingw*)
  6342. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6343. ;;
  6344. esac
  6345. # Try without a prefix underscore, then with it.
  6346. for ac_symprfx in "" "_"; do
  6347. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6348. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6349. # Write the raw and C identifiers.
  6350. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6351. # Fake it for dumpbin and say T for any non-static function,
  6352. # D for any global variable and I for any imported variable.
  6353. # Also find C++ and __fastcall symbols from MSVC++,
  6354. # which start with @ or ?.
  6355. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6356. " {last_section=section; section=\$ 3};"\
  6357. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6358. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6359. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6360. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6361. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6362. " \$ 0!~/External *\|/{next};"\
  6363. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6364. " {if(hide[section]) next};"\
  6365. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6366. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6367. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6368. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6369. " ' prfx=^$ac_symprfx"
  6370. else
  6371. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6372. fi
  6373. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6374. # Check to see that the pipe works correctly.
  6375. pipe_works=no
  6376. rm -f conftest*
  6377. cat > conftest.$ac_ext <<_LT_EOF
  6378. #ifdef __cplusplus
  6379. extern "C" {
  6380. #endif
  6381. char nm_test_var;
  6382. void nm_test_func(void);
  6383. void nm_test_func(void){}
  6384. #ifdef __cplusplus
  6385. }
  6386. #endif
  6387. int main(){nm_test_var='a';nm_test_func();return(0);}
  6388. _LT_EOF
  6389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6390. (eval $ac_compile) 2>&5
  6391. ac_status=$?
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6393. test $ac_status = 0; }; then
  6394. # Now try to grab the symbols.
  6395. nlist=conftest.nm
  6396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6397. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6398. ac_status=$?
  6399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6400. test $ac_status = 0; } && test -s "$nlist"; then
  6401. # Try sorting and uniquifying the output.
  6402. if sort "$nlist" | uniq > "$nlist"T; then
  6403. mv -f "$nlist"T "$nlist"
  6404. else
  6405. rm -f "$nlist"T
  6406. fi
  6407. # Make sure that we snagged all the symbols we need.
  6408. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6409. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6410. cat <<_LT_EOF > conftest.$ac_ext
  6411. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6412. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6413. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6414. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6415. # define LT_DLSYM_CONST
  6416. #elif defined __osf__
  6417. /* This system does not cope well with relocations in const data. */
  6418. # define LT_DLSYM_CONST
  6419. #else
  6420. # define LT_DLSYM_CONST const
  6421. #endif
  6422. #ifdef __cplusplus
  6423. extern "C" {
  6424. #endif
  6425. _LT_EOF
  6426. # Now generate the symbol file.
  6427. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6428. cat <<_LT_EOF >> conftest.$ac_ext
  6429. /* The mapping between symbol names and symbols. */
  6430. LT_DLSYM_CONST struct {
  6431. const char *name;
  6432. void *address;
  6433. }
  6434. lt__PROGRAM__LTX_preloaded_symbols[] =
  6435. {
  6436. { "@PROGRAM@", (void *) 0 },
  6437. _LT_EOF
  6438. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6439. cat <<\_LT_EOF >> conftest.$ac_ext
  6440. {0, (void *) 0}
  6441. };
  6442. /* This works around a problem in FreeBSD linker */
  6443. #ifdef FREEBSD_WORKAROUND
  6444. static const void *lt_preloaded_setup() {
  6445. return lt__PROGRAM__LTX_preloaded_symbols;
  6446. }
  6447. #endif
  6448. #ifdef __cplusplus
  6449. }
  6450. #endif
  6451. _LT_EOF
  6452. # Now try linking the two files.
  6453. mv conftest.$ac_objext conftstm.$ac_objext
  6454. lt_globsym_save_LIBS=$LIBS
  6455. lt_globsym_save_CFLAGS=$CFLAGS
  6456. LIBS=conftstm.$ac_objext
  6457. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6458. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6459. (eval $ac_link) 2>&5
  6460. ac_status=$?
  6461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6462. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6463. pipe_works=yes
  6464. fi
  6465. LIBS=$lt_globsym_save_LIBS
  6466. CFLAGS=$lt_globsym_save_CFLAGS
  6467. else
  6468. echo "cannot find nm_test_func in $nlist" >&5
  6469. fi
  6470. else
  6471. echo "cannot find nm_test_var in $nlist" >&5
  6472. fi
  6473. else
  6474. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6475. fi
  6476. else
  6477. echo "$progname: failed program was:" >&5
  6478. cat conftest.$ac_ext >&5
  6479. fi
  6480. rm -rf conftest* conftst*
  6481. # Do not use the global_symbol_pipe unless it works.
  6482. if test yes = "$pipe_works"; then
  6483. break
  6484. else
  6485. lt_cv_sys_global_symbol_pipe=
  6486. fi
  6487. done
  6488. fi
  6489. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6490. lt_cv_sys_global_symbol_to_cdecl=
  6491. fi
  6492. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6494. $as_echo "failed" >&6; }
  6495. else
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6497. $as_echo "ok" >&6; }
  6498. fi
  6499. # Response file support.
  6500. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6501. nm_file_list_spec='@'
  6502. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6503. nm_file_list_spec='@'
  6504. fi
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6506. $as_echo_n "checking for sysroot... " >&6; }
  6507. # Check whether --with-sysroot was given.
  6508. if test "${with_sysroot+set}" = set; then :
  6509. withval=$with_sysroot;
  6510. else
  6511. with_sysroot=no
  6512. fi
  6513. lt_sysroot=
  6514. case $with_sysroot in #(
  6515. yes)
  6516. if test yes = "$GCC"; then
  6517. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6518. fi
  6519. ;; #(
  6520. /*)
  6521. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6522. ;; #(
  6523. no|'')
  6524. ;; #(
  6525. *)
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6527. $as_echo "$with_sysroot" >&6; }
  6528. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6529. ;;
  6530. esac
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6532. $as_echo "${lt_sysroot:-no}" >&6; }
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6534. $as_echo_n "checking for a working dd... " >&6; }
  6535. if ${ac_cv_path_lt_DD+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. printf 0123456789abcdef0123456789abcdef >conftest.i
  6539. cat conftest.i conftest.i >conftest2.i
  6540. : ${lt_DD:=$DD}
  6541. if test -z "$lt_DD"; then
  6542. ac_path_lt_DD_found=false
  6543. # Loop through the user's path and test for each of PROGNAME-LIST
  6544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6545. for as_dir in $PATH
  6546. do
  6547. IFS=$as_save_IFS
  6548. test -z "$as_dir" && as_dir=.
  6549. for ac_prog in dd; do
  6550. for ac_exec_ext in '' $ac_executable_extensions; do
  6551. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6552. as_fn_executable_p "$ac_path_lt_DD" || continue
  6553. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6554. cmp -s conftest.i conftest.out \
  6555. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6556. fi
  6557. $ac_path_lt_DD_found && break 3
  6558. done
  6559. done
  6560. done
  6561. IFS=$as_save_IFS
  6562. if test -z "$ac_cv_path_lt_DD"; then
  6563. :
  6564. fi
  6565. else
  6566. ac_cv_path_lt_DD=$lt_DD
  6567. fi
  6568. rm -f conftest.i conftest2.i conftest.out
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6571. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6573. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6574. if ${lt_cv_truncate_bin+:} false; then :
  6575. $as_echo_n "(cached) " >&6
  6576. else
  6577. printf 0123456789abcdef0123456789abcdef >conftest.i
  6578. cat conftest.i conftest.i >conftest2.i
  6579. lt_cv_truncate_bin=
  6580. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6581. cmp -s conftest.i conftest.out \
  6582. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6583. fi
  6584. rm -f conftest.i conftest2.i conftest.out
  6585. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6586. fi
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6588. $as_echo "$lt_cv_truncate_bin" >&6; }
  6589. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6590. func_cc_basename ()
  6591. {
  6592. for cc_temp in $*""; do
  6593. case $cc_temp in
  6594. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6595. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6596. \-*) ;;
  6597. *) break;;
  6598. esac
  6599. done
  6600. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6601. }
  6602. # Check whether --enable-libtool-lock was given.
  6603. if test "${enable_libtool_lock+set}" = set; then :
  6604. enableval=$enable_libtool_lock;
  6605. fi
  6606. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6607. # Some flags need to be propagated to the compiler or linker for good
  6608. # libtool support.
  6609. case $host in
  6610. ia64-*-hpux*)
  6611. # Find out what ABI is being produced by ac_compile, and set mode
  6612. # options accordingly.
  6613. echo 'int i;' > conftest.$ac_ext
  6614. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6615. (eval $ac_compile) 2>&5
  6616. ac_status=$?
  6617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6618. test $ac_status = 0; }; then
  6619. case `/usr/bin/file conftest.$ac_objext` in
  6620. *ELF-32*)
  6621. HPUX_IA64_MODE=32
  6622. ;;
  6623. *ELF-64*)
  6624. HPUX_IA64_MODE=64
  6625. ;;
  6626. esac
  6627. fi
  6628. rm -rf conftest*
  6629. ;;
  6630. *-*-irix6*)
  6631. # Find out what ABI is being produced by ac_compile, and set linker
  6632. # options accordingly.
  6633. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6635. (eval $ac_compile) 2>&5
  6636. ac_status=$?
  6637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6638. test $ac_status = 0; }; then
  6639. if test yes = "$lt_cv_prog_gnu_ld"; then
  6640. case `/usr/bin/file conftest.$ac_objext` in
  6641. *32-bit*)
  6642. LD="${LD-ld} -melf32bsmip"
  6643. ;;
  6644. *N32*)
  6645. LD="${LD-ld} -melf32bmipn32"
  6646. ;;
  6647. *64-bit*)
  6648. LD="${LD-ld} -melf64bmip"
  6649. ;;
  6650. esac
  6651. else
  6652. case `/usr/bin/file conftest.$ac_objext` in
  6653. *32-bit*)
  6654. LD="${LD-ld} -32"
  6655. ;;
  6656. *N32*)
  6657. LD="${LD-ld} -n32"
  6658. ;;
  6659. *64-bit*)
  6660. LD="${LD-ld} -64"
  6661. ;;
  6662. esac
  6663. fi
  6664. fi
  6665. rm -rf conftest*
  6666. ;;
  6667. mips64*-*linux*)
  6668. # Find out what ABI is being produced by ac_compile, and set linker
  6669. # options accordingly.
  6670. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6672. (eval $ac_compile) 2>&5
  6673. ac_status=$?
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6675. test $ac_status = 0; }; then
  6676. emul=elf
  6677. case `/usr/bin/file conftest.$ac_objext` in
  6678. *32-bit*)
  6679. emul="${emul}32"
  6680. ;;
  6681. *64-bit*)
  6682. emul="${emul}64"
  6683. ;;
  6684. esac
  6685. case `/usr/bin/file conftest.$ac_objext` in
  6686. *MSB*)
  6687. emul="${emul}btsmip"
  6688. ;;
  6689. *LSB*)
  6690. emul="${emul}ltsmip"
  6691. ;;
  6692. esac
  6693. case `/usr/bin/file conftest.$ac_objext` in
  6694. *N32*)
  6695. emul="${emul}n32"
  6696. ;;
  6697. esac
  6698. LD="${LD-ld} -m $emul"
  6699. fi
  6700. rm -rf conftest*
  6701. ;;
  6702. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6703. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6704. # Find out what ABI is being produced by ac_compile, and set linker
  6705. # options accordingly. Note that the listed cases only cover the
  6706. # situations where additional linker options are needed (such as when
  6707. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6708. # vice versa); the common cases where no linker options are needed do
  6709. # not appear in the list.
  6710. echo 'int i;' > conftest.$ac_ext
  6711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6712. (eval $ac_compile) 2>&5
  6713. ac_status=$?
  6714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6715. test $ac_status = 0; }; then
  6716. case `/usr/bin/file conftest.o` in
  6717. *32-bit*)
  6718. case $host in
  6719. x86_64-*kfreebsd*-gnu)
  6720. LD="${LD-ld} -m elf_i386_fbsd"
  6721. ;;
  6722. x86_64-*linux*)
  6723. case `/usr/bin/file conftest.o` in
  6724. *x86-64*)
  6725. LD="${LD-ld} -m elf32_x86_64"
  6726. ;;
  6727. *)
  6728. LD="${LD-ld} -m elf_i386"
  6729. ;;
  6730. esac
  6731. ;;
  6732. powerpc64le-*linux*)
  6733. LD="${LD-ld} -m elf32lppclinux"
  6734. ;;
  6735. powerpc64-*linux*)
  6736. LD="${LD-ld} -m elf32ppclinux"
  6737. ;;
  6738. s390x-*linux*)
  6739. LD="${LD-ld} -m elf_s390"
  6740. ;;
  6741. sparc64-*linux*)
  6742. LD="${LD-ld} -m elf32_sparc"
  6743. ;;
  6744. esac
  6745. ;;
  6746. *64-bit*)
  6747. case $host in
  6748. x86_64-*kfreebsd*-gnu)
  6749. LD="${LD-ld} -m elf_x86_64_fbsd"
  6750. ;;
  6751. x86_64-*linux*)
  6752. LD="${LD-ld} -m elf_x86_64"
  6753. ;;
  6754. powerpcle-*linux*)
  6755. LD="${LD-ld} -m elf64lppc"
  6756. ;;
  6757. powerpc-*linux*)
  6758. LD="${LD-ld} -m elf64ppc"
  6759. ;;
  6760. s390*-*linux*|s390*-*tpf*)
  6761. LD="${LD-ld} -m elf64_s390"
  6762. ;;
  6763. sparc*-*linux*)
  6764. LD="${LD-ld} -m elf64_sparc"
  6765. ;;
  6766. esac
  6767. ;;
  6768. esac
  6769. fi
  6770. rm -rf conftest*
  6771. ;;
  6772. *-*-sco3.2v5*)
  6773. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6774. SAVE_CFLAGS=$CFLAGS
  6775. CFLAGS="$CFLAGS -belf"
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6777. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6778. if ${lt_cv_cc_needs_belf+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. ac_ext=c
  6782. ac_cpp='$CPP $CPPFLAGS'
  6783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6787. /* end confdefs.h. */
  6788. int
  6789. main ()
  6790. {
  6791. ;
  6792. return 0;
  6793. }
  6794. _ACEOF
  6795. if ac_fn_c_try_link "$LINENO"; then :
  6796. lt_cv_cc_needs_belf=yes
  6797. else
  6798. lt_cv_cc_needs_belf=no
  6799. fi
  6800. rm -f core conftest.err conftest.$ac_objext \
  6801. conftest$ac_exeext conftest.$ac_ext
  6802. ac_ext=c
  6803. ac_cpp='$CPP $CPPFLAGS'
  6804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6807. fi
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6809. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6810. if test yes != "$lt_cv_cc_needs_belf"; then
  6811. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6812. CFLAGS=$SAVE_CFLAGS
  6813. fi
  6814. ;;
  6815. *-*solaris*)
  6816. # Find out what ABI is being produced by ac_compile, and set linker
  6817. # options accordingly.
  6818. echo 'int i;' > conftest.$ac_ext
  6819. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6820. (eval $ac_compile) 2>&5
  6821. ac_status=$?
  6822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6823. test $ac_status = 0; }; then
  6824. case `/usr/bin/file conftest.o` in
  6825. *64-bit*)
  6826. case $lt_cv_prog_gnu_ld in
  6827. yes*)
  6828. case $host in
  6829. i?86-*-solaris*|x86_64-*-solaris*)
  6830. LD="${LD-ld} -m elf_x86_64"
  6831. ;;
  6832. sparc*-*-solaris*)
  6833. LD="${LD-ld} -m elf64_sparc"
  6834. ;;
  6835. esac
  6836. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6837. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6838. LD=${LD-ld}_sol2
  6839. fi
  6840. ;;
  6841. *)
  6842. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6843. LD="${LD-ld} -64"
  6844. fi
  6845. ;;
  6846. esac
  6847. ;;
  6848. esac
  6849. fi
  6850. rm -rf conftest*
  6851. ;;
  6852. esac
  6853. need_locks=$enable_libtool_lock
  6854. if test -n "$ac_tool_prefix"; then
  6855. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6856. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6858. $as_echo_n "checking for $ac_word... " >&6; }
  6859. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6860. $as_echo_n "(cached) " >&6
  6861. else
  6862. if test -n "$MANIFEST_TOOL"; then
  6863. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6864. else
  6865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6866. for as_dir in $PATH
  6867. do
  6868. IFS=$as_save_IFS
  6869. test -z "$as_dir" && as_dir=.
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6882. if test -n "$MANIFEST_TOOL"; then
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6884. $as_echo "$MANIFEST_TOOL" >&6; }
  6885. else
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. $as_echo "no" >&6; }
  6888. fi
  6889. fi
  6890. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6891. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6892. # Extract the first word of "mt", so it can be a program name with args.
  6893. set dummy mt; ac_word=$2
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6895. $as_echo_n "checking for $ac_word... " >&6; }
  6896. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6900. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6901. else
  6902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6903. for as_dir in $PATH
  6904. do
  6905. IFS=$as_save_IFS
  6906. test -z "$as_dir" && as_dir=.
  6907. for ac_exec_ext in '' $ac_executable_extensions; do
  6908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6909. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6911. break 2
  6912. fi
  6913. done
  6914. done
  6915. IFS=$as_save_IFS
  6916. fi
  6917. fi
  6918. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6919. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6921. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6922. else
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6924. $as_echo "no" >&6; }
  6925. fi
  6926. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6927. MANIFEST_TOOL=":"
  6928. else
  6929. case $cross_compiling:$ac_tool_warned in
  6930. yes:)
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6933. ac_tool_warned=yes ;;
  6934. esac
  6935. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6936. fi
  6937. else
  6938. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6939. fi
  6940. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6942. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6943. if ${lt_cv_path_mainfest_tool+:} false; then :
  6944. $as_echo_n "(cached) " >&6
  6945. else
  6946. lt_cv_path_mainfest_tool=no
  6947. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6948. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6949. cat conftest.err >&5
  6950. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6951. lt_cv_path_mainfest_tool=yes
  6952. fi
  6953. rm -f conftest*
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6956. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6957. if test yes != "$lt_cv_path_mainfest_tool"; then
  6958. MANIFEST_TOOL=:
  6959. fi
  6960. case $host_os in
  6961. rhapsody* | darwin*)
  6962. if test -n "$ac_tool_prefix"; then
  6963. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6964. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6966. $as_echo_n "checking for $ac_word... " >&6; }
  6967. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. if test -n "$DSYMUTIL"; then
  6971. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6972. else
  6973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6974. for as_dir in $PATH
  6975. do
  6976. IFS=$as_save_IFS
  6977. test -z "$as_dir" && as_dir=.
  6978. for ac_exec_ext in '' $ac_executable_extensions; do
  6979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6980. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6982. break 2
  6983. fi
  6984. done
  6985. done
  6986. IFS=$as_save_IFS
  6987. fi
  6988. fi
  6989. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6990. if test -n "$DSYMUTIL"; then
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6992. $as_echo "$DSYMUTIL" >&6; }
  6993. else
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6995. $as_echo "no" >&6; }
  6996. fi
  6997. fi
  6998. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6999. ac_ct_DSYMUTIL=$DSYMUTIL
  7000. # Extract the first word of "dsymutil", so it can be a program name with args.
  7001. set dummy dsymutil; ac_word=$2
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. $as_echo_n "checking for $ac_word... " >&6; }
  7004. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. if test -n "$ac_ct_DSYMUTIL"; then
  7008. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7009. else
  7010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $PATH
  7012. do
  7013. IFS=$as_save_IFS
  7014. test -z "$as_dir" && as_dir=.
  7015. for ac_exec_ext in '' $ac_executable_extensions; do
  7016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7017. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7019. break 2
  7020. fi
  7021. done
  7022. done
  7023. IFS=$as_save_IFS
  7024. fi
  7025. fi
  7026. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7027. if test -n "$ac_ct_DSYMUTIL"; then
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7029. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7030. else
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7032. $as_echo "no" >&6; }
  7033. fi
  7034. if test "x$ac_ct_DSYMUTIL" = x; then
  7035. DSYMUTIL=":"
  7036. else
  7037. case $cross_compiling:$ac_tool_warned in
  7038. yes:)
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7041. ac_tool_warned=yes ;;
  7042. esac
  7043. DSYMUTIL=$ac_ct_DSYMUTIL
  7044. fi
  7045. else
  7046. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7047. fi
  7048. if test -n "$ac_tool_prefix"; then
  7049. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7050. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7052. $as_echo_n "checking for $ac_word... " >&6; }
  7053. if ${ac_cv_prog_NMEDIT+:} false; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. if test -n "$NMEDIT"; then
  7057. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7058. else
  7059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7060. for as_dir in $PATH
  7061. do
  7062. IFS=$as_save_IFS
  7063. test -z "$as_dir" && as_dir=.
  7064. for ac_exec_ext in '' $ac_executable_extensions; do
  7065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7066. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7068. break 2
  7069. fi
  7070. done
  7071. done
  7072. IFS=$as_save_IFS
  7073. fi
  7074. fi
  7075. NMEDIT=$ac_cv_prog_NMEDIT
  7076. if test -n "$NMEDIT"; then
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7078. $as_echo "$NMEDIT" >&6; }
  7079. else
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7081. $as_echo "no" >&6; }
  7082. fi
  7083. fi
  7084. if test -z "$ac_cv_prog_NMEDIT"; then
  7085. ac_ct_NMEDIT=$NMEDIT
  7086. # Extract the first word of "nmedit", so it can be a program name with args.
  7087. set dummy nmedit; ac_word=$2
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7089. $as_echo_n "checking for $ac_word... " >&6; }
  7090. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. if test -n "$ac_ct_NMEDIT"; then
  7094. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. test -z "$as_dir" && as_dir=.
  7101. for ac_exec_ext in '' $ac_executable_extensions; do
  7102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7103. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7105. break 2
  7106. fi
  7107. done
  7108. done
  7109. IFS=$as_save_IFS
  7110. fi
  7111. fi
  7112. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7113. if test -n "$ac_ct_NMEDIT"; then
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7115. $as_echo "$ac_ct_NMEDIT" >&6; }
  7116. else
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7118. $as_echo "no" >&6; }
  7119. fi
  7120. if test "x$ac_ct_NMEDIT" = x; then
  7121. NMEDIT=":"
  7122. else
  7123. case $cross_compiling:$ac_tool_warned in
  7124. yes:)
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7127. ac_tool_warned=yes ;;
  7128. esac
  7129. NMEDIT=$ac_ct_NMEDIT
  7130. fi
  7131. else
  7132. NMEDIT="$ac_cv_prog_NMEDIT"
  7133. fi
  7134. if test -n "$ac_tool_prefix"; then
  7135. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7136. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. $as_echo_n "checking for $ac_word... " >&6; }
  7139. if ${ac_cv_prog_LIPO+:} false; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. if test -n "$LIPO"; then
  7143. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. test -z "$as_dir" && as_dir=.
  7150. for ac_exec_ext in '' $ac_executable_extensions; do
  7151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7152. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7154. break 2
  7155. fi
  7156. done
  7157. done
  7158. IFS=$as_save_IFS
  7159. fi
  7160. fi
  7161. LIPO=$ac_cv_prog_LIPO
  7162. if test -n "$LIPO"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7164. $as_echo "$LIPO" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. fi
  7170. if test -z "$ac_cv_prog_LIPO"; then
  7171. ac_ct_LIPO=$LIPO
  7172. # Extract the first word of "lipo", so it can be a program name with args.
  7173. set dummy lipo; ac_word=$2
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7175. $as_echo_n "checking for $ac_word... " >&6; }
  7176. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. if test -n "$ac_ct_LIPO"; then
  7180. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7181. else
  7182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7183. for as_dir in $PATH
  7184. do
  7185. IFS=$as_save_IFS
  7186. test -z "$as_dir" && as_dir=.
  7187. for ac_exec_ext in '' $ac_executable_extensions; do
  7188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7189. ac_cv_prog_ac_ct_LIPO="lipo"
  7190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7191. break 2
  7192. fi
  7193. done
  7194. done
  7195. IFS=$as_save_IFS
  7196. fi
  7197. fi
  7198. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7199. if test -n "$ac_ct_LIPO"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7201. $as_echo "$ac_ct_LIPO" >&6; }
  7202. else
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7204. $as_echo "no" >&6; }
  7205. fi
  7206. if test "x$ac_ct_LIPO" = x; then
  7207. LIPO=":"
  7208. else
  7209. case $cross_compiling:$ac_tool_warned in
  7210. yes:)
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7213. ac_tool_warned=yes ;;
  7214. esac
  7215. LIPO=$ac_ct_LIPO
  7216. fi
  7217. else
  7218. LIPO="$ac_cv_prog_LIPO"
  7219. fi
  7220. if test -n "$ac_tool_prefix"; then
  7221. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7222. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7224. $as_echo_n "checking for $ac_word... " >&6; }
  7225. if ${ac_cv_prog_OTOOL+:} false; then :
  7226. $as_echo_n "(cached) " >&6
  7227. else
  7228. if test -n "$OTOOL"; then
  7229. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7230. else
  7231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7232. for as_dir in $PATH
  7233. do
  7234. IFS=$as_save_IFS
  7235. test -z "$as_dir" && as_dir=.
  7236. for ac_exec_ext in '' $ac_executable_extensions; do
  7237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7238. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7240. break 2
  7241. fi
  7242. done
  7243. done
  7244. IFS=$as_save_IFS
  7245. fi
  7246. fi
  7247. OTOOL=$ac_cv_prog_OTOOL
  7248. if test -n "$OTOOL"; then
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7250. $as_echo "$OTOOL" >&6; }
  7251. else
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7253. $as_echo "no" >&6; }
  7254. fi
  7255. fi
  7256. if test -z "$ac_cv_prog_OTOOL"; then
  7257. ac_ct_OTOOL=$OTOOL
  7258. # Extract the first word of "otool", so it can be a program name with args.
  7259. set dummy otool; ac_word=$2
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7261. $as_echo_n "checking for $ac_word... " >&6; }
  7262. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7263. $as_echo_n "(cached) " >&6
  7264. else
  7265. if test -n "$ac_ct_OTOOL"; then
  7266. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7267. else
  7268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7269. for as_dir in $PATH
  7270. do
  7271. IFS=$as_save_IFS
  7272. test -z "$as_dir" && as_dir=.
  7273. for ac_exec_ext in '' $ac_executable_extensions; do
  7274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7275. ac_cv_prog_ac_ct_OTOOL="otool"
  7276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7277. break 2
  7278. fi
  7279. done
  7280. done
  7281. IFS=$as_save_IFS
  7282. fi
  7283. fi
  7284. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7285. if test -n "$ac_ct_OTOOL"; then
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7287. $as_echo "$ac_ct_OTOOL" >&6; }
  7288. else
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7290. $as_echo "no" >&6; }
  7291. fi
  7292. if test "x$ac_ct_OTOOL" = x; then
  7293. OTOOL=":"
  7294. else
  7295. case $cross_compiling:$ac_tool_warned in
  7296. yes:)
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7299. ac_tool_warned=yes ;;
  7300. esac
  7301. OTOOL=$ac_ct_OTOOL
  7302. fi
  7303. else
  7304. OTOOL="$ac_cv_prog_OTOOL"
  7305. fi
  7306. if test -n "$ac_tool_prefix"; then
  7307. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7308. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7310. $as_echo_n "checking for $ac_word... " >&6; }
  7311. if ${ac_cv_prog_OTOOL64+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. if test -n "$OTOOL64"; then
  7315. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7316. else
  7317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7318. for as_dir in $PATH
  7319. do
  7320. IFS=$as_save_IFS
  7321. test -z "$as_dir" && as_dir=.
  7322. for ac_exec_ext in '' $ac_executable_extensions; do
  7323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7324. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7326. break 2
  7327. fi
  7328. done
  7329. done
  7330. IFS=$as_save_IFS
  7331. fi
  7332. fi
  7333. OTOOL64=$ac_cv_prog_OTOOL64
  7334. if test -n "$OTOOL64"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7336. $as_echo "$OTOOL64" >&6; }
  7337. else
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7339. $as_echo "no" >&6; }
  7340. fi
  7341. fi
  7342. if test -z "$ac_cv_prog_OTOOL64"; then
  7343. ac_ct_OTOOL64=$OTOOL64
  7344. # Extract the first word of "otool64", so it can be a program name with args.
  7345. set dummy otool64; ac_word=$2
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7347. $as_echo_n "checking for $ac_word... " >&6; }
  7348. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7349. $as_echo_n "(cached) " >&6
  7350. else
  7351. if test -n "$ac_ct_OTOOL64"; then
  7352. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7353. else
  7354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7355. for as_dir in $PATH
  7356. do
  7357. IFS=$as_save_IFS
  7358. test -z "$as_dir" && as_dir=.
  7359. for ac_exec_ext in '' $ac_executable_extensions; do
  7360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7361. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7363. break 2
  7364. fi
  7365. done
  7366. done
  7367. IFS=$as_save_IFS
  7368. fi
  7369. fi
  7370. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7371. if test -n "$ac_ct_OTOOL64"; then
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7373. $as_echo "$ac_ct_OTOOL64" >&6; }
  7374. else
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7376. $as_echo "no" >&6; }
  7377. fi
  7378. if test "x$ac_ct_OTOOL64" = x; then
  7379. OTOOL64=":"
  7380. else
  7381. case $cross_compiling:$ac_tool_warned in
  7382. yes:)
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7385. ac_tool_warned=yes ;;
  7386. esac
  7387. OTOOL64=$ac_ct_OTOOL64
  7388. fi
  7389. else
  7390. OTOOL64="$ac_cv_prog_OTOOL64"
  7391. fi
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7393. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7394. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. lt_cv_apple_cc_single_mod=no
  7398. if test -z "$LT_MULTI_MODULE"; then
  7399. # By default we will add the -single_module flag. You can override
  7400. # by either setting the environment variable LT_MULTI_MODULE
  7401. # non-empty at configure time, or by adding -multi_module to the
  7402. # link flags.
  7403. rm -rf libconftest.dylib*
  7404. echo "int foo(void){return 1;}" > conftest.c
  7405. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7406. -dynamiclib -Wl,-single_module conftest.c" >&5
  7407. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7408. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7409. _lt_result=$?
  7410. # If there is a non-empty error log, and "single_module"
  7411. # appears in it, assume the flag caused a linker warning
  7412. if test -s conftest.err && $GREP single_module conftest.err; then
  7413. cat conftest.err >&5
  7414. # Otherwise, if the output was created with a 0 exit code from
  7415. # the compiler, it worked.
  7416. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7417. lt_cv_apple_cc_single_mod=yes
  7418. else
  7419. cat conftest.err >&5
  7420. fi
  7421. rm -rf libconftest.dylib*
  7422. rm -f conftest.*
  7423. fi
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7426. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7428. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7429. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7430. $as_echo_n "(cached) " >&6
  7431. else
  7432. lt_cv_ld_exported_symbols_list=no
  7433. save_LDFLAGS=$LDFLAGS
  7434. echo "_main" > conftest.sym
  7435. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7437. /* end confdefs.h. */
  7438. int
  7439. main ()
  7440. {
  7441. ;
  7442. return 0;
  7443. }
  7444. _ACEOF
  7445. if ac_fn_c_try_link "$LINENO"; then :
  7446. lt_cv_ld_exported_symbols_list=yes
  7447. else
  7448. lt_cv_ld_exported_symbols_list=no
  7449. fi
  7450. rm -f core conftest.err conftest.$ac_objext \
  7451. conftest$ac_exeext conftest.$ac_ext
  7452. LDFLAGS=$save_LDFLAGS
  7453. fi
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7455. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7457. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7458. if ${lt_cv_ld_force_load+:} false; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. lt_cv_ld_force_load=no
  7462. cat > conftest.c << _LT_EOF
  7463. int forced_loaded() { return 2;}
  7464. _LT_EOF
  7465. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7466. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7467. echo "$AR cru libconftest.a conftest.o" >&5
  7468. $AR cru libconftest.a conftest.o 2>&5
  7469. echo "$RANLIB libconftest.a" >&5
  7470. $RANLIB libconftest.a 2>&5
  7471. cat > conftest.c << _LT_EOF
  7472. int main() { return 0;}
  7473. _LT_EOF
  7474. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7475. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7476. _lt_result=$?
  7477. if test -s conftest.err && $GREP force_load conftest.err; then
  7478. cat conftest.err >&5
  7479. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7480. lt_cv_ld_force_load=yes
  7481. else
  7482. cat conftest.err >&5
  7483. fi
  7484. rm -f conftest.err libconftest.a conftest conftest.c
  7485. rm -rf conftest.dSYM
  7486. fi
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7488. $as_echo "$lt_cv_ld_force_load" >&6; }
  7489. case $host_os in
  7490. rhapsody* | darwin1.[012])
  7491. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7492. darwin1.*)
  7493. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7494. darwin*) # darwin 5.x on
  7495. # if running on 10.5 or later, the deployment target defaults
  7496. # to the OS version, if on x86, and 10.4, the deployment
  7497. # target defaults to 10.4. Don't you love it?
  7498. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7499. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7500. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7501. 10.[012][,.]*)
  7502. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7503. 10.*)
  7504. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7505. esac
  7506. ;;
  7507. esac
  7508. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7509. _lt_dar_single_mod='$single_module'
  7510. fi
  7511. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7512. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7513. else
  7514. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7515. fi
  7516. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7517. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7518. else
  7519. _lt_dsymutil=
  7520. fi
  7521. ;;
  7522. esac
  7523. # func_munge_path_list VARIABLE PATH
  7524. # -----------------------------------
  7525. # VARIABLE is name of variable containing _space_ separated list of
  7526. # directories to be munged by the contents of PATH, which is string
  7527. # having a format:
  7528. # "DIR[:DIR]:"
  7529. # string "DIR[ DIR]" will be prepended to VARIABLE
  7530. # ":DIR[:DIR]"
  7531. # string "DIR[ DIR]" will be appended to VARIABLE
  7532. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7533. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7534. # "DIRA[ DIRA]" will be appended to VARIABLE
  7535. # "DIR[:DIR]"
  7536. # VARIABLE will be replaced by "DIR[ DIR]"
  7537. func_munge_path_list ()
  7538. {
  7539. case x$2 in
  7540. x)
  7541. ;;
  7542. *:)
  7543. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7544. ;;
  7545. x:*)
  7546. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7547. ;;
  7548. *::*)
  7549. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7550. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7551. ;;
  7552. *)
  7553. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7554. ;;
  7555. esac
  7556. }
  7557. ac_ext=c
  7558. ac_cpp='$CPP $CPPFLAGS'
  7559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7563. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7564. # On Suns, sometimes $CPP names a directory.
  7565. if test -n "$CPP" && test -d "$CPP"; then
  7566. CPP=
  7567. fi
  7568. if test -z "$CPP"; then
  7569. if ${ac_cv_prog_CPP+:} false; then :
  7570. $as_echo_n "(cached) " >&6
  7571. else
  7572. # Double quotes because CPP needs to be expanded
  7573. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7574. do
  7575. ac_preproc_ok=false
  7576. for ac_c_preproc_warn_flag in '' yes
  7577. do
  7578. # Use a header file that comes with gcc, so configuring glibc
  7579. # with a fresh cross-compiler works.
  7580. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7581. # <limits.h> exists even on freestanding compilers.
  7582. # On the NeXT, cc -E runs the code through the compiler's parser,
  7583. # not just through cpp. "Syntax error" is here to catch this case.
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. #ifdef __STDC__
  7587. # include <limits.h>
  7588. #else
  7589. # include <assert.h>
  7590. #endif
  7591. Syntax error
  7592. _ACEOF
  7593. if ac_fn_c_try_cpp "$LINENO"; then :
  7594. else
  7595. # Broken: fails on valid input.
  7596. continue
  7597. fi
  7598. rm -f conftest.err conftest.i conftest.$ac_ext
  7599. # OK, works on sane cases. Now check whether nonexistent headers
  7600. # can be detected and how.
  7601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7602. /* end confdefs.h. */
  7603. #include <ac_nonexistent.h>
  7604. _ACEOF
  7605. if ac_fn_c_try_cpp "$LINENO"; then :
  7606. # Broken: success on invalid input.
  7607. continue
  7608. else
  7609. # Passes both tests.
  7610. ac_preproc_ok=:
  7611. break
  7612. fi
  7613. rm -f conftest.err conftest.i conftest.$ac_ext
  7614. done
  7615. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7616. rm -f conftest.i conftest.err conftest.$ac_ext
  7617. if $ac_preproc_ok; then :
  7618. break
  7619. fi
  7620. done
  7621. ac_cv_prog_CPP=$CPP
  7622. fi
  7623. CPP=$ac_cv_prog_CPP
  7624. else
  7625. ac_cv_prog_CPP=$CPP
  7626. fi
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7628. $as_echo "$CPP" >&6; }
  7629. ac_preproc_ok=false
  7630. for ac_c_preproc_warn_flag in '' yes
  7631. do
  7632. # Use a header file that comes with gcc, so configuring glibc
  7633. # with a fresh cross-compiler works.
  7634. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7635. # <limits.h> exists even on freestanding compilers.
  7636. # On the NeXT, cc -E runs the code through the compiler's parser,
  7637. # not just through cpp. "Syntax error" is here to catch this case.
  7638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7639. /* end confdefs.h. */
  7640. #ifdef __STDC__
  7641. # include <limits.h>
  7642. #else
  7643. # include <assert.h>
  7644. #endif
  7645. Syntax error
  7646. _ACEOF
  7647. if ac_fn_c_try_cpp "$LINENO"; then :
  7648. else
  7649. # Broken: fails on valid input.
  7650. continue
  7651. fi
  7652. rm -f conftest.err conftest.i conftest.$ac_ext
  7653. # OK, works on sane cases. Now check whether nonexistent headers
  7654. # can be detected and how.
  7655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7656. /* end confdefs.h. */
  7657. #include <ac_nonexistent.h>
  7658. _ACEOF
  7659. if ac_fn_c_try_cpp "$LINENO"; then :
  7660. # Broken: success on invalid input.
  7661. continue
  7662. else
  7663. # Passes both tests.
  7664. ac_preproc_ok=:
  7665. break
  7666. fi
  7667. rm -f conftest.err conftest.i conftest.$ac_ext
  7668. done
  7669. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7670. rm -f conftest.i conftest.err conftest.$ac_ext
  7671. if $ac_preproc_ok; then :
  7672. else
  7673. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7675. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7676. See \`config.log' for more details" "$LINENO" 5; }
  7677. fi
  7678. ac_ext=c
  7679. ac_cpp='$CPP $CPPFLAGS'
  7680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7684. $as_echo_n "checking for ANSI C header files... " >&6; }
  7685. if ${ac_cv_header_stdc+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7689. /* end confdefs.h. */
  7690. #include <stdlib.h>
  7691. #include <stdarg.h>
  7692. #include <string.h>
  7693. #include <float.h>
  7694. int
  7695. main ()
  7696. {
  7697. ;
  7698. return 0;
  7699. }
  7700. _ACEOF
  7701. if ac_fn_c_try_compile "$LINENO"; then :
  7702. ac_cv_header_stdc=yes
  7703. else
  7704. ac_cv_header_stdc=no
  7705. fi
  7706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7707. if test $ac_cv_header_stdc = yes; then
  7708. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7710. /* end confdefs.h. */
  7711. #include <string.h>
  7712. _ACEOF
  7713. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7714. $EGREP "memchr" >/dev/null 2>&1; then :
  7715. else
  7716. ac_cv_header_stdc=no
  7717. fi
  7718. rm -f conftest*
  7719. fi
  7720. if test $ac_cv_header_stdc = yes; then
  7721. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7723. /* end confdefs.h. */
  7724. #include <stdlib.h>
  7725. _ACEOF
  7726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7727. $EGREP "free" >/dev/null 2>&1; then :
  7728. else
  7729. ac_cv_header_stdc=no
  7730. fi
  7731. rm -f conftest*
  7732. fi
  7733. if test $ac_cv_header_stdc = yes; then
  7734. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7735. if test "$cross_compiling" = yes; then :
  7736. :
  7737. else
  7738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7739. /* end confdefs.h. */
  7740. #include <ctype.h>
  7741. #include <stdlib.h>
  7742. #if ((' ' & 0x0FF) == 0x020)
  7743. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7744. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7745. #else
  7746. # define ISLOWER(c) \
  7747. (('a' <= (c) && (c) <= 'i') \
  7748. || ('j' <= (c) && (c) <= 'r') \
  7749. || ('s' <= (c) && (c) <= 'z'))
  7750. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7751. #endif
  7752. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7753. int
  7754. main ()
  7755. {
  7756. int i;
  7757. for (i = 0; i < 256; i++)
  7758. if (XOR (islower (i), ISLOWER (i))
  7759. || toupper (i) != TOUPPER (i))
  7760. return 2;
  7761. return 0;
  7762. }
  7763. _ACEOF
  7764. if ac_fn_c_try_run "$LINENO"; then :
  7765. else
  7766. ac_cv_header_stdc=no
  7767. fi
  7768. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7769. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7770. fi
  7771. fi
  7772. fi
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7774. $as_echo "$ac_cv_header_stdc" >&6; }
  7775. if test $ac_cv_header_stdc = yes; then
  7776. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7777. fi
  7778. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7779. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7780. inttypes.h stdint.h unistd.h
  7781. do :
  7782. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7783. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7784. "
  7785. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7786. cat >>confdefs.h <<_ACEOF
  7787. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7788. _ACEOF
  7789. fi
  7790. done
  7791. for ac_header in dlfcn.h
  7792. do :
  7793. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7794. "
  7795. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7796. cat >>confdefs.h <<_ACEOF
  7797. #define HAVE_DLFCN_H 1
  7798. _ACEOF
  7799. fi
  7800. done
  7801. # Set options
  7802. enable_dlopen=no
  7803. enable_win32_dll=no
  7804. # Check whether --enable-shared was given.
  7805. if test "${enable_shared+set}" = set; then :
  7806. enableval=$enable_shared; p=${PACKAGE-default}
  7807. case $enableval in
  7808. yes) enable_shared=yes ;;
  7809. no) enable_shared=no ;;
  7810. *)
  7811. enable_shared=no
  7812. # Look at the argument we got. We use all the common list separators.
  7813. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7814. for pkg in $enableval; do
  7815. IFS=$lt_save_ifs
  7816. if test "X$pkg" = "X$p"; then
  7817. enable_shared=yes
  7818. fi
  7819. done
  7820. IFS=$lt_save_ifs
  7821. ;;
  7822. esac
  7823. else
  7824. enable_shared=yes
  7825. fi
  7826. # Check whether --enable-static was given.
  7827. if test "${enable_static+set}" = set; then :
  7828. enableval=$enable_static; p=${PACKAGE-default}
  7829. case $enableval in
  7830. yes) enable_static=yes ;;
  7831. no) enable_static=no ;;
  7832. *)
  7833. enable_static=no
  7834. # Look at the argument we got. We use all the common list separators.
  7835. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7836. for pkg in $enableval; do
  7837. IFS=$lt_save_ifs
  7838. if test "X$pkg" = "X$p"; then
  7839. enable_static=yes
  7840. fi
  7841. done
  7842. IFS=$lt_save_ifs
  7843. ;;
  7844. esac
  7845. else
  7846. enable_static=yes
  7847. fi
  7848. # Check whether --with-pic was given.
  7849. if test "${with_pic+set}" = set; then :
  7850. withval=$with_pic; lt_p=${PACKAGE-default}
  7851. case $withval in
  7852. yes|no) pic_mode=$withval ;;
  7853. *)
  7854. pic_mode=default
  7855. # Look at the argument we got. We use all the common list separators.
  7856. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7857. for lt_pkg in $withval; do
  7858. IFS=$lt_save_ifs
  7859. if test "X$lt_pkg" = "X$lt_p"; then
  7860. pic_mode=yes
  7861. fi
  7862. done
  7863. IFS=$lt_save_ifs
  7864. ;;
  7865. esac
  7866. else
  7867. pic_mode=default
  7868. fi
  7869. # Check whether --enable-fast-install was given.
  7870. if test "${enable_fast_install+set}" = set; then :
  7871. enableval=$enable_fast_install; p=${PACKAGE-default}
  7872. case $enableval in
  7873. yes) enable_fast_install=yes ;;
  7874. no) enable_fast_install=no ;;
  7875. *)
  7876. enable_fast_install=no
  7877. # Look at the argument we got. We use all the common list separators.
  7878. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7879. for pkg in $enableval; do
  7880. IFS=$lt_save_ifs
  7881. if test "X$pkg" = "X$p"; then
  7882. enable_fast_install=yes
  7883. fi
  7884. done
  7885. IFS=$lt_save_ifs
  7886. ;;
  7887. esac
  7888. else
  7889. enable_fast_install=yes
  7890. fi
  7891. shared_archive_member_spec=
  7892. case $host,$enable_shared in
  7893. power*-*-aix[5-9]*,yes)
  7894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7895. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7896. # Check whether --with-aix-soname was given.
  7897. if test "${with_aix_soname+set}" = set; then :
  7898. withval=$with_aix_soname; case $withval in
  7899. aix|svr4|both)
  7900. ;;
  7901. *)
  7902. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7903. ;;
  7904. esac
  7905. lt_cv_with_aix_soname=$with_aix_soname
  7906. else
  7907. if ${lt_cv_with_aix_soname+:} false; then :
  7908. $as_echo_n "(cached) " >&6
  7909. else
  7910. lt_cv_with_aix_soname=aix
  7911. fi
  7912. with_aix_soname=$lt_cv_with_aix_soname
  7913. fi
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7915. $as_echo "$with_aix_soname" >&6; }
  7916. if test aix != "$with_aix_soname"; then
  7917. # For the AIX way of multilib, we name the shared archive member
  7918. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7919. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7920. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7921. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7922. if test 64 = "${OBJECT_MODE-32}"; then
  7923. shared_archive_member_spec=shr_64
  7924. else
  7925. shared_archive_member_spec=shr
  7926. fi
  7927. fi
  7928. ;;
  7929. *)
  7930. with_aix_soname=aix
  7931. ;;
  7932. esac
  7933. # This can be used to rebuild libtool when needed
  7934. LIBTOOL_DEPS=$ltmain
  7935. # Always use our own libtool.
  7936. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7937. test -z "$LN_S" && LN_S="ln -s"
  7938. if test -n "${ZSH_VERSION+set}"; then
  7939. setopt NO_GLOB_SUBST
  7940. fi
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7942. $as_echo_n "checking for objdir... " >&6; }
  7943. if ${lt_cv_objdir+:} false; then :
  7944. $as_echo_n "(cached) " >&6
  7945. else
  7946. rm -f .libs 2>/dev/null
  7947. mkdir .libs 2>/dev/null
  7948. if test -d .libs; then
  7949. lt_cv_objdir=.libs
  7950. else
  7951. # MS-DOS does not allow filenames that begin with a dot.
  7952. lt_cv_objdir=_libs
  7953. fi
  7954. rmdir .libs 2>/dev/null
  7955. fi
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7957. $as_echo "$lt_cv_objdir" >&6; }
  7958. objdir=$lt_cv_objdir
  7959. cat >>confdefs.h <<_ACEOF
  7960. #define LT_OBJDIR "$lt_cv_objdir/"
  7961. _ACEOF
  7962. case $host_os in
  7963. aix3*)
  7964. # AIX sometimes has problems with the GCC collect2 program. For some
  7965. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7966. # vanish in a puff of smoke.
  7967. if test set != "${COLLECT_NAMES+set}"; then
  7968. COLLECT_NAMES=
  7969. export COLLECT_NAMES
  7970. fi
  7971. ;;
  7972. esac
  7973. # Global variables:
  7974. ofile=libtool
  7975. can_build_shared=yes
  7976. # All known linkers require a '.a' archive for static linking (except MSVC,
  7977. # which needs '.lib').
  7978. libext=a
  7979. with_gnu_ld=$lt_cv_prog_gnu_ld
  7980. old_CC=$CC
  7981. old_CFLAGS=$CFLAGS
  7982. # Set sane defaults for various variables
  7983. test -z "$CC" && CC=cc
  7984. test -z "$LTCC" && LTCC=$CC
  7985. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7986. test -z "$LD" && LD=ld
  7987. test -z "$ac_objext" && ac_objext=o
  7988. func_cc_basename $compiler
  7989. cc_basename=$func_cc_basename_result
  7990. # Only perform the check for file, if the check method requires it
  7991. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7992. case $deplibs_check_method in
  7993. file_magic*)
  7994. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7996. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7997. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. case $MAGIC_CMD in
  8001. [\\/*] | ?:[\\/]*)
  8002. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8003. ;;
  8004. *)
  8005. lt_save_MAGIC_CMD=$MAGIC_CMD
  8006. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8007. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8008. for ac_dir in $ac_dummy; do
  8009. IFS=$lt_save_ifs
  8010. test -z "$ac_dir" && ac_dir=.
  8011. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8012. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8013. if test -n "$file_magic_test_file"; then
  8014. case $deplibs_check_method in
  8015. "file_magic "*)
  8016. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8017. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8018. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8019. $EGREP "$file_magic_regex" > /dev/null; then
  8020. :
  8021. else
  8022. cat <<_LT_EOF 1>&2
  8023. *** Warning: the command libtool uses to detect shared libraries,
  8024. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8025. *** The result is that libtool may fail to recognize shared libraries
  8026. *** as such. This will affect the creation of libtool libraries that
  8027. *** depend on shared libraries, but programs linked with such libtool
  8028. *** libraries will work regardless of this problem. Nevertheless, you
  8029. *** may want to report the problem to your system manager and/or to
  8030. *** bug-libtool@gnu.org
  8031. _LT_EOF
  8032. fi ;;
  8033. esac
  8034. fi
  8035. break
  8036. fi
  8037. done
  8038. IFS=$lt_save_ifs
  8039. MAGIC_CMD=$lt_save_MAGIC_CMD
  8040. ;;
  8041. esac
  8042. fi
  8043. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8044. if test -n "$MAGIC_CMD"; then
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8046. $as_echo "$MAGIC_CMD" >&6; }
  8047. else
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8049. $as_echo "no" >&6; }
  8050. fi
  8051. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8052. if test -n "$ac_tool_prefix"; then
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8054. $as_echo_n "checking for file... " >&6; }
  8055. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. case $MAGIC_CMD in
  8059. [\\/*] | ?:[\\/]*)
  8060. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8061. ;;
  8062. *)
  8063. lt_save_MAGIC_CMD=$MAGIC_CMD
  8064. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8065. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8066. for ac_dir in $ac_dummy; do
  8067. IFS=$lt_save_ifs
  8068. test -z "$ac_dir" && ac_dir=.
  8069. if test -f "$ac_dir/file"; then
  8070. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8071. if test -n "$file_magic_test_file"; then
  8072. case $deplibs_check_method in
  8073. "file_magic "*)
  8074. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8075. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8076. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8077. $EGREP "$file_magic_regex" > /dev/null; then
  8078. :
  8079. else
  8080. cat <<_LT_EOF 1>&2
  8081. *** Warning: the command libtool uses to detect shared libraries,
  8082. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8083. *** The result is that libtool may fail to recognize shared libraries
  8084. *** as such. This will affect the creation of libtool libraries that
  8085. *** depend on shared libraries, but programs linked with such libtool
  8086. *** libraries will work regardless of this problem. Nevertheless, you
  8087. *** may want to report the problem to your system manager and/or to
  8088. *** bug-libtool@gnu.org
  8089. _LT_EOF
  8090. fi ;;
  8091. esac
  8092. fi
  8093. break
  8094. fi
  8095. done
  8096. IFS=$lt_save_ifs
  8097. MAGIC_CMD=$lt_save_MAGIC_CMD
  8098. ;;
  8099. esac
  8100. fi
  8101. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8102. if test -n "$MAGIC_CMD"; then
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8104. $as_echo "$MAGIC_CMD" >&6; }
  8105. else
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8107. $as_echo "no" >&6; }
  8108. fi
  8109. else
  8110. MAGIC_CMD=:
  8111. fi
  8112. fi
  8113. fi
  8114. ;;
  8115. esac
  8116. # Use C for the default configuration in the libtool script
  8117. lt_save_CC=$CC
  8118. ac_ext=c
  8119. ac_cpp='$CPP $CPPFLAGS'
  8120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8123. # Source file extension for C test sources.
  8124. ac_ext=c
  8125. # Object file extension for compiled C test sources.
  8126. objext=o
  8127. objext=$objext
  8128. # Code to be used in simple compile tests
  8129. lt_simple_compile_test_code="int some_variable = 0;"
  8130. # Code to be used in simple link tests
  8131. lt_simple_link_test_code='int main(){return(0);}'
  8132. # If no C compiler was specified, use CC.
  8133. LTCC=${LTCC-"$CC"}
  8134. # If no C compiler flags were specified, use CFLAGS.
  8135. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8136. # Allow CC to be a program name with arguments.
  8137. compiler=$CC
  8138. # Save the default compiler, since it gets overwritten when the other
  8139. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8140. compiler_DEFAULT=$CC
  8141. # save warnings/boilerplate of simple test code
  8142. ac_outfile=conftest.$ac_objext
  8143. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8144. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8145. _lt_compiler_boilerplate=`cat conftest.err`
  8146. $RM conftest*
  8147. ac_outfile=conftest.$ac_objext
  8148. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8149. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8150. _lt_linker_boilerplate=`cat conftest.err`
  8151. $RM -r conftest*
  8152. ## CAVEAT EMPTOR:
  8153. ## There is no encapsulation within the following macros, do not change
  8154. ## the running order or otherwise move them around unless you know exactly
  8155. ## what you are doing...
  8156. if test -n "$compiler"; then
  8157. lt_prog_compiler_no_builtin_flag=
  8158. if test yes = "$GCC"; then
  8159. case $cc_basename in
  8160. nvcc*)
  8161. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8162. *)
  8163. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8164. esac
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8166. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8167. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8168. $as_echo_n "(cached) " >&6
  8169. else
  8170. lt_cv_prog_compiler_rtti_exceptions=no
  8171. ac_outfile=conftest.$ac_objext
  8172. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8173. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8174. # Insert the option either (1) after the last *FLAGS variable, or
  8175. # (2) before a word containing "conftest.", or (3) at the end.
  8176. # Note that $ac_compile itself does not contain backslashes and begins
  8177. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8178. # The option is referenced via a variable to avoid confusing sed.
  8179. lt_compile=`echo "$ac_compile" | $SED \
  8180. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8181. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8182. -e 's:$: $lt_compiler_flag:'`
  8183. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8184. (eval "$lt_compile" 2>conftest.err)
  8185. ac_status=$?
  8186. cat conftest.err >&5
  8187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8188. if (exit $ac_status) && test -s "$ac_outfile"; then
  8189. # The compiler can only warn and ignore the option if not recognized
  8190. # So say no if there are warnings other than the usual output.
  8191. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8192. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8193. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8194. lt_cv_prog_compiler_rtti_exceptions=yes
  8195. fi
  8196. fi
  8197. $RM conftest*
  8198. fi
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8200. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8201. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8202. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8203. else
  8204. :
  8205. fi
  8206. fi
  8207. lt_prog_compiler_wl=
  8208. lt_prog_compiler_pic=
  8209. lt_prog_compiler_static=
  8210. if test yes = "$GCC"; then
  8211. lt_prog_compiler_wl='-Wl,'
  8212. lt_prog_compiler_static='-static'
  8213. case $host_os in
  8214. aix*)
  8215. # All AIX code is PIC.
  8216. if test ia64 = "$host_cpu"; then
  8217. # AIX 5 now supports IA64 processor
  8218. lt_prog_compiler_static='-Bstatic'
  8219. fi
  8220. lt_prog_compiler_pic='-fPIC'
  8221. ;;
  8222. amigaos*)
  8223. case $host_cpu in
  8224. powerpc)
  8225. # see comment about AmigaOS4 .so support
  8226. lt_prog_compiler_pic='-fPIC'
  8227. ;;
  8228. m68k)
  8229. # FIXME: we need at least 68020 code to build shared libraries, but
  8230. # adding the '-m68020' flag to GCC prevents building anything better,
  8231. # like '-m68040'.
  8232. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8233. ;;
  8234. esac
  8235. ;;
  8236. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8237. # PIC is the default for these OSes.
  8238. ;;
  8239. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8240. # This hack is so that the source file can tell whether it is being
  8241. # built for inclusion in a dll (and should export symbols for example).
  8242. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8243. # (--disable-auto-import) libraries
  8244. lt_prog_compiler_pic='-DDLL_EXPORT'
  8245. case $host_os in
  8246. os2*)
  8247. lt_prog_compiler_static='$wl-static'
  8248. ;;
  8249. esac
  8250. ;;
  8251. darwin* | rhapsody*)
  8252. # PIC is the default on this platform
  8253. # Common symbols not allowed in MH_DYLIB files
  8254. lt_prog_compiler_pic='-fno-common'
  8255. ;;
  8256. haiku*)
  8257. # PIC is the default for Haiku.
  8258. # The "-static" flag exists, but is broken.
  8259. lt_prog_compiler_static=
  8260. ;;
  8261. hpux*)
  8262. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8263. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8264. # sets the default TLS model and affects inlining.
  8265. case $host_cpu in
  8266. hppa*64*)
  8267. # +Z the default
  8268. ;;
  8269. *)
  8270. lt_prog_compiler_pic='-fPIC'
  8271. ;;
  8272. esac
  8273. ;;
  8274. interix[3-9]*)
  8275. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8276. # Instead, we relocate shared libraries at runtime.
  8277. ;;
  8278. msdosdjgpp*)
  8279. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8280. # on systems that don't support them.
  8281. lt_prog_compiler_can_build_shared=no
  8282. enable_shared=no
  8283. ;;
  8284. *nto* | *qnx*)
  8285. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8286. # it will coredump.
  8287. lt_prog_compiler_pic='-fPIC -shared'
  8288. ;;
  8289. sysv4*MP*)
  8290. if test -d /usr/nec; then
  8291. lt_prog_compiler_pic=-Kconform_pic
  8292. fi
  8293. ;;
  8294. *)
  8295. lt_prog_compiler_pic='-fPIC'
  8296. ;;
  8297. esac
  8298. case $cc_basename in
  8299. nvcc*) # Cuda Compiler Driver 2.2
  8300. lt_prog_compiler_wl='-Xlinker '
  8301. if test -n "$lt_prog_compiler_pic"; then
  8302. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8303. fi
  8304. ;;
  8305. esac
  8306. else
  8307. # PORTME Check for flag to pass linker flags through the system compiler.
  8308. case $host_os in
  8309. aix*)
  8310. lt_prog_compiler_wl='-Wl,'
  8311. if test ia64 = "$host_cpu"; then
  8312. # AIX 5 now supports IA64 processor
  8313. lt_prog_compiler_static='-Bstatic'
  8314. else
  8315. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8316. fi
  8317. ;;
  8318. darwin* | rhapsody*)
  8319. # PIC is the default on this platform
  8320. # Common symbols not allowed in MH_DYLIB files
  8321. lt_prog_compiler_pic='-fno-common'
  8322. case $cc_basename in
  8323. nagfor*)
  8324. # NAG Fortran compiler
  8325. lt_prog_compiler_wl='-Wl,-Wl,,'
  8326. lt_prog_compiler_pic='-PIC'
  8327. lt_prog_compiler_static='-Bstatic'
  8328. ;;
  8329. esac
  8330. ;;
  8331. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8332. # This hack is so that the source file can tell whether it is being
  8333. # built for inclusion in a dll (and should export symbols for example).
  8334. lt_prog_compiler_pic='-DDLL_EXPORT'
  8335. case $host_os in
  8336. os2*)
  8337. lt_prog_compiler_static='$wl-static'
  8338. ;;
  8339. esac
  8340. ;;
  8341. hpux9* | hpux10* | hpux11*)
  8342. lt_prog_compiler_wl='-Wl,'
  8343. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8344. # not for PA HP-UX.
  8345. case $host_cpu in
  8346. hppa*64*|ia64*)
  8347. # +Z the default
  8348. ;;
  8349. *)
  8350. lt_prog_compiler_pic='+Z'
  8351. ;;
  8352. esac
  8353. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8354. lt_prog_compiler_static='$wl-a ${wl}archive'
  8355. ;;
  8356. irix5* | irix6* | nonstopux*)
  8357. lt_prog_compiler_wl='-Wl,'
  8358. # PIC (with -KPIC) is the default.
  8359. lt_prog_compiler_static='-non_shared'
  8360. ;;
  8361. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8362. case $cc_basename in
  8363. # old Intel for x86_64, which still supported -KPIC.
  8364. ecc*)
  8365. lt_prog_compiler_wl='-Wl,'
  8366. lt_prog_compiler_pic='-KPIC'
  8367. lt_prog_compiler_static='-static'
  8368. ;;
  8369. # icc used to be incompatible with GCC.
  8370. # ICC 10 doesn't accept -KPIC any more.
  8371. icc* | ifort*)
  8372. lt_prog_compiler_wl='-Wl,'
  8373. lt_prog_compiler_pic='-fPIC'
  8374. lt_prog_compiler_static='-static'
  8375. ;;
  8376. # Lahey Fortran 8.1.
  8377. lf95*)
  8378. lt_prog_compiler_wl='-Wl,'
  8379. lt_prog_compiler_pic='--shared'
  8380. lt_prog_compiler_static='--static'
  8381. ;;
  8382. nagfor*)
  8383. # NAG Fortran compiler
  8384. lt_prog_compiler_wl='-Wl,-Wl,,'
  8385. lt_prog_compiler_pic='-PIC'
  8386. lt_prog_compiler_static='-Bstatic'
  8387. ;;
  8388. tcc*)
  8389. # Fabrice Bellard et al's Tiny C Compiler
  8390. lt_prog_compiler_wl='-Wl,'
  8391. lt_prog_compiler_pic='-fPIC'
  8392. lt_prog_compiler_static='-static'
  8393. ;;
  8394. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8395. # Portland Group compilers (*not* the Pentium gcc compiler,
  8396. # which looks to be a dead project)
  8397. lt_prog_compiler_wl='-Wl,'
  8398. lt_prog_compiler_pic='-fpic'
  8399. lt_prog_compiler_static='-Bstatic'
  8400. ;;
  8401. ccc*)
  8402. lt_prog_compiler_wl='-Wl,'
  8403. # All Alpha code is PIC.
  8404. lt_prog_compiler_static='-non_shared'
  8405. ;;
  8406. xl* | bgxl* | bgf* | mpixl*)
  8407. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8408. lt_prog_compiler_wl='-Wl,'
  8409. lt_prog_compiler_pic='-qpic'
  8410. lt_prog_compiler_static='-qstaticlink'
  8411. ;;
  8412. *)
  8413. case `$CC -V 2>&1 | sed 5q` in
  8414. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8415. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8416. lt_prog_compiler_pic='-KPIC'
  8417. lt_prog_compiler_static='-Bstatic'
  8418. lt_prog_compiler_wl=''
  8419. ;;
  8420. *Sun\ F* | *Sun*Fortran*)
  8421. lt_prog_compiler_pic='-KPIC'
  8422. lt_prog_compiler_static='-Bstatic'
  8423. lt_prog_compiler_wl='-Qoption ld '
  8424. ;;
  8425. *Sun\ C*)
  8426. # Sun C 5.9
  8427. lt_prog_compiler_pic='-KPIC'
  8428. lt_prog_compiler_static='-Bstatic'
  8429. lt_prog_compiler_wl='-Wl,'
  8430. ;;
  8431. *Intel*\ [CF]*Compiler*)
  8432. lt_prog_compiler_wl='-Wl,'
  8433. lt_prog_compiler_pic='-fPIC'
  8434. lt_prog_compiler_static='-static'
  8435. ;;
  8436. *Portland\ Group*)
  8437. lt_prog_compiler_wl='-Wl,'
  8438. lt_prog_compiler_pic='-fpic'
  8439. lt_prog_compiler_static='-Bstatic'
  8440. ;;
  8441. esac
  8442. ;;
  8443. esac
  8444. ;;
  8445. newsos6)
  8446. lt_prog_compiler_pic='-KPIC'
  8447. lt_prog_compiler_static='-Bstatic'
  8448. ;;
  8449. *nto* | *qnx*)
  8450. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8451. # it will coredump.
  8452. lt_prog_compiler_pic='-fPIC -shared'
  8453. ;;
  8454. osf3* | osf4* | osf5*)
  8455. lt_prog_compiler_wl='-Wl,'
  8456. # All OSF/1 code is PIC.
  8457. lt_prog_compiler_static='-non_shared'
  8458. ;;
  8459. rdos*)
  8460. lt_prog_compiler_static='-non_shared'
  8461. ;;
  8462. solaris*)
  8463. lt_prog_compiler_pic='-KPIC'
  8464. lt_prog_compiler_static='-Bstatic'
  8465. case $cc_basename in
  8466. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8467. lt_prog_compiler_wl='-Qoption ld ';;
  8468. *)
  8469. lt_prog_compiler_wl='-Wl,';;
  8470. esac
  8471. ;;
  8472. sunos4*)
  8473. lt_prog_compiler_wl='-Qoption ld '
  8474. lt_prog_compiler_pic='-PIC'
  8475. lt_prog_compiler_static='-Bstatic'
  8476. ;;
  8477. sysv4 | sysv4.2uw2* | sysv4.3*)
  8478. lt_prog_compiler_wl='-Wl,'
  8479. lt_prog_compiler_pic='-KPIC'
  8480. lt_prog_compiler_static='-Bstatic'
  8481. ;;
  8482. sysv4*MP*)
  8483. if test -d /usr/nec; then
  8484. lt_prog_compiler_pic='-Kconform_pic'
  8485. lt_prog_compiler_static='-Bstatic'
  8486. fi
  8487. ;;
  8488. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8489. lt_prog_compiler_wl='-Wl,'
  8490. lt_prog_compiler_pic='-KPIC'
  8491. lt_prog_compiler_static='-Bstatic'
  8492. ;;
  8493. unicos*)
  8494. lt_prog_compiler_wl='-Wl,'
  8495. lt_prog_compiler_can_build_shared=no
  8496. ;;
  8497. uts4*)
  8498. lt_prog_compiler_pic='-pic'
  8499. lt_prog_compiler_static='-Bstatic'
  8500. ;;
  8501. *)
  8502. lt_prog_compiler_can_build_shared=no
  8503. ;;
  8504. esac
  8505. fi
  8506. case $host_os in
  8507. # For platforms that do not support PIC, -DPIC is meaningless:
  8508. *djgpp*)
  8509. lt_prog_compiler_pic=
  8510. ;;
  8511. *)
  8512. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8513. ;;
  8514. esac
  8515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8516. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8517. if ${lt_cv_prog_compiler_pic+:} false; then :
  8518. $as_echo_n "(cached) " >&6
  8519. else
  8520. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8521. fi
  8522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8523. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8524. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8525. #
  8526. # Check to make sure the PIC flag actually works.
  8527. #
  8528. if test -n "$lt_prog_compiler_pic"; then
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8530. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8531. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8532. $as_echo_n "(cached) " >&6
  8533. else
  8534. lt_cv_prog_compiler_pic_works=no
  8535. ac_outfile=conftest.$ac_objext
  8536. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8537. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8538. # Insert the option either (1) after the last *FLAGS variable, or
  8539. # (2) before a word containing "conftest.", or (3) at the end.
  8540. # Note that $ac_compile itself does not contain backslashes and begins
  8541. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8542. # The option is referenced via a variable to avoid confusing sed.
  8543. lt_compile=`echo "$ac_compile" | $SED \
  8544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8546. -e 's:$: $lt_compiler_flag:'`
  8547. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8548. (eval "$lt_compile" 2>conftest.err)
  8549. ac_status=$?
  8550. cat conftest.err >&5
  8551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8552. if (exit $ac_status) && test -s "$ac_outfile"; then
  8553. # The compiler can only warn and ignore the option if not recognized
  8554. # So say no if there are warnings other than the usual output.
  8555. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8556. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8557. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8558. lt_cv_prog_compiler_pic_works=yes
  8559. fi
  8560. fi
  8561. $RM conftest*
  8562. fi
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8564. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8565. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8566. case $lt_prog_compiler_pic in
  8567. "" | " "*) ;;
  8568. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8569. esac
  8570. else
  8571. lt_prog_compiler_pic=
  8572. lt_prog_compiler_can_build_shared=no
  8573. fi
  8574. fi
  8575. #
  8576. # Check to make sure the static flag actually works.
  8577. #
  8578. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8580. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8581. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8582. $as_echo_n "(cached) " >&6
  8583. else
  8584. lt_cv_prog_compiler_static_works=no
  8585. save_LDFLAGS=$LDFLAGS
  8586. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8587. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8588. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8589. # The linker can only warn and ignore the option if not recognized
  8590. # So say no if there are warnings
  8591. if test -s conftest.err; then
  8592. # Append any errors to the config.log.
  8593. cat conftest.err 1>&5
  8594. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8595. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8596. if diff conftest.exp conftest.er2 >/dev/null; then
  8597. lt_cv_prog_compiler_static_works=yes
  8598. fi
  8599. else
  8600. lt_cv_prog_compiler_static_works=yes
  8601. fi
  8602. fi
  8603. $RM -r conftest*
  8604. LDFLAGS=$save_LDFLAGS
  8605. fi
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8607. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8608. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8609. :
  8610. else
  8611. lt_prog_compiler_static=
  8612. fi
  8613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8614. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8615. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8616. $as_echo_n "(cached) " >&6
  8617. else
  8618. lt_cv_prog_compiler_c_o=no
  8619. $RM -r conftest 2>/dev/null
  8620. mkdir conftest
  8621. cd conftest
  8622. mkdir out
  8623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8624. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8625. # Insert the option either (1) after the last *FLAGS variable, or
  8626. # (2) before a word containing "conftest.", or (3) at the end.
  8627. # Note that $ac_compile itself does not contain backslashes and begins
  8628. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8629. lt_compile=`echo "$ac_compile" | $SED \
  8630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8632. -e 's:$: $lt_compiler_flag:'`
  8633. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8634. (eval "$lt_compile" 2>out/conftest.err)
  8635. ac_status=$?
  8636. cat out/conftest.err >&5
  8637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8638. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8639. then
  8640. # The compiler can only warn and ignore the option if not recognized
  8641. # So say no if there are warnings
  8642. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8643. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8644. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8645. lt_cv_prog_compiler_c_o=yes
  8646. fi
  8647. fi
  8648. chmod u+w . 2>&5
  8649. $RM conftest*
  8650. # SGI C++ compiler will create directory out/ii_files/ for
  8651. # template instantiation
  8652. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8653. $RM out/* && rmdir out
  8654. cd ..
  8655. $RM -r conftest
  8656. $RM conftest*
  8657. fi
  8658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8659. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8661. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8662. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8663. $as_echo_n "(cached) " >&6
  8664. else
  8665. lt_cv_prog_compiler_c_o=no
  8666. $RM -r conftest 2>/dev/null
  8667. mkdir conftest
  8668. cd conftest
  8669. mkdir out
  8670. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8671. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8672. # Insert the option either (1) after the last *FLAGS variable, or
  8673. # (2) before a word containing "conftest.", or (3) at the end.
  8674. # Note that $ac_compile itself does not contain backslashes and begins
  8675. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8676. lt_compile=`echo "$ac_compile" | $SED \
  8677. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8678. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8679. -e 's:$: $lt_compiler_flag:'`
  8680. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8681. (eval "$lt_compile" 2>out/conftest.err)
  8682. ac_status=$?
  8683. cat out/conftest.err >&5
  8684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8685. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8686. then
  8687. # The compiler can only warn and ignore the option if not recognized
  8688. # So say no if there are warnings
  8689. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8690. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8691. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8692. lt_cv_prog_compiler_c_o=yes
  8693. fi
  8694. fi
  8695. chmod u+w . 2>&5
  8696. $RM conftest*
  8697. # SGI C++ compiler will create directory out/ii_files/ for
  8698. # template instantiation
  8699. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8700. $RM out/* && rmdir out
  8701. cd ..
  8702. $RM -r conftest
  8703. $RM conftest*
  8704. fi
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8706. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8707. hard_links=nottested
  8708. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8709. # do not overwrite the value of need_locks provided by the user
  8710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8711. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8712. hard_links=yes
  8713. $RM conftest*
  8714. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8715. touch conftest.a
  8716. ln conftest.a conftest.b 2>&5 || hard_links=no
  8717. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8719. $as_echo "$hard_links" >&6; }
  8720. if test no = "$hard_links"; then
  8721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8722. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8723. need_locks=warn
  8724. fi
  8725. else
  8726. need_locks=no
  8727. fi
  8728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8729. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8730. runpath_var=
  8731. allow_undefined_flag=
  8732. always_export_symbols=no
  8733. archive_cmds=
  8734. archive_expsym_cmds=
  8735. compiler_needs_object=no
  8736. enable_shared_with_static_runtimes=no
  8737. export_dynamic_flag_spec=
  8738. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8739. hardcode_automatic=no
  8740. hardcode_direct=no
  8741. hardcode_direct_absolute=no
  8742. hardcode_libdir_flag_spec=
  8743. hardcode_libdir_separator=
  8744. hardcode_minus_L=no
  8745. hardcode_shlibpath_var=unsupported
  8746. inherit_rpath=no
  8747. link_all_deplibs=unknown
  8748. module_cmds=
  8749. module_expsym_cmds=
  8750. old_archive_from_new_cmds=
  8751. old_archive_from_expsyms_cmds=
  8752. thread_safe_flag_spec=
  8753. whole_archive_flag_spec=
  8754. # include_expsyms should be a list of space-separated symbols to be *always*
  8755. # included in the symbol list
  8756. include_expsyms=
  8757. # exclude_expsyms can be an extended regexp of symbols to exclude
  8758. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8759. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8760. # as well as any symbol that contains 'd'.
  8761. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8762. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8763. # platforms (ab)use it in PIC code, but their linkers get confused if
  8764. # the symbol is explicitly referenced. Since portable code cannot
  8765. # rely on this symbol name, it's probably fine to never include it in
  8766. # preloaded symbol tables.
  8767. # Exclude shared library initialization/finalization symbols.
  8768. extract_expsyms_cmds=
  8769. case $host_os in
  8770. cygwin* | mingw* | pw32* | cegcc*)
  8771. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8772. # When not using gcc, we currently assume that we are using
  8773. # Microsoft Visual C++.
  8774. if test yes != "$GCC"; then
  8775. with_gnu_ld=no
  8776. fi
  8777. ;;
  8778. interix*)
  8779. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8780. with_gnu_ld=yes
  8781. ;;
  8782. openbsd* | bitrig*)
  8783. with_gnu_ld=no
  8784. ;;
  8785. linux* | k*bsd*-gnu | gnu*)
  8786. link_all_deplibs=no
  8787. ;;
  8788. esac
  8789. ld_shlibs=yes
  8790. # On some targets, GNU ld is compatible enough with the native linker
  8791. # that we're better off using the native interface for both.
  8792. lt_use_gnu_ld_interface=no
  8793. if test yes = "$with_gnu_ld"; then
  8794. case $host_os in
  8795. aix*)
  8796. # The AIX port of GNU ld has always aspired to compatibility
  8797. # with the native linker. However, as the warning in the GNU ld
  8798. # block says, versions before 2.19.5* couldn't really create working
  8799. # shared libraries, regardless of the interface used.
  8800. case `$LD -v 2>&1` in
  8801. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8802. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8803. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8804. *)
  8805. lt_use_gnu_ld_interface=yes
  8806. ;;
  8807. esac
  8808. ;;
  8809. *)
  8810. lt_use_gnu_ld_interface=yes
  8811. ;;
  8812. esac
  8813. fi
  8814. if test yes = "$lt_use_gnu_ld_interface"; then
  8815. # If archive_cmds runs LD, not CC, wlarc should be empty
  8816. wlarc='$wl'
  8817. # Set some defaults for GNU ld with shared library support. These
  8818. # are reset later if shared libraries are not supported. Putting them
  8819. # here allows them to be overridden if necessary.
  8820. runpath_var=LD_RUN_PATH
  8821. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8822. export_dynamic_flag_spec='$wl--export-dynamic'
  8823. # ancient GNU ld didn't support --whole-archive et. al.
  8824. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8825. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8826. else
  8827. whole_archive_flag_spec=
  8828. fi
  8829. supports_anon_versioning=no
  8830. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8831. *GNU\ gold*) supports_anon_versioning=yes ;;
  8832. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8833. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8834. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8835. *\ 2.11.*) ;; # other 2.11 versions
  8836. *) supports_anon_versioning=yes ;;
  8837. esac
  8838. # See if GNU ld supports shared libraries.
  8839. case $host_os in
  8840. aix[3-9]*)
  8841. # On AIX/PPC, the GNU linker is very broken
  8842. if test ia64 != "$host_cpu"; then
  8843. ld_shlibs=no
  8844. cat <<_LT_EOF 1>&2
  8845. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8846. *** to be unable to reliably create shared libraries on AIX.
  8847. *** Therefore, libtool is disabling shared libraries support. If you
  8848. *** really care for shared libraries, you may want to install binutils
  8849. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8850. *** You will then need to restart the configuration process.
  8851. _LT_EOF
  8852. fi
  8853. ;;
  8854. amigaos*)
  8855. case $host_cpu in
  8856. powerpc)
  8857. # see comment about AmigaOS4 .so support
  8858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8859. archive_expsym_cmds=''
  8860. ;;
  8861. m68k)
  8862. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8863. hardcode_libdir_flag_spec='-L$libdir'
  8864. hardcode_minus_L=yes
  8865. ;;
  8866. esac
  8867. ;;
  8868. beos*)
  8869. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8870. allow_undefined_flag=unsupported
  8871. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8872. # support --undefined. This deserves some investigation. FIXME
  8873. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8874. else
  8875. ld_shlibs=no
  8876. fi
  8877. ;;
  8878. cygwin* | mingw* | pw32* | cegcc*)
  8879. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8880. # as there is no search path for DLLs.
  8881. hardcode_libdir_flag_spec='-L$libdir'
  8882. export_dynamic_flag_spec='$wl--export-all-symbols'
  8883. allow_undefined_flag=unsupported
  8884. always_export_symbols=no
  8885. enable_shared_with_static_runtimes=yes
  8886. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8887. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8888. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8889. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8890. # If the export-symbols file already is a .def file, use it as
  8891. # is; otherwise, prepend EXPORTS...
  8892. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8893. cp $export_symbols $output_objdir/$soname.def;
  8894. else
  8895. echo EXPORTS > $output_objdir/$soname.def;
  8896. cat $export_symbols >> $output_objdir/$soname.def;
  8897. fi~
  8898. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8899. else
  8900. ld_shlibs=no
  8901. fi
  8902. ;;
  8903. haiku*)
  8904. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8905. link_all_deplibs=yes
  8906. ;;
  8907. os2*)
  8908. hardcode_libdir_flag_spec='-L$libdir'
  8909. hardcode_minus_L=yes
  8910. allow_undefined_flag=unsupported
  8911. shrext_cmds=.dll
  8912. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8913. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8914. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8915. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8916. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8917. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8918. emximp -o $lib $output_objdir/$libname.def'
  8919. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8920. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8921. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8922. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8923. prefix_cmds="$SED"~
  8924. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8925. prefix_cmds="$prefix_cmds -e 1d";
  8926. fi~
  8927. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8928. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8929. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8930. emximp -o $lib $output_objdir/$libname.def'
  8931. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8932. enable_shared_with_static_runtimes=yes
  8933. ;;
  8934. interix[3-9]*)
  8935. hardcode_direct=no
  8936. hardcode_shlibpath_var=no
  8937. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8938. export_dynamic_flag_spec='$wl-E'
  8939. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8940. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8941. # default) and relocated if they conflict, which is a slow very memory
  8942. # consuming and fragmenting process. To avoid this, we pick a random,
  8943. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8944. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8945. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8946. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8947. ;;
  8948. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8949. tmp_diet=no
  8950. if test linux-dietlibc = "$host_os"; then
  8951. case $cc_basename in
  8952. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8953. esac
  8954. fi
  8955. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8956. && test no = "$tmp_diet"
  8957. then
  8958. tmp_addflag=' $pic_flag'
  8959. tmp_sharedflag='-shared'
  8960. case $cc_basename,$host_cpu in
  8961. pgcc*) # Portland Group C compiler
  8962. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8963. tmp_addflag=' $pic_flag'
  8964. ;;
  8965. pgf77* | pgf90* | pgf95* | pgfortran*)
  8966. # Portland Group f77 and f90 compilers
  8967. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8968. tmp_addflag=' $pic_flag -Mnomain' ;;
  8969. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8970. tmp_addflag=' -i_dynamic' ;;
  8971. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8972. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8973. ifc* | ifort*) # Intel Fortran compiler
  8974. tmp_addflag=' -nofor_main' ;;
  8975. lf95*) # Lahey Fortran 8.1
  8976. whole_archive_flag_spec=
  8977. tmp_sharedflag='--shared' ;;
  8978. nagfor*) # NAGFOR 5.3
  8979. tmp_sharedflag='-Wl,-shared' ;;
  8980. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8981. tmp_sharedflag='-qmkshrobj'
  8982. tmp_addflag= ;;
  8983. nvcc*) # Cuda Compiler Driver 2.2
  8984. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8985. compiler_needs_object=yes
  8986. ;;
  8987. esac
  8988. case `$CC -V 2>&1 | sed 5q` in
  8989. *Sun\ C*) # Sun C 5.9
  8990. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8991. compiler_needs_object=yes
  8992. tmp_sharedflag='-G' ;;
  8993. *Sun\ F*) # Sun Fortran 8.3
  8994. tmp_sharedflag='-G' ;;
  8995. esac
  8996. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8997. if test yes = "$supports_anon_versioning"; then
  8998. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8999. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9000. echo "local: *; };" >> $output_objdir/$libname.ver~
  9001. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9002. fi
  9003. case $cc_basename in
  9004. tcc*)
  9005. export_dynamic_flag_spec='-rdynamic'
  9006. ;;
  9007. xlf* | bgf* | bgxlf* | mpixlf*)
  9008. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9009. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9010. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9011. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9012. if test yes = "$supports_anon_versioning"; then
  9013. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9014. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9015. echo "local: *; };" >> $output_objdir/$libname.ver~
  9016. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9017. fi
  9018. ;;
  9019. esac
  9020. else
  9021. ld_shlibs=no
  9022. fi
  9023. ;;
  9024. netbsd* | netbsdelf*-gnu)
  9025. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9026. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9027. wlarc=
  9028. else
  9029. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9030. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9031. fi
  9032. ;;
  9033. solaris*)
  9034. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9035. ld_shlibs=no
  9036. cat <<_LT_EOF 1>&2
  9037. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9038. *** create shared libraries on Solaris systems. Therefore, libtool
  9039. *** is disabling shared libraries support. We urge you to upgrade GNU
  9040. *** binutils to release 2.9.1 or newer. Another option is to modify
  9041. *** your PATH or compiler configuration so that the native linker is
  9042. *** used, and then restart.
  9043. _LT_EOF
  9044. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9045. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9046. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9047. else
  9048. ld_shlibs=no
  9049. fi
  9050. ;;
  9051. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9052. case `$LD -v 2>&1` in
  9053. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9054. ld_shlibs=no
  9055. cat <<_LT_EOF 1>&2
  9056. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9057. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9058. *** is disabling shared libraries support. We urge you to upgrade GNU
  9059. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9060. *** your PATH or compiler configuration so that the native linker is
  9061. *** used, and then restart.
  9062. _LT_EOF
  9063. ;;
  9064. *)
  9065. # For security reasons, it is highly recommended that you always
  9066. # use absolute paths for naming shared libraries, and exclude the
  9067. # DT_RUNPATH tag from executables and libraries. But doing so
  9068. # requires that you compile everything twice, which is a pain.
  9069. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9070. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9071. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9072. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9073. else
  9074. ld_shlibs=no
  9075. fi
  9076. ;;
  9077. esac
  9078. ;;
  9079. sunos4*)
  9080. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9081. wlarc=
  9082. hardcode_direct=yes
  9083. hardcode_shlibpath_var=no
  9084. ;;
  9085. *)
  9086. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9087. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9088. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9089. else
  9090. ld_shlibs=no
  9091. fi
  9092. ;;
  9093. esac
  9094. if test no = "$ld_shlibs"; then
  9095. runpath_var=
  9096. hardcode_libdir_flag_spec=
  9097. export_dynamic_flag_spec=
  9098. whole_archive_flag_spec=
  9099. fi
  9100. else
  9101. # PORTME fill in a description of your system's linker (not GNU ld)
  9102. case $host_os in
  9103. aix3*)
  9104. allow_undefined_flag=unsupported
  9105. always_export_symbols=yes
  9106. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9107. # Note: this linker hardcodes the directories in LIBPATH if there
  9108. # are no directories specified by -L.
  9109. hardcode_minus_L=yes
  9110. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9111. # Neither direct hardcoding nor static linking is supported with a
  9112. # broken collect2.
  9113. hardcode_direct=unsupported
  9114. fi
  9115. ;;
  9116. aix[4-9]*)
  9117. if test ia64 = "$host_cpu"; then
  9118. # On IA64, the linker does run time linking by default, so we don't
  9119. # have to do anything special.
  9120. aix_use_runtimelinking=no
  9121. exp_sym_flag='-Bexport'
  9122. no_entry_flag=
  9123. else
  9124. # If we're using GNU nm, then we don't want the "-C" option.
  9125. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9126. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9127. # weak defined symbols like other global defined symbols, whereas
  9128. # GNU nm marks them as "W".
  9129. # While the 'weak' keyword is ignored in the Export File, we need
  9130. # it in the Import File for the 'aix-soname' feature, so we have
  9131. # to replace the "-B" option with "-P" for AIX nm.
  9132. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9133. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9134. else
  9135. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9136. fi
  9137. aix_use_runtimelinking=no
  9138. # Test if we are trying to use run time linking or normal
  9139. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9140. # have runtime linking enabled, and use it for executables.
  9141. # For shared libraries, we enable/disable runtime linking
  9142. # depending on the kind of the shared library created -
  9143. # when "with_aix_soname,aix_use_runtimelinking" is:
  9144. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9145. # "aix,yes" lib.so shared, rtl:yes, for executables
  9146. # lib.a static archive
  9147. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9148. # lib.a(lib.so.V) shared, rtl:no, for executables
  9149. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9150. # lib.a(lib.so.V) shared, rtl:no
  9151. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9152. # lib.a static archive
  9153. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9154. for ld_flag in $LDFLAGS; do
  9155. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9156. aix_use_runtimelinking=yes
  9157. break
  9158. fi
  9159. done
  9160. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9161. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9162. # so we don't have lib.a shared libs to link our executables.
  9163. # We have to force runtime linking in this case.
  9164. aix_use_runtimelinking=yes
  9165. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9166. fi
  9167. ;;
  9168. esac
  9169. exp_sym_flag='-bexport'
  9170. no_entry_flag='-bnoentry'
  9171. fi
  9172. # When large executables or shared objects are built, AIX ld can
  9173. # have problems creating the table of contents. If linking a library
  9174. # or program results in "error TOC overflow" add -mminimal-toc to
  9175. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9176. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9177. archive_cmds=''
  9178. hardcode_direct=yes
  9179. hardcode_direct_absolute=yes
  9180. hardcode_libdir_separator=':'
  9181. link_all_deplibs=yes
  9182. file_list_spec='$wl-f,'
  9183. case $with_aix_soname,$aix_use_runtimelinking in
  9184. aix,*) ;; # traditional, no import file
  9185. svr4,* | *,yes) # use import file
  9186. # The Import File defines what to hardcode.
  9187. hardcode_direct=no
  9188. hardcode_direct_absolute=no
  9189. ;;
  9190. esac
  9191. if test yes = "$GCC"; then
  9192. case $host_os in aix4.[012]|aix4.[012].*)
  9193. # We only want to do this on AIX 4.2 and lower, the check
  9194. # below for broken collect2 doesn't work under 4.3+
  9195. collect2name=`$CC -print-prog-name=collect2`
  9196. if test -f "$collect2name" &&
  9197. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9198. then
  9199. # We have reworked collect2
  9200. :
  9201. else
  9202. # We have old collect2
  9203. hardcode_direct=unsupported
  9204. # It fails to find uninstalled libraries when the uninstalled
  9205. # path is not listed in the libpath. Setting hardcode_minus_L
  9206. # to unsupported forces relinking
  9207. hardcode_minus_L=yes
  9208. hardcode_libdir_flag_spec='-L$libdir'
  9209. hardcode_libdir_separator=
  9210. fi
  9211. ;;
  9212. esac
  9213. shared_flag='-shared'
  9214. if test yes = "$aix_use_runtimelinking"; then
  9215. shared_flag="$shared_flag "'$wl-G'
  9216. fi
  9217. # Need to ensure runtime linking is disabled for the traditional
  9218. # shared library, or the linker may eventually find shared libraries
  9219. # /with/ Import File - we do not want to mix them.
  9220. shared_flag_aix='-shared'
  9221. shared_flag_svr4='-shared $wl-G'
  9222. else
  9223. # not using gcc
  9224. if test ia64 = "$host_cpu"; then
  9225. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9226. # chokes on -Wl,-G. The following line is correct:
  9227. shared_flag='-G'
  9228. else
  9229. if test yes = "$aix_use_runtimelinking"; then
  9230. shared_flag='$wl-G'
  9231. else
  9232. shared_flag='$wl-bM:SRE'
  9233. fi
  9234. shared_flag_aix='$wl-bM:SRE'
  9235. shared_flag_svr4='$wl-G'
  9236. fi
  9237. fi
  9238. export_dynamic_flag_spec='$wl-bexpall'
  9239. # It seems that -bexpall does not export symbols beginning with
  9240. # underscore (_), so it is better to generate a list of symbols to export.
  9241. always_export_symbols=yes
  9242. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9243. # Warning - without using the other runtime loading flags (-brtl),
  9244. # -berok will link without error, but may produce a broken library.
  9245. allow_undefined_flag='-berok'
  9246. # Determine the default libpath from the value encoded in an
  9247. # empty executable.
  9248. if test set = "${lt_cv_aix_libpath+set}"; then
  9249. aix_libpath=$lt_cv_aix_libpath
  9250. else
  9251. if ${lt_cv_aix_libpath_+:} false; then :
  9252. $as_echo_n "(cached) " >&6
  9253. else
  9254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9255. /* end confdefs.h. */
  9256. int
  9257. main ()
  9258. {
  9259. ;
  9260. return 0;
  9261. }
  9262. _ACEOF
  9263. if ac_fn_c_try_link "$LINENO"; then :
  9264. lt_aix_libpath_sed='
  9265. /Import File Strings/,/^$/ {
  9266. /^0/ {
  9267. s/^0 *\([^ ]*\) *$/\1/
  9268. p
  9269. }
  9270. }'
  9271. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9272. # Check for a 64-bit object if we didn't find anything.
  9273. if test -z "$lt_cv_aix_libpath_"; then
  9274. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9275. fi
  9276. fi
  9277. rm -f core conftest.err conftest.$ac_objext \
  9278. conftest$ac_exeext conftest.$ac_ext
  9279. if test -z "$lt_cv_aix_libpath_"; then
  9280. lt_cv_aix_libpath_=/usr/lib:/lib
  9281. fi
  9282. fi
  9283. aix_libpath=$lt_cv_aix_libpath_
  9284. fi
  9285. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9286. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9287. else
  9288. if test ia64 = "$host_cpu"; then
  9289. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9290. allow_undefined_flag="-z nodefs"
  9291. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  9292. else
  9293. # Determine the default libpath from the value encoded in an
  9294. # empty executable.
  9295. if test set = "${lt_cv_aix_libpath+set}"; then
  9296. aix_libpath=$lt_cv_aix_libpath
  9297. else
  9298. if ${lt_cv_aix_libpath_+:} false; then :
  9299. $as_echo_n "(cached) " >&6
  9300. else
  9301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9302. /* end confdefs.h. */
  9303. int
  9304. main ()
  9305. {
  9306. ;
  9307. return 0;
  9308. }
  9309. _ACEOF
  9310. if ac_fn_c_try_link "$LINENO"; then :
  9311. lt_aix_libpath_sed='
  9312. /Import File Strings/,/^$/ {
  9313. /^0/ {
  9314. s/^0 *\([^ ]*\) *$/\1/
  9315. p
  9316. }
  9317. }'
  9318. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9319. # Check for a 64-bit object if we didn't find anything.
  9320. if test -z "$lt_cv_aix_libpath_"; then
  9321. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9322. fi
  9323. fi
  9324. rm -f core conftest.err conftest.$ac_objext \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. if test -z "$lt_cv_aix_libpath_"; then
  9327. lt_cv_aix_libpath_=/usr/lib:/lib
  9328. fi
  9329. fi
  9330. aix_libpath=$lt_cv_aix_libpath_
  9331. fi
  9332. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9333. # Warning - without using the other run time loading flags,
  9334. # -berok will link without error, but may produce a broken library.
  9335. no_undefined_flag=' $wl-bernotok'
  9336. allow_undefined_flag=' $wl-berok'
  9337. if test yes = "$with_gnu_ld"; then
  9338. # We only use this code for GNU lds that support --whole-archive.
  9339. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9340. else
  9341. # Exported symbols can be pulled into shared objects from archives
  9342. whole_archive_flag_spec='$convenience'
  9343. fi
  9344. archive_cmds_need_lc=yes
  9345. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9346. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9347. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9348. if test svr4 != "$with_aix_soname"; then
  9349. # This is similar to how AIX traditionally builds its shared libraries.
  9350. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9351. fi
  9352. if test aix != "$with_aix_soname"; then
  9353. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9354. else
  9355. # used by -dlpreopen to get the symbols
  9356. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9357. fi
  9358. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9359. fi
  9360. fi
  9361. ;;
  9362. amigaos*)
  9363. case $host_cpu in
  9364. powerpc)
  9365. # see comment about AmigaOS4 .so support
  9366. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9367. archive_expsym_cmds=''
  9368. ;;
  9369. m68k)
  9370. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9371. hardcode_libdir_flag_spec='-L$libdir'
  9372. hardcode_minus_L=yes
  9373. ;;
  9374. esac
  9375. ;;
  9376. bsdi[45]*)
  9377. export_dynamic_flag_spec=-rdynamic
  9378. ;;
  9379. cygwin* | mingw* | pw32* | cegcc*)
  9380. # When not using gcc, we currently assume that we are using
  9381. # Microsoft Visual C++.
  9382. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9383. # no search path for DLLs.
  9384. case $cc_basename in
  9385. cl*)
  9386. # Native MSVC
  9387. hardcode_libdir_flag_spec=' '
  9388. allow_undefined_flag=unsupported
  9389. always_export_symbols=yes
  9390. file_list_spec='@'
  9391. # Tell ltmain to make .lib files, not .a files.
  9392. libext=lib
  9393. # Tell ltmain to make .dll files, not .so files.
  9394. shrext_cmds=.dll
  9395. # FIXME: Setting linknames here is a bad hack.
  9396. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9397. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9398. cp "$export_symbols" "$output_objdir/$soname.def";
  9399. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9400. else
  9401. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9402. fi~
  9403. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9404. linknames='
  9405. # The linker will not automatically build a static lib if we build a DLL.
  9406. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9407. enable_shared_with_static_runtimes=yes
  9408. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9409. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9410. # Don't use ranlib
  9411. old_postinstall_cmds='chmod 644 $oldlib'
  9412. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9413. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9414. case $lt_outputfile in
  9415. *.exe|*.EXE) ;;
  9416. *)
  9417. lt_outputfile=$lt_outputfile.exe
  9418. lt_tool_outputfile=$lt_tool_outputfile.exe
  9419. ;;
  9420. esac~
  9421. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9422. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9423. $RM "$lt_outputfile.manifest";
  9424. fi'
  9425. ;;
  9426. *)
  9427. # Assume MSVC wrapper
  9428. hardcode_libdir_flag_spec=' '
  9429. allow_undefined_flag=unsupported
  9430. # Tell ltmain to make .lib files, not .a files.
  9431. libext=lib
  9432. # Tell ltmain to make .dll files, not .so files.
  9433. shrext_cmds=.dll
  9434. # FIXME: Setting linknames here is a bad hack.
  9435. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9436. # The linker will automatically build a .lib file if we build a DLL.
  9437. old_archive_from_new_cmds='true'
  9438. # FIXME: Should let the user specify the lib program.
  9439. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9440. enable_shared_with_static_runtimes=yes
  9441. ;;
  9442. esac
  9443. ;;
  9444. darwin* | rhapsody*)
  9445. archive_cmds_need_lc=no
  9446. hardcode_direct=no
  9447. hardcode_automatic=yes
  9448. hardcode_shlibpath_var=unsupported
  9449. if test yes = "$lt_cv_ld_force_load"; then
  9450. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9451. else
  9452. whole_archive_flag_spec=''
  9453. fi
  9454. link_all_deplibs=yes
  9455. allow_undefined_flag=$_lt_dar_allow_undefined
  9456. case $cc_basename in
  9457. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9458. *) _lt_dar_can_shared=$GCC ;;
  9459. esac
  9460. if test yes = "$_lt_dar_can_shared"; then
  9461. output_verbose_link_cmd=func_echo_all
  9462. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9463. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9464. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  9465. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  9466. else
  9467. ld_shlibs=no
  9468. fi
  9469. ;;
  9470. dgux*)
  9471. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9472. hardcode_libdir_flag_spec='-L$libdir'
  9473. hardcode_shlibpath_var=no
  9474. ;;
  9475. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9476. # support. Future versions do this automatically, but an explicit c++rt0.o
  9477. # does not break anything, and helps significantly (at the cost of a little
  9478. # extra space).
  9479. freebsd2.2*)
  9480. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9481. hardcode_libdir_flag_spec='-R$libdir'
  9482. hardcode_direct=yes
  9483. hardcode_shlibpath_var=no
  9484. ;;
  9485. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9486. freebsd2.*)
  9487. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9488. hardcode_direct=yes
  9489. hardcode_minus_L=yes
  9490. hardcode_shlibpath_var=no
  9491. ;;
  9492. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9493. freebsd* | dragonfly*)
  9494. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9495. hardcode_libdir_flag_spec='-R$libdir'
  9496. hardcode_direct=yes
  9497. hardcode_shlibpath_var=no
  9498. ;;
  9499. hpux9*)
  9500. if test yes = "$GCC"; then
  9501. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9502. else
  9503. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9504. fi
  9505. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9506. hardcode_libdir_separator=:
  9507. hardcode_direct=yes
  9508. # hardcode_minus_L: Not really in the search PATH,
  9509. # but as the default location of the library.
  9510. hardcode_minus_L=yes
  9511. export_dynamic_flag_spec='$wl-E'
  9512. ;;
  9513. hpux10*)
  9514. if test yes,no = "$GCC,$with_gnu_ld"; then
  9515. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9516. else
  9517. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9518. fi
  9519. if test no = "$with_gnu_ld"; then
  9520. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9521. hardcode_libdir_separator=:
  9522. hardcode_direct=yes
  9523. hardcode_direct_absolute=yes
  9524. export_dynamic_flag_spec='$wl-E'
  9525. # hardcode_minus_L: Not really in the search PATH,
  9526. # but as the default location of the library.
  9527. hardcode_minus_L=yes
  9528. fi
  9529. ;;
  9530. hpux11*)
  9531. if test yes,no = "$GCC,$with_gnu_ld"; then
  9532. case $host_cpu in
  9533. hppa*64*)
  9534. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9535. ;;
  9536. ia64*)
  9537. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9538. ;;
  9539. *)
  9540. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9541. ;;
  9542. esac
  9543. else
  9544. case $host_cpu in
  9545. hppa*64*)
  9546. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9547. ;;
  9548. ia64*)
  9549. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9550. ;;
  9551. *)
  9552. # Older versions of the 11.00 compiler do not understand -b yet
  9553. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9555. $as_echo_n "checking if $CC understands -b... " >&6; }
  9556. if ${lt_cv_prog_compiler__b+:} false; then :
  9557. $as_echo_n "(cached) " >&6
  9558. else
  9559. lt_cv_prog_compiler__b=no
  9560. save_LDFLAGS=$LDFLAGS
  9561. LDFLAGS="$LDFLAGS -b"
  9562. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9563. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9564. # The linker can only warn and ignore the option if not recognized
  9565. # So say no if there are warnings
  9566. if test -s conftest.err; then
  9567. # Append any errors to the config.log.
  9568. cat conftest.err 1>&5
  9569. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9570. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9571. if diff conftest.exp conftest.er2 >/dev/null; then
  9572. lt_cv_prog_compiler__b=yes
  9573. fi
  9574. else
  9575. lt_cv_prog_compiler__b=yes
  9576. fi
  9577. fi
  9578. $RM -r conftest*
  9579. LDFLAGS=$save_LDFLAGS
  9580. fi
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9582. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9583. if test yes = "$lt_cv_prog_compiler__b"; then
  9584. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9585. else
  9586. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9587. fi
  9588. ;;
  9589. esac
  9590. fi
  9591. if test no = "$with_gnu_ld"; then
  9592. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9593. hardcode_libdir_separator=:
  9594. case $host_cpu in
  9595. hppa*64*|ia64*)
  9596. hardcode_direct=no
  9597. hardcode_shlibpath_var=no
  9598. ;;
  9599. *)
  9600. hardcode_direct=yes
  9601. hardcode_direct_absolute=yes
  9602. export_dynamic_flag_spec='$wl-E'
  9603. # hardcode_minus_L: Not really in the search PATH,
  9604. # but as the default location of the library.
  9605. hardcode_minus_L=yes
  9606. ;;
  9607. esac
  9608. fi
  9609. ;;
  9610. irix5* | irix6* | nonstopux*)
  9611. if test yes = "$GCC"; then
  9612. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9613. # Try to use the -exported_symbol ld option, if it does not
  9614. # work, assume that -exports_file does not work either and
  9615. # implicitly export all symbols.
  9616. # This should be the same for all languages, so no per-tag cache variable.
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9618. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9619. if ${lt_cv_irix_exported_symbol+:} false; then :
  9620. $as_echo_n "(cached) " >&6
  9621. else
  9622. save_LDFLAGS=$LDFLAGS
  9623. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9625. /* end confdefs.h. */
  9626. int foo (void) { return 0; }
  9627. _ACEOF
  9628. if ac_fn_c_try_link "$LINENO"; then :
  9629. lt_cv_irix_exported_symbol=yes
  9630. else
  9631. lt_cv_irix_exported_symbol=no
  9632. fi
  9633. rm -f core conftest.err conftest.$ac_objext \
  9634. conftest$ac_exeext conftest.$ac_ext
  9635. LDFLAGS=$save_LDFLAGS
  9636. fi
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9638. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9639. if test yes = "$lt_cv_irix_exported_symbol"; then
  9640. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9641. fi
  9642. link_all_deplibs=no
  9643. else
  9644. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9645. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9646. fi
  9647. archive_cmds_need_lc='no'
  9648. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9649. hardcode_libdir_separator=:
  9650. inherit_rpath=yes
  9651. link_all_deplibs=yes
  9652. ;;
  9653. linux*)
  9654. case $cc_basename in
  9655. tcc*)
  9656. # Fabrice Bellard et al's Tiny C Compiler
  9657. ld_shlibs=yes
  9658. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9659. ;;
  9660. esac
  9661. ;;
  9662. netbsd* | netbsdelf*-gnu)
  9663. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9664. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9665. else
  9666. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9667. fi
  9668. hardcode_libdir_flag_spec='-R$libdir'
  9669. hardcode_direct=yes
  9670. hardcode_shlibpath_var=no
  9671. ;;
  9672. newsos6)
  9673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9674. hardcode_direct=yes
  9675. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9676. hardcode_libdir_separator=:
  9677. hardcode_shlibpath_var=no
  9678. ;;
  9679. *nto* | *qnx*)
  9680. ;;
  9681. openbsd* | bitrig*)
  9682. if test -f /usr/libexec/ld.so; then
  9683. hardcode_direct=yes
  9684. hardcode_shlibpath_var=no
  9685. hardcode_direct_absolute=yes
  9686. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9687. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9688. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9689. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9690. export_dynamic_flag_spec='$wl-E'
  9691. else
  9692. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9693. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9694. fi
  9695. else
  9696. ld_shlibs=no
  9697. fi
  9698. ;;
  9699. os2*)
  9700. hardcode_libdir_flag_spec='-L$libdir'
  9701. hardcode_minus_L=yes
  9702. allow_undefined_flag=unsupported
  9703. shrext_cmds=.dll
  9704. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9705. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9706. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9707. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9708. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9709. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9710. emximp -o $lib $output_objdir/$libname.def'
  9711. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9712. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9713. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9714. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9715. prefix_cmds="$SED"~
  9716. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9717. prefix_cmds="$prefix_cmds -e 1d";
  9718. fi~
  9719. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9720. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9721. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9722. emximp -o $lib $output_objdir/$libname.def'
  9723. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9724. enable_shared_with_static_runtimes=yes
  9725. ;;
  9726. osf3*)
  9727. if test yes = "$GCC"; then
  9728. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9729. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9730. else
  9731. allow_undefined_flag=' -expect_unresolved \*'
  9732. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9733. fi
  9734. archive_cmds_need_lc='no'
  9735. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9736. hardcode_libdir_separator=:
  9737. ;;
  9738. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9739. if test yes = "$GCC"; then
  9740. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9741. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9742. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9743. else
  9744. allow_undefined_flag=' -expect_unresolved \*'
  9745. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9746. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9747. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9748. # Both c and cxx compiler support -rpath directly
  9749. hardcode_libdir_flag_spec='-rpath $libdir'
  9750. fi
  9751. archive_cmds_need_lc='no'
  9752. hardcode_libdir_separator=:
  9753. ;;
  9754. solaris*)
  9755. no_undefined_flag=' -z defs'
  9756. if test yes = "$GCC"; then
  9757. wlarc='$wl'
  9758. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9759. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9760. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9761. else
  9762. case `$CC -V 2>&1` in
  9763. *"Compilers 5.0"*)
  9764. wlarc=''
  9765. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9766. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9767. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9768. ;;
  9769. *)
  9770. wlarc='$wl'
  9771. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9772. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9773. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9774. ;;
  9775. esac
  9776. fi
  9777. hardcode_libdir_flag_spec='-R$libdir'
  9778. hardcode_shlibpath_var=no
  9779. case $host_os in
  9780. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9781. *)
  9782. # The compiler driver will combine and reorder linker options,
  9783. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9784. # but is careful enough not to reorder.
  9785. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9786. if test yes = "$GCC"; then
  9787. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9788. else
  9789. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9790. fi
  9791. ;;
  9792. esac
  9793. link_all_deplibs=yes
  9794. ;;
  9795. sunos4*)
  9796. if test sequent = "$host_vendor"; then
  9797. # Use $CC to link under sequent, because it throws in some extra .o
  9798. # files that make .init and .fini sections work.
  9799. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9800. else
  9801. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9802. fi
  9803. hardcode_libdir_flag_spec='-L$libdir'
  9804. hardcode_direct=yes
  9805. hardcode_minus_L=yes
  9806. hardcode_shlibpath_var=no
  9807. ;;
  9808. sysv4)
  9809. case $host_vendor in
  9810. sni)
  9811. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9812. hardcode_direct=yes # is this really true???
  9813. ;;
  9814. siemens)
  9815. ## LD is ld it makes a PLAMLIB
  9816. ## CC just makes a GrossModule.
  9817. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9818. reload_cmds='$CC -r -o $output$reload_objs'
  9819. hardcode_direct=no
  9820. ;;
  9821. motorola)
  9822. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9823. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9824. ;;
  9825. esac
  9826. runpath_var='LD_RUN_PATH'
  9827. hardcode_shlibpath_var=no
  9828. ;;
  9829. sysv4.3*)
  9830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9831. hardcode_shlibpath_var=no
  9832. export_dynamic_flag_spec='-Bexport'
  9833. ;;
  9834. sysv4*MP*)
  9835. if test -d /usr/nec; then
  9836. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9837. hardcode_shlibpath_var=no
  9838. runpath_var=LD_RUN_PATH
  9839. hardcode_runpath_var=yes
  9840. ld_shlibs=yes
  9841. fi
  9842. ;;
  9843. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9844. no_undefined_flag='$wl-z,text'
  9845. archive_cmds_need_lc=no
  9846. hardcode_shlibpath_var=no
  9847. runpath_var='LD_RUN_PATH'
  9848. if test yes = "$GCC"; then
  9849. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9850. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9851. else
  9852. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9853. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9854. fi
  9855. ;;
  9856. sysv5* | sco3.2v5* | sco5v6*)
  9857. # Note: We CANNOT use -z defs as we might desire, because we do not
  9858. # link with -lc, and that would cause any symbols used from libc to
  9859. # always be unresolved, which means just about no library would
  9860. # ever link correctly. If we're not using GNU ld we use -z text
  9861. # though, which does catch some bad symbols but isn't as heavy-handed
  9862. # as -z defs.
  9863. no_undefined_flag='$wl-z,text'
  9864. allow_undefined_flag='$wl-z,nodefs'
  9865. archive_cmds_need_lc=no
  9866. hardcode_shlibpath_var=no
  9867. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9868. hardcode_libdir_separator=':'
  9869. link_all_deplibs=yes
  9870. export_dynamic_flag_spec='$wl-Bexport'
  9871. runpath_var='LD_RUN_PATH'
  9872. if test yes = "$GCC"; then
  9873. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9875. else
  9876. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9877. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9878. fi
  9879. ;;
  9880. uts4*)
  9881. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9882. hardcode_libdir_flag_spec='-L$libdir'
  9883. hardcode_shlibpath_var=no
  9884. ;;
  9885. *)
  9886. ld_shlibs=no
  9887. ;;
  9888. esac
  9889. if test sni = "$host_vendor"; then
  9890. case $host in
  9891. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9892. export_dynamic_flag_spec='$wl-Blargedynsym'
  9893. ;;
  9894. esac
  9895. fi
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9898. $as_echo "$ld_shlibs" >&6; }
  9899. test no = "$ld_shlibs" && can_build_shared=no
  9900. with_gnu_ld=$with_gnu_ld
  9901. #
  9902. # Do we need to explicitly link libc?
  9903. #
  9904. case "x$archive_cmds_need_lc" in
  9905. x|xyes)
  9906. # Assume -lc should be added
  9907. archive_cmds_need_lc=yes
  9908. if test yes,yes = "$GCC,$enable_shared"; then
  9909. case $archive_cmds in
  9910. *'~'*)
  9911. # FIXME: we may have to deal with multi-command sequences.
  9912. ;;
  9913. '$CC '*)
  9914. # Test whether the compiler implicitly links with -lc since on some
  9915. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9916. # to ld, don't add -lc before -lgcc.
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9918. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9919. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9920. $as_echo_n "(cached) " >&6
  9921. else
  9922. $RM conftest*
  9923. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9924. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9925. (eval $ac_compile) 2>&5
  9926. ac_status=$?
  9927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9928. test $ac_status = 0; } 2>conftest.err; then
  9929. soname=conftest
  9930. lib=conftest
  9931. libobjs=conftest.$ac_objext
  9932. deplibs=
  9933. wl=$lt_prog_compiler_wl
  9934. pic_flag=$lt_prog_compiler_pic
  9935. compiler_flags=-v
  9936. linker_flags=-v
  9937. verstring=
  9938. output_objdir=.
  9939. libname=conftest
  9940. lt_save_allow_undefined_flag=$allow_undefined_flag
  9941. allow_undefined_flag=
  9942. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9943. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9944. ac_status=$?
  9945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9946. test $ac_status = 0; }
  9947. then
  9948. lt_cv_archive_cmds_need_lc=no
  9949. else
  9950. lt_cv_archive_cmds_need_lc=yes
  9951. fi
  9952. allow_undefined_flag=$lt_save_allow_undefined_flag
  9953. else
  9954. cat conftest.err 1>&5
  9955. fi
  9956. $RM conftest*
  9957. fi
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9959. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9960. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9961. ;;
  9962. esac
  9963. fi
  9964. ;;
  9965. esac
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9967. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9968. if test yes = "$GCC"; then
  9969. case $host_os in
  9970. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9971. *) lt_awk_arg='/^libraries:/' ;;
  9972. esac
  9973. case $host_os in
  9974. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9975. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9976. esac
  9977. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9978. case $lt_search_path_spec in
  9979. *\;*)
  9980. # if the path contains ";" then we assume it to be the separator
  9981. # otherwise default to the standard path separator (i.e. ":") - it is
  9982. # assumed that no part of a normal pathname contains ";" but that should
  9983. # okay in the real world where ";" in dirpaths is itself problematic.
  9984. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9985. ;;
  9986. *)
  9987. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9988. ;;
  9989. esac
  9990. # Ok, now we have the path, separated by spaces, we can step through it
  9991. # and add multilib dir if necessary...
  9992. lt_tmp_lt_search_path_spec=
  9993. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9994. # ...but if some path component already ends with the multilib dir we assume
  9995. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9996. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9997. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9998. lt_multi_os_dir=
  9999. ;;
  10000. esac
  10001. for lt_sys_path in $lt_search_path_spec; do
  10002. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10003. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10004. elif test -n "$lt_multi_os_dir"; then
  10005. test -d "$lt_sys_path" && \
  10006. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10007. fi
  10008. done
  10009. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10010. BEGIN {RS = " "; FS = "/|\n";} {
  10011. lt_foo = "";
  10012. lt_count = 0;
  10013. for (lt_i = NF; lt_i > 0; lt_i--) {
  10014. if ($lt_i != "" && $lt_i != ".") {
  10015. if ($lt_i == "..") {
  10016. lt_count++;
  10017. } else {
  10018. if (lt_count == 0) {
  10019. lt_foo = "/" $lt_i lt_foo;
  10020. } else {
  10021. lt_count--;
  10022. }
  10023. }
  10024. }
  10025. }
  10026. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10027. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10028. }'`
  10029. # AWK program above erroneously prepends '/' to C:/dos/paths
  10030. # for these hosts.
  10031. case $host_os in
  10032. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10033. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10034. esac
  10035. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10036. else
  10037. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10038. fi
  10039. library_names_spec=
  10040. libname_spec='lib$name'
  10041. soname_spec=
  10042. shrext_cmds=.so
  10043. postinstall_cmds=
  10044. postuninstall_cmds=
  10045. finish_cmds=
  10046. finish_eval=
  10047. shlibpath_var=
  10048. shlibpath_overrides_runpath=unknown
  10049. version_type=none
  10050. dynamic_linker="$host_os ld.so"
  10051. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10052. need_lib_prefix=unknown
  10053. hardcode_into_libs=no
  10054. # when you set need_version to no, make sure it does not cause -set_version
  10055. # flags to be left without arguments
  10056. need_version=unknown
  10057. case $host_os in
  10058. aix3*)
  10059. version_type=linux # correct to gnu/linux during the next big refactor
  10060. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10061. shlibpath_var=LIBPATH
  10062. # AIX 3 has no versioning support, so we append a major version to the name.
  10063. soname_spec='$libname$release$shared_ext$major'
  10064. ;;
  10065. aix[4-9]*)
  10066. version_type=linux # correct to gnu/linux during the next big refactor
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. hardcode_into_libs=yes
  10070. if test ia64 = "$host_cpu"; then
  10071. # AIX 5 supports IA64
  10072. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10073. shlibpath_var=LD_LIBRARY_PATH
  10074. else
  10075. # With GCC up to 2.95.x, collect2 would create an import file
  10076. # for dependence libraries. The import file would start with
  10077. # the line '#! .'. This would cause the generated library to
  10078. # depend on '.', always an invalid library. This was fixed in
  10079. # development snapshots of GCC prior to 3.0.
  10080. case $host_os in
  10081. aix4 | aix4.[01] | aix4.[01].*)
  10082. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10083. echo ' yes '
  10084. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10085. :
  10086. else
  10087. can_build_shared=no
  10088. fi
  10089. ;;
  10090. esac
  10091. # Using Import Files as archive members, it is possible to support
  10092. # filename-based versioning of shared library archives on AIX. While
  10093. # this would work for both with and without runtime linking, it will
  10094. # prevent static linking of such archives. So we do filename-based
  10095. # shared library versioning with .so extension only, which is used
  10096. # when both runtime linking and shared linking is enabled.
  10097. # Unfortunately, runtime linking may impact performance, so we do
  10098. # not want this to be the default eventually. Also, we use the
  10099. # versioned .so libs for executables only if there is the -brtl
  10100. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10101. # To allow for filename-based versioning support, we need to create
  10102. # libNAME.so.V as an archive file, containing:
  10103. # *) an Import File, referring to the versioned filename of the
  10104. # archive as well as the shared archive member, telling the
  10105. # bitwidth (32 or 64) of that shared object, and providing the
  10106. # list of exported symbols of that shared object, eventually
  10107. # decorated with the 'weak' keyword
  10108. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10109. # it being seen by the linker.
  10110. # At run time we better use the real file rather than another symlink,
  10111. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10112. case $with_aix_soname,$aix_use_runtimelinking in
  10113. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10114. # soname into executable. Probably we can add versioning support to
  10115. # collect2, so additional links can be useful in future.
  10116. aix,yes) # traditional libtool
  10117. dynamic_linker='AIX unversionable lib.so'
  10118. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10119. # instead of lib<name>.a to let people know that these are not
  10120. # typical AIX shared libraries.
  10121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10122. ;;
  10123. aix,no) # traditional AIX only
  10124. dynamic_linker='AIX lib.a(lib.so.V)'
  10125. # We preserve .a as extension for shared libraries through AIX4.2
  10126. # and later when we are not doing run time linking.
  10127. library_names_spec='$libname$release.a $libname.a'
  10128. soname_spec='$libname$release$shared_ext$major'
  10129. ;;
  10130. svr4,*) # full svr4 only
  10131. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10132. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10133. # We do not specify a path in Import Files, so LIBPATH fires.
  10134. shlibpath_overrides_runpath=yes
  10135. ;;
  10136. *,yes) # both, prefer svr4
  10137. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10138. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10139. # unpreferred sharedlib libNAME.a needs extra handling
  10140. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10141. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10142. # We do not specify a path in Import Files, so LIBPATH fires.
  10143. shlibpath_overrides_runpath=yes
  10144. ;;
  10145. *,no) # both, prefer aix
  10146. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10147. library_names_spec='$libname$release.a $libname.a'
  10148. soname_spec='$libname$release$shared_ext$major'
  10149. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10150. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10151. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10152. ;;
  10153. esac
  10154. shlibpath_var=LIBPATH
  10155. fi
  10156. ;;
  10157. amigaos*)
  10158. case $host_cpu in
  10159. powerpc)
  10160. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10161. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10163. ;;
  10164. m68k)
  10165. library_names_spec='$libname.ixlibrary $libname.a'
  10166. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10167. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10168. ;;
  10169. esac
  10170. ;;
  10171. beos*)
  10172. library_names_spec='$libname$shared_ext'
  10173. dynamic_linker="$host_os ld.so"
  10174. shlibpath_var=LIBRARY_PATH
  10175. ;;
  10176. bsdi[45]*)
  10177. version_type=linux # correct to gnu/linux during the next big refactor
  10178. need_version=no
  10179. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10180. soname_spec='$libname$release$shared_ext$major'
  10181. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10182. shlibpath_var=LD_LIBRARY_PATH
  10183. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10184. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10185. # the default ld.so.conf also contains /usr/contrib/lib and
  10186. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10187. # libtool to hard-code these into programs
  10188. ;;
  10189. cygwin* | mingw* | pw32* | cegcc*)
  10190. version_type=windows
  10191. shrext_cmds=.dll
  10192. need_version=no
  10193. need_lib_prefix=no
  10194. case $GCC,$cc_basename in
  10195. yes,*)
  10196. # gcc
  10197. library_names_spec='$libname.dll.a'
  10198. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10199. postinstall_cmds='base_file=`basename \$file`~
  10200. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10201. dldir=$destdir/`dirname \$dlpath`~
  10202. test -d \$dldir || mkdir -p \$dldir~
  10203. $install_prog $dir/$dlname \$dldir/$dlname~
  10204. chmod a+x \$dldir/$dlname~
  10205. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10206. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10207. fi'
  10208. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10209. dlpath=$dir/\$dldll~
  10210. $RM \$dlpath'
  10211. shlibpath_overrides_runpath=yes
  10212. case $host_os in
  10213. cygwin*)
  10214. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10215. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10216. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10217. ;;
  10218. mingw* | cegcc*)
  10219. # MinGW DLLs use traditional 'lib' prefix
  10220. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10221. ;;
  10222. pw32*)
  10223. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10224. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10225. ;;
  10226. esac
  10227. dynamic_linker='Win32 ld.exe'
  10228. ;;
  10229. *,cl*)
  10230. # Native MSVC
  10231. libname_spec='$name'
  10232. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10233. library_names_spec='$libname.dll.lib'
  10234. case $build_os in
  10235. mingw*)
  10236. sys_lib_search_path_spec=
  10237. lt_save_ifs=$IFS
  10238. IFS=';'
  10239. for lt_path in $LIB
  10240. do
  10241. IFS=$lt_save_ifs
  10242. # Let DOS variable expansion print the short 8.3 style file name.
  10243. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10244. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10245. done
  10246. IFS=$lt_save_ifs
  10247. # Convert to MSYS style.
  10248. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10249. ;;
  10250. cygwin*)
  10251. # Convert to unix form, then to dos form, then back to unix form
  10252. # but this time dos style (no spaces!) so that the unix form looks
  10253. # like /cygdrive/c/PROGRA~1:/cygdr...
  10254. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10255. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10256. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10257. ;;
  10258. *)
  10259. sys_lib_search_path_spec=$LIB
  10260. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10261. # It is most probably a Windows format PATH.
  10262. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10263. else
  10264. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10265. fi
  10266. # FIXME: find the short name or the path components, as spaces are
  10267. # common. (e.g. "Program Files" -> "PROGRA~1")
  10268. ;;
  10269. esac
  10270. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10271. postinstall_cmds='base_file=`basename \$file`~
  10272. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10273. dldir=$destdir/`dirname \$dlpath`~
  10274. test -d \$dldir || mkdir -p \$dldir~
  10275. $install_prog $dir/$dlname \$dldir/$dlname'
  10276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10277. dlpath=$dir/\$dldll~
  10278. $RM \$dlpath'
  10279. shlibpath_overrides_runpath=yes
  10280. dynamic_linker='Win32 link.exe'
  10281. ;;
  10282. *)
  10283. # Assume MSVC wrapper
  10284. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10285. dynamic_linker='Win32 ld.exe'
  10286. ;;
  10287. esac
  10288. # FIXME: first we should search . and the directory the executable is in
  10289. shlibpath_var=PATH
  10290. ;;
  10291. darwin* | rhapsody*)
  10292. dynamic_linker="$host_os dyld"
  10293. version_type=darwin
  10294. need_lib_prefix=no
  10295. need_version=no
  10296. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10297. soname_spec='$libname$release$major$shared_ext'
  10298. shlibpath_overrides_runpath=yes
  10299. shlibpath_var=DYLD_LIBRARY_PATH
  10300. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10301. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10302. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10303. ;;
  10304. dgux*)
  10305. version_type=linux # correct to gnu/linux during the next big refactor
  10306. need_lib_prefix=no
  10307. need_version=no
  10308. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10309. soname_spec='$libname$release$shared_ext$major'
  10310. shlibpath_var=LD_LIBRARY_PATH
  10311. ;;
  10312. freebsd* | dragonfly*)
  10313. # DragonFly does not have aout. When/if they implement a new
  10314. # versioning mechanism, adjust this.
  10315. if test -x /usr/bin/objformat; then
  10316. objformat=`/usr/bin/objformat`
  10317. else
  10318. case $host_os in
  10319. freebsd[23].*) objformat=aout ;;
  10320. *) objformat=elf ;;
  10321. esac
  10322. fi
  10323. version_type=freebsd-$objformat
  10324. case $version_type in
  10325. freebsd-elf*)
  10326. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10327. soname_spec='$libname$release$shared_ext$major'
  10328. need_version=no
  10329. need_lib_prefix=no
  10330. ;;
  10331. freebsd-*)
  10332. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10333. need_version=yes
  10334. ;;
  10335. esac
  10336. shlibpath_var=LD_LIBRARY_PATH
  10337. case $host_os in
  10338. freebsd2.*)
  10339. shlibpath_overrides_runpath=yes
  10340. ;;
  10341. freebsd3.[01]* | freebsdelf3.[01]*)
  10342. shlibpath_overrides_runpath=yes
  10343. hardcode_into_libs=yes
  10344. ;;
  10345. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10346. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10347. shlibpath_overrides_runpath=no
  10348. hardcode_into_libs=yes
  10349. ;;
  10350. *) # from 4.6 on, and DragonFly
  10351. shlibpath_overrides_runpath=yes
  10352. hardcode_into_libs=yes
  10353. ;;
  10354. esac
  10355. ;;
  10356. haiku*)
  10357. version_type=linux # correct to gnu/linux during the next big refactor
  10358. need_lib_prefix=no
  10359. need_version=no
  10360. dynamic_linker="$host_os runtime_loader"
  10361. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10362. soname_spec='$libname$release$shared_ext$major'
  10363. shlibpath_var=LIBRARY_PATH
  10364. shlibpath_overrides_runpath=no
  10365. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10366. hardcode_into_libs=yes
  10367. ;;
  10368. hpux9* | hpux10* | hpux11*)
  10369. # Give a soname corresponding to the major version so that dld.sl refuses to
  10370. # link against other versions.
  10371. version_type=sunos
  10372. need_lib_prefix=no
  10373. need_version=no
  10374. case $host_cpu in
  10375. ia64*)
  10376. shrext_cmds='.so'
  10377. hardcode_into_libs=yes
  10378. dynamic_linker="$host_os dld.so"
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10381. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10382. soname_spec='$libname$release$shared_ext$major'
  10383. if test 32 = "$HPUX_IA64_MODE"; then
  10384. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10385. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10386. else
  10387. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10388. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10389. fi
  10390. ;;
  10391. hppa*64*)
  10392. shrext_cmds='.sl'
  10393. hardcode_into_libs=yes
  10394. dynamic_linker="$host_os dld.sl"
  10395. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10396. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10397. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10398. soname_spec='$libname$release$shared_ext$major'
  10399. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10400. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10401. ;;
  10402. *)
  10403. shrext_cmds='.sl'
  10404. dynamic_linker="$host_os dld.sl"
  10405. shlibpath_var=SHLIB_PATH
  10406. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10407. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10408. soname_spec='$libname$release$shared_ext$major'
  10409. ;;
  10410. esac
  10411. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10412. postinstall_cmds='chmod 555 $lib'
  10413. # or fails outright, so override atomically:
  10414. install_override_mode=555
  10415. ;;
  10416. interix[3-9]*)
  10417. version_type=linux # correct to gnu/linux during the next big refactor
  10418. need_lib_prefix=no
  10419. need_version=no
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10421. soname_spec='$libname$release$shared_ext$major'
  10422. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10423. shlibpath_var=LD_LIBRARY_PATH
  10424. shlibpath_overrides_runpath=no
  10425. hardcode_into_libs=yes
  10426. ;;
  10427. irix5* | irix6* | nonstopux*)
  10428. case $host_os in
  10429. nonstopux*) version_type=nonstopux ;;
  10430. *)
  10431. if test yes = "$lt_cv_prog_gnu_ld"; then
  10432. version_type=linux # correct to gnu/linux during the next big refactor
  10433. else
  10434. version_type=irix
  10435. fi ;;
  10436. esac
  10437. need_lib_prefix=no
  10438. need_version=no
  10439. soname_spec='$libname$release$shared_ext$major'
  10440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10441. case $host_os in
  10442. irix5* | nonstopux*)
  10443. libsuff= shlibsuff=
  10444. ;;
  10445. *)
  10446. case $LD in # libtool.m4 will add one of these switches to LD
  10447. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10448. libsuff= shlibsuff= libmagic=32-bit;;
  10449. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10450. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10451. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10452. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10453. *) libsuff= shlibsuff= libmagic=never-match;;
  10454. esac
  10455. ;;
  10456. esac
  10457. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10458. shlibpath_overrides_runpath=no
  10459. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10460. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10461. hardcode_into_libs=yes
  10462. ;;
  10463. # No shared lib support for Linux oldld, aout, or coff.
  10464. linux*oldld* | linux*aout* | linux*coff*)
  10465. dynamic_linker=no
  10466. ;;
  10467. linux*android*)
  10468. version_type=none # Android doesn't support versioned libraries.
  10469. need_lib_prefix=no
  10470. need_version=no
  10471. library_names_spec='$libname$release$shared_ext'
  10472. soname_spec='$libname$release$shared_ext'
  10473. finish_cmds=
  10474. shlibpath_var=LD_LIBRARY_PATH
  10475. shlibpath_overrides_runpath=yes
  10476. # This implies no fast_install, which is unacceptable.
  10477. # Some rework will be needed to allow for fast_install
  10478. # before this can be enabled.
  10479. hardcode_into_libs=yes
  10480. dynamic_linker='Android linker'
  10481. # Don't embed -rpath directories since the linker doesn't support them.
  10482. hardcode_libdir_flag_spec='-L$libdir'
  10483. ;;
  10484. # This must be glibc/ELF.
  10485. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10486. version_type=linux # correct to gnu/linux during the next big refactor
  10487. need_lib_prefix=no
  10488. need_version=no
  10489. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10490. soname_spec='$libname$release$shared_ext$major'
  10491. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10492. shlibpath_var=LD_LIBRARY_PATH
  10493. shlibpath_overrides_runpath=no
  10494. # Some binutils ld are patched to set DT_RUNPATH
  10495. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10496. $as_echo_n "(cached) " >&6
  10497. else
  10498. lt_cv_shlibpath_overrides_runpath=no
  10499. save_LDFLAGS=$LDFLAGS
  10500. save_libdir=$libdir
  10501. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10502. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10504. /* end confdefs.h. */
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_c_try_link "$LINENO"; then :
  10513. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10514. lt_cv_shlibpath_overrides_runpath=yes
  10515. fi
  10516. fi
  10517. rm -f core conftest.err conftest.$ac_objext \
  10518. conftest$ac_exeext conftest.$ac_ext
  10519. LDFLAGS=$save_LDFLAGS
  10520. libdir=$save_libdir
  10521. fi
  10522. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10523. # This implies no fast_install, which is unacceptable.
  10524. # Some rework will be needed to allow for fast_install
  10525. # before this can be enabled.
  10526. hardcode_into_libs=yes
  10527. # Ideally, we could use ldconfig to report *all* directores which are
  10528. # searched for libraries, however this is still not possible. Aside from not
  10529. # being certain /sbin/ldconfig is available, command
  10530. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10531. # even though it is searched at run-time. Try to do the best guess by
  10532. # appending ld.so.conf contents (and includes) to the search path.
  10533. if test -f /etc/ld.so.conf; then
  10534. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10535. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10536. fi
  10537. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10538. # powerpc, because MkLinux only supported shared libraries with the
  10539. # GNU dynamic linker. Since this was broken with cross compilers,
  10540. # most powerpc-linux boxes support dynamic linking these days and
  10541. # people can always --disable-shared, the test was removed, and we
  10542. # assume the GNU/Linux dynamic linker is in use.
  10543. dynamic_linker='GNU/Linux ld.so'
  10544. ;;
  10545. netbsdelf*-gnu)
  10546. version_type=linux
  10547. need_lib_prefix=no
  10548. need_version=no
  10549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10550. soname_spec='${libname}${release}${shared_ext}$major'
  10551. shlibpath_var=LD_LIBRARY_PATH
  10552. shlibpath_overrides_runpath=no
  10553. hardcode_into_libs=yes
  10554. dynamic_linker='NetBSD ld.elf_so'
  10555. ;;
  10556. netbsd*)
  10557. version_type=sunos
  10558. need_lib_prefix=no
  10559. need_version=no
  10560. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10561. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10563. dynamic_linker='NetBSD (a.out) ld.so'
  10564. else
  10565. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10566. soname_spec='$libname$release$shared_ext$major'
  10567. dynamic_linker='NetBSD ld.elf_so'
  10568. fi
  10569. shlibpath_var=LD_LIBRARY_PATH
  10570. shlibpath_overrides_runpath=yes
  10571. hardcode_into_libs=yes
  10572. ;;
  10573. newsos6)
  10574. version_type=linux # correct to gnu/linux during the next big refactor
  10575. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10576. shlibpath_var=LD_LIBRARY_PATH
  10577. shlibpath_overrides_runpath=yes
  10578. ;;
  10579. *nto* | *qnx*)
  10580. version_type=qnx
  10581. need_lib_prefix=no
  10582. need_version=no
  10583. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10584. soname_spec='$libname$release$shared_ext$major'
  10585. shlibpath_var=LD_LIBRARY_PATH
  10586. shlibpath_overrides_runpath=no
  10587. hardcode_into_libs=yes
  10588. dynamic_linker='ldqnx.so'
  10589. ;;
  10590. openbsd* | bitrig*)
  10591. version_type=sunos
  10592. sys_lib_dlsearch_path_spec=/usr/lib
  10593. need_lib_prefix=no
  10594. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10595. need_version=no
  10596. else
  10597. need_version=yes
  10598. fi
  10599. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10600. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10601. shlibpath_var=LD_LIBRARY_PATH
  10602. shlibpath_overrides_runpath=yes
  10603. ;;
  10604. os2*)
  10605. libname_spec='$name'
  10606. version_type=windows
  10607. shrext_cmds=.dll
  10608. need_version=no
  10609. need_lib_prefix=no
  10610. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10611. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10612. v=$($ECHO $release$versuffix | tr -d .-);
  10613. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10614. $ECHO $n$v`$shared_ext'
  10615. library_names_spec='${libname}_dll.$libext'
  10616. dynamic_linker='OS/2 ld.exe'
  10617. shlibpath_var=BEGINLIBPATH
  10618. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10619. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10620. postinstall_cmds='base_file=`basename \$file`~
  10621. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10622. dldir=$destdir/`dirname \$dlpath`~
  10623. test -d \$dldir || mkdir -p \$dldir~
  10624. $install_prog $dir/$dlname \$dldir/$dlname~
  10625. chmod a+x \$dldir/$dlname~
  10626. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10627. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10628. fi'
  10629. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10630. dlpath=$dir/\$dldll~
  10631. $RM \$dlpath'
  10632. ;;
  10633. osf3* | osf4* | osf5*)
  10634. version_type=osf
  10635. need_lib_prefix=no
  10636. need_version=no
  10637. soname_spec='$libname$release$shared_ext$major'
  10638. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10639. shlibpath_var=LD_LIBRARY_PATH
  10640. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10641. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10642. ;;
  10643. rdos*)
  10644. dynamic_linker=no
  10645. ;;
  10646. solaris*)
  10647. version_type=linux # correct to gnu/linux during the next big refactor
  10648. need_lib_prefix=no
  10649. need_version=no
  10650. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10651. soname_spec='$libname$release$shared_ext$major'
  10652. shlibpath_var=LD_LIBRARY_PATH
  10653. shlibpath_overrides_runpath=yes
  10654. hardcode_into_libs=yes
  10655. # ldd complains unless libraries are executable
  10656. postinstall_cmds='chmod +x $lib'
  10657. ;;
  10658. sunos4*)
  10659. version_type=sunos
  10660. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10661. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10662. shlibpath_var=LD_LIBRARY_PATH
  10663. shlibpath_overrides_runpath=yes
  10664. if test yes = "$with_gnu_ld"; then
  10665. need_lib_prefix=no
  10666. fi
  10667. need_version=yes
  10668. ;;
  10669. sysv4 | sysv4.3*)
  10670. version_type=linux # correct to gnu/linux during the next big refactor
  10671. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10672. soname_spec='$libname$release$shared_ext$major'
  10673. shlibpath_var=LD_LIBRARY_PATH
  10674. case $host_vendor in
  10675. sni)
  10676. shlibpath_overrides_runpath=no
  10677. need_lib_prefix=no
  10678. runpath_var=LD_RUN_PATH
  10679. ;;
  10680. siemens)
  10681. need_lib_prefix=no
  10682. ;;
  10683. motorola)
  10684. need_lib_prefix=no
  10685. need_version=no
  10686. shlibpath_overrides_runpath=no
  10687. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10688. ;;
  10689. esac
  10690. ;;
  10691. sysv4*MP*)
  10692. if test -d /usr/nec; then
  10693. version_type=linux # correct to gnu/linux during the next big refactor
  10694. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10695. soname_spec='$libname$shared_ext.$major'
  10696. shlibpath_var=LD_LIBRARY_PATH
  10697. fi
  10698. ;;
  10699. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10700. version_type=sco
  10701. need_lib_prefix=no
  10702. need_version=no
  10703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10704. soname_spec='$libname$release$shared_ext$major'
  10705. shlibpath_var=LD_LIBRARY_PATH
  10706. shlibpath_overrides_runpath=yes
  10707. hardcode_into_libs=yes
  10708. if test yes = "$with_gnu_ld"; then
  10709. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10710. else
  10711. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10712. case $host_os in
  10713. sco3.2v5*)
  10714. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10715. ;;
  10716. esac
  10717. fi
  10718. sys_lib_dlsearch_path_spec='/usr/lib'
  10719. ;;
  10720. tpf*)
  10721. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10722. version_type=linux # correct to gnu/linux during the next big refactor
  10723. need_lib_prefix=no
  10724. need_version=no
  10725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10726. shlibpath_var=LD_LIBRARY_PATH
  10727. shlibpath_overrides_runpath=no
  10728. hardcode_into_libs=yes
  10729. ;;
  10730. uts4*)
  10731. version_type=linux # correct to gnu/linux during the next big refactor
  10732. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10733. soname_spec='$libname$release$shared_ext$major'
  10734. shlibpath_var=LD_LIBRARY_PATH
  10735. ;;
  10736. *)
  10737. dynamic_linker=no
  10738. ;;
  10739. esac
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10741. $as_echo "$dynamic_linker" >&6; }
  10742. test no = "$dynamic_linker" && can_build_shared=no
  10743. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10744. if test yes = "$GCC"; then
  10745. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10746. fi
  10747. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10748. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10749. fi
  10750. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10751. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10752. fi
  10753. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10754. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10755. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10756. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10757. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10758. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10760. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10761. hardcode_action=
  10762. if test -n "$hardcode_libdir_flag_spec" ||
  10763. test -n "$runpath_var" ||
  10764. test yes = "$hardcode_automatic"; then
  10765. # We can hardcode non-existent directories.
  10766. if test no != "$hardcode_direct" &&
  10767. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10768. # have to relink, otherwise we might link with an installed library
  10769. # when we should be linking with a yet-to-be-installed one
  10770. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10771. test no != "$hardcode_minus_L"; then
  10772. # Linking always hardcodes the temporary library directory.
  10773. hardcode_action=relink
  10774. else
  10775. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10776. hardcode_action=immediate
  10777. fi
  10778. else
  10779. # We cannot hardcode anything, or else we can only hardcode existing
  10780. # directories.
  10781. hardcode_action=unsupported
  10782. fi
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10784. $as_echo "$hardcode_action" >&6; }
  10785. if test relink = "$hardcode_action" ||
  10786. test yes = "$inherit_rpath"; then
  10787. # Fast installation is not supported
  10788. enable_fast_install=no
  10789. elif test yes = "$shlibpath_overrides_runpath" ||
  10790. test no = "$enable_shared"; then
  10791. # Fast installation is not necessary
  10792. enable_fast_install=needless
  10793. fi
  10794. if test yes != "$enable_dlopen"; then
  10795. enable_dlopen=unknown
  10796. enable_dlopen_self=unknown
  10797. enable_dlopen_self_static=unknown
  10798. else
  10799. lt_cv_dlopen=no
  10800. lt_cv_dlopen_libs=
  10801. case $host_os in
  10802. beos*)
  10803. lt_cv_dlopen=load_add_on
  10804. lt_cv_dlopen_libs=
  10805. lt_cv_dlopen_self=yes
  10806. ;;
  10807. mingw* | pw32* | cegcc*)
  10808. lt_cv_dlopen=LoadLibrary
  10809. lt_cv_dlopen_libs=
  10810. ;;
  10811. cygwin*)
  10812. lt_cv_dlopen=dlopen
  10813. lt_cv_dlopen_libs=
  10814. ;;
  10815. darwin*)
  10816. # if libdl is installed we need to link against it
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10818. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10819. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10820. $as_echo_n "(cached) " >&6
  10821. else
  10822. ac_check_lib_save_LIBS=$LIBS
  10823. LIBS="-ldl $LIBS"
  10824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10825. /* end confdefs.h. */
  10826. /* Override any GCC internal prototype to avoid an error.
  10827. Use char because int might match the return type of a GCC
  10828. builtin and then its argument prototype would still apply. */
  10829. #ifdef __cplusplus
  10830. extern "C"
  10831. #endif
  10832. char dlopen ();
  10833. int
  10834. main ()
  10835. {
  10836. return dlopen ();
  10837. ;
  10838. return 0;
  10839. }
  10840. _ACEOF
  10841. if ac_fn_c_try_link "$LINENO"; then :
  10842. ac_cv_lib_dl_dlopen=yes
  10843. else
  10844. ac_cv_lib_dl_dlopen=no
  10845. fi
  10846. rm -f core conftest.err conftest.$ac_objext \
  10847. conftest$ac_exeext conftest.$ac_ext
  10848. LIBS=$ac_check_lib_save_LIBS
  10849. fi
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10851. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10852. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10853. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10854. else
  10855. lt_cv_dlopen=dyld
  10856. lt_cv_dlopen_libs=
  10857. lt_cv_dlopen_self=yes
  10858. fi
  10859. ;;
  10860. tpf*)
  10861. # Don't try to run any link tests for TPF. We know it's impossible
  10862. # because TPF is a cross-compiler, and we know how we open DSOs.
  10863. lt_cv_dlopen=dlopen
  10864. lt_cv_dlopen_libs=
  10865. lt_cv_dlopen_self=no
  10866. ;;
  10867. *)
  10868. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10869. if test "x$ac_cv_func_shl_load" = xyes; then :
  10870. lt_cv_dlopen=shl_load
  10871. else
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10873. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10874. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. ac_check_lib_save_LIBS=$LIBS
  10878. LIBS="-ldld $LIBS"
  10879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10880. /* end confdefs.h. */
  10881. /* Override any GCC internal prototype to avoid an error.
  10882. Use char because int might match the return type of a GCC
  10883. builtin and then its argument prototype would still apply. */
  10884. #ifdef __cplusplus
  10885. extern "C"
  10886. #endif
  10887. char shl_load ();
  10888. int
  10889. main ()
  10890. {
  10891. return shl_load ();
  10892. ;
  10893. return 0;
  10894. }
  10895. _ACEOF
  10896. if ac_fn_c_try_link "$LINENO"; then :
  10897. ac_cv_lib_dld_shl_load=yes
  10898. else
  10899. ac_cv_lib_dld_shl_load=no
  10900. fi
  10901. rm -f core conftest.err conftest.$ac_objext \
  10902. conftest$ac_exeext conftest.$ac_ext
  10903. LIBS=$ac_check_lib_save_LIBS
  10904. fi
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10906. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10907. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10908. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10909. else
  10910. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10911. if test "x$ac_cv_func_dlopen" = xyes; then :
  10912. lt_cv_dlopen=dlopen
  10913. else
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10915. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10916. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10917. $as_echo_n "(cached) " >&6
  10918. else
  10919. ac_check_lib_save_LIBS=$LIBS
  10920. LIBS="-ldl $LIBS"
  10921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10922. /* end confdefs.h. */
  10923. /* Override any GCC internal prototype to avoid an error.
  10924. Use char because int might match the return type of a GCC
  10925. builtin and then its argument prototype would still apply. */
  10926. #ifdef __cplusplus
  10927. extern "C"
  10928. #endif
  10929. char dlopen ();
  10930. int
  10931. main ()
  10932. {
  10933. return dlopen ();
  10934. ;
  10935. return 0;
  10936. }
  10937. _ACEOF
  10938. if ac_fn_c_try_link "$LINENO"; then :
  10939. ac_cv_lib_dl_dlopen=yes
  10940. else
  10941. ac_cv_lib_dl_dlopen=no
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext \
  10944. conftest$ac_exeext conftest.$ac_ext
  10945. LIBS=$ac_check_lib_save_LIBS
  10946. fi
  10947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10948. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10949. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10950. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10951. else
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10953. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10954. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10955. $as_echo_n "(cached) " >&6
  10956. else
  10957. ac_check_lib_save_LIBS=$LIBS
  10958. LIBS="-lsvld $LIBS"
  10959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10960. /* end confdefs.h. */
  10961. /* Override any GCC internal prototype to avoid an error.
  10962. Use char because int might match the return type of a GCC
  10963. builtin and then its argument prototype would still apply. */
  10964. #ifdef __cplusplus
  10965. extern "C"
  10966. #endif
  10967. char dlopen ();
  10968. int
  10969. main ()
  10970. {
  10971. return dlopen ();
  10972. ;
  10973. return 0;
  10974. }
  10975. _ACEOF
  10976. if ac_fn_c_try_link "$LINENO"; then :
  10977. ac_cv_lib_svld_dlopen=yes
  10978. else
  10979. ac_cv_lib_svld_dlopen=no
  10980. fi
  10981. rm -f core conftest.err conftest.$ac_objext \
  10982. conftest$ac_exeext conftest.$ac_ext
  10983. LIBS=$ac_check_lib_save_LIBS
  10984. fi
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10986. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10987. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10988. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10989. else
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10991. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10992. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10993. $as_echo_n "(cached) " >&6
  10994. else
  10995. ac_check_lib_save_LIBS=$LIBS
  10996. LIBS="-ldld $LIBS"
  10997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10998. /* end confdefs.h. */
  10999. /* Override any GCC internal prototype to avoid an error.
  11000. Use char because int might match the return type of a GCC
  11001. builtin and then its argument prototype would still apply. */
  11002. #ifdef __cplusplus
  11003. extern "C"
  11004. #endif
  11005. char dld_link ();
  11006. int
  11007. main ()
  11008. {
  11009. return dld_link ();
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if ac_fn_c_try_link "$LINENO"; then :
  11015. ac_cv_lib_dld_dld_link=yes
  11016. else
  11017. ac_cv_lib_dld_dld_link=no
  11018. fi
  11019. rm -f core conftest.err conftest.$ac_objext \
  11020. conftest$ac_exeext conftest.$ac_ext
  11021. LIBS=$ac_check_lib_save_LIBS
  11022. fi
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11024. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11025. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11026. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11027. fi
  11028. fi
  11029. fi
  11030. fi
  11031. fi
  11032. fi
  11033. ;;
  11034. esac
  11035. if test no = "$lt_cv_dlopen"; then
  11036. enable_dlopen=no
  11037. else
  11038. enable_dlopen=yes
  11039. fi
  11040. case $lt_cv_dlopen in
  11041. dlopen)
  11042. save_CPPFLAGS=$CPPFLAGS
  11043. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11044. save_LDFLAGS=$LDFLAGS
  11045. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11046. save_LIBS=$LIBS
  11047. LIBS="$lt_cv_dlopen_libs $LIBS"
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11049. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11050. if ${lt_cv_dlopen_self+:} false; then :
  11051. $as_echo_n "(cached) " >&6
  11052. else
  11053. if test yes = "$cross_compiling"; then :
  11054. lt_cv_dlopen_self=cross
  11055. else
  11056. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11057. lt_status=$lt_dlunknown
  11058. cat > conftest.$ac_ext <<_LT_EOF
  11059. #line $LINENO "configure"
  11060. #include "confdefs.h"
  11061. #if HAVE_DLFCN_H
  11062. #include <dlfcn.h>
  11063. #endif
  11064. #include <stdio.h>
  11065. #ifdef RTLD_GLOBAL
  11066. # define LT_DLGLOBAL RTLD_GLOBAL
  11067. #else
  11068. # ifdef DL_GLOBAL
  11069. # define LT_DLGLOBAL DL_GLOBAL
  11070. # else
  11071. # define LT_DLGLOBAL 0
  11072. # endif
  11073. #endif
  11074. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11075. find out it does not work in some platform. */
  11076. #ifndef LT_DLLAZY_OR_NOW
  11077. # ifdef RTLD_LAZY
  11078. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11079. # else
  11080. # ifdef DL_LAZY
  11081. # define LT_DLLAZY_OR_NOW DL_LAZY
  11082. # else
  11083. # ifdef RTLD_NOW
  11084. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11085. # else
  11086. # ifdef DL_NOW
  11087. # define LT_DLLAZY_OR_NOW DL_NOW
  11088. # else
  11089. # define LT_DLLAZY_OR_NOW 0
  11090. # endif
  11091. # endif
  11092. # endif
  11093. # endif
  11094. #endif
  11095. /* When -fvisibility=hidden is used, assume the code has been annotated
  11096. correspondingly for the symbols needed. */
  11097. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11098. int fnord () __attribute__((visibility("default")));
  11099. #endif
  11100. int fnord () { return 42; }
  11101. int main ()
  11102. {
  11103. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11104. int status = $lt_dlunknown;
  11105. if (self)
  11106. {
  11107. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11108. else
  11109. {
  11110. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11111. else puts (dlerror ());
  11112. }
  11113. /* dlclose (self); */
  11114. }
  11115. else
  11116. puts (dlerror ());
  11117. return status;
  11118. }
  11119. _LT_EOF
  11120. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11121. (eval $ac_link) 2>&5
  11122. ac_status=$?
  11123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11124. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11125. (./conftest; exit; ) >&5 2>/dev/null
  11126. lt_status=$?
  11127. case x$lt_status in
  11128. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11129. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11130. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11131. esac
  11132. else :
  11133. # compilation failed
  11134. lt_cv_dlopen_self=no
  11135. fi
  11136. fi
  11137. rm -fr conftest*
  11138. fi
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11140. $as_echo "$lt_cv_dlopen_self" >&6; }
  11141. if test yes = "$lt_cv_dlopen_self"; then
  11142. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11144. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11145. if ${lt_cv_dlopen_self_static+:} false; then :
  11146. $as_echo_n "(cached) " >&6
  11147. else
  11148. if test yes = "$cross_compiling"; then :
  11149. lt_cv_dlopen_self_static=cross
  11150. else
  11151. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11152. lt_status=$lt_dlunknown
  11153. cat > conftest.$ac_ext <<_LT_EOF
  11154. #line $LINENO "configure"
  11155. #include "confdefs.h"
  11156. #if HAVE_DLFCN_H
  11157. #include <dlfcn.h>
  11158. #endif
  11159. #include <stdio.h>
  11160. #ifdef RTLD_GLOBAL
  11161. # define LT_DLGLOBAL RTLD_GLOBAL
  11162. #else
  11163. # ifdef DL_GLOBAL
  11164. # define LT_DLGLOBAL DL_GLOBAL
  11165. # else
  11166. # define LT_DLGLOBAL 0
  11167. # endif
  11168. #endif
  11169. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11170. find out it does not work in some platform. */
  11171. #ifndef LT_DLLAZY_OR_NOW
  11172. # ifdef RTLD_LAZY
  11173. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11174. # else
  11175. # ifdef DL_LAZY
  11176. # define LT_DLLAZY_OR_NOW DL_LAZY
  11177. # else
  11178. # ifdef RTLD_NOW
  11179. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11180. # else
  11181. # ifdef DL_NOW
  11182. # define LT_DLLAZY_OR_NOW DL_NOW
  11183. # else
  11184. # define LT_DLLAZY_OR_NOW 0
  11185. # endif
  11186. # endif
  11187. # endif
  11188. # endif
  11189. #endif
  11190. /* When -fvisibility=hidden is used, assume the code has been annotated
  11191. correspondingly for the symbols needed. */
  11192. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11193. int fnord () __attribute__((visibility("default")));
  11194. #endif
  11195. int fnord () { return 42; }
  11196. int main ()
  11197. {
  11198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11199. int status = $lt_dlunknown;
  11200. if (self)
  11201. {
  11202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11203. else
  11204. {
  11205. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11206. else puts (dlerror ());
  11207. }
  11208. /* dlclose (self); */
  11209. }
  11210. else
  11211. puts (dlerror ());
  11212. return status;
  11213. }
  11214. _LT_EOF
  11215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11216. (eval $ac_link) 2>&5
  11217. ac_status=$?
  11218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11219. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11220. (./conftest; exit; ) >&5 2>/dev/null
  11221. lt_status=$?
  11222. case x$lt_status in
  11223. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11224. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11225. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11226. esac
  11227. else :
  11228. # compilation failed
  11229. lt_cv_dlopen_self_static=no
  11230. fi
  11231. fi
  11232. rm -fr conftest*
  11233. fi
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11235. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11236. fi
  11237. CPPFLAGS=$save_CPPFLAGS
  11238. LDFLAGS=$save_LDFLAGS
  11239. LIBS=$save_LIBS
  11240. ;;
  11241. esac
  11242. case $lt_cv_dlopen_self in
  11243. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11244. *) enable_dlopen_self=unknown ;;
  11245. esac
  11246. case $lt_cv_dlopen_self_static in
  11247. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11248. *) enable_dlopen_self_static=unknown ;;
  11249. esac
  11250. fi
  11251. striplib=
  11252. old_striplib=
  11253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11254. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11255. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11256. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11257. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11259. $as_echo "yes" >&6; }
  11260. else
  11261. # FIXME - insert some real tests, host_os isn't really good enough
  11262. case $host_os in
  11263. darwin*)
  11264. if test -n "$STRIP"; then
  11265. striplib="$STRIP -x"
  11266. old_striplib="$STRIP -S"
  11267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11268. $as_echo "yes" >&6; }
  11269. else
  11270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11271. $as_echo "no" >&6; }
  11272. fi
  11273. ;;
  11274. *)
  11275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11276. $as_echo "no" >&6; }
  11277. ;;
  11278. esac
  11279. fi
  11280. # Report what library types will actually be built
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11282. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11284. $as_echo "$can_build_shared" >&6; }
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11286. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11287. test no = "$can_build_shared" && enable_shared=no
  11288. # On AIX, shared libraries and static libraries use the same namespace, and
  11289. # are all built from PIC.
  11290. case $host_os in
  11291. aix3*)
  11292. test yes = "$enable_shared" && enable_static=no
  11293. if test -n "$RANLIB"; then
  11294. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11295. postinstall_cmds='$RANLIB $lib'
  11296. fi
  11297. ;;
  11298. aix[4-9]*)
  11299. if test ia64 != "$host_cpu"; then
  11300. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11301. yes,aix,yes) ;; # shared object as lib.so file only
  11302. yes,svr4,*) ;; # shared object as lib.so archive member only
  11303. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11304. esac
  11305. fi
  11306. ;;
  11307. esac
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11309. $as_echo "$enable_shared" >&6; }
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11311. $as_echo_n "checking whether to build static libraries... " >&6; }
  11312. # Make sure either enable_shared or enable_static is yes.
  11313. test yes = "$enable_shared" || enable_static=yes
  11314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11315. $as_echo "$enable_static" >&6; }
  11316. fi
  11317. ac_ext=c
  11318. ac_cpp='$CPP $CPPFLAGS'
  11319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11322. CC=$lt_save_CC
  11323. ac_config_commands="$ac_config_commands libtool"
  11324. # Only expand once:
  11325. ac_ext=c
  11326. ac_cpp='$CPP $CPPFLAGS'
  11327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11330. if test -n "$ac_tool_prefix"; then
  11331. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11332. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11334. $as_echo_n "checking for $ac_word... " >&6; }
  11335. if ${ac_cv_prog_CC+:} false; then :
  11336. $as_echo_n "(cached) " >&6
  11337. else
  11338. if test -n "$CC"; then
  11339. ac_cv_prog_CC="$CC" # Let the user override the test.
  11340. else
  11341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11342. for as_dir in $PATH
  11343. do
  11344. IFS=$as_save_IFS
  11345. test -z "$as_dir" && as_dir=.
  11346. for ac_exec_ext in '' $ac_executable_extensions; do
  11347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11348. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11350. break 2
  11351. fi
  11352. done
  11353. done
  11354. IFS=$as_save_IFS
  11355. fi
  11356. fi
  11357. CC=$ac_cv_prog_CC
  11358. if test -n "$CC"; then
  11359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11360. $as_echo "$CC" >&6; }
  11361. else
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11363. $as_echo "no" >&6; }
  11364. fi
  11365. fi
  11366. if test -z "$ac_cv_prog_CC"; then
  11367. ac_ct_CC=$CC
  11368. # Extract the first word of "gcc", so it can be a program name with args.
  11369. set dummy gcc; ac_word=$2
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11371. $as_echo_n "checking for $ac_word... " >&6; }
  11372. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11373. $as_echo_n "(cached) " >&6
  11374. else
  11375. if test -n "$ac_ct_CC"; then
  11376. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11377. else
  11378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11379. for as_dir in $PATH
  11380. do
  11381. IFS=$as_save_IFS
  11382. test -z "$as_dir" && as_dir=.
  11383. for ac_exec_ext in '' $ac_executable_extensions; do
  11384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11385. ac_cv_prog_ac_ct_CC="gcc"
  11386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11387. break 2
  11388. fi
  11389. done
  11390. done
  11391. IFS=$as_save_IFS
  11392. fi
  11393. fi
  11394. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11395. if test -n "$ac_ct_CC"; then
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11397. $as_echo "$ac_ct_CC" >&6; }
  11398. else
  11399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11400. $as_echo "no" >&6; }
  11401. fi
  11402. if test "x$ac_ct_CC" = x; then
  11403. CC=""
  11404. else
  11405. case $cross_compiling:$ac_tool_warned in
  11406. yes:)
  11407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11409. ac_tool_warned=yes ;;
  11410. esac
  11411. CC=$ac_ct_CC
  11412. fi
  11413. else
  11414. CC="$ac_cv_prog_CC"
  11415. fi
  11416. if test -z "$CC"; then
  11417. if test -n "$ac_tool_prefix"; then
  11418. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11419. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11421. $as_echo_n "checking for $ac_word... " >&6; }
  11422. if ${ac_cv_prog_CC+:} false; then :
  11423. $as_echo_n "(cached) " >&6
  11424. else
  11425. if test -n "$CC"; then
  11426. ac_cv_prog_CC="$CC" # Let the user override the test.
  11427. else
  11428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11429. for as_dir in $PATH
  11430. do
  11431. IFS=$as_save_IFS
  11432. test -z "$as_dir" && as_dir=.
  11433. for ac_exec_ext in '' $ac_executable_extensions; do
  11434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11435. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11437. break 2
  11438. fi
  11439. done
  11440. done
  11441. IFS=$as_save_IFS
  11442. fi
  11443. fi
  11444. CC=$ac_cv_prog_CC
  11445. if test -n "$CC"; then
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11447. $as_echo "$CC" >&6; }
  11448. else
  11449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11450. $as_echo "no" >&6; }
  11451. fi
  11452. fi
  11453. fi
  11454. if test -z "$CC"; then
  11455. # Extract the first word of "cc", so it can be a program name with args.
  11456. set dummy cc; ac_word=$2
  11457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11458. $as_echo_n "checking for $ac_word... " >&6; }
  11459. if ${ac_cv_prog_CC+:} false; then :
  11460. $as_echo_n "(cached) " >&6
  11461. else
  11462. if test -n "$CC"; then
  11463. ac_cv_prog_CC="$CC" # Let the user override the test.
  11464. else
  11465. ac_prog_rejected=no
  11466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11467. for as_dir in $PATH
  11468. do
  11469. IFS=$as_save_IFS
  11470. test -z "$as_dir" && as_dir=.
  11471. for ac_exec_ext in '' $ac_executable_extensions; do
  11472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11473. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11474. ac_prog_rejected=yes
  11475. continue
  11476. fi
  11477. ac_cv_prog_CC="cc"
  11478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11479. break 2
  11480. fi
  11481. done
  11482. done
  11483. IFS=$as_save_IFS
  11484. if test $ac_prog_rejected = yes; then
  11485. # We found a bogon in the path, so make sure we never use it.
  11486. set dummy $ac_cv_prog_CC
  11487. shift
  11488. if test $# != 0; then
  11489. # We chose a different compiler from the bogus one.
  11490. # However, it has the same basename, so the bogon will be chosen
  11491. # first if we set CC to just the basename; use the full file name.
  11492. shift
  11493. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11494. fi
  11495. fi
  11496. fi
  11497. fi
  11498. CC=$ac_cv_prog_CC
  11499. if test -n "$CC"; then
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11501. $as_echo "$CC" >&6; }
  11502. else
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11504. $as_echo "no" >&6; }
  11505. fi
  11506. fi
  11507. if test -z "$CC"; then
  11508. if test -n "$ac_tool_prefix"; then
  11509. for ac_prog in cl.exe
  11510. do
  11511. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11512. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11514. $as_echo_n "checking for $ac_word... " >&6; }
  11515. if ${ac_cv_prog_CC+:} false; then :
  11516. $as_echo_n "(cached) " >&6
  11517. else
  11518. if test -n "$CC"; then
  11519. ac_cv_prog_CC="$CC" # Let the user override the test.
  11520. else
  11521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11522. for as_dir in $PATH
  11523. do
  11524. IFS=$as_save_IFS
  11525. test -z "$as_dir" && as_dir=.
  11526. for ac_exec_ext in '' $ac_executable_extensions; do
  11527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11528. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11530. break 2
  11531. fi
  11532. done
  11533. done
  11534. IFS=$as_save_IFS
  11535. fi
  11536. fi
  11537. CC=$ac_cv_prog_CC
  11538. if test -n "$CC"; then
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11540. $as_echo "$CC" >&6; }
  11541. else
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11543. $as_echo "no" >&6; }
  11544. fi
  11545. test -n "$CC" && break
  11546. done
  11547. fi
  11548. if test -z "$CC"; then
  11549. ac_ct_CC=$CC
  11550. for ac_prog in cl.exe
  11551. do
  11552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11553. set dummy $ac_prog; ac_word=$2
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11555. $as_echo_n "checking for $ac_word... " >&6; }
  11556. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11557. $as_echo_n "(cached) " >&6
  11558. else
  11559. if test -n "$ac_ct_CC"; then
  11560. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11561. else
  11562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11563. for as_dir in $PATH
  11564. do
  11565. IFS=$as_save_IFS
  11566. test -z "$as_dir" && as_dir=.
  11567. for ac_exec_ext in '' $ac_executable_extensions; do
  11568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11569. ac_cv_prog_ac_ct_CC="$ac_prog"
  11570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11571. break 2
  11572. fi
  11573. done
  11574. done
  11575. IFS=$as_save_IFS
  11576. fi
  11577. fi
  11578. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11579. if test -n "$ac_ct_CC"; then
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11581. $as_echo "$ac_ct_CC" >&6; }
  11582. else
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11584. $as_echo "no" >&6; }
  11585. fi
  11586. test -n "$ac_ct_CC" && break
  11587. done
  11588. if test "x$ac_ct_CC" = x; then
  11589. CC=""
  11590. else
  11591. case $cross_compiling:$ac_tool_warned in
  11592. yes:)
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11595. ac_tool_warned=yes ;;
  11596. esac
  11597. CC=$ac_ct_CC
  11598. fi
  11599. fi
  11600. fi
  11601. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11603. as_fn_error $? "no acceptable C compiler found in \$PATH
  11604. See \`config.log' for more details" "$LINENO" 5; }
  11605. # Provide some information about the compiler.
  11606. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11607. set X $ac_compile
  11608. ac_compiler=$2
  11609. for ac_option in --version -v -V -qversion; do
  11610. { { ac_try="$ac_compiler $ac_option >&5"
  11611. case "(($ac_try" in
  11612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11613. *) ac_try_echo=$ac_try;;
  11614. esac
  11615. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11616. $as_echo "$ac_try_echo"; } >&5
  11617. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11618. ac_status=$?
  11619. if test -s conftest.err; then
  11620. sed '10a\
  11621. ... rest of stderr output deleted ...
  11622. 10q' conftest.err >conftest.er1
  11623. cat conftest.er1 >&5
  11624. fi
  11625. rm -f conftest.er1 conftest.err
  11626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11627. test $ac_status = 0; }
  11628. done
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11630. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11631. if ${ac_cv_c_compiler_gnu+:} false; then :
  11632. $as_echo_n "(cached) " >&6
  11633. else
  11634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11635. /* end confdefs.h. */
  11636. int
  11637. main ()
  11638. {
  11639. #ifndef __GNUC__
  11640. choke me
  11641. #endif
  11642. ;
  11643. return 0;
  11644. }
  11645. _ACEOF
  11646. if ac_fn_c_try_compile "$LINENO"; then :
  11647. ac_compiler_gnu=yes
  11648. else
  11649. ac_compiler_gnu=no
  11650. fi
  11651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11652. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11653. fi
  11654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11655. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11656. if test $ac_compiler_gnu = yes; then
  11657. GCC=yes
  11658. else
  11659. GCC=
  11660. fi
  11661. ac_test_CFLAGS=${CFLAGS+set}
  11662. ac_save_CFLAGS=$CFLAGS
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11664. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11665. if ${ac_cv_prog_cc_g+:} false; then :
  11666. $as_echo_n "(cached) " >&6
  11667. else
  11668. ac_save_c_werror_flag=$ac_c_werror_flag
  11669. ac_c_werror_flag=yes
  11670. ac_cv_prog_cc_g=no
  11671. CFLAGS="-g"
  11672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11673. /* end confdefs.h. */
  11674. int
  11675. main ()
  11676. {
  11677. ;
  11678. return 0;
  11679. }
  11680. _ACEOF
  11681. if ac_fn_c_try_compile "$LINENO"; then :
  11682. ac_cv_prog_cc_g=yes
  11683. else
  11684. CFLAGS=""
  11685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11686. /* end confdefs.h. */
  11687. int
  11688. main ()
  11689. {
  11690. ;
  11691. return 0;
  11692. }
  11693. _ACEOF
  11694. if ac_fn_c_try_compile "$LINENO"; then :
  11695. else
  11696. ac_c_werror_flag=$ac_save_c_werror_flag
  11697. CFLAGS="-g"
  11698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11699. /* end confdefs.h. */
  11700. int
  11701. main ()
  11702. {
  11703. ;
  11704. return 0;
  11705. }
  11706. _ACEOF
  11707. if ac_fn_c_try_compile "$LINENO"; then :
  11708. ac_cv_prog_cc_g=yes
  11709. fi
  11710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11711. fi
  11712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11713. fi
  11714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11715. ac_c_werror_flag=$ac_save_c_werror_flag
  11716. fi
  11717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11718. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11719. if test "$ac_test_CFLAGS" = set; then
  11720. CFLAGS=$ac_save_CFLAGS
  11721. elif test $ac_cv_prog_cc_g = yes; then
  11722. if test "$GCC" = yes; then
  11723. CFLAGS="-g -O2"
  11724. else
  11725. CFLAGS="-g"
  11726. fi
  11727. else
  11728. if test "$GCC" = yes; then
  11729. CFLAGS="-O2"
  11730. else
  11731. CFLAGS=
  11732. fi
  11733. fi
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11735. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11736. if ${ac_cv_prog_cc_c89+:} false; then :
  11737. $as_echo_n "(cached) " >&6
  11738. else
  11739. ac_cv_prog_cc_c89=no
  11740. ac_save_CC=$CC
  11741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11742. /* end confdefs.h. */
  11743. #include <stdarg.h>
  11744. #include <stdio.h>
  11745. struct stat;
  11746. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11747. struct buf { int x; };
  11748. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11749. static char *e (p, i)
  11750. char **p;
  11751. int i;
  11752. {
  11753. return p[i];
  11754. }
  11755. static char *f (char * (*g) (char **, int), char **p, ...)
  11756. {
  11757. char *s;
  11758. va_list v;
  11759. va_start (v,p);
  11760. s = g (p, va_arg (v,int));
  11761. va_end (v);
  11762. return s;
  11763. }
  11764. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11765. function prototypes and stuff, but not '\xHH' hex character constants.
  11766. These don't provoke an error unfortunately, instead are silently treated
  11767. as 'x'. The following induces an error, until -std is added to get
  11768. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11769. array size at least. It's necessary to write '\x00'==0 to get something
  11770. that's true only with -std. */
  11771. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11772. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11773. inside strings and character constants. */
  11774. #define FOO(x) 'x'
  11775. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11776. int test (int i, double x);
  11777. struct s1 {int (*f) (int a);};
  11778. struct s2 {int (*f) (double a);};
  11779. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11780. int argc;
  11781. char **argv;
  11782. int
  11783. main ()
  11784. {
  11785. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11786. ;
  11787. return 0;
  11788. }
  11789. _ACEOF
  11790. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11791. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11792. do
  11793. CC="$ac_save_CC $ac_arg"
  11794. if ac_fn_c_try_compile "$LINENO"; then :
  11795. ac_cv_prog_cc_c89=$ac_arg
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext
  11798. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11799. done
  11800. rm -f conftest.$ac_ext
  11801. CC=$ac_save_CC
  11802. fi
  11803. # AC_CACHE_VAL
  11804. case "x$ac_cv_prog_cc_c89" in
  11805. x)
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11807. $as_echo "none needed" >&6; } ;;
  11808. xno)
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11810. $as_echo "unsupported" >&6; } ;;
  11811. *)
  11812. CC="$CC $ac_cv_prog_cc_c89"
  11813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11814. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11815. esac
  11816. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11817. fi
  11818. ac_ext=c
  11819. ac_cpp='$CPP $CPPFLAGS'
  11820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11823. ac_ext=c
  11824. ac_cpp='$CPP $CPPFLAGS'
  11825. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11826. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11827. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11829. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11830. if ${am_cv_prog_cc_c_o+:} false; then :
  11831. $as_echo_n "(cached) " >&6
  11832. else
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. int
  11836. main ()
  11837. {
  11838. ;
  11839. return 0;
  11840. }
  11841. _ACEOF
  11842. # Make sure it works both with $CC and with simple cc.
  11843. # Following AC_PROG_CC_C_O, we do the test twice because some
  11844. # compilers refuse to overwrite an existing .o file with -o,
  11845. # though they will create one.
  11846. am_cv_prog_cc_c_o=yes
  11847. for am_i in 1 2; do
  11848. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11849. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11850. ac_status=$?
  11851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11852. (exit $ac_status); } \
  11853. && test -f conftest2.$ac_objext; then
  11854. : OK
  11855. else
  11856. am_cv_prog_cc_c_o=no
  11857. break
  11858. fi
  11859. done
  11860. rm -f core conftest*
  11861. unset am_i
  11862. fi
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11864. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11865. if test "$am_cv_prog_cc_c_o" != yes; then
  11866. # Losing compiler, so override with the script.
  11867. # FIXME: It is wrong to rewrite CC.
  11868. # But if we don't then we get into trouble of one sort or another.
  11869. # A longer-term fix would be to have automake use am__CC in this case,
  11870. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11871. CC="$am_aux_dir/compile $CC"
  11872. fi
  11873. ac_ext=c
  11874. ac_cpp='$CPP $CPPFLAGS'
  11875. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11876. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11877. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11878. depcc="$CC" am_compiler_list=
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11880. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11881. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11882. $as_echo_n "(cached) " >&6
  11883. else
  11884. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11885. # We make a subdir and do the tests there. Otherwise we can end up
  11886. # making bogus files that we don't know about and never remove. For
  11887. # instance it was reported that on HP-UX the gcc test will end up
  11888. # making a dummy file named 'D' -- because '-MD' means "put the output
  11889. # in D".
  11890. rm -rf conftest.dir
  11891. mkdir conftest.dir
  11892. # Copy depcomp to subdir because otherwise we won't find it if we're
  11893. # using a relative directory.
  11894. cp "$am_depcomp" conftest.dir
  11895. cd conftest.dir
  11896. # We will build objects and dependencies in a subdirectory because
  11897. # it helps to detect inapplicable dependency modes. For instance
  11898. # both Tru64's cc and ICC support -MD to output dependencies as a
  11899. # side effect of compilation, but ICC will put the dependencies in
  11900. # the current directory while Tru64 will put them in the object
  11901. # directory.
  11902. mkdir sub
  11903. am_cv_CC_dependencies_compiler_type=none
  11904. if test "$am_compiler_list" = ""; then
  11905. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11906. fi
  11907. am__universal=false
  11908. case " $depcc " in #(
  11909. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11910. esac
  11911. for depmode in $am_compiler_list; do
  11912. # Setup a source with many dependencies, because some compilers
  11913. # like to wrap large dependency lists on column 80 (with \), and
  11914. # we should not choose a depcomp mode which is confused by this.
  11915. #
  11916. # We need to recreate these files for each test, as the compiler may
  11917. # overwrite some of them when testing with obscure command lines.
  11918. # This happens at least with the AIX C compiler.
  11919. : > sub/conftest.c
  11920. for i in 1 2 3 4 5 6; do
  11921. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11922. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11923. # Solaris 10 /bin/sh.
  11924. echo '/* dummy */' > sub/conftst$i.h
  11925. done
  11926. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11927. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11928. # mode. It turns out that the SunPro C++ compiler does not properly
  11929. # handle '-M -o', and we need to detect this. Also, some Intel
  11930. # versions had trouble with output in subdirs.
  11931. am__obj=sub/conftest.${OBJEXT-o}
  11932. am__minus_obj="-o $am__obj"
  11933. case $depmode in
  11934. gcc)
  11935. # This depmode causes a compiler race in universal mode.
  11936. test "$am__universal" = false || continue
  11937. ;;
  11938. nosideeffect)
  11939. # After this tag, mechanisms are not by side-effect, so they'll
  11940. # only be used when explicitly requested.
  11941. if test "x$enable_dependency_tracking" = xyes; then
  11942. continue
  11943. else
  11944. break
  11945. fi
  11946. ;;
  11947. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11948. # This compiler won't grok '-c -o', but also, the minuso test has
  11949. # not run yet. These depmodes are late enough in the game, and
  11950. # so weak that their functioning should not be impacted.
  11951. am__obj=conftest.${OBJEXT-o}
  11952. am__minus_obj=
  11953. ;;
  11954. none) break ;;
  11955. esac
  11956. if depmode=$depmode \
  11957. source=sub/conftest.c object=$am__obj \
  11958. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11959. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11960. >/dev/null 2>conftest.err &&
  11961. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11962. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11963. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11964. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11965. # icc doesn't choke on unknown options, it will just issue warnings
  11966. # or remarks (even with -Werror). So we grep stderr for any message
  11967. # that says an option was ignored or not supported.
  11968. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11969. # icc: Command line warning: ignoring option '-M'; no argument required
  11970. # The diagnosis changed in icc 8.0:
  11971. # icc: Command line remark: option '-MP' not supported
  11972. if (grep 'ignoring option' conftest.err ||
  11973. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11974. am_cv_CC_dependencies_compiler_type=$depmode
  11975. break
  11976. fi
  11977. fi
  11978. done
  11979. cd ..
  11980. rm -rf conftest.dir
  11981. else
  11982. am_cv_CC_dependencies_compiler_type=none
  11983. fi
  11984. fi
  11985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11986. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11987. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11988. if
  11989. test "x$enable_dependency_tracking" != xno \
  11990. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11991. am__fastdepCC_TRUE=
  11992. am__fastdepCC_FALSE='#'
  11993. else
  11994. am__fastdepCC_TRUE='#'
  11995. am__fastdepCC_FALSE=
  11996. fi
  11997. # for compat with old systems.
  11998. # deprecated in favor of AC_PROG_CC since automake 1.14 and is now no-op
  11999. case $ac_cv_prog_cc_stdc in #(
  12000. no) :
  12001. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  12002. *) :
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  12004. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  12005. if ${ac_cv_prog_cc_c99+:} false; then :
  12006. $as_echo_n "(cached) " >&6
  12007. else
  12008. ac_cv_prog_cc_c99=no
  12009. ac_save_CC=$CC
  12010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12011. /* end confdefs.h. */
  12012. #include <stdarg.h>
  12013. #include <stdbool.h>
  12014. #include <stdlib.h>
  12015. #include <wchar.h>
  12016. #include <stdio.h>
  12017. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  12018. #define debug(...) fprintf (stderr, __VA_ARGS__)
  12019. #define showlist(...) puts (#__VA_ARGS__)
  12020. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  12021. static void
  12022. test_varargs_macros (void)
  12023. {
  12024. int x = 1234;
  12025. int y = 5678;
  12026. debug ("Flag");
  12027. debug ("X = %d\n", x);
  12028. showlist (The first, second, and third items.);
  12029. report (x>y, "x is %d but y is %d", x, y);
  12030. }
  12031. // Check long long types.
  12032. #define BIG64 18446744073709551615ull
  12033. #define BIG32 4294967295ul
  12034. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  12035. #if !BIG_OK
  12036. your preprocessor is broken;
  12037. #endif
  12038. #if BIG_OK
  12039. #else
  12040. your preprocessor is broken;
  12041. #endif
  12042. static long long int bignum = -9223372036854775807LL;
  12043. static unsigned long long int ubignum = BIG64;
  12044. struct incomplete_array
  12045. {
  12046. int datasize;
  12047. double data[];
  12048. };
  12049. struct named_init {
  12050. int number;
  12051. const wchar_t *name;
  12052. double average;
  12053. };
  12054. typedef const char *ccp;
  12055. static inline int
  12056. test_restrict (ccp restrict text)
  12057. {
  12058. // See if C++-style comments work.
  12059. // Iterate through items via the restricted pointer.
  12060. // Also check for declarations in for loops.
  12061. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  12062. continue;
  12063. return 0;
  12064. }
  12065. // Check varargs and va_copy.
  12066. static void
  12067. test_varargs (const char *format, ...)
  12068. {
  12069. va_list args;
  12070. va_start (args, format);
  12071. va_list args_copy;
  12072. va_copy (args_copy, args);
  12073. const char *str;
  12074. int number;
  12075. float fnumber;
  12076. while (*format)
  12077. {
  12078. switch (*format++)
  12079. {
  12080. case 's': // string
  12081. str = va_arg (args_copy, const char *);
  12082. break;
  12083. case 'd': // int
  12084. number = va_arg (args_copy, int);
  12085. break;
  12086. case 'f': // float
  12087. fnumber = va_arg (args_copy, double);
  12088. break;
  12089. default:
  12090. break;
  12091. }
  12092. }
  12093. va_end (args_copy);
  12094. va_end (args);
  12095. }
  12096. int
  12097. main ()
  12098. {
  12099. // Check bool.
  12100. _Bool success = false;
  12101. // Check restrict.
  12102. if (test_restrict ("String literal") == 0)
  12103. success = true;
  12104. char *restrict newvar = "Another string";
  12105. // Check varargs.
  12106. test_varargs ("s, d' f .", "string", 65, 34.234);
  12107. test_varargs_macros ();
  12108. // Check flexible array members.
  12109. struct incomplete_array *ia =
  12110. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  12111. ia->datasize = 10;
  12112. for (int i = 0; i < ia->datasize; ++i)
  12113. ia->data[i] = i * 1.234;
  12114. // Check named initializers.
  12115. struct named_init ni = {
  12116. .number = 34,
  12117. .name = L"Test wide string",
  12118. .average = 543.34343,
  12119. };
  12120. ni.number = 58;
  12121. int dynamic_array[ni.number];
  12122. dynamic_array[ni.number - 1] = 543;
  12123. // work around unused variable warnings
  12124. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  12125. || dynamic_array[ni.number - 1] != 543);
  12126. ;
  12127. return 0;
  12128. }
  12129. _ACEOF
  12130. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  12131. do
  12132. CC="$ac_save_CC $ac_arg"
  12133. if ac_fn_c_try_compile "$LINENO"; then :
  12134. ac_cv_prog_cc_c99=$ac_arg
  12135. fi
  12136. rm -f core conftest.err conftest.$ac_objext
  12137. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12138. done
  12139. rm -f conftest.$ac_ext
  12140. CC=$ac_save_CC
  12141. fi
  12142. # AC_CACHE_VAL
  12143. case "x$ac_cv_prog_cc_c99" in
  12144. x)
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12146. $as_echo "none needed" >&6; } ;;
  12147. xno)
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12149. $as_echo "unsupported" >&6; } ;;
  12150. *)
  12151. CC="$CC $ac_cv_prog_cc_c99"
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12153. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  12154. esac
  12155. if test "x$ac_cv_prog_cc_c99" != xno; then :
  12156. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12157. else
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  12159. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  12160. if ${ac_cv_prog_cc_c89+:} false; then :
  12161. $as_echo_n "(cached) " >&6
  12162. else
  12163. ac_cv_prog_cc_c89=no
  12164. ac_save_CC=$CC
  12165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12166. /* end confdefs.h. */
  12167. #include <stdarg.h>
  12168. #include <stdio.h>
  12169. struct stat;
  12170. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  12171. struct buf { int x; };
  12172. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  12173. static char *e (p, i)
  12174. char **p;
  12175. int i;
  12176. {
  12177. return p[i];
  12178. }
  12179. static char *f (char * (*g) (char **, int), char **p, ...)
  12180. {
  12181. char *s;
  12182. va_list v;
  12183. va_start (v,p);
  12184. s = g (p, va_arg (v,int));
  12185. va_end (v);
  12186. return s;
  12187. }
  12188. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  12189. function prototypes and stuff, but not '\xHH' hex character constants.
  12190. These don't provoke an error unfortunately, instead are silently treated
  12191. as 'x'. The following induces an error, until -std is added to get
  12192. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  12193. array size at least. It's necessary to write '\x00'==0 to get something
  12194. that's true only with -std. */
  12195. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  12196. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  12197. inside strings and character constants. */
  12198. #define FOO(x) 'x'
  12199. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  12200. int test (int i, double x);
  12201. struct s1 {int (*f) (int a);};
  12202. struct s2 {int (*f) (double a);};
  12203. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  12204. int argc;
  12205. char **argv;
  12206. int
  12207. main ()
  12208. {
  12209. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  12210. ;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  12215. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12216. do
  12217. CC="$ac_save_CC $ac_arg"
  12218. if ac_fn_c_try_compile "$LINENO"; then :
  12219. ac_cv_prog_cc_c89=$ac_arg
  12220. fi
  12221. rm -f core conftest.err conftest.$ac_objext
  12222. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12223. done
  12224. rm -f conftest.$ac_ext
  12225. CC=$ac_save_CC
  12226. fi
  12227. # AC_CACHE_VAL
  12228. case "x$ac_cv_prog_cc_c89" in
  12229. x)
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12231. $as_echo "none needed" >&6; } ;;
  12232. xno)
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12234. $as_echo "unsupported" >&6; } ;;
  12235. *)
  12236. CC="$CC $ac_cv_prog_cc_c89"
  12237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12238. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  12239. esac
  12240. if test "x$ac_cv_prog_cc_c89" != xno; then :
  12241. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12242. else
  12243. ac_cv_prog_cc_stdc=no
  12244. fi
  12245. fi
  12246. ;;
  12247. esac
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  12249. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  12250. if ${ac_cv_prog_cc_stdc+:} false; then :
  12251. $as_echo_n "(cached) " >&6
  12252. fi
  12253. case $ac_cv_prog_cc_stdc in #(
  12254. no) :
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12256. $as_echo "unsupported" >&6; } ;; #(
  12257. '') :
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12259. $as_echo "none needed" >&6; } ;; #(
  12260. *) :
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  12262. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  12263. esac
  12264. ac_ext=cpp
  12265. ac_cpp='$CXXCPP $CPPFLAGS'
  12266. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12267. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12268. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12269. if test -z "$CXX"; then
  12270. if test -n "$CCC"; then
  12271. CXX=$CCC
  12272. else
  12273. if test -n "$ac_tool_prefix"; then
  12274. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12275. do
  12276. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12277. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12279. $as_echo_n "checking for $ac_word... " >&6; }
  12280. if ${ac_cv_prog_CXX+:} false; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. if test -n "$CXX"; then
  12284. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12285. else
  12286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12287. for as_dir in $PATH
  12288. do
  12289. IFS=$as_save_IFS
  12290. test -z "$as_dir" && as_dir=.
  12291. for ac_exec_ext in '' $ac_executable_extensions; do
  12292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12293. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12295. break 2
  12296. fi
  12297. done
  12298. done
  12299. IFS=$as_save_IFS
  12300. fi
  12301. fi
  12302. CXX=$ac_cv_prog_CXX
  12303. if test -n "$CXX"; then
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12305. $as_echo "$CXX" >&6; }
  12306. else
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12308. $as_echo "no" >&6; }
  12309. fi
  12310. test -n "$CXX" && break
  12311. done
  12312. fi
  12313. if test -z "$CXX"; then
  12314. ac_ct_CXX=$CXX
  12315. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12316. do
  12317. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12318. set dummy $ac_prog; ac_word=$2
  12319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12320. $as_echo_n "checking for $ac_word... " >&6; }
  12321. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12322. $as_echo_n "(cached) " >&6
  12323. else
  12324. if test -n "$ac_ct_CXX"; then
  12325. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12326. else
  12327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12328. for as_dir in $PATH
  12329. do
  12330. IFS=$as_save_IFS
  12331. test -z "$as_dir" && as_dir=.
  12332. for ac_exec_ext in '' $ac_executable_extensions; do
  12333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12334. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12336. break 2
  12337. fi
  12338. done
  12339. done
  12340. IFS=$as_save_IFS
  12341. fi
  12342. fi
  12343. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12344. if test -n "$ac_ct_CXX"; then
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12346. $as_echo "$ac_ct_CXX" >&6; }
  12347. else
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12349. $as_echo "no" >&6; }
  12350. fi
  12351. test -n "$ac_ct_CXX" && break
  12352. done
  12353. if test "x$ac_ct_CXX" = x; then
  12354. CXX="g++"
  12355. else
  12356. case $cross_compiling:$ac_tool_warned in
  12357. yes:)
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12359. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12360. ac_tool_warned=yes ;;
  12361. esac
  12362. CXX=$ac_ct_CXX
  12363. fi
  12364. fi
  12365. fi
  12366. fi
  12367. # Provide some information about the compiler.
  12368. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12369. set X $ac_compile
  12370. ac_compiler=$2
  12371. for ac_option in --version -v -V -qversion; do
  12372. { { ac_try="$ac_compiler $ac_option >&5"
  12373. case "(($ac_try" in
  12374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12375. *) ac_try_echo=$ac_try;;
  12376. esac
  12377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12378. $as_echo "$ac_try_echo"; } >&5
  12379. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12380. ac_status=$?
  12381. if test -s conftest.err; then
  12382. sed '10a\
  12383. ... rest of stderr output deleted ...
  12384. 10q' conftest.err >conftest.er1
  12385. cat conftest.er1 >&5
  12386. fi
  12387. rm -f conftest.er1 conftest.err
  12388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12389. test $ac_status = 0; }
  12390. done
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12392. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12393. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12394. $as_echo_n "(cached) " >&6
  12395. else
  12396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12397. /* end confdefs.h. */
  12398. int
  12399. main ()
  12400. {
  12401. #ifndef __GNUC__
  12402. choke me
  12403. #endif
  12404. ;
  12405. return 0;
  12406. }
  12407. _ACEOF
  12408. if ac_fn_cxx_try_compile "$LINENO"; then :
  12409. ac_compiler_gnu=yes
  12410. else
  12411. ac_compiler_gnu=no
  12412. fi
  12413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12414. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12415. fi
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12417. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12418. if test $ac_compiler_gnu = yes; then
  12419. GXX=yes
  12420. else
  12421. GXX=
  12422. fi
  12423. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12424. ac_save_CXXFLAGS=$CXXFLAGS
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12426. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12427. if ${ac_cv_prog_cxx_g+:} false; then :
  12428. $as_echo_n "(cached) " >&6
  12429. else
  12430. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12431. ac_cxx_werror_flag=yes
  12432. ac_cv_prog_cxx_g=no
  12433. CXXFLAGS="-g"
  12434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12435. /* end confdefs.h. */
  12436. int
  12437. main ()
  12438. {
  12439. ;
  12440. return 0;
  12441. }
  12442. _ACEOF
  12443. if ac_fn_cxx_try_compile "$LINENO"; then :
  12444. ac_cv_prog_cxx_g=yes
  12445. else
  12446. CXXFLAGS=""
  12447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12448. /* end confdefs.h. */
  12449. int
  12450. main ()
  12451. {
  12452. ;
  12453. return 0;
  12454. }
  12455. _ACEOF
  12456. if ac_fn_cxx_try_compile "$LINENO"; then :
  12457. else
  12458. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12459. CXXFLAGS="-g"
  12460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12461. /* end confdefs.h. */
  12462. int
  12463. main ()
  12464. {
  12465. ;
  12466. return 0;
  12467. }
  12468. _ACEOF
  12469. if ac_fn_cxx_try_compile "$LINENO"; then :
  12470. ac_cv_prog_cxx_g=yes
  12471. fi
  12472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12473. fi
  12474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12475. fi
  12476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12477. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12478. fi
  12479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12480. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12481. if test "$ac_test_CXXFLAGS" = set; then
  12482. CXXFLAGS=$ac_save_CXXFLAGS
  12483. elif test $ac_cv_prog_cxx_g = yes; then
  12484. if test "$GXX" = yes; then
  12485. CXXFLAGS="-g -O2"
  12486. else
  12487. CXXFLAGS="-g"
  12488. fi
  12489. else
  12490. if test "$GXX" = yes; then
  12491. CXXFLAGS="-O2"
  12492. else
  12493. CXXFLAGS=
  12494. fi
  12495. fi
  12496. ac_ext=c
  12497. ac_cpp='$CPP $CPPFLAGS'
  12498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12501. depcc="$CXX" am_compiler_list=
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12503. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12504. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12505. $as_echo_n "(cached) " >&6
  12506. else
  12507. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12508. # We make a subdir and do the tests there. Otherwise we can end up
  12509. # making bogus files that we don't know about and never remove. For
  12510. # instance it was reported that on HP-UX the gcc test will end up
  12511. # making a dummy file named 'D' -- because '-MD' means "put the output
  12512. # in D".
  12513. rm -rf conftest.dir
  12514. mkdir conftest.dir
  12515. # Copy depcomp to subdir because otherwise we won't find it if we're
  12516. # using a relative directory.
  12517. cp "$am_depcomp" conftest.dir
  12518. cd conftest.dir
  12519. # We will build objects and dependencies in a subdirectory because
  12520. # it helps to detect inapplicable dependency modes. For instance
  12521. # both Tru64's cc and ICC support -MD to output dependencies as a
  12522. # side effect of compilation, but ICC will put the dependencies in
  12523. # the current directory while Tru64 will put them in the object
  12524. # directory.
  12525. mkdir sub
  12526. am_cv_CXX_dependencies_compiler_type=none
  12527. if test "$am_compiler_list" = ""; then
  12528. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12529. fi
  12530. am__universal=false
  12531. case " $depcc " in #(
  12532. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12533. esac
  12534. for depmode in $am_compiler_list; do
  12535. # Setup a source with many dependencies, because some compilers
  12536. # like to wrap large dependency lists on column 80 (with \), and
  12537. # we should not choose a depcomp mode which is confused by this.
  12538. #
  12539. # We need to recreate these files for each test, as the compiler may
  12540. # overwrite some of them when testing with obscure command lines.
  12541. # This happens at least with the AIX C compiler.
  12542. : > sub/conftest.c
  12543. for i in 1 2 3 4 5 6; do
  12544. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12545. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12546. # Solaris 10 /bin/sh.
  12547. echo '/* dummy */' > sub/conftst$i.h
  12548. done
  12549. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12550. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12551. # mode. It turns out that the SunPro C++ compiler does not properly
  12552. # handle '-M -o', and we need to detect this. Also, some Intel
  12553. # versions had trouble with output in subdirs.
  12554. am__obj=sub/conftest.${OBJEXT-o}
  12555. am__minus_obj="-o $am__obj"
  12556. case $depmode in
  12557. gcc)
  12558. # This depmode causes a compiler race in universal mode.
  12559. test "$am__universal" = false || continue
  12560. ;;
  12561. nosideeffect)
  12562. # After this tag, mechanisms are not by side-effect, so they'll
  12563. # only be used when explicitly requested.
  12564. if test "x$enable_dependency_tracking" = xyes; then
  12565. continue
  12566. else
  12567. break
  12568. fi
  12569. ;;
  12570. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12571. # This compiler won't grok '-c -o', but also, the minuso test has
  12572. # not run yet. These depmodes are late enough in the game, and
  12573. # so weak that their functioning should not be impacted.
  12574. am__obj=conftest.${OBJEXT-o}
  12575. am__minus_obj=
  12576. ;;
  12577. none) break ;;
  12578. esac
  12579. if depmode=$depmode \
  12580. source=sub/conftest.c object=$am__obj \
  12581. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12582. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12583. >/dev/null 2>conftest.err &&
  12584. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12585. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12586. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12587. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12588. # icc doesn't choke on unknown options, it will just issue warnings
  12589. # or remarks (even with -Werror). So we grep stderr for any message
  12590. # that says an option was ignored or not supported.
  12591. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12592. # icc: Command line warning: ignoring option '-M'; no argument required
  12593. # The diagnosis changed in icc 8.0:
  12594. # icc: Command line remark: option '-MP' not supported
  12595. if (grep 'ignoring option' conftest.err ||
  12596. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12597. am_cv_CXX_dependencies_compiler_type=$depmode
  12598. break
  12599. fi
  12600. fi
  12601. done
  12602. cd ..
  12603. rm -rf conftest.dir
  12604. else
  12605. am_cv_CXX_dependencies_compiler_type=none
  12606. fi
  12607. fi
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12609. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12610. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12611. if
  12612. test "x$enable_dependency_tracking" != xno \
  12613. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12614. am__fastdepCXX_TRUE=
  12615. am__fastdepCXX_FALSE='#'
  12616. else
  12617. am__fastdepCXX_TRUE='#'
  12618. am__fastdepCXX_FALSE=
  12619. fi
  12620. func_stripname_cnf ()
  12621. {
  12622. case $2 in
  12623. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12624. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12625. esac
  12626. } # func_stripname_cnf
  12627. if test -n "$CXX" && ( test no != "$CXX" &&
  12628. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12629. (test g++ != "$CXX"))); then
  12630. ac_ext=cpp
  12631. ac_cpp='$CXXCPP $CPPFLAGS'
  12632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12636. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12637. if test -z "$CXXCPP"; then
  12638. if ${ac_cv_prog_CXXCPP+:} false; then :
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. # Double quotes because CXXCPP needs to be expanded
  12642. for CXXCPP in "$CXX -E" "/lib/cpp"
  12643. do
  12644. ac_preproc_ok=false
  12645. for ac_cxx_preproc_warn_flag in '' yes
  12646. do
  12647. # Use a header file that comes with gcc, so configuring glibc
  12648. # with a fresh cross-compiler works.
  12649. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12650. # <limits.h> exists even on freestanding compilers.
  12651. # On the NeXT, cc -E runs the code through the compiler's parser,
  12652. # not just through cpp. "Syntax error" is here to catch this case.
  12653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12654. /* end confdefs.h. */
  12655. #ifdef __STDC__
  12656. # include <limits.h>
  12657. #else
  12658. # include <assert.h>
  12659. #endif
  12660. Syntax error
  12661. _ACEOF
  12662. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12663. else
  12664. # Broken: fails on valid input.
  12665. continue
  12666. fi
  12667. rm -f conftest.err conftest.i conftest.$ac_ext
  12668. # OK, works on sane cases. Now check whether nonexistent headers
  12669. # can be detected and how.
  12670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12671. /* end confdefs.h. */
  12672. #include <ac_nonexistent.h>
  12673. _ACEOF
  12674. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12675. # Broken: success on invalid input.
  12676. continue
  12677. else
  12678. # Passes both tests.
  12679. ac_preproc_ok=:
  12680. break
  12681. fi
  12682. rm -f conftest.err conftest.i conftest.$ac_ext
  12683. done
  12684. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12685. rm -f conftest.i conftest.err conftest.$ac_ext
  12686. if $ac_preproc_ok; then :
  12687. break
  12688. fi
  12689. done
  12690. ac_cv_prog_CXXCPP=$CXXCPP
  12691. fi
  12692. CXXCPP=$ac_cv_prog_CXXCPP
  12693. else
  12694. ac_cv_prog_CXXCPP=$CXXCPP
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12697. $as_echo "$CXXCPP" >&6; }
  12698. ac_preproc_ok=false
  12699. for ac_cxx_preproc_warn_flag in '' yes
  12700. do
  12701. # Use a header file that comes with gcc, so configuring glibc
  12702. # with a fresh cross-compiler works.
  12703. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12704. # <limits.h> exists even on freestanding compilers.
  12705. # On the NeXT, cc -E runs the code through the compiler's parser,
  12706. # not just through cpp. "Syntax error" is here to catch this case.
  12707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12708. /* end confdefs.h. */
  12709. #ifdef __STDC__
  12710. # include <limits.h>
  12711. #else
  12712. # include <assert.h>
  12713. #endif
  12714. Syntax error
  12715. _ACEOF
  12716. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12717. else
  12718. # Broken: fails on valid input.
  12719. continue
  12720. fi
  12721. rm -f conftest.err conftest.i conftest.$ac_ext
  12722. # OK, works on sane cases. Now check whether nonexistent headers
  12723. # can be detected and how.
  12724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12725. /* end confdefs.h. */
  12726. #include <ac_nonexistent.h>
  12727. _ACEOF
  12728. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12729. # Broken: success on invalid input.
  12730. continue
  12731. else
  12732. # Passes both tests.
  12733. ac_preproc_ok=:
  12734. break
  12735. fi
  12736. rm -f conftest.err conftest.i conftest.$ac_ext
  12737. done
  12738. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12739. rm -f conftest.i conftest.err conftest.$ac_ext
  12740. if $ac_preproc_ok; then :
  12741. else
  12742. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12743. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12744. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12745. See \`config.log' for more details" "$LINENO" 5; }
  12746. fi
  12747. ac_ext=c
  12748. ac_cpp='$CPP $CPPFLAGS'
  12749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12752. else
  12753. _lt_caught_CXX_error=yes
  12754. fi
  12755. ac_ext=cpp
  12756. ac_cpp='$CXXCPP $CPPFLAGS'
  12757. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12758. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12759. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12760. archive_cmds_need_lc_CXX=no
  12761. allow_undefined_flag_CXX=
  12762. always_export_symbols_CXX=no
  12763. archive_expsym_cmds_CXX=
  12764. compiler_needs_object_CXX=no
  12765. export_dynamic_flag_spec_CXX=
  12766. hardcode_direct_CXX=no
  12767. hardcode_direct_absolute_CXX=no
  12768. hardcode_libdir_flag_spec_CXX=
  12769. hardcode_libdir_separator_CXX=
  12770. hardcode_minus_L_CXX=no
  12771. hardcode_shlibpath_var_CXX=unsupported
  12772. hardcode_automatic_CXX=no
  12773. inherit_rpath_CXX=no
  12774. module_cmds_CXX=
  12775. module_expsym_cmds_CXX=
  12776. link_all_deplibs_CXX=unknown
  12777. old_archive_cmds_CXX=$old_archive_cmds
  12778. reload_flag_CXX=$reload_flag
  12779. reload_cmds_CXX=$reload_cmds
  12780. no_undefined_flag_CXX=
  12781. whole_archive_flag_spec_CXX=
  12782. enable_shared_with_static_runtimes_CXX=no
  12783. # Source file extension for C++ test sources.
  12784. ac_ext=cpp
  12785. # Object file extension for compiled C++ test sources.
  12786. objext=o
  12787. objext_CXX=$objext
  12788. # No sense in running all these tests if we already determined that
  12789. # the CXX compiler isn't working. Some variables (like enable_shared)
  12790. # are currently assumed to apply to all compilers on this platform,
  12791. # and will be corrupted by setting them based on a non-working compiler.
  12792. if test yes != "$_lt_caught_CXX_error"; then
  12793. # Code to be used in simple compile tests
  12794. lt_simple_compile_test_code="int some_variable = 0;"
  12795. # Code to be used in simple link tests
  12796. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12797. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12798. # If no C compiler was specified, use CC.
  12799. LTCC=${LTCC-"$CC"}
  12800. # If no C compiler flags were specified, use CFLAGS.
  12801. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12802. # Allow CC to be a program name with arguments.
  12803. compiler=$CC
  12804. # save warnings/boilerplate of simple test code
  12805. ac_outfile=conftest.$ac_objext
  12806. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12807. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12808. _lt_compiler_boilerplate=`cat conftest.err`
  12809. $RM conftest*
  12810. ac_outfile=conftest.$ac_objext
  12811. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12812. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12813. _lt_linker_boilerplate=`cat conftest.err`
  12814. $RM -r conftest*
  12815. # Allow CC to be a program name with arguments.
  12816. lt_save_CC=$CC
  12817. lt_save_CFLAGS=$CFLAGS
  12818. lt_save_LD=$LD
  12819. lt_save_GCC=$GCC
  12820. GCC=$GXX
  12821. lt_save_with_gnu_ld=$with_gnu_ld
  12822. lt_save_path_LD=$lt_cv_path_LD
  12823. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12824. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12825. else
  12826. $as_unset lt_cv_prog_gnu_ld
  12827. fi
  12828. if test -n "${lt_cv_path_LDCXX+set}"; then
  12829. lt_cv_path_LD=$lt_cv_path_LDCXX
  12830. else
  12831. $as_unset lt_cv_path_LD
  12832. fi
  12833. test -z "${LDCXX+set}" || LD=$LDCXX
  12834. CC=${CXX-"c++"}
  12835. CFLAGS=$CXXFLAGS
  12836. compiler=$CC
  12837. compiler_CXX=$CC
  12838. func_cc_basename $compiler
  12839. cc_basename=$func_cc_basename_result
  12840. if test -n "$compiler"; then
  12841. # We don't want -fno-exception when compiling C++ code, so set the
  12842. # no_builtin_flag separately
  12843. if test yes = "$GXX"; then
  12844. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12845. else
  12846. lt_prog_compiler_no_builtin_flag_CXX=
  12847. fi
  12848. if test yes = "$GXX"; then
  12849. # Set up default GNU C++ configuration
  12850. # Check whether --with-gnu-ld was given.
  12851. if test "${with_gnu_ld+set}" = set; then :
  12852. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12853. else
  12854. with_gnu_ld=no
  12855. fi
  12856. ac_prog=ld
  12857. if test yes = "$GCC"; then
  12858. # Check if gcc -print-prog-name=ld gives a path.
  12859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12860. $as_echo_n "checking for ld used by $CC... " >&6; }
  12861. case $host in
  12862. *-*-mingw*)
  12863. # gcc leaves a trailing carriage return, which upsets mingw
  12864. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12865. *)
  12866. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12867. esac
  12868. case $ac_prog in
  12869. # Accept absolute paths.
  12870. [\\/]* | ?:[\\/]*)
  12871. re_direlt='/[^/][^/]*/\.\./'
  12872. # Canonicalize the pathname of ld
  12873. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12874. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12875. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12876. done
  12877. test -z "$LD" && LD=$ac_prog
  12878. ;;
  12879. "")
  12880. # If it fails, then pretend we aren't using GCC.
  12881. ac_prog=ld
  12882. ;;
  12883. *)
  12884. # If it is relative, then search for the first ld in PATH.
  12885. with_gnu_ld=unknown
  12886. ;;
  12887. esac
  12888. elif test yes = "$with_gnu_ld"; then
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12890. $as_echo_n "checking for GNU ld... " >&6; }
  12891. else
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12893. $as_echo_n "checking for non-GNU ld... " >&6; }
  12894. fi
  12895. if ${lt_cv_path_LD+:} false; then :
  12896. $as_echo_n "(cached) " >&6
  12897. else
  12898. if test -z "$LD"; then
  12899. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12900. for ac_dir in $PATH; do
  12901. IFS=$lt_save_ifs
  12902. test -z "$ac_dir" && ac_dir=.
  12903. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12904. lt_cv_path_LD=$ac_dir/$ac_prog
  12905. # Check to see if the program is GNU ld. I'd rather use --version,
  12906. # but apparently some variants of GNU ld only accept -v.
  12907. # Break only if it was the GNU/non-GNU ld that we prefer.
  12908. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12909. *GNU* | *'with BFD'*)
  12910. test no != "$with_gnu_ld" && break
  12911. ;;
  12912. *)
  12913. test yes != "$with_gnu_ld" && break
  12914. ;;
  12915. esac
  12916. fi
  12917. done
  12918. IFS=$lt_save_ifs
  12919. else
  12920. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12921. fi
  12922. fi
  12923. LD=$lt_cv_path_LD
  12924. if test -n "$LD"; then
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12926. $as_echo "$LD" >&6; }
  12927. else
  12928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12929. $as_echo "no" >&6; }
  12930. fi
  12931. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12933. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12934. if ${lt_cv_prog_gnu_ld+:} false; then :
  12935. $as_echo_n "(cached) " >&6
  12936. else
  12937. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12938. case `$LD -v 2>&1 </dev/null` in
  12939. *GNU* | *'with BFD'*)
  12940. lt_cv_prog_gnu_ld=yes
  12941. ;;
  12942. *)
  12943. lt_cv_prog_gnu_ld=no
  12944. ;;
  12945. esac
  12946. fi
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12948. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12949. with_gnu_ld=$lt_cv_prog_gnu_ld
  12950. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12951. # archiving commands below assume that GNU ld is being used.
  12952. if test yes = "$with_gnu_ld"; then
  12953. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12954. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12955. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12956. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12957. # If archive_cmds runs LD, not CC, wlarc should be empty
  12958. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12959. # investigate it a little bit more. (MM)
  12960. wlarc='$wl'
  12961. # ancient GNU ld didn't support --whole-archive et. al.
  12962. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12963. $GREP 'no-whole-archive' > /dev/null; then
  12964. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12965. else
  12966. whole_archive_flag_spec_CXX=
  12967. fi
  12968. else
  12969. with_gnu_ld=no
  12970. wlarc=
  12971. # A generic and very simple default shared library creation
  12972. # command for GNU C++ for the case where it uses the native
  12973. # linker, instead of GNU ld. If possible, this setting should
  12974. # overridden to take advantage of the native linker features on
  12975. # the platform it is being used on.
  12976. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12977. fi
  12978. # Commands to make compiler produce verbose output that lists
  12979. # what "hidden" libraries, object files and flags are used when
  12980. # linking a shared library.
  12981. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12982. else
  12983. GXX=no
  12984. with_gnu_ld=no
  12985. wlarc=
  12986. fi
  12987. # PORTME: fill in a description of your system's C++ link characteristics
  12988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12989. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12990. ld_shlibs_CXX=yes
  12991. case $host_os in
  12992. aix3*)
  12993. # FIXME: insert proper C++ library support
  12994. ld_shlibs_CXX=no
  12995. ;;
  12996. aix[4-9]*)
  12997. if test ia64 = "$host_cpu"; then
  12998. # On IA64, the linker does run time linking by default, so we don't
  12999. # have to do anything special.
  13000. aix_use_runtimelinking=no
  13001. exp_sym_flag='-Bexport'
  13002. no_entry_flag=
  13003. else
  13004. aix_use_runtimelinking=no
  13005. # Test if we are trying to use run time linking or normal
  13006. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13007. # have runtime linking enabled, and use it for executables.
  13008. # For shared libraries, we enable/disable runtime linking
  13009. # depending on the kind of the shared library created -
  13010. # when "with_aix_soname,aix_use_runtimelinking" is:
  13011. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13012. # "aix,yes" lib.so shared, rtl:yes, for executables
  13013. # lib.a static archive
  13014. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13015. # lib.a(lib.so.V) shared, rtl:no, for executables
  13016. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13017. # lib.a(lib.so.V) shared, rtl:no
  13018. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13019. # lib.a static archive
  13020. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13021. for ld_flag in $LDFLAGS; do
  13022. case $ld_flag in
  13023. *-brtl*)
  13024. aix_use_runtimelinking=yes
  13025. break
  13026. ;;
  13027. esac
  13028. done
  13029. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13030. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13031. # so we don't have lib.a shared libs to link our executables.
  13032. # We have to force runtime linking in this case.
  13033. aix_use_runtimelinking=yes
  13034. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13035. fi
  13036. ;;
  13037. esac
  13038. exp_sym_flag='-bexport'
  13039. no_entry_flag='-bnoentry'
  13040. fi
  13041. # When large executables or shared objects are built, AIX ld can
  13042. # have problems creating the table of contents. If linking a library
  13043. # or program results in "error TOC overflow" add -mminimal-toc to
  13044. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13045. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13046. archive_cmds_CXX=''
  13047. hardcode_direct_CXX=yes
  13048. hardcode_direct_absolute_CXX=yes
  13049. hardcode_libdir_separator_CXX=':'
  13050. link_all_deplibs_CXX=yes
  13051. file_list_spec_CXX='$wl-f,'
  13052. case $with_aix_soname,$aix_use_runtimelinking in
  13053. aix,*) ;; # no import file
  13054. svr4,* | *,yes) # use import file
  13055. # The Import File defines what to hardcode.
  13056. hardcode_direct_CXX=no
  13057. hardcode_direct_absolute_CXX=no
  13058. ;;
  13059. esac
  13060. if test yes = "$GXX"; then
  13061. case $host_os in aix4.[012]|aix4.[012].*)
  13062. # We only want to do this on AIX 4.2 and lower, the check
  13063. # below for broken collect2 doesn't work under 4.3+
  13064. collect2name=`$CC -print-prog-name=collect2`
  13065. if test -f "$collect2name" &&
  13066. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13067. then
  13068. # We have reworked collect2
  13069. :
  13070. else
  13071. # We have old collect2
  13072. hardcode_direct_CXX=unsupported
  13073. # It fails to find uninstalled libraries when the uninstalled
  13074. # path is not listed in the libpath. Setting hardcode_minus_L
  13075. # to unsupported forces relinking
  13076. hardcode_minus_L_CXX=yes
  13077. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13078. hardcode_libdir_separator_CXX=
  13079. fi
  13080. esac
  13081. shared_flag='-shared'
  13082. if test yes = "$aix_use_runtimelinking"; then
  13083. shared_flag=$shared_flag' $wl-G'
  13084. fi
  13085. # Need to ensure runtime linking is disabled for the traditional
  13086. # shared library, or the linker may eventually find shared libraries
  13087. # /with/ Import File - we do not want to mix them.
  13088. shared_flag_aix='-shared'
  13089. shared_flag_svr4='-shared $wl-G'
  13090. else
  13091. # not using gcc
  13092. if test ia64 = "$host_cpu"; then
  13093. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13094. # chokes on -Wl,-G. The following line is correct:
  13095. shared_flag='-G'
  13096. else
  13097. if test yes = "$aix_use_runtimelinking"; then
  13098. shared_flag='$wl-G'
  13099. else
  13100. shared_flag='$wl-bM:SRE'
  13101. fi
  13102. shared_flag_aix='$wl-bM:SRE'
  13103. shared_flag_svr4='$wl-G'
  13104. fi
  13105. fi
  13106. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13107. # It seems that -bexpall does not export symbols beginning with
  13108. # underscore (_), so it is better to generate a list of symbols to
  13109. # export.
  13110. always_export_symbols_CXX=yes
  13111. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13112. # Warning - without using the other runtime loading flags (-brtl),
  13113. # -berok will link without error, but may produce a broken library.
  13114. # The "-G" linker flag allows undefined symbols.
  13115. no_undefined_flag_CXX='-bernotok'
  13116. # Determine the default libpath from the value encoded in an empty
  13117. # executable.
  13118. if test set = "${lt_cv_aix_libpath+set}"; then
  13119. aix_libpath=$lt_cv_aix_libpath
  13120. else
  13121. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13122. $as_echo_n "(cached) " >&6
  13123. else
  13124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13125. /* end confdefs.h. */
  13126. int
  13127. main ()
  13128. {
  13129. ;
  13130. return 0;
  13131. }
  13132. _ACEOF
  13133. if ac_fn_cxx_try_link "$LINENO"; then :
  13134. lt_aix_libpath_sed='
  13135. /Import File Strings/,/^$/ {
  13136. /^0/ {
  13137. s/^0 *\([^ ]*\) *$/\1/
  13138. p
  13139. }
  13140. }'
  13141. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13142. # Check for a 64-bit object if we didn't find anything.
  13143. if test -z "$lt_cv_aix_libpath__CXX"; then
  13144. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13145. fi
  13146. fi
  13147. rm -f core conftest.err conftest.$ac_objext \
  13148. conftest$ac_exeext conftest.$ac_ext
  13149. if test -z "$lt_cv_aix_libpath__CXX"; then
  13150. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13151. fi
  13152. fi
  13153. aix_libpath=$lt_cv_aix_libpath__CXX
  13154. fi
  13155. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13156. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  13157. else
  13158. if test ia64 = "$host_cpu"; then
  13159. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13160. allow_undefined_flag_CXX="-z nodefs"
  13161. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  13162. else
  13163. # Determine the default libpath from the value encoded in an
  13164. # empty executable.
  13165. if test set = "${lt_cv_aix_libpath+set}"; then
  13166. aix_libpath=$lt_cv_aix_libpath
  13167. else
  13168. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13169. $as_echo_n "(cached) " >&6
  13170. else
  13171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13172. /* end confdefs.h. */
  13173. int
  13174. main ()
  13175. {
  13176. ;
  13177. return 0;
  13178. }
  13179. _ACEOF
  13180. if ac_fn_cxx_try_link "$LINENO"; then :
  13181. lt_aix_libpath_sed='
  13182. /Import File Strings/,/^$/ {
  13183. /^0/ {
  13184. s/^0 *\([^ ]*\) *$/\1/
  13185. p
  13186. }
  13187. }'
  13188. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13189. # Check for a 64-bit object if we didn't find anything.
  13190. if test -z "$lt_cv_aix_libpath__CXX"; then
  13191. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13192. fi
  13193. fi
  13194. rm -f core conftest.err conftest.$ac_objext \
  13195. conftest$ac_exeext conftest.$ac_ext
  13196. if test -z "$lt_cv_aix_libpath__CXX"; then
  13197. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13198. fi
  13199. fi
  13200. aix_libpath=$lt_cv_aix_libpath__CXX
  13201. fi
  13202. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13203. # Warning - without using the other run time loading flags,
  13204. # -berok will link without error, but may produce a broken library.
  13205. no_undefined_flag_CXX=' $wl-bernotok'
  13206. allow_undefined_flag_CXX=' $wl-berok'
  13207. if test yes = "$with_gnu_ld"; then
  13208. # We only use this code for GNU lds that support --whole-archive.
  13209. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13210. else
  13211. # Exported symbols can be pulled into shared objects from archives
  13212. whole_archive_flag_spec_CXX='$convenience'
  13213. fi
  13214. archive_cmds_need_lc_CXX=yes
  13215. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13216. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13217. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13218. if test svr4 != "$with_aix_soname"; then
  13219. # This is similar to how AIX traditionally builds its shared
  13220. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13221. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  13222. fi
  13223. if test aix != "$with_aix_soname"; then
  13224. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  13225. else
  13226. # used by -dlpreopen to get the symbols
  13227. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13228. fi
  13229. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13230. fi
  13231. fi
  13232. ;;
  13233. beos*)
  13234. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13235. allow_undefined_flag_CXX=unsupported
  13236. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13237. # support --undefined. This deserves some investigation. FIXME
  13238. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13239. else
  13240. ld_shlibs_CXX=no
  13241. fi
  13242. ;;
  13243. chorus*)
  13244. case $cc_basename in
  13245. *)
  13246. # FIXME: insert proper C++ library support
  13247. ld_shlibs_CXX=no
  13248. ;;
  13249. esac
  13250. ;;
  13251. cygwin* | mingw* | pw32* | cegcc*)
  13252. case $GXX,$cc_basename in
  13253. ,cl* | no,cl*)
  13254. # Native MSVC
  13255. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13256. # no search path for DLLs.
  13257. hardcode_libdir_flag_spec_CXX=' '
  13258. allow_undefined_flag_CXX=unsupported
  13259. always_export_symbols_CXX=yes
  13260. file_list_spec_CXX='@'
  13261. # Tell ltmain to make .lib files, not .a files.
  13262. libext=lib
  13263. # Tell ltmain to make .dll files, not .so files.
  13264. shrext_cmds=.dll
  13265. # FIXME: Setting linknames here is a bad hack.
  13266. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13267. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13268. cp "$export_symbols" "$output_objdir/$soname.def";
  13269. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13270. else
  13271. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13272. fi~
  13273. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13274. linknames='
  13275. # The linker will not automatically build a static lib if we build a DLL.
  13276. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13277. enable_shared_with_static_runtimes_CXX=yes
  13278. # Don't use ranlib
  13279. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13280. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13281. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13282. case $lt_outputfile in
  13283. *.exe|*.EXE) ;;
  13284. *)
  13285. lt_outputfile=$lt_outputfile.exe
  13286. lt_tool_outputfile=$lt_tool_outputfile.exe
  13287. ;;
  13288. esac~
  13289. func_to_tool_file "$lt_outputfile"~
  13290. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13291. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13292. $RM "$lt_outputfile.manifest";
  13293. fi'
  13294. ;;
  13295. *)
  13296. # g++
  13297. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13298. # as there is no search path for DLLs.
  13299. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13300. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13301. allow_undefined_flag_CXX=unsupported
  13302. always_export_symbols_CXX=no
  13303. enable_shared_with_static_runtimes_CXX=yes
  13304. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13305. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13306. # If the export-symbols file already is a .def file, use it as
  13307. # is; otherwise, prepend EXPORTS...
  13308. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13309. cp $export_symbols $output_objdir/$soname.def;
  13310. else
  13311. echo EXPORTS > $output_objdir/$soname.def;
  13312. cat $export_symbols >> $output_objdir/$soname.def;
  13313. fi~
  13314. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13315. else
  13316. ld_shlibs_CXX=no
  13317. fi
  13318. ;;
  13319. esac
  13320. ;;
  13321. darwin* | rhapsody*)
  13322. archive_cmds_need_lc_CXX=no
  13323. hardcode_direct_CXX=no
  13324. hardcode_automatic_CXX=yes
  13325. hardcode_shlibpath_var_CXX=unsupported
  13326. if test yes = "$lt_cv_ld_force_load"; then
  13327. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13328. else
  13329. whole_archive_flag_spec_CXX=''
  13330. fi
  13331. link_all_deplibs_CXX=yes
  13332. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13333. case $cc_basename in
  13334. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13335. *) _lt_dar_can_shared=$GCC ;;
  13336. esac
  13337. if test yes = "$_lt_dar_can_shared"; then
  13338. output_verbose_link_cmd=func_echo_all
  13339. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13340. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13341. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13342. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  13343. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13344. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  13345. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  13346. fi
  13347. else
  13348. ld_shlibs_CXX=no
  13349. fi
  13350. ;;
  13351. os2*)
  13352. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13353. hardcode_minus_L_CXX=yes
  13354. allow_undefined_flag_CXX=unsupported
  13355. shrext_cmds=.dll
  13356. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13357. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13358. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13359. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13360. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13361. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13362. emximp -o $lib $output_objdir/$libname.def'
  13363. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13364. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13365. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13366. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13367. prefix_cmds="$SED"~
  13368. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13369. prefix_cmds="$prefix_cmds -e 1d";
  13370. fi~
  13371. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13372. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13373. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13374. emximp -o $lib $output_objdir/$libname.def'
  13375. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13376. enable_shared_with_static_runtimes_CXX=yes
  13377. ;;
  13378. dgux*)
  13379. case $cc_basename in
  13380. ec++*)
  13381. # FIXME: insert proper C++ library support
  13382. ld_shlibs_CXX=no
  13383. ;;
  13384. ghcx*)
  13385. # Green Hills C++ Compiler
  13386. # FIXME: insert proper C++ library support
  13387. ld_shlibs_CXX=no
  13388. ;;
  13389. *)
  13390. # FIXME: insert proper C++ library support
  13391. ld_shlibs_CXX=no
  13392. ;;
  13393. esac
  13394. ;;
  13395. freebsd2.*)
  13396. # C++ shared libraries reported to be fairly broken before
  13397. # switch to ELF
  13398. ld_shlibs_CXX=no
  13399. ;;
  13400. freebsd-elf*)
  13401. archive_cmds_need_lc_CXX=no
  13402. ;;
  13403. freebsd* | dragonfly*)
  13404. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13405. # conventions
  13406. ld_shlibs_CXX=yes
  13407. ;;
  13408. haiku*)
  13409. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13410. link_all_deplibs_CXX=yes
  13411. ;;
  13412. hpux9*)
  13413. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13414. hardcode_libdir_separator_CXX=:
  13415. export_dynamic_flag_spec_CXX='$wl-E'
  13416. hardcode_direct_CXX=yes
  13417. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13418. # but as the default
  13419. # location of the library.
  13420. case $cc_basename in
  13421. CC*)
  13422. # FIXME: insert proper C++ library support
  13423. ld_shlibs_CXX=no
  13424. ;;
  13425. aCC*)
  13426. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13427. # Commands to make compiler produce verbose output that lists
  13428. # what "hidden" libraries, object files and flags are used when
  13429. # linking a shared library.
  13430. #
  13431. # There doesn't appear to be a way to prevent this compiler from
  13432. # explicitly linking system object files so we need to strip them
  13433. # from the output so that they don't get included in the library
  13434. # dependencies.
  13435. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13436. ;;
  13437. *)
  13438. if test yes = "$GXX"; then
  13439. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13440. else
  13441. # FIXME: insert proper C++ library support
  13442. ld_shlibs_CXX=no
  13443. fi
  13444. ;;
  13445. esac
  13446. ;;
  13447. hpux10*|hpux11*)
  13448. if test no = "$with_gnu_ld"; then
  13449. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13450. hardcode_libdir_separator_CXX=:
  13451. case $host_cpu in
  13452. hppa*64*|ia64*)
  13453. ;;
  13454. *)
  13455. export_dynamic_flag_spec_CXX='$wl-E'
  13456. ;;
  13457. esac
  13458. fi
  13459. case $host_cpu in
  13460. hppa*64*|ia64*)
  13461. hardcode_direct_CXX=no
  13462. hardcode_shlibpath_var_CXX=no
  13463. ;;
  13464. *)
  13465. hardcode_direct_CXX=yes
  13466. hardcode_direct_absolute_CXX=yes
  13467. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13468. # but as the default
  13469. # location of the library.
  13470. ;;
  13471. esac
  13472. case $cc_basename in
  13473. CC*)
  13474. # FIXME: insert proper C++ library support
  13475. ld_shlibs_CXX=no
  13476. ;;
  13477. aCC*)
  13478. case $host_cpu in
  13479. hppa*64*)
  13480. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13481. ;;
  13482. ia64*)
  13483. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13484. ;;
  13485. *)
  13486. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13487. ;;
  13488. esac
  13489. # Commands to make compiler produce verbose output that lists
  13490. # what "hidden" libraries, object files and flags are used when
  13491. # linking a shared library.
  13492. #
  13493. # There doesn't appear to be a way to prevent this compiler from
  13494. # explicitly linking system object files so we need to strip them
  13495. # from the output so that they don't get included in the library
  13496. # dependencies.
  13497. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13498. ;;
  13499. *)
  13500. if test yes = "$GXX"; then
  13501. if test no = "$with_gnu_ld"; then
  13502. case $host_cpu in
  13503. hppa*64*)
  13504. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13505. ;;
  13506. ia64*)
  13507. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13508. ;;
  13509. *)
  13510. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13511. ;;
  13512. esac
  13513. fi
  13514. else
  13515. # FIXME: insert proper C++ library support
  13516. ld_shlibs_CXX=no
  13517. fi
  13518. ;;
  13519. esac
  13520. ;;
  13521. interix[3-9]*)
  13522. hardcode_direct_CXX=no
  13523. hardcode_shlibpath_var_CXX=no
  13524. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13525. export_dynamic_flag_spec_CXX='$wl-E'
  13526. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13527. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13528. # default) and relocated if they conflict, which is a slow very memory
  13529. # consuming and fragmenting process. To avoid this, we pick a random,
  13530. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13531. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13532. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13533. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13534. ;;
  13535. irix5* | irix6*)
  13536. case $cc_basename in
  13537. CC*)
  13538. # SGI C++
  13539. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13540. # Archives containing C++ object files must be created using
  13541. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13542. # necessary to make sure instantiated templates are included
  13543. # in the archive.
  13544. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13545. ;;
  13546. *)
  13547. if test yes = "$GXX"; then
  13548. if test no = "$with_gnu_ld"; then
  13549. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13550. else
  13551. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  13552. fi
  13553. fi
  13554. link_all_deplibs_CXX=yes
  13555. ;;
  13556. esac
  13557. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13558. hardcode_libdir_separator_CXX=:
  13559. inherit_rpath_CXX=yes
  13560. ;;
  13561. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13562. case $cc_basename in
  13563. KCC*)
  13564. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13565. # KCC will only create a shared library if the output file
  13566. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13567. # to its proper name (with version) after linking.
  13568. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13569. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13570. # Commands to make compiler produce verbose output that lists
  13571. # what "hidden" libraries, object files and flags are used when
  13572. # linking a shared library.
  13573. #
  13574. # There doesn't appear to be a way to prevent this compiler from
  13575. # explicitly linking system object files so we need to strip them
  13576. # from the output so that they don't get included in the library
  13577. # dependencies.
  13578. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13579. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13580. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13581. # Archives containing C++ object files must be created using
  13582. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13583. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13584. ;;
  13585. icpc* | ecpc* )
  13586. # Intel C++
  13587. with_gnu_ld=yes
  13588. # version 8.0 and above of icpc choke on multiply defined symbols
  13589. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13590. # earlier do not add the objects themselves.
  13591. case `$CC -V 2>&1` in
  13592. *"Version 7."*)
  13593. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13594. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13595. ;;
  13596. *) # Version 8.0 or newer
  13597. tmp_idyn=
  13598. case $host_cpu in
  13599. ia64*) tmp_idyn=' -i_dynamic';;
  13600. esac
  13601. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13602. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13603. ;;
  13604. esac
  13605. archive_cmds_need_lc_CXX=no
  13606. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13607. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13608. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13609. ;;
  13610. pgCC* | pgcpp*)
  13611. # Portland Group C++ compiler
  13612. case `$CC -V` in
  13613. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13614. prelink_cmds_CXX='tpldir=Template.dir~
  13615. rm -rf $tpldir~
  13616. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13617. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13618. old_archive_cmds_CXX='tpldir=Template.dir~
  13619. rm -rf $tpldir~
  13620. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13621. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13622. $RANLIB $oldlib'
  13623. archive_cmds_CXX='tpldir=Template.dir~
  13624. rm -rf $tpldir~
  13625. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13626. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13627. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13628. rm -rf $tpldir~
  13629. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13630. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13631. ;;
  13632. *) # Version 6 and above use weak symbols
  13633. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13634. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13635. ;;
  13636. esac
  13637. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13638. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13639. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13640. ;;
  13641. cxx*)
  13642. # Compaq C++
  13643. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13644. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  13645. runpath_var=LD_RUN_PATH
  13646. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13647. hardcode_libdir_separator_CXX=:
  13648. # Commands to make compiler produce verbose output that lists
  13649. # what "hidden" libraries, object files and flags are used when
  13650. # linking a shared library.
  13651. #
  13652. # There doesn't appear to be a way to prevent this compiler from
  13653. # explicitly linking system object files so we need to strip them
  13654. # from the output so that they don't get included in the library
  13655. # dependencies.
  13656. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  13657. ;;
  13658. xl* | mpixl* | bgxl*)
  13659. # IBM XL 8.0 on PPC, with GNU ld
  13660. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13661. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13662. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13663. if test yes = "$supports_anon_versioning"; then
  13664. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13665. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13666. echo "local: *; };" >> $output_objdir/$libname.ver~
  13667. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13668. fi
  13669. ;;
  13670. *)
  13671. case `$CC -V 2>&1 | sed 5q` in
  13672. *Sun\ C*)
  13673. # Sun C++ 5.9
  13674. no_undefined_flag_CXX=' -zdefs'
  13675. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13676. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  13677. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13678. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  13679. compiler_needs_object_CXX=yes
  13680. # Not sure whether something based on
  13681. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13682. # would be better.
  13683. output_verbose_link_cmd='func_echo_all'
  13684. # Archives containing C++ object files must be created using
  13685. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13686. # necessary to make sure instantiated templates are included
  13687. # in the archive.
  13688. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13689. ;;
  13690. esac
  13691. ;;
  13692. esac
  13693. ;;
  13694. lynxos*)
  13695. # FIXME: insert proper C++ library support
  13696. ld_shlibs_CXX=no
  13697. ;;
  13698. m88k*)
  13699. # FIXME: insert proper C++ library support
  13700. ld_shlibs_CXX=no
  13701. ;;
  13702. mvs*)
  13703. case $cc_basename in
  13704. cxx*)
  13705. # FIXME: insert proper C++ library support
  13706. ld_shlibs_CXX=no
  13707. ;;
  13708. *)
  13709. # FIXME: insert proper C++ library support
  13710. ld_shlibs_CXX=no
  13711. ;;
  13712. esac
  13713. ;;
  13714. netbsd*)
  13715. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13716. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13717. wlarc=
  13718. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13719. hardcode_direct_CXX=yes
  13720. hardcode_shlibpath_var_CXX=no
  13721. fi
  13722. # Workaround some broken pre-1.5 toolchains
  13723. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13724. ;;
  13725. *nto* | *qnx*)
  13726. ld_shlibs_CXX=yes
  13727. ;;
  13728. openbsd* | bitrig*)
  13729. if test -f /usr/libexec/ld.so; then
  13730. hardcode_direct_CXX=yes
  13731. hardcode_shlibpath_var_CXX=no
  13732. hardcode_direct_absolute_CXX=yes
  13733. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13734. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13735. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13736. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13737. export_dynamic_flag_spec_CXX='$wl-E'
  13738. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13739. fi
  13740. output_verbose_link_cmd=func_echo_all
  13741. else
  13742. ld_shlibs_CXX=no
  13743. fi
  13744. ;;
  13745. osf3* | osf4* | osf5*)
  13746. case $cc_basename in
  13747. KCC*)
  13748. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13749. # KCC will only create a shared library if the output file
  13750. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13751. # to its proper name (with version) after linking.
  13752. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13753. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13754. hardcode_libdir_separator_CXX=:
  13755. # Archives containing C++ object files must be created using
  13756. # the KAI C++ compiler.
  13757. case $host in
  13758. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13759. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13760. esac
  13761. ;;
  13762. RCC*)
  13763. # Rational C++ 2.4.1
  13764. # FIXME: insert proper C++ library support
  13765. ld_shlibs_CXX=no
  13766. ;;
  13767. cxx*)
  13768. case $host in
  13769. osf3*)
  13770. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13771. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13772. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13773. ;;
  13774. *)
  13775. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13776. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  13777. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13778. echo "-hidden">> $lib.exp~
  13779. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  13780. $RM $lib.exp'
  13781. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13782. ;;
  13783. esac
  13784. hardcode_libdir_separator_CXX=:
  13785. # Commands to make compiler produce verbose output that lists
  13786. # what "hidden" libraries, object files and flags are used when
  13787. # linking a shared library.
  13788. #
  13789. # There doesn't appear to be a way to prevent this compiler from
  13790. # explicitly linking system object files so we need to strip them
  13791. # from the output so that they don't get included in the library
  13792. # dependencies.
  13793. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  13794. ;;
  13795. *)
  13796. if test yes,no = "$GXX,$with_gnu_ld"; then
  13797. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13798. case $host in
  13799. osf3*)
  13800. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13801. ;;
  13802. *)
  13803. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13804. ;;
  13805. esac
  13806. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13807. hardcode_libdir_separator_CXX=:
  13808. # Commands to make compiler produce verbose output that lists
  13809. # what "hidden" libraries, object files and flags are used when
  13810. # linking a shared library.
  13811. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13812. else
  13813. # FIXME: insert proper C++ library support
  13814. ld_shlibs_CXX=no
  13815. fi
  13816. ;;
  13817. esac
  13818. ;;
  13819. psos*)
  13820. # FIXME: insert proper C++ library support
  13821. ld_shlibs_CXX=no
  13822. ;;
  13823. sunos4*)
  13824. case $cc_basename in
  13825. CC*)
  13826. # Sun C++ 4.x
  13827. # FIXME: insert proper C++ library support
  13828. ld_shlibs_CXX=no
  13829. ;;
  13830. lcc*)
  13831. # Lucid
  13832. # FIXME: insert proper C++ library support
  13833. ld_shlibs_CXX=no
  13834. ;;
  13835. *)
  13836. # FIXME: insert proper C++ library support
  13837. ld_shlibs_CXX=no
  13838. ;;
  13839. esac
  13840. ;;
  13841. solaris*)
  13842. case $cc_basename in
  13843. CC* | sunCC*)
  13844. # Sun C++ 4.2, 5.x and Centerline C++
  13845. archive_cmds_need_lc_CXX=yes
  13846. no_undefined_flag_CXX=' -zdefs'
  13847. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13848. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13849. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13850. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13851. hardcode_shlibpath_var_CXX=no
  13852. case $host_os in
  13853. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13854. *)
  13855. # The compiler driver will combine and reorder linker options,
  13856. # but understands '-z linker_flag'.
  13857. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13858. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13859. ;;
  13860. esac
  13861. link_all_deplibs_CXX=yes
  13862. output_verbose_link_cmd='func_echo_all'
  13863. # Archives containing C++ object files must be created using
  13864. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13865. # necessary to make sure instantiated templates are included
  13866. # in the archive.
  13867. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13868. ;;
  13869. gcx*)
  13870. # Green Hills C++ Compiler
  13871. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13872. # The C++ compiler must be used to create the archive.
  13873. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13874. ;;
  13875. *)
  13876. # GNU C++ compiler with Solaris linker
  13877. if test yes,no = "$GXX,$with_gnu_ld"; then
  13878. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13879. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13880. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13881. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13882. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13883. # Commands to make compiler produce verbose output that lists
  13884. # what "hidden" libraries, object files and flags are used when
  13885. # linking a shared library.
  13886. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13887. else
  13888. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13889. # platform.
  13890. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13891. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13892. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13893. # Commands to make compiler produce verbose output that lists
  13894. # what "hidden" libraries, object files and flags are used when
  13895. # linking a shared library.
  13896. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13897. fi
  13898. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13899. case $host_os in
  13900. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13901. *)
  13902. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13903. ;;
  13904. esac
  13905. fi
  13906. ;;
  13907. esac
  13908. ;;
  13909. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13910. no_undefined_flag_CXX='$wl-z,text'
  13911. archive_cmds_need_lc_CXX=no
  13912. hardcode_shlibpath_var_CXX=no
  13913. runpath_var='LD_RUN_PATH'
  13914. case $cc_basename in
  13915. CC*)
  13916. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13917. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13918. ;;
  13919. *)
  13920. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13921. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13922. ;;
  13923. esac
  13924. ;;
  13925. sysv5* | sco3.2v5* | sco5v6*)
  13926. # Note: We CANNOT use -z defs as we might desire, because we do not
  13927. # link with -lc, and that would cause any symbols used from libc to
  13928. # always be unresolved, which means just about no library would
  13929. # ever link correctly. If we're not using GNU ld we use -z text
  13930. # though, which does catch some bad symbols but isn't as heavy-handed
  13931. # as -z defs.
  13932. no_undefined_flag_CXX='$wl-z,text'
  13933. allow_undefined_flag_CXX='$wl-z,nodefs'
  13934. archive_cmds_need_lc_CXX=no
  13935. hardcode_shlibpath_var_CXX=no
  13936. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13937. hardcode_libdir_separator_CXX=':'
  13938. link_all_deplibs_CXX=yes
  13939. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13940. runpath_var='LD_RUN_PATH'
  13941. case $cc_basename in
  13942. CC*)
  13943. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13944. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13945. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13946. '"$old_archive_cmds_CXX"
  13947. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13948. '"$reload_cmds_CXX"
  13949. ;;
  13950. *)
  13951. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13952. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13953. ;;
  13954. esac
  13955. ;;
  13956. tandem*)
  13957. case $cc_basename in
  13958. NCC*)
  13959. # NonStop-UX NCC 3.20
  13960. # FIXME: insert proper C++ library support
  13961. ld_shlibs_CXX=no
  13962. ;;
  13963. *)
  13964. # FIXME: insert proper C++ library support
  13965. ld_shlibs_CXX=no
  13966. ;;
  13967. esac
  13968. ;;
  13969. vxworks*)
  13970. # FIXME: insert proper C++ library support
  13971. ld_shlibs_CXX=no
  13972. ;;
  13973. *)
  13974. # FIXME: insert proper C++ library support
  13975. ld_shlibs_CXX=no
  13976. ;;
  13977. esac
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13979. $as_echo "$ld_shlibs_CXX" >&6; }
  13980. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13981. GCC_CXX=$GXX
  13982. LD_CXX=$LD
  13983. ## CAVEAT EMPTOR:
  13984. ## There is no encapsulation within the following macros, do not change
  13985. ## the running order or otherwise move them around unless you know exactly
  13986. ## what you are doing...
  13987. # Dependencies to place before and after the object being linked:
  13988. predep_objects_CXX=
  13989. postdep_objects_CXX=
  13990. predeps_CXX=
  13991. postdeps_CXX=
  13992. compiler_lib_search_path_CXX=
  13993. cat > conftest.$ac_ext <<_LT_EOF
  13994. class Foo
  13995. {
  13996. public:
  13997. Foo (void) { a = 0; }
  13998. private:
  13999. int a;
  14000. };
  14001. _LT_EOF
  14002. _lt_libdeps_save_CFLAGS=$CFLAGS
  14003. case "$CC $CFLAGS " in #(
  14004. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14005. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14006. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14007. esac
  14008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14009. (eval $ac_compile) 2>&5
  14010. ac_status=$?
  14011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14012. test $ac_status = 0; }; then
  14013. # Parse the compiler output and extract the necessary
  14014. # objects, libraries and library flags.
  14015. # Sentinel used to keep track of whether or not we are before
  14016. # the conftest object file.
  14017. pre_test_object_deps_done=no
  14018. for p in `eval "$output_verbose_link_cmd"`; do
  14019. case $prev$p in
  14020. -L* | -R* | -l*)
  14021. # Some compilers place space between "-{L,R}" and the path.
  14022. # Remove the space.
  14023. if test x-L = "$p" ||
  14024. test x-R = "$p"; then
  14025. prev=$p
  14026. continue
  14027. fi
  14028. # Expand the sysroot to ease extracting the directories later.
  14029. if test -z "$prev"; then
  14030. case $p in
  14031. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14032. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14033. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14034. esac
  14035. fi
  14036. case $p in
  14037. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14038. esac
  14039. if test no = "$pre_test_object_deps_done"; then
  14040. case $prev in
  14041. -L | -R)
  14042. # Internal compiler library paths should come after those
  14043. # provided the user. The postdeps already come after the
  14044. # user supplied libs so there is no need to process them.
  14045. if test -z "$compiler_lib_search_path_CXX"; then
  14046. compiler_lib_search_path_CXX=$prev$p
  14047. else
  14048. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14049. fi
  14050. ;;
  14051. # The "-l" case would never come before the object being
  14052. # linked, so don't bother handling this case.
  14053. esac
  14054. else
  14055. if test -z "$postdeps_CXX"; then
  14056. postdeps_CXX=$prev$p
  14057. else
  14058. postdeps_CXX="${postdeps_CXX} $prev$p"
  14059. fi
  14060. fi
  14061. prev=
  14062. ;;
  14063. *.lto.$objext) ;; # Ignore GCC LTO objects
  14064. *.$objext)
  14065. # This assumes that the test object file only shows up
  14066. # once in the compiler output.
  14067. if test "$p" = "conftest.$objext"; then
  14068. pre_test_object_deps_done=yes
  14069. continue
  14070. fi
  14071. if test no = "$pre_test_object_deps_done"; then
  14072. if test -z "$predep_objects_CXX"; then
  14073. predep_objects_CXX=$p
  14074. else
  14075. predep_objects_CXX="$predep_objects_CXX $p"
  14076. fi
  14077. else
  14078. if test -z "$postdep_objects_CXX"; then
  14079. postdep_objects_CXX=$p
  14080. else
  14081. postdep_objects_CXX="$postdep_objects_CXX $p"
  14082. fi
  14083. fi
  14084. ;;
  14085. *) ;; # Ignore the rest.
  14086. esac
  14087. done
  14088. # Clean up.
  14089. rm -f a.out a.exe
  14090. else
  14091. echo "libtool.m4: error: problem compiling CXX test program"
  14092. fi
  14093. $RM -f confest.$objext
  14094. CFLAGS=$_lt_libdeps_save_CFLAGS
  14095. # PORTME: override above test on systems where it is broken
  14096. case $host_os in
  14097. interix[3-9]*)
  14098. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14099. # hack all around it, let's just trust "g++" to DTRT.
  14100. predep_objects_CXX=
  14101. postdep_objects_CXX=
  14102. postdeps_CXX=
  14103. ;;
  14104. esac
  14105. case " $postdeps_CXX " in
  14106. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14107. esac
  14108. compiler_lib_search_dirs_CXX=
  14109. if test -n "${compiler_lib_search_path_CXX}"; then
  14110. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14111. fi
  14112. lt_prog_compiler_wl_CXX=
  14113. lt_prog_compiler_pic_CXX=
  14114. lt_prog_compiler_static_CXX=
  14115. # C++ specific cases for pic, static, wl, etc.
  14116. if test yes = "$GXX"; then
  14117. lt_prog_compiler_wl_CXX='-Wl,'
  14118. lt_prog_compiler_static_CXX='-static'
  14119. case $host_os in
  14120. aix*)
  14121. # All AIX code is PIC.
  14122. if test ia64 = "$host_cpu"; then
  14123. # AIX 5 now supports IA64 processor
  14124. lt_prog_compiler_static_CXX='-Bstatic'
  14125. fi
  14126. lt_prog_compiler_pic_CXX='-fPIC'
  14127. ;;
  14128. amigaos*)
  14129. case $host_cpu in
  14130. powerpc)
  14131. # see comment about AmigaOS4 .so support
  14132. lt_prog_compiler_pic_CXX='-fPIC'
  14133. ;;
  14134. m68k)
  14135. # FIXME: we need at least 68020 code to build shared libraries, but
  14136. # adding the '-m68020' flag to GCC prevents building anything better,
  14137. # like '-m68040'.
  14138. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14139. ;;
  14140. esac
  14141. ;;
  14142. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14143. # PIC is the default for these OSes.
  14144. ;;
  14145. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14146. # This hack is so that the source file can tell whether it is being
  14147. # built for inclusion in a dll (and should export symbols for example).
  14148. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14149. # (--disable-auto-import) libraries
  14150. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14151. case $host_os in
  14152. os2*)
  14153. lt_prog_compiler_static_CXX='$wl-static'
  14154. ;;
  14155. esac
  14156. ;;
  14157. darwin* | rhapsody*)
  14158. # PIC is the default on this platform
  14159. # Common symbols not allowed in MH_DYLIB files
  14160. lt_prog_compiler_pic_CXX='-fno-common'
  14161. ;;
  14162. *djgpp*)
  14163. # DJGPP does not support shared libraries at all
  14164. lt_prog_compiler_pic_CXX=
  14165. ;;
  14166. haiku*)
  14167. # PIC is the default for Haiku.
  14168. # The "-static" flag exists, but is broken.
  14169. lt_prog_compiler_static_CXX=
  14170. ;;
  14171. interix[3-9]*)
  14172. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14173. # Instead, we relocate shared libraries at runtime.
  14174. ;;
  14175. sysv4*MP*)
  14176. if test -d /usr/nec; then
  14177. lt_prog_compiler_pic_CXX=-Kconform_pic
  14178. fi
  14179. ;;
  14180. hpux*)
  14181. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14182. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14183. # sets the default TLS model and affects inlining.
  14184. case $host_cpu in
  14185. hppa*64*)
  14186. ;;
  14187. *)
  14188. lt_prog_compiler_pic_CXX='-fPIC'
  14189. ;;
  14190. esac
  14191. ;;
  14192. *qnx* | *nto*)
  14193. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14194. # it will coredump.
  14195. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14196. ;;
  14197. *)
  14198. lt_prog_compiler_pic_CXX='-fPIC'
  14199. ;;
  14200. esac
  14201. else
  14202. case $host_os in
  14203. aix[4-9]*)
  14204. # All AIX code is PIC.
  14205. if test ia64 = "$host_cpu"; then
  14206. # AIX 5 now supports IA64 processor
  14207. lt_prog_compiler_static_CXX='-Bstatic'
  14208. else
  14209. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14210. fi
  14211. ;;
  14212. chorus*)
  14213. case $cc_basename in
  14214. cxch68*)
  14215. # Green Hills C++ Compiler
  14216. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14217. ;;
  14218. esac
  14219. ;;
  14220. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14221. # This hack is so that the source file can tell whether it is being
  14222. # built for inclusion in a dll (and should export symbols for example).
  14223. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14224. ;;
  14225. dgux*)
  14226. case $cc_basename in
  14227. ec++*)
  14228. lt_prog_compiler_pic_CXX='-KPIC'
  14229. ;;
  14230. ghcx*)
  14231. # Green Hills C++ Compiler
  14232. lt_prog_compiler_pic_CXX='-pic'
  14233. ;;
  14234. *)
  14235. ;;
  14236. esac
  14237. ;;
  14238. freebsd* | dragonfly*)
  14239. # FreeBSD uses GNU C++
  14240. ;;
  14241. hpux9* | hpux10* | hpux11*)
  14242. case $cc_basename in
  14243. CC*)
  14244. lt_prog_compiler_wl_CXX='-Wl,'
  14245. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14246. if test ia64 != "$host_cpu"; then
  14247. lt_prog_compiler_pic_CXX='+Z'
  14248. fi
  14249. ;;
  14250. aCC*)
  14251. lt_prog_compiler_wl_CXX='-Wl,'
  14252. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14253. case $host_cpu in
  14254. hppa*64*|ia64*)
  14255. # +Z the default
  14256. ;;
  14257. *)
  14258. lt_prog_compiler_pic_CXX='+Z'
  14259. ;;
  14260. esac
  14261. ;;
  14262. *)
  14263. ;;
  14264. esac
  14265. ;;
  14266. interix*)
  14267. # This is c89, which is MS Visual C++ (no shared libs)
  14268. # Anyone wants to do a port?
  14269. ;;
  14270. irix5* | irix6* | nonstopux*)
  14271. case $cc_basename in
  14272. CC*)
  14273. lt_prog_compiler_wl_CXX='-Wl,'
  14274. lt_prog_compiler_static_CXX='-non_shared'
  14275. # CC pic flag -KPIC is the default.
  14276. ;;
  14277. *)
  14278. ;;
  14279. esac
  14280. ;;
  14281. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14282. case $cc_basename in
  14283. KCC*)
  14284. # KAI C++ Compiler
  14285. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14286. lt_prog_compiler_pic_CXX='-fPIC'
  14287. ;;
  14288. ecpc* )
  14289. # old Intel C++ for x86_64, which still supported -KPIC.
  14290. lt_prog_compiler_wl_CXX='-Wl,'
  14291. lt_prog_compiler_pic_CXX='-KPIC'
  14292. lt_prog_compiler_static_CXX='-static'
  14293. ;;
  14294. icpc* )
  14295. # Intel C++, used to be incompatible with GCC.
  14296. # ICC 10 doesn't accept -KPIC any more.
  14297. lt_prog_compiler_wl_CXX='-Wl,'
  14298. lt_prog_compiler_pic_CXX='-fPIC'
  14299. lt_prog_compiler_static_CXX='-static'
  14300. ;;
  14301. pgCC* | pgcpp*)
  14302. # Portland Group C++ compiler
  14303. lt_prog_compiler_wl_CXX='-Wl,'
  14304. lt_prog_compiler_pic_CXX='-fpic'
  14305. lt_prog_compiler_static_CXX='-Bstatic'
  14306. ;;
  14307. cxx*)
  14308. # Compaq C++
  14309. # Make sure the PIC flag is empty. It appears that all Alpha
  14310. # Linux and Compaq Tru64 Unix objects are PIC.
  14311. lt_prog_compiler_pic_CXX=
  14312. lt_prog_compiler_static_CXX='-non_shared'
  14313. ;;
  14314. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14315. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14316. lt_prog_compiler_wl_CXX='-Wl,'
  14317. lt_prog_compiler_pic_CXX='-qpic'
  14318. lt_prog_compiler_static_CXX='-qstaticlink'
  14319. ;;
  14320. *)
  14321. case `$CC -V 2>&1 | sed 5q` in
  14322. *Sun\ C*)
  14323. # Sun C++ 5.9
  14324. lt_prog_compiler_pic_CXX='-KPIC'
  14325. lt_prog_compiler_static_CXX='-Bstatic'
  14326. lt_prog_compiler_wl_CXX='-Qoption ld '
  14327. ;;
  14328. esac
  14329. ;;
  14330. esac
  14331. ;;
  14332. lynxos*)
  14333. ;;
  14334. m88k*)
  14335. ;;
  14336. mvs*)
  14337. case $cc_basename in
  14338. cxx*)
  14339. lt_prog_compiler_pic_CXX='-W c,exportall'
  14340. ;;
  14341. *)
  14342. ;;
  14343. esac
  14344. ;;
  14345. netbsd* | netbsdelf*-gnu)
  14346. ;;
  14347. *qnx* | *nto*)
  14348. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14349. # it will coredump.
  14350. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14351. ;;
  14352. osf3* | osf4* | osf5*)
  14353. case $cc_basename in
  14354. KCC*)
  14355. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14356. ;;
  14357. RCC*)
  14358. # Rational C++ 2.4.1
  14359. lt_prog_compiler_pic_CXX='-pic'
  14360. ;;
  14361. cxx*)
  14362. # Digital/Compaq C++
  14363. lt_prog_compiler_wl_CXX='-Wl,'
  14364. # Make sure the PIC flag is empty. It appears that all Alpha
  14365. # Linux and Compaq Tru64 Unix objects are PIC.
  14366. lt_prog_compiler_pic_CXX=
  14367. lt_prog_compiler_static_CXX='-non_shared'
  14368. ;;
  14369. *)
  14370. ;;
  14371. esac
  14372. ;;
  14373. psos*)
  14374. ;;
  14375. solaris*)
  14376. case $cc_basename in
  14377. CC* | sunCC*)
  14378. # Sun C++ 4.2, 5.x and Centerline C++
  14379. lt_prog_compiler_pic_CXX='-KPIC'
  14380. lt_prog_compiler_static_CXX='-Bstatic'
  14381. lt_prog_compiler_wl_CXX='-Qoption ld '
  14382. ;;
  14383. gcx*)
  14384. # Green Hills C++ Compiler
  14385. lt_prog_compiler_pic_CXX='-PIC'
  14386. ;;
  14387. *)
  14388. ;;
  14389. esac
  14390. ;;
  14391. sunos4*)
  14392. case $cc_basename in
  14393. CC*)
  14394. # Sun C++ 4.x
  14395. lt_prog_compiler_pic_CXX='-pic'
  14396. lt_prog_compiler_static_CXX='-Bstatic'
  14397. ;;
  14398. lcc*)
  14399. # Lucid
  14400. lt_prog_compiler_pic_CXX='-pic'
  14401. ;;
  14402. *)
  14403. ;;
  14404. esac
  14405. ;;
  14406. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14407. case $cc_basename in
  14408. CC*)
  14409. lt_prog_compiler_wl_CXX='-Wl,'
  14410. lt_prog_compiler_pic_CXX='-KPIC'
  14411. lt_prog_compiler_static_CXX='-Bstatic'
  14412. ;;
  14413. esac
  14414. ;;
  14415. tandem*)
  14416. case $cc_basename in
  14417. NCC*)
  14418. # NonStop-UX NCC 3.20
  14419. lt_prog_compiler_pic_CXX='-KPIC'
  14420. ;;
  14421. *)
  14422. ;;
  14423. esac
  14424. ;;
  14425. vxworks*)
  14426. ;;
  14427. *)
  14428. lt_prog_compiler_can_build_shared_CXX=no
  14429. ;;
  14430. esac
  14431. fi
  14432. case $host_os in
  14433. # For platforms that do not support PIC, -DPIC is meaningless:
  14434. *djgpp*)
  14435. lt_prog_compiler_pic_CXX=
  14436. ;;
  14437. *)
  14438. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14439. ;;
  14440. esac
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14442. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14443. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14444. $as_echo_n "(cached) " >&6
  14445. else
  14446. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14449. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14450. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14451. #
  14452. # Check to make sure the PIC flag actually works.
  14453. #
  14454. if test -n "$lt_prog_compiler_pic_CXX"; then
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14456. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14457. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14458. $as_echo_n "(cached) " >&6
  14459. else
  14460. lt_cv_prog_compiler_pic_works_CXX=no
  14461. ac_outfile=conftest.$ac_objext
  14462. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14463. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14464. # Insert the option either (1) after the last *FLAGS variable, or
  14465. # (2) before a word containing "conftest.", or (3) at the end.
  14466. # Note that $ac_compile itself does not contain backslashes and begins
  14467. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14468. # The option is referenced via a variable to avoid confusing sed.
  14469. lt_compile=`echo "$ac_compile" | $SED \
  14470. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14471. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14472. -e 's:$: $lt_compiler_flag:'`
  14473. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14474. (eval "$lt_compile" 2>conftest.err)
  14475. ac_status=$?
  14476. cat conftest.err >&5
  14477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14478. if (exit $ac_status) && test -s "$ac_outfile"; then
  14479. # The compiler can only warn and ignore the option if not recognized
  14480. # So say no if there are warnings other than the usual output.
  14481. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14482. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14483. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14484. lt_cv_prog_compiler_pic_works_CXX=yes
  14485. fi
  14486. fi
  14487. $RM conftest*
  14488. fi
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14490. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14491. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14492. case $lt_prog_compiler_pic_CXX in
  14493. "" | " "*) ;;
  14494. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14495. esac
  14496. else
  14497. lt_prog_compiler_pic_CXX=
  14498. lt_prog_compiler_can_build_shared_CXX=no
  14499. fi
  14500. fi
  14501. #
  14502. # Check to make sure the static flag actually works.
  14503. #
  14504. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14506. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14507. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14508. $as_echo_n "(cached) " >&6
  14509. else
  14510. lt_cv_prog_compiler_static_works_CXX=no
  14511. save_LDFLAGS=$LDFLAGS
  14512. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14513. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14514. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14515. # The linker can only warn and ignore the option if not recognized
  14516. # So say no if there are warnings
  14517. if test -s conftest.err; then
  14518. # Append any errors to the config.log.
  14519. cat conftest.err 1>&5
  14520. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14521. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14522. if diff conftest.exp conftest.er2 >/dev/null; then
  14523. lt_cv_prog_compiler_static_works_CXX=yes
  14524. fi
  14525. else
  14526. lt_cv_prog_compiler_static_works_CXX=yes
  14527. fi
  14528. fi
  14529. $RM -r conftest*
  14530. LDFLAGS=$save_LDFLAGS
  14531. fi
  14532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14533. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14534. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14535. :
  14536. else
  14537. lt_prog_compiler_static_CXX=
  14538. fi
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14540. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14541. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14542. $as_echo_n "(cached) " >&6
  14543. else
  14544. lt_cv_prog_compiler_c_o_CXX=no
  14545. $RM -r conftest 2>/dev/null
  14546. mkdir conftest
  14547. cd conftest
  14548. mkdir out
  14549. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14550. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14551. # Insert the option either (1) after the last *FLAGS variable, or
  14552. # (2) before a word containing "conftest.", or (3) at the end.
  14553. # Note that $ac_compile itself does not contain backslashes and begins
  14554. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14555. lt_compile=`echo "$ac_compile" | $SED \
  14556. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14557. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14558. -e 's:$: $lt_compiler_flag:'`
  14559. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14560. (eval "$lt_compile" 2>out/conftest.err)
  14561. ac_status=$?
  14562. cat out/conftest.err >&5
  14563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14564. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14565. then
  14566. # The compiler can only warn and ignore the option if not recognized
  14567. # So say no if there are warnings
  14568. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14569. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14570. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14571. lt_cv_prog_compiler_c_o_CXX=yes
  14572. fi
  14573. fi
  14574. chmod u+w . 2>&5
  14575. $RM conftest*
  14576. # SGI C++ compiler will create directory out/ii_files/ for
  14577. # template instantiation
  14578. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14579. $RM out/* && rmdir out
  14580. cd ..
  14581. $RM -r conftest
  14582. $RM conftest*
  14583. fi
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14585. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14587. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14588. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14589. $as_echo_n "(cached) " >&6
  14590. else
  14591. lt_cv_prog_compiler_c_o_CXX=no
  14592. $RM -r conftest 2>/dev/null
  14593. mkdir conftest
  14594. cd conftest
  14595. mkdir out
  14596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14597. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14598. # Insert the option either (1) after the last *FLAGS variable, or
  14599. # (2) before a word containing "conftest.", or (3) at the end.
  14600. # Note that $ac_compile itself does not contain backslashes and begins
  14601. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14602. lt_compile=`echo "$ac_compile" | $SED \
  14603. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14604. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14605. -e 's:$: $lt_compiler_flag:'`
  14606. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14607. (eval "$lt_compile" 2>out/conftest.err)
  14608. ac_status=$?
  14609. cat out/conftest.err >&5
  14610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14611. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14612. then
  14613. # The compiler can only warn and ignore the option if not recognized
  14614. # So say no if there are warnings
  14615. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14616. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14617. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14618. lt_cv_prog_compiler_c_o_CXX=yes
  14619. fi
  14620. fi
  14621. chmod u+w . 2>&5
  14622. $RM conftest*
  14623. # SGI C++ compiler will create directory out/ii_files/ for
  14624. # template instantiation
  14625. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14626. $RM out/* && rmdir out
  14627. cd ..
  14628. $RM -r conftest
  14629. $RM conftest*
  14630. fi
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14632. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14633. hard_links=nottested
  14634. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14635. # do not overwrite the value of need_locks provided by the user
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14637. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14638. hard_links=yes
  14639. $RM conftest*
  14640. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14641. touch conftest.a
  14642. ln conftest.a conftest.b 2>&5 || hard_links=no
  14643. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14645. $as_echo "$hard_links" >&6; }
  14646. if test no = "$hard_links"; then
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14648. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14649. need_locks=warn
  14650. fi
  14651. else
  14652. need_locks=no
  14653. fi
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14655. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14656. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14657. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14658. case $host_os in
  14659. aix[4-9]*)
  14660. # If we're using GNU nm, then we don't want the "-C" option.
  14661. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14662. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14663. # weak defined symbols like other global defined symbols, whereas
  14664. # GNU nm marks them as "W".
  14665. # While the 'weak' keyword is ignored in the Export File, we need
  14666. # it in the Import File for the 'aix-soname' feature, so we have
  14667. # to replace the "-B" option with "-P" for AIX nm.
  14668. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14669. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14670. else
  14671. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14672. fi
  14673. ;;
  14674. pw32*)
  14675. export_symbols_cmds_CXX=$ltdll_cmds
  14676. ;;
  14677. cygwin* | mingw* | cegcc*)
  14678. case $cc_basename in
  14679. cl*)
  14680. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14681. ;;
  14682. *)
  14683. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14684. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14685. ;;
  14686. esac
  14687. ;;
  14688. linux* | k*bsd*-gnu | gnu*)
  14689. link_all_deplibs_CXX=no
  14690. ;;
  14691. *)
  14692. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14693. ;;
  14694. esac
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14696. $as_echo "$ld_shlibs_CXX" >&6; }
  14697. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14698. with_gnu_ld_CXX=$with_gnu_ld
  14699. #
  14700. # Do we need to explicitly link libc?
  14701. #
  14702. case "x$archive_cmds_need_lc_CXX" in
  14703. x|xyes)
  14704. # Assume -lc should be added
  14705. archive_cmds_need_lc_CXX=yes
  14706. if test yes,yes = "$GCC,$enable_shared"; then
  14707. case $archive_cmds_CXX in
  14708. *'~'*)
  14709. # FIXME: we may have to deal with multi-command sequences.
  14710. ;;
  14711. '$CC '*)
  14712. # Test whether the compiler implicitly links with -lc since on some
  14713. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14714. # to ld, don't add -lc before -lgcc.
  14715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14716. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14717. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14718. $as_echo_n "(cached) " >&6
  14719. else
  14720. $RM conftest*
  14721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14723. (eval $ac_compile) 2>&5
  14724. ac_status=$?
  14725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14726. test $ac_status = 0; } 2>conftest.err; then
  14727. soname=conftest
  14728. lib=conftest
  14729. libobjs=conftest.$ac_objext
  14730. deplibs=
  14731. wl=$lt_prog_compiler_wl_CXX
  14732. pic_flag=$lt_prog_compiler_pic_CXX
  14733. compiler_flags=-v
  14734. linker_flags=-v
  14735. verstring=
  14736. output_objdir=.
  14737. libname=conftest
  14738. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14739. allow_undefined_flag_CXX=
  14740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14741. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14742. ac_status=$?
  14743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14744. test $ac_status = 0; }
  14745. then
  14746. lt_cv_archive_cmds_need_lc_CXX=no
  14747. else
  14748. lt_cv_archive_cmds_need_lc_CXX=yes
  14749. fi
  14750. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14751. else
  14752. cat conftest.err 1>&5
  14753. fi
  14754. $RM conftest*
  14755. fi
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14757. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14758. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14759. ;;
  14760. esac
  14761. fi
  14762. ;;
  14763. esac
  14764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14765. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14766. library_names_spec=
  14767. libname_spec='lib$name'
  14768. soname_spec=
  14769. shrext_cmds=.so
  14770. postinstall_cmds=
  14771. postuninstall_cmds=
  14772. finish_cmds=
  14773. finish_eval=
  14774. shlibpath_var=
  14775. shlibpath_overrides_runpath=unknown
  14776. version_type=none
  14777. dynamic_linker="$host_os ld.so"
  14778. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14779. need_lib_prefix=unknown
  14780. hardcode_into_libs=no
  14781. # when you set need_version to no, make sure it does not cause -set_version
  14782. # flags to be left without arguments
  14783. need_version=unknown
  14784. case $host_os in
  14785. aix3*)
  14786. version_type=linux # correct to gnu/linux during the next big refactor
  14787. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14788. shlibpath_var=LIBPATH
  14789. # AIX 3 has no versioning support, so we append a major version to the name.
  14790. soname_spec='$libname$release$shared_ext$major'
  14791. ;;
  14792. aix[4-9]*)
  14793. version_type=linux # correct to gnu/linux during the next big refactor
  14794. need_lib_prefix=no
  14795. need_version=no
  14796. hardcode_into_libs=yes
  14797. if test ia64 = "$host_cpu"; then
  14798. # AIX 5 supports IA64
  14799. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14800. shlibpath_var=LD_LIBRARY_PATH
  14801. else
  14802. # With GCC up to 2.95.x, collect2 would create an import file
  14803. # for dependence libraries. The import file would start with
  14804. # the line '#! .'. This would cause the generated library to
  14805. # depend on '.', always an invalid library. This was fixed in
  14806. # development snapshots of GCC prior to 3.0.
  14807. case $host_os in
  14808. aix4 | aix4.[01] | aix4.[01].*)
  14809. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14810. echo ' yes '
  14811. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14812. :
  14813. else
  14814. can_build_shared=no
  14815. fi
  14816. ;;
  14817. esac
  14818. # Using Import Files as archive members, it is possible to support
  14819. # filename-based versioning of shared library archives on AIX. While
  14820. # this would work for both with and without runtime linking, it will
  14821. # prevent static linking of such archives. So we do filename-based
  14822. # shared library versioning with .so extension only, which is used
  14823. # when both runtime linking and shared linking is enabled.
  14824. # Unfortunately, runtime linking may impact performance, so we do
  14825. # not want this to be the default eventually. Also, we use the
  14826. # versioned .so libs for executables only if there is the -brtl
  14827. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14828. # To allow for filename-based versioning support, we need to create
  14829. # libNAME.so.V as an archive file, containing:
  14830. # *) an Import File, referring to the versioned filename of the
  14831. # archive as well as the shared archive member, telling the
  14832. # bitwidth (32 or 64) of that shared object, and providing the
  14833. # list of exported symbols of that shared object, eventually
  14834. # decorated with the 'weak' keyword
  14835. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14836. # it being seen by the linker.
  14837. # At run time we better use the real file rather than another symlink,
  14838. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14839. case $with_aix_soname,$aix_use_runtimelinking in
  14840. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14841. # soname into executable. Probably we can add versioning support to
  14842. # collect2, so additional links can be useful in future.
  14843. aix,yes) # traditional libtool
  14844. dynamic_linker='AIX unversionable lib.so'
  14845. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14846. # instead of lib<name>.a to let people know that these are not
  14847. # typical AIX shared libraries.
  14848. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14849. ;;
  14850. aix,no) # traditional AIX only
  14851. dynamic_linker='AIX lib.a(lib.so.V)'
  14852. # We preserve .a as extension for shared libraries through AIX4.2
  14853. # and later when we are not doing run time linking.
  14854. library_names_spec='$libname$release.a $libname.a'
  14855. soname_spec='$libname$release$shared_ext$major'
  14856. ;;
  14857. svr4,*) # full svr4 only
  14858. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14859. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14860. # We do not specify a path in Import Files, so LIBPATH fires.
  14861. shlibpath_overrides_runpath=yes
  14862. ;;
  14863. *,yes) # both, prefer svr4
  14864. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14865. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14866. # unpreferred sharedlib libNAME.a needs extra handling
  14867. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14868. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14869. # We do not specify a path in Import Files, so LIBPATH fires.
  14870. shlibpath_overrides_runpath=yes
  14871. ;;
  14872. *,no) # both, prefer aix
  14873. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14874. library_names_spec='$libname$release.a $libname.a'
  14875. soname_spec='$libname$release$shared_ext$major'
  14876. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14877. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14878. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14879. ;;
  14880. esac
  14881. shlibpath_var=LIBPATH
  14882. fi
  14883. ;;
  14884. amigaos*)
  14885. case $host_cpu in
  14886. powerpc)
  14887. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14888. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14890. ;;
  14891. m68k)
  14892. library_names_spec='$libname.ixlibrary $libname.a'
  14893. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14894. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14895. ;;
  14896. esac
  14897. ;;
  14898. beos*)
  14899. library_names_spec='$libname$shared_ext'
  14900. dynamic_linker="$host_os ld.so"
  14901. shlibpath_var=LIBRARY_PATH
  14902. ;;
  14903. bsdi[45]*)
  14904. version_type=linux # correct to gnu/linux during the next big refactor
  14905. need_version=no
  14906. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14907. soname_spec='$libname$release$shared_ext$major'
  14908. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14909. shlibpath_var=LD_LIBRARY_PATH
  14910. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14911. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14912. # the default ld.so.conf also contains /usr/contrib/lib and
  14913. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14914. # libtool to hard-code these into programs
  14915. ;;
  14916. cygwin* | mingw* | pw32* | cegcc*)
  14917. version_type=windows
  14918. shrext_cmds=.dll
  14919. need_version=no
  14920. need_lib_prefix=no
  14921. case $GCC,$cc_basename in
  14922. yes,*)
  14923. # gcc
  14924. library_names_spec='$libname.dll.a'
  14925. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14926. postinstall_cmds='base_file=`basename \$file`~
  14927. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14928. dldir=$destdir/`dirname \$dlpath`~
  14929. test -d \$dldir || mkdir -p \$dldir~
  14930. $install_prog $dir/$dlname \$dldir/$dlname~
  14931. chmod a+x \$dldir/$dlname~
  14932. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14933. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14934. fi'
  14935. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14936. dlpath=$dir/\$dldll~
  14937. $RM \$dlpath'
  14938. shlibpath_overrides_runpath=yes
  14939. case $host_os in
  14940. cygwin*)
  14941. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14942. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14943. ;;
  14944. mingw* | cegcc*)
  14945. # MinGW DLLs use traditional 'lib' prefix
  14946. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14947. ;;
  14948. pw32*)
  14949. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14950. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14951. ;;
  14952. esac
  14953. dynamic_linker='Win32 ld.exe'
  14954. ;;
  14955. *,cl*)
  14956. # Native MSVC
  14957. libname_spec='$name'
  14958. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14959. library_names_spec='$libname.dll.lib'
  14960. case $build_os in
  14961. mingw*)
  14962. sys_lib_search_path_spec=
  14963. lt_save_ifs=$IFS
  14964. IFS=';'
  14965. for lt_path in $LIB
  14966. do
  14967. IFS=$lt_save_ifs
  14968. # Let DOS variable expansion print the short 8.3 style file name.
  14969. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14970. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14971. done
  14972. IFS=$lt_save_ifs
  14973. # Convert to MSYS style.
  14974. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14975. ;;
  14976. cygwin*)
  14977. # Convert to unix form, then to dos form, then back to unix form
  14978. # but this time dos style (no spaces!) so that the unix form looks
  14979. # like /cygdrive/c/PROGRA~1:/cygdr...
  14980. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14981. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14982. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14983. ;;
  14984. *)
  14985. sys_lib_search_path_spec=$LIB
  14986. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14987. # It is most probably a Windows format PATH.
  14988. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14989. else
  14990. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14991. fi
  14992. # FIXME: find the short name or the path components, as spaces are
  14993. # common. (e.g. "Program Files" -> "PROGRA~1")
  14994. ;;
  14995. esac
  14996. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14997. postinstall_cmds='base_file=`basename \$file`~
  14998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14999. dldir=$destdir/`dirname \$dlpath`~
  15000. test -d \$dldir || mkdir -p \$dldir~
  15001. $install_prog $dir/$dlname \$dldir/$dlname'
  15002. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15003. dlpath=$dir/\$dldll~
  15004. $RM \$dlpath'
  15005. shlibpath_overrides_runpath=yes
  15006. dynamic_linker='Win32 link.exe'
  15007. ;;
  15008. *)
  15009. # Assume MSVC wrapper
  15010. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15011. dynamic_linker='Win32 ld.exe'
  15012. ;;
  15013. esac
  15014. # FIXME: first we should search . and the directory the executable is in
  15015. shlibpath_var=PATH
  15016. ;;
  15017. darwin* | rhapsody*)
  15018. dynamic_linker="$host_os dyld"
  15019. version_type=darwin
  15020. need_lib_prefix=no
  15021. need_version=no
  15022. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  15023. soname_spec='$libname$release$major$shared_ext'
  15024. shlibpath_overrides_runpath=yes
  15025. shlibpath_var=DYLD_LIBRARY_PATH
  15026. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15027. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15028. ;;
  15029. dgux*)
  15030. version_type=linux # correct to gnu/linux during the next big refactor
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15034. soname_spec='$libname$release$shared_ext$major'
  15035. shlibpath_var=LD_LIBRARY_PATH
  15036. ;;
  15037. freebsd* | dragonfly*)
  15038. # DragonFly does not have aout. When/if they implement a new
  15039. # versioning mechanism, adjust this.
  15040. if test -x /usr/bin/objformat; then
  15041. objformat=`/usr/bin/objformat`
  15042. else
  15043. case $host_os in
  15044. freebsd[23].*) objformat=aout ;;
  15045. *) objformat=elf ;;
  15046. esac
  15047. fi
  15048. version_type=freebsd-$objformat
  15049. case $version_type in
  15050. freebsd-elf*)
  15051. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15052. soname_spec='$libname$release$shared_ext$major'
  15053. need_version=no
  15054. need_lib_prefix=no
  15055. ;;
  15056. freebsd-*)
  15057. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15058. need_version=yes
  15059. ;;
  15060. esac
  15061. shlibpath_var=LD_LIBRARY_PATH
  15062. case $host_os in
  15063. freebsd2.*)
  15064. shlibpath_overrides_runpath=yes
  15065. ;;
  15066. freebsd3.[01]* | freebsdelf3.[01]*)
  15067. shlibpath_overrides_runpath=yes
  15068. hardcode_into_libs=yes
  15069. ;;
  15070. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15071. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15072. shlibpath_overrides_runpath=no
  15073. hardcode_into_libs=yes
  15074. ;;
  15075. *) # from 4.6 on, and DragonFly
  15076. shlibpath_overrides_runpath=yes
  15077. hardcode_into_libs=yes
  15078. ;;
  15079. esac
  15080. ;;
  15081. haiku*)
  15082. version_type=linux # correct to gnu/linux during the next big refactor
  15083. need_lib_prefix=no
  15084. need_version=no
  15085. dynamic_linker="$host_os runtime_loader"
  15086. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15087. soname_spec='$libname$release$shared_ext$major'
  15088. shlibpath_var=LIBRARY_PATH
  15089. shlibpath_overrides_runpath=no
  15090. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15091. hardcode_into_libs=yes
  15092. ;;
  15093. hpux9* | hpux10* | hpux11*)
  15094. # Give a soname corresponding to the major version so that dld.sl refuses to
  15095. # link against other versions.
  15096. version_type=sunos
  15097. need_lib_prefix=no
  15098. need_version=no
  15099. case $host_cpu in
  15100. ia64*)
  15101. shrext_cmds='.so'
  15102. hardcode_into_libs=yes
  15103. dynamic_linker="$host_os dld.so"
  15104. shlibpath_var=LD_LIBRARY_PATH
  15105. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15107. soname_spec='$libname$release$shared_ext$major'
  15108. if test 32 = "$HPUX_IA64_MODE"; then
  15109. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15110. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15111. else
  15112. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15113. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15114. fi
  15115. ;;
  15116. hppa*64*)
  15117. shrext_cmds='.sl'
  15118. hardcode_into_libs=yes
  15119. dynamic_linker="$host_os dld.sl"
  15120. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15121. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15122. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15123. soname_spec='$libname$release$shared_ext$major'
  15124. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15125. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15126. ;;
  15127. *)
  15128. shrext_cmds='.sl'
  15129. dynamic_linker="$host_os dld.sl"
  15130. shlibpath_var=SHLIB_PATH
  15131. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15133. soname_spec='$libname$release$shared_ext$major'
  15134. ;;
  15135. esac
  15136. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15137. postinstall_cmds='chmod 555 $lib'
  15138. # or fails outright, so override atomically:
  15139. install_override_mode=555
  15140. ;;
  15141. interix[3-9]*)
  15142. version_type=linux # correct to gnu/linux during the next big refactor
  15143. need_lib_prefix=no
  15144. need_version=no
  15145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15146. soname_spec='$libname$release$shared_ext$major'
  15147. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15148. shlibpath_var=LD_LIBRARY_PATH
  15149. shlibpath_overrides_runpath=no
  15150. hardcode_into_libs=yes
  15151. ;;
  15152. irix5* | irix6* | nonstopux*)
  15153. case $host_os in
  15154. nonstopux*) version_type=nonstopux ;;
  15155. *)
  15156. if test yes = "$lt_cv_prog_gnu_ld"; then
  15157. version_type=linux # correct to gnu/linux during the next big refactor
  15158. else
  15159. version_type=irix
  15160. fi ;;
  15161. esac
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. soname_spec='$libname$release$shared_ext$major'
  15165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15166. case $host_os in
  15167. irix5* | nonstopux*)
  15168. libsuff= shlibsuff=
  15169. ;;
  15170. *)
  15171. case $LD in # libtool.m4 will add one of these switches to LD
  15172. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15173. libsuff= shlibsuff= libmagic=32-bit;;
  15174. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15175. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15176. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15177. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15178. *) libsuff= shlibsuff= libmagic=never-match;;
  15179. esac
  15180. ;;
  15181. esac
  15182. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15183. shlibpath_overrides_runpath=no
  15184. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15185. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15186. hardcode_into_libs=yes
  15187. ;;
  15188. # No shared lib support for Linux oldld, aout, or coff.
  15189. linux*oldld* | linux*aout* | linux*coff*)
  15190. dynamic_linker=no
  15191. ;;
  15192. linux*android*)
  15193. version_type=none # Android doesn't support versioned libraries.
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. library_names_spec='$libname$release$shared_ext'
  15197. soname_spec='$libname$release$shared_ext'
  15198. finish_cmds=
  15199. shlibpath_var=LD_LIBRARY_PATH
  15200. shlibpath_overrides_runpath=yes
  15201. # This implies no fast_install, which is unacceptable.
  15202. # Some rework will be needed to allow for fast_install
  15203. # before this can be enabled.
  15204. hardcode_into_libs=yes
  15205. dynamic_linker='Android linker'
  15206. # Don't embed -rpath directories since the linker doesn't support them.
  15207. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15208. ;;
  15209. # This must be glibc/ELF.
  15210. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15211. version_type=linux # correct to gnu/linux during the next big refactor
  15212. need_lib_prefix=no
  15213. need_version=no
  15214. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15215. soname_spec='$libname$release$shared_ext$major'
  15216. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15217. shlibpath_var=LD_LIBRARY_PATH
  15218. shlibpath_overrides_runpath=no
  15219. # Some binutils ld are patched to set DT_RUNPATH
  15220. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15221. $as_echo_n "(cached) " >&6
  15222. else
  15223. lt_cv_shlibpath_overrides_runpath=no
  15224. save_LDFLAGS=$LDFLAGS
  15225. save_libdir=$libdir
  15226. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15227. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15229. /* end confdefs.h. */
  15230. int
  15231. main ()
  15232. {
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_cxx_try_link "$LINENO"; then :
  15238. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15239. lt_cv_shlibpath_overrides_runpath=yes
  15240. fi
  15241. fi
  15242. rm -f core conftest.err conftest.$ac_objext \
  15243. conftest$ac_exeext conftest.$ac_ext
  15244. LDFLAGS=$save_LDFLAGS
  15245. libdir=$save_libdir
  15246. fi
  15247. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15248. # This implies no fast_install, which is unacceptable.
  15249. # Some rework will be needed to allow for fast_install
  15250. # before this can be enabled.
  15251. hardcode_into_libs=yes
  15252. # Ideally, we could use ldconfig to report *all* directores which are
  15253. # searched for libraries, however this is still not possible. Aside from not
  15254. # being certain /sbin/ldconfig is available, command
  15255. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15256. # even though it is searched at run-time. Try to do the best guess by
  15257. # appending ld.so.conf contents (and includes) to the search path.
  15258. if test -f /etc/ld.so.conf; then
  15259. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  15260. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15261. fi
  15262. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15263. # powerpc, because MkLinux only supported shared libraries with the
  15264. # GNU dynamic linker. Since this was broken with cross compilers,
  15265. # most powerpc-linux boxes support dynamic linking these days and
  15266. # people can always --disable-shared, the test was removed, and we
  15267. # assume the GNU/Linux dynamic linker is in use.
  15268. dynamic_linker='GNU/Linux ld.so'
  15269. ;;
  15270. netbsdelf*-gnu)
  15271. version_type=linux
  15272. need_lib_prefix=no
  15273. need_version=no
  15274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15275. soname_spec='${libname}${release}${shared_ext}$major'
  15276. shlibpath_var=LD_LIBRARY_PATH
  15277. shlibpath_overrides_runpath=no
  15278. hardcode_into_libs=yes
  15279. dynamic_linker='NetBSD ld.elf_so'
  15280. ;;
  15281. netbsd*)
  15282. version_type=sunos
  15283. need_lib_prefix=no
  15284. need_version=no
  15285. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15286. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15287. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15288. dynamic_linker='NetBSD (a.out) ld.so'
  15289. else
  15290. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15291. soname_spec='$libname$release$shared_ext$major'
  15292. dynamic_linker='NetBSD ld.elf_so'
  15293. fi
  15294. shlibpath_var=LD_LIBRARY_PATH
  15295. shlibpath_overrides_runpath=yes
  15296. hardcode_into_libs=yes
  15297. ;;
  15298. newsos6)
  15299. version_type=linux # correct to gnu/linux during the next big refactor
  15300. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15301. shlibpath_var=LD_LIBRARY_PATH
  15302. shlibpath_overrides_runpath=yes
  15303. ;;
  15304. *nto* | *qnx*)
  15305. version_type=qnx
  15306. need_lib_prefix=no
  15307. need_version=no
  15308. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15309. soname_spec='$libname$release$shared_ext$major'
  15310. shlibpath_var=LD_LIBRARY_PATH
  15311. shlibpath_overrides_runpath=no
  15312. hardcode_into_libs=yes
  15313. dynamic_linker='ldqnx.so'
  15314. ;;
  15315. openbsd* | bitrig*)
  15316. version_type=sunos
  15317. sys_lib_dlsearch_path_spec=/usr/lib
  15318. need_lib_prefix=no
  15319. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15320. need_version=no
  15321. else
  15322. need_version=yes
  15323. fi
  15324. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15325. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15326. shlibpath_var=LD_LIBRARY_PATH
  15327. shlibpath_overrides_runpath=yes
  15328. ;;
  15329. os2*)
  15330. libname_spec='$name'
  15331. version_type=windows
  15332. shrext_cmds=.dll
  15333. need_version=no
  15334. need_lib_prefix=no
  15335. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15336. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15337. v=$($ECHO $release$versuffix | tr -d .-);
  15338. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15339. $ECHO $n$v`$shared_ext'
  15340. library_names_spec='${libname}_dll.$libext'
  15341. dynamic_linker='OS/2 ld.exe'
  15342. shlibpath_var=BEGINLIBPATH
  15343. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15344. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15345. postinstall_cmds='base_file=`basename \$file`~
  15346. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15347. dldir=$destdir/`dirname \$dlpath`~
  15348. test -d \$dldir || mkdir -p \$dldir~
  15349. $install_prog $dir/$dlname \$dldir/$dlname~
  15350. chmod a+x \$dldir/$dlname~
  15351. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15352. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15353. fi'
  15354. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15355. dlpath=$dir/\$dldll~
  15356. $RM \$dlpath'
  15357. ;;
  15358. osf3* | osf4* | osf5*)
  15359. version_type=osf
  15360. need_lib_prefix=no
  15361. need_version=no
  15362. soname_spec='$libname$release$shared_ext$major'
  15363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15364. shlibpath_var=LD_LIBRARY_PATH
  15365. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15366. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15367. ;;
  15368. rdos*)
  15369. dynamic_linker=no
  15370. ;;
  15371. solaris*)
  15372. version_type=linux # correct to gnu/linux during the next big refactor
  15373. need_lib_prefix=no
  15374. need_version=no
  15375. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15376. soname_spec='$libname$release$shared_ext$major'
  15377. shlibpath_var=LD_LIBRARY_PATH
  15378. shlibpath_overrides_runpath=yes
  15379. hardcode_into_libs=yes
  15380. # ldd complains unless libraries are executable
  15381. postinstall_cmds='chmod +x $lib'
  15382. ;;
  15383. sunos4*)
  15384. version_type=sunos
  15385. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15386. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15387. shlibpath_var=LD_LIBRARY_PATH
  15388. shlibpath_overrides_runpath=yes
  15389. if test yes = "$with_gnu_ld"; then
  15390. need_lib_prefix=no
  15391. fi
  15392. need_version=yes
  15393. ;;
  15394. sysv4 | sysv4.3*)
  15395. version_type=linux # correct to gnu/linux during the next big refactor
  15396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15397. soname_spec='$libname$release$shared_ext$major'
  15398. shlibpath_var=LD_LIBRARY_PATH
  15399. case $host_vendor in
  15400. sni)
  15401. shlibpath_overrides_runpath=no
  15402. need_lib_prefix=no
  15403. runpath_var=LD_RUN_PATH
  15404. ;;
  15405. siemens)
  15406. need_lib_prefix=no
  15407. ;;
  15408. motorola)
  15409. need_lib_prefix=no
  15410. need_version=no
  15411. shlibpath_overrides_runpath=no
  15412. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15413. ;;
  15414. esac
  15415. ;;
  15416. sysv4*MP*)
  15417. if test -d /usr/nec; then
  15418. version_type=linux # correct to gnu/linux during the next big refactor
  15419. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15420. soname_spec='$libname$shared_ext.$major'
  15421. shlibpath_var=LD_LIBRARY_PATH
  15422. fi
  15423. ;;
  15424. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15425. version_type=sco
  15426. need_lib_prefix=no
  15427. need_version=no
  15428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15429. soname_spec='$libname$release$shared_ext$major'
  15430. shlibpath_var=LD_LIBRARY_PATH
  15431. shlibpath_overrides_runpath=yes
  15432. hardcode_into_libs=yes
  15433. if test yes = "$with_gnu_ld"; then
  15434. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15435. else
  15436. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15437. case $host_os in
  15438. sco3.2v5*)
  15439. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15440. ;;
  15441. esac
  15442. fi
  15443. sys_lib_dlsearch_path_spec='/usr/lib'
  15444. ;;
  15445. tpf*)
  15446. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15447. version_type=linux # correct to gnu/linux during the next big refactor
  15448. need_lib_prefix=no
  15449. need_version=no
  15450. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15451. shlibpath_var=LD_LIBRARY_PATH
  15452. shlibpath_overrides_runpath=no
  15453. hardcode_into_libs=yes
  15454. ;;
  15455. uts4*)
  15456. version_type=linux # correct to gnu/linux during the next big refactor
  15457. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15458. soname_spec='$libname$release$shared_ext$major'
  15459. shlibpath_var=LD_LIBRARY_PATH
  15460. ;;
  15461. *)
  15462. dynamic_linker=no
  15463. ;;
  15464. esac
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15466. $as_echo "$dynamic_linker" >&6; }
  15467. test no = "$dynamic_linker" && can_build_shared=no
  15468. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15469. if test yes = "$GCC"; then
  15470. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15471. fi
  15472. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15473. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15474. fi
  15475. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15476. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15477. fi
  15478. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15479. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15480. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15481. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15482. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15483. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15485. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15486. hardcode_action_CXX=
  15487. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15488. test -n "$runpath_var_CXX" ||
  15489. test yes = "$hardcode_automatic_CXX"; then
  15490. # We can hardcode non-existent directories.
  15491. if test no != "$hardcode_direct_CXX" &&
  15492. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15493. # have to relink, otherwise we might link with an installed library
  15494. # when we should be linking with a yet-to-be-installed one
  15495. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15496. test no != "$hardcode_minus_L_CXX"; then
  15497. # Linking always hardcodes the temporary library directory.
  15498. hardcode_action_CXX=relink
  15499. else
  15500. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15501. hardcode_action_CXX=immediate
  15502. fi
  15503. else
  15504. # We cannot hardcode anything, or else we can only hardcode existing
  15505. # directories.
  15506. hardcode_action_CXX=unsupported
  15507. fi
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15509. $as_echo "$hardcode_action_CXX" >&6; }
  15510. if test relink = "$hardcode_action_CXX" ||
  15511. test yes = "$inherit_rpath_CXX"; then
  15512. # Fast installation is not supported
  15513. enable_fast_install=no
  15514. elif test yes = "$shlibpath_overrides_runpath" ||
  15515. test no = "$enable_shared"; then
  15516. # Fast installation is not necessary
  15517. enable_fast_install=needless
  15518. fi
  15519. fi # test -n "$compiler"
  15520. CC=$lt_save_CC
  15521. CFLAGS=$lt_save_CFLAGS
  15522. LDCXX=$LD
  15523. LD=$lt_save_LD
  15524. GCC=$lt_save_GCC
  15525. with_gnu_ld=$lt_save_with_gnu_ld
  15526. lt_cv_path_LDCXX=$lt_cv_path_LD
  15527. lt_cv_path_LD=$lt_save_path_LD
  15528. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15529. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15530. fi # test yes != "$_lt_caught_CXX_error"
  15531. ac_ext=c
  15532. ac_cpp='$CPP $CPPFLAGS'
  15533. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15534. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15535. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15536. ac_ext=c
  15537. ac_cpp='$CPP $CPPFLAGS'
  15538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15542. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15543. # On Suns, sometimes $CPP names a directory.
  15544. if test -n "$CPP" && test -d "$CPP"; then
  15545. CPP=
  15546. fi
  15547. if test -z "$CPP"; then
  15548. if ${ac_cv_prog_CPP+:} false; then :
  15549. $as_echo_n "(cached) " >&6
  15550. else
  15551. # Double quotes because CPP needs to be expanded
  15552. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15553. do
  15554. ac_preproc_ok=false
  15555. for ac_c_preproc_warn_flag in '' yes
  15556. do
  15557. # Use a header file that comes with gcc, so configuring glibc
  15558. # with a fresh cross-compiler works.
  15559. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15560. # <limits.h> exists even on freestanding compilers.
  15561. # On the NeXT, cc -E runs the code through the compiler's parser,
  15562. # not just through cpp. "Syntax error" is here to catch this case.
  15563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15564. /* end confdefs.h. */
  15565. #ifdef __STDC__
  15566. # include <limits.h>
  15567. #else
  15568. # include <assert.h>
  15569. #endif
  15570. Syntax error
  15571. _ACEOF
  15572. if ac_fn_c_try_cpp "$LINENO"; then :
  15573. else
  15574. # Broken: fails on valid input.
  15575. continue
  15576. fi
  15577. rm -f conftest.err conftest.i conftest.$ac_ext
  15578. # OK, works on sane cases. Now check whether nonexistent headers
  15579. # can be detected and how.
  15580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15581. /* end confdefs.h. */
  15582. #include <ac_nonexistent.h>
  15583. _ACEOF
  15584. if ac_fn_c_try_cpp "$LINENO"; then :
  15585. # Broken: success on invalid input.
  15586. continue
  15587. else
  15588. # Passes both tests.
  15589. ac_preproc_ok=:
  15590. break
  15591. fi
  15592. rm -f conftest.err conftest.i conftest.$ac_ext
  15593. done
  15594. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15595. rm -f conftest.i conftest.err conftest.$ac_ext
  15596. if $ac_preproc_ok; then :
  15597. break
  15598. fi
  15599. done
  15600. ac_cv_prog_CPP=$CPP
  15601. fi
  15602. CPP=$ac_cv_prog_CPP
  15603. else
  15604. ac_cv_prog_CPP=$CPP
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15607. $as_echo "$CPP" >&6; }
  15608. ac_preproc_ok=false
  15609. for ac_c_preproc_warn_flag in '' yes
  15610. do
  15611. # Use a header file that comes with gcc, so configuring glibc
  15612. # with a fresh cross-compiler works.
  15613. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15614. # <limits.h> exists even on freestanding compilers.
  15615. # On the NeXT, cc -E runs the code through the compiler's parser,
  15616. # not just through cpp. "Syntax error" is here to catch this case.
  15617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15618. /* end confdefs.h. */
  15619. #ifdef __STDC__
  15620. # include <limits.h>
  15621. #else
  15622. # include <assert.h>
  15623. #endif
  15624. Syntax error
  15625. _ACEOF
  15626. if ac_fn_c_try_cpp "$LINENO"; then :
  15627. else
  15628. # Broken: fails on valid input.
  15629. continue
  15630. fi
  15631. rm -f conftest.err conftest.i conftest.$ac_ext
  15632. # OK, works on sane cases. Now check whether nonexistent headers
  15633. # can be detected and how.
  15634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15635. /* end confdefs.h. */
  15636. #include <ac_nonexistent.h>
  15637. _ACEOF
  15638. if ac_fn_c_try_cpp "$LINENO"; then :
  15639. # Broken: success on invalid input.
  15640. continue
  15641. else
  15642. # Passes both tests.
  15643. ac_preproc_ok=:
  15644. break
  15645. fi
  15646. rm -f conftest.err conftest.i conftest.$ac_ext
  15647. done
  15648. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15649. rm -f conftest.i conftest.err conftest.$ac_ext
  15650. if $ac_preproc_ok; then :
  15651. else
  15652. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15653. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15654. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15655. See \`config.log' for more details" "$LINENO" 5; }
  15656. fi
  15657. ac_ext=c
  15658. ac_cpp='$CPP $CPPFLAGS'
  15659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15663. $as_echo_n "checking whether ln -s works... " >&6; }
  15664. LN_S=$as_ln_s
  15665. if test "$LN_S" = "ln -s"; then
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15667. $as_echo "yes" >&6; }
  15668. else
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15670. $as_echo "no, using $LN_S" >&6; }
  15671. fi
  15672. for ac_prog in gawk mawk nawk awk
  15673. do
  15674. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15675. set dummy $ac_prog; ac_word=$2
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15677. $as_echo_n "checking for $ac_word... " >&6; }
  15678. if ${ac_cv_prog_AWK+:} false; then :
  15679. $as_echo_n "(cached) " >&6
  15680. else
  15681. if test -n "$AWK"; then
  15682. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15683. else
  15684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15685. for as_dir in $PATH
  15686. do
  15687. IFS=$as_save_IFS
  15688. test -z "$as_dir" && as_dir=.
  15689. for ac_exec_ext in '' $ac_executable_extensions; do
  15690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15691. ac_cv_prog_AWK="$ac_prog"
  15692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15693. break 2
  15694. fi
  15695. done
  15696. done
  15697. IFS=$as_save_IFS
  15698. fi
  15699. fi
  15700. AWK=$ac_cv_prog_AWK
  15701. if test -n "$AWK"; then
  15702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15703. $as_echo "$AWK" >&6; }
  15704. else
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15706. $as_echo "no" >&6; }
  15707. fi
  15708. test -n "$AWK" && break
  15709. done
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15711. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15712. if ${ac_cv_path_SED+:} false; then :
  15713. $as_echo_n "(cached) " >&6
  15714. else
  15715. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15716. for ac_i in 1 2 3 4 5 6 7; do
  15717. ac_script="$ac_script$as_nl$ac_script"
  15718. done
  15719. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15720. { ac_script=; unset ac_script;}
  15721. if test -z "$SED"; then
  15722. ac_path_SED_found=false
  15723. # Loop through the user's path and test for each of PROGNAME-LIST
  15724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15725. for as_dir in $PATH
  15726. do
  15727. IFS=$as_save_IFS
  15728. test -z "$as_dir" && as_dir=.
  15729. for ac_prog in sed gsed; do
  15730. for ac_exec_ext in '' $ac_executable_extensions; do
  15731. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15732. as_fn_executable_p "$ac_path_SED" || continue
  15733. # Check for GNU ac_path_SED and select it if it is found.
  15734. # Check for GNU $ac_path_SED
  15735. case `"$ac_path_SED" --version 2>&1` in
  15736. *GNU*)
  15737. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15738. *)
  15739. ac_count=0
  15740. $as_echo_n 0123456789 >"conftest.in"
  15741. while :
  15742. do
  15743. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15744. mv "conftest.tmp" "conftest.in"
  15745. cp "conftest.in" "conftest.nl"
  15746. $as_echo '' >> "conftest.nl"
  15747. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15748. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15749. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15750. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15751. # Best one so far, save it but keep looking for a better one
  15752. ac_cv_path_SED="$ac_path_SED"
  15753. ac_path_SED_max=$ac_count
  15754. fi
  15755. # 10*(2^10) chars as input seems more than enough
  15756. test $ac_count -gt 10 && break
  15757. done
  15758. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15759. esac
  15760. $ac_path_SED_found && break 3
  15761. done
  15762. done
  15763. done
  15764. IFS=$as_save_IFS
  15765. if test -z "$ac_cv_path_SED"; then
  15766. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15767. fi
  15768. else
  15769. ac_cv_path_SED=$SED
  15770. fi
  15771. fi
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15773. $as_echo "$ac_cv_path_SED" >&6; }
  15774. SED="$ac_cv_path_SED"
  15775. rm -f conftest.sed
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15777. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15778. set x ${MAKE-make}
  15779. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15780. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15781. $as_echo_n "(cached) " >&6
  15782. else
  15783. cat >conftest.make <<\_ACEOF
  15784. SHELL = /bin/sh
  15785. all:
  15786. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15787. _ACEOF
  15788. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15789. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15790. *@@@%%%=?*=@@@%%%*)
  15791. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15792. *)
  15793. eval ac_cv_prog_make_${ac_make}_set=no;;
  15794. esac
  15795. rm -f conftest.make
  15796. fi
  15797. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15799. $as_echo "yes" >&6; }
  15800. SET_MAKE=
  15801. else
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15803. $as_echo "no" >&6; }
  15804. SET_MAKE="MAKE=${MAKE-make}"
  15805. fi
  15806. # Extract the first word of "printf", so it can be a program name with args.
  15807. set dummy printf; ac_word=$2
  15808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15809. $as_echo_n "checking for $ac_word... " >&6; }
  15810. if ${ac_cv_path_PRINTF+:} false; then :
  15811. $as_echo_n "(cached) " >&6
  15812. else
  15813. case $PRINTF in
  15814. [\\/]* | ?:[\\/]*)
  15815. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15816. ;;
  15817. *)
  15818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15819. for as_dir in $PATH
  15820. do
  15821. IFS=$as_save_IFS
  15822. test -z "$as_dir" && as_dir=.
  15823. for ac_exec_ext in '' $ac_executable_extensions; do
  15824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15825. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15827. break 2
  15828. fi
  15829. done
  15830. done
  15831. IFS=$as_save_IFS
  15832. ;;
  15833. esac
  15834. fi
  15835. PRINTF=$ac_cv_path_PRINTF
  15836. if test -n "$PRINTF"; then
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15838. $as_echo "$PRINTF" >&6; }
  15839. else
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15841. $as_echo "no" >&6; }
  15842. fi
  15843. # Extract the first word of "echo", so it can be a program name with args.
  15844. set dummy echo; ac_word=$2
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15846. $as_echo_n "checking for $ac_word... " >&6; }
  15847. if ${ac_cv_path_ECHO+:} false; then :
  15848. $as_echo_n "(cached) " >&6
  15849. else
  15850. case $ECHO in
  15851. [\\/]* | ?:[\\/]*)
  15852. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15853. ;;
  15854. *)
  15855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15856. for as_dir in $PATH
  15857. do
  15858. IFS=$as_save_IFS
  15859. test -z "$as_dir" && as_dir=.
  15860. for ac_exec_ext in '' $ac_executable_extensions; do
  15861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15862. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15864. break 2
  15865. fi
  15866. done
  15867. done
  15868. IFS=$as_save_IFS
  15869. ;;
  15870. esac
  15871. fi
  15872. ECHO=$ac_cv_path_ECHO
  15873. if test -n "$ECHO"; then
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15875. $as_echo "$ECHO" >&6; }
  15876. else
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15878. $as_echo "no" >&6; }
  15879. fi
  15880. # Extract the first word of "cut", so it can be a program name with args.
  15881. set dummy cut; ac_word=$2
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15883. $as_echo_n "checking for $ac_word... " >&6; }
  15884. if ${ac_cv_path_CUT+:} false; then :
  15885. $as_echo_n "(cached) " >&6
  15886. else
  15887. case $CUT in
  15888. [\\/]* | ?:[\\/]*)
  15889. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15890. ;;
  15891. *)
  15892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15893. for as_dir in $PATH
  15894. do
  15895. IFS=$as_save_IFS
  15896. test -z "$as_dir" && as_dir=.
  15897. for ac_exec_ext in '' $ac_executable_extensions; do
  15898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15899. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15901. break 2
  15902. fi
  15903. done
  15904. done
  15905. IFS=$as_save_IFS
  15906. ;;
  15907. esac
  15908. fi
  15909. CUT=$ac_cv_path_CUT
  15910. if test -n "$CUT"; then
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15912. $as_echo "$CUT" >&6; }
  15913. else
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15915. $as_echo "no" >&6; }
  15916. fi
  15917. # Extract the first word of "autogen", so it can be a program name with args.
  15918. set dummy autogen; ac_word=$2
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15920. $as_echo_n "checking for $ac_word... " >&6; }
  15921. if ${ac_cv_path_AUTOGEN+:} false; then :
  15922. $as_echo_n "(cached) " >&6
  15923. else
  15924. case $AUTOGEN in
  15925. [\\/]* | ?:[\\/]*)
  15926. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15927. ;;
  15928. *)
  15929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15930. for as_dir in $PATH
  15931. do
  15932. IFS=$as_save_IFS
  15933. test -z "$as_dir" && as_dir=.
  15934. for ac_exec_ext in '' $ac_executable_extensions; do
  15935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15936. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15938. break 2
  15939. fi
  15940. done
  15941. done
  15942. IFS=$as_save_IFS
  15943. ;;
  15944. esac
  15945. fi
  15946. AUTOGEN=$ac_cv_path_AUTOGEN
  15947. if test -n "$AUTOGEN"; then
  15948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15949. $as_echo "$AUTOGEN" >&6; }
  15950. else
  15951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15952. $as_echo "no" >&6; }
  15953. fi
  15954. # Extract the first word of "groff", so it can be a program name with args.
  15955. set dummy groff; ac_word=$2
  15956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15957. $as_echo_n "checking for $ac_word... " >&6; }
  15958. if ${ac_cv_path_GROFF+:} false; then :
  15959. $as_echo_n "(cached) " >&6
  15960. else
  15961. case $GROFF in
  15962. [\\/]* | ?:[\\/]*)
  15963. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15964. ;;
  15965. *)
  15966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15967. for as_dir in $PATH
  15968. do
  15969. IFS=$as_save_IFS
  15970. test -z "$as_dir" && as_dir=.
  15971. for ac_exec_ext in '' $ac_executable_extensions; do
  15972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15973. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15975. break 2
  15976. fi
  15977. done
  15978. done
  15979. IFS=$as_save_IFS
  15980. ;;
  15981. esac
  15982. fi
  15983. GROFF=$ac_cv_path_GROFF
  15984. if test -n "$GROFF"; then
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15986. $as_echo "$GROFF" >&6; }
  15987. else
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15989. $as_echo "no" >&6; }
  15990. fi
  15991. # Extract the first word of "depmod", so it can be a program name with args.
  15992. set dummy depmod; ac_word=$2
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15994. $as_echo_n "checking for $ac_word... " >&6; }
  15995. if ${ac_cv_path_depmod+:} false; then :
  15996. $as_echo_n "(cached) " >&6
  15997. else
  15998. case $depmod in
  15999. [\\/]* | ?:[\\/]*)
  16000. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  16001. ;;
  16002. *)
  16003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16004. as_dummy="$PATH:/sbin"
  16005. for as_dir in $as_dummy
  16006. do
  16007. IFS=$as_save_IFS
  16008. test -z "$as_dir" && as_dir=.
  16009. for ac_exec_ext in '' $ac_executable_extensions; do
  16010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16011. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  16012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16013. break 2
  16014. fi
  16015. done
  16016. done
  16017. IFS=$as_save_IFS
  16018. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  16019. ;;
  16020. esac
  16021. fi
  16022. depmod=$ac_cv_path_depmod
  16023. if test -n "$depmod"; then
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  16025. $as_echo "$depmod" >&6; }
  16026. else
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16028. $as_echo "no" >&6; }
  16029. fi
  16030. # Extract the first word of "insmod", so it can be a program name with args.
  16031. set dummy insmod; ac_word=$2
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16033. $as_echo_n "checking for $ac_word... " >&6; }
  16034. if ${ac_cv_path_insmod+:} false; then :
  16035. $as_echo_n "(cached) " >&6
  16036. else
  16037. case $insmod in
  16038. [\\/]* | ?:[\\/]*)
  16039. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  16040. ;;
  16041. *)
  16042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16043. as_dummy="$PATH:/sbin"
  16044. for as_dir in $as_dummy
  16045. do
  16046. IFS=$as_save_IFS
  16047. test -z "$as_dir" && as_dir=.
  16048. for ac_exec_ext in '' $ac_executable_extensions; do
  16049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16050. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  16051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16052. break 2
  16053. fi
  16054. done
  16055. done
  16056. IFS=$as_save_IFS
  16057. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  16058. ;;
  16059. esac
  16060. fi
  16061. insmod=$ac_cv_path_insmod
  16062. if test -n "$insmod"; then
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  16064. $as_echo "$insmod" >&6; }
  16065. else
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16067. $as_echo "no" >&6; }
  16068. fi
  16069. # Extract the first word of "rmmod", so it can be a program name with args.
  16070. set dummy rmmod; ac_word=$2
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16072. $as_echo_n "checking for $ac_word... " >&6; }
  16073. if ${ac_cv_path_rmmod+:} false; then :
  16074. $as_echo_n "(cached) " >&6
  16075. else
  16076. case $rmmod in
  16077. [\\/]* | ?:[\\/]*)
  16078. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  16079. ;;
  16080. *)
  16081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16082. as_dummy="$PATH:/sbin"
  16083. for as_dir in $as_dummy
  16084. do
  16085. IFS=$as_save_IFS
  16086. test -z "$as_dir" && as_dir=.
  16087. for ac_exec_ext in '' $ac_executable_extensions; do
  16088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16089. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  16090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16091. break 2
  16092. fi
  16093. done
  16094. done
  16095. IFS=$as_save_IFS
  16096. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  16097. ;;
  16098. esac
  16099. fi
  16100. rmmod=$ac_cv_path_rmmod
  16101. if test -n "$rmmod"; then
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  16103. $as_echo "$rmmod" >&6; }
  16104. else
  16105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16106. $as_echo "no" >&6; }
  16107. fi
  16108. case "${enable_local_libopts+set}" in
  16109. set) ;;
  16110. *) enable_local_libopts=yes ;;
  16111. esac
  16112. case "${enable_libopts_install+set}" in
  16113. set) ;;
  16114. *) enable_libopts_install=no ;;
  16115. esac
  16116. AUTOGEN_VERSION="unknown - man pages will not be built"
  16117. if test -n "${AUTOGEN}" ; then
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  16119. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  16120. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  16121. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  16122. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  16123. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  16124. if test -z "$AUTOGEN_BUILD"; then
  16125. AUTOGEN_BUILD=0
  16126. fi
  16127. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  16128. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  16129. test ${AUTOGEN_MAJOR} -lt 5 ; then
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16131. $as_echo "no" >&6; }
  16132. if test "x$enable_local_libopts" == "xno"; then
  16133. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  16134. fi
  16135. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  16136. else
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16138. $as_echo "yes" >&6; }
  16139. fi
  16140. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  16141. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  16142. as_fn_error $? "Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" "$LINENO" 5
  16143. fi
  16144. fi
  16145. else
  16146. if test ! -f src/tcpreplay_opts.c ; then
  16147. as_fn_error $? "Please install GNU autogen $MAINTAINER_AUTOGEN_VERSION or higher if you are building from GitHub. To avoid this message download source from http://tcpreplay.appneta.com/wiki/installation.html" "$LINENO" 5
  16148. fi
  16149. fi
  16150. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  16151. if test "x$enable_local_libopts" = "xyes" ; then
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  16153. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  16154. else
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  16156. $as_echo "$as_me: Using system libopts" >&6;}
  16157. fi
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16159. $as_echo_n "checking for ANSI C header files... " >&6; }
  16160. if ${ac_cv_header_stdc+:} false; then :
  16161. $as_echo_n "(cached) " >&6
  16162. else
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. #include <stdlib.h>
  16166. #include <stdarg.h>
  16167. #include <string.h>
  16168. #include <float.h>
  16169. int
  16170. main ()
  16171. {
  16172. ;
  16173. return 0;
  16174. }
  16175. _ACEOF
  16176. if ac_fn_c_try_compile "$LINENO"; then :
  16177. ac_cv_header_stdc=yes
  16178. else
  16179. ac_cv_header_stdc=no
  16180. fi
  16181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16182. if test $ac_cv_header_stdc = yes; then
  16183. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16185. /* end confdefs.h. */
  16186. #include <string.h>
  16187. _ACEOF
  16188. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16189. $EGREP "memchr" >/dev/null 2>&1; then :
  16190. else
  16191. ac_cv_header_stdc=no
  16192. fi
  16193. rm -f conftest*
  16194. fi
  16195. if test $ac_cv_header_stdc = yes; then
  16196. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16198. /* end confdefs.h. */
  16199. #include <stdlib.h>
  16200. _ACEOF
  16201. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16202. $EGREP "free" >/dev/null 2>&1; then :
  16203. else
  16204. ac_cv_header_stdc=no
  16205. fi
  16206. rm -f conftest*
  16207. fi
  16208. if test $ac_cv_header_stdc = yes; then
  16209. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16210. if test "$cross_compiling" = yes; then :
  16211. :
  16212. else
  16213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16214. /* end confdefs.h. */
  16215. #include <ctype.h>
  16216. #include <stdlib.h>
  16217. #if ((' ' & 0x0FF) == 0x020)
  16218. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16219. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16220. #else
  16221. # define ISLOWER(c) \
  16222. (('a' <= (c) && (c) <= 'i') \
  16223. || ('j' <= (c) && (c) <= 'r') \
  16224. || ('s' <= (c) && (c) <= 'z'))
  16225. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16226. #endif
  16227. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16228. int
  16229. main ()
  16230. {
  16231. int i;
  16232. for (i = 0; i < 256; i++)
  16233. if (XOR (islower (i), ISLOWER (i))
  16234. || toupper (i) != TOUPPER (i))
  16235. return 2;
  16236. return 0;
  16237. }
  16238. _ACEOF
  16239. if ac_fn_c_try_run "$LINENO"; then :
  16240. else
  16241. ac_cv_header_stdc=no
  16242. fi
  16243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16244. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16245. fi
  16246. fi
  16247. fi
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16249. $as_echo "$ac_cv_header_stdc" >&6; }
  16250. if test $ac_cv_header_stdc = yes; then
  16251. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16252. fi
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  16254. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  16255. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  16256. $as_echo_n "(cached) " >&6
  16257. else
  16258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16259. /* end confdefs.h. */
  16260. #include <sys/types.h>
  16261. int
  16262. main ()
  16263. {
  16264. return makedev(0, 0);
  16265. ;
  16266. return 0;
  16267. }
  16268. _ACEOF
  16269. if ac_fn_c_try_link "$LINENO"; then :
  16270. ac_cv_header_sys_types_h_makedev=yes
  16271. else
  16272. ac_cv_header_sys_types_h_makedev=no
  16273. fi
  16274. rm -f core conftest.err conftest.$ac_objext \
  16275. conftest$ac_exeext conftest.$ac_ext
  16276. fi
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  16278. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16279. if test $ac_cv_header_sys_types_h_makedev = no; then
  16280. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16281. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16282. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16283. fi
  16284. if test $ac_cv_header_sys_mkdev_h = no; then
  16285. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16286. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16287. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16288. fi
  16289. fi
  16290. fi
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16292. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16293. if ${ac_cv_header_stdbool_h+:} false; then :
  16294. $as_echo_n "(cached) " >&6
  16295. else
  16296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16297. /* end confdefs.h. */
  16298. #include <stdbool.h>
  16299. #ifndef bool
  16300. "error: bool is not defined"
  16301. #endif
  16302. #ifndef false
  16303. "error: false is not defined"
  16304. #endif
  16305. #if false
  16306. "error: false is not 0"
  16307. #endif
  16308. #ifndef true
  16309. "error: true is not defined"
  16310. #endif
  16311. #if true != 1
  16312. "error: true is not 1"
  16313. #endif
  16314. #ifndef __bool_true_false_are_defined
  16315. "error: __bool_true_false_are_defined is not defined"
  16316. #endif
  16317. struct s { _Bool s: 1; _Bool t; } s;
  16318. char a[true == 1 ? 1 : -1];
  16319. char b[false == 0 ? 1 : -1];
  16320. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16321. char d[(bool) 0.5 == true ? 1 : -1];
  16322. /* See body of main program for 'e'. */
  16323. char f[(_Bool) 0.0 == false ? 1 : -1];
  16324. char g[true];
  16325. char h[sizeof (_Bool)];
  16326. char i[sizeof s.t];
  16327. enum { j = false, k = true, l = false * true, m = true * 256 };
  16328. /* The following fails for
  16329. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16330. _Bool n[m];
  16331. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16332. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16333. /* Catch a bug in an HP-UX C compiler. See
  16334. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16335. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16336. */
  16337. _Bool q = true;
  16338. _Bool *pq = &q;
  16339. int
  16340. main ()
  16341. {
  16342. bool e = &s;
  16343. *pq |= q;
  16344. *pq |= ! q;
  16345. /* Refer to every declared value, to avoid compiler optimizations. */
  16346. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16347. + !m + !n + !o + !p + !q + !pq);
  16348. ;
  16349. return 0;
  16350. }
  16351. _ACEOF
  16352. if ac_fn_c_try_compile "$LINENO"; then :
  16353. ac_cv_header_stdbool_h=yes
  16354. else
  16355. ac_cv_header_stdbool_h=no
  16356. fi
  16357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16358. fi
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16360. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16361. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16362. if test "x$ac_cv_type__Bool" = xyes; then :
  16363. cat >>confdefs.h <<_ACEOF
  16364. #define HAVE__BOOL 1
  16365. _ACEOF
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16368. $as_echo_n "checking for inline... " >&6; }
  16369. if ${ac_cv_c_inline+:} false; then :
  16370. $as_echo_n "(cached) " >&6
  16371. else
  16372. ac_cv_c_inline=no
  16373. for ac_kw in inline __inline__ __inline; do
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. #ifndef __cplusplus
  16377. typedef int foo_t;
  16378. static $ac_kw foo_t static_foo () {return 0; }
  16379. $ac_kw foo_t foo () {return 0; }
  16380. #endif
  16381. _ACEOF
  16382. if ac_fn_c_try_compile "$LINENO"; then :
  16383. ac_cv_c_inline=$ac_kw
  16384. fi
  16385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16386. test "$ac_cv_c_inline" != no && break
  16387. done
  16388. fi
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16390. $as_echo "$ac_cv_c_inline" >&6; }
  16391. case $ac_cv_c_inline in
  16392. inline | yes) ;;
  16393. *)
  16394. case $ac_cv_c_inline in
  16395. no) ac_val=;;
  16396. *) ac_val=$ac_cv_c_inline;;
  16397. esac
  16398. cat >>confdefs.h <<_ACEOF
  16399. #ifndef __cplusplus
  16400. #define inline $ac_val
  16401. #endif
  16402. _ACEOF
  16403. ;;
  16404. esac
  16405. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16406. case $ac_cv_c_int16_t in #(
  16407. no|yes) ;; #(
  16408. *)
  16409. cat >>confdefs.h <<_ACEOF
  16410. #define int16_t $ac_cv_c_int16_t
  16411. _ACEOF
  16412. ;;
  16413. esac
  16414. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16415. case $ac_cv_c_int32_t in #(
  16416. no|yes) ;; #(
  16417. *)
  16418. cat >>confdefs.h <<_ACEOF
  16419. #define int32_t $ac_cv_c_int32_t
  16420. _ACEOF
  16421. ;;
  16422. esac
  16423. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16424. case $ac_cv_c_int64_t in #(
  16425. no|yes) ;; #(
  16426. *)
  16427. cat >>confdefs.h <<_ACEOF
  16428. #define int64_t $ac_cv_c_int64_t
  16429. _ACEOF
  16430. ;;
  16431. esac
  16432. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16433. case $ac_cv_c_int8_t in #(
  16434. no|yes) ;; #(
  16435. *)
  16436. cat >>confdefs.h <<_ACEOF
  16437. #define int8_t $ac_cv_c_int8_t
  16438. _ACEOF
  16439. ;;
  16440. esac
  16441. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16442. if test "x$ac_cv_type_off_t" = xyes; then :
  16443. else
  16444. cat >>confdefs.h <<_ACEOF
  16445. #define off_t long int
  16446. _ACEOF
  16447. fi
  16448. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16449. if test "x$ac_cv_type_pid_t" = xyes; then :
  16450. else
  16451. cat >>confdefs.h <<_ACEOF
  16452. #define pid_t int
  16453. _ACEOF
  16454. fi
  16455. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16456. if test "x$ac_cv_type_size_t" = xyes; then :
  16457. else
  16458. cat >>confdefs.h <<_ACEOF
  16459. #define size_t unsigned int
  16460. _ACEOF
  16461. fi
  16462. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16463. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16464. else
  16465. cat >>confdefs.h <<_ACEOF
  16466. #define ssize_t int
  16467. _ACEOF
  16468. fi
  16469. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16470. case $ac_cv_c_uint16_t in #(
  16471. no|yes) ;; #(
  16472. *)
  16473. cat >>confdefs.h <<_ACEOF
  16474. #define uint16_t $ac_cv_c_uint16_t
  16475. _ACEOF
  16476. ;;
  16477. esac
  16478. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16479. case $ac_cv_c_uint32_t in #(
  16480. no|yes) ;; #(
  16481. *)
  16482. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16483. cat >>confdefs.h <<_ACEOF
  16484. #define uint32_t $ac_cv_c_uint32_t
  16485. _ACEOF
  16486. ;;
  16487. esac
  16488. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16489. case $ac_cv_c_uint64_t in #(
  16490. no|yes) ;; #(
  16491. *)
  16492. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16493. cat >>confdefs.h <<_ACEOF
  16494. #define uint64_t $ac_cv_c_uint64_t
  16495. _ACEOF
  16496. ;;
  16497. esac
  16498. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16499. case $ac_cv_c_uint8_t in #(
  16500. no|yes) ;; #(
  16501. *)
  16502. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16503. cat >>confdefs.h <<_ACEOF
  16504. #define uint8_t $ac_cv_c_uint8_t
  16505. _ACEOF
  16506. ;;
  16507. esac
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  16509. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  16510. if ${ac_cv_header_time+:} false; then :
  16511. $as_echo_n "(cached) " >&6
  16512. else
  16513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16514. /* end confdefs.h. */
  16515. #include <sys/types.h>
  16516. #include <sys/time.h>
  16517. #include <time.h>
  16518. int
  16519. main ()
  16520. {
  16521. if ((struct tm *) 0)
  16522. return 0;
  16523. ;
  16524. return 0;
  16525. }
  16526. _ACEOF
  16527. if ac_fn_c_try_compile "$LINENO"; then :
  16528. ac_cv_header_time=yes
  16529. else
  16530. ac_cv_header_time=no
  16531. fi
  16532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16533. fi
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  16535. $as_echo "$ac_cv_header_time" >&6; }
  16536. if test $ac_cv_header_time = yes; then
  16537. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  16538. fi
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16540. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16541. if ${ac_cv_c_const+:} false; then :
  16542. $as_echo_n "(cached) " >&6
  16543. else
  16544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16545. /* end confdefs.h. */
  16546. int
  16547. main ()
  16548. {
  16549. #ifndef __cplusplus
  16550. /* Ultrix mips cc rejects this sort of thing. */
  16551. typedef int charset[2];
  16552. const charset cs = { 0, 0 };
  16553. /* SunOS 4.1.1 cc rejects this. */
  16554. char const *const *pcpcc;
  16555. char **ppc;
  16556. /* NEC SVR4.0.2 mips cc rejects this. */
  16557. struct point {int x, y;};
  16558. static struct point const zero = {0,0};
  16559. /* AIX XL C 1.02.0.0 rejects this.
  16560. It does not let you subtract one const X* pointer from another in
  16561. an arm of an if-expression whose if-part is not a constant
  16562. expression */
  16563. const char *g = "string";
  16564. pcpcc = &g + (g ? g-g : 0);
  16565. /* HPUX 7.0 cc rejects these. */
  16566. ++pcpcc;
  16567. ppc = (char**) pcpcc;
  16568. pcpcc = (char const *const *) ppc;
  16569. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16570. char tx;
  16571. char *t = &tx;
  16572. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16573. *t++ = 0;
  16574. if (s) return 0;
  16575. }
  16576. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16577. int x[] = {25, 17};
  16578. const int *foo = &x[0];
  16579. ++foo;
  16580. }
  16581. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16582. typedef const int *iptr;
  16583. iptr p = 0;
  16584. ++p;
  16585. }
  16586. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16587. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16588. struct s { int j; const int *ap[3]; } bx;
  16589. struct s *b = &bx; b->j = 5;
  16590. }
  16591. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16592. const int foo = 10;
  16593. if (!foo) return 0;
  16594. }
  16595. return !cs[0] && !zero.x;
  16596. #endif
  16597. ;
  16598. return 0;
  16599. }
  16600. _ACEOF
  16601. if ac_fn_c_try_compile "$LINENO"; then :
  16602. ac_cv_c_const=yes
  16603. else
  16604. ac_cv_c_const=no
  16605. fi
  16606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16607. fi
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16609. $as_echo "$ac_cv_c_const" >&6; }
  16610. if test $ac_cv_c_const = no; then
  16611. $as_echo "#define const /**/" >>confdefs.h
  16612. fi
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16614. $as_echo_n "checking for inline... " >&6; }
  16615. if ${ac_cv_c_inline+:} false; then :
  16616. $as_echo_n "(cached) " >&6
  16617. else
  16618. ac_cv_c_inline=no
  16619. for ac_kw in inline __inline__ __inline; do
  16620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16621. /* end confdefs.h. */
  16622. #ifndef __cplusplus
  16623. typedef int foo_t;
  16624. static $ac_kw foo_t static_foo () {return 0; }
  16625. $ac_kw foo_t foo () {return 0; }
  16626. #endif
  16627. _ACEOF
  16628. if ac_fn_c_try_compile "$LINENO"; then :
  16629. ac_cv_c_inline=$ac_kw
  16630. fi
  16631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16632. test "$ac_cv_c_inline" != no && break
  16633. done
  16634. fi
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16636. $as_echo "$ac_cv_c_inline" >&6; }
  16637. case $ac_cv_c_inline in
  16638. inline | yes) ;;
  16639. *)
  16640. case $ac_cv_c_inline in
  16641. no) ac_val=;;
  16642. *) ac_val=$ac_cv_c_inline;;
  16643. esac
  16644. cat >>confdefs.h <<_ACEOF
  16645. #ifndef __cplusplus
  16646. #define inline $ac_val
  16647. #endif
  16648. _ACEOF
  16649. ;;
  16650. esac
  16651. # Check whether --enable-largefile was given.
  16652. if test "${enable_largefile+set}" = set; then :
  16653. enableval=$enable_largefile;
  16654. fi
  16655. if test "$enable_largefile" != no; then
  16656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16657. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16658. if ${ac_cv_sys_largefile_CC+:} false; then :
  16659. $as_echo_n "(cached) " >&6
  16660. else
  16661. ac_cv_sys_largefile_CC=no
  16662. if test "$GCC" != yes; then
  16663. ac_save_CC=$CC
  16664. while :; do
  16665. # IRIX 6.2 and later do not support large files by default,
  16666. # so use the C compiler's -n32 option if that helps.
  16667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16668. /* end confdefs.h. */
  16669. #include <sys/types.h>
  16670. /* Check that off_t can represent 2**63 - 1 correctly.
  16671. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16672. since some C++ compilers masquerading as C compilers
  16673. incorrectly reject 9223372036854775807. */
  16674. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16675. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16676. && LARGE_OFF_T % 2147483647 == 1)
  16677. ? 1 : -1];
  16678. int
  16679. main ()
  16680. {
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_compile "$LINENO"; then :
  16686. break
  16687. fi
  16688. rm -f core conftest.err conftest.$ac_objext
  16689. CC="$CC -n32"
  16690. if ac_fn_c_try_compile "$LINENO"; then :
  16691. ac_cv_sys_largefile_CC=' -n32'; break
  16692. fi
  16693. rm -f core conftest.err conftest.$ac_objext
  16694. break
  16695. done
  16696. CC=$ac_save_CC
  16697. rm -f conftest.$ac_ext
  16698. fi
  16699. fi
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16701. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16702. if test "$ac_cv_sys_largefile_CC" != no; then
  16703. CC=$CC$ac_cv_sys_largefile_CC
  16704. fi
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16706. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16707. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16708. $as_echo_n "(cached) " >&6
  16709. else
  16710. while :; do
  16711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16712. /* end confdefs.h. */
  16713. #include <sys/types.h>
  16714. /* Check that off_t can represent 2**63 - 1 correctly.
  16715. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16716. since some C++ compilers masquerading as C compilers
  16717. incorrectly reject 9223372036854775807. */
  16718. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16719. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16720. && LARGE_OFF_T % 2147483647 == 1)
  16721. ? 1 : -1];
  16722. int
  16723. main ()
  16724. {
  16725. ;
  16726. return 0;
  16727. }
  16728. _ACEOF
  16729. if ac_fn_c_try_compile "$LINENO"; then :
  16730. ac_cv_sys_file_offset_bits=no; break
  16731. fi
  16732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16734. /* end confdefs.h. */
  16735. #define _FILE_OFFSET_BITS 64
  16736. #include <sys/types.h>
  16737. /* Check that off_t can represent 2**63 - 1 correctly.
  16738. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16739. since some C++ compilers masquerading as C compilers
  16740. incorrectly reject 9223372036854775807. */
  16741. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16742. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16743. && LARGE_OFF_T % 2147483647 == 1)
  16744. ? 1 : -1];
  16745. int
  16746. main ()
  16747. {
  16748. ;
  16749. return 0;
  16750. }
  16751. _ACEOF
  16752. if ac_fn_c_try_compile "$LINENO"; then :
  16753. ac_cv_sys_file_offset_bits=64; break
  16754. fi
  16755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16756. ac_cv_sys_file_offset_bits=unknown
  16757. break
  16758. done
  16759. fi
  16760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16761. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16762. case $ac_cv_sys_file_offset_bits in #(
  16763. no | unknown) ;;
  16764. *)
  16765. cat >>confdefs.h <<_ACEOF
  16766. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16767. _ACEOF
  16768. ;;
  16769. esac
  16770. rm -rf conftest*
  16771. if test $ac_cv_sys_file_offset_bits = unknown; then
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16773. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16774. if ${ac_cv_sys_large_files+:} false; then :
  16775. $as_echo_n "(cached) " >&6
  16776. else
  16777. while :; do
  16778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16779. /* end confdefs.h. */
  16780. #include <sys/types.h>
  16781. /* Check that off_t can represent 2**63 - 1 correctly.
  16782. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16783. since some C++ compilers masquerading as C compilers
  16784. incorrectly reject 9223372036854775807. */
  16785. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16786. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16787. && LARGE_OFF_T % 2147483647 == 1)
  16788. ? 1 : -1];
  16789. int
  16790. main ()
  16791. {
  16792. ;
  16793. return 0;
  16794. }
  16795. _ACEOF
  16796. if ac_fn_c_try_compile "$LINENO"; then :
  16797. ac_cv_sys_large_files=no; break
  16798. fi
  16799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16801. /* end confdefs.h. */
  16802. #define _LARGE_FILES 1
  16803. #include <sys/types.h>
  16804. /* Check that off_t can represent 2**63 - 1 correctly.
  16805. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16806. since some C++ compilers masquerading as C compilers
  16807. incorrectly reject 9223372036854775807. */
  16808. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16809. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16810. && LARGE_OFF_T % 2147483647 == 1)
  16811. ? 1 : -1];
  16812. int
  16813. main ()
  16814. {
  16815. ;
  16816. return 0;
  16817. }
  16818. _ACEOF
  16819. if ac_fn_c_try_compile "$LINENO"; then :
  16820. ac_cv_sys_large_files=1; break
  16821. fi
  16822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16823. ac_cv_sys_large_files=unknown
  16824. break
  16825. done
  16826. fi
  16827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16828. $as_echo "$ac_cv_sys_large_files" >&6; }
  16829. case $ac_cv_sys_large_files in #(
  16830. no | unknown) ;;
  16831. *)
  16832. cat >>confdefs.h <<_ACEOF
  16833. #define _LARGE_FILES $ac_cv_sys_large_files
  16834. _ACEOF
  16835. ;;
  16836. esac
  16837. rm -rf conftest*
  16838. fi
  16839. fi
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16841. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16842. if ${ac_cv_sys_largefile_source+:} false; then :
  16843. $as_echo_n "(cached) " >&6
  16844. else
  16845. while :; do
  16846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16847. /* end confdefs.h. */
  16848. #include <sys/types.h> /* for off_t */
  16849. #include <stdio.h>
  16850. int
  16851. main ()
  16852. {
  16853. int (*fp) (FILE *, off_t, int) = fseeko;
  16854. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16855. ;
  16856. return 0;
  16857. }
  16858. _ACEOF
  16859. if ac_fn_c_try_link "$LINENO"; then :
  16860. ac_cv_sys_largefile_source=no; break
  16861. fi
  16862. rm -f core conftest.err conftest.$ac_objext \
  16863. conftest$ac_exeext conftest.$ac_ext
  16864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16865. /* end confdefs.h. */
  16866. #define _LARGEFILE_SOURCE 1
  16867. #include <sys/types.h> /* for off_t */
  16868. #include <stdio.h>
  16869. int
  16870. main ()
  16871. {
  16872. int (*fp) (FILE *, off_t, int) = fseeko;
  16873. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16874. ;
  16875. return 0;
  16876. }
  16877. _ACEOF
  16878. if ac_fn_c_try_link "$LINENO"; then :
  16879. ac_cv_sys_largefile_source=1; break
  16880. fi
  16881. rm -f core conftest.err conftest.$ac_objext \
  16882. conftest$ac_exeext conftest.$ac_ext
  16883. ac_cv_sys_largefile_source=unknown
  16884. break
  16885. done
  16886. fi
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16888. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16889. case $ac_cv_sys_largefile_source in #(
  16890. no | unknown) ;;
  16891. *)
  16892. cat >>confdefs.h <<_ACEOF
  16893. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16894. _ACEOF
  16895. ;;
  16896. esac
  16897. rm -rf conftest*
  16898. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16899. # in glibc 2.1.3, but that breaks too many other things.
  16900. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16901. if test $ac_cv_sys_largefile_source != unknown; then
  16902. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16905. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16906. else
  16907. cat >>confdefs.h <<_ACEOF
  16908. #define u_int8_t uint8_t
  16909. _ACEOF
  16910. fi
  16911. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16912. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16913. else
  16914. cat >>confdefs.h <<_ACEOF
  16915. #define u_int16_t uint16_t
  16916. _ACEOF
  16917. fi
  16918. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16919. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16920. else
  16921. cat >>confdefs.h <<_ACEOF
  16922. #define u_int32_t uint32_t
  16923. _ACEOF
  16924. fi
  16925. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16926. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16927. else
  16928. cat >>confdefs.h <<_ACEOF
  16929. #define u_int64_t uint64_t
  16930. _ACEOF
  16931. fi
  16932. wno_format=""
  16933. wno_macro_redefined=""
  16934. case $host in
  16935. *-apple-darwin*)
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16937. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16938. OLD_CFLAGS=$CFLAGS
  16939. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16941. /* end confdefs.h. */
  16942. #include <stdlib.h>
  16943. int main(int argc, char *argv[]) { return(0); }
  16944. _ACEOF
  16945. if ac_fn_c_try_compile "$LINENO"; then :
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16947. $as_echo "yes" >&6; }
  16948. wno_macro_redefined="-Wno-macro-redefined"
  16949. else
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16951. $as_echo "no" >&6; }
  16952. fi
  16953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16954. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16955. CFLAGS="$CFLAGS -Wno-format -Werror"
  16956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16957. /* end confdefs.h. */
  16958. #include <stdlib.h>
  16959. int main(int argc, char *argv[]) { return(0); }
  16960. _ACEOF
  16961. if ac_fn_c_try_compile "$LINENO"; then :
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16963. $as_echo "yes" >&6; }
  16964. wno_format="-Wno-format"
  16965. else
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16967. $as_echo "no" >&6; }
  16968. fi
  16969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16970. CFLAGS="$OLD_CFLAGS $wno_format"
  16971. ;;
  16972. esac
  16973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16974. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16975. OLD_CFLAGS=$CFLAGS
  16976. CFLAGS="$CFLAGS -Wextra -Werror"
  16977. wextra=""
  16978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16979. /* end confdefs.h. */
  16980. #include <stdlib.h>
  16981. int main(int argc, char *argv[]) { return(0); }
  16982. _ACEOF
  16983. if ac_fn_c_try_compile "$LINENO"; then :
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16985. $as_echo "yes" >&6; }
  16986. wextra="-Wextra"
  16987. else
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16989. $as_echo "no" >&6; }
  16990. fi
  16991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16992. CFLAGS="$OLD_CFLAGS $wextra"
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16994. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16995. OLD_CFLAGS=$CFLAGS
  16996. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16997. wno_variadic_macros=""
  16998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16999. /* end confdefs.h. */
  17000. #include <stdlib.h>
  17001. int main(int argc, char *argv[]) { return(0); }
  17002. _ACEOF
  17003. if ac_fn_c_try_compile "$LINENO"; then :
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17005. $as_echo "yes" >&6; }
  17006. wno_variadic_macros="-Wno-variadic-macros"
  17007. else
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17009. $as_echo "no" >&6; }
  17010. fi
  17011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17012. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  17013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  17014. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  17015. OLD_CFLAGS=$CFLAGS
  17016. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  17017. wfatal_errors=""
  17018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17019. /* end confdefs.h. */
  17020. #include <stdlib.h>
  17021. int main(int argc, char *argv[]) { return(0); }
  17022. _ACEOF
  17023. if ac_fn_c_try_compile "$LINENO"; then :
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17025. $as_echo "yes" >&6; }
  17026. wfatal_errors="-Wfatal-errors"
  17027. else
  17028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17029. $as_echo "no" >&6; }
  17030. fi
  17031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17032. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  17034. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  17035. OLD_CFLAGS=$CFLAGS
  17036. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  17037. wno_format_contains_nul=""
  17038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17039. /* end confdefs.h. */
  17040. #include <stdlib.h>
  17041. int main(int argc, char *argv[]) { return(0); }
  17042. _ACEOF
  17043. if ac_fn_c_try_compile "$LINENO"; then :
  17044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17045. $as_echo "yes" >&6; }
  17046. wno_format_contains_nul="-Wno-format-contains-nul"
  17047. else
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17049. $as_echo "no" >&6; }
  17050. fi
  17051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17052. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  17053. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  17054. do :
  17055. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17056. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17057. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17058. cat >>confdefs.h <<_ACEOF
  17059. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17060. _ACEOF
  17061. fi
  17062. done
  17063. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  17064. do :
  17065. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17066. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17067. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17068. cat >>confdefs.h <<_ACEOF
  17069. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17070. _ACEOF
  17071. fi
  17072. done
  17073. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  17074. do :
  17075. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17076. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17077. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17078. cat >>confdefs.h <<_ACEOF
  17079. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17080. _ACEOF
  17081. fi
  17082. done
  17083. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  17084. do :
  17085. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17086. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17087. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17088. cat >>confdefs.h <<_ACEOF
  17089. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17090. _ACEOF
  17091. fi
  17092. done
  17093. for ac_header in sys/io.h architecture/i386/pio.h sched.h
  17094. do :
  17095. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17096. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17097. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17098. cat >>confdefs.h <<_ACEOF
  17099. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17100. _ACEOF
  17101. fi
  17102. done
  17103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  17104. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  17105. if ${ac_cv_header_stdbool_h+:} false; then :
  17106. $as_echo_n "(cached) " >&6
  17107. else
  17108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17109. /* end confdefs.h. */
  17110. #include <stdbool.h>
  17111. #ifndef bool
  17112. "error: bool is not defined"
  17113. #endif
  17114. #ifndef false
  17115. "error: false is not defined"
  17116. #endif
  17117. #if false
  17118. "error: false is not 0"
  17119. #endif
  17120. #ifndef true
  17121. "error: true is not defined"
  17122. #endif
  17123. #if true != 1
  17124. "error: true is not 1"
  17125. #endif
  17126. #ifndef __bool_true_false_are_defined
  17127. "error: __bool_true_false_are_defined is not defined"
  17128. #endif
  17129. struct s { _Bool s: 1; _Bool t; } s;
  17130. char a[true == 1 ? 1 : -1];
  17131. char b[false == 0 ? 1 : -1];
  17132. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17133. char d[(bool) 0.5 == true ? 1 : -1];
  17134. /* See body of main program for 'e'. */
  17135. char f[(_Bool) 0.0 == false ? 1 : -1];
  17136. char g[true];
  17137. char h[sizeof (_Bool)];
  17138. char i[sizeof s.t];
  17139. enum { j = false, k = true, l = false * true, m = true * 256 };
  17140. /* The following fails for
  17141. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  17142. _Bool n[m];
  17143. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  17144. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  17145. /* Catch a bug in an HP-UX C compiler. See
  17146. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  17147. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  17148. */
  17149. _Bool q = true;
  17150. _Bool *pq = &q;
  17151. int
  17152. main ()
  17153. {
  17154. bool e = &s;
  17155. *pq |= q;
  17156. *pq |= ! q;
  17157. /* Refer to every declared value, to avoid compiler optimizations. */
  17158. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  17159. + !m + !n + !o + !p + !q + !pq);
  17160. ;
  17161. return 0;
  17162. }
  17163. _ACEOF
  17164. if ac_fn_c_try_compile "$LINENO"; then :
  17165. ac_cv_header_stdbool_h=yes
  17166. else
  17167. ac_cv_header_stdbool_h=no
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17170. fi
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  17172. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  17173. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  17174. if test "x$ac_cv_type__Bool" = xyes; then :
  17175. cat >>confdefs.h <<_ACEOF
  17176. #define HAVE__BOOL 1
  17177. _ACEOF
  17178. fi
  17179. if test $ac_cv_header_stdbool_h = yes; then
  17180. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  17181. fi
  17182. for ac_header in sys/sysctl.h net/route.h
  17183. do :
  17184. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17185. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17186. #if HAVE_SYS_PARAM_H
  17187. #include <sys/param.h>
  17188. #endif
  17189. #if HAVE_SYS_TYPES_H
  17190. #include <sys/types.h>
  17191. #endif
  17192. #if HAVE_SYS_SOCKET_H
  17193. #include <sys/socket.h>
  17194. #endif
  17195. "
  17196. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17197. cat >>confdefs.h <<_ACEOF
  17198. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17199. _ACEOF
  17200. fi
  17201. done
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  17203. $as_echo_n "checking for socket in -lsocket... " >&6; }
  17204. if ${ac_cv_lib_socket_socket+:} false; then :
  17205. $as_echo_n "(cached) " >&6
  17206. else
  17207. ac_check_lib_save_LIBS=$LIBS
  17208. LIBS="-lsocket $LIBS"
  17209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17210. /* end confdefs.h. */
  17211. /* Override any GCC internal prototype to avoid an error.
  17212. Use char because int might match the return type of a GCC
  17213. builtin and then its argument prototype would still apply. */
  17214. #ifdef __cplusplus
  17215. extern "C"
  17216. #endif
  17217. char socket ();
  17218. int
  17219. main ()
  17220. {
  17221. return socket ();
  17222. ;
  17223. return 0;
  17224. }
  17225. _ACEOF
  17226. if ac_fn_c_try_link "$LINENO"; then :
  17227. ac_cv_lib_socket_socket=yes
  17228. else
  17229. ac_cv_lib_socket_socket=no
  17230. fi
  17231. rm -f core conftest.err conftest.$ac_objext \
  17232. conftest$ac_exeext conftest.$ac_ext
  17233. LIBS=$ac_check_lib_save_LIBS
  17234. fi
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  17236. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  17237. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  17238. cat >>confdefs.h <<_ACEOF
  17239. #define HAVE_LIBSOCKET 1
  17240. _ACEOF
  17241. LIBS="-lsocket $LIBS"
  17242. fi
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17244. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17245. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17246. $as_echo_n "(cached) " >&6
  17247. else
  17248. ac_check_lib_save_LIBS=$LIBS
  17249. LIBS="-lnsl $LIBS"
  17250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17251. /* end confdefs.h. */
  17252. /* Override any GCC internal prototype to avoid an error.
  17253. Use char because int might match the return type of a GCC
  17254. builtin and then its argument prototype would still apply. */
  17255. #ifdef __cplusplus
  17256. extern "C"
  17257. #endif
  17258. char gethostbyname ();
  17259. int
  17260. main ()
  17261. {
  17262. return gethostbyname ();
  17263. ;
  17264. return 0;
  17265. }
  17266. _ACEOF
  17267. if ac_fn_c_try_link "$LINENO"; then :
  17268. ac_cv_lib_nsl_gethostbyname=yes
  17269. else
  17270. ac_cv_lib_nsl_gethostbyname=no
  17271. fi
  17272. rm -f core conftest.err conftest.$ac_objext \
  17273. conftest$ac_exeext conftest.$ac_ext
  17274. LIBS=$ac_check_lib_save_LIBS
  17275. fi
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17277. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17278. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17279. cat >>confdefs.h <<_ACEOF
  17280. #define HAVE_LIBNSL 1
  17281. _ACEOF
  17282. LIBS="-lnsl $LIBS"
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  17285. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  17286. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  17287. $as_echo_n "(cached) " >&6
  17288. else
  17289. ac_check_lib_save_LIBS=$LIBS
  17290. LIBS="-lrt $LIBS"
  17291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17292. /* end confdefs.h. */
  17293. /* Override any GCC internal prototype to avoid an error.
  17294. Use char because int might match the return type of a GCC
  17295. builtin and then its argument prototype would still apply. */
  17296. #ifdef __cplusplus
  17297. extern "C"
  17298. #endif
  17299. char nanosleep ();
  17300. int
  17301. main ()
  17302. {
  17303. return nanosleep ();
  17304. ;
  17305. return 0;
  17306. }
  17307. _ACEOF
  17308. if ac_fn_c_try_link "$LINENO"; then :
  17309. ac_cv_lib_rt_nanosleep=yes
  17310. else
  17311. ac_cv_lib_rt_nanosleep=no
  17312. fi
  17313. rm -f core conftest.err conftest.$ac_objext \
  17314. conftest$ac_exeext conftest.$ac_ext
  17315. LIBS=$ac_check_lib_save_LIBS
  17316. fi
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17318. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17319. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17320. cat >>confdefs.h <<_ACEOF
  17321. #define HAVE_LIBRT 1
  17322. _ACEOF
  17323. LIBS="-lrt $LIBS"
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17326. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17327. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17328. $as_echo_n "(cached) " >&6
  17329. else
  17330. ac_check_lib_save_LIBS=$LIBS
  17331. LIBS="-lresolv $LIBS"
  17332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17333. /* end confdefs.h. */
  17334. /* Override any GCC internal prototype to avoid an error.
  17335. Use char because int might match the return type of a GCC
  17336. builtin and then its argument prototype would still apply. */
  17337. #ifdef __cplusplus
  17338. extern "C"
  17339. #endif
  17340. char resolv ();
  17341. int
  17342. main ()
  17343. {
  17344. return resolv ();
  17345. ;
  17346. return 0;
  17347. }
  17348. _ACEOF
  17349. if ac_fn_c_try_link "$LINENO"; then :
  17350. ac_cv_lib_resolv_resolv=yes
  17351. else
  17352. ac_cv_lib_resolv_resolv=no
  17353. fi
  17354. rm -f core conftest.err conftest.$ac_objext \
  17355. conftest$ac_exeext conftest.$ac_ext
  17356. LIBS=$ac_check_lib_save_LIBS
  17357. fi
  17358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17359. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17360. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17361. cat >>confdefs.h <<_ACEOF
  17362. #define HAVE_LIBRESOLV 1
  17363. _ACEOF
  17364. LIBS="-lresolv $LIBS"
  17365. fi
  17366. for ac_header in vfork.h
  17367. do :
  17368. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17369. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17370. cat >>confdefs.h <<_ACEOF
  17371. #define HAVE_VFORK_H 1
  17372. _ACEOF
  17373. fi
  17374. done
  17375. for ac_func in fork vfork
  17376. do :
  17377. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17378. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17379. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17380. cat >>confdefs.h <<_ACEOF
  17381. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17382. _ACEOF
  17383. fi
  17384. done
  17385. if test "x$ac_cv_func_fork" = xyes; then
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17387. $as_echo_n "checking for working fork... " >&6; }
  17388. if ${ac_cv_func_fork_works+:} false; then :
  17389. $as_echo_n "(cached) " >&6
  17390. else
  17391. if test "$cross_compiling" = yes; then :
  17392. ac_cv_func_fork_works=cross
  17393. else
  17394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17395. /* end confdefs.h. */
  17396. $ac_includes_default
  17397. int
  17398. main ()
  17399. {
  17400. /* By Ruediger Kuhlmann. */
  17401. return fork () < 0;
  17402. ;
  17403. return 0;
  17404. }
  17405. _ACEOF
  17406. if ac_fn_c_try_run "$LINENO"; then :
  17407. ac_cv_func_fork_works=yes
  17408. else
  17409. ac_cv_func_fork_works=no
  17410. fi
  17411. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17412. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17413. fi
  17414. fi
  17415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17416. $as_echo "$ac_cv_func_fork_works" >&6; }
  17417. else
  17418. ac_cv_func_fork_works=$ac_cv_func_fork
  17419. fi
  17420. if test "x$ac_cv_func_fork_works" = xcross; then
  17421. case $host in
  17422. *-*-amigaos* | *-*-msdosdjgpp*)
  17423. # Override, as these systems have only a dummy fork() stub
  17424. ac_cv_func_fork_works=no
  17425. ;;
  17426. *)
  17427. ac_cv_func_fork_works=yes
  17428. ;;
  17429. esac
  17430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17431. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17432. fi
  17433. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17434. if test "x$ac_cv_func_vfork" = xyes; then
  17435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17436. $as_echo_n "checking for working vfork... " >&6; }
  17437. if ${ac_cv_func_vfork_works+:} false; then :
  17438. $as_echo_n "(cached) " >&6
  17439. else
  17440. if test "$cross_compiling" = yes; then :
  17441. ac_cv_func_vfork_works=cross
  17442. else
  17443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17444. /* end confdefs.h. */
  17445. /* Thanks to Paul Eggert for this test. */
  17446. $ac_includes_default
  17447. #include <sys/wait.h>
  17448. #ifdef HAVE_VFORK_H
  17449. # include <vfork.h>
  17450. #endif
  17451. /* On some sparc systems, changes by the child to local and incoming
  17452. argument registers are propagated back to the parent. The compiler
  17453. is told about this with #include <vfork.h>, but some compilers
  17454. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17455. static variable whose address is put into a register that is
  17456. clobbered by the vfork. */
  17457. static void
  17458. #ifdef __cplusplus
  17459. sparc_address_test (int arg)
  17460. # else
  17461. sparc_address_test (arg) int arg;
  17462. #endif
  17463. {
  17464. static pid_t child;
  17465. if (!child) {
  17466. child = vfork ();
  17467. if (child < 0) {
  17468. perror ("vfork");
  17469. _exit(2);
  17470. }
  17471. if (!child) {
  17472. arg = getpid();
  17473. write(-1, "", 0);
  17474. _exit (arg);
  17475. }
  17476. }
  17477. }
  17478. int
  17479. main ()
  17480. {
  17481. pid_t parent = getpid ();
  17482. pid_t child;
  17483. sparc_address_test (0);
  17484. child = vfork ();
  17485. if (child == 0) {
  17486. /* Here is another test for sparc vfork register problems. This
  17487. test uses lots of local variables, at least as many local
  17488. variables as main has allocated so far including compiler
  17489. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17490. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17491. reuse the register of parent for one of the local variables,
  17492. since it will think that parent can't possibly be used any more
  17493. in this routine. Assigning to the local variable will thus
  17494. munge parent in the parent process. */
  17495. pid_t
  17496. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17497. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17498. /* Convince the compiler that p..p7 are live; otherwise, it might
  17499. use the same hardware register for all 8 local variables. */
  17500. if (p != p1 || p != p2 || p != p3 || p != p4
  17501. || p != p5 || p != p6 || p != p7)
  17502. _exit(1);
  17503. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17504. from child file descriptors. If the child closes a descriptor
  17505. before it execs or exits, this munges the parent's descriptor
  17506. as well. Test for this by closing stdout in the child. */
  17507. _exit(close(fileno(stdout)) != 0);
  17508. } else {
  17509. int status;
  17510. struct stat st;
  17511. while (wait(&status) != child)
  17512. ;
  17513. return (
  17514. /* Was there some problem with vforking? */
  17515. child < 0
  17516. /* Did the child fail? (This shouldn't happen.) */
  17517. || status
  17518. /* Did the vfork/compiler bug occur? */
  17519. || parent != getpid()
  17520. /* Did the file descriptor bug occur? */
  17521. || fstat(fileno(stdout), &st) != 0
  17522. );
  17523. }
  17524. }
  17525. _ACEOF
  17526. if ac_fn_c_try_run "$LINENO"; then :
  17527. ac_cv_func_vfork_works=yes
  17528. else
  17529. ac_cv_func_vfork_works=no
  17530. fi
  17531. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17532. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17533. fi
  17534. fi
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17536. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17537. fi;
  17538. if test "x$ac_cv_func_fork_works" = xcross; then
  17539. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17541. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17542. fi
  17543. if test "x$ac_cv_func_vfork_works" = xyes; then
  17544. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17545. else
  17546. $as_echo "#define vfork fork" >>confdefs.h
  17547. fi
  17548. if test "x$ac_cv_func_fork_works" = xyes; then
  17549. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17550. fi
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17552. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17553. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17554. $as_echo_n "(cached) " >&6
  17555. else
  17556. rm -f conftest.sym conftest.file
  17557. echo >conftest.file
  17558. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17559. if test "$cross_compiling" = yes; then :
  17560. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17561. else
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. $ac_includes_default
  17565. int
  17566. main ()
  17567. {
  17568. struct stat sbuf;
  17569. /* Linux will dereference the symlink and fail, as required by POSIX.
  17570. That is better in the sense that it means we will not
  17571. have to compile and use the lstat wrapper. */
  17572. return lstat ("conftest.sym/", &sbuf) == 0;
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_run "$LINENO"; then :
  17578. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17579. else
  17580. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17581. fi
  17582. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17583. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17584. fi
  17585. else
  17586. # If the `ln -s' command failed, then we probably don't even
  17587. # have an lstat function.
  17588. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17589. fi
  17590. rm -f conftest.sym conftest.file
  17591. fi
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17593. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17594. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17595. cat >>confdefs.h <<_ACEOF
  17596. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17597. _ACEOF
  17598. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17599. case " $LIBOBJS " in
  17600. *" lstat.$ac_objext "* ) ;;
  17601. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17602. ;;
  17603. esac
  17604. fi
  17605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17606. $as_echo_n "checking for working memcmp... " >&6; }
  17607. if ${ac_cv_func_memcmp_working+:} false; then :
  17608. $as_echo_n "(cached) " >&6
  17609. else
  17610. if test "$cross_compiling" = yes; then :
  17611. ac_cv_func_memcmp_working=no
  17612. else
  17613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17614. /* end confdefs.h. */
  17615. $ac_includes_default
  17616. int
  17617. main ()
  17618. {
  17619. /* Some versions of memcmp are not 8-bit clean. */
  17620. char c0 = '\100', c1 = '\200', c2 = '\201';
  17621. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17622. return 1;
  17623. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17624. or more and with at least one buffer not starting on a 4-byte boundary.
  17625. William Lewis provided this test program. */
  17626. {
  17627. char foo[21];
  17628. char bar[21];
  17629. int i;
  17630. for (i = 0; i < 4; i++)
  17631. {
  17632. char *a = foo + i;
  17633. char *b = bar + i;
  17634. strcpy (a, "--------01111111");
  17635. strcpy (b, "--------10000000");
  17636. if (memcmp (a, b, 16) >= 0)
  17637. return 1;
  17638. }
  17639. return 0;
  17640. }
  17641. ;
  17642. return 0;
  17643. }
  17644. _ACEOF
  17645. if ac_fn_c_try_run "$LINENO"; then :
  17646. ac_cv_func_memcmp_working=yes
  17647. else
  17648. ac_cv_func_memcmp_working=no
  17649. fi
  17650. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17651. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17652. fi
  17653. fi
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17655. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17656. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17657. *" memcmp.$ac_objext "* ) ;;
  17658. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17659. ;;
  17660. esac
  17661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  17662. $as_echo_n "checking return type of signal handlers... " >&6; }
  17663. if ${ac_cv_type_signal+:} false; then :
  17664. $as_echo_n "(cached) " >&6
  17665. else
  17666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17667. /* end confdefs.h. */
  17668. #include <sys/types.h>
  17669. #include <signal.h>
  17670. int
  17671. main ()
  17672. {
  17673. return *(signal (0, 0)) (0) == 1;
  17674. ;
  17675. return 0;
  17676. }
  17677. _ACEOF
  17678. if ac_fn_c_try_compile "$LINENO"; then :
  17679. ac_cv_type_signal=int
  17680. else
  17681. ac_cv_type_signal=void
  17682. fi
  17683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17684. fi
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  17686. $as_echo "$ac_cv_type_signal" >&6; }
  17687. cat >>confdefs.h <<_ACEOF
  17688. #define RETSIGTYPE $ac_cv_type_signal
  17689. _ACEOF
  17690. for ac_func in vprintf
  17691. do :
  17692. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17693. if test "x$ac_cv_func_vprintf" = xyes; then :
  17694. cat >>confdefs.h <<_ACEOF
  17695. #define HAVE_VPRINTF 1
  17696. _ACEOF
  17697. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17698. if test "x$ac_cv_func__doprnt" = xyes; then :
  17699. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17700. fi
  17701. fi
  17702. done
  17703. for ac_header in $ac_header_list
  17704. do :
  17705. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17706. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  17707. "
  17708. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17709. cat >>confdefs.h <<_ACEOF
  17710. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17711. _ACEOF
  17712. fi
  17713. done
  17714. for ac_func in $ac_func_list
  17715. do :
  17716. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17717. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17718. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17719. cat >>confdefs.h <<_ACEOF
  17720. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17721. _ACEOF
  17722. fi
  17723. done
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17725. $as_echo_n "checking for working mktime... " >&6; }
  17726. if ${ac_cv_func_working_mktime+:} false; then :
  17727. $as_echo_n "(cached) " >&6
  17728. else
  17729. if test "$cross_compiling" = yes; then :
  17730. ac_cv_func_working_mktime=no
  17731. else
  17732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17733. /* end confdefs.h. */
  17734. /* Test program from Paul Eggert and Tony Leneis. */
  17735. #ifdef TIME_WITH_SYS_TIME
  17736. # include <sys/time.h>
  17737. # include <time.h>
  17738. #else
  17739. # ifdef HAVE_SYS_TIME_H
  17740. # include <sys/time.h>
  17741. # else
  17742. # include <time.h>
  17743. # endif
  17744. #endif
  17745. #include <limits.h>
  17746. #include <stdlib.h>
  17747. #ifdef HAVE_UNISTD_H
  17748. # include <unistd.h>
  17749. #endif
  17750. #ifndef HAVE_ALARM
  17751. # define alarm(X) /* empty */
  17752. #endif
  17753. /* Work around redefinition to rpl_putenv by other config tests. */
  17754. #undef putenv
  17755. static time_t time_t_max;
  17756. static time_t time_t_min;
  17757. /* Values we'll use to set the TZ environment variable. */
  17758. static const char *tz_strings[] = {
  17759. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17760. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17761. };
  17762. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17763. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17764. Based on a problem report from Andreas Jaeger. */
  17765. static int
  17766. spring_forward_gap ()
  17767. {
  17768. /* glibc (up to about 1998-10-07) failed this test. */
  17769. struct tm tm;
  17770. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17771. instead of "TZ=America/Vancouver" in order to detect the bug even
  17772. on systems that don't support the Olson extension, or don't have the
  17773. full zoneinfo tables installed. */
  17774. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17775. tm.tm_year = 98;
  17776. tm.tm_mon = 3;
  17777. tm.tm_mday = 5;
  17778. tm.tm_hour = 2;
  17779. tm.tm_min = 0;
  17780. tm.tm_sec = 0;
  17781. tm.tm_isdst = -1;
  17782. return mktime (&tm) != (time_t) -1;
  17783. }
  17784. static int
  17785. mktime_test1 (time_t now)
  17786. {
  17787. struct tm *lt;
  17788. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17789. }
  17790. static int
  17791. mktime_test (time_t now)
  17792. {
  17793. return (mktime_test1 (now)
  17794. && mktime_test1 ((time_t) (time_t_max - now))
  17795. && mktime_test1 ((time_t) (time_t_min + now)));
  17796. }
  17797. static int
  17798. irix_6_4_bug ()
  17799. {
  17800. /* Based on code from Ariel Faigon. */
  17801. struct tm tm;
  17802. tm.tm_year = 96;
  17803. tm.tm_mon = 3;
  17804. tm.tm_mday = 0;
  17805. tm.tm_hour = 0;
  17806. tm.tm_min = 0;
  17807. tm.tm_sec = 0;
  17808. tm.tm_isdst = -1;
  17809. mktime (&tm);
  17810. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17811. }
  17812. static int
  17813. bigtime_test (int j)
  17814. {
  17815. struct tm tm;
  17816. time_t now;
  17817. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17818. now = mktime (&tm);
  17819. if (now != (time_t) -1)
  17820. {
  17821. struct tm *lt = localtime (&now);
  17822. if (! (lt
  17823. && lt->tm_year == tm.tm_year
  17824. && lt->tm_mon == tm.tm_mon
  17825. && lt->tm_mday == tm.tm_mday
  17826. && lt->tm_hour == tm.tm_hour
  17827. && lt->tm_min == tm.tm_min
  17828. && lt->tm_sec == tm.tm_sec
  17829. && lt->tm_yday == tm.tm_yday
  17830. && lt->tm_wday == tm.tm_wday
  17831. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17832. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17833. return 0;
  17834. }
  17835. return 1;
  17836. }
  17837. static int
  17838. year_2050_test ()
  17839. {
  17840. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17841. ignoring leap seconds. */
  17842. unsigned long int answer = 2527315200UL;
  17843. struct tm tm;
  17844. time_t t;
  17845. tm.tm_year = 2050 - 1900;
  17846. tm.tm_mon = 2 - 1;
  17847. tm.tm_mday = 1;
  17848. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17849. tm.tm_isdst = -1;
  17850. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17851. instead of "TZ=America/Vancouver" in order to detect the bug even
  17852. on systems that don't support the Olson extension, or don't have the
  17853. full zoneinfo tables installed. */
  17854. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17855. t = mktime (&tm);
  17856. /* Check that the result is either a failure, or close enough
  17857. to the correct answer that we can assume the discrepancy is
  17858. due to leap seconds. */
  17859. return (t == (time_t) -1
  17860. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17861. }
  17862. int
  17863. main ()
  17864. {
  17865. time_t t, delta;
  17866. int i, j;
  17867. /* This test makes some buggy mktime implementations loop.
  17868. Give up after 60 seconds; a mktime slower than that
  17869. isn't worth using anyway. */
  17870. alarm (60);
  17871. for (;;)
  17872. {
  17873. t = (time_t_max << 1) + 1;
  17874. if (t <= time_t_max)
  17875. break;
  17876. time_t_max = t;
  17877. }
  17878. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17879. delta = time_t_max / 997; /* a suitable prime number */
  17880. for (i = 0; i < N_STRINGS; i++)
  17881. {
  17882. if (tz_strings[i])
  17883. putenv ((char*) tz_strings[i]);
  17884. for (t = 0; t <= time_t_max - delta; t += delta)
  17885. if (! mktime_test (t))
  17886. return 1;
  17887. if (! (mktime_test ((time_t) 1)
  17888. && mktime_test ((time_t) (60 * 60))
  17889. && mktime_test ((time_t) (60 * 60 * 24))))
  17890. return 1;
  17891. for (j = 1; ; j <<= 1)
  17892. if (! bigtime_test (j))
  17893. return 1;
  17894. else if (INT_MAX / 2 < j)
  17895. break;
  17896. if (! bigtime_test (INT_MAX))
  17897. return 1;
  17898. }
  17899. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17900. }
  17901. _ACEOF
  17902. if ac_fn_c_try_run "$LINENO"; then :
  17903. ac_cv_func_working_mktime=yes
  17904. else
  17905. ac_cv_func_working_mktime=no
  17906. fi
  17907. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17908. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17909. fi
  17910. fi
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17912. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17913. if test $ac_cv_func_working_mktime = no; then
  17914. case " $LIBOBJS " in
  17915. *" mktime.$ac_objext "* ) ;;
  17916. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17917. ;;
  17918. esac
  17919. fi
  17920. for ac_func in getpagesize
  17921. do :
  17922. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17923. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17924. cat >>confdefs.h <<_ACEOF
  17925. #define HAVE_GETPAGESIZE 1
  17926. _ACEOF
  17927. fi
  17928. done
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17930. $as_echo_n "checking for working mmap... " >&6; }
  17931. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17932. $as_echo_n "(cached) " >&6
  17933. else
  17934. if test "$cross_compiling" = yes; then :
  17935. ac_cv_func_mmap_fixed_mapped=no
  17936. else
  17937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17938. /* end confdefs.h. */
  17939. $ac_includes_default
  17940. /* malloc might have been renamed as rpl_malloc. */
  17941. #undef malloc
  17942. /* Thanks to Mike Haertel and Jim Avera for this test.
  17943. Here is a matrix of mmap possibilities:
  17944. mmap private not fixed
  17945. mmap private fixed at somewhere currently unmapped
  17946. mmap private fixed at somewhere already mapped
  17947. mmap shared not fixed
  17948. mmap shared fixed at somewhere currently unmapped
  17949. mmap shared fixed at somewhere already mapped
  17950. For private mappings, we should verify that changes cannot be read()
  17951. back from the file, nor mmap's back from the file at a different
  17952. address. (There have been systems where private was not correctly
  17953. implemented like the infamous i386 svr4.0, and systems where the
  17954. VM page cache was not coherent with the file system buffer cache
  17955. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17956. For shared mappings, we should conversely verify that changes get
  17957. propagated back to all the places they're supposed to be.
  17958. Grep wants private fixed already mapped.
  17959. The main things grep needs to know about mmap are:
  17960. * does it exist and is it safe to write into the mmap'd area
  17961. * how to use it (BSD variants) */
  17962. #include <fcntl.h>
  17963. #include <sys/mman.h>
  17964. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17965. char *malloc ();
  17966. #endif
  17967. /* This mess was copied from the GNU getpagesize.h. */
  17968. #ifndef HAVE_GETPAGESIZE
  17969. # ifdef _SC_PAGESIZE
  17970. # define getpagesize() sysconf(_SC_PAGESIZE)
  17971. # else /* no _SC_PAGESIZE */
  17972. # ifdef HAVE_SYS_PARAM_H
  17973. # include <sys/param.h>
  17974. # ifdef EXEC_PAGESIZE
  17975. # define getpagesize() EXEC_PAGESIZE
  17976. # else /* no EXEC_PAGESIZE */
  17977. # ifdef NBPG
  17978. # define getpagesize() NBPG * CLSIZE
  17979. # ifndef CLSIZE
  17980. # define CLSIZE 1
  17981. # endif /* no CLSIZE */
  17982. # else /* no NBPG */
  17983. # ifdef NBPC
  17984. # define getpagesize() NBPC
  17985. # else /* no NBPC */
  17986. # ifdef PAGESIZE
  17987. # define getpagesize() PAGESIZE
  17988. # endif /* PAGESIZE */
  17989. # endif /* no NBPC */
  17990. # endif /* no NBPG */
  17991. # endif /* no EXEC_PAGESIZE */
  17992. # else /* no HAVE_SYS_PARAM_H */
  17993. # define getpagesize() 8192 /* punt totally */
  17994. # endif /* no HAVE_SYS_PARAM_H */
  17995. # endif /* no _SC_PAGESIZE */
  17996. #endif /* no HAVE_GETPAGESIZE */
  17997. int
  17998. main ()
  17999. {
  18000. char *data, *data2, *data3;
  18001. const char *cdata2;
  18002. int i, pagesize;
  18003. int fd, fd2;
  18004. pagesize = getpagesize ();
  18005. /* First, make a file with some known garbage in it. */
  18006. data = (char *) malloc (pagesize);
  18007. if (!data)
  18008. return 1;
  18009. for (i = 0; i < pagesize; ++i)
  18010. *(data + i) = rand ();
  18011. umask (0);
  18012. fd = creat ("conftest.mmap", 0600);
  18013. if (fd < 0)
  18014. return 2;
  18015. if (write (fd, data, pagesize) != pagesize)
  18016. return 3;
  18017. close (fd);
  18018. /* Next, check that the tail of a page is zero-filled. File must have
  18019. non-zero length, otherwise we risk SIGBUS for entire page. */
  18020. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  18021. if (fd2 < 0)
  18022. return 4;
  18023. cdata2 = "";
  18024. if (write (fd2, cdata2, 1) != 1)
  18025. return 5;
  18026. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  18027. if (data2 == MAP_FAILED)
  18028. return 6;
  18029. for (i = 0; i < pagesize; ++i)
  18030. if (*(data2 + i))
  18031. return 7;
  18032. close (fd2);
  18033. if (munmap (data2, pagesize))
  18034. return 8;
  18035. /* Next, try to mmap the file at a fixed address which already has
  18036. something else allocated at it. If we can, also make sure that
  18037. we see the same garbage. */
  18038. fd = open ("conftest.mmap", O_RDWR);
  18039. if (fd < 0)
  18040. return 9;
  18041. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18042. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18043. return 10;
  18044. for (i = 0; i < pagesize; ++i)
  18045. if (*(data + i) != *(data2 + i))
  18046. return 11;
  18047. /* Finally, make sure that changes to the mapped area do not
  18048. percolate back to the file as seen by read(). (This is a bug on
  18049. some variants of i386 svr4.0.) */
  18050. for (i = 0; i < pagesize; ++i)
  18051. *(data2 + i) = *(data2 + i) + 1;
  18052. data3 = (char *) malloc (pagesize);
  18053. if (!data3)
  18054. return 12;
  18055. if (read (fd, data3, pagesize) != pagesize)
  18056. return 13;
  18057. for (i = 0; i < pagesize; ++i)
  18058. if (*(data + i) != *(data3 + i))
  18059. return 14;
  18060. close (fd);
  18061. return 0;
  18062. }
  18063. _ACEOF
  18064. if ac_fn_c_try_run "$LINENO"; then :
  18065. ac_cv_func_mmap_fixed_mapped=yes
  18066. else
  18067. ac_cv_func_mmap_fixed_mapped=no
  18068. fi
  18069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18070. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18071. fi
  18072. fi
  18073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18074. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18075. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18076. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  18077. fi
  18078. rm -f conftest.mmap conftest.txt
  18079. for ac_header in stdlib.h
  18080. do :
  18081. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  18082. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  18083. cat >>confdefs.h <<_ACEOF
  18084. #define HAVE_STDLIB_H 1
  18085. _ACEOF
  18086. fi
  18087. done
  18088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  18089. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  18090. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  18091. $as_echo_n "(cached) " >&6
  18092. else
  18093. if test "$cross_compiling" = yes; then :
  18094. ac_cv_func_realloc_0_nonnull=no
  18095. else
  18096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18097. /* end confdefs.h. */
  18098. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  18099. # include <stdlib.h>
  18100. #else
  18101. char *realloc ();
  18102. #endif
  18103. int
  18104. main ()
  18105. {
  18106. return ! realloc (0, 0);
  18107. ;
  18108. return 0;
  18109. }
  18110. _ACEOF
  18111. if ac_fn_c_try_run "$LINENO"; then :
  18112. ac_cv_func_realloc_0_nonnull=yes
  18113. else
  18114. ac_cv_func_realloc_0_nonnull=no
  18115. fi
  18116. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18117. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18118. fi
  18119. fi
  18120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  18121. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  18122. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  18123. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  18124. else
  18125. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  18126. case " $LIBOBJS " in
  18127. *" realloc.$ac_objext "* ) ;;
  18128. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  18129. ;;
  18130. esac
  18131. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  18132. fi
  18133. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  18134. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  18135. cat >>confdefs.h <<_ACEOF
  18136. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  18137. _ACEOF
  18138. fi
  18139. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  18140. do :
  18141. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18142. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18143. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18144. cat >>confdefs.h <<_ACEOF
  18145. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18146. _ACEOF
  18147. fi
  18148. done
  18149. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  18150. do :
  18151. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18152. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18153. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18154. cat >>confdefs.h <<_ACEOF
  18155. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18156. _ACEOF
  18157. fi
  18158. done
  18159. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  18160. do :
  18161. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18162. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18163. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18164. cat >>confdefs.h <<_ACEOF
  18165. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18166. _ACEOF
  18167. fi
  18168. done
  18169. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  18170. do :
  18171. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18172. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18173. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18174. cat >>confdefs.h <<_ACEOF
  18175. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18176. _ACEOF
  18177. fi
  18178. done
  18179. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  18180. do :
  18181. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18182. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18183. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18184. cat >>confdefs.h <<_ACEOF
  18185. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18186. _ACEOF
  18187. fi
  18188. done
  18189. for ac_func in ioperm
  18190. do :
  18191. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  18192. if test "x$ac_cv_func_ioperm" = xyes; then :
  18193. cat >>confdefs.h <<_ACEOF
  18194. #define HAVE_IOPERM 1
  18195. _ACEOF
  18196. fi
  18197. done
  18198. for ac_func in strlcpy
  18199. do :
  18200. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  18201. if test "x$ac_cv_func_strlcpy" = xyes; then :
  18202. cat >>confdefs.h <<_ACEOF
  18203. #define HAVE_STRLCPY 1
  18204. _ACEOF
  18205. have_strlcpy=true
  18206. else
  18207. have_strlcpy=false
  18208. fi
  18209. done
  18210. if test x$have_strlcpy = xtrue; then
  18211. SYSTEM_STRLCPY_TRUE=
  18212. SYSTEM_STRLCPY_FALSE='#'
  18213. else
  18214. SYSTEM_STRLCPY_TRUE='#'
  18215. SYSTEM_STRLCPY_FALSE=
  18216. fi
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  18218. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  18219. if ${ac_cv_c_bigendian+:} false; then :
  18220. $as_echo_n "(cached) " >&6
  18221. else
  18222. ac_cv_c_bigendian=unknown
  18223. # See if we're dealing with a universal compiler.
  18224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18225. /* end confdefs.h. */
  18226. #ifndef __APPLE_CC__
  18227. not a universal capable compiler
  18228. #endif
  18229. typedef int dummy;
  18230. _ACEOF
  18231. if ac_fn_c_try_compile "$LINENO"; then :
  18232. # Check for potential -arch flags. It is not universal unless
  18233. # there are at least two -arch flags with different values.
  18234. ac_arch=
  18235. ac_prev=
  18236. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  18237. if test -n "$ac_prev"; then
  18238. case $ac_word in
  18239. i?86 | x86_64 | ppc | ppc64)
  18240. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  18241. ac_arch=$ac_word
  18242. else
  18243. ac_cv_c_bigendian=universal
  18244. break
  18245. fi
  18246. ;;
  18247. esac
  18248. ac_prev=
  18249. elif test "x$ac_word" = "x-arch"; then
  18250. ac_prev=arch
  18251. fi
  18252. done
  18253. fi
  18254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18255. if test $ac_cv_c_bigendian = unknown; then
  18256. # See if sys/param.h defines the BYTE_ORDER macro.
  18257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18258. /* end confdefs.h. */
  18259. #include <sys/types.h>
  18260. #include <sys/param.h>
  18261. int
  18262. main ()
  18263. {
  18264. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  18265. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  18266. && LITTLE_ENDIAN)
  18267. bogus endian macros
  18268. #endif
  18269. ;
  18270. return 0;
  18271. }
  18272. _ACEOF
  18273. if ac_fn_c_try_compile "$LINENO"; then :
  18274. # It does; now see whether it defined to BIG_ENDIAN or not.
  18275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18276. /* end confdefs.h. */
  18277. #include <sys/types.h>
  18278. #include <sys/param.h>
  18279. int
  18280. main ()
  18281. {
  18282. #if BYTE_ORDER != BIG_ENDIAN
  18283. not big endian
  18284. #endif
  18285. ;
  18286. return 0;
  18287. }
  18288. _ACEOF
  18289. if ac_fn_c_try_compile "$LINENO"; then :
  18290. ac_cv_c_bigendian=yes
  18291. else
  18292. ac_cv_c_bigendian=no
  18293. fi
  18294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18295. fi
  18296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18297. fi
  18298. if test $ac_cv_c_bigendian = unknown; then
  18299. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  18300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18301. /* end confdefs.h. */
  18302. #include <limits.h>
  18303. int
  18304. main ()
  18305. {
  18306. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  18307. bogus endian macros
  18308. #endif
  18309. ;
  18310. return 0;
  18311. }
  18312. _ACEOF
  18313. if ac_fn_c_try_compile "$LINENO"; then :
  18314. # It does; now see whether it defined to _BIG_ENDIAN or not.
  18315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18316. /* end confdefs.h. */
  18317. #include <limits.h>
  18318. int
  18319. main ()
  18320. {
  18321. #ifndef _BIG_ENDIAN
  18322. not big endian
  18323. #endif
  18324. ;
  18325. return 0;
  18326. }
  18327. _ACEOF
  18328. if ac_fn_c_try_compile "$LINENO"; then :
  18329. ac_cv_c_bigendian=yes
  18330. else
  18331. ac_cv_c_bigendian=no
  18332. fi
  18333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18334. fi
  18335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18336. fi
  18337. if test $ac_cv_c_bigendian = unknown; then
  18338. # Compile a test program.
  18339. if test "$cross_compiling" = yes; then :
  18340. # Try to guess by grepping values from an object file.
  18341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18342. /* end confdefs.h. */
  18343. short int ascii_mm[] =
  18344. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  18345. short int ascii_ii[] =
  18346. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  18347. int use_ascii (int i) {
  18348. return ascii_mm[i] + ascii_ii[i];
  18349. }
  18350. short int ebcdic_ii[] =
  18351. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  18352. short int ebcdic_mm[] =
  18353. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18354. int use_ebcdic (int i) {
  18355. return ebcdic_mm[i] + ebcdic_ii[i];
  18356. }
  18357. extern int foo;
  18358. int
  18359. main ()
  18360. {
  18361. return use_ascii (foo) == use_ebcdic (foo);
  18362. ;
  18363. return 0;
  18364. }
  18365. _ACEOF
  18366. if ac_fn_c_try_compile "$LINENO"; then :
  18367. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18368. ac_cv_c_bigendian=yes
  18369. fi
  18370. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18371. if test "$ac_cv_c_bigendian" = unknown; then
  18372. ac_cv_c_bigendian=no
  18373. else
  18374. # finding both strings is unlikely to happen, but who knows?
  18375. ac_cv_c_bigendian=unknown
  18376. fi
  18377. fi
  18378. fi
  18379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18380. else
  18381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18382. /* end confdefs.h. */
  18383. $ac_includes_default
  18384. int
  18385. main ()
  18386. {
  18387. /* Are we little or big endian? From Harbison&Steele. */
  18388. union
  18389. {
  18390. long int l;
  18391. char c[sizeof (long int)];
  18392. } u;
  18393. u.l = 1;
  18394. return u.c[sizeof (long int) - 1] == 1;
  18395. ;
  18396. return 0;
  18397. }
  18398. _ACEOF
  18399. if ac_fn_c_try_run "$LINENO"; then :
  18400. ac_cv_c_bigendian=no
  18401. else
  18402. ac_cv_c_bigendian=yes
  18403. fi
  18404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18405. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18406. fi
  18407. fi
  18408. fi
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18410. $as_echo "$ac_cv_c_bigendian" >&6; }
  18411. case $ac_cv_c_bigendian in #(
  18412. yes)
  18413. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18414. ;; #(
  18415. no)
  18416. ;; #(
  18417. universal)
  18418. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18419. ;; #(
  18420. *)
  18421. as_fn_error $? "unknown endianness
  18422. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18423. esac
  18424. if test x$ac_cv_c_bigendian = xyes ; then
  18425. WORDS_BIGENDIAN_TRUE=
  18426. WORDS_BIGENDIAN_FALSE='#'
  18427. else
  18428. WORDS_BIGENDIAN_TRUE='#'
  18429. WORDS_BIGENDIAN_FALSE=
  18430. fi
  18431. # Check whether --enable-asan was given.
  18432. if test "${enable_asan+set}" = set; then :
  18433. enableval=$enable_asan;
  18434. fi
  18435. if test "x$enable_asan" = "xyes"; then
  18436. build_asan=yes
  18437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18438. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18439. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18440. $as_echo_n "(cached) " >&6
  18441. else
  18442. ac_check_lib_save_LIBS=$LIBS
  18443. LIBS="-lasan $LIBS"
  18444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18445. /* end confdefs.h. */
  18446. /* Override any GCC internal prototype to avoid an error.
  18447. Use char because int might match the return type of a GCC
  18448. builtin and then its argument prototype would still apply. */
  18449. #ifdef __cplusplus
  18450. extern "C"
  18451. #endif
  18452. char __asan_report_error ();
  18453. int
  18454. main ()
  18455. {
  18456. return __asan_report_error ();
  18457. ;
  18458. return 0;
  18459. }
  18460. _ACEOF
  18461. if ac_fn_c_try_link "$LINENO"; then :
  18462. ac_cv_lib_asan___asan_report_error=yes
  18463. else
  18464. ac_cv_lib_asan___asan_report_error=no
  18465. fi
  18466. rm -f core conftest.err conftest.$ac_objext \
  18467. conftest$ac_exeext conftest.$ac_ext
  18468. LIBS=$ac_check_lib_save_LIBS
  18469. fi
  18470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18471. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18472. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18473. cat >>confdefs.h <<_ACEOF
  18474. #define HAVE_LIBASAN 1
  18475. _ACEOF
  18476. LIBS="-lasan $LIBS"
  18477. else
  18478. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18479. fi
  18480. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18481. LDFLAGS="-lasan ${LDFLAGS}"
  18482. else
  18483. build_asan=no
  18484. fi
  18485. debug=no
  18486. debug_flag=NDEBUG
  18487. debug_run_time_flag=
  18488. # Check whether --enable-debug was given.
  18489. if test "${enable_debug+set}" = set; then :
  18490. enableval=$enable_debug; if test x$enableval = xyes; then
  18491. debug=yes
  18492. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18493. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18494. # We may also want to add:
  18495. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18496. debug_flag=DEBUG
  18497. debug_run_time_flag=--dbug=1
  18498. $as_echo "#define DEBUG 1" >>confdefs.h
  18499. fi
  18500. fi
  18501. extra_debug=no
  18502. extra_debug_flag=NEXTRA_DBUG
  18503. # Check whether --enable-extra-debug was given.
  18504. if test "${enable_extra_debug+set}" = set; then :
  18505. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18506. extra_debug=yes
  18507. extra_debug_flag=EXTRA_DEBUG
  18508. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18509. fi
  18510. fi
  18511. timestamp_trace=no
  18512. # Check whether --enable-timestamp-trace was given.
  18513. if test "${enable_timestamp_trace+set}" = set; then :
  18514. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18515. timestamp_trace=yes
  18516. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18517. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18518. fi
  18519. fi
  18520. # Check whether --enable-dmalloc was given.
  18521. if test "${enable_dmalloc+set}" = set; then :
  18522. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18523. dmalloc=yes
  18524. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18525. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18526. CFLAGS="${CFLAGS} -I/opt/local/include"
  18527. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18528. fi
  18529. fi
  18530. # Check whether --enable-pedantic was given.
  18531. if test "${enable_pedantic+set}" = set; then :
  18532. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18533. CFLAGS="$CFLAGS -pedantic"
  18534. fi
  18535. fi
  18536. # Check whether --enable-efence was given.
  18537. if test "${enable_efence+set}" = set; then :
  18538. enableval=$enable_efence; if test x$enableval = xyes; then
  18539. CFLAGS="$CFLAGS -lefence"
  18540. $as_echo "#define EFENCE 1" >>confdefs.h
  18541. fi
  18542. fi
  18543. # Check whether --enable-gprof was given.
  18544. if test "${enable_gprof+set}" = set; then :
  18545. enableval=$enable_gprof; if test x$enableval = xyes; then
  18546. if test $debug = yes; then
  18547. CFLAGS="$CFLAGS -pg"
  18548. else
  18549. # GPROF requires gdb
  18550. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18551. fi
  18552. $as_echo "#define GPROF 1" >>confdefs.h
  18553. fi
  18554. fi
  18555. enable_pcap_config=no
  18556. # Check whether --enable-pcapconfig was given.
  18557. if test "${enable_pcapconfig+set}" = set; then :
  18558. enableval=$enable_pcapconfig;
  18559. if test $enableval = yes; then
  18560. enable_pcap_config=yes
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18562. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18563. else
  18564. enable_pcap_config=no
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18566. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18567. fi
  18568. else
  18569. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18570. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18571. fi
  18572. use64bit_counters=yes
  18573. # Check whether --enable-64bits was given.
  18574. if test "${enable_64bits+set}" = set; then :
  18575. enableval=$enable_64bits;
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18577. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18578. else
  18579. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18580. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18581. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18582. fi
  18583. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18584. # so we can use _U_ to flag unused function arguments and not get warnings
  18585. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18586. # function argument will compile with non-GCC compilers.
  18587. #
  18588. if test "x$GCC" = "xyes" ; then
  18589. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18590. else
  18591. CFLAGS="-D_U_=\"\" $CFLAGS"
  18592. fi
  18593. # Check whether --enable-force-bpf was given.
  18594. if test "${enable_force_bpf+set}" = set; then :
  18595. enableval=$enable_force_bpf;
  18596. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18597. fi
  18598. # Check whether --enable-force-pf was given.
  18599. if test "${enable_force_pf+set}" = set; then :
  18600. enableval=$enable_force_pf;
  18601. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18602. fi
  18603. # Check whether --enable-force-libdnet was given.
  18604. if test "${enable_force_libdnet+set}" = set; then :
  18605. enableval=$enable_force_libdnet;
  18606. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18607. fi
  18608. # Check whether --enable-force-inject was given.
  18609. if test "${enable_force_inject+set}" = set; then :
  18610. enableval=$enable_force_inject;
  18611. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18612. fi
  18613. # Check whether --enable-force-sendpacket was given.
  18614. if test "${enable_force_sendpacket+set}" = set; then :
  18615. enableval=$enable_force_sendpacket;
  18616. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18617. fi
  18618. static_link=no
  18619. dynamic_link=yes
  18620. # Check whether --enable-static-link was given.
  18621. if test "${enable_static_link+set}" = set; then :
  18622. enableval=$enable_static_link;
  18623. if test $enableval = yes; then
  18624. static_link=yes
  18625. dynamic_link=no
  18626. fi
  18627. fi
  18628. # Check whether --enable-dynamic-link was given.
  18629. if test "${enable_dynamic_link+set}" = set; then :
  18630. enableval=$enable_dynamic_link;
  18631. if test $enableval = no; then
  18632. dynamic_link=no
  18633. static_link=yes
  18634. elif test $static_link = yes; then
  18635. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18636. fi
  18637. fi
  18638. if test $static_link = yes; then
  18639. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18640. else
  18641. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18642. fi
  18643. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18644. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18645. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18646. inet_aton=yes
  18647. else
  18648. inet_aton=no
  18649. fi
  18650. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18651. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18652. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18653. inet_pton=yes
  18654. else
  18655. inet_pton=no
  18656. fi
  18657. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18658. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18659. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18660. inet_ntop=yes
  18661. else
  18662. inet_ntop=no
  18663. fi
  18664. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18665. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18666. fi
  18667. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18668. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18669. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18670. inet_addr=yes
  18671. else
  18672. inet_addr=no
  18673. fi
  18674. if test x$inet_addr = no ; then
  18675. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18676. fi
  18677. have_tuntap=no
  18678. # Check whether --enable-tuntap was given.
  18679. if test "${enable_tuntap+set}" = set; then :
  18680. enableval=$enable_tuntap; :
  18681. else
  18682. case "$build_os" in
  18683. linux*)
  18684. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18685. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18686. have_tuntap=yes
  18687. fi
  18688. ;;
  18689. *)
  18690. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18691. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18692. have_tuntap=yes
  18693. fi
  18694. ;;
  18695. esac
  18696. fi
  18697. if test $have_tuntap = yes ; then
  18698. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18699. fi
  18700. foundpcap=no
  18701. pf_ring_found=no
  18702. pf_ring_lib=${with_pfring_lib}
  18703. using_pcap_config=no
  18704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18705. $as_echo_n "checking for libpcap... " >&6; }
  18706. # Check whether --with-libpcap was given.
  18707. if test "${with_libpcap+set}" = set; then :
  18708. withval=$with_libpcap;
  18709. testdir=$withval
  18710. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18711. if ! test -f "${incl}"; then
  18712. continue
  18713. fi
  18714. LPCAPINC=${incl}
  18715. LPCAPINCDIR=${testdir}
  18716. if test $dynamic_link = yes; then
  18717. for ext in .dylib .so .tbd ; do
  18718. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18719. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18720. if test -n "${sharefile}"; then
  18721. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18722. foundpcap=$testdir
  18723. break
  18724. fi
  18725. done
  18726. if ! test $foundpcap = no; then
  18727. break
  18728. fi
  18729. done
  18730. else
  18731. for ext in ${libext} .a .A.tbd ; do
  18732. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18733. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18734. if test -n "${staticfile}"; then
  18735. LPCAPLIB="${staticfile}"
  18736. foundpcap=${testdir}
  18737. break
  18738. fi
  18739. done
  18740. if ! test $foundpcap = no; then
  18741. ## could be PF_RING
  18742. #
  18743. # library is static and in PF_RING build tree
  18744. #
  18745. # Need access to libpfring library
  18746. # and must find an associated libpfring.a
  18747. if test -n "${with_pfring_lib}"; then
  18748. if test -f ${with_pfring_lib}; then
  18749. pf_ring_lib=${with_pfring_lib}
  18750. pf_ring_found=yes
  18751. else
  18752. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18753. fi
  18754. else
  18755. ## search locally for most likely PF_RING library
  18756. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  18757. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  18758. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  18759. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  18760. ${foundpcap}/../lib/libpfring.a; do
  18761. if test -f "${lib}"; then
  18762. pf_ring_lib=${lib}
  18763. pf_ring_found=yes
  18764. break
  18765. fi
  18766. done
  18767. fi
  18768. break
  18769. fi
  18770. done
  18771. fi
  18772. if test $foundpcap = no; then
  18773. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18774. fi
  18775. break
  18776. done
  18777. else
  18778. #
  18779. # Look for pcap-config.
  18780. #
  18781. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18782. #
  18783. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18784. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18785. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18786. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18787. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18788. # 'pcap-config' script that only occasionally works for dynamic definitions, and defintely
  18789. # does not work for static.
  18790. #
  18791. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18792. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18793. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18794. # libpcap fucntional. In the future, there may be more.
  18795. #
  18796. # (sigh)
  18797. #
  18798. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18799. # it may work for you.
  18800. if test $enable_pcap_config = yes; then
  18801. if test -n "$ac_tool_prefix"; then
  18802. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18803. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18805. $as_echo_n "checking for $ac_word... " >&6; }
  18806. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18807. $as_echo_n "(cached) " >&6
  18808. else
  18809. case $PCAP_CONFIG in
  18810. [\\/]* | ?:[\\/]*)
  18811. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18812. ;;
  18813. *)
  18814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18815. for as_dir in $PATH
  18816. do
  18817. IFS=$as_save_IFS
  18818. test -z "$as_dir" && as_dir=.
  18819. for ac_exec_ext in '' $ac_executable_extensions; do
  18820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18821. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18823. break 2
  18824. fi
  18825. done
  18826. done
  18827. IFS=$as_save_IFS
  18828. ;;
  18829. esac
  18830. fi
  18831. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18832. if test -n "$PCAP_CONFIG"; then
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18834. $as_echo "$PCAP_CONFIG" >&6; }
  18835. else
  18836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18837. $as_echo "no" >&6; }
  18838. fi
  18839. fi
  18840. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18841. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18842. # Extract the first word of "pcap-config", so it can be a program name with args.
  18843. set dummy pcap-config; ac_word=$2
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18845. $as_echo_n "checking for $ac_word... " >&6; }
  18846. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18847. $as_echo_n "(cached) " >&6
  18848. else
  18849. case $ac_pt_PCAP_CONFIG in
  18850. [\\/]* | ?:[\\/]*)
  18851. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18852. ;;
  18853. *)
  18854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18855. for as_dir in $PATH
  18856. do
  18857. IFS=$as_save_IFS
  18858. test -z "$as_dir" && as_dir=.
  18859. for ac_exec_ext in '' $ac_executable_extensions; do
  18860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18861. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18863. break 2
  18864. fi
  18865. done
  18866. done
  18867. IFS=$as_save_IFS
  18868. ;;
  18869. esac
  18870. fi
  18871. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18872. if test -n "$ac_pt_PCAP_CONFIG"; then
  18873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18874. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18875. else
  18876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18877. $as_echo "no" >&6; }
  18878. fi
  18879. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18880. PCAP_CONFIG=""
  18881. else
  18882. case $cross_compiling:$ac_tool_warned in
  18883. yes:)
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18886. ac_tool_warned=yes ;;
  18887. esac
  18888. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18889. fi
  18890. else
  18891. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18892. fi
  18893. if test -n "$PCAP_CONFIG"; then
  18894. #
  18895. # Found - use it to get the include flags for
  18896. # libpcap and the flags to link with libpcap.
  18897. #
  18898. # Please read section 11.6 "Shell Substitutions"
  18899. # in the autoconf manual before doing anything
  18900. # to this that involves quoting. Especially note
  18901. # the statement "There is just no portable way to use
  18902. # double-quoted strings inside double-quoted back-quoted
  18903. # expressions (pfew!)."
  18904. #
  18905. if test $dynamic_link = yes; then
  18906. LPCAPLIB=$($PCAP_CONFIG --libs)
  18907. else
  18908. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18909. fi
  18910. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18911. if test -n "$LPCAPLIB"; then
  18912. foundpcap=yes
  18913. using_pcap_config=yes
  18914. else
  18915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18916. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18917. fi
  18918. fi
  18919. fi
  18920. if test ! $foundpcap = yes; then
  18921. #
  18922. # Not found; look for pcap.
  18923. #
  18924. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18925. if test -f "${testdir}/include/pcap.h"; then
  18926. LPCAPINC="${testdir}/include/pcap.h"
  18927. LPCAPINCDIR="${testdir}/include"
  18928. if test $dynamic_link = yes; then
  18929. for ext in .dylib .so .tbd; do
  18930. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18931. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18932. if test -n "${sharefile}"; then
  18933. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18934. foundpcap=$testdir
  18935. break
  18936. fi
  18937. done
  18938. if ! test $foundpcap = no; then
  18939. break
  18940. fi
  18941. done
  18942. fi
  18943. if test $foundpcap = no ; then
  18944. for ext in ${libext} .a .A.tbd ; do
  18945. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18946. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18947. if test -n "${staticfile}"; then
  18948. LPCAPLIB="${staticfile}"
  18949. foundpcap=$testdir
  18950. break
  18951. fi
  18952. done
  18953. if ! test $foundpcap = no; then
  18954. break
  18955. fi
  18956. done
  18957. fi
  18958. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18959. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18960. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18961. foundpcap=$testdir
  18962. fi
  18963. fi
  18964. if ! test $foundpcap = no; then
  18965. break
  18966. fi
  18967. done
  18968. fi
  18969. fi
  18970. if test $foundpcap = no ; then
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18972. $as_echo "no" >&6; }
  18973. as_fn_error $? "libpcap not found" "$LINENO" 5
  18974. else
  18975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18976. $as_echo "$foundpcap" >&6; }
  18977. fi
  18978. # libpcap can require libnl
  18979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18980. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18981. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18982. $as_echo_n "(cached) " >&6
  18983. else
  18984. ac_func_search_save_LIBS=$LIBS
  18985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18986. /* end confdefs.h. */
  18987. /* Override any GCC internal prototype to avoid an error.
  18988. Use char because int might match the return type of a GCC
  18989. builtin and then its argument prototype would still apply. */
  18990. #ifdef __cplusplus
  18991. extern "C"
  18992. #endif
  18993. char nl_handle_alloc ();
  18994. int
  18995. main ()
  18996. {
  18997. return nl_handle_alloc ();
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. for ac_lib in '' nl; do
  19003. if test -z "$ac_lib"; then
  19004. ac_res="none required"
  19005. else
  19006. ac_res=-l$ac_lib
  19007. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19008. fi
  19009. if ac_fn_c_try_link "$LINENO"; then :
  19010. ac_cv_search_nl_handle_alloc=$ac_res
  19011. fi
  19012. rm -f core conftest.err conftest.$ac_objext \
  19013. conftest$ac_exeext
  19014. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  19015. break
  19016. fi
  19017. done
  19018. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  19019. else
  19020. ac_cv_search_nl_handle_alloc=no
  19021. fi
  19022. rm conftest.$ac_ext
  19023. LIBS=$ac_func_search_save_LIBS
  19024. fi
  19025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  19026. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  19027. ac_res=$ac_cv_search_nl_handle_alloc
  19028. if test "$ac_res" != no; then :
  19029. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19030. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  19031. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  19032. fi
  19033. ##
  19034. ## If not automatically configured,
  19035. ## check for newer and full-featured libpcap's
  19036. ##
  19037. if ! test $using_pcap_config = yes; then
  19038. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  19039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  19040. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  19041. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  19042. $as_echo_n "(cached) " >&6
  19043. else
  19044. ac_check_lib_save_LIBS=$LIBS
  19045. LIBS="-lnl $LIBS"
  19046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19047. /* end confdefs.h. */
  19048. /* Override any GCC internal prototype to avoid an error.
  19049. Use char because int might match the return type of a GCC
  19050. builtin and then its argument prototype would still apply. */
  19051. #ifdef __cplusplus
  19052. extern "C"
  19053. #endif
  19054. char nl_cache_alloc ();
  19055. int
  19056. main ()
  19057. {
  19058. return nl_cache_alloc ();
  19059. ;
  19060. return 0;
  19061. }
  19062. _ACEOF
  19063. if ac_fn_c_try_link "$LINENO"; then :
  19064. ac_cv_lib_nl_nl_cache_alloc=yes
  19065. else
  19066. ac_cv_lib_nl_nl_cache_alloc=no
  19067. fi
  19068. rm -f core conftest.err conftest.$ac_objext \
  19069. conftest$ac_exeext conftest.$ac_ext
  19070. LIBS=$ac_check_lib_save_LIBS
  19071. fi
  19072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  19073. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  19074. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  19075. nl_found=yes
  19076. fi
  19077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  19078. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  19079. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  19080. $as_echo_n "(cached) " >&6
  19081. else
  19082. ac_check_lib_save_LIBS=$LIBS
  19083. LIBS="-lnl-genl-3 $LIBS"
  19084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19085. /* end confdefs.h. */
  19086. /* Override any GCC internal prototype to avoid an error.
  19087. Use char because int might match the return type of a GCC
  19088. builtin and then its argument prototype would still apply. */
  19089. #ifdef __cplusplus
  19090. extern "C"
  19091. #endif
  19092. char genl_connect ();
  19093. int
  19094. main ()
  19095. {
  19096. return genl_connect ();
  19097. ;
  19098. return 0;
  19099. }
  19100. _ACEOF
  19101. if ac_fn_c_try_link "$LINENO"; then :
  19102. ac_cv_lib_nl_genl_3_genl_connect=yes
  19103. else
  19104. ac_cv_lib_nl_genl_3_genl_connect=no
  19105. fi
  19106. rm -f core conftest.err conftest.$ac_objext \
  19107. conftest$ac_exeext conftest.$ac_ext
  19108. LIBS=$ac_check_lib_save_LIBS
  19109. fi
  19110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  19111. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  19112. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  19113. nl_genl_3_found=yes
  19114. fi
  19115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  19116. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  19117. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  19118. $as_echo_n "(cached) " >&6
  19119. else
  19120. ac_check_lib_save_LIBS=$LIBS
  19121. LIBS="-lnl-3 $LIBS"
  19122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19123. /* end confdefs.h. */
  19124. /* Override any GCC internal prototype to avoid an error.
  19125. Use char because int might match the return type of a GCC
  19126. builtin and then its argument prototype would still apply. */
  19127. #ifdef __cplusplus
  19128. extern "C"
  19129. #endif
  19130. char nl_cache_alloc ();
  19131. int
  19132. main ()
  19133. {
  19134. return nl_cache_alloc ();
  19135. ;
  19136. return 0;
  19137. }
  19138. _ACEOF
  19139. if ac_fn_c_try_link "$LINENO"; then :
  19140. ac_cv_lib_nl_3_nl_cache_alloc=yes
  19141. else
  19142. ac_cv_lib_nl_3_nl_cache_alloc=no
  19143. fi
  19144. rm -f core conftest.err conftest.$ac_objext \
  19145. conftest$ac_exeext conftest.$ac_ext
  19146. LIBS=$ac_check_lib_save_LIBS
  19147. fi
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  19149. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  19150. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  19151. nl_3_found=yes
  19152. fi
  19153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  19154. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  19155. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  19156. $as_echo_n "(cached) " >&6
  19157. else
  19158. ac_check_lib_save_LIBS=$LIBS
  19159. LIBS="-ldbus-1 $LIBS"
  19160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19161. /* end confdefs.h. */
  19162. /* Override any GCC internal prototype to avoid an error.
  19163. Use char because int might match the return type of a GCC
  19164. builtin and then its argument prototype would still apply. */
  19165. #ifdef __cplusplus
  19166. extern "C"
  19167. #endif
  19168. char dbus_malloc ();
  19169. int
  19170. main ()
  19171. {
  19172. return dbus_malloc ();
  19173. ;
  19174. return 0;
  19175. }
  19176. _ACEOF
  19177. if ac_fn_c_try_link "$LINENO"; then :
  19178. ac_cv_lib_dbus_1_dbus_malloc=yes
  19179. else
  19180. ac_cv_lib_dbus_1_dbus_malloc=no
  19181. fi
  19182. rm -f core conftest.err conftest.$ac_objext \
  19183. conftest$ac_exeext conftest.$ac_ext
  19184. LIBS=$ac_check_lib_save_LIBS
  19185. fi
  19186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  19187. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  19188. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  19189. dbus_1_found=yes
  19190. fi
  19191. if test "$nl_found" = "yes"; then
  19192. LPCAPLIB="$LPCAPLIB -lnl"
  19193. fi
  19194. if test "$nl_genl_3_found" = "yes"; then
  19195. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  19196. fi
  19197. if test "$nl_3_found" = "yes"; then
  19198. LPCAPLIB="$LPCAPLIB -lnl-3"
  19199. fi
  19200. if test "$dbus_1_found" = "yes"; then
  19201. LPCAPLIB="$LPCAPLIB -ldbus-1"
  19202. fi
  19203. ## See if prereqs for PF_RING exist
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  19205. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  19206. if ${ac_cv_lib_numa_numa_available+:} false; then :
  19207. $as_echo_n "(cached) " >&6
  19208. else
  19209. ac_check_lib_save_LIBS=$LIBS
  19210. LIBS="-lnuma $LIBS"
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. /* Override any GCC internal prototype to avoid an error.
  19214. Use char because int might match the return type of a GCC
  19215. builtin and then its argument prototype would still apply. */
  19216. #ifdef __cplusplus
  19217. extern "C"
  19218. #endif
  19219. char numa_available ();
  19220. int
  19221. main ()
  19222. {
  19223. return numa_available ();
  19224. ;
  19225. return 0;
  19226. }
  19227. _ACEOF
  19228. if ac_fn_c_try_link "$LINENO"; then :
  19229. ac_cv_lib_numa_numa_available=yes
  19230. else
  19231. ac_cv_lib_numa_numa_available=no
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext \
  19234. conftest$ac_exeext conftest.$ac_ext
  19235. LIBS=$ac_check_lib_save_LIBS
  19236. fi
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  19238. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  19239. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  19240. numa_found=yes
  19241. fi
  19242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  19243. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  19244. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  19245. $as_echo_n "(cached) " >&6
  19246. else
  19247. ac_check_lib_save_LIBS=$LIBS
  19248. LIBS="-lpthread $LIBS"
  19249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19250. /* end confdefs.h. */
  19251. /* Override any GCC internal prototype to avoid an error.
  19252. Use char because int might match the return type of a GCC
  19253. builtin and then its argument prototype would still apply. */
  19254. #ifdef __cplusplus
  19255. extern "C"
  19256. #endif
  19257. char pthread_create ();
  19258. int
  19259. main ()
  19260. {
  19261. return pthread_create ();
  19262. ;
  19263. return 0;
  19264. }
  19265. _ACEOF
  19266. if ac_fn_c_try_link "$LINENO"; then :
  19267. ac_cv_lib_pthread_pthread_create=yes
  19268. else
  19269. ac_cv_lib_pthread_pthread_create=no
  19270. fi
  19271. rm -f core conftest.err conftest.$ac_objext \
  19272. conftest$ac_exeext conftest.$ac_ext
  19273. LIBS=$ac_check_lib_save_LIBS
  19274. fi
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  19276. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  19277. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  19278. pthread_found=yes
  19279. fi
  19280. if test $pf_ring_found = yes; then
  19281. if ! test "${numa_found}" = "yes"; then
  19282. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  19283. fi
  19284. if ! test "${pthread_found}" = "yes"; then
  19285. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  19286. fi
  19287. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  19288. fi
  19289. fi
  19290. OLDLIBS="$LIBS"
  19291. if test -n "$LPCAPINCDIR"; then
  19292. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19293. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19294. else
  19295. OLDCFLAGS="$CFLAGS"
  19296. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  19297. LPCAPINC="$LPCAPINCDIR/pcap.h"
  19298. fi
  19299. LIBS="$LPCAPLIB"
  19300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  19301. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  19302. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19303. $as_echo_n "(cached) " >&6
  19304. else
  19305. ac_func_search_save_LIBS=$LIBS
  19306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19307. /* end confdefs.h. */
  19308. /* Override any GCC internal prototype to avoid an error.
  19309. Use char because int might match the return type of a GCC
  19310. builtin and then its argument prototype would still apply. */
  19311. #ifdef __cplusplus
  19312. extern "C"
  19313. #endif
  19314. char pcap_get_pfring_id ();
  19315. int
  19316. main ()
  19317. {
  19318. return pcap_get_pfring_id ();
  19319. ;
  19320. return 0;
  19321. }
  19322. _ACEOF
  19323. for ac_lib in '' pcap; do
  19324. if test -z "$ac_lib"; then
  19325. ac_res="none required"
  19326. else
  19327. ac_res=-l$ac_lib
  19328. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19329. fi
  19330. if ac_fn_c_try_link "$LINENO"; then :
  19331. ac_cv_search_pcap_get_pfring_id=$ac_res
  19332. fi
  19333. rm -f core conftest.err conftest.$ac_objext \
  19334. conftest$ac_exeext
  19335. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19336. break
  19337. fi
  19338. done
  19339. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19340. else
  19341. ac_cv_search_pcap_get_pfring_id=no
  19342. fi
  19343. rm conftest.$ac_ext
  19344. LIBS=$ac_func_search_save_LIBS
  19345. fi
  19346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  19347. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  19348. ac_res=$ac_cv_search_pcap_get_pfring_id
  19349. if test "$ac_res" != no; then :
  19350. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19351. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  19352. fi
  19353. ## Does libpcap work with selected libraries?
  19354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  19355. $as_echo_n "checking for library containing pcap_close... " >&6; }
  19356. if ${ac_cv_search_pcap_close+:} false; then :
  19357. $as_echo_n "(cached) " >&6
  19358. else
  19359. ac_func_search_save_LIBS=$LIBS
  19360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19361. /* end confdefs.h. */
  19362. /* Override any GCC internal prototype to avoid an error.
  19363. Use char because int might match the return type of a GCC
  19364. builtin and then its argument prototype would still apply. */
  19365. #ifdef __cplusplus
  19366. extern "C"
  19367. #endif
  19368. char pcap_close ();
  19369. int
  19370. main ()
  19371. {
  19372. return pcap_close ();
  19373. ;
  19374. return 0;
  19375. }
  19376. _ACEOF
  19377. for ac_lib in '' pcap; do
  19378. if test -z "$ac_lib"; then
  19379. ac_res="none required"
  19380. else
  19381. ac_res=-l$ac_lib
  19382. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19383. fi
  19384. if ac_fn_c_try_link "$LINENO"; then :
  19385. ac_cv_search_pcap_close=$ac_res
  19386. fi
  19387. rm -f core conftest.err conftest.$ac_objext \
  19388. conftest$ac_exeext
  19389. if ${ac_cv_search_pcap_close+:} false; then :
  19390. break
  19391. fi
  19392. done
  19393. if ${ac_cv_search_pcap_close+:} false; then :
  19394. else
  19395. ac_cv_search_pcap_close=no
  19396. fi
  19397. rm conftest.$ac_ext
  19398. LIBS=$ac_func_search_save_LIBS
  19399. fi
  19400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19401. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19402. ac_res=$ac_cv_search_pcap_close
  19403. if test "$ac_res" != no; then :
  19404. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19405. else
  19406. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19407. fi
  19408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  19409. $as_echo_n "checking for libpcap version... " >&6; }
  19410. if test "$cross_compiling" = yes; then :
  19411. libpcap_version_096=yes
  19412. else
  19413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19414. /* end confdefs.h. */
  19415. #include <string.h>
  19416. #include <stdlib.h>
  19417. #include <stdio.h>
  19418. #include "$LPCAPINC"
  19419. #define PCAP_TEST "0.9.6"
  19420. int
  19421. main ()
  19422. {
  19423. /*
  19424. * simple proggy to test the version of libpcap
  19425. * returns zero if version >= 0.9.6
  19426. * or one otherwise
  19427. */
  19428. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19429. exit(0);
  19430. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  19431. printf("%s ", pcap_lib_version());
  19432. exit(0);
  19433. }
  19434. exit(1);
  19435. ;
  19436. return 0;
  19437. }
  19438. _ACEOF
  19439. if ac_fn_c_try_run "$LINENO"; then :
  19440. libpcap_version_096=yes
  19441. else
  19442. libpcap_version_096=no
  19443. fi
  19444. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19445. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19446. fi
  19447. if test "$cross_compiling" = yes; then :
  19448. libpcap_ver8=yes
  19449. else
  19450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19451. /* end confdefs.h. */
  19452. #include <string.h>
  19453. #include <stdlib.h>
  19454. #include <stdio.h>
  19455. #include "$LPCAPINC"
  19456. #define PCAP_TEST "0.8"
  19457. int
  19458. main ()
  19459. {
  19460. /*
  19461. * simple proggy to test the version of libpcap
  19462. * returns zero if version >= 0.8.0
  19463. * or one otherwise
  19464. */
  19465. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19466. exit(0);
  19467. /* winpcap? */
  19468. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  19469. exit(0);
  19470. exit(1);
  19471. ;
  19472. return 0;
  19473. }
  19474. _ACEOF
  19475. if ac_fn_c_try_run "$LINENO"; then :
  19476. libpcap_ver8=yes
  19477. else
  19478. libpcap_ver8=no
  19479. fi
  19480. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19481. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19482. fi
  19483. if test "$cross_compiling" = yes; then :
  19484. libpcap_ver7=yes
  19485. else
  19486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19487. /* end confdefs.h. */
  19488. #include <string.h>
  19489. #include <stdlib.h>
  19490. #include <stdio.h>
  19491. #include "$LPCAPINC"
  19492. #define PCAP_TEST "0.7.2"
  19493. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  19494. int
  19495. main ()
  19496. {
  19497. /*
  19498. * simple proggy to test the version of libpcap
  19499. * returns zero if version >= 0.7.2
  19500. * or one otherwise
  19501. */
  19502. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19503. exit(0);
  19504. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  19505. exit(0);
  19506. exit(1);
  19507. ;
  19508. return 0;
  19509. }
  19510. _ACEOF
  19511. if ac_fn_c_try_run "$LINENO"; then :
  19512. libpcap_ver7=yes
  19513. else
  19514. libpcap_ver7=no
  19515. fi
  19516. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19517. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19518. fi
  19519. if test x$libpcap_ver8 = xyes ; then
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  19521. $as_echo ">= 0.8.0" >&6; }
  19522. elif test x$libpcap_ver7 = xyes ; then
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  19524. $as_echo ">= 0.7.2" >&6; }
  19525. else
  19526. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19527. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  19528. fi
  19529. libpcap_version=unknown
  19530. if test x$libpcap_version_096 = xyes ; then
  19531. libpcap_version=">= 0.9.6"
  19532. elif test x$libpcap_ver8 = xyes ; then
  19533. libpcap_version=">= 0.8.0"
  19534. elif test x$libcap_ver7 = xyes ; then
  19535. libpcap_version=">= 0.7.0"
  19536. fi
  19537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19538. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19540. /* end confdefs.h. */
  19541. #include <stdio.h>
  19542. #include <stdlib.h>
  19543. #include <string.h>
  19544. #include "$LPCAPINC"
  19545. int
  19546. main ()
  19547. {
  19548. pcap_t *p;
  19549. char *errbuf;
  19550. pcap_setnonblock(p, 1, errbuf);
  19551. exit(0);
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. if ac_fn_c_try_link "$LINENO"; then :
  19557. have_pcap_setnonblock=yes
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19559. $as_echo "yes" >&6; }
  19560. else
  19561. have_pcap_setnonblock=no
  19562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19563. $as_echo "no" >&6; }
  19564. fi
  19565. rm -f core conftest.err conftest.$ac_objext \
  19566. conftest$ac_exeext conftest.$ac_ext
  19567. if test $have_pcap_setnonblock = yes ; then
  19568. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19569. fi
  19570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19571. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19573. /* end confdefs.h. */
  19574. #include <stdio.h>
  19575. #include <stdlib.h>
  19576. #include <string.h>
  19577. #include "$LPCAPINC"
  19578. int
  19579. main ()
  19580. {
  19581. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19582. exit(0);
  19583. exit(1);
  19584. ;
  19585. return 0;
  19586. }
  19587. _ACEOF
  19588. if ac_fn_c_try_link "$LINENO"; then :
  19589. have_dlt_to_desc=yes
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19591. $as_echo "yes" >&6; }
  19592. else
  19593. have_dlt_to_desc=no
  19594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19595. $as_echo "no" >&6; }
  19596. fi
  19597. rm -f core conftest.err conftest.$ac_objext \
  19598. conftest$ac_exeext conftest.$ac_ext
  19599. if test $have_dlt_to_desc = yes ; then
  19600. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19601. fi
  19602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19603. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19605. /* end confdefs.h. */
  19606. #include <stdio.h>
  19607. #include <stdlib.h>
  19608. #include <string.h>
  19609. #include "$LPCAPINC"
  19610. int
  19611. main ()
  19612. {
  19613. int f;
  19614. pcap_t *p;
  19615. f = pcap_get_selectable_fd(p);
  19616. exit(0);
  19617. ;
  19618. return 0;
  19619. }
  19620. _ACEOF
  19621. if ac_fn_c_try_link "$LINENO"; then :
  19622. have_pcap_get_selectable_fd=yes
  19623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19624. $as_echo "yes" >&6; }
  19625. else
  19626. have_pcap_get_selectable_fd=no
  19627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19628. $as_echo "no" >&6; }
  19629. fi
  19630. rm -f core conftest.err conftest.$ac_objext \
  19631. conftest$ac_exeext conftest.$ac_ext
  19632. if test x$have_pcap_get_selectable_fd = xyes ; then
  19633. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19634. fi
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19636. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19638. /* end confdefs.h. */
  19639. #include <stdio.h>
  19640. #include <stdlib.h>
  19641. #include <string.h>
  19642. #include "$LPCAPINC"
  19643. int
  19644. main ()
  19645. {
  19646. pcap_dumper_t *dump;
  19647. pcap_t *pcap;
  19648. FILE *foo;
  19649. dump = pcap_dump_fopen(pcap, foo);
  19650. ;
  19651. return 0;
  19652. }
  19653. _ACEOF
  19654. if ac_fn_c_try_link "$LINENO"; then :
  19655. have_pcap_dump_fopen=yes
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19657. $as_echo "yes" >&6; }
  19658. else
  19659. have_pcap_dump_fopen=no
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19661. $as_echo "no" >&6; }
  19662. fi
  19663. rm -f core conftest.err conftest.$ac_objext \
  19664. conftest$ac_exeext conftest.$ac_ext
  19665. if test $have_pcap_dump_fopen = yes ; then
  19666. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19667. else
  19668. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19669. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19670. fi
  19671. have_pcap_inject=no
  19672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19673. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19675. /* end confdefs.h. */
  19676. #include <stdio.h>
  19677. #include <stdlib.h>
  19678. #include <string.h>
  19679. #include "$LPCAPINC"
  19680. int
  19681. main ()
  19682. {
  19683. pcap_t *pcap;
  19684. char *buf;
  19685. pcap_inject(pcap, (void *)buf, 0);
  19686. ;
  19687. return 0;
  19688. }
  19689. _ACEOF
  19690. if ac_fn_c_try_link "$LINENO"; then :
  19691. have_pcap_inject=yes
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19693. $as_echo "yes" >&6; }
  19694. else
  19695. have_pcap_inject=no
  19696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19697. $as_echo "no" >&6; }
  19698. fi
  19699. rm -f core conftest.err conftest.$ac_objext \
  19700. conftest$ac_exeext conftest.$ac_ext
  19701. if test $have_pcap_inject = yes ; then
  19702. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19703. fi
  19704. have_pcap_sendpacket=no
  19705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19706. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. /* end confdefs.h. */
  19709. #include <stdio.h>
  19710. #include <stdlib.h>
  19711. #include <string.h>
  19712. #include "$LPCAPINC"
  19713. int
  19714. main ()
  19715. {
  19716. pcap_t *pcap;
  19717. u_char *buf;
  19718. pcap_sendpacket(pcap, buf, 0);
  19719. ;
  19720. return 0;
  19721. }
  19722. _ACEOF
  19723. if ac_fn_c_try_link "$LINENO"; then :
  19724. have_pcap_sendpacket=yes
  19725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19726. $as_echo "yes" >&6; }
  19727. else
  19728. have_pcap_sendpacket=no
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19730. $as_echo "no" >&6; }
  19731. fi
  19732. rm -f core conftest.err conftest.$ac_objext \
  19733. conftest$ac_exeext conftest.$ac_ext
  19734. if test $have_pcap_sendpacket = yes ; then
  19735. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19736. fi
  19737. have_pcap_breakloop=no
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19739. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19741. /* end confdefs.h. */
  19742. #include <stdio.h>
  19743. #include <stdlib.h>
  19744. #include <string.h>
  19745. #include "$LPCAPINC"
  19746. int
  19747. main ()
  19748. {
  19749. pcap_t *pcap;
  19750. pcap_sendpacket(pcap);
  19751. ;
  19752. return 0;
  19753. }
  19754. _ACEOF
  19755. if ac_fn_c_try_link "$LINENO"; then :
  19756. have_pcap_breakloop=yes
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19758. $as_echo "yes" >&6; }
  19759. else
  19760. have_pcap_breakloop=no
  19761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19762. $as_echo "no" >&6; }
  19763. fi
  19764. rm -f core conftest.err conftest.$ac_objext \
  19765. conftest$ac_exeext conftest.$ac_ext
  19766. if test $have_pcap_breakloop = yes ; then
  19767. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19768. fi
  19769. have_pcap_version=no
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19771. $as_echo_n "checking for pcap_version... " >&6; }
  19772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19773. /* end confdefs.h. */
  19774. #include <stdio.h>
  19775. #include <stdlib.h>
  19776. #include <string.h>
  19777. #include "$LPCAPINC"
  19778. extern char pcap_version[];
  19779. int
  19780. main ()
  19781. {
  19782. printf("%s", pcap_version);
  19783. ;
  19784. return 0;
  19785. }
  19786. _ACEOF
  19787. if ac_fn_c_try_link "$LINENO"; then :
  19788. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19790. $as_echo "yes" >&6; }
  19791. else
  19792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19793. $as_echo "no" >&6; }
  19794. fi
  19795. rm -f core conftest.err conftest.$ac_objext \
  19796. conftest$ac_exeext conftest.$ac_ext
  19797. have_pcap_snapshot=no
  19798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19799. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19801. /* end confdefs.h. */
  19802. #include <stdio.h>
  19803. #include <stdlib.h>
  19804. #include <string.h>
  19805. #include "$LPCAPINC"
  19806. int
  19807. main ()
  19808. {
  19809. pcap_t *p;
  19810. int len;
  19811. len = pcap_snapshot(p);
  19812. exit(0);
  19813. ;
  19814. return 0;
  19815. }
  19816. _ACEOF
  19817. if ac_fn_c_try_link "$LINENO"; then :
  19818. have_pcap_snapshot=yes
  19819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19820. $as_echo "yes" >&6; }
  19821. else
  19822. have_pcap_snapshot=no
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19824. $as_echo "no" >&6; }
  19825. fi
  19826. rm -f core conftest.err conftest.$ac_objext \
  19827. conftest$ac_exeext conftest.$ac_ext
  19828. if test $have_pcap_snapshot = yes ; then
  19829. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19830. fi
  19831. # Tcpbridge requires libpcap and pcap_sendpacket()
  19832. enable_tcpbridge=no
  19833. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19834. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19835. if test x$have_bpf = xno; then
  19836. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19837. enable_tcpbridge=yes
  19838. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19839. $as_echo "$as_me: Building tcpbridge" >&6;}
  19840. # BPF systems need to also have pcap_setnonblock()
  19841. elif test x$have_pcap_setnonblock = xyes ; then
  19842. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19843. enable_tcpbridge=yes
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19845. $as_echo "$as_me: Building tcpbridge" >&6;}
  19846. else
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19848. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19849. fi
  19850. fi
  19851. if test x$enable_tcpbridge = xyes ; then
  19852. COMPILE_TCPBRIDGE_TRUE=
  19853. COMPILE_TCPBRIDGE_FALSE='#'
  19854. else
  19855. COMPILE_TCPBRIDGE_TRUE='#'
  19856. COMPILE_TCPBRIDGE_FALSE=
  19857. fi
  19858. # tcpliveplay requires linux OS to function properly
  19859. enable_tcpliveplay=no
  19860. case $host in
  19861. *-*-linux*)
  19862. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19863. enable_tcpliveplay=yes
  19864. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19865. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19866. ;;
  19867. *)
  19868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19869. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19870. ;;
  19871. esac
  19872. if test x$enable_tcpliveplay = xyes ; then
  19873. COMPILE_TCPLIVEPLAY_TRUE=
  19874. COMPILE_TCPLIVEPLAY_FALSE='#'
  19875. else
  19876. COMPILE_TCPLIVEPLAY_TRUE='#'
  19877. COMPILE_TCPLIVEPLAY_FALSE=
  19878. fi
  19879. have_netmap=no
  19880. enable_netmap=no
  19881. trynetmapdir=
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19883. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19884. # Check whether --with-netmap was given.
  19885. if test "${with_netmap+set}" = set; then :
  19886. withval=$with_netmap; trynetmapdir=$withval
  19887. fi
  19888. NETMAP_SEARCH_DIRS=
  19889. if test "$cross_compiling" = yes; then
  19890. if test "x$trynetmapdir" != "x"; then
  19891. NETMAP_SEARCH_DIRS=$trynetmapdir
  19892. fi
  19893. else
  19894. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include"
  19895. fi
  19896. for testdir in $NETMAP_SEARCH_DIRS; do
  19897. if test -f "${testdir}/sys/net/netmap.h" ; then
  19898. NETMAPINC="${testdir}/sys/net/netmap.h"
  19899. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19900. NETMAPINCDIR="${testdir}/sys"
  19901. have_netmap="yes $testdir"
  19902. enable_netmap=yes
  19903. else
  19904. if test -f "${testdir}/net/netmap.h" ; then
  19905. NETMAPINC="${testdir}/net/netmap.h"
  19906. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19907. NETMAPINCDIR="${testdir}"
  19908. have_netmap="yes $testdir"
  19909. enable_netmap=yes
  19910. fi
  19911. fi
  19912. if test "$have_netmap" != no ; then
  19913. NETMAPFLAGS="-DHAVE_NETMAP"
  19914. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19915. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19916. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19917. have_netmap="yes $testdir"
  19918. enable_netmap=yes
  19919. break;
  19920. fi
  19921. done
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19923. $as_echo "$have_netmap" >&6; }
  19924. if test x$enable_netmap = xyes ; then
  19925. COMPILE_NETMAP_TRUE=
  19926. COMPILE_NETMAP_FALSE='#'
  19927. else
  19928. COMPILE_NETMAP_TRUE='#'
  19929. COMPILE_NETMAP_FALSE=
  19930. fi
  19931. if test "x$NETMAPINCDIR" != "x"; then
  19932. OLDCPPFLAGS="$CPPFLAGS"
  19933. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19934. have_nm_open=no
  19935. have_nm_nr_reg_mask=no
  19936. have_nm_nr_flags=no
  19937. have_nmring_head_tail=no
  19938. if test "$have_netmap" != no ; then
  19939. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19940. #include <stdio.h>
  19941. #include \"${NETMAPUSERINC}\"
  19942. "
  19943. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19944. have_nm_open=yes
  19945. fi
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19947. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19949. /* end confdefs.h. */
  19950. #include <stdint.h>
  19951. #include <sys/socket.h>
  19952. #include <net/if.h>
  19953. #include <net/netmap.h>
  19954. int
  19955. main ()
  19956. {
  19957. #ifdef NR_REG_MASK
  19958. /* OK */
  19959. #else
  19960. # error NR_REG_MASK not found
  19961. #endif
  19962. ;
  19963. return 0;
  19964. }
  19965. _ACEOF
  19966. if ac_fn_c_try_compile "$LINENO"; then :
  19967. have_nm_nr_reg_mask=yes
  19968. fi
  19969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19971. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19973. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19975. /* end confdefs.h. */
  19976. #include <stdint.h>
  19977. #include <sys/socket.h>
  19978. #include <net/if.h>
  19979. #include <net/netmap.h>
  19980. int
  19981. main ()
  19982. {
  19983. struct nmreq nmr;
  19984. nmr.nr_flags = 0;
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. if ac_fn_c_try_compile "$LINENO"; then :
  19990. have_nm_nr_flags=yes
  19991. fi
  19992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19994. $as_echo "$have_nm_nr_flags" >&6; }
  19995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19996. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19998. /* end confdefs.h. */
  19999. #include <stdint.h>
  20000. #include <sys/socket.h>
  20001. #include <net/if.h>
  20002. #include <net/netmap.h>
  20003. int
  20004. main ()
  20005. {
  20006. struct netmap_ring r;
  20007. r.head = r.tail = 0;
  20008. ;
  20009. return 0;
  20010. }
  20011. _ACEOF
  20012. if ac_fn_c_try_compile "$LINENO"; then :
  20013. have_nmring_head_tail=yes
  20014. fi
  20015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  20017. $as_echo "$have_nmring_head_tail" >&6; }
  20018. fi
  20019. if test "$have_nm_open" = yes ; then
  20020. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  20021. fi
  20022. if test "$have_nm_nr_reg_mask" = yes ; then
  20023. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  20024. fi
  20025. if test "$have_nm_nr_flags" = yes ; then
  20026. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  20027. fi
  20028. if test "$have_nmring_head_tail" = yes ; then
  20029. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  20030. fi
  20031. CPPFLAGS="$OLDCPPFLAGS"
  20032. fi
  20033. have_pf=no
  20034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  20035. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  20036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20037. /* end confdefs.h. */
  20038. #include <sys/socket.h>
  20039. #include <netpacket/packet.h>
  20040. #include <net/ethernet.h> /* the L2 protocols */
  20041. #include <netinet/in.h> /* htons */
  20042. int
  20043. main ()
  20044. {
  20045. int pf_socket;
  20046. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  20047. ;
  20048. return 0;
  20049. }
  20050. _ACEOF
  20051. if ac_fn_c_try_compile "$LINENO"; then :
  20052. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20054. $as_echo "yes" >&6; }
  20055. have_pf=yes
  20056. else
  20057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20058. $as_echo "no" >&6; }
  20059. fi
  20060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20061. have_tx_ring=no
  20062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  20063. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  20064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20065. /* end confdefs.h. */
  20066. #include <sys/socket.h>
  20067. #include <netpacket/packet.h>
  20068. #include <net/ethernet.h> /* the L2 protocols */
  20069. #include <netinet/in.h> /* htons */
  20070. #include <linux/if_packet.h>
  20071. int
  20072. main ()
  20073. {
  20074. int test;
  20075. test = TP_STATUS_WRONG_FORMAT
  20076. ;
  20077. return 0;
  20078. }
  20079. _ACEOF
  20080. if ac_fn_c_try_compile "$LINENO"; then :
  20081. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20083. $as_echo "yes" >&6; }
  20084. have_tx_ring=yes
  20085. else
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20087. $as_echo "no" >&6; }
  20088. fi
  20089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20090. for ac_header in net/bpf.h
  20091. do :
  20092. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  20093. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  20094. cat >>confdefs.h <<_ACEOF
  20095. #define HAVE_NET_BPF_H 1
  20096. _ACEOF
  20097. have_bpf=yes
  20098. else
  20099. have_bpf=no
  20100. fi
  20101. done
  20102. if test $have_bpf = yes ; then
  20103. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  20104. fi
  20105. founddnet=no
  20106. have_libdnet=no
  20107. libdnet_version=
  20108. enable_fragroute=no
  20109. trydnetdir=/usr/local
  20110. if test $have_cygwin = no ; then
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  20112. $as_echo_n "checking for libdnet... " >&6; }
  20113. # Check whether --with-libdnet was given.
  20114. if test "${with_libdnet+set}" = set; then :
  20115. withval=$with_libdnet; trydnetdir=$withval
  20116. fi
  20117. case "$build_os" in
  20118. linux*)
  20119. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  20120. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  20121. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  20122. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  20123. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  20124. founddnet=$testdir
  20125. fi
  20126. done
  20127. ;;
  20128. esac
  20129. if test $founddnet = no ; then
  20130. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  20131. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  20132. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  20133. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  20134. libdnet_version="$($testdir/bin/dnet-config --version)"
  20135. founddnet=$testdir
  20136. fi
  20137. done
  20138. fi
  20139. if test $founddnet = no ; then
  20140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20141. $as_echo "no" >&6; }
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  20143. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  20144. else
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  20146. $as_echo "$founddnet" >&6; }
  20147. enable_fragroute=yes
  20148. have_libdnet=yes
  20149. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  20150. old_cflags=$CFLAGS
  20151. CFLAGS=$LDNETINC
  20152. for ac_header in dumbnet.h dnet.h
  20153. do :
  20154. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20155. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20156. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20157. cat >>confdefs.h <<_ACEOF
  20158. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20159. _ACEOF
  20160. fi
  20161. done
  20162. CFLAGS=$old_cflags
  20163. fi
  20164. else
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  20166. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  20167. fi
  20168. cat >>confdefs.h <<_ACEOF
  20169. #define LIBDNET_VERSION "$libdnet_version"
  20170. _ACEOF
  20171. if test x$founddnet != xno; then
  20172. COMPILE_FRAGROUTE_TRUE=
  20173. COMPILE_FRAGROUTE_FALSE='#'
  20174. else
  20175. COMPILE_FRAGROUTE_TRUE='#'
  20176. COMPILE_FRAGROUTE_FALSE=
  20177. fi
  20178. if test x$founddnet != xno ; then
  20179. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  20180. fi
  20181. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  20182. -a $have_libdnet = no -a $have_pf = no ; then
  20183. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  20184. fi
  20185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  20186. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  20187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20188. /* end confdefs.h. */
  20189. #include "$LPCAPINC"
  20190. int
  20191. main ()
  20192. {
  20193. int foo;
  20194. foo = DLT_LINUX_SLL
  20195. ;
  20196. return 0;
  20197. }
  20198. _ACEOF
  20199. if ac_fn_c_try_compile "$LINENO"; then :
  20200. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20202. $as_echo "yes" >&6; }
  20203. else
  20204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20205. $as_echo "no" >&6; }
  20206. fi
  20207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  20209. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  20210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20211. /* end confdefs.h. */
  20212. #include "$LPCAPINC"
  20213. int
  20214. main ()
  20215. {
  20216. int foo;
  20217. foo = DLT_C_HDLC
  20218. ;
  20219. return 0;
  20220. }
  20221. _ACEOF
  20222. if ac_fn_c_try_compile "$LINENO"; then :
  20223. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  20224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20225. $as_echo "yes" >&6; }
  20226. else
  20227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20228. $as_echo "no" >&6; }
  20229. fi
  20230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20231. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  20232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  20233. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  20234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20235. /* end confdefs.h. */
  20236. #include <sys/types.h>
  20237. #include <sys/time.h>
  20238. #include <stdint.h>
  20239. #include "$PCAP_BPF_H_FILE"
  20240. int
  20241. main ()
  20242. {
  20243. int foo;
  20244. foo = BPF_MAJOR_VERSION;
  20245. ;
  20246. return 0;
  20247. }
  20248. _ACEOF
  20249. if ac_fn_c_try_compile "$LINENO"; then :
  20250. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20252. $as_echo "yes" >&6; }
  20253. else
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20255. $as_echo "no" >&6; }
  20256. fi
  20257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20258. foundbpfheader=no
  20259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  20260. $as_echo_n "checking for libpcap bpf header... " >&6; }
  20261. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  20262. if test -f "${testfile}" -a $foundbpfheader = no ; then
  20263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20264. /* end confdefs.h. */
  20265. #include <sys/types.h>
  20266. #include <sys/time.h>
  20267. #include <stdint.h>
  20268. #include "$testfile"
  20269. int
  20270. main ()
  20271. {
  20272. int foo;
  20273. foo = BPF_MAJOR_VERSION;
  20274. ;
  20275. return 0;
  20276. }
  20277. _ACEOF
  20278. if ac_fn_c_try_compile "$LINENO"; then :
  20279. foundbpfheader=yes
  20280. PCAP_BPF_H_FILE=$testfile
  20281. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20282. fi
  20283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20284. fi
  20285. done
  20286. if test $foundbpfheader != no; then
  20287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  20288. $as_echo "$testfile" >&6; }
  20289. else
  20290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20291. $as_echo "no" >&6; }
  20292. fi
  20293. have_pcap_netmap=no
  20294. if test $foundpcap != no ; then
  20295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  20296. $as_echo_n "checking for netmap libpcap... " >&6; }
  20297. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  20298. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  20299. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  20300. have_pcap_netmap=yes
  20301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20302. $as_echo "yes" >&6; }
  20303. else
  20304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20305. $as_echo "no" >&6; }
  20306. fi
  20307. fi
  20308. LIBS="$OLDLIBS"
  20309. CFLAGS="$OLDCFLAGS"
  20310. pcapnav_ver=no
  20311. pcncfg=no
  20312. # Check whether --with-pcapnav-config was given.
  20313. if test "${with_pcapnav_config+set}" = set; then :
  20314. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  20315. $as_echo_n "checking for pcapnav-config... " >&6; }
  20316. if test -x $withval ; then
  20317. pcncfg=$withval
  20318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20319. $as_echo "$pcncfg" >&6; }
  20320. elif test x$withval = xno ; then
  20321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20322. $as_echo "no" >&6; }
  20323. else
  20324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  20325. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  20326. fi
  20327. else
  20328. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  20329. set dummy pcapnav-config; ac_word=$2
  20330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20331. $as_echo_n "checking for $ac_word... " >&6; }
  20332. if ${ac_cv_path_pcncfg+:} false; then :
  20333. $as_echo_n "(cached) " >&6
  20334. else
  20335. case $pcncfg in
  20336. [\\/]* | ?:[\\/]*)
  20337. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  20338. ;;
  20339. *)
  20340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20341. for as_dir in $PATH
  20342. do
  20343. IFS=$as_save_IFS
  20344. test -z "$as_dir" && as_dir=.
  20345. for ac_exec_ext in '' $ac_executable_extensions; do
  20346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20347. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  20348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20349. break 2
  20350. fi
  20351. done
  20352. done
  20353. IFS=$as_save_IFS
  20354. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  20355. ;;
  20356. esac
  20357. fi
  20358. pcncfg=$ac_cv_path_pcncfg
  20359. if test -n "$pcncfg"; then
  20360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20361. $as_echo "$pcncfg" >&6; }
  20362. else
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20364. $as_echo "no" >&6; }
  20365. fi
  20366. fi
  20367. if test $pcncfg != no ; then
  20368. LNAVLIB=$($pcncfg --libs)
  20369. LNAV_CFLAGS=$($pcncfg --cflags)
  20370. PCAPNAV_VERSION=$($pcncfg --version)
  20371. cat >>confdefs.h <<_ACEOF
  20372. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  20373. _ACEOF
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  20375. $as_echo_n "checking for libpcapnav version... " >&6; }
  20376. if test "$cross_compiling" = yes; then :
  20377. libpcapnav_ver=no
  20378. else
  20379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20380. /* end confdefs.h. */
  20381. #include <string.h>
  20382. #define PCAPNAV_TEST "0.4"
  20383. /*
  20384. * simple proggy to test the version of libpcapnav
  20385. * returns zero if version >= 0.4
  20386. * or one otherwise
  20387. */
  20388. int
  20389. main (int argc, char *argv[])
  20390. {
  20391. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20392. exit(0);
  20393. exit(1);
  20394. }
  20395. _ACEOF
  20396. if ac_fn_c_try_run "$LINENO"; then :
  20397. libpcapnav_ver=yes
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20399. $as_echo ">= 0.4" >&6; }
  20400. else
  20401. libpcapnav_ver=no
  20402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20403. $as_echo "< 0.4" >&6; }
  20404. fi
  20405. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20406. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20407. fi
  20408. if test x$libpcapnav_ver = xno ; then
  20409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20410. Please upgrade to version 0.4 or better.
  20411. Disabling offset jump feature." >&5
  20412. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20413. Please upgrade to version 0.4 or better.
  20414. Disabling offset jump feature." >&2;}
  20415. else
  20416. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20417. fi
  20418. fi # checking pcapnav version
  20419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  20420. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  20421. if ${unaligned_cv_fail+:} false; then :
  20422. $as_echo_n "(cached) " >&6
  20423. else
  20424. case "$host_cpu" in
  20425. # XXX: should also check that they don't do weird things (like on arm)
  20426. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20427. unaligned_cv_fail=yes
  20428. ;;
  20429. *)
  20430. cat >conftest.c <<EOF
  20431. #include <sys/types.h>
  20432. #include <sys/wait.h>
  20433. #include <stdio.h>
  20434. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20435. main() {
  20436. unsigned int i;
  20437. pid_t pid;
  20438. int status;
  20439. /* avoid "core dumped" message */
  20440. pid = fork();
  20441. if (pid < 0)
  20442. exit(2);
  20443. if (pid > 0) {
  20444. /* parent */
  20445. pid = waitpid(pid, &status, 0);
  20446. if (pid < 0)
  20447. exit(3);
  20448. exit(!WIFEXITED(status));
  20449. }
  20450. /* child */
  20451. i = *(unsigned int *)&a[1];
  20452. printf("%d\n", i);
  20453. exit(0);
  20454. }
  20455. EOF
  20456. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20457. conftest.c $LIBS >/dev/null 2>&1
  20458. if test ! -x conftest ; then
  20459. unaligned_cv_fail=yes
  20460. else
  20461. ./conftest >conftest.out
  20462. if test ! -s conftest.out ; then
  20463. unaligned_cv_fail=yes
  20464. else
  20465. unaligned_cv_fail=no
  20466. fi
  20467. fi
  20468. rm -f conftest* core core.conftest
  20469. ;;
  20470. esac
  20471. fi
  20472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20473. $as_echo "$unaligned_cv_fail" >&6; }
  20474. if test $unaligned_cv_fail = yes ; then
  20475. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20476. fi
  20477. tcpdump_path=no
  20478. # Check whether --with-tcpdump was given.
  20479. if test "${with_tcpdump+set}" = set; then :
  20480. withval=$with_tcpdump; if test -x $withval ; then
  20481. tcpdump_path=$withval
  20482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20483. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20484. else
  20485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20486. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20487. fi
  20488. else
  20489. # Extract the first word of "tcpdump", so it can be a program name with args.
  20490. set dummy tcpdump; ac_word=$2
  20491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20492. $as_echo_n "checking for $ac_word... " >&6; }
  20493. if ${ac_cv_path_tcpdump_path+:} false; then :
  20494. $as_echo_n "(cached) " >&6
  20495. else
  20496. case $tcpdump_path in
  20497. [\\/]* | ?:[\\/]*)
  20498. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20499. ;;
  20500. *)
  20501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20502. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20503. for as_dir in $as_dummy
  20504. do
  20505. IFS=$as_save_IFS
  20506. test -z "$as_dir" && as_dir=.
  20507. for ac_exec_ext in '' $ac_executable_extensions; do
  20508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20509. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20511. break 2
  20512. fi
  20513. done
  20514. done
  20515. IFS=$as_save_IFS
  20516. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20517. ;;
  20518. esac
  20519. fi
  20520. tcpdump_path=$ac_cv_path_tcpdump_path
  20521. if test -n "$tcpdump_path"; then
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20523. $as_echo "$tcpdump_path" >&6; }
  20524. else
  20525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20526. $as_echo "no" >&6; }
  20527. fi
  20528. fi
  20529. if test "$tcpdump_path" = "no"; then
  20530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20531. Disabling --verbose" >&5
  20532. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20533. Disabling --verbose" >&2;}
  20534. else
  20535. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20536. cat >>confdefs.h <<_ACEOF
  20537. #define TCPDUMP_BINARY "$tcpdump_path"
  20538. _ACEOF
  20539. fi
  20540. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20541. ENABLE_TCPDUMP_TRUE=
  20542. ENABLE_TCPDUMP_FALSE='#'
  20543. else
  20544. ENABLE_TCPDUMP_TRUE='#'
  20545. ENABLE_TCPDUMP_FALSE=
  20546. fi
  20547. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20548. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20549. else
  20550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20551. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20552. fi
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20554. $as_echo_n "checking for 'make test' profile... " >&6; }
  20555. if test "$host" != "$build" ; then
  20556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20557. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20558. fi
  20559. # Check whether --with-testnic was given.
  20560. if test "${with_testnic+set}" = set; then :
  20561. withval=$with_testnic; nic1=$withval
  20562. nic2=$withval
  20563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20564. $as_echo "Using --with-testnic=$withval" >&6; }
  20565. else
  20566. case $host in
  20567. *-*-linux*)
  20568. nic1=eth0
  20569. nic2=eth0
  20570. ;;
  20571. *-*-solaris*)
  20572. nic1=hme0
  20573. nic2=hme0
  20574. ;;
  20575. *-*-sunos*)
  20576. nic1=hme0
  20577. nic2=hme0
  20578. ;;
  20579. *-apple-darwin*)
  20580. nic1=en0
  20581. nic2=en0
  20582. ;;
  20583. *-*-openbsd*)
  20584. nic1=xl0
  20585. nic2=xl0
  20586. ;;
  20587. *-*-freebsd*)
  20588. nic1=em0
  20589. nic2=em0
  20590. ;;
  20591. *-*-cygwin)
  20592. nic1=%0
  20593. nic2=%0
  20594. ;;
  20595. *)
  20596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20597. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20598. nic1=%0
  20599. nic2=%0
  20600. ;;
  20601. esac
  20602. fi
  20603. disable_pcap_findalldevs=no
  20604. osx_frameworks=no
  20605. case $host in
  20606. *-*-linux*)
  20607. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20609. $as_echo "Linux" >&6; }
  20610. ;;
  20611. *-*-solaris*)
  20612. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20614. $as_echo "Solaris" >&6; }
  20615. ;;
  20616. *-*-sunos*)
  20617. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20619. $as_echo "SunOS" >&6; }
  20620. ;;
  20621. *-apple-darwin*)
  20622. if test x$libpcap_version_096 = xno ; then
  20623. disable_pcap_findalldevs=yes
  20624. fi
  20625. osx_frameworks=yes
  20626. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple OS X" >&5
  20628. $as_echo "Apple OS X" >&6; }
  20629. ;;
  20630. *-*-openbsd*)
  20631. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20633. $as_echo "OpenBSD" >&6; }
  20634. ;;
  20635. *-*-freebsd*)
  20636. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20638. $as_echo "FreeBSD" >&6; }
  20639. ;;
  20640. *-*-cygwin)
  20641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20642. $as_echo "Win32/Cygwin" >&6; }
  20643. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20644. ;;
  20645. *)
  20646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20647. $as_echo "$host is unknown!" >&6; }
  20648. ;;
  20649. esac
  20650. if test "$osx_frameworks" = "yes"; then
  20651. ENABLE_OSX_FRAMEWORKS_TRUE=
  20652. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20653. else
  20654. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20655. ENABLE_OSX_FRAMEWORKS_FALSE=
  20656. fi
  20657. # Check whether --with-testnic2 was given.
  20658. if test "${with_testnic2+set}" = set; then :
  20659. withval=$with_testnic2; nic2=$withval
  20660. fi
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20662. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20663. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20664. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20666. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20667. if test x$disable_pcap_findalldevs = xno ; then
  20668. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20670. $as_echo "yes" >&6; }
  20671. else
  20672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20673. $as_echo "no" >&6; }
  20674. fi
  20675. ac_header_dirent=no
  20676. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20677. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20679. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20680. if eval \${$as_ac_Header+:} false; then :
  20681. $as_echo_n "(cached) " >&6
  20682. else
  20683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20684. /* end confdefs.h. */
  20685. #include <sys/types.h>
  20686. #include <$ac_hdr>
  20687. int
  20688. main ()
  20689. {
  20690. if ((DIR *) 0)
  20691. return 0;
  20692. ;
  20693. return 0;
  20694. }
  20695. _ACEOF
  20696. if ac_fn_c_try_compile "$LINENO"; then :
  20697. eval "$as_ac_Header=yes"
  20698. else
  20699. eval "$as_ac_Header=no"
  20700. fi
  20701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20702. fi
  20703. eval ac_res=\$$as_ac_Header
  20704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20705. $as_echo "$ac_res" >&6; }
  20706. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20707. cat >>confdefs.h <<_ACEOF
  20708. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20709. _ACEOF
  20710. ac_header_dirent=$ac_hdr; break
  20711. fi
  20712. done
  20713. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20714. if test $ac_header_dirent = dirent.h; then
  20715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20716. $as_echo_n "checking for library containing opendir... " >&6; }
  20717. if ${ac_cv_search_opendir+:} false; then :
  20718. $as_echo_n "(cached) " >&6
  20719. else
  20720. ac_func_search_save_LIBS=$LIBS
  20721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20722. /* end confdefs.h. */
  20723. /* Override any GCC internal prototype to avoid an error.
  20724. Use char because int might match the return type of a GCC
  20725. builtin and then its argument prototype would still apply. */
  20726. #ifdef __cplusplus
  20727. extern "C"
  20728. #endif
  20729. char opendir ();
  20730. int
  20731. main ()
  20732. {
  20733. return opendir ();
  20734. ;
  20735. return 0;
  20736. }
  20737. _ACEOF
  20738. for ac_lib in '' dir; do
  20739. if test -z "$ac_lib"; then
  20740. ac_res="none required"
  20741. else
  20742. ac_res=-l$ac_lib
  20743. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20744. fi
  20745. if ac_fn_c_try_link "$LINENO"; then :
  20746. ac_cv_search_opendir=$ac_res
  20747. fi
  20748. rm -f core conftest.err conftest.$ac_objext \
  20749. conftest$ac_exeext
  20750. if ${ac_cv_search_opendir+:} false; then :
  20751. break
  20752. fi
  20753. done
  20754. if ${ac_cv_search_opendir+:} false; then :
  20755. else
  20756. ac_cv_search_opendir=no
  20757. fi
  20758. rm conftest.$ac_ext
  20759. LIBS=$ac_func_search_save_LIBS
  20760. fi
  20761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20762. $as_echo "$ac_cv_search_opendir" >&6; }
  20763. ac_res=$ac_cv_search_opendir
  20764. if test "$ac_res" != no; then :
  20765. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20766. fi
  20767. else
  20768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20769. $as_echo_n "checking for library containing opendir... " >&6; }
  20770. if ${ac_cv_search_opendir+:} false; then :
  20771. $as_echo_n "(cached) " >&6
  20772. else
  20773. ac_func_search_save_LIBS=$LIBS
  20774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20775. /* end confdefs.h. */
  20776. /* Override any GCC internal prototype to avoid an error.
  20777. Use char because int might match the return type of a GCC
  20778. builtin and then its argument prototype would still apply. */
  20779. #ifdef __cplusplus
  20780. extern "C"
  20781. #endif
  20782. char opendir ();
  20783. int
  20784. main ()
  20785. {
  20786. return opendir ();
  20787. ;
  20788. return 0;
  20789. }
  20790. _ACEOF
  20791. for ac_lib in '' x; do
  20792. if test -z "$ac_lib"; then
  20793. ac_res="none required"
  20794. else
  20795. ac_res=-l$ac_lib
  20796. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20797. fi
  20798. if ac_fn_c_try_link "$LINENO"; then :
  20799. ac_cv_search_opendir=$ac_res
  20800. fi
  20801. rm -f core conftest.err conftest.$ac_objext \
  20802. conftest$ac_exeext
  20803. if ${ac_cv_search_opendir+:} false; then :
  20804. break
  20805. fi
  20806. done
  20807. if ${ac_cv_search_opendir+:} false; then :
  20808. else
  20809. ac_cv_search_opendir=no
  20810. fi
  20811. rm conftest.$ac_ext
  20812. LIBS=$ac_func_search_save_LIBS
  20813. fi
  20814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20815. $as_echo "$ac_cv_search_opendir" >&6; }
  20816. ac_res=$ac_cv_search_opendir
  20817. if test "$ac_res" != no; then :
  20818. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20819. fi
  20820. fi
  20821. # =================
  20822. # AC_CHECK_HEADERS
  20823. # =================
  20824. for ac_header in \
  20825. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20826. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20827. sys/un.h sys/wait.h dlfcn.h errno.h \
  20828. fcntl.h libgen.h libintl.h memory.h \
  20829. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20830. unistd.h utime.h
  20831. do :
  20832. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20833. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20834. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20835. cat >>confdefs.h <<_ACEOF
  20836. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20837. _ACEOF
  20838. fi
  20839. done
  20840. for ac_header in stdarg.h varargs.h
  20841. do :
  20842. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20843. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20844. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20847. _ACEOF
  20848. lo_have_arg_hdr=true;break
  20849. else
  20850. lo_have_arg_hdr=false
  20851. fi
  20852. done
  20853. for ac_header in string.h strings.h
  20854. do :
  20855. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20856. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20857. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20858. cat >>confdefs.h <<_ACEOF
  20859. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20860. _ACEOF
  20861. lo_have_str_hdr=true;break
  20862. else
  20863. lo_have_str_hdr=false
  20864. fi
  20865. done
  20866. for ac_header in limits.h sys/limits.h values.h
  20867. do :
  20868. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20869. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20870. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20871. cat >>confdefs.h <<_ACEOF
  20872. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20873. _ACEOF
  20874. lo_have_lim_hdr=true;break
  20875. else
  20876. lo_have_lim_hdr=false
  20877. fi
  20878. done
  20879. for ac_header in inttypes.h stdint.h
  20880. do :
  20881. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20882. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20883. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20884. cat >>confdefs.h <<_ACEOF
  20885. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20886. _ACEOF
  20887. lo_have_typ_hdr=true;break
  20888. else
  20889. lo_have_typ_hdr=false
  20890. fi
  20891. done
  20892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20893. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20894. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20895. $as_echo_n "(cached) " >&6
  20896. else
  20897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20898. /* end confdefs.h. */
  20899. #include <stdlib.h>
  20900. #include <stdnoreturn.h>
  20901. /* Do not check for 'noreturn' after the return type.
  20902. C11 allows it, but it's rarely done that way
  20903. and circa-2012 bleeding-edge GCC rejects it when given
  20904. -Werror=old-style-declaration. */
  20905. noreturn void foo1 (void) { exit (0); }
  20906. _Noreturn void foo2 (void) { exit (0); }
  20907. int testit (int argc, char **argv) {
  20908. if (argc & 1)
  20909. return 0;
  20910. (argv[0][0] ? foo1 : foo2) ();
  20911. }
  20912. int
  20913. main ()
  20914. {
  20915. ;
  20916. return 0;
  20917. }
  20918. _ACEOF
  20919. if ac_fn_c_try_compile "$LINENO"; then :
  20920. gl_cv_header_working_stdnoreturn_h=yes
  20921. else
  20922. gl_cv_header_working_stdnoreturn_h=no
  20923. fi
  20924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20925. fi
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20927. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20928. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20929. STDNORETURN_H=''
  20930. else
  20931. STDNORETURN_H='stdnoreturn.h'
  20932. fi
  20933. if test -n "$STDNORETURN_H"; then
  20934. GL_GENERATE_STDNORETURN_H_TRUE=
  20935. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20936. else
  20937. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20938. GL_GENERATE_STDNORETURN_H_FALSE=
  20939. fi
  20940. # ----------------------------------------------------------------------
  20941. # check for various programs used during the build.
  20942. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20943. # ----------------------------------------------------------------------
  20944. for ac_header in runetype.h wchar.h
  20945. do :
  20946. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20947. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20948. $ac_includes_default
  20949. #if HAVE_RUNETYPE_H
  20950. # include <runetype.h>
  20951. #endif
  20952. "
  20953. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20954. cat >>confdefs.h <<_ACEOF
  20955. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20956. _ACEOF
  20957. fi
  20958. done
  20959. # Check whether --enable-nls was given.
  20960. if test "${enable_nls+set}" = set; then :
  20961. enableval=$enable_nls;
  20962. fi
  20963. if test "x$enable_nls" != "xno" && \
  20964. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20965. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20966. fi
  20967. # --------------------------------------------
  20968. # Verify certain entries from AC_CHECK_HEADERS
  20969. # --------------------------------------------
  20970. ${lo_have_arg_hdr} || \
  20971. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20972. ${lo_have_str_hdr} || \
  20973. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20974. ${lo_have_lim_hdr} || \
  20975. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20976. ${lo_have_typ_hdr} || \
  20977. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20978. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20979. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20980. test "X${as_ac_var}" = Xyes || {
  20981. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20982. }
  20983. done
  20984. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20985. echo '#include <stdint.h>' > inttypes.h
  20986. # ----------------------------------------------------------------------
  20987. # Checks for typedefs
  20988. # ----------------------------------------------------------------------
  20989. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20990. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20991. cat >>confdefs.h <<_ACEOF
  20992. #define HAVE_WCHAR_T 1
  20993. _ACEOF
  20994. fi
  20995. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20996. $ac_includes_default
  20997. #if HAVE_RUNETYPE_H
  20998. # include <runetype.h>
  20999. #endif
  21000. #if HAVE_WCHAR_H
  21001. # include <wchar.h>
  21002. #endif
  21003. "
  21004. if test "x$ac_cv_type_wint_t" = xyes; then :
  21005. cat >>confdefs.h <<_ACEOF
  21006. #define HAVE_WINT_T 1
  21007. _ACEOF
  21008. fi
  21009. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  21010. if test "x$ac_cv_type_int8_t" = xyes; then :
  21011. cat >>confdefs.h <<_ACEOF
  21012. #define HAVE_INT8_T 1
  21013. _ACEOF
  21014. fi
  21015. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  21016. if test "x$ac_cv_type_uint8_t" = xyes; then :
  21017. cat >>confdefs.h <<_ACEOF
  21018. #define HAVE_UINT8_T 1
  21019. _ACEOF
  21020. fi
  21021. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  21022. if test "x$ac_cv_type_int16_t" = xyes; then :
  21023. cat >>confdefs.h <<_ACEOF
  21024. #define HAVE_INT16_T 1
  21025. _ACEOF
  21026. fi
  21027. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  21028. if test "x$ac_cv_type_uint16_t" = xyes; then :
  21029. cat >>confdefs.h <<_ACEOF
  21030. #define HAVE_UINT16_T 1
  21031. _ACEOF
  21032. fi
  21033. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  21034. if test "x$ac_cv_type_int32_t" = xyes; then :
  21035. cat >>confdefs.h <<_ACEOF
  21036. #define HAVE_INT32_T 1
  21037. _ACEOF
  21038. fi
  21039. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  21040. if test "x$ac_cv_type_uint32_t" = xyes; then :
  21041. cat >>confdefs.h <<_ACEOF
  21042. #define HAVE_UINT32_T 1
  21043. _ACEOF
  21044. fi
  21045. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  21046. if test "x$ac_cv_type_intptr_t" = xyes; then :
  21047. cat >>confdefs.h <<_ACEOF
  21048. #define HAVE_INTPTR_T 1
  21049. _ACEOF
  21050. fi
  21051. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  21052. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  21053. cat >>confdefs.h <<_ACEOF
  21054. #define HAVE_UINTPTR_T 1
  21055. _ACEOF
  21056. fi
  21057. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  21058. if test "x$ac_cv_type_uint_t" = xyes; then :
  21059. cat >>confdefs.h <<_ACEOF
  21060. #define HAVE_UINT_T 1
  21061. _ACEOF
  21062. fi
  21063. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  21064. if test "x$ac_cv_type_pid_t" = xyes; then :
  21065. cat >>confdefs.h <<_ACEOF
  21066. #define HAVE_PID_T 1
  21067. _ACEOF
  21068. fi
  21069. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21070. if test "x$ac_cv_type_size_t" = xyes; then :
  21071. cat >>confdefs.h <<_ACEOF
  21072. #define HAVE_SIZE_T 1
  21073. _ACEOF
  21074. fi
  21075. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  21076. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  21077. cat >>confdefs.h <<_ACEOF
  21078. #define HAVE_PTRDIFF_T 1
  21079. _ACEOF
  21080. fi
  21081. # The cast to long int works around a bug in the HP C Compiler
  21082. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21083. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21084. # This bug is HP SR number 8606223364.
  21085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  21086. $as_echo_n "checking size of char *... " >&6; }
  21087. if ${ac_cv_sizeof_char_p+:} false; then :
  21088. $as_echo_n "(cached) " >&6
  21089. else
  21090. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  21091. else
  21092. if test "$ac_cv_type_char_p" = yes; then
  21093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21095. as_fn_error 77 "cannot compute sizeof (char *)
  21096. See \`config.log' for more details" "$LINENO" 5; }
  21097. else
  21098. ac_cv_sizeof_char_p=0
  21099. fi
  21100. fi
  21101. fi
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  21103. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  21104. cat >>confdefs.h <<_ACEOF
  21105. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  21106. _ACEOF
  21107. # The cast to long int works around a bug in the HP C Compiler
  21108. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21109. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21110. # This bug is HP SR number 8606223364.
  21111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  21112. $as_echo_n "checking size of int... " >&6; }
  21113. if ${ac_cv_sizeof_int+:} false; then :
  21114. $as_echo_n "(cached) " >&6
  21115. else
  21116. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  21117. else
  21118. if test "$ac_cv_type_int" = yes; then
  21119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21121. as_fn_error 77 "cannot compute sizeof (int)
  21122. See \`config.log' for more details" "$LINENO" 5; }
  21123. else
  21124. ac_cv_sizeof_int=0
  21125. fi
  21126. fi
  21127. fi
  21128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  21129. $as_echo "$ac_cv_sizeof_int" >&6; }
  21130. cat >>confdefs.h <<_ACEOF
  21131. #define SIZEOF_INT $ac_cv_sizeof_int
  21132. _ACEOF
  21133. # The cast to long int works around a bug in the HP C Compiler
  21134. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21135. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21136. # This bug is HP SR number 8606223364.
  21137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  21138. $as_echo_n "checking size of long... " >&6; }
  21139. if ${ac_cv_sizeof_long+:} false; then :
  21140. $as_echo_n "(cached) " >&6
  21141. else
  21142. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  21143. else
  21144. if test "$ac_cv_type_long" = yes; then
  21145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21147. as_fn_error 77 "cannot compute sizeof (long)
  21148. See \`config.log' for more details" "$LINENO" 5; }
  21149. else
  21150. ac_cv_sizeof_long=0
  21151. fi
  21152. fi
  21153. fi
  21154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  21155. $as_echo "$ac_cv_sizeof_long" >&6; }
  21156. cat >>confdefs.h <<_ACEOF
  21157. #define SIZEOF_LONG $ac_cv_sizeof_long
  21158. _ACEOF
  21159. # The cast to long int works around a bug in the HP C Compiler
  21160. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21161. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21162. # This bug is HP SR number 8606223364.
  21163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  21164. $as_echo_n "checking size of short... " >&6; }
  21165. if ${ac_cv_sizeof_short+:} false; then :
  21166. $as_echo_n "(cached) " >&6
  21167. else
  21168. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  21169. else
  21170. if test "$ac_cv_type_short" = yes; then
  21171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21173. as_fn_error 77 "cannot compute sizeof (short)
  21174. See \`config.log' for more details" "$LINENO" 5; }
  21175. else
  21176. ac_cv_sizeof_short=0
  21177. fi
  21178. fi
  21179. fi
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  21181. $as_echo "$ac_cv_sizeof_short" >&6; }
  21182. cat >>confdefs.h <<_ACEOF
  21183. #define SIZEOF_SHORT $ac_cv_sizeof_short
  21184. _ACEOF
  21185. # ------------
  21186. # AC_CHECK_LIB
  21187. # ------------
  21188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  21189. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  21190. if ${ac_cv_lib_gen_pathfind+:} false; then :
  21191. $as_echo_n "(cached) " >&6
  21192. else
  21193. ac_check_lib_save_LIBS=$LIBS
  21194. LIBS="-lgen $LIBS"
  21195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21196. /* end confdefs.h. */
  21197. /* Override any GCC internal prototype to avoid an error.
  21198. Use char because int might match the return type of a GCC
  21199. builtin and then its argument prototype would still apply. */
  21200. #ifdef __cplusplus
  21201. extern "C"
  21202. #endif
  21203. char pathfind ();
  21204. int
  21205. main ()
  21206. {
  21207. return pathfind ();
  21208. ;
  21209. return 0;
  21210. }
  21211. _ACEOF
  21212. if ac_fn_c_try_link "$LINENO"; then :
  21213. ac_cv_lib_gen_pathfind=yes
  21214. else
  21215. ac_cv_lib_gen_pathfind=no
  21216. fi
  21217. rm -f core conftest.err conftest.$ac_objext \
  21218. conftest$ac_exeext conftest.$ac_ext
  21219. LIBS=$ac_check_lib_save_LIBS
  21220. fi
  21221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  21222. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  21223. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  21224. cat >>confdefs.h <<_ACEOF
  21225. #define HAVE_LIBGEN 1
  21226. _ACEOF
  21227. LIBS="-lgen $LIBS"
  21228. fi
  21229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  21230. $as_echo_n "checking for gettext in -lintl... " >&6; }
  21231. if ${ac_cv_lib_intl_gettext+:} false; then :
  21232. $as_echo_n "(cached) " >&6
  21233. else
  21234. ac_check_lib_save_LIBS=$LIBS
  21235. LIBS="-lintl $LIBS"
  21236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21237. /* end confdefs.h. */
  21238. /* Override any GCC internal prototype to avoid an error.
  21239. Use char because int might match the return type of a GCC
  21240. builtin and then its argument prototype would still apply. */
  21241. #ifdef __cplusplus
  21242. extern "C"
  21243. #endif
  21244. char gettext ();
  21245. int
  21246. main ()
  21247. {
  21248. return gettext ();
  21249. ;
  21250. return 0;
  21251. }
  21252. _ACEOF
  21253. if ac_fn_c_try_link "$LINENO"; then :
  21254. ac_cv_lib_intl_gettext=yes
  21255. else
  21256. ac_cv_lib_intl_gettext=no
  21257. fi
  21258. rm -f core conftest.err conftest.$ac_objext \
  21259. conftest$ac_exeext conftest.$ac_ext
  21260. LIBS=$ac_check_lib_save_LIBS
  21261. fi
  21262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  21263. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  21264. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  21265. cat >>confdefs.h <<_ACEOF
  21266. #define HAVE_LIBINTL 1
  21267. _ACEOF
  21268. LIBS="-lintl $LIBS"
  21269. fi
  21270. for ac_func in vprintf
  21271. do :
  21272. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  21273. if test "x$ac_cv_func_vprintf" = xyes; then :
  21274. cat >>confdefs.h <<_ACEOF
  21275. #define HAVE_VPRINTF 1
  21276. _ACEOF
  21277. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  21278. if test "x$ac_cv_func__doprnt" = xyes; then :
  21279. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  21280. fi
  21281. fi
  21282. done
  21283. for ac_header in vfork.h
  21284. do :
  21285. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  21286. if test "x$ac_cv_header_vfork_h" = xyes; then :
  21287. cat >>confdefs.h <<_ACEOF
  21288. #define HAVE_VFORK_H 1
  21289. _ACEOF
  21290. fi
  21291. done
  21292. for ac_func in fork vfork
  21293. do :
  21294. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21295. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21296. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21297. cat >>confdefs.h <<_ACEOF
  21298. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21299. _ACEOF
  21300. fi
  21301. done
  21302. if test "x$ac_cv_func_fork" = xyes; then
  21303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  21304. $as_echo_n "checking for working fork... " >&6; }
  21305. if ${ac_cv_func_fork_works+:} false; then :
  21306. $as_echo_n "(cached) " >&6
  21307. else
  21308. if test "$cross_compiling" = yes; then :
  21309. ac_cv_func_fork_works=cross
  21310. else
  21311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21312. /* end confdefs.h. */
  21313. $ac_includes_default
  21314. int
  21315. main ()
  21316. {
  21317. /* By Ruediger Kuhlmann. */
  21318. return fork () < 0;
  21319. ;
  21320. return 0;
  21321. }
  21322. _ACEOF
  21323. if ac_fn_c_try_run "$LINENO"; then :
  21324. ac_cv_func_fork_works=yes
  21325. else
  21326. ac_cv_func_fork_works=no
  21327. fi
  21328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21329. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21330. fi
  21331. fi
  21332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  21333. $as_echo "$ac_cv_func_fork_works" >&6; }
  21334. else
  21335. ac_cv_func_fork_works=$ac_cv_func_fork
  21336. fi
  21337. if test "x$ac_cv_func_fork_works" = xcross; then
  21338. case $host in
  21339. *-*-amigaos* | *-*-msdosdjgpp*)
  21340. # Override, as these systems have only a dummy fork() stub
  21341. ac_cv_func_fork_works=no
  21342. ;;
  21343. *)
  21344. ac_cv_func_fork_works=yes
  21345. ;;
  21346. esac
  21347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  21348. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  21349. fi
  21350. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21351. if test "x$ac_cv_func_vfork" = xyes; then
  21352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  21353. $as_echo_n "checking for working vfork... " >&6; }
  21354. if ${ac_cv_func_vfork_works+:} false; then :
  21355. $as_echo_n "(cached) " >&6
  21356. else
  21357. if test "$cross_compiling" = yes; then :
  21358. ac_cv_func_vfork_works=cross
  21359. else
  21360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21361. /* end confdefs.h. */
  21362. /* Thanks to Paul Eggert for this test. */
  21363. $ac_includes_default
  21364. #include <sys/wait.h>
  21365. #ifdef HAVE_VFORK_H
  21366. # include <vfork.h>
  21367. #endif
  21368. /* On some sparc systems, changes by the child to local and incoming
  21369. argument registers are propagated back to the parent. The compiler
  21370. is told about this with #include <vfork.h>, but some compilers
  21371. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  21372. static variable whose address is put into a register that is
  21373. clobbered by the vfork. */
  21374. static void
  21375. #ifdef __cplusplus
  21376. sparc_address_test (int arg)
  21377. # else
  21378. sparc_address_test (arg) int arg;
  21379. #endif
  21380. {
  21381. static pid_t child;
  21382. if (!child) {
  21383. child = vfork ();
  21384. if (child < 0) {
  21385. perror ("vfork");
  21386. _exit(2);
  21387. }
  21388. if (!child) {
  21389. arg = getpid();
  21390. write(-1, "", 0);
  21391. _exit (arg);
  21392. }
  21393. }
  21394. }
  21395. int
  21396. main ()
  21397. {
  21398. pid_t parent = getpid ();
  21399. pid_t child;
  21400. sparc_address_test (0);
  21401. child = vfork ();
  21402. if (child == 0) {
  21403. /* Here is another test for sparc vfork register problems. This
  21404. test uses lots of local variables, at least as many local
  21405. variables as main has allocated so far including compiler
  21406. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21407. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21408. reuse the register of parent for one of the local variables,
  21409. since it will think that parent can't possibly be used any more
  21410. in this routine. Assigning to the local variable will thus
  21411. munge parent in the parent process. */
  21412. pid_t
  21413. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21414. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21415. /* Convince the compiler that p..p7 are live; otherwise, it might
  21416. use the same hardware register for all 8 local variables. */
  21417. if (p != p1 || p != p2 || p != p3 || p != p4
  21418. || p != p5 || p != p6 || p != p7)
  21419. _exit(1);
  21420. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21421. from child file descriptors. If the child closes a descriptor
  21422. before it execs or exits, this munges the parent's descriptor
  21423. as well. Test for this by closing stdout in the child. */
  21424. _exit(close(fileno(stdout)) != 0);
  21425. } else {
  21426. int status;
  21427. struct stat st;
  21428. while (wait(&status) != child)
  21429. ;
  21430. return (
  21431. /* Was there some problem with vforking? */
  21432. child < 0
  21433. /* Did the child fail? (This shouldn't happen.) */
  21434. || status
  21435. /* Did the vfork/compiler bug occur? */
  21436. || parent != getpid()
  21437. /* Did the file descriptor bug occur? */
  21438. || fstat(fileno(stdout), &st) != 0
  21439. );
  21440. }
  21441. }
  21442. _ACEOF
  21443. if ac_fn_c_try_run "$LINENO"; then :
  21444. ac_cv_func_vfork_works=yes
  21445. else
  21446. ac_cv_func_vfork_works=no
  21447. fi
  21448. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21449. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21450. fi
  21451. fi
  21452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21453. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21454. fi;
  21455. if test "x$ac_cv_func_fork_works" = xcross; then
  21456. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21458. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21459. fi
  21460. if test "x$ac_cv_func_vfork_works" = xyes; then
  21461. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21462. else
  21463. $as_echo "#define vfork fork" >>confdefs.h
  21464. fi
  21465. if test "x$ac_cv_func_fork_works" = xyes; then
  21466. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21467. fi
  21468. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21469. strrchr strsignal fchmod fstat chmod
  21470. do :
  21471. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21472. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21473. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21474. cat >>confdefs.h <<_ACEOF
  21475. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21476. _ACEOF
  21477. fi
  21478. done
  21479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21480. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21481. if ${ac_cv_path_SED+:} false; then :
  21482. $as_echo_n "(cached) " >&6
  21483. else
  21484. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21485. for ac_i in 1 2 3 4 5 6 7; do
  21486. ac_script="$ac_script$as_nl$ac_script"
  21487. done
  21488. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21489. { ac_script=; unset ac_script;}
  21490. if test -z "$SED"; then
  21491. ac_path_SED_found=false
  21492. # Loop through the user's path and test for each of PROGNAME-LIST
  21493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21494. for as_dir in $PATH
  21495. do
  21496. IFS=$as_save_IFS
  21497. test -z "$as_dir" && as_dir=.
  21498. for ac_prog in sed gsed; do
  21499. for ac_exec_ext in '' $ac_executable_extensions; do
  21500. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21501. as_fn_executable_p "$ac_path_SED" || continue
  21502. # Check for GNU ac_path_SED and select it if it is found.
  21503. # Check for GNU $ac_path_SED
  21504. case `"$ac_path_SED" --version 2>&1` in
  21505. *GNU*)
  21506. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21507. *)
  21508. ac_count=0
  21509. $as_echo_n 0123456789 >"conftest.in"
  21510. while :
  21511. do
  21512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21513. mv "conftest.tmp" "conftest.in"
  21514. cp "conftest.in" "conftest.nl"
  21515. $as_echo '' >> "conftest.nl"
  21516. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21518. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21519. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21520. # Best one so far, save it but keep looking for a better one
  21521. ac_cv_path_SED="$ac_path_SED"
  21522. ac_path_SED_max=$ac_count
  21523. fi
  21524. # 10*(2^10) chars as input seems more than enough
  21525. test $ac_count -gt 10 && break
  21526. done
  21527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21528. esac
  21529. $ac_path_SED_found && break 3
  21530. done
  21531. done
  21532. done
  21533. IFS=$as_save_IFS
  21534. if test -z "$ac_cv_path_SED"; then
  21535. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21536. fi
  21537. else
  21538. ac_cv_path_SED=$SED
  21539. fi
  21540. fi
  21541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21542. $as_echo "$ac_cv_path_SED" >&6; }
  21543. SED="$ac_cv_path_SED"
  21544. rm -f conftest.sed
  21545. while :
  21546. do
  21547. POSIX_SHELL=`which bash`
  21548. test -x "$POSIX_SHELL" && break
  21549. POSIX_SHELL=`which dash`
  21550. test -x "$POSIX_SHELL" && break
  21551. POSIX_SHELL=/usr/xpg4/bin/sh
  21552. test -x "$POSIX_SHELL" && break
  21553. POSIX_SHELL=`/bin/sh -c '
  21554. exec 2>/dev/null
  21555. if ! true ; then exit 1 ; fi
  21556. echo /bin/sh'`
  21557. test -x "$POSIX_SHELL" && break
  21558. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21559. done
  21560. cat >>confdefs.h <<_ACEOF
  21561. #define POSIX_SHELL "${POSIX_SHELL}"
  21562. _ACEOF
  21563. LIBOPTS_BUILD_BLOCKED=''
  21564. NEED_LIBOPTS_DIR=''
  21565. # Check whether --enable-local-libopts was given.
  21566. if test "${enable_local_libopts+set}" = set; then :
  21567. enableval=$enable_local_libopts;
  21568. if test x$enableval = xyes ; then
  21569. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21570. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21571. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21572. NEED_LIBOPTS_DIR=true
  21573. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21574. fi
  21575. fi
  21576. # Check whether --enable-libopts-install was given.
  21577. if test "${enable_libopts_install+set}" = set; then :
  21578. enableval=$enable_libopts_install;
  21579. fi
  21580. if test "X${enable_libopts_install}" = Xyes; then
  21581. INSTALL_LIBOPTS_TRUE=
  21582. INSTALL_LIBOPTS_FALSE='#'
  21583. else
  21584. INSTALL_LIBOPTS_TRUE='#'
  21585. INSTALL_LIBOPTS_FALSE=
  21586. fi
  21587. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21589. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21590. # Check whether --with-autoopts-config was given.
  21591. if test "${with_autoopts_config+set}" = set; then :
  21592. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21593. else
  21594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21595. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21596. if ${lo_cv_with_autoopts_config+:} false; then :
  21597. $as_echo_n "(cached) " >&6
  21598. else
  21599. if autoopts-config --help 2>/dev/null 1>&2
  21600. then lo_cv_with_autoopts_config=autoopts-config
  21601. elif libopts-config --help 2>/dev/null 1>&2
  21602. then lo_cv_with_autoopts_config=libopts-config
  21603. else lo_cv_with_autoopts_config=no ; fi
  21604. fi
  21605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21606. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21607. fi
  21608. # end of AC_ARG_WITH
  21609. if ${lo_cv_test_autoopts+:} false; then :
  21610. $as_echo_n "(cached) " >&6
  21611. else
  21612. if test -z "${lo_cv_with_autoopts_config}" \
  21613. -o X"${lo_cv_with_autoopts_config}" = Xno
  21614. then
  21615. if autoopts-config --help 2>/dev/null 1>&2
  21616. then lo_cv_with_autoopts_config=autoopts-config
  21617. elif libopts-config --help 2>/dev/null 1>&2
  21618. then lo_cv_with_autoopts_config=libopts-config
  21619. else lo_cv_with_autoopts_config=false ; fi
  21620. fi
  21621. lo_cv_test_autoopts=`
  21622. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21623. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21624. then lo_cv_test_autoopts=no ; fi
  21625. fi
  21626. # end of CACHE_VAL
  21627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21628. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21629. if test "X${lo_cv_test_autoopts}" != Xno
  21630. then
  21631. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21632. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21633. else
  21634. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21635. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21636. NEED_LIBOPTS_DIR=true
  21637. fi
  21638. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21639. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21640. NEED_LIBOPTS_DIR=''
  21641. fi
  21642. if test -n "${NEED_LIBOPTS_DIR}"; then
  21643. NEED_LIBOPTS_TRUE=
  21644. NEED_LIBOPTS_FALSE='#'
  21645. else
  21646. NEED_LIBOPTS_TRUE='#'
  21647. NEED_LIBOPTS_FALSE=
  21648. fi
  21649. LIBOPTS_DIR=libopts
  21650. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21651. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21652. # Check to see if a reg expr header is specified.
  21653. # Check whether --with-regex-header was given.
  21654. if test "${with_regex_header+set}" = set; then :
  21655. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21656. else
  21657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21658. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21659. if ${libopts_cv_with_regex_header+:} false; then :
  21660. $as_echo_n "(cached) " >&6
  21661. else
  21662. libopts_cv_with_regex_header=no
  21663. fi
  21664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21665. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21666. fi
  21667. # end of AC_ARG_WITH
  21668. if test "X${libopts_cv_with_regex_header}" != Xno
  21669. then
  21670. cat >>confdefs.h <<_ACEOF
  21671. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21672. _ACEOF
  21673. else
  21674. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21675. fi
  21676. # Check to see if a working libregex can be found.
  21677. # Check whether --with-libregex was given.
  21678. if test "${with_libregex+set}" = set; then :
  21679. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21680. else
  21681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21682. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21683. if ${libopts_cv_with_libregex_root+:} false; then :
  21684. $as_echo_n "(cached) " >&6
  21685. else
  21686. libopts_cv_with_libregex_root=no
  21687. fi
  21688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21689. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21690. fi
  21691. # end of AC_ARG_WITH libregex
  21692. if test "${with_libregex+set}" = set && \
  21693. test "X${withval}" = Xno
  21694. then ## disabled by request
  21695. libopts_cv_with_libregex_root=no
  21696. libopts_cv_with_libregex_cflags=no
  21697. libopts_cv_with_libregex_libs=no
  21698. else
  21699. # Check whether --with-libregex-cflags was given.
  21700. if test "${with_libregex_cflags+set}" = set; then :
  21701. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21702. else
  21703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21704. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21705. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21706. $as_echo_n "(cached) " >&6
  21707. else
  21708. libopts_cv_with_libregex_cflags=no
  21709. fi
  21710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21711. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21712. fi
  21713. # end of AC_ARG_WITH libregex-cflags
  21714. # Check whether --with-libregex-libs was given.
  21715. if test "${with_libregex_libs+set}" = set; then :
  21716. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21717. else
  21718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21719. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21720. if ${libopts_cv_with_libregex_libs+:} false; then :
  21721. $as_echo_n "(cached) " >&6
  21722. else
  21723. libopts_cv_with_libregex_libs=no
  21724. fi
  21725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21726. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21727. fi
  21728. # end of AC_ARG_WITH libregex-libs
  21729. case "X${libopts_cv_with_libregex_cflags}" in
  21730. Xyes|Xno|X )
  21731. case "X${libopts_cv_with_libregex_root}" in
  21732. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21733. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21734. esac
  21735. esac
  21736. case "X${libopts_cv_with_libregex_libs}" in
  21737. Xyes|Xno|X )
  21738. case "X${libopts_cv_with_libregex_root}" in
  21739. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21740. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21741. esac
  21742. esac
  21743. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21744. libopts_save_LIBS="${LIBS}"
  21745. case "X${libopts_cv_with_libregex_cflags}" in
  21746. Xyes|Xno|X )
  21747. libopts_cv_with_libregex_cflags="" ;;
  21748. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21749. esac
  21750. case "X${libopts_cv_with_libregex_libs}" in
  21751. Xyes|Xno|X )
  21752. libopts_cv_with_libregex_libs="" ;;
  21753. * )
  21754. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21755. esac
  21756. LIBREGEX_CFLAGS=""
  21757. LIBREGEX_LIBS=""
  21758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21759. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21760. if ${libopts_cv_with_libregex+:} false; then :
  21761. $as_echo_n "(cached) " >&6
  21762. else
  21763. if test "$cross_compiling" = yes; then :
  21764. libopts_cv_with_libregex=no
  21765. else
  21766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21767. /* end confdefs.h. */
  21768. #include <stdio.h>
  21769. #include <stdlib.h>
  21770. #include <sys/types.h>
  21771. #include REGEX_HEADER
  21772. static regex_t re;
  21773. void comp_re(char const * pzPat) {
  21774. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21775. if (res == 0) return;
  21776. exit( res ); }
  21777. int main() {
  21778. regmatch_t m[2];
  21779. comp_re( "^.*\$" );
  21780. comp_re( "()|no.*" );
  21781. comp_re( "." );
  21782. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21783. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21784. fputs( "error: regex -->.<-- did not match\n", stderr );
  21785. return 1;
  21786. }
  21787. return 0; }
  21788. _ACEOF
  21789. if ac_fn_c_try_run "$LINENO"; then :
  21790. libopts_cv_with_libregex=yes
  21791. else
  21792. libopts_cv_with_libregex=no
  21793. fi
  21794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21796. fi
  21797. # end of AC_RUN_IFELSE
  21798. fi
  21799. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21800. fi ## disabled by request
  21801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21802. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21803. if test "X${libopts_cv_with_libregex}" != Xno
  21804. then
  21805. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21806. else
  21807. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21808. LIBS="${libopts_save_LIBS}"
  21809. libopts_cv_with_libregex_root=no
  21810. libopts_cv_with_libregex_cflags=no
  21811. libopts_cv_with_libregex_libs=no
  21812. libopts_cv_with_libregex=no
  21813. fi
  21814. # Check to see if pathfind(3) works.
  21815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21816. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21817. if ${libopts_cv_run_pathfind+:} false; then :
  21818. $as_echo_n "(cached) " >&6
  21819. else
  21820. if test "$cross_compiling" = yes; then :
  21821. libopts_cv_run_pathfind=no
  21822. else
  21823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21824. /* end confdefs.h. */
  21825. #include <string.h>
  21826. #include <stdlib.h>
  21827. int main (int argc, char ** argv) {
  21828. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21829. return (pz == 0) ? 1 : 0;
  21830. }
  21831. _ACEOF
  21832. if ac_fn_c_try_run "$LINENO"; then :
  21833. libopts_cv_run_pathfind=yes
  21834. else
  21835. libopts_cv_run_pathfind=no
  21836. fi
  21837. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21838. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21839. fi
  21840. # end of RUN_IFELSE
  21841. fi
  21842. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21844. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21845. if test "X${libopts_cv_run_pathfind}" != Xno
  21846. then
  21847. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21848. fi
  21849. # Check to see if /dev/zero is readable device.
  21850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21851. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21852. if ${libopts_cv_test_dev_zero+:} false; then :
  21853. $as_echo_n "(cached) " >&6
  21854. else
  21855. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21856. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21857. test -z "${dzero}" && exit 1
  21858. echo ${dzero}`
  21859. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21860. then libopts_cv_test_dev_zero=no
  21861. fi
  21862. fi
  21863. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21865. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21866. if test "X${libopts_cv_test_dev_zero}" != Xno
  21867. then
  21868. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21869. fi
  21870. # Check to see if we have a functional realpath(3C).
  21871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21872. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21873. if ${libopts_cv_run_realpath+:} false; then :
  21874. $as_echo_n "(cached) " >&6
  21875. else
  21876. if test "$cross_compiling" = yes; then :
  21877. libopts_cv_run_realpath=no
  21878. else
  21879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21880. /* end confdefs.h. */
  21881. #include <limits.h>
  21882. #include <stdlib.h>
  21883. int main (int argc, char ** argv) {
  21884. #ifndef PATH_MAX
  21885. choke me!!
  21886. #else
  21887. char zPath[PATH_MAX+1];
  21888. #endif
  21889. char *pz = realpath(argv[0], zPath);
  21890. return (pz == zPath) ? 0 : 1;
  21891. }
  21892. _ACEOF
  21893. if ac_fn_c_try_run "$LINENO"; then :
  21894. libopts_cv_run_realpath=yes
  21895. else
  21896. libopts_cv_run_realpath=no
  21897. fi
  21898. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21899. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21900. fi
  21901. # end of RUN_IFELSE
  21902. fi
  21903. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21905. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21906. if test "X${libopts_cv_run_realpath}" != Xno
  21907. then
  21908. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21909. fi
  21910. # Check to see if strftime() works.
  21911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21912. $as_echo_n "checking whether strftime() works... " >&6; }
  21913. if ${libopts_cv_run_strftime+:} false; then :
  21914. $as_echo_n "(cached) " >&6
  21915. else
  21916. if test "$cross_compiling" = yes; then :
  21917. libopts_cv_run_strftime=no
  21918. else
  21919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21920. /* end confdefs.h. */
  21921. #include <time.h>
  21922. #include <string.h>
  21923. char t_buf[ 64 ];
  21924. int main() {
  21925. static char const z[] = "Thursday Aug 28 240";
  21926. struct tm tm;
  21927. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21928. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21929. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21930. tm.tm_mday = 28; /* day of the month [1, 31] */
  21931. tm.tm_mon = 7; /* months since January [0, 11] */
  21932. tm.tm_year = 86; /* years since 1900 */
  21933. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21934. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21935. tm.tm_isdst = 1; /* flag for daylight savings time */
  21936. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21937. return (strcmp( t_buf, z ) != 0); }
  21938. _ACEOF
  21939. if ac_fn_c_try_run "$LINENO"; then :
  21940. libopts_cv_run_strftime=yes
  21941. else
  21942. libopts_cv_run_strftime=no
  21943. fi
  21944. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21945. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21946. fi
  21947. # end of RUN_IFELSE
  21948. fi
  21949. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21951. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21952. if test "X${libopts_cv_run_strftime}" != Xno
  21953. then
  21954. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21955. fi
  21956. # Check to see if fopen accepts "b" mode.
  21957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21958. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21959. if ${libopts_cv_run_fopen_binary+:} false; then :
  21960. $as_echo_n "(cached) " >&6
  21961. else
  21962. if test "$cross_compiling" = yes; then :
  21963. libopts_cv_run_fopen_binary=no
  21964. else
  21965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21966. /* end confdefs.h. */
  21967. #include <stdio.h>
  21968. int main (int argc, char ** argv) {
  21969. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21970. return (fp == NULL) ? 1 : fclose(fp); }
  21971. _ACEOF
  21972. if ac_fn_c_try_run "$LINENO"; then :
  21973. libopts_cv_run_fopen_binary=yes
  21974. else
  21975. libopts_cv_run_fopen_binary=no
  21976. fi
  21977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21978. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21979. fi
  21980. # end of RUN_IFELSE
  21981. fi
  21982. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21984. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21985. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21986. then
  21987. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21988. else
  21989. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21990. fi
  21991. # Check to see if fopen accepts "t" mode.
  21992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21993. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21994. if ${libopts_cv_run_fopen_text+:} false; then :
  21995. $as_echo_n "(cached) " >&6
  21996. else
  21997. if test "$cross_compiling" = yes; then :
  21998. libopts_cv_run_fopen_text=no
  21999. else
  22000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22001. /* end confdefs.h. */
  22002. #include <stdio.h>
  22003. int main (int argc, char ** argv) {
  22004. FILE * fp = fopen("conftest.$ac_ext", "rt");
  22005. return (fp == NULL) ? 1 : fclose(fp); }
  22006. _ACEOF
  22007. if ac_fn_c_try_run "$LINENO"; then :
  22008. libopts_cv_run_fopen_text=yes
  22009. else
  22010. libopts_cv_run_fopen_text=no
  22011. fi
  22012. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22013. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22014. fi
  22015. # end of RUN_IFELSE
  22016. fi
  22017. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  22018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  22019. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  22020. if test "X${libopts_cv_run_fopen_text}" != Xno
  22021. then
  22022. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  22023. else
  22024. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  22025. fi
  22026. # Check to see if not wanting optional option args.
  22027. # Check whether --enable-optional-args was given.
  22028. if test "${enable_optional_args+set}" = set; then :
  22029. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  22030. else
  22031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  22032. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  22033. if ${libopts_cv_enable_optional_args+:} false; then :
  22034. $as_echo_n "(cached) " >&6
  22035. else
  22036. libopts_cv_enable_optional_args=yes
  22037. fi
  22038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  22039. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  22040. fi
  22041. # end of AC_ARG_ENABLE
  22042. if test "X${libopts_cv_enable_optional_args}" = Xno
  22043. then
  22044. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  22045. fi
  22046. fi
  22047. ac_config_files="$ac_config_files libopts/Makefile"
  22048. # end of AC_DEFUN of LIBOPTS_CHECK
  22049. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/common/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  22050. cat >confcache <<\_ACEOF
  22051. # This file is a shell script that caches the results of configure
  22052. # tests run on this system so they can be shared between configure
  22053. # scripts and configure runs, see configure's option --config-cache.
  22054. # It is not useful on other systems. If it contains results you don't
  22055. # want to keep, you may remove or edit it.
  22056. #
  22057. # config.status only pays attention to the cache file if you give it
  22058. # the --recheck option to rerun configure.
  22059. #
  22060. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22061. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22062. # following values.
  22063. _ACEOF
  22064. # The following way of writing the cache mishandles newlines in values,
  22065. # but we know of no workaround that is simple, portable, and efficient.
  22066. # So, we kill variables containing newlines.
  22067. # Ultrix sh set writes to stderr and can't be redirected directly,
  22068. # and sets the high bit in the cache file unless we assign to the vars.
  22069. (
  22070. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22071. eval ac_val=\$$ac_var
  22072. case $ac_val in #(
  22073. *${as_nl}*)
  22074. case $ac_var in #(
  22075. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22076. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22077. esac
  22078. case $ac_var in #(
  22079. _ | IFS | as_nl) ;; #(
  22080. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22081. *) { eval $ac_var=; unset $ac_var;} ;;
  22082. esac ;;
  22083. esac
  22084. done
  22085. (set) 2>&1 |
  22086. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22087. *${as_nl}ac_space=\ *)
  22088. # `set' does not quote correctly, so add quotes: double-quote
  22089. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22090. sed -n \
  22091. "s/'/'\\\\''/g;
  22092. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22093. ;; #(
  22094. *)
  22095. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22096. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22097. ;;
  22098. esac |
  22099. sort
  22100. ) |
  22101. sed '
  22102. /^ac_cv_env_/b end
  22103. t clear
  22104. :clear
  22105. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22106. t end
  22107. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22108. :end' >>confcache
  22109. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22110. if test -w "$cache_file"; then
  22111. if test "x$cache_file" != "x/dev/null"; then
  22112. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22113. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22114. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22115. cat confcache >"$cache_file"
  22116. else
  22117. case $cache_file in #(
  22118. */* | ?:*)
  22119. mv -f confcache "$cache_file"$$ &&
  22120. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22121. *)
  22122. mv -f confcache "$cache_file" ;;
  22123. esac
  22124. fi
  22125. fi
  22126. else
  22127. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22128. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22129. fi
  22130. fi
  22131. rm -f confcache
  22132. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22133. # Let make expand exec_prefix.
  22134. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22135. DEFS=-DHAVE_CONFIG_H
  22136. ac_libobjs=
  22137. ac_ltlibobjs=
  22138. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22139. # 1. Remove the extension, and $U if already installed.
  22140. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22141. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22142. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22143. # will be set to the directory where LIBOBJS objects are built.
  22144. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22145. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22146. done
  22147. LIBOBJS=$ac_libobjs
  22148. LTLIBOBJS=$ac_ltlibobjs
  22149. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22150. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  22151. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22152. fi
  22153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  22154. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  22155. if test -n "$am_sleep_pid"; then
  22156. # Hide warnings about reused PIDs.
  22157. wait $am_sleep_pid 2>/dev/null
  22158. fi
  22159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  22160. $as_echo "done" >&6; }
  22161. if test -n "$EXEEXT"; then
  22162. am__EXEEXT_TRUE=
  22163. am__EXEEXT_FALSE='#'
  22164. else
  22165. am__EXEEXT_TRUE='#'
  22166. am__EXEEXT_FALSE=
  22167. fi
  22168. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22169. as_fn_error $? "conditional \"AMDEP\" was never defined.
  22170. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22171. fi
  22172. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22173. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22174. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22175. fi
  22176. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22177. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22178. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22179. fi
  22180. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22181. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  22182. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22183. fi
  22184. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  22185. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  22186. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22187. fi
  22188. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  22189. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  22190. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22191. fi
  22192. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  22193. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  22194. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22195. fi
  22196. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  22197. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  22198. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22199. fi
  22200. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  22201. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  22202. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22203. fi
  22204. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  22205. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  22206. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22207. fi
  22208. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  22209. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  22210. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22211. fi
  22212. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  22213. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  22214. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22215. fi
  22216. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  22217. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  22218. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22219. fi
  22220. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  22221. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  22222. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22223. fi
  22224. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  22225. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  22226. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22227. fi
  22228. : "${CONFIG_STATUS=./config.status}"
  22229. ac_write_fail=0
  22230. ac_clean_files_save=$ac_clean_files
  22231. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22232. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22233. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22234. as_write_fail=0
  22235. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22236. #! $SHELL
  22237. # Generated by $as_me.
  22238. # Run this file to recreate the current configuration.
  22239. # Compiler output produced by configure, useful for debugging
  22240. # configure, is in config.log if it exists.
  22241. debug=false
  22242. ac_cs_recheck=false
  22243. ac_cs_silent=false
  22244. SHELL=\${CONFIG_SHELL-$SHELL}
  22245. export SHELL
  22246. _ASEOF
  22247. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22248. ## -------------------- ##
  22249. ## M4sh Initialization. ##
  22250. ## -------------------- ##
  22251. # Be more Bourne compatible
  22252. DUALCASE=1; export DUALCASE # for MKS sh
  22253. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22254. emulate sh
  22255. NULLCMD=:
  22256. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22257. # is contrary to our usage. Disable this feature.
  22258. alias -g '${1+"$@"}'='"$@"'
  22259. setopt NO_GLOB_SUBST
  22260. else
  22261. case `(set -o) 2>/dev/null` in #(
  22262. *posix*) :
  22263. set -o posix ;; #(
  22264. *) :
  22265. ;;
  22266. esac
  22267. fi
  22268. as_nl='
  22269. '
  22270. export as_nl
  22271. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22272. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22273. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22274. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22275. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22276. # but without wasting forks for bash or zsh.
  22277. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22278. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22279. as_echo='print -r --'
  22280. as_echo_n='print -rn --'
  22281. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22282. as_echo='printf %s\n'
  22283. as_echo_n='printf %s'
  22284. else
  22285. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22286. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22287. as_echo_n='/usr/ucb/echo -n'
  22288. else
  22289. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22290. as_echo_n_body='eval
  22291. arg=$1;
  22292. case $arg in #(
  22293. *"$as_nl"*)
  22294. expr "X$arg" : "X\\(.*\\)$as_nl";
  22295. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22296. esac;
  22297. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22298. '
  22299. export as_echo_n_body
  22300. as_echo_n='sh -c $as_echo_n_body as_echo'
  22301. fi
  22302. export as_echo_body
  22303. as_echo='sh -c $as_echo_body as_echo'
  22304. fi
  22305. # The user is always right.
  22306. if test "${PATH_SEPARATOR+set}" != set; then
  22307. PATH_SEPARATOR=:
  22308. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22309. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22310. PATH_SEPARATOR=';'
  22311. }
  22312. fi
  22313. # IFS
  22314. # We need space, tab and new line, in precisely that order. Quoting is
  22315. # there to prevent editors from complaining about space-tab.
  22316. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22317. # splitting by setting IFS to empty value.)
  22318. IFS=" "" $as_nl"
  22319. # Find who we are. Look in the path if we contain no directory separator.
  22320. as_myself=
  22321. case $0 in #((
  22322. *[\\/]* ) as_myself=$0 ;;
  22323. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22324. for as_dir in $PATH
  22325. do
  22326. IFS=$as_save_IFS
  22327. test -z "$as_dir" && as_dir=.
  22328. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22329. done
  22330. IFS=$as_save_IFS
  22331. ;;
  22332. esac
  22333. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22334. # in which case we are not to be found in the path.
  22335. if test "x$as_myself" = x; then
  22336. as_myself=$0
  22337. fi
  22338. if test ! -f "$as_myself"; then
  22339. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22340. exit 1
  22341. fi
  22342. # Unset variables that we do not need and which cause bugs (e.g. in
  22343. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22344. # suppresses any "Segmentation fault" message there. '((' could
  22345. # trigger a bug in pdksh 5.2.14.
  22346. for as_var in BASH_ENV ENV MAIL MAILPATH
  22347. do eval test x\${$as_var+set} = xset \
  22348. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22349. done
  22350. PS1='$ '
  22351. PS2='> '
  22352. PS4='+ '
  22353. # NLS nuisances.
  22354. LC_ALL=C
  22355. export LC_ALL
  22356. LANGUAGE=C
  22357. export LANGUAGE
  22358. # CDPATH.
  22359. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22360. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22361. # ----------------------------------------
  22362. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22363. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22364. # script with STATUS, using 1 if that was 0.
  22365. as_fn_error ()
  22366. {
  22367. as_status=$1; test $as_status -eq 0 && as_status=1
  22368. if test "$4"; then
  22369. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22370. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22371. fi
  22372. $as_echo "$as_me: error: $2" >&2
  22373. as_fn_exit $as_status
  22374. } # as_fn_error
  22375. # as_fn_set_status STATUS
  22376. # -----------------------
  22377. # Set $? to STATUS, without forking.
  22378. as_fn_set_status ()
  22379. {
  22380. return $1
  22381. } # as_fn_set_status
  22382. # as_fn_exit STATUS
  22383. # -----------------
  22384. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22385. as_fn_exit ()
  22386. {
  22387. set +e
  22388. as_fn_set_status $1
  22389. exit $1
  22390. } # as_fn_exit
  22391. # as_fn_unset VAR
  22392. # ---------------
  22393. # Portably unset VAR.
  22394. as_fn_unset ()
  22395. {
  22396. { eval $1=; unset $1;}
  22397. }
  22398. as_unset=as_fn_unset
  22399. # as_fn_append VAR VALUE
  22400. # ----------------------
  22401. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22402. # advantage of any shell optimizations that allow amortized linear growth over
  22403. # repeated appends, instead of the typical quadratic growth present in naive
  22404. # implementations.
  22405. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22406. eval 'as_fn_append ()
  22407. {
  22408. eval $1+=\$2
  22409. }'
  22410. else
  22411. as_fn_append ()
  22412. {
  22413. eval $1=\$$1\$2
  22414. }
  22415. fi # as_fn_append
  22416. # as_fn_arith ARG...
  22417. # ------------------
  22418. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22419. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22420. # must be portable across $(()) and expr.
  22421. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22422. eval 'as_fn_arith ()
  22423. {
  22424. as_val=$(( $* ))
  22425. }'
  22426. else
  22427. as_fn_arith ()
  22428. {
  22429. as_val=`expr "$@" || test $? -eq 1`
  22430. }
  22431. fi # as_fn_arith
  22432. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22433. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22434. as_expr=expr
  22435. else
  22436. as_expr=false
  22437. fi
  22438. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22439. as_basename=basename
  22440. else
  22441. as_basename=false
  22442. fi
  22443. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22444. as_dirname=dirname
  22445. else
  22446. as_dirname=false
  22447. fi
  22448. as_me=`$as_basename -- "$0" ||
  22449. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22450. X"$0" : 'X\(//\)$' \| \
  22451. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22452. $as_echo X/"$0" |
  22453. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22454. s//\1/
  22455. q
  22456. }
  22457. /^X\/\(\/\/\)$/{
  22458. s//\1/
  22459. q
  22460. }
  22461. /^X\/\(\/\).*/{
  22462. s//\1/
  22463. q
  22464. }
  22465. s/.*/./; q'`
  22466. # Avoid depending upon Character Ranges.
  22467. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22468. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22469. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22470. as_cr_digits='0123456789'
  22471. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22472. ECHO_C= ECHO_N= ECHO_T=
  22473. case `echo -n x` in #(((((
  22474. -n*)
  22475. case `echo 'xy\c'` in
  22476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22477. xy) ECHO_C='\c';;
  22478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22479. ECHO_T=' ';;
  22480. esac;;
  22481. *)
  22482. ECHO_N='-n';;
  22483. esac
  22484. rm -f conf$$ conf$$.exe conf$$.file
  22485. if test -d conf$$.dir; then
  22486. rm -f conf$$.dir/conf$$.file
  22487. else
  22488. rm -f conf$$.dir
  22489. mkdir conf$$.dir 2>/dev/null
  22490. fi
  22491. if (echo >conf$$.file) 2>/dev/null; then
  22492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22493. as_ln_s='ln -s'
  22494. # ... but there are two gotchas:
  22495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22497. # In both cases, we have to default to `cp -pR'.
  22498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22499. as_ln_s='cp -pR'
  22500. elif ln conf$$.file conf$$ 2>/dev/null; then
  22501. as_ln_s=ln
  22502. else
  22503. as_ln_s='cp -pR'
  22504. fi
  22505. else
  22506. as_ln_s='cp -pR'
  22507. fi
  22508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22509. rmdir conf$$.dir 2>/dev/null
  22510. # as_fn_mkdir_p
  22511. # -------------
  22512. # Create "$as_dir" as a directory, including parents if necessary.
  22513. as_fn_mkdir_p ()
  22514. {
  22515. case $as_dir in #(
  22516. -*) as_dir=./$as_dir;;
  22517. esac
  22518. test -d "$as_dir" || eval $as_mkdir_p || {
  22519. as_dirs=
  22520. while :; do
  22521. case $as_dir in #(
  22522. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22523. *) as_qdir=$as_dir;;
  22524. esac
  22525. as_dirs="'$as_qdir' $as_dirs"
  22526. as_dir=`$as_dirname -- "$as_dir" ||
  22527. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22528. X"$as_dir" : 'X\(//\)[^/]' \| \
  22529. X"$as_dir" : 'X\(//\)$' \| \
  22530. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22531. $as_echo X"$as_dir" |
  22532. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22533. s//\1/
  22534. q
  22535. }
  22536. /^X\(\/\/\)[^/].*/{
  22537. s//\1/
  22538. q
  22539. }
  22540. /^X\(\/\/\)$/{
  22541. s//\1/
  22542. q
  22543. }
  22544. /^X\(\/\).*/{
  22545. s//\1/
  22546. q
  22547. }
  22548. s/.*/./; q'`
  22549. test -d "$as_dir" && break
  22550. done
  22551. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22552. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22553. } # as_fn_mkdir_p
  22554. if mkdir -p . 2>/dev/null; then
  22555. as_mkdir_p='mkdir -p "$as_dir"'
  22556. else
  22557. test -d ./-p && rmdir ./-p
  22558. as_mkdir_p=false
  22559. fi
  22560. # as_fn_executable_p FILE
  22561. # -----------------------
  22562. # Test if FILE is an executable regular file.
  22563. as_fn_executable_p ()
  22564. {
  22565. test -f "$1" && test -x "$1"
  22566. } # as_fn_executable_p
  22567. as_test_x='test -x'
  22568. as_executable_p=as_fn_executable_p
  22569. # Sed expression to map a string onto a valid CPP name.
  22570. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22571. # Sed expression to map a string onto a valid variable name.
  22572. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22573. exec 6>&1
  22574. ## ----------------------------------- ##
  22575. ## Main body of $CONFIG_STATUS script. ##
  22576. ## ----------------------------------- ##
  22577. _ASEOF
  22578. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22580. # Save the log message, to keep $0 and so on meaningful, and to
  22581. # report actual input values of CONFIG_FILES etc. instead of their
  22582. # values after options handling.
  22583. ac_log="
  22584. This file was extended by tcpreplay $as_me 4.3.3, which was
  22585. generated by GNU Autoconf 2.69. Invocation command line was
  22586. CONFIG_FILES = $CONFIG_FILES
  22587. CONFIG_HEADERS = $CONFIG_HEADERS
  22588. CONFIG_LINKS = $CONFIG_LINKS
  22589. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22590. $ $0 $@
  22591. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22592. "
  22593. _ACEOF
  22594. case $ac_config_files in *"
  22595. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22596. esac
  22597. case $ac_config_headers in *"
  22598. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22599. esac
  22600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22601. # Files that config.status was made for.
  22602. config_files="$ac_config_files"
  22603. config_headers="$ac_config_headers"
  22604. config_commands="$ac_config_commands"
  22605. _ACEOF
  22606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22607. ac_cs_usage="\
  22608. \`$as_me' instantiates files and other configuration actions
  22609. from templates according to the current configuration. Unless the files
  22610. and actions are specified as TAGs, all are instantiated by default.
  22611. Usage: $0 [OPTION]... [TAG]...
  22612. -h, --help print this help, then exit
  22613. -V, --version print version number and configuration settings, then exit
  22614. --config print configuration, then exit
  22615. -q, --quiet, --silent
  22616. do not print progress messages
  22617. -d, --debug don't remove temporary files
  22618. --recheck update $as_me by reconfiguring in the same conditions
  22619. --file=FILE[:TEMPLATE]
  22620. instantiate the configuration file FILE
  22621. --header=FILE[:TEMPLATE]
  22622. instantiate the configuration header FILE
  22623. Configuration files:
  22624. $config_files
  22625. Configuration headers:
  22626. $config_headers
  22627. Configuration commands:
  22628. $config_commands
  22629. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22630. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22631. _ACEOF
  22632. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22633. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22634. ac_cs_version="\\
  22635. tcpreplay config.status 4.3.3
  22636. configured by $0, generated by GNU Autoconf 2.69,
  22637. with options \\"\$ac_cs_config\\"
  22638. Copyright (C) 2012 Free Software Foundation, Inc.
  22639. This config.status script is free software; the Free Software Foundation
  22640. gives unlimited permission to copy, distribute and modify it."
  22641. ac_pwd='$ac_pwd'
  22642. srcdir='$srcdir'
  22643. INSTALL='$INSTALL'
  22644. MKDIR_P='$MKDIR_P'
  22645. AWK='$AWK'
  22646. test -n "\$AWK" || AWK=awk
  22647. _ACEOF
  22648. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22649. # The default lists apply if the user does not specify any file.
  22650. ac_need_defaults=:
  22651. while test $# != 0
  22652. do
  22653. case $1 in
  22654. --*=?*)
  22655. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22656. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22657. ac_shift=:
  22658. ;;
  22659. --*=)
  22660. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22661. ac_optarg=
  22662. ac_shift=:
  22663. ;;
  22664. *)
  22665. ac_option=$1
  22666. ac_optarg=$2
  22667. ac_shift=shift
  22668. ;;
  22669. esac
  22670. case $ac_option in
  22671. # Handling of the options.
  22672. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22673. ac_cs_recheck=: ;;
  22674. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22675. $as_echo "$ac_cs_version"; exit ;;
  22676. --config | --confi | --conf | --con | --co | --c )
  22677. $as_echo "$ac_cs_config"; exit ;;
  22678. --debug | --debu | --deb | --de | --d | -d )
  22679. debug=: ;;
  22680. --file | --fil | --fi | --f )
  22681. $ac_shift
  22682. case $ac_optarg in
  22683. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22684. '') as_fn_error $? "missing file argument" ;;
  22685. esac
  22686. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22687. ac_need_defaults=false;;
  22688. --header | --heade | --head | --hea )
  22689. $ac_shift
  22690. case $ac_optarg in
  22691. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22692. esac
  22693. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22694. ac_need_defaults=false;;
  22695. --he | --h)
  22696. # Conflict between --help and --header
  22697. as_fn_error $? "ambiguous option: \`$1'
  22698. Try \`$0 --help' for more information.";;
  22699. --help | --hel | -h )
  22700. $as_echo "$ac_cs_usage"; exit ;;
  22701. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22702. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22703. ac_cs_silent=: ;;
  22704. # This is an error.
  22705. -*) as_fn_error $? "unrecognized option: \`$1'
  22706. Try \`$0 --help' for more information." ;;
  22707. *) as_fn_append ac_config_targets " $1"
  22708. ac_need_defaults=false ;;
  22709. esac
  22710. shift
  22711. done
  22712. ac_configure_extra_args=
  22713. if $ac_cs_silent; then
  22714. exec 6>/dev/null
  22715. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22716. fi
  22717. _ACEOF
  22718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22719. if \$ac_cs_recheck; then
  22720. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22721. shift
  22722. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22723. CONFIG_SHELL='$SHELL'
  22724. export CONFIG_SHELL
  22725. exec "\$@"
  22726. fi
  22727. _ACEOF
  22728. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22729. exec 5>>config.log
  22730. {
  22731. echo
  22732. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22733. ## Running $as_me. ##
  22734. _ASBOX
  22735. $as_echo "$ac_log"
  22736. } >&5
  22737. _ACEOF
  22738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22739. #
  22740. # INIT-COMMANDS
  22741. #
  22742. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22743. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22744. # if CDPATH is set.
  22745. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22746. sed_quote_subst='$sed_quote_subst'
  22747. double_quote_subst='$double_quote_subst'
  22748. delay_variable_subst='$delay_variable_subst'
  22749. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22750. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22751. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22752. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22753. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22754. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22755. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22756. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22757. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22758. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22759. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22760. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22761. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22762. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22763. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22764. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22765. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22766. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22767. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22768. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22769. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22770. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22771. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22772. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22773. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22774. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22775. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22776. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22777. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22778. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22779. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22780. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22781. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22782. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22783. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22784. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22785. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22786. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22787. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22788. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22789. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22790. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22791. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22792. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22793. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22794. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22795. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22796. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22797. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22798. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22799. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22800. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22801. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22802. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22803. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22804. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22805. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22806. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22807. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22808. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22809. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22810. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22811. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22812. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22813. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22814. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22815. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22816. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22817. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22818. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22819. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22820. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22821. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22822. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22823. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22824. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22825. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22826. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22827. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22828. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22829. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22830. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22831. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22832. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22833. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22834. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22835. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22836. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22837. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22838. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22839. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22840. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22841. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22842. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22843. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22844. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22845. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22846. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22847. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22848. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22849. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22850. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22851. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22852. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22853. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22854. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22855. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22856. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22857. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22858. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22859. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22860. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22861. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22862. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22863. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22864. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22865. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22866. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22867. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22868. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22869. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22870. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22871. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22872. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22873. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22874. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22875. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22876. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22877. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22878. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22879. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22880. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22881. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22882. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22883. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22884. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22885. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22886. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22887. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22888. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22889. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22890. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22891. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22892. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22893. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22894. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22895. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22896. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22897. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22898. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22899. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22900. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22901. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22902. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22903. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22904. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22905. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22906. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22907. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22908. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22909. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22910. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22911. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22912. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22913. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22914. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22915. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22916. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22917. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22918. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22919. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22920. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22921. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22922. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22923. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22924. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22925. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22926. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22927. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22928. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22929. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22930. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22931. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22932. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22933. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22934. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22935. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22936. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22937. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22938. LTCC='$LTCC'
  22939. LTCFLAGS='$LTCFLAGS'
  22940. compiler='$compiler_DEFAULT'
  22941. # A function that is used when there is no print builtin or printf.
  22942. func_fallback_echo ()
  22943. {
  22944. eval 'cat <<_LTECHO_EOF
  22945. \$1
  22946. _LTECHO_EOF'
  22947. }
  22948. # Quote evaled strings.
  22949. for var in SHELL \
  22950. ECHO \
  22951. PATH_SEPARATOR \
  22952. SED \
  22953. GREP \
  22954. EGREP \
  22955. FGREP \
  22956. LD \
  22957. NM \
  22958. LN_S \
  22959. lt_SP2NL \
  22960. lt_NL2SP \
  22961. reload_flag \
  22962. OBJDUMP \
  22963. deplibs_check_method \
  22964. file_magic_cmd \
  22965. file_magic_glob \
  22966. want_nocaseglob \
  22967. DLLTOOL \
  22968. sharedlib_from_linklib_cmd \
  22969. AR \
  22970. AR_FLAGS \
  22971. archiver_list_spec \
  22972. STRIP \
  22973. RANLIB \
  22974. CC \
  22975. CFLAGS \
  22976. compiler \
  22977. lt_cv_sys_global_symbol_pipe \
  22978. lt_cv_sys_global_symbol_to_cdecl \
  22979. lt_cv_sys_global_symbol_to_import \
  22980. lt_cv_sys_global_symbol_to_c_name_address \
  22981. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22982. lt_cv_nm_interface \
  22983. nm_file_list_spec \
  22984. lt_cv_truncate_bin \
  22985. lt_prog_compiler_no_builtin_flag \
  22986. lt_prog_compiler_pic \
  22987. lt_prog_compiler_wl \
  22988. lt_prog_compiler_static \
  22989. lt_cv_prog_compiler_c_o \
  22990. need_locks \
  22991. MANIFEST_TOOL \
  22992. DSYMUTIL \
  22993. NMEDIT \
  22994. LIPO \
  22995. OTOOL \
  22996. OTOOL64 \
  22997. shrext_cmds \
  22998. export_dynamic_flag_spec \
  22999. whole_archive_flag_spec \
  23000. compiler_needs_object \
  23001. with_gnu_ld \
  23002. allow_undefined_flag \
  23003. no_undefined_flag \
  23004. hardcode_libdir_flag_spec \
  23005. hardcode_libdir_separator \
  23006. exclude_expsyms \
  23007. include_expsyms \
  23008. file_list_spec \
  23009. variables_saved_for_relink \
  23010. libname_spec \
  23011. library_names_spec \
  23012. soname_spec \
  23013. install_override_mode \
  23014. finish_eval \
  23015. old_striplib \
  23016. striplib \
  23017. compiler_lib_search_dirs \
  23018. predep_objects \
  23019. postdep_objects \
  23020. predeps \
  23021. postdeps \
  23022. compiler_lib_search_path \
  23023. LD_CXX \
  23024. reload_flag_CXX \
  23025. compiler_CXX \
  23026. lt_prog_compiler_no_builtin_flag_CXX \
  23027. lt_prog_compiler_pic_CXX \
  23028. lt_prog_compiler_wl_CXX \
  23029. lt_prog_compiler_static_CXX \
  23030. lt_cv_prog_compiler_c_o_CXX \
  23031. export_dynamic_flag_spec_CXX \
  23032. whole_archive_flag_spec_CXX \
  23033. compiler_needs_object_CXX \
  23034. with_gnu_ld_CXX \
  23035. allow_undefined_flag_CXX \
  23036. no_undefined_flag_CXX \
  23037. hardcode_libdir_flag_spec_CXX \
  23038. hardcode_libdir_separator_CXX \
  23039. exclude_expsyms_CXX \
  23040. include_expsyms_CXX \
  23041. file_list_spec_CXX \
  23042. compiler_lib_search_dirs_CXX \
  23043. predep_objects_CXX \
  23044. postdep_objects_CXX \
  23045. predeps_CXX \
  23046. postdeps_CXX \
  23047. compiler_lib_search_path_CXX; do
  23048. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23049. *[\\\\\\\`\\"\\\$]*)
  23050. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23051. ;;
  23052. *)
  23053. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23054. ;;
  23055. esac
  23056. done
  23057. # Double-quote double-evaled strings.
  23058. for var in reload_cmds \
  23059. old_postinstall_cmds \
  23060. old_postuninstall_cmds \
  23061. old_archive_cmds \
  23062. extract_expsyms_cmds \
  23063. old_archive_from_new_cmds \
  23064. old_archive_from_expsyms_cmds \
  23065. archive_cmds \
  23066. archive_expsym_cmds \
  23067. module_cmds \
  23068. module_expsym_cmds \
  23069. export_symbols_cmds \
  23070. prelink_cmds \
  23071. postlink_cmds \
  23072. postinstall_cmds \
  23073. postuninstall_cmds \
  23074. finish_cmds \
  23075. sys_lib_search_path_spec \
  23076. configure_time_dlsearch_path \
  23077. configure_time_lt_sys_library_path \
  23078. reload_cmds_CXX \
  23079. old_archive_cmds_CXX \
  23080. old_archive_from_new_cmds_CXX \
  23081. old_archive_from_expsyms_cmds_CXX \
  23082. archive_cmds_CXX \
  23083. archive_expsym_cmds_CXX \
  23084. module_cmds_CXX \
  23085. module_expsym_cmds_CXX \
  23086. export_symbols_cmds_CXX \
  23087. prelink_cmds_CXX \
  23088. postlink_cmds_CXX; do
  23089. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23090. *[\\\\\\\`\\"\\\$]*)
  23091. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23092. ;;
  23093. *)
  23094. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23095. ;;
  23096. esac
  23097. done
  23098. ac_aux_dir='$ac_aux_dir'
  23099. # See if we are running on zsh, and set the options that allow our
  23100. # commands through without removal of \ escapes INIT.
  23101. if test -n "\${ZSH_VERSION+set}"; then
  23102. setopt NO_GLOB_SUBST
  23103. fi
  23104. PACKAGE='$PACKAGE'
  23105. VERSION='$VERSION'
  23106. RM='$RM'
  23107. ofile='$ofile'
  23108. _ACEOF
  23109. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23110. # Handling of arguments.
  23111. for ac_config_target in $ac_config_targets
  23112. do
  23113. case $ac_config_target in
  23114. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  23115. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23116. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23117. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  23118. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23119. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  23120. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23121. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  23122. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  23123. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  23124. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  23125. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  23126. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  23127. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  23128. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  23129. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  23130. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23131. esac
  23132. done
  23133. # If the user did not use the arguments to specify the items to instantiate,
  23134. # then the envvar interface is used. Set only those that are not.
  23135. # We use the long form for the default assignment because of an extremely
  23136. # bizarre bug on SunOS 4.1.3.
  23137. if $ac_need_defaults; then
  23138. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23139. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23140. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23141. fi
  23142. # Have a temporary directory for convenience. Make it in the build tree
  23143. # simply because there is no reason against having it here, and in addition,
  23144. # creating and moving files from /tmp can sometimes cause problems.
  23145. # Hook for its removal unless debugging.
  23146. # Note that there is a small window in which the directory will not be cleaned:
  23147. # after its creation but before its name has been assigned to `$tmp'.
  23148. $debug ||
  23149. {
  23150. tmp= ac_tmp=
  23151. trap 'exit_status=$?
  23152. : "${ac_tmp:=$tmp}"
  23153. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23154. ' 0
  23155. trap 'as_fn_exit 1' 1 2 13 15
  23156. }
  23157. # Create a (secure) tmp directory for tmp files.
  23158. {
  23159. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23160. test -d "$tmp"
  23161. } ||
  23162. {
  23163. tmp=./conf$$-$RANDOM
  23164. (umask 077 && mkdir "$tmp")
  23165. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23166. ac_tmp=$tmp
  23167. # Set up the scripts for CONFIG_FILES section.
  23168. # No need to generate them if there are no CONFIG_FILES.
  23169. # This happens for instance with `./config.status config.h'.
  23170. if test -n "$CONFIG_FILES"; then
  23171. ac_cr=`echo X | tr X '\015'`
  23172. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23173. # But we know of no other shell where ac_cr would be empty at this
  23174. # point, so we can use a bashism as a fallback.
  23175. if test "x$ac_cr" = x; then
  23176. eval ac_cr=\$\'\\r\'
  23177. fi
  23178. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23179. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23180. ac_cs_awk_cr='\\r'
  23181. else
  23182. ac_cs_awk_cr=$ac_cr
  23183. fi
  23184. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23185. _ACEOF
  23186. {
  23187. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23188. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23189. echo "_ACEOF"
  23190. } >conf$$subs.sh ||
  23191. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23192. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23193. ac_delim='%!_!# '
  23194. for ac_last_try in false false false false false :; do
  23195. . ./conf$$subs.sh ||
  23196. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23197. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23198. if test $ac_delim_n = $ac_delim_num; then
  23199. break
  23200. elif $ac_last_try; then
  23201. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23202. else
  23203. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23204. fi
  23205. done
  23206. rm -f conf$$subs.sh
  23207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23208. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23209. _ACEOF
  23210. sed -n '
  23211. h
  23212. s/^/S["/; s/!.*/"]=/
  23213. p
  23214. g
  23215. s/^[^!]*!//
  23216. :repl
  23217. t repl
  23218. s/'"$ac_delim"'$//
  23219. t delim
  23220. :nl
  23221. h
  23222. s/\(.\{148\}\)..*/\1/
  23223. t more1
  23224. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23225. p
  23226. n
  23227. b repl
  23228. :more1
  23229. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23230. p
  23231. g
  23232. s/.\{148\}//
  23233. t nl
  23234. :delim
  23235. h
  23236. s/\(.\{148\}\)..*/\1/
  23237. t more2
  23238. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23239. p
  23240. b
  23241. :more2
  23242. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23243. p
  23244. g
  23245. s/.\{148\}//
  23246. t delim
  23247. ' <conf$$subs.awk | sed '
  23248. /^[^""]/{
  23249. N
  23250. s/\n//
  23251. }
  23252. ' >>$CONFIG_STATUS || ac_write_fail=1
  23253. rm -f conf$$subs.awk
  23254. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23255. _ACAWK
  23256. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23257. for (key in S) S_is_set[key] = 1
  23258. FS = ""
  23259. }
  23260. {
  23261. line = $ 0
  23262. nfields = split(line, field, "@")
  23263. substed = 0
  23264. len = length(field[1])
  23265. for (i = 2; i < nfields; i++) {
  23266. key = field[i]
  23267. keylen = length(key)
  23268. if (S_is_set[key]) {
  23269. value = S[key]
  23270. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23271. len += length(value) + length(field[++i])
  23272. substed = 1
  23273. } else
  23274. len += 1 + keylen
  23275. }
  23276. print line
  23277. }
  23278. _ACAWK
  23279. _ACEOF
  23280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23281. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23282. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23283. else
  23284. cat
  23285. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23286. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23287. _ACEOF
  23288. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23289. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23290. # trailing colons and then remove the whole line if VPATH becomes empty
  23291. # (actually we leave an empty line to preserve line numbers).
  23292. if test "x$srcdir" = x.; then
  23293. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23294. h
  23295. s///
  23296. s/^/:/
  23297. s/[ ]*$/:/
  23298. s/:\$(srcdir):/:/g
  23299. s/:\${srcdir}:/:/g
  23300. s/:@srcdir@:/:/g
  23301. s/^:*//
  23302. s/:*$//
  23303. x
  23304. s/\(=[ ]*\).*/\1/
  23305. G
  23306. s/\n//
  23307. s/^[^=]*=[ ]*$//
  23308. }'
  23309. fi
  23310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23311. fi # test -n "$CONFIG_FILES"
  23312. # Set up the scripts for CONFIG_HEADERS section.
  23313. # No need to generate them if there are no CONFIG_HEADERS.
  23314. # This happens for instance with `./config.status Makefile'.
  23315. if test -n "$CONFIG_HEADERS"; then
  23316. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23317. BEGIN {
  23318. _ACEOF
  23319. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23320. # here-document in config.status, that substitutes the proper values into
  23321. # config.h.in to produce config.h.
  23322. # Create a delimiter string that does not exist in confdefs.h, to ease
  23323. # handling of long lines.
  23324. ac_delim='%!_!# '
  23325. for ac_last_try in false false :; do
  23326. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23327. if test -z "$ac_tt"; then
  23328. break
  23329. elif $ac_last_try; then
  23330. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23331. else
  23332. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23333. fi
  23334. done
  23335. # For the awk script, D is an array of macro values keyed by name,
  23336. # likewise P contains macro parameters if any. Preserve backslash
  23337. # newline sequences.
  23338. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23339. sed -n '
  23340. s/.\{148\}/&'"$ac_delim"'/g
  23341. t rset
  23342. :rset
  23343. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23344. t def
  23345. d
  23346. :def
  23347. s/\\$//
  23348. t bsnl
  23349. s/["\\]/\\&/g
  23350. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23351. D["\1"]=" \3"/p
  23352. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23353. d
  23354. :bsnl
  23355. s/["\\]/\\&/g
  23356. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23357. D["\1"]=" \3\\\\\\n"\\/p
  23358. t cont
  23359. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23360. t cont
  23361. d
  23362. :cont
  23363. n
  23364. s/.\{148\}/&'"$ac_delim"'/g
  23365. t clear
  23366. :clear
  23367. s/\\$//
  23368. t bsnlc
  23369. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23370. d
  23371. :bsnlc
  23372. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23373. b cont
  23374. ' <confdefs.h | sed '
  23375. s/'"$ac_delim"'/"\\\
  23376. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23377. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23378. for (key in D) D_is_set[key] = 1
  23379. FS = ""
  23380. }
  23381. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23382. line = \$ 0
  23383. split(line, arg, " ")
  23384. if (arg[1] == "#") {
  23385. defundef = arg[2]
  23386. mac1 = arg[3]
  23387. } else {
  23388. defundef = substr(arg[1], 2)
  23389. mac1 = arg[2]
  23390. }
  23391. split(mac1, mac2, "(") #)
  23392. macro = mac2[1]
  23393. prefix = substr(line, 1, index(line, defundef) - 1)
  23394. if (D_is_set[macro]) {
  23395. # Preserve the white space surrounding the "#".
  23396. print prefix "define", macro P[macro] D[macro]
  23397. next
  23398. } else {
  23399. # Replace #undef with comments. This is necessary, for example,
  23400. # in the case of _POSIX_SOURCE, which is predefined and required
  23401. # on some systems where configure will not decide to define it.
  23402. if (defundef == "undef") {
  23403. print "/*", prefix defundef, macro, "*/"
  23404. next
  23405. }
  23406. }
  23407. }
  23408. { print }
  23409. _ACAWK
  23410. _ACEOF
  23411. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23412. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23413. fi # test -n "$CONFIG_HEADERS"
  23414. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23415. shift
  23416. for ac_tag
  23417. do
  23418. case $ac_tag in
  23419. :[FHLC]) ac_mode=$ac_tag; continue;;
  23420. esac
  23421. case $ac_mode$ac_tag in
  23422. :[FHL]*:*);;
  23423. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23424. :[FH]-) ac_tag=-:-;;
  23425. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23426. esac
  23427. ac_save_IFS=$IFS
  23428. IFS=:
  23429. set x $ac_tag
  23430. IFS=$ac_save_IFS
  23431. shift
  23432. ac_file=$1
  23433. shift
  23434. case $ac_mode in
  23435. :L) ac_source=$1;;
  23436. :[FH])
  23437. ac_file_inputs=
  23438. for ac_f
  23439. do
  23440. case $ac_f in
  23441. -) ac_f="$ac_tmp/stdin";;
  23442. *) # Look for the file first in the build tree, then in the source tree
  23443. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23444. # because $ac_f cannot contain `:'.
  23445. test -f "$ac_f" ||
  23446. case $ac_f in
  23447. [\\/$]*) false;;
  23448. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23449. esac ||
  23450. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23451. esac
  23452. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23453. as_fn_append ac_file_inputs " '$ac_f'"
  23454. done
  23455. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23456. # use $as_me), people would be surprised to read:
  23457. # /* config.h. Generated by config.status. */
  23458. configure_input='Generated from '`
  23459. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23460. `' by configure.'
  23461. if test x"$ac_file" != x-; then
  23462. configure_input="$ac_file. $configure_input"
  23463. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23464. $as_echo "$as_me: creating $ac_file" >&6;}
  23465. fi
  23466. # Neutralize special characters interpreted by sed in replacement strings.
  23467. case $configure_input in #(
  23468. *\&* | *\|* | *\\* )
  23469. ac_sed_conf_input=`$as_echo "$configure_input" |
  23470. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23471. *) ac_sed_conf_input=$configure_input;;
  23472. esac
  23473. case $ac_tag in
  23474. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23475. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23476. esac
  23477. ;;
  23478. esac
  23479. ac_dir=`$as_dirname -- "$ac_file" ||
  23480. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23481. X"$ac_file" : 'X\(//\)[^/]' \| \
  23482. X"$ac_file" : 'X\(//\)$' \| \
  23483. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23484. $as_echo X"$ac_file" |
  23485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23486. s//\1/
  23487. q
  23488. }
  23489. /^X\(\/\/\)[^/].*/{
  23490. s//\1/
  23491. q
  23492. }
  23493. /^X\(\/\/\)$/{
  23494. s//\1/
  23495. q
  23496. }
  23497. /^X\(\/\).*/{
  23498. s//\1/
  23499. q
  23500. }
  23501. s/.*/./; q'`
  23502. as_dir="$ac_dir"; as_fn_mkdir_p
  23503. ac_builddir=.
  23504. case "$ac_dir" in
  23505. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23506. *)
  23507. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23508. # A ".." for each directory in $ac_dir_suffix.
  23509. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23510. case $ac_top_builddir_sub in
  23511. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23512. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23513. esac ;;
  23514. esac
  23515. ac_abs_top_builddir=$ac_pwd
  23516. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23517. # for backward compatibility:
  23518. ac_top_builddir=$ac_top_build_prefix
  23519. case $srcdir in
  23520. .) # We are building in place.
  23521. ac_srcdir=.
  23522. ac_top_srcdir=$ac_top_builddir_sub
  23523. ac_abs_top_srcdir=$ac_pwd ;;
  23524. [\\/]* | ?:[\\/]* ) # Absolute name.
  23525. ac_srcdir=$srcdir$ac_dir_suffix;
  23526. ac_top_srcdir=$srcdir
  23527. ac_abs_top_srcdir=$srcdir ;;
  23528. *) # Relative name.
  23529. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23530. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23531. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23532. esac
  23533. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23534. case $ac_mode in
  23535. :F)
  23536. #
  23537. # CONFIG_FILE
  23538. #
  23539. case $INSTALL in
  23540. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23541. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23542. esac
  23543. ac_MKDIR_P=$MKDIR_P
  23544. case $MKDIR_P in
  23545. [\\/$]* | ?:[\\/]* ) ;;
  23546. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23547. esac
  23548. _ACEOF
  23549. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23550. # If the template does not know about datarootdir, expand it.
  23551. # FIXME: This hack should be removed a few years after 2.60.
  23552. ac_datarootdir_hack=; ac_datarootdir_seen=
  23553. ac_sed_dataroot='
  23554. /datarootdir/ {
  23555. p
  23556. q
  23557. }
  23558. /@datadir@/p
  23559. /@docdir@/p
  23560. /@infodir@/p
  23561. /@localedir@/p
  23562. /@mandir@/p'
  23563. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23564. *datarootdir*) ac_datarootdir_seen=yes;;
  23565. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23567. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23568. _ACEOF
  23569. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23570. ac_datarootdir_hack='
  23571. s&@datadir@&$datadir&g
  23572. s&@docdir@&$docdir&g
  23573. s&@infodir@&$infodir&g
  23574. s&@localedir@&$localedir&g
  23575. s&@mandir@&$mandir&g
  23576. s&\\\${datarootdir}&$datarootdir&g' ;;
  23577. esac
  23578. _ACEOF
  23579. # Neutralize VPATH when `$srcdir' = `.'.
  23580. # Shell code in configure.ac might set extrasub.
  23581. # FIXME: do we really want to maintain this feature?
  23582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23583. ac_sed_extra="$ac_vpsub
  23584. $extrasub
  23585. _ACEOF
  23586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23587. :t
  23588. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23589. s|@configure_input@|$ac_sed_conf_input|;t t
  23590. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23591. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23592. s&@srcdir@&$ac_srcdir&;t t
  23593. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23594. s&@top_srcdir@&$ac_top_srcdir&;t t
  23595. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23596. s&@builddir@&$ac_builddir&;t t
  23597. s&@abs_builddir@&$ac_abs_builddir&;t t
  23598. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23599. s&@INSTALL@&$ac_INSTALL&;t t
  23600. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23601. $ac_datarootdir_hack
  23602. "
  23603. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23604. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23605. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23606. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23607. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23608. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23610. which seems to be undefined. Please make sure it is defined" >&5
  23611. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23612. which seems to be undefined. Please make sure it is defined" >&2;}
  23613. rm -f "$ac_tmp/stdin"
  23614. case $ac_file in
  23615. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23616. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23617. esac \
  23618. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23619. ;;
  23620. :H)
  23621. #
  23622. # CONFIG_HEADER
  23623. #
  23624. if test x"$ac_file" != x-; then
  23625. {
  23626. $as_echo "/* $configure_input */" \
  23627. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23628. } >"$ac_tmp/config.h" \
  23629. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23630. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23631. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23632. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23633. else
  23634. rm -f "$ac_file"
  23635. mv "$ac_tmp/config.h" "$ac_file" \
  23636. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23637. fi
  23638. else
  23639. $as_echo "/* $configure_input */" \
  23640. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23641. || as_fn_error $? "could not create -" "$LINENO" 5
  23642. fi
  23643. # Compute "$ac_file"'s index in $config_headers.
  23644. _am_arg="$ac_file"
  23645. _am_stamp_count=1
  23646. for _am_header in $config_headers :; do
  23647. case $_am_header in
  23648. $_am_arg | $_am_arg:* )
  23649. break ;;
  23650. * )
  23651. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23652. esac
  23653. done
  23654. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23655. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23656. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23657. X"$_am_arg" : 'X\(//\)$' \| \
  23658. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23659. $as_echo X"$_am_arg" |
  23660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23661. s//\1/
  23662. q
  23663. }
  23664. /^X\(\/\/\)[^/].*/{
  23665. s//\1/
  23666. q
  23667. }
  23668. /^X\(\/\/\)$/{
  23669. s//\1/
  23670. q
  23671. }
  23672. /^X\(\/\).*/{
  23673. s//\1/
  23674. q
  23675. }
  23676. s/.*/./; q'`/stamp-h$_am_stamp_count
  23677. ;;
  23678. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23679. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23680. ;;
  23681. esac
  23682. case $ac_file$ac_mode in
  23683. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23684. # Older Autoconf quotes --file arguments for eval, but not when files
  23685. # are listed without --file. Let's play safe and only enable the eval
  23686. # if we detect the quoting.
  23687. case $CONFIG_FILES in
  23688. *\'*) eval set x "$CONFIG_FILES" ;;
  23689. *) set x $CONFIG_FILES ;;
  23690. esac
  23691. shift
  23692. for mf
  23693. do
  23694. # Strip MF so we end up with the name of the file.
  23695. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23696. # Check whether this is an Automake generated Makefile or not.
  23697. # We used to match only the files named 'Makefile.in', but
  23698. # some people rename them; so instead we look at the file content.
  23699. # Grep'ing the first line is not enough: some people post-process
  23700. # each Makefile.in and add a new line on top of each file to say so.
  23701. # Grep'ing the whole file is not good either: AIX grep has a line
  23702. # limit of 2048, but all sed's we know have understand at least 4000.
  23703. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23704. dirpart=`$as_dirname -- "$mf" ||
  23705. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23706. X"$mf" : 'X\(//\)[^/]' \| \
  23707. X"$mf" : 'X\(//\)$' \| \
  23708. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23709. $as_echo X"$mf" |
  23710. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23711. s//\1/
  23712. q
  23713. }
  23714. /^X\(\/\/\)[^/].*/{
  23715. s//\1/
  23716. q
  23717. }
  23718. /^X\(\/\/\)$/{
  23719. s//\1/
  23720. q
  23721. }
  23722. /^X\(\/\).*/{
  23723. s//\1/
  23724. q
  23725. }
  23726. s/.*/./; q'`
  23727. else
  23728. continue
  23729. fi
  23730. # Extract the definition of DEPDIR, am__include, and am__quote
  23731. # from the Makefile without running 'make'.
  23732. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23733. test -z "$DEPDIR" && continue
  23734. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23735. test -z "$am__include" && continue
  23736. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23737. # Find all dependency output files, they are included files with
  23738. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23739. # simplest approach to changing $(DEPDIR) to its actual value in the
  23740. # expansion.
  23741. for file in `sed -n "
  23742. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23743. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  23744. # Make sure the directory exists.
  23745. test -f "$dirpart/$file" && continue
  23746. fdir=`$as_dirname -- "$file" ||
  23747. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23748. X"$file" : 'X\(//\)[^/]' \| \
  23749. X"$file" : 'X\(//\)$' \| \
  23750. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23751. $as_echo X"$file" |
  23752. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23753. s//\1/
  23754. q
  23755. }
  23756. /^X\(\/\/\)[^/].*/{
  23757. s//\1/
  23758. q
  23759. }
  23760. /^X\(\/\/\)$/{
  23761. s//\1/
  23762. q
  23763. }
  23764. /^X\(\/\).*/{
  23765. s//\1/
  23766. q
  23767. }
  23768. s/.*/./; q'`
  23769. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23770. # echo "creating $dirpart/$file"
  23771. echo '# dummy' > "$dirpart/$file"
  23772. done
  23773. done
  23774. }
  23775. ;;
  23776. "libtool":C)
  23777. # See if we are running on zsh, and set the options that allow our
  23778. # commands through without removal of \ escapes.
  23779. if test -n "${ZSH_VERSION+set}"; then
  23780. setopt NO_GLOB_SUBST
  23781. fi
  23782. cfgfile=${ofile}T
  23783. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23784. $RM "$cfgfile"
  23785. cat <<_LT_EOF >> "$cfgfile"
  23786. #! $SHELL
  23787. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23788. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23789. # Provide generalized library-building support services.
  23790. # Written by Gordon Matzigkeit, 1996
  23791. # Copyright (C) 2014 Free Software Foundation, Inc.
  23792. # This is free software; see the source for copying conditions. There is NO
  23793. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23794. # GNU Libtool is free software; you can redistribute it and/or modify
  23795. # it under the terms of the GNU General Public License as published by
  23796. # the Free Software Foundation; either version 2 of of the License, or
  23797. # (at your option) any later version.
  23798. #
  23799. # As a special exception to the GNU General Public License, if you
  23800. # distribute this file as part of a program or library that is built
  23801. # using GNU Libtool, you may include this file under the same
  23802. # distribution terms that you use for the rest of that program.
  23803. #
  23804. # GNU Libtool is distributed in the hope that it will be useful, but
  23805. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23806. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23807. # GNU General Public License for more details.
  23808. #
  23809. # You should have received a copy of the GNU General Public License
  23810. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23811. # The names of the tagged configurations supported by this script.
  23812. available_tags='CXX '
  23813. # Configured defaults for sys_lib_dlsearch_path munging.
  23814. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23815. # ### BEGIN LIBTOOL CONFIG
  23816. # Which release of libtool.m4 was used?
  23817. macro_version=$macro_version
  23818. macro_revision=$macro_revision
  23819. # Whether or not to build shared libraries.
  23820. build_libtool_libs=$enable_shared
  23821. # Whether or not to build static libraries.
  23822. build_old_libs=$enable_static
  23823. # What type of objects to build.
  23824. pic_mode=$pic_mode
  23825. # Whether or not to optimize for fast installation.
  23826. fast_install=$enable_fast_install
  23827. # Shared archive member basename,for filename based shared library versioning on AIX.
  23828. shared_archive_member_spec=$shared_archive_member_spec
  23829. # Shell to use when invoking shell scripts.
  23830. SHELL=$lt_SHELL
  23831. # An echo program that protects backslashes.
  23832. ECHO=$lt_ECHO
  23833. # The PATH separator for the build system.
  23834. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23835. # The host system.
  23836. host_alias=$host_alias
  23837. host=$host
  23838. host_os=$host_os
  23839. # The build system.
  23840. build_alias=$build_alias
  23841. build=$build
  23842. build_os=$build_os
  23843. # A sed program that does not truncate output.
  23844. SED=$lt_SED
  23845. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23846. Xsed="\$SED -e 1s/^X//"
  23847. # A grep program that handles long lines.
  23848. GREP=$lt_GREP
  23849. # An ERE matcher.
  23850. EGREP=$lt_EGREP
  23851. # A literal string matcher.
  23852. FGREP=$lt_FGREP
  23853. # A BSD- or MS-compatible name lister.
  23854. NM=$lt_NM
  23855. # Whether we need soft or hard links.
  23856. LN_S=$lt_LN_S
  23857. # What is the maximum length of a command?
  23858. max_cmd_len=$max_cmd_len
  23859. # Object file suffix (normally "o").
  23860. objext=$ac_objext
  23861. # Executable file suffix (normally "").
  23862. exeext=$exeext
  23863. # whether the shell understands "unset".
  23864. lt_unset=$lt_unset
  23865. # turn spaces into newlines.
  23866. SP2NL=$lt_lt_SP2NL
  23867. # turn newlines into spaces.
  23868. NL2SP=$lt_lt_NL2SP
  23869. # convert \$build file names to \$host format.
  23870. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23871. # convert \$build files to toolchain format.
  23872. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23873. # An object symbol dumper.
  23874. OBJDUMP=$lt_OBJDUMP
  23875. # Method to check whether dependent libraries are shared objects.
  23876. deplibs_check_method=$lt_deplibs_check_method
  23877. # Command to use when deplibs_check_method = "file_magic".
  23878. file_magic_cmd=$lt_file_magic_cmd
  23879. # How to find potential files when deplibs_check_method = "file_magic".
  23880. file_magic_glob=$lt_file_magic_glob
  23881. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23882. want_nocaseglob=$lt_want_nocaseglob
  23883. # DLL creation program.
  23884. DLLTOOL=$lt_DLLTOOL
  23885. # Command to associate shared and link libraries.
  23886. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23887. # The archiver.
  23888. AR=$lt_AR
  23889. # Flags to create an archive.
  23890. AR_FLAGS=$lt_AR_FLAGS
  23891. # How to feed a file listing to the archiver.
  23892. archiver_list_spec=$lt_archiver_list_spec
  23893. # A symbol stripping program.
  23894. STRIP=$lt_STRIP
  23895. # Commands used to install an old-style archive.
  23896. RANLIB=$lt_RANLIB
  23897. old_postinstall_cmds=$lt_old_postinstall_cmds
  23898. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23899. # Whether to use a lock for old archive extraction.
  23900. lock_old_archive_extraction=$lock_old_archive_extraction
  23901. # A C compiler.
  23902. LTCC=$lt_CC
  23903. # LTCC compiler flags.
  23904. LTCFLAGS=$lt_CFLAGS
  23905. # Take the output of nm and produce a listing of raw symbols and C names.
  23906. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23907. # Transform the output of nm in a proper C declaration.
  23908. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23909. # Transform the output of nm into a list of symbols to manually relocate.
  23910. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23911. # Transform the output of nm in a C name address pair.
  23912. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23913. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23914. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23915. # The name lister interface.
  23916. nm_interface=$lt_lt_cv_nm_interface
  23917. # Specify filename containing input files for \$NM.
  23918. nm_file_list_spec=$lt_nm_file_list_spec
  23919. # The root where to search for dependent libraries,and where our libraries should be installed.
  23920. lt_sysroot=$lt_sysroot
  23921. # Command to truncate a binary pipe.
  23922. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23923. # The name of the directory that contains temporary libtool files.
  23924. objdir=$objdir
  23925. # Used to examine libraries when file_magic_cmd begins with "file".
  23926. MAGIC_CMD=$MAGIC_CMD
  23927. # Must we lock files when doing compilation?
  23928. need_locks=$lt_need_locks
  23929. # Manifest tool.
  23930. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23931. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23932. DSYMUTIL=$lt_DSYMUTIL
  23933. # Tool to change global to local symbols on Mac OS X.
  23934. NMEDIT=$lt_NMEDIT
  23935. # Tool to manipulate fat objects and archives on Mac OS X.
  23936. LIPO=$lt_LIPO
  23937. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23938. OTOOL=$lt_OTOOL
  23939. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23940. OTOOL64=$lt_OTOOL64
  23941. # Old archive suffix (normally "a").
  23942. libext=$libext
  23943. # Shared library suffix (normally ".so").
  23944. shrext_cmds=$lt_shrext_cmds
  23945. # The commands to extract the exported symbol list from a shared archive.
  23946. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23947. # Variables whose values should be saved in libtool wrapper scripts and
  23948. # restored at link time.
  23949. variables_saved_for_relink=$lt_variables_saved_for_relink
  23950. # Do we need the "lib" prefix for modules?
  23951. need_lib_prefix=$need_lib_prefix
  23952. # Do we need a version for libraries?
  23953. need_version=$need_version
  23954. # Library versioning type.
  23955. version_type=$version_type
  23956. # Shared library runtime path variable.
  23957. runpath_var=$runpath_var
  23958. # Shared library path variable.
  23959. shlibpath_var=$shlibpath_var
  23960. # Is shlibpath searched before the hard-coded library search path?
  23961. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23962. # Format of library name prefix.
  23963. libname_spec=$lt_libname_spec
  23964. # List of archive names. First name is the real one, the rest are links.
  23965. # The last name is the one that the linker finds with -lNAME
  23966. library_names_spec=$lt_library_names_spec
  23967. # The coded name of the library, if different from the real name.
  23968. soname_spec=$lt_soname_spec
  23969. # Permission mode override for installation of shared libraries.
  23970. install_override_mode=$lt_install_override_mode
  23971. # Command to use after installation of a shared archive.
  23972. postinstall_cmds=$lt_postinstall_cmds
  23973. # Command to use after uninstallation of a shared archive.
  23974. postuninstall_cmds=$lt_postuninstall_cmds
  23975. # Commands used to finish a libtool library installation in a directory.
  23976. finish_cmds=$lt_finish_cmds
  23977. # As "finish_cmds", except a single script fragment to be evaled but
  23978. # not shown.
  23979. finish_eval=$lt_finish_eval
  23980. # Whether we should hardcode library paths into libraries.
  23981. hardcode_into_libs=$hardcode_into_libs
  23982. # Compile-time system search path for libraries.
  23983. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23984. # Detected run-time system search path for libraries.
  23985. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23986. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23987. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23988. # Whether dlopen is supported.
  23989. dlopen_support=$enable_dlopen
  23990. # Whether dlopen of programs is supported.
  23991. dlopen_self=$enable_dlopen_self
  23992. # Whether dlopen of statically linked programs is supported.
  23993. dlopen_self_static=$enable_dlopen_self_static
  23994. # Commands to strip libraries.
  23995. old_striplib=$lt_old_striplib
  23996. striplib=$lt_striplib
  23997. # The linker used to build libraries.
  23998. LD=$lt_LD
  23999. # How to create reloadable object files.
  24000. reload_flag=$lt_reload_flag
  24001. reload_cmds=$lt_reload_cmds
  24002. # Commands used to build an old-style archive.
  24003. old_archive_cmds=$lt_old_archive_cmds
  24004. # A language specific compiler.
  24005. CC=$lt_compiler
  24006. # Is the compiler the GNU compiler?
  24007. with_gcc=$GCC
  24008. # Compiler flag to turn off builtin functions.
  24009. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24010. # Additional compiler flags for building library objects.
  24011. pic_flag=$lt_lt_prog_compiler_pic
  24012. # How to pass a linker flag through the compiler.
  24013. wl=$lt_lt_prog_compiler_wl
  24014. # Compiler flag to prevent dynamic linking.
  24015. link_static_flag=$lt_lt_prog_compiler_static
  24016. # Does compiler simultaneously support -c and -o options?
  24017. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24018. # Whether or not to add -lc for building shared libraries.
  24019. build_libtool_need_lc=$archive_cmds_need_lc
  24020. # Whether or not to disallow shared libs when runtime libs are static.
  24021. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24022. # Compiler flag to allow reflexive dlopens.
  24023. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24024. # Compiler flag to generate shared objects directly from archives.
  24025. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24026. # Whether the compiler copes with passing no objects directly.
  24027. compiler_needs_object=$lt_compiler_needs_object
  24028. # Create an old-style archive from a shared archive.
  24029. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24030. # Create a temporary old-style archive to link instead of a shared archive.
  24031. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24032. # Commands used to build a shared archive.
  24033. archive_cmds=$lt_archive_cmds
  24034. archive_expsym_cmds=$lt_archive_expsym_cmds
  24035. # Commands used to build a loadable module if different from building
  24036. # a shared archive.
  24037. module_cmds=$lt_module_cmds
  24038. module_expsym_cmds=$lt_module_expsym_cmds
  24039. # Whether we are building with GNU ld or not.
  24040. with_gnu_ld=$lt_with_gnu_ld
  24041. # Flag that allows shared libraries with undefined symbols to be built.
  24042. allow_undefined_flag=$lt_allow_undefined_flag
  24043. # Flag that enforces no undefined symbols.
  24044. no_undefined_flag=$lt_no_undefined_flag
  24045. # Flag to hardcode \$libdir into a binary during linking.
  24046. # This must work even if \$libdir does not exist
  24047. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24048. # Whether we need a single "-rpath" flag with a separated argument.
  24049. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24050. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24051. # DIR into the resulting binary.
  24052. hardcode_direct=$hardcode_direct
  24053. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24054. # DIR into the resulting binary and the resulting library dependency is
  24055. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24056. # library is relocated.
  24057. hardcode_direct_absolute=$hardcode_direct_absolute
  24058. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24059. # into the resulting binary.
  24060. hardcode_minus_L=$hardcode_minus_L
  24061. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24062. # into the resulting binary.
  24063. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24064. # Set to "yes" if building a shared library automatically hardcodes DIR
  24065. # into the library and all subsequent libraries and executables linked
  24066. # against it.
  24067. hardcode_automatic=$hardcode_automatic
  24068. # Set to yes if linker adds runtime paths of dependent libraries
  24069. # to runtime path list.
  24070. inherit_rpath=$inherit_rpath
  24071. # Whether libtool must link a program against all its dependency libraries.
  24072. link_all_deplibs=$link_all_deplibs
  24073. # Set to "yes" if exported symbols are required.
  24074. always_export_symbols=$always_export_symbols
  24075. # The commands to list exported symbols.
  24076. export_symbols_cmds=$lt_export_symbols_cmds
  24077. # Symbols that should not be listed in the preloaded symbols.
  24078. exclude_expsyms=$lt_exclude_expsyms
  24079. # Symbols that must always be exported.
  24080. include_expsyms=$lt_include_expsyms
  24081. # Commands necessary for linking programs (against libraries) with templates.
  24082. prelink_cmds=$lt_prelink_cmds
  24083. # Commands necessary for finishing linking programs.
  24084. postlink_cmds=$lt_postlink_cmds
  24085. # Specify filename containing input files.
  24086. file_list_spec=$lt_file_list_spec
  24087. # How to hardcode a shared library path into an executable.
  24088. hardcode_action=$hardcode_action
  24089. # The directories searched by this compiler when creating a shared library.
  24090. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24091. # Dependencies to place before and after the objects being linked to
  24092. # create a shared library.
  24093. predep_objects=$lt_predep_objects
  24094. postdep_objects=$lt_postdep_objects
  24095. predeps=$lt_predeps
  24096. postdeps=$lt_postdeps
  24097. # The library search path used internally by the compiler when linking
  24098. # a shared library.
  24099. compiler_lib_search_path=$lt_compiler_lib_search_path
  24100. # ### END LIBTOOL CONFIG
  24101. _LT_EOF
  24102. cat <<'_LT_EOF' >> "$cfgfile"
  24103. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  24104. # func_munge_path_list VARIABLE PATH
  24105. # -----------------------------------
  24106. # VARIABLE is name of variable containing _space_ separated list of
  24107. # directories to be munged by the contents of PATH, which is string
  24108. # having a format:
  24109. # "DIR[:DIR]:"
  24110. # string "DIR[ DIR]" will be prepended to VARIABLE
  24111. # ":DIR[:DIR]"
  24112. # string "DIR[ DIR]" will be appended to VARIABLE
  24113. # "DIRP[:DIRP]::[DIRA:]DIRA"
  24114. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  24115. # "DIRA[ DIRA]" will be appended to VARIABLE
  24116. # "DIR[:DIR]"
  24117. # VARIABLE will be replaced by "DIR[ DIR]"
  24118. func_munge_path_list ()
  24119. {
  24120. case x$2 in
  24121. x)
  24122. ;;
  24123. *:)
  24124. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  24125. ;;
  24126. x:*)
  24127. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  24128. ;;
  24129. *::*)
  24130. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  24131. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  24132. ;;
  24133. *)
  24134. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  24135. ;;
  24136. esac
  24137. }
  24138. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  24139. func_cc_basename ()
  24140. {
  24141. for cc_temp in $*""; do
  24142. case $cc_temp in
  24143. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24144. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24145. \-*) ;;
  24146. *) break;;
  24147. esac
  24148. done
  24149. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  24150. }
  24151. # ### END FUNCTIONS SHARED WITH CONFIGURE
  24152. _LT_EOF
  24153. case $host_os in
  24154. aix3*)
  24155. cat <<\_LT_EOF >> "$cfgfile"
  24156. # AIX sometimes has problems with the GCC collect2 program. For some
  24157. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24158. # vanish in a puff of smoke.
  24159. if test set != "${COLLECT_NAMES+set}"; then
  24160. COLLECT_NAMES=
  24161. export COLLECT_NAMES
  24162. fi
  24163. _LT_EOF
  24164. ;;
  24165. esac
  24166. ltmain=$ac_aux_dir/ltmain.sh
  24167. # We use sed instead of cat because bash on DJGPP gets confused if
  24168. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24169. # text mode, it properly converts lines to CR/LF. This bash problem
  24170. # is reportedly fixed, but why not run on old versions too?
  24171. sed '$q' "$ltmain" >> "$cfgfile" \
  24172. || (rm -f "$cfgfile"; exit 1)
  24173. mv -f "$cfgfile" "$ofile" ||
  24174. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24175. chmod +x "$ofile"
  24176. cat <<_LT_EOF >> "$ofile"
  24177. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24178. # The linker used to build libraries.
  24179. LD=$lt_LD_CXX
  24180. # How to create reloadable object files.
  24181. reload_flag=$lt_reload_flag_CXX
  24182. reload_cmds=$lt_reload_cmds_CXX
  24183. # Commands used to build an old-style archive.
  24184. old_archive_cmds=$lt_old_archive_cmds_CXX
  24185. # A language specific compiler.
  24186. CC=$lt_compiler_CXX
  24187. # Is the compiler the GNU compiler?
  24188. with_gcc=$GCC_CXX
  24189. # Compiler flag to turn off builtin functions.
  24190. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24191. # Additional compiler flags for building library objects.
  24192. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24193. # How to pass a linker flag through the compiler.
  24194. wl=$lt_lt_prog_compiler_wl_CXX
  24195. # Compiler flag to prevent dynamic linking.
  24196. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24197. # Does compiler simultaneously support -c and -o options?
  24198. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24199. # Whether or not to add -lc for building shared libraries.
  24200. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24201. # Whether or not to disallow shared libs when runtime libs are static.
  24202. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24203. # Compiler flag to allow reflexive dlopens.
  24204. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24205. # Compiler flag to generate shared objects directly from archives.
  24206. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24207. # Whether the compiler copes with passing no objects directly.
  24208. compiler_needs_object=$lt_compiler_needs_object_CXX
  24209. # Create an old-style archive from a shared archive.
  24210. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24211. # Create a temporary old-style archive to link instead of a shared archive.
  24212. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24213. # Commands used to build a shared archive.
  24214. archive_cmds=$lt_archive_cmds_CXX
  24215. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24216. # Commands used to build a loadable module if different from building
  24217. # a shared archive.
  24218. module_cmds=$lt_module_cmds_CXX
  24219. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24220. # Whether we are building with GNU ld or not.
  24221. with_gnu_ld=$lt_with_gnu_ld_CXX
  24222. # Flag that allows shared libraries with undefined symbols to be built.
  24223. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24224. # Flag that enforces no undefined symbols.
  24225. no_undefined_flag=$lt_no_undefined_flag_CXX
  24226. # Flag to hardcode \$libdir into a binary during linking.
  24227. # This must work even if \$libdir does not exist
  24228. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24229. # Whether we need a single "-rpath" flag with a separated argument.
  24230. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24231. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24232. # DIR into the resulting binary.
  24233. hardcode_direct=$hardcode_direct_CXX
  24234. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24235. # DIR into the resulting binary and the resulting library dependency is
  24236. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24237. # library is relocated.
  24238. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24239. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24240. # into the resulting binary.
  24241. hardcode_minus_L=$hardcode_minus_L_CXX
  24242. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24243. # into the resulting binary.
  24244. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24245. # Set to "yes" if building a shared library automatically hardcodes DIR
  24246. # into the library and all subsequent libraries and executables linked
  24247. # against it.
  24248. hardcode_automatic=$hardcode_automatic_CXX
  24249. # Set to yes if linker adds runtime paths of dependent libraries
  24250. # to runtime path list.
  24251. inherit_rpath=$inherit_rpath_CXX
  24252. # Whether libtool must link a program against all its dependency libraries.
  24253. link_all_deplibs=$link_all_deplibs_CXX
  24254. # Set to "yes" if exported symbols are required.
  24255. always_export_symbols=$always_export_symbols_CXX
  24256. # The commands to list exported symbols.
  24257. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24258. # Symbols that should not be listed in the preloaded symbols.
  24259. exclude_expsyms=$lt_exclude_expsyms_CXX
  24260. # Symbols that must always be exported.
  24261. include_expsyms=$lt_include_expsyms_CXX
  24262. # Commands necessary for linking programs (against libraries) with templates.
  24263. prelink_cmds=$lt_prelink_cmds_CXX
  24264. # Commands necessary for finishing linking programs.
  24265. postlink_cmds=$lt_postlink_cmds_CXX
  24266. # Specify filename containing input files.
  24267. file_list_spec=$lt_file_list_spec_CXX
  24268. # How to hardcode a shared library path into an executable.
  24269. hardcode_action=$hardcode_action_CXX
  24270. # The directories searched by this compiler when creating a shared library.
  24271. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24272. # Dependencies to place before and after the objects being linked to
  24273. # create a shared library.
  24274. predep_objects=$lt_predep_objects_CXX
  24275. postdep_objects=$lt_postdep_objects_CXX
  24276. predeps=$lt_predeps_CXX
  24277. postdeps=$lt_postdeps_CXX
  24278. # The library search path used internally by the compiler when linking
  24279. # a shared library.
  24280. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24281. # ### END LIBTOOL TAG CONFIG: CXX
  24282. _LT_EOF
  24283. ;;
  24284. esac
  24285. done # for ac_tag
  24286. as_fn_exit 0
  24287. _ACEOF
  24288. ac_clean_files=$ac_clean_files_save
  24289. test $ac_write_fail = 0 ||
  24290. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24291. # configure is writing to config.log, and then calls config.status.
  24292. # config.status does its own redirection, appending to config.log.
  24293. # Unfortunately, on DOS this fails, as config.log is still kept open
  24294. # by configure, so config.status won't be able to write to it; its
  24295. # output is simply discarded. So we exec the FD to /dev/null,
  24296. # effectively closing config.log, so it can be properly (re)opened and
  24297. # appended to by config.status. When coming back to configure, we
  24298. # need to make the FD available again.
  24299. if test "$no_create" != yes; then
  24300. ac_cs_success=:
  24301. ac_config_status_args=
  24302. test "$silent" = yes &&
  24303. ac_config_status_args="$ac_config_status_args --quiet"
  24304. exec 5>/dev/null
  24305. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24306. exec 5>>config.log
  24307. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24308. # would make configure fail if this is the last instruction.
  24309. $ac_cs_success || as_fn_exit 1
  24310. fi
  24311. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24313. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24314. fi
  24315. # Configuration results
  24316. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  24317. ##########################################################################
  24318. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24319. ##########################################################################
  24320. libpcap: ${foundpcap} (${libpcap_version})
  24321. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24322. libdnet: ${founddnet} ${libdnet_version}
  24323. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24324. Use libopts tearoff: ${enable_local_libopts}
  24325. 64bit counter support: ${use64bit_counters}
  24326. tcpdump binary path: ${tcpdump_path}
  24327. fragroute support: ${enable_fragroute}
  24328. tcpbridge support: ${enable_tcpbridge}
  24329. tcpliveplay support: ${enable_tcpliveplay}
  24330. Supported Packet Injection Methods (*):
  24331. Linux TX_RING: ${have_tx_ring}
  24332. Linux PF_PACKET: ${have_pf}
  24333. BSD BPF: ${have_bpf}
  24334. libdnet: ${have_libdnet}
  24335. pcap_inject: ${have_pcap_inject}
  24336. pcap_sendpacket: ${have_pcap_sendpacket} **
  24337. pcap_netmap ${have_pcap_netmap}
  24338. Linux/BSD netmap: ${have_netmap}
  24339. Tuntap device support: ${have_tuntap}
  24340. * In order of preference; see configure --help to override
  24341. ** Required for tcpbridge
  24342. " >&5
  24343. $as_echo "
  24344. ##########################################################################
  24345. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24346. ##########################################################################
  24347. libpcap: ${foundpcap} (${libpcap_version})
  24348. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24349. libdnet: ${founddnet} ${libdnet_version}
  24350. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24351. Use libopts tearoff: ${enable_local_libopts}
  24352. 64bit counter support: ${use64bit_counters}
  24353. tcpdump binary path: ${tcpdump_path}
  24354. fragroute support: ${enable_fragroute}
  24355. tcpbridge support: ${enable_tcpbridge}
  24356. tcpliveplay support: ${enable_tcpliveplay}
  24357. Supported Packet Injection Methods (*):
  24358. Linux TX_RING: ${have_tx_ring}
  24359. Linux PF_PACKET: ${have_pf}
  24360. BSD BPF: ${have_bpf}
  24361. libdnet: ${have_libdnet}
  24362. pcap_inject: ${have_pcap_inject}
  24363. pcap_sendpacket: ${have_pcap_sendpacket} **
  24364. pcap_netmap ${have_pcap_netmap}
  24365. Linux/BSD netmap: ${have_netmap}
  24366. Tuntap device support: ${have_tuntap}
  24367. * In order of preference; see configure --help to override
  24368. ** Required for tcpbridge
  24369. " >&6; }
  24370. case $host in
  24371. *-*-cygwin)
  24372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  24373. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  24374. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  24375. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  24376. ;;
  24377. esac