configure 819 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.3.4.
  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.4'
  544. PACKAGE_STRING='tcpreplay 4.3.4'
  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__include
  681. DEPDIR
  682. OBJEXT
  683. EXEEXT
  684. ac_ct_CC
  685. CPPFLAGS
  686. LDFLAGS
  687. CFLAGS
  688. CC
  689. ac_ct_AR
  690. AR
  691. AM_BACKSLASH
  692. AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V
  694. AM_V
  695. am__untar
  696. am__tar
  697. AMTAR
  698. am__leading_dot
  699. SET_MAKE
  700. AWK
  701. mkdir_p
  702. MKDIR_P
  703. INSTALL_STRIP_PROGRAM
  704. STRIP
  705. install_sh
  706. MAKEINFO
  707. AUTOHEADER
  708. AUTOMAKE
  709. AUTOCONF
  710. ACLOCAL
  711. VERSION
  712. PACKAGE
  713. CYGPATH_W
  714. am__isrc
  715. INSTALL_DATA
  716. INSTALL_SCRIPT
  717. INSTALL_PROGRAM
  718. LIBTOOL
  719. MACOSX_SDK_PATH
  720. CROSS_LD
  721. CROSS_ARCH
  722. target_os
  723. target_vendor
  724. target_cpu
  725. target
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. TCPREPLAY_RELEASE
  735. TCPREPLAY_VERSION
  736. MAINT
  737. MAINTAINER_MODE_FALSE
  738. MAINTAINER_MODE_TRUE
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. runstatedir
  759. localstatedir
  760. sharedstatedir
  761. sysconfdir
  762. datadir
  763. datarootdir
  764. libexecdir
  765. sbindir
  766. bindir
  767. program_transform_name
  768. prefix
  769. exec_prefix
  770. PACKAGE_URL
  771. PACKAGE_BUGREPORT
  772. PACKAGE_STRING
  773. PACKAGE_VERSION
  774. PACKAGE_TARNAME
  775. PACKAGE_NAME
  776. PATH_SEPARATOR
  777. SHELL
  778. am__quote'
  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.4 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.4:";;
  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.4
  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.4, 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.16'
  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.4'
  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. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3465. # <https://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: <https://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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3550. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3551. cat > confinc.mk << 'END'
  3552. am__doit:
  3553. @echo this is the am__doit target >confinc.out
  3554. .PHONY: am__doit
  3555. END
  3556. am__include="#"
  3557. am__quote=
  3558. # BSD make does it like this.
  3559. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3560. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3561. echo 'include confinc.mk # ignored' > confmf.GNU
  3562. _am_result=no
  3563. for s in GNU BSD; do
  3564. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3565. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3566. ac_status=$?
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); }
  3569. case $?:`cat confinc.out 2>/dev/null` in #(
  3570. '0:this is the am__doit target') :
  3571. case $s in #(
  3572. BSD) :
  3573. am__include='.include' am__quote='"' ;; #(
  3574. *) :
  3575. am__include='include' am__quote='' ;;
  3576. esac ;; #(
  3577. *) :
  3578. ;;
  3579. esac
  3580. if test "$am__include" != "#"; then
  3581. _am_result="yes ($s style)"
  3582. break
  3583. fi
  3584. done
  3585. rm -f confinc.* confmf.*
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3587. $as_echo "${_am_result}" >&6; }
  3588. # Check whether --enable-dependency-tracking was given.
  3589. if test "${enable_dependency_tracking+set}" = set; then :
  3590. enableval=$enable_dependency_tracking;
  3591. fi
  3592. if test "x$enable_dependency_tracking" != xno; then
  3593. am_depcomp="$ac_aux_dir/depcomp"
  3594. AMDEPBACKSLASH='\'
  3595. am__nodep='_no'
  3596. fi
  3597. if test "x$enable_dependency_tracking" != xno; then
  3598. AMDEP_TRUE=
  3599. AMDEP_FALSE='#'
  3600. else
  3601. AMDEP_TRUE='#'
  3602. AMDEP_FALSE=
  3603. fi
  3604. ac_ext=c
  3605. ac_cpp='$CPP $CPPFLAGS'
  3606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3609. if test -n "$ac_tool_prefix"; then
  3610. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3611. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3613. $as_echo_n "checking for $ac_word... " >&6; }
  3614. if ${ac_cv_prog_CC+:} false; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. if test -n "$CC"; then
  3618. ac_cv_prog_CC="$CC" # Let the user override the test.
  3619. else
  3620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3621. for as_dir in $PATH
  3622. do
  3623. IFS=$as_save_IFS
  3624. test -z "$as_dir" && as_dir=.
  3625. for ac_exec_ext in '' $ac_executable_extensions; do
  3626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3627. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3629. break 2
  3630. fi
  3631. done
  3632. done
  3633. IFS=$as_save_IFS
  3634. fi
  3635. fi
  3636. CC=$ac_cv_prog_CC
  3637. if test -n "$CC"; then
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3639. $as_echo "$CC" >&6; }
  3640. else
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3642. $as_echo "no" >&6; }
  3643. fi
  3644. fi
  3645. if test -z "$ac_cv_prog_CC"; then
  3646. ac_ct_CC=$CC
  3647. # Extract the first word of "gcc", so it can be a program name with args.
  3648. set dummy gcc; ac_word=$2
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3650. $as_echo_n "checking for $ac_word... " >&6; }
  3651. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. if test -n "$ac_ct_CC"; then
  3655. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3656. else
  3657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3658. for as_dir in $PATH
  3659. do
  3660. IFS=$as_save_IFS
  3661. test -z "$as_dir" && as_dir=.
  3662. for ac_exec_ext in '' $ac_executable_extensions; do
  3663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3664. ac_cv_prog_ac_ct_CC="gcc"
  3665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3666. break 2
  3667. fi
  3668. done
  3669. done
  3670. IFS=$as_save_IFS
  3671. fi
  3672. fi
  3673. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3674. if test -n "$ac_ct_CC"; then
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3676. $as_echo "$ac_ct_CC" >&6; }
  3677. else
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3679. $as_echo "no" >&6; }
  3680. fi
  3681. if test "x$ac_ct_CC" = x; then
  3682. CC=""
  3683. else
  3684. case $cross_compiling:$ac_tool_warned in
  3685. yes:)
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3688. ac_tool_warned=yes ;;
  3689. esac
  3690. CC=$ac_ct_CC
  3691. fi
  3692. else
  3693. CC="$ac_cv_prog_CC"
  3694. fi
  3695. if test -z "$CC"; then
  3696. if test -n "$ac_tool_prefix"; then
  3697. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3698. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3700. $as_echo_n "checking for $ac_word... " >&6; }
  3701. if ${ac_cv_prog_CC+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. if test -n "$CC"; then
  3705. ac_cv_prog_CC="$CC" # Let the user override the test.
  3706. else
  3707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3708. for as_dir in $PATH
  3709. do
  3710. IFS=$as_save_IFS
  3711. test -z "$as_dir" && as_dir=.
  3712. for ac_exec_ext in '' $ac_executable_extensions; do
  3713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3714. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3716. break 2
  3717. fi
  3718. done
  3719. done
  3720. IFS=$as_save_IFS
  3721. fi
  3722. fi
  3723. CC=$ac_cv_prog_CC
  3724. if test -n "$CC"; then
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3726. $as_echo "$CC" >&6; }
  3727. else
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3729. $as_echo "no" >&6; }
  3730. fi
  3731. fi
  3732. fi
  3733. if test -z "$CC"; then
  3734. # Extract the first word of "cc", so it can be a program name with args.
  3735. set dummy cc; ac_word=$2
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3737. $as_echo_n "checking for $ac_word... " >&6; }
  3738. if ${ac_cv_prog_CC+:} false; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. if test -n "$CC"; then
  3742. ac_cv_prog_CC="$CC" # Let the user override the test.
  3743. else
  3744. ac_prog_rejected=no
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH
  3747. do
  3748. IFS=$as_save_IFS
  3749. test -z "$as_dir" && as_dir=.
  3750. for ac_exec_ext in '' $ac_executable_extensions; do
  3751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3752. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3753. ac_prog_rejected=yes
  3754. continue
  3755. fi
  3756. ac_cv_prog_CC="cc"
  3757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3758. break 2
  3759. fi
  3760. done
  3761. done
  3762. IFS=$as_save_IFS
  3763. if test $ac_prog_rejected = yes; then
  3764. # We found a bogon in the path, so make sure we never use it.
  3765. set dummy $ac_cv_prog_CC
  3766. shift
  3767. if test $# != 0; then
  3768. # We chose a different compiler from the bogus one.
  3769. # However, it has the same basename, so the bogon will be chosen
  3770. # first if we set CC to just the basename; use the full file name.
  3771. shift
  3772. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3773. fi
  3774. fi
  3775. fi
  3776. fi
  3777. CC=$ac_cv_prog_CC
  3778. if test -n "$CC"; then
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3780. $as_echo "$CC" >&6; }
  3781. else
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3783. $as_echo "no" >&6; }
  3784. fi
  3785. fi
  3786. if test -z "$CC"; then
  3787. if test -n "$ac_tool_prefix"; then
  3788. for ac_prog in cl.exe
  3789. do
  3790. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3791. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3793. $as_echo_n "checking for $ac_word... " >&6; }
  3794. if ${ac_cv_prog_CC+:} false; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. if test -n "$CC"; then
  3798. ac_cv_prog_CC="$CC" # Let the user override the test.
  3799. else
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for ac_exec_ext in '' $ac_executable_extensions; do
  3806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3807. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3809. break 2
  3810. fi
  3811. done
  3812. done
  3813. IFS=$as_save_IFS
  3814. fi
  3815. fi
  3816. CC=$ac_cv_prog_CC
  3817. if test -n "$CC"; then
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3819. $as_echo "$CC" >&6; }
  3820. else
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3822. $as_echo "no" >&6; }
  3823. fi
  3824. test -n "$CC" && break
  3825. done
  3826. fi
  3827. if test -z "$CC"; then
  3828. ac_ct_CC=$CC
  3829. for ac_prog in cl.exe
  3830. do
  3831. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3832. set dummy $ac_prog; ac_word=$2
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3834. $as_echo_n "checking for $ac_word... " >&6; }
  3835. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. if test -n "$ac_ct_CC"; then
  3839. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3840. else
  3841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3842. for as_dir in $PATH
  3843. do
  3844. IFS=$as_save_IFS
  3845. test -z "$as_dir" && as_dir=.
  3846. for ac_exec_ext in '' $ac_executable_extensions; do
  3847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3848. ac_cv_prog_ac_ct_CC="$ac_prog"
  3849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3850. break 2
  3851. fi
  3852. done
  3853. done
  3854. IFS=$as_save_IFS
  3855. fi
  3856. fi
  3857. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3858. if test -n "$ac_ct_CC"; then
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3860. $as_echo "$ac_ct_CC" >&6; }
  3861. else
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. $as_echo "no" >&6; }
  3864. fi
  3865. test -n "$ac_ct_CC" && break
  3866. done
  3867. if test "x$ac_ct_CC" = x; then
  3868. CC=""
  3869. else
  3870. case $cross_compiling:$ac_tool_warned in
  3871. yes:)
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3874. ac_tool_warned=yes ;;
  3875. esac
  3876. CC=$ac_ct_CC
  3877. fi
  3878. fi
  3879. fi
  3880. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3881. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3882. as_fn_error $? "no acceptable C compiler found in \$PATH
  3883. See \`config.log' for more details" "$LINENO" 5; }
  3884. # Provide some information about the compiler.
  3885. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3886. set X $ac_compile
  3887. ac_compiler=$2
  3888. for ac_option in --version -v -V -qversion; do
  3889. { { ac_try="$ac_compiler $ac_option >&5"
  3890. case "(($ac_try" in
  3891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3892. *) ac_try_echo=$ac_try;;
  3893. esac
  3894. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3895. $as_echo "$ac_try_echo"; } >&5
  3896. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3897. ac_status=$?
  3898. if test -s conftest.err; then
  3899. sed '10a\
  3900. ... rest of stderr output deleted ...
  3901. 10q' conftest.err >conftest.er1
  3902. cat conftest.er1 >&5
  3903. fi
  3904. rm -f conftest.er1 conftest.err
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3906. test $ac_status = 0; }
  3907. done
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main ()
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. ac_clean_files_save=$ac_clean_files
  3918. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3919. # Try to create an executable without -o first, disregard a.out.
  3920. # It will help us diagnose broken compilers, and finding out an intuition
  3921. # of exeext.
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3923. $as_echo_n "checking whether the C compiler works... " >&6; }
  3924. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3925. # The possible output files:
  3926. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3927. ac_rmfiles=
  3928. for ac_file in $ac_files
  3929. do
  3930. case $ac_file in
  3931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3932. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3933. esac
  3934. done
  3935. rm -f $ac_rmfiles
  3936. if { { ac_try="$ac_link_default"
  3937. case "(($ac_try" in
  3938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3939. *) ac_try_echo=$ac_try;;
  3940. esac
  3941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3942. $as_echo "$ac_try_echo"; } >&5
  3943. (eval "$ac_link_default") 2>&5
  3944. ac_status=$?
  3945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3946. test $ac_status = 0; }; then :
  3947. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3948. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3949. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3950. # so that the user can short-circuit this test for compilers unknown to
  3951. # Autoconf.
  3952. for ac_file in $ac_files ''
  3953. do
  3954. test -f "$ac_file" || continue
  3955. case $ac_file in
  3956. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3957. ;;
  3958. [ab].out )
  3959. # We found the default executable, but exeext='' is most
  3960. # certainly right.
  3961. break;;
  3962. *.* )
  3963. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3964. then :; else
  3965. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3966. fi
  3967. # We set ac_cv_exeext here because the later test for it is not
  3968. # safe: cross compilers may not add the suffix if given an `-o'
  3969. # argument, so we may need to know it at that point already.
  3970. # Even if this section looks crufty: it has the advantage of
  3971. # actually working.
  3972. break;;
  3973. * )
  3974. break;;
  3975. esac
  3976. done
  3977. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3978. else
  3979. ac_file=''
  3980. fi
  3981. if test -z "$ac_file"; then :
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3983. $as_echo "no" >&6; }
  3984. $as_echo "$as_me: failed program was:" >&5
  3985. sed 's/^/| /' conftest.$ac_ext >&5
  3986. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3987. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3988. as_fn_error 77 "C compiler cannot create executables
  3989. See \`config.log' for more details" "$LINENO" 5; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3992. $as_echo "yes" >&6; }
  3993. fi
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3995. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3997. $as_echo "$ac_file" >&6; }
  3998. ac_exeext=$ac_cv_exeext
  3999. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4000. ac_clean_files=$ac_clean_files_save
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4002. $as_echo_n "checking for suffix of executables... " >&6; }
  4003. if { { ac_try="$ac_link"
  4004. case "(($ac_try" in
  4005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4006. *) ac_try_echo=$ac_try;;
  4007. esac
  4008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4009. $as_echo "$ac_try_echo"; } >&5
  4010. (eval "$ac_link") 2>&5
  4011. ac_status=$?
  4012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4013. test $ac_status = 0; }; then :
  4014. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4015. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4016. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4017. # `rm'.
  4018. for ac_file in conftest.exe conftest conftest.*; do
  4019. test -f "$ac_file" || continue
  4020. case $ac_file in
  4021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4022. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4023. break;;
  4024. * ) break;;
  4025. esac
  4026. done
  4027. else
  4028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4030. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4031. See \`config.log' for more details" "$LINENO" 5; }
  4032. fi
  4033. rm -f conftest conftest$ac_cv_exeext
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4035. $as_echo "$ac_cv_exeext" >&6; }
  4036. rm -f conftest.$ac_ext
  4037. EXEEXT=$ac_cv_exeext
  4038. ac_exeext=$EXEEXT
  4039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4040. /* end confdefs.h. */
  4041. #include <stdio.h>
  4042. int
  4043. main ()
  4044. {
  4045. FILE *f = fopen ("conftest.out", "w");
  4046. return ferror (f) || fclose (f) != 0;
  4047. ;
  4048. return 0;
  4049. }
  4050. _ACEOF
  4051. ac_clean_files="$ac_clean_files conftest.out"
  4052. # Check that the compiler produces executables we can run. If not, either
  4053. # the compiler is broken, or we cross compile.
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4055. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4056. if test "$cross_compiling" != yes; then
  4057. { { ac_try="$ac_link"
  4058. case "(($ac_try" in
  4059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4060. *) ac_try_echo=$ac_try;;
  4061. esac
  4062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4063. $as_echo "$ac_try_echo"; } >&5
  4064. (eval "$ac_link") 2>&5
  4065. ac_status=$?
  4066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4067. test $ac_status = 0; }
  4068. if { ac_try='./conftest$ac_cv_exeext'
  4069. { { case "(($ac_try" in
  4070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4071. *) ac_try_echo=$ac_try;;
  4072. esac
  4073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4074. $as_echo "$ac_try_echo"; } >&5
  4075. (eval "$ac_try") 2>&5
  4076. ac_status=$?
  4077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4078. test $ac_status = 0; }; }; then
  4079. cross_compiling=no
  4080. else
  4081. if test "$cross_compiling" = maybe; then
  4082. cross_compiling=yes
  4083. else
  4084. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4085. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4086. as_fn_error $? "cannot run C compiled programs.
  4087. If you meant to cross compile, use \`--host'.
  4088. See \`config.log' for more details" "$LINENO" 5; }
  4089. fi
  4090. fi
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4093. $as_echo "$cross_compiling" >&6; }
  4094. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4095. ac_clean_files=$ac_clean_files_save
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4097. $as_echo_n "checking for suffix of object files... " >&6; }
  4098. if ${ac_cv_objext+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4102. /* end confdefs.h. */
  4103. int
  4104. main ()
  4105. {
  4106. ;
  4107. return 0;
  4108. }
  4109. _ACEOF
  4110. rm -f conftest.o conftest.obj
  4111. if { { ac_try="$ac_compile"
  4112. case "(($ac_try" in
  4113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4114. *) ac_try_echo=$ac_try;;
  4115. esac
  4116. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4117. $as_echo "$ac_try_echo"; } >&5
  4118. (eval "$ac_compile") 2>&5
  4119. ac_status=$?
  4120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4121. test $ac_status = 0; }; then :
  4122. for ac_file in conftest.o conftest.obj conftest.*; do
  4123. test -f "$ac_file" || continue;
  4124. case $ac_file in
  4125. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4126. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4127. break;;
  4128. esac
  4129. done
  4130. else
  4131. $as_echo "$as_me: failed program was:" >&5
  4132. sed 's/^/| /' conftest.$ac_ext >&5
  4133. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4134. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4135. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4136. See \`config.log' for more details" "$LINENO" 5; }
  4137. fi
  4138. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4139. fi
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4141. $as_echo "$ac_cv_objext" >&6; }
  4142. OBJEXT=$ac_cv_objext
  4143. ac_objext=$OBJEXT
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4145. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4146. if ${ac_cv_c_compiler_gnu+:} false; then :
  4147. $as_echo_n "(cached) " >&6
  4148. else
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. int
  4152. main ()
  4153. {
  4154. #ifndef __GNUC__
  4155. choke me
  4156. #endif
  4157. ;
  4158. return 0;
  4159. }
  4160. _ACEOF
  4161. if ac_fn_c_try_compile "$LINENO"; then :
  4162. ac_compiler_gnu=yes
  4163. else
  4164. ac_compiler_gnu=no
  4165. fi
  4166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4167. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4170. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4171. if test $ac_compiler_gnu = yes; then
  4172. GCC=yes
  4173. else
  4174. GCC=
  4175. fi
  4176. ac_test_CFLAGS=${CFLAGS+set}
  4177. ac_save_CFLAGS=$CFLAGS
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4179. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4180. if ${ac_cv_prog_cc_g+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. ac_save_c_werror_flag=$ac_c_werror_flag
  4184. ac_c_werror_flag=yes
  4185. ac_cv_prog_cc_g=no
  4186. CFLAGS="-g"
  4187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4188. /* end confdefs.h. */
  4189. int
  4190. main ()
  4191. {
  4192. ;
  4193. return 0;
  4194. }
  4195. _ACEOF
  4196. if ac_fn_c_try_compile "$LINENO"; then :
  4197. ac_cv_prog_cc_g=yes
  4198. else
  4199. CFLAGS=""
  4200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4201. /* end confdefs.h. */
  4202. int
  4203. main ()
  4204. {
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. if ac_fn_c_try_compile "$LINENO"; then :
  4210. else
  4211. ac_c_werror_flag=$ac_save_c_werror_flag
  4212. CFLAGS="-g"
  4213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4214. /* end confdefs.h. */
  4215. int
  4216. main ()
  4217. {
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. if ac_fn_c_try_compile "$LINENO"; then :
  4223. ac_cv_prog_cc_g=yes
  4224. fi
  4225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4226. fi
  4227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4228. fi
  4229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4230. ac_c_werror_flag=$ac_save_c_werror_flag
  4231. fi
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4233. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4234. if test "$ac_test_CFLAGS" = set; then
  4235. CFLAGS=$ac_save_CFLAGS
  4236. elif test $ac_cv_prog_cc_g = yes; then
  4237. if test "$GCC" = yes; then
  4238. CFLAGS="-g -O2"
  4239. else
  4240. CFLAGS="-g"
  4241. fi
  4242. else
  4243. if test "$GCC" = yes; then
  4244. CFLAGS="-O2"
  4245. else
  4246. CFLAGS=
  4247. fi
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4250. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4251. if ${ac_cv_prog_cc_c89+:} false; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. ac_cv_prog_cc_c89=no
  4255. ac_save_CC=$CC
  4256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4257. /* end confdefs.h. */
  4258. #include <stdarg.h>
  4259. #include <stdio.h>
  4260. struct stat;
  4261. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4262. struct buf { int x; };
  4263. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4264. static char *e (p, i)
  4265. char **p;
  4266. int i;
  4267. {
  4268. return p[i];
  4269. }
  4270. static char *f (char * (*g) (char **, int), char **p, ...)
  4271. {
  4272. char *s;
  4273. va_list v;
  4274. va_start (v,p);
  4275. s = g (p, va_arg (v,int));
  4276. va_end (v);
  4277. return s;
  4278. }
  4279. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4280. function prototypes and stuff, but not '\xHH' hex character constants.
  4281. These don't provoke an error unfortunately, instead are silently treated
  4282. as 'x'. The following induces an error, until -std is added to get
  4283. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4284. array size at least. It's necessary to write '\x00'==0 to get something
  4285. that's true only with -std. */
  4286. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4287. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4288. inside strings and character constants. */
  4289. #define FOO(x) 'x'
  4290. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4291. int test (int i, double x);
  4292. struct s1 {int (*f) (int a);};
  4293. struct s2 {int (*f) (double a);};
  4294. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4295. int argc;
  4296. char **argv;
  4297. int
  4298. main ()
  4299. {
  4300. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4306. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4307. do
  4308. CC="$ac_save_CC $ac_arg"
  4309. if ac_fn_c_try_compile "$LINENO"; then :
  4310. ac_cv_prog_cc_c89=$ac_arg
  4311. fi
  4312. rm -f core conftest.err conftest.$ac_objext
  4313. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4314. done
  4315. rm -f conftest.$ac_ext
  4316. CC=$ac_save_CC
  4317. fi
  4318. # AC_CACHE_VAL
  4319. case "x$ac_cv_prog_cc_c89" in
  4320. x)
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4322. $as_echo "none needed" >&6; } ;;
  4323. xno)
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4325. $as_echo "unsupported" >&6; } ;;
  4326. *)
  4327. CC="$CC $ac_cv_prog_cc_c89"
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4329. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4330. esac
  4331. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4332. fi
  4333. ac_ext=c
  4334. ac_cpp='$CPP $CPPFLAGS'
  4335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4338. ac_ext=c
  4339. ac_cpp='$CPP $CPPFLAGS'
  4340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4344. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4345. if ${am_cv_prog_cc_c_o+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4349. /* end confdefs.h. */
  4350. int
  4351. main ()
  4352. {
  4353. ;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. # Make sure it works both with $CC and with simple cc.
  4358. # Following AC_PROG_CC_C_O, we do the test twice because some
  4359. # compilers refuse to overwrite an existing .o file with -o,
  4360. # though they will create one.
  4361. am_cv_prog_cc_c_o=yes
  4362. for am_i in 1 2; do
  4363. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4364. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4365. ac_status=$?
  4366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4367. (exit $ac_status); } \
  4368. && test -f conftest2.$ac_objext; then
  4369. : OK
  4370. else
  4371. am_cv_prog_cc_c_o=no
  4372. break
  4373. fi
  4374. done
  4375. rm -f core conftest*
  4376. unset am_i
  4377. fi
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4379. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4380. if test "$am_cv_prog_cc_c_o" != yes; then
  4381. # Losing compiler, so override with the script.
  4382. # FIXME: It is wrong to rewrite CC.
  4383. # But if we don't then we get into trouble of one sort or another.
  4384. # A longer-term fix would be to have automake use am__CC in this case,
  4385. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4386. CC="$am_aux_dir/compile $CC"
  4387. fi
  4388. ac_ext=c
  4389. ac_cpp='$CPP $CPPFLAGS'
  4390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4393. depcc="$CC" am_compiler_list=
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4395. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4396. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4400. # We make a subdir and do the tests there. Otherwise we can end up
  4401. # making bogus files that we don't know about and never remove. For
  4402. # instance it was reported that on HP-UX the gcc test will end up
  4403. # making a dummy file named 'D' -- because '-MD' means "put the output
  4404. # in D".
  4405. rm -rf conftest.dir
  4406. mkdir conftest.dir
  4407. # Copy depcomp to subdir because otherwise we won't find it if we're
  4408. # using a relative directory.
  4409. cp "$am_depcomp" conftest.dir
  4410. cd conftest.dir
  4411. # We will build objects and dependencies in a subdirectory because
  4412. # it helps to detect inapplicable dependency modes. For instance
  4413. # both Tru64's cc and ICC support -MD to output dependencies as a
  4414. # side effect of compilation, but ICC will put the dependencies in
  4415. # the current directory while Tru64 will put them in the object
  4416. # directory.
  4417. mkdir sub
  4418. am_cv_CC_dependencies_compiler_type=none
  4419. if test "$am_compiler_list" = ""; then
  4420. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4421. fi
  4422. am__universal=false
  4423. case " $depcc " in #(
  4424. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4425. esac
  4426. for depmode in $am_compiler_list; do
  4427. # Setup a source with many dependencies, because some compilers
  4428. # like to wrap large dependency lists on column 80 (with \), and
  4429. # we should not choose a depcomp mode which is confused by this.
  4430. #
  4431. # We need to recreate these files for each test, as the compiler may
  4432. # overwrite some of them when testing with obscure command lines.
  4433. # This happens at least with the AIX C compiler.
  4434. : > sub/conftest.c
  4435. for i in 1 2 3 4 5 6; do
  4436. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4437. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4438. # Solaris 10 /bin/sh.
  4439. echo '/* dummy */' > sub/conftst$i.h
  4440. done
  4441. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4442. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4443. # mode. It turns out that the SunPro C++ compiler does not properly
  4444. # handle '-M -o', and we need to detect this. Also, some Intel
  4445. # versions had trouble with output in subdirs.
  4446. am__obj=sub/conftest.${OBJEXT-o}
  4447. am__minus_obj="-o $am__obj"
  4448. case $depmode in
  4449. gcc)
  4450. # This depmode causes a compiler race in universal mode.
  4451. test "$am__universal" = false || continue
  4452. ;;
  4453. nosideeffect)
  4454. # After this tag, mechanisms are not by side-effect, so they'll
  4455. # only be used when explicitly requested.
  4456. if test "x$enable_dependency_tracking" = xyes; then
  4457. continue
  4458. else
  4459. break
  4460. fi
  4461. ;;
  4462. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4463. # This compiler won't grok '-c -o', but also, the minuso test has
  4464. # not run yet. These depmodes are late enough in the game, and
  4465. # so weak that their functioning should not be impacted.
  4466. am__obj=conftest.${OBJEXT-o}
  4467. am__minus_obj=
  4468. ;;
  4469. none) break ;;
  4470. esac
  4471. if depmode=$depmode \
  4472. source=sub/conftest.c object=$am__obj \
  4473. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4474. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4475. >/dev/null 2>conftest.err &&
  4476. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4477. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4478. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4479. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4480. # icc doesn't choke on unknown options, it will just issue warnings
  4481. # or remarks (even with -Werror). So we grep stderr for any message
  4482. # that says an option was ignored or not supported.
  4483. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4484. # icc: Command line warning: ignoring option '-M'; no argument required
  4485. # The diagnosis changed in icc 8.0:
  4486. # icc: Command line remark: option '-MP' not supported
  4487. if (grep 'ignoring option' conftest.err ||
  4488. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4489. am_cv_CC_dependencies_compiler_type=$depmode
  4490. break
  4491. fi
  4492. fi
  4493. done
  4494. cd ..
  4495. rm -rf conftest.dir
  4496. else
  4497. am_cv_CC_dependencies_compiler_type=none
  4498. fi
  4499. fi
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4501. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4502. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4503. if
  4504. test "x$enable_dependency_tracking" != xno \
  4505. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4506. am__fastdepCC_TRUE=
  4507. am__fastdepCC_FALSE='#'
  4508. else
  4509. am__fastdepCC_TRUE='#'
  4510. am__fastdepCC_FALSE=
  4511. fi
  4512. if test -n "$ac_tool_prefix"; then
  4513. for ac_prog in ar lib "link -lib"
  4514. do
  4515. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4516. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4518. $as_echo_n "checking for $ac_word... " >&6; }
  4519. if ${ac_cv_prog_AR+:} false; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -n "$AR"; then
  4523. ac_cv_prog_AR="$AR" # Let the user override the test.
  4524. else
  4525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4526. for as_dir in $PATH
  4527. do
  4528. IFS=$as_save_IFS
  4529. test -z "$as_dir" && as_dir=.
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4532. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4534. break 2
  4535. fi
  4536. done
  4537. done
  4538. IFS=$as_save_IFS
  4539. fi
  4540. fi
  4541. AR=$ac_cv_prog_AR
  4542. if test -n "$AR"; then
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4544. $as_echo "$AR" >&6; }
  4545. else
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4547. $as_echo "no" >&6; }
  4548. fi
  4549. test -n "$AR" && break
  4550. done
  4551. fi
  4552. if test -z "$AR"; then
  4553. ac_ct_AR=$AR
  4554. for ac_prog in ar lib "link -lib"
  4555. do
  4556. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4557. set dummy $ac_prog; ac_word=$2
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4559. $as_echo_n "checking for $ac_word... " >&6; }
  4560. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if test -n "$ac_ct_AR"; then
  4564. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4565. else
  4566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567. for as_dir in $PATH
  4568. do
  4569. IFS=$as_save_IFS
  4570. test -z "$as_dir" && as_dir=.
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4573. ac_cv_prog_ac_ct_AR="$ac_prog"
  4574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4575. break 2
  4576. fi
  4577. done
  4578. done
  4579. IFS=$as_save_IFS
  4580. fi
  4581. fi
  4582. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4583. if test -n "$ac_ct_AR"; then
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4585. $as_echo "$ac_ct_AR" >&6; }
  4586. else
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. $as_echo "no" >&6; }
  4589. fi
  4590. test -n "$ac_ct_AR" && break
  4591. done
  4592. if test "x$ac_ct_AR" = x; then
  4593. AR="false"
  4594. else
  4595. case $cross_compiling:$ac_tool_warned in
  4596. yes:)
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4599. ac_tool_warned=yes ;;
  4600. esac
  4601. AR=$ac_ct_AR
  4602. fi
  4603. fi
  4604. : ${AR=ar}
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4606. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4607. if ${am_cv_ar_interface+:} false; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. ac_ext=c
  4611. ac_cpp='$CPP $CPPFLAGS'
  4612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4615. am_cv_ar_interface=ar
  4616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4617. /* end confdefs.h. */
  4618. int some_variable = 0;
  4619. _ACEOF
  4620. if ac_fn_c_try_compile "$LINENO"; then :
  4621. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4622. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4623. (eval $am_ar_try) 2>&5
  4624. ac_status=$?
  4625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4626. test $ac_status = 0; }
  4627. if test "$ac_status" -eq 0; then
  4628. am_cv_ar_interface=ar
  4629. else
  4630. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4631. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4632. (eval $am_ar_try) 2>&5
  4633. ac_status=$?
  4634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4635. test $ac_status = 0; }
  4636. if test "$ac_status" -eq 0; then
  4637. am_cv_ar_interface=lib
  4638. else
  4639. am_cv_ar_interface=unknown
  4640. fi
  4641. fi
  4642. rm -f conftest.lib libconftest.a
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4645. ac_ext=c
  4646. ac_cpp='$CPP $CPPFLAGS'
  4647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4652. $as_echo "$am_cv_ar_interface" >&6; }
  4653. case $am_cv_ar_interface in
  4654. ar)
  4655. ;;
  4656. lib)
  4657. # Microsoft lib, so override with the ar-lib wrapper script.
  4658. # FIXME: It is wrong to rewrite AR.
  4659. # But if we don't then we get into trouble of one sort or another.
  4660. # A longer-term fix would be to have automake use am__AR in this case,
  4661. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4662. # similar.
  4663. AR="$am_aux_dir/ar-lib $AR"
  4664. ;;
  4665. unknown)
  4666. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4667. ;;
  4668. esac
  4669. case `pwd` in
  4670. *\ * | *\ *)
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4672. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4673. esac
  4674. macro_version='2.4.6'
  4675. macro_revision='2.4.6'
  4676. ltmain=$ac_aux_dir/ltmain.sh
  4677. # Backslashify metacharacters that are still active within
  4678. # double-quoted strings.
  4679. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4680. # Same as above, but do not quote variable references.
  4681. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4682. # Sed substitution to delay expansion of an escaped shell variable in a
  4683. # double_quote_subst'ed string.
  4684. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4685. # Sed substitution to delay expansion of an escaped single quote.
  4686. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4687. # Sed substitution to avoid accidental globbing in evaled expressions
  4688. no_glob_subst='s/\*/\\\*/g'
  4689. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4690. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4691. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4693. $as_echo_n "checking how to print strings... " >&6; }
  4694. # Test print first, because it will be a builtin if present.
  4695. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4696. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4697. ECHO='print -r --'
  4698. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4699. ECHO='printf %s\n'
  4700. else
  4701. # Use this function as a fallback that always works.
  4702. func_fallback_echo ()
  4703. {
  4704. eval 'cat <<_LTECHO_EOF
  4705. $1
  4706. _LTECHO_EOF'
  4707. }
  4708. ECHO='func_fallback_echo'
  4709. fi
  4710. # func_echo_all arg...
  4711. # Invoke $ECHO with all args, space-separated.
  4712. func_echo_all ()
  4713. {
  4714. $ECHO ""
  4715. }
  4716. case $ECHO in
  4717. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4718. $as_echo "printf" >&6; } ;;
  4719. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4720. $as_echo "print -r" >&6; } ;;
  4721. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4722. $as_echo "cat" >&6; } ;;
  4723. esac
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4725. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4726. if ${ac_cv_path_SED+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4730. for ac_i in 1 2 3 4 5 6 7; do
  4731. ac_script="$ac_script$as_nl$ac_script"
  4732. done
  4733. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4734. { ac_script=; unset ac_script;}
  4735. if test -z "$SED"; then
  4736. ac_path_SED_found=false
  4737. # Loop through the user's path and test for each of PROGNAME-LIST
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_prog in sed gsed; do
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4746. as_fn_executable_p "$ac_path_SED" || continue
  4747. # Check for GNU ac_path_SED and select it if it is found.
  4748. # Check for GNU $ac_path_SED
  4749. case `"$ac_path_SED" --version 2>&1` in
  4750. *GNU*)
  4751. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4752. *)
  4753. ac_count=0
  4754. $as_echo_n 0123456789 >"conftest.in"
  4755. while :
  4756. do
  4757. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4758. mv "conftest.tmp" "conftest.in"
  4759. cp "conftest.in" "conftest.nl"
  4760. $as_echo '' >> "conftest.nl"
  4761. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4762. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4763. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4764. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4765. # Best one so far, save it but keep looking for a better one
  4766. ac_cv_path_SED="$ac_path_SED"
  4767. ac_path_SED_max=$ac_count
  4768. fi
  4769. # 10*(2^10) chars as input seems more than enough
  4770. test $ac_count -gt 10 && break
  4771. done
  4772. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4773. esac
  4774. $ac_path_SED_found && break 3
  4775. done
  4776. done
  4777. done
  4778. IFS=$as_save_IFS
  4779. if test -z "$ac_cv_path_SED"; then
  4780. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4781. fi
  4782. else
  4783. ac_cv_path_SED=$SED
  4784. fi
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4787. $as_echo "$ac_cv_path_SED" >&6; }
  4788. SED="$ac_cv_path_SED"
  4789. rm -f conftest.sed
  4790. test -z "$SED" && SED=sed
  4791. Xsed="$SED -e 1s/^X//"
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4793. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4794. if ${ac_cv_path_GREP+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. if test -z "$GREP"; then
  4798. ac_path_GREP_found=false
  4799. # Loop through the user's path and test for each of PROGNAME-LIST
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_prog in grep ggrep; do
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4808. as_fn_executable_p "$ac_path_GREP" || continue
  4809. # Check for GNU ac_path_GREP and select it if it is found.
  4810. # Check for GNU $ac_path_GREP
  4811. case `"$ac_path_GREP" --version 2>&1` in
  4812. *GNU*)
  4813. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4814. *)
  4815. ac_count=0
  4816. $as_echo_n 0123456789 >"conftest.in"
  4817. while :
  4818. do
  4819. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4820. mv "conftest.tmp" "conftest.in"
  4821. cp "conftest.in" "conftest.nl"
  4822. $as_echo 'GREP' >> "conftest.nl"
  4823. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4824. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4825. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4826. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4827. # Best one so far, save it but keep looking for a better one
  4828. ac_cv_path_GREP="$ac_path_GREP"
  4829. ac_path_GREP_max=$ac_count
  4830. fi
  4831. # 10*(2^10) chars as input seems more than enough
  4832. test $ac_count -gt 10 && break
  4833. done
  4834. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4835. esac
  4836. $ac_path_GREP_found && break 3
  4837. done
  4838. done
  4839. done
  4840. IFS=$as_save_IFS
  4841. if test -z "$ac_cv_path_GREP"; then
  4842. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4843. fi
  4844. else
  4845. ac_cv_path_GREP=$GREP
  4846. fi
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4849. $as_echo "$ac_cv_path_GREP" >&6; }
  4850. GREP="$ac_cv_path_GREP"
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4852. $as_echo_n "checking for egrep... " >&6; }
  4853. if ${ac_cv_path_EGREP+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4857. then ac_cv_path_EGREP="$GREP -E"
  4858. else
  4859. if test -z "$EGREP"; then
  4860. ac_path_EGREP_found=false
  4861. # Loop through the user's path and test for each of PROGNAME-LIST
  4862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4864. do
  4865. IFS=$as_save_IFS
  4866. test -z "$as_dir" && as_dir=.
  4867. for ac_prog in egrep; do
  4868. for ac_exec_ext in '' $ac_executable_extensions; do
  4869. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4870. as_fn_executable_p "$ac_path_EGREP" || continue
  4871. # Check for GNU ac_path_EGREP and select it if it is found.
  4872. # Check for GNU $ac_path_EGREP
  4873. case `"$ac_path_EGREP" --version 2>&1` in
  4874. *GNU*)
  4875. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4876. *)
  4877. ac_count=0
  4878. $as_echo_n 0123456789 >"conftest.in"
  4879. while :
  4880. do
  4881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4882. mv "conftest.tmp" "conftest.in"
  4883. cp "conftest.in" "conftest.nl"
  4884. $as_echo 'EGREP' >> "conftest.nl"
  4885. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4888. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4889. # Best one so far, save it but keep looking for a better one
  4890. ac_cv_path_EGREP="$ac_path_EGREP"
  4891. ac_path_EGREP_max=$ac_count
  4892. fi
  4893. # 10*(2^10) chars as input seems more than enough
  4894. test $ac_count -gt 10 && break
  4895. done
  4896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4897. esac
  4898. $ac_path_EGREP_found && break 3
  4899. done
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. if test -z "$ac_cv_path_EGREP"; then
  4904. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4905. fi
  4906. else
  4907. ac_cv_path_EGREP=$EGREP
  4908. fi
  4909. fi
  4910. fi
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4912. $as_echo "$ac_cv_path_EGREP" >&6; }
  4913. EGREP="$ac_cv_path_EGREP"
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4915. $as_echo_n "checking for fgrep... " >&6; }
  4916. if ${ac_cv_path_FGREP+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4920. then ac_cv_path_FGREP="$GREP -F"
  4921. else
  4922. if test -z "$FGREP"; then
  4923. ac_path_FGREP_found=false
  4924. # Loop through the user's path and test for each of PROGNAME-LIST
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_prog in fgrep; do
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4933. as_fn_executable_p "$ac_path_FGREP" || continue
  4934. # Check for GNU ac_path_FGREP and select it if it is found.
  4935. # Check for GNU $ac_path_FGREP
  4936. case `"$ac_path_FGREP" --version 2>&1` in
  4937. *GNU*)
  4938. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4939. *)
  4940. ac_count=0
  4941. $as_echo_n 0123456789 >"conftest.in"
  4942. while :
  4943. do
  4944. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4945. mv "conftest.tmp" "conftest.in"
  4946. cp "conftest.in" "conftest.nl"
  4947. $as_echo 'FGREP' >> "conftest.nl"
  4948. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4949. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4950. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4951. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4952. # Best one so far, save it but keep looking for a better one
  4953. ac_cv_path_FGREP="$ac_path_FGREP"
  4954. ac_path_FGREP_max=$ac_count
  4955. fi
  4956. # 10*(2^10) chars as input seems more than enough
  4957. test $ac_count -gt 10 && break
  4958. done
  4959. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4960. esac
  4961. $ac_path_FGREP_found && break 3
  4962. done
  4963. done
  4964. done
  4965. IFS=$as_save_IFS
  4966. if test -z "$ac_cv_path_FGREP"; then
  4967. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4968. fi
  4969. else
  4970. ac_cv_path_FGREP=$FGREP
  4971. fi
  4972. fi
  4973. fi
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4975. $as_echo "$ac_cv_path_FGREP" >&6; }
  4976. FGREP="$ac_cv_path_FGREP"
  4977. test -z "$GREP" && GREP=grep
  4978. # Check whether --with-gnu-ld was given.
  4979. if test "${with_gnu_ld+set}" = set; then :
  4980. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4981. else
  4982. with_gnu_ld=no
  4983. fi
  4984. ac_prog=ld
  4985. if test yes = "$GCC"; then
  4986. # Check if gcc -print-prog-name=ld gives a path.
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4988. $as_echo_n "checking for ld used by $CC... " >&6; }
  4989. case $host in
  4990. *-*-mingw*)
  4991. # gcc leaves a trailing carriage return, which upsets mingw
  4992. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4993. *)
  4994. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4995. esac
  4996. case $ac_prog in
  4997. # Accept absolute paths.
  4998. [\\/]* | ?:[\\/]*)
  4999. re_direlt='/[^/][^/]*/\.\./'
  5000. # Canonicalize the pathname of ld
  5001. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5002. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5003. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5004. done
  5005. test -z "$LD" && LD=$ac_prog
  5006. ;;
  5007. "")
  5008. # If it fails, then pretend we aren't using GCC.
  5009. ac_prog=ld
  5010. ;;
  5011. *)
  5012. # If it is relative, then search for the first ld in PATH.
  5013. with_gnu_ld=unknown
  5014. ;;
  5015. esac
  5016. elif test yes = "$with_gnu_ld"; then
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5018. $as_echo_n "checking for GNU ld... " >&6; }
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5021. $as_echo_n "checking for non-GNU ld... " >&6; }
  5022. fi
  5023. if ${lt_cv_path_LD+:} false; then :
  5024. $as_echo_n "(cached) " >&6
  5025. else
  5026. if test -z "$LD"; then
  5027. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5028. for ac_dir in $PATH; do
  5029. IFS=$lt_save_ifs
  5030. test -z "$ac_dir" && ac_dir=.
  5031. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5032. lt_cv_path_LD=$ac_dir/$ac_prog
  5033. # Check to see if the program is GNU ld. I'd rather use --version,
  5034. # but apparently some variants of GNU ld only accept -v.
  5035. # Break only if it was the GNU/non-GNU ld that we prefer.
  5036. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5037. *GNU* | *'with BFD'*)
  5038. test no != "$with_gnu_ld" && break
  5039. ;;
  5040. *)
  5041. test yes != "$with_gnu_ld" && break
  5042. ;;
  5043. esac
  5044. fi
  5045. done
  5046. IFS=$lt_save_ifs
  5047. else
  5048. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5049. fi
  5050. fi
  5051. LD=$lt_cv_path_LD
  5052. if test -n "$LD"; then
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5054. $as_echo "$LD" >&6; }
  5055. else
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5057. $as_echo "no" >&6; }
  5058. fi
  5059. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5061. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5062. if ${lt_cv_prog_gnu_ld+:} false; then :
  5063. $as_echo_n "(cached) " >&6
  5064. else
  5065. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5066. case `$LD -v 2>&1 </dev/null` in
  5067. *GNU* | *'with BFD'*)
  5068. lt_cv_prog_gnu_ld=yes
  5069. ;;
  5070. *)
  5071. lt_cv_prog_gnu_ld=no
  5072. ;;
  5073. esac
  5074. fi
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5076. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5077. with_gnu_ld=$lt_cv_prog_gnu_ld
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5079. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5080. if ${lt_cv_path_NM+:} false; then :
  5081. $as_echo_n "(cached) " >&6
  5082. else
  5083. if test -n "$NM"; then
  5084. # Let the user override the test.
  5085. lt_cv_path_NM=$NM
  5086. else
  5087. lt_nm_to_check=${ac_tool_prefix}nm
  5088. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5089. lt_nm_to_check="$lt_nm_to_check nm"
  5090. fi
  5091. for lt_tmp_nm in $lt_nm_to_check; do
  5092. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5093. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5094. IFS=$lt_save_ifs
  5095. test -z "$ac_dir" && ac_dir=.
  5096. tmp_nm=$ac_dir/$lt_tmp_nm
  5097. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5098. # Check to see if the nm accepts a BSD-compat flag.
  5099. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5100. # nm: unknown option "B" ignored
  5101. # Tru64's nm complains that /dev/null is an invalid object file
  5102. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5103. case $build_os in
  5104. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5105. *) lt_bad_file=/dev/null ;;
  5106. esac
  5107. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5108. *$lt_bad_file* | *'Invalid file or object type'*)
  5109. lt_cv_path_NM="$tmp_nm -B"
  5110. break 2
  5111. ;;
  5112. *)
  5113. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5114. */dev/null*)
  5115. lt_cv_path_NM="$tmp_nm -p"
  5116. break 2
  5117. ;;
  5118. *)
  5119. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5120. continue # so that we can try to find one that supports BSD flags
  5121. ;;
  5122. esac
  5123. ;;
  5124. esac
  5125. fi
  5126. done
  5127. IFS=$lt_save_ifs
  5128. done
  5129. : ${lt_cv_path_NM=no}
  5130. fi
  5131. fi
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5133. $as_echo "$lt_cv_path_NM" >&6; }
  5134. if test no != "$lt_cv_path_NM"; then
  5135. NM=$lt_cv_path_NM
  5136. else
  5137. # Didn't find any BSD compatible name lister, look for dumpbin.
  5138. if test -n "$DUMPBIN"; then :
  5139. # Let the user override the test.
  5140. else
  5141. if test -n "$ac_tool_prefix"; then
  5142. for ac_prog in dumpbin "link -dump"
  5143. do
  5144. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5145. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5147. $as_echo_n "checking for $ac_word... " >&6; }
  5148. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. if test -n "$DUMPBIN"; then
  5152. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5153. else
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH
  5156. do
  5157. IFS=$as_save_IFS
  5158. test -z "$as_dir" && as_dir=.
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5161. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. fi
  5169. fi
  5170. DUMPBIN=$ac_cv_prog_DUMPBIN
  5171. if test -n "$DUMPBIN"; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5173. $as_echo "$DUMPBIN" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5176. $as_echo "no" >&6; }
  5177. fi
  5178. test -n "$DUMPBIN" && break
  5179. done
  5180. fi
  5181. if test -z "$DUMPBIN"; then
  5182. ac_ct_DUMPBIN=$DUMPBIN
  5183. for ac_prog in dumpbin "link -dump"
  5184. do
  5185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5186. set dummy $ac_prog; ac_word=$2
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5188. $as_echo_n "checking for $ac_word... " >&6; }
  5189. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. if test -n "$ac_ct_DUMPBIN"; then
  5193. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5194. else
  5195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5196. for as_dir in $PATH
  5197. do
  5198. IFS=$as_save_IFS
  5199. test -z "$as_dir" && as_dir=.
  5200. for ac_exec_ext in '' $ac_executable_extensions; do
  5201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5202. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5204. break 2
  5205. fi
  5206. done
  5207. done
  5208. IFS=$as_save_IFS
  5209. fi
  5210. fi
  5211. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5212. if test -n "$ac_ct_DUMPBIN"; then
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5214. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5215. else
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. $as_echo "no" >&6; }
  5218. fi
  5219. test -n "$ac_ct_DUMPBIN" && break
  5220. done
  5221. if test "x$ac_ct_DUMPBIN" = x; then
  5222. DUMPBIN=":"
  5223. else
  5224. case $cross_compiling:$ac_tool_warned in
  5225. yes:)
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5227. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5228. ac_tool_warned=yes ;;
  5229. esac
  5230. DUMPBIN=$ac_ct_DUMPBIN
  5231. fi
  5232. fi
  5233. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5234. *COFF*)
  5235. DUMPBIN="$DUMPBIN -symbols -headers"
  5236. ;;
  5237. *)
  5238. DUMPBIN=:
  5239. ;;
  5240. esac
  5241. fi
  5242. if test : != "$DUMPBIN"; then
  5243. NM=$DUMPBIN
  5244. fi
  5245. fi
  5246. test -z "$NM" && NM=nm
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5248. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5249. if ${lt_cv_nm_interface+:} false; then :
  5250. $as_echo_n "(cached) " >&6
  5251. else
  5252. lt_cv_nm_interface="BSD nm"
  5253. echo "int some_variable = 0;" > conftest.$ac_ext
  5254. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5255. (eval "$ac_compile" 2>conftest.err)
  5256. cat conftest.err >&5
  5257. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5258. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5259. cat conftest.err >&5
  5260. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5261. cat conftest.out >&5
  5262. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5263. lt_cv_nm_interface="MS dumpbin"
  5264. fi
  5265. rm -f conftest*
  5266. fi
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5268. $as_echo "$lt_cv_nm_interface" >&6; }
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5270. $as_echo_n "checking whether ln -s works... " >&6; }
  5271. LN_S=$as_ln_s
  5272. if test "$LN_S" = "ln -s"; then
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5274. $as_echo "yes" >&6; }
  5275. else
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5277. $as_echo "no, using $LN_S" >&6; }
  5278. fi
  5279. # find the maximum length of command line arguments
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5281. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5282. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. i=0
  5286. teststring=ABCD
  5287. case $build_os in
  5288. msdosdjgpp*)
  5289. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5290. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5291. # during glob expansion). Even if it were fixed, the result of this
  5292. # check would be larger than it should be.
  5293. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5294. ;;
  5295. gnu*)
  5296. # Under GNU Hurd, this test is not required because there is
  5297. # no limit to the length of command line arguments.
  5298. # Libtool will interpret -1 as no limit whatsoever
  5299. lt_cv_sys_max_cmd_len=-1;
  5300. ;;
  5301. cygwin* | mingw* | cegcc*)
  5302. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5303. # about 5 minutes as the teststring grows exponentially.
  5304. # Worse, since 9x/ME are not pre-emptively multitasking,
  5305. # you end up with a "frozen" computer, even though with patience
  5306. # the test eventually succeeds (with a max line length of 256k).
  5307. # Instead, let's just punt: use the minimum linelength reported by
  5308. # all of the supported platforms: 8192 (on NT/2K/XP).
  5309. lt_cv_sys_max_cmd_len=8192;
  5310. ;;
  5311. mint*)
  5312. # On MiNT this can take a long time and run out of memory.
  5313. lt_cv_sys_max_cmd_len=8192;
  5314. ;;
  5315. amigaos*)
  5316. # On AmigaOS with pdksh, this test takes hours, literally.
  5317. # So we just punt and use a minimum line length of 8192.
  5318. lt_cv_sys_max_cmd_len=8192;
  5319. ;;
  5320. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5321. # This has been around since 386BSD, at least. Likely further.
  5322. if test -x /sbin/sysctl; then
  5323. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5324. elif test -x /usr/sbin/sysctl; then
  5325. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5326. else
  5327. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5328. fi
  5329. # And add a safety zone
  5330. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5331. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5332. ;;
  5333. interix*)
  5334. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5335. lt_cv_sys_max_cmd_len=196608
  5336. ;;
  5337. os2*)
  5338. # The test takes a long time on OS/2.
  5339. lt_cv_sys_max_cmd_len=8192
  5340. ;;
  5341. osf*)
  5342. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5343. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5344. # nice to cause kernel panics so lets avoid the loop below.
  5345. # First set a reasonable default.
  5346. lt_cv_sys_max_cmd_len=16384
  5347. #
  5348. if test -x /sbin/sysconfig; then
  5349. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5350. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5351. esac
  5352. fi
  5353. ;;
  5354. sco3.2v5*)
  5355. lt_cv_sys_max_cmd_len=102400
  5356. ;;
  5357. sysv5* | sco5v6* | sysv4.2uw2*)
  5358. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5359. if test -n "$kargmax"; then
  5360. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5361. else
  5362. lt_cv_sys_max_cmd_len=32768
  5363. fi
  5364. ;;
  5365. *)
  5366. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5367. if test -n "$lt_cv_sys_max_cmd_len" && \
  5368. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5369. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5370. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5371. else
  5372. # Make teststring a little bigger before we do anything with it.
  5373. # a 1K string should be a reasonable start.
  5374. for i in 1 2 3 4 5 6 7 8; do
  5375. teststring=$teststring$teststring
  5376. done
  5377. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5378. # If test is not a shell built-in, we'll probably end up computing a
  5379. # maximum length that is only half of the actual maximum length, but
  5380. # we can't tell.
  5381. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5382. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5383. test 17 != "$i" # 1/2 MB should be enough
  5384. do
  5385. i=`expr $i + 1`
  5386. teststring=$teststring$teststring
  5387. done
  5388. # Only check the string length outside the loop.
  5389. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5390. teststring=
  5391. # Add a significant safety factor because C++ compilers can tack on
  5392. # massive amounts of additional arguments before passing them to the
  5393. # linker. It appears as though 1/2 is a usable value.
  5394. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5395. fi
  5396. ;;
  5397. esac
  5398. fi
  5399. if test -n "$lt_cv_sys_max_cmd_len"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5401. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5402. else
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5404. $as_echo "none" >&6; }
  5405. fi
  5406. max_cmd_len=$lt_cv_sys_max_cmd_len
  5407. : ${CP="cp -f"}
  5408. : ${MV="mv -f"}
  5409. : ${RM="rm -f"}
  5410. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5411. lt_unset=unset
  5412. else
  5413. lt_unset=false
  5414. fi
  5415. # test EBCDIC or ASCII
  5416. case `echo X|tr X '\101'` in
  5417. A) # ASCII based system
  5418. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5419. lt_SP2NL='tr \040 \012'
  5420. lt_NL2SP='tr \015\012 \040\040'
  5421. ;;
  5422. *) # EBCDIC based system
  5423. lt_SP2NL='tr \100 \n'
  5424. lt_NL2SP='tr \r\n \100\100'
  5425. ;;
  5426. esac
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5428. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5429. if ${lt_cv_to_host_file_cmd+:} false; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. case $host in
  5433. *-*-mingw* )
  5434. case $build in
  5435. *-*-mingw* ) # actually msys
  5436. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5437. ;;
  5438. *-*-cygwin* )
  5439. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5440. ;;
  5441. * ) # otherwise, assume *nix
  5442. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5443. ;;
  5444. esac
  5445. ;;
  5446. *-*-cygwin* )
  5447. case $build in
  5448. *-*-mingw* ) # actually msys
  5449. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5450. ;;
  5451. *-*-cygwin* )
  5452. lt_cv_to_host_file_cmd=func_convert_file_noop
  5453. ;;
  5454. * ) # otherwise, assume *nix
  5455. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5456. ;;
  5457. esac
  5458. ;;
  5459. * ) # unhandled hosts (and "normal" native builds)
  5460. lt_cv_to_host_file_cmd=func_convert_file_noop
  5461. ;;
  5462. esac
  5463. fi
  5464. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5466. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5468. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5469. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. #assume ordinary cross tools, or native build.
  5473. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5474. case $host in
  5475. *-*-mingw* )
  5476. case $build in
  5477. *-*-mingw* ) # actually msys
  5478. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5479. ;;
  5480. esac
  5481. ;;
  5482. esac
  5483. fi
  5484. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5486. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5488. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5489. if ${lt_cv_ld_reload_flag+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. lt_cv_ld_reload_flag='-r'
  5493. fi
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5495. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5496. reload_flag=$lt_cv_ld_reload_flag
  5497. case $reload_flag in
  5498. "" | " "*) ;;
  5499. *) reload_flag=" $reload_flag" ;;
  5500. esac
  5501. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5502. case $host_os in
  5503. cygwin* | mingw* | pw32* | cegcc*)
  5504. if test yes != "$GCC"; then
  5505. reload_cmds=false
  5506. fi
  5507. ;;
  5508. darwin*)
  5509. if test yes = "$GCC"; then
  5510. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5511. else
  5512. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5513. fi
  5514. ;;
  5515. esac
  5516. if test -n "$ac_tool_prefix"; then
  5517. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5518. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5520. $as_echo_n "checking for $ac_word... " >&6; }
  5521. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test -n "$OBJDUMP"; then
  5525. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5526. else
  5527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5528. for as_dir in $PATH
  5529. do
  5530. IFS=$as_save_IFS
  5531. test -z "$as_dir" && as_dir=.
  5532. for ac_exec_ext in '' $ac_executable_extensions; do
  5533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5534. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5536. break 2
  5537. fi
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. fi
  5543. OBJDUMP=$ac_cv_prog_OBJDUMP
  5544. if test -n "$OBJDUMP"; then
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5546. $as_echo "$OBJDUMP" >&6; }
  5547. else
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5549. $as_echo "no" >&6; }
  5550. fi
  5551. fi
  5552. if test -z "$ac_cv_prog_OBJDUMP"; then
  5553. ac_ct_OBJDUMP=$OBJDUMP
  5554. # Extract the first word of "objdump", so it can be a program name with args.
  5555. set dummy objdump; ac_word=$2
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5557. $as_echo_n "checking for $ac_word... " >&6; }
  5558. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5559. $as_echo_n "(cached) " >&6
  5560. else
  5561. if test -n "$ac_ct_OBJDUMP"; then
  5562. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5563. else
  5564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5565. for as_dir in $PATH
  5566. do
  5567. IFS=$as_save_IFS
  5568. test -z "$as_dir" && as_dir=.
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5571. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5573. break 2
  5574. fi
  5575. done
  5576. done
  5577. IFS=$as_save_IFS
  5578. fi
  5579. fi
  5580. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5581. if test -n "$ac_ct_OBJDUMP"; then
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5583. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5584. else
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5586. $as_echo "no" >&6; }
  5587. fi
  5588. if test "x$ac_ct_OBJDUMP" = x; then
  5589. OBJDUMP="false"
  5590. else
  5591. case $cross_compiling:$ac_tool_warned in
  5592. yes:)
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5595. ac_tool_warned=yes ;;
  5596. esac
  5597. OBJDUMP=$ac_ct_OBJDUMP
  5598. fi
  5599. else
  5600. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5601. fi
  5602. test -z "$OBJDUMP" && OBJDUMP=objdump
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5604. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5605. if ${lt_cv_deplibs_check_method+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5609. lt_cv_file_magic_test_file=
  5610. lt_cv_deplibs_check_method='unknown'
  5611. # Need to set the preceding variable on all platforms that support
  5612. # interlibrary dependencies.
  5613. # 'none' -- dependencies not supported.
  5614. # 'unknown' -- same as none, but documents that we really don't know.
  5615. # 'pass_all' -- all dependencies passed with no checks.
  5616. # 'test_compile' -- check by making test program.
  5617. # 'file_magic [[regex]]' -- check by looking for files in library path
  5618. # that responds to the $file_magic_cmd with a given extended regex.
  5619. # If you have 'file' or equivalent on your system and you're not sure
  5620. # whether 'pass_all' will *always* work, you probably want this one.
  5621. case $host_os in
  5622. aix[4-9]*)
  5623. lt_cv_deplibs_check_method=pass_all
  5624. ;;
  5625. beos*)
  5626. lt_cv_deplibs_check_method=pass_all
  5627. ;;
  5628. bsdi[45]*)
  5629. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5630. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5631. lt_cv_file_magic_test_file=/shlib/libc.so
  5632. ;;
  5633. cygwin*)
  5634. # func_win32_libid is a shell function defined in ltmain.sh
  5635. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5636. lt_cv_file_magic_cmd='func_win32_libid'
  5637. ;;
  5638. mingw* | pw32*)
  5639. # Base MSYS/MinGW do not provide the 'file' command needed by
  5640. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5641. # unless we find 'file', for example because we are cross-compiling.
  5642. if ( file / ) >/dev/null 2>&1; then
  5643. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5644. lt_cv_file_magic_cmd='func_win32_libid'
  5645. else
  5646. # Keep this pattern in sync with the one in func_win32_libid.
  5647. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5648. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5649. fi
  5650. ;;
  5651. cegcc*)
  5652. # use the weaker test based on 'objdump'. See mingw*.
  5653. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5654. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5655. ;;
  5656. darwin* | rhapsody*)
  5657. lt_cv_deplibs_check_method=pass_all
  5658. ;;
  5659. freebsd* | dragonfly*)
  5660. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5661. case $host_cpu in
  5662. i*86 )
  5663. # Not sure whether the presence of OpenBSD here was a mistake.
  5664. # Let's accept both of them until this is cleared up.
  5665. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5666. lt_cv_file_magic_cmd=/usr/bin/file
  5667. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5668. ;;
  5669. esac
  5670. else
  5671. lt_cv_deplibs_check_method=pass_all
  5672. fi
  5673. ;;
  5674. haiku*)
  5675. lt_cv_deplibs_check_method=pass_all
  5676. ;;
  5677. hpux10.20* | hpux11*)
  5678. lt_cv_file_magic_cmd=/usr/bin/file
  5679. case $host_cpu in
  5680. ia64*)
  5681. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5682. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5683. ;;
  5684. hppa*64*)
  5685. 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]'
  5686. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5687. ;;
  5688. *)
  5689. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5690. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5691. ;;
  5692. esac
  5693. ;;
  5694. interix[3-9]*)
  5695. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5696. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5697. ;;
  5698. irix5* | irix6* | nonstopux*)
  5699. case $LD in
  5700. *-32|*"-32 ") libmagic=32-bit;;
  5701. *-n32|*"-n32 ") libmagic=N32;;
  5702. *-64|*"-64 ") libmagic=64-bit;;
  5703. *) libmagic=never-match;;
  5704. esac
  5705. lt_cv_deplibs_check_method=pass_all
  5706. ;;
  5707. # This must be glibc/ELF.
  5708. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5709. lt_cv_deplibs_check_method=pass_all
  5710. ;;
  5711. netbsd* | netbsdelf*-gnu)
  5712. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5713. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5714. else
  5715. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5716. fi
  5717. ;;
  5718. newos6*)
  5719. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5720. lt_cv_file_magic_cmd=/usr/bin/file
  5721. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5722. ;;
  5723. *nto* | *qnx*)
  5724. lt_cv_deplibs_check_method=pass_all
  5725. ;;
  5726. openbsd* | bitrig*)
  5727. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5728. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5729. else
  5730. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5731. fi
  5732. ;;
  5733. osf3* | osf4* | osf5*)
  5734. lt_cv_deplibs_check_method=pass_all
  5735. ;;
  5736. rdos*)
  5737. lt_cv_deplibs_check_method=pass_all
  5738. ;;
  5739. solaris*)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5743. lt_cv_deplibs_check_method=pass_all
  5744. ;;
  5745. sysv4 | sysv4.3*)
  5746. case $host_vendor in
  5747. motorola)
  5748. 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]'
  5749. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5750. ;;
  5751. ncr)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. sequent)
  5755. lt_cv_file_magic_cmd='/bin/file'
  5756. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5757. ;;
  5758. sni)
  5759. lt_cv_file_magic_cmd='/bin/file'
  5760. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5761. lt_cv_file_magic_test_file=/lib/libc.so
  5762. ;;
  5763. siemens)
  5764. lt_cv_deplibs_check_method=pass_all
  5765. ;;
  5766. pc)
  5767. lt_cv_deplibs_check_method=pass_all
  5768. ;;
  5769. esac
  5770. ;;
  5771. tpf*)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. os2*)
  5775. lt_cv_deplibs_check_method=pass_all
  5776. ;;
  5777. esac
  5778. fi
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5780. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5781. file_magic_glob=
  5782. want_nocaseglob=no
  5783. if test "$build" = "$host"; then
  5784. case $host_os in
  5785. mingw* | pw32*)
  5786. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5787. want_nocaseglob=yes
  5788. else
  5789. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5790. fi
  5791. ;;
  5792. esac
  5793. fi
  5794. file_magic_cmd=$lt_cv_file_magic_cmd
  5795. deplibs_check_method=$lt_cv_deplibs_check_method
  5796. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5797. if test -n "$ac_tool_prefix"; then
  5798. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5799. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5801. $as_echo_n "checking for $ac_word... " >&6; }
  5802. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5803. $as_echo_n "(cached) " >&6
  5804. else
  5805. if test -n "$DLLTOOL"; then
  5806. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5807. else
  5808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5809. for as_dir in $PATH
  5810. do
  5811. IFS=$as_save_IFS
  5812. test -z "$as_dir" && as_dir=.
  5813. for ac_exec_ext in '' $ac_executable_extensions; do
  5814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5815. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5817. break 2
  5818. fi
  5819. done
  5820. done
  5821. IFS=$as_save_IFS
  5822. fi
  5823. fi
  5824. DLLTOOL=$ac_cv_prog_DLLTOOL
  5825. if test -n "$DLLTOOL"; then
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5827. $as_echo "$DLLTOOL" >&6; }
  5828. else
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5830. $as_echo "no" >&6; }
  5831. fi
  5832. fi
  5833. if test -z "$ac_cv_prog_DLLTOOL"; then
  5834. ac_ct_DLLTOOL=$DLLTOOL
  5835. # Extract the first word of "dlltool", so it can be a program name with args.
  5836. set dummy dlltool; ac_word=$2
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5838. $as_echo_n "checking for $ac_word... " >&6; }
  5839. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. if test -n "$ac_ct_DLLTOOL"; then
  5843. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. test -z "$as_dir" && as_dir=.
  5850. for ac_exec_ext in '' $ac_executable_extensions; do
  5851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5852. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5854. break 2
  5855. fi
  5856. done
  5857. done
  5858. IFS=$as_save_IFS
  5859. fi
  5860. fi
  5861. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5862. if test -n "$ac_ct_DLLTOOL"; then
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5864. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5865. else
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. $as_echo "no" >&6; }
  5868. fi
  5869. if test "x$ac_ct_DLLTOOL" = x; then
  5870. DLLTOOL="false"
  5871. else
  5872. case $cross_compiling:$ac_tool_warned in
  5873. yes:)
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5875. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5876. ac_tool_warned=yes ;;
  5877. esac
  5878. DLLTOOL=$ac_ct_DLLTOOL
  5879. fi
  5880. else
  5881. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5882. fi
  5883. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5885. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5886. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5890. case $host_os in
  5891. cygwin* | mingw* | pw32* | cegcc*)
  5892. # two different shell functions defined in ltmain.sh;
  5893. # decide which one to use based on capabilities of $DLLTOOL
  5894. case `$DLLTOOL --help 2>&1` in
  5895. *--identify-strict*)
  5896. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5897. ;;
  5898. *)
  5899. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5900. ;;
  5901. esac
  5902. ;;
  5903. *)
  5904. # fallback: assume linklib IS sharedlib
  5905. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5906. ;;
  5907. esac
  5908. fi
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5910. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5911. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5912. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5913. if test -n "$ac_tool_prefix"; then
  5914. for ac_prog in ar
  5915. do
  5916. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5917. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5919. $as_echo_n "checking for $ac_word... " >&6; }
  5920. if ${ac_cv_prog_AR+:} false; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. if test -n "$AR"; then
  5924. ac_cv_prog_AR="$AR" # Let the user override the test.
  5925. else
  5926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5927. for as_dir in $PATH
  5928. do
  5929. IFS=$as_save_IFS
  5930. test -z "$as_dir" && as_dir=.
  5931. for ac_exec_ext in '' $ac_executable_extensions; do
  5932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5933. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5935. break 2
  5936. fi
  5937. done
  5938. done
  5939. IFS=$as_save_IFS
  5940. fi
  5941. fi
  5942. AR=$ac_cv_prog_AR
  5943. if test -n "$AR"; then
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5945. $as_echo "$AR" >&6; }
  5946. else
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5948. $as_echo "no" >&6; }
  5949. fi
  5950. test -n "$AR" && break
  5951. done
  5952. fi
  5953. if test -z "$AR"; then
  5954. ac_ct_AR=$AR
  5955. for ac_prog in ar
  5956. do
  5957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5958. set dummy $ac_prog; ac_word=$2
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5960. $as_echo_n "checking for $ac_word... " >&6; }
  5961. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5962. $as_echo_n "(cached) " >&6
  5963. else
  5964. if test -n "$ac_ct_AR"; then
  5965. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5966. else
  5967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5968. for as_dir in $PATH
  5969. do
  5970. IFS=$as_save_IFS
  5971. test -z "$as_dir" && as_dir=.
  5972. for ac_exec_ext in '' $ac_executable_extensions; do
  5973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5974. ac_cv_prog_ac_ct_AR="$ac_prog"
  5975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5976. break 2
  5977. fi
  5978. done
  5979. done
  5980. IFS=$as_save_IFS
  5981. fi
  5982. fi
  5983. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5984. if test -n "$ac_ct_AR"; then
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5986. $as_echo "$ac_ct_AR" >&6; }
  5987. else
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5989. $as_echo "no" >&6; }
  5990. fi
  5991. test -n "$ac_ct_AR" && break
  5992. done
  5993. if test "x$ac_ct_AR" = x; then
  5994. AR="false"
  5995. else
  5996. case $cross_compiling:$ac_tool_warned in
  5997. yes:)
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6000. ac_tool_warned=yes ;;
  6001. esac
  6002. AR=$ac_ct_AR
  6003. fi
  6004. fi
  6005. : ${AR=ar}
  6006. : ${AR_FLAGS=cru}
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6008. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6009. if ${lt_cv_ar_at_file+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. lt_cv_ar_at_file=no
  6013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6014. /* end confdefs.h. */
  6015. int
  6016. main ()
  6017. {
  6018. ;
  6019. return 0;
  6020. }
  6021. _ACEOF
  6022. if ac_fn_c_try_compile "$LINENO"; then :
  6023. echo conftest.$ac_objext > conftest.lst
  6024. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6025. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6026. (eval $lt_ar_try) 2>&5
  6027. ac_status=$?
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6029. test $ac_status = 0; }
  6030. if test 0 -eq "$ac_status"; then
  6031. # Ensure the archiver fails upon bogus file names.
  6032. rm -f conftest.$ac_objext libconftest.a
  6033. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6034. (eval $lt_ar_try) 2>&5
  6035. ac_status=$?
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6037. test $ac_status = 0; }
  6038. if test 0 -ne "$ac_status"; then
  6039. lt_cv_ar_at_file=@
  6040. fi
  6041. fi
  6042. rm -f conftest.* libconftest.a
  6043. fi
  6044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6045. fi
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6047. $as_echo "$lt_cv_ar_at_file" >&6; }
  6048. if test no = "$lt_cv_ar_at_file"; then
  6049. archiver_list_spec=
  6050. else
  6051. archiver_list_spec=$lt_cv_ar_at_file
  6052. fi
  6053. if test -n "$ac_tool_prefix"; then
  6054. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6055. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if ${ac_cv_prog_STRIP+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. if test -n "$STRIP"; then
  6062. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6063. else
  6064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6065. for as_dir in $PATH
  6066. do
  6067. IFS=$as_save_IFS
  6068. test -z "$as_dir" && as_dir=.
  6069. for ac_exec_ext in '' $ac_executable_extensions; do
  6070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6071. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6073. break 2
  6074. fi
  6075. done
  6076. done
  6077. IFS=$as_save_IFS
  6078. fi
  6079. fi
  6080. STRIP=$ac_cv_prog_STRIP
  6081. if test -n "$STRIP"; then
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6083. $as_echo "$STRIP" >&6; }
  6084. else
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6086. $as_echo "no" >&6; }
  6087. fi
  6088. fi
  6089. if test -z "$ac_cv_prog_STRIP"; then
  6090. ac_ct_STRIP=$STRIP
  6091. # Extract the first word of "strip", so it can be a program name with args.
  6092. set dummy strip; ac_word=$2
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6094. $as_echo_n "checking for $ac_word... " >&6; }
  6095. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6096. $as_echo_n "(cached) " >&6
  6097. else
  6098. if test -n "$ac_ct_STRIP"; then
  6099. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6100. else
  6101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6102. for as_dir in $PATH
  6103. do
  6104. IFS=$as_save_IFS
  6105. test -z "$as_dir" && as_dir=.
  6106. for ac_exec_ext in '' $ac_executable_extensions; do
  6107. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6108. ac_cv_prog_ac_ct_STRIP="strip"
  6109. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6110. break 2
  6111. fi
  6112. done
  6113. done
  6114. IFS=$as_save_IFS
  6115. fi
  6116. fi
  6117. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6118. if test -n "$ac_ct_STRIP"; then
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6120. $as_echo "$ac_ct_STRIP" >&6; }
  6121. else
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6123. $as_echo "no" >&6; }
  6124. fi
  6125. if test "x$ac_ct_STRIP" = x; then
  6126. STRIP=":"
  6127. else
  6128. case $cross_compiling:$ac_tool_warned in
  6129. yes:)
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6131. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6132. ac_tool_warned=yes ;;
  6133. esac
  6134. STRIP=$ac_ct_STRIP
  6135. fi
  6136. else
  6137. STRIP="$ac_cv_prog_STRIP"
  6138. fi
  6139. test -z "$STRIP" && STRIP=:
  6140. if test -n "$ac_tool_prefix"; then
  6141. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6142. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6144. $as_echo_n "checking for $ac_word... " >&6; }
  6145. if ${ac_cv_prog_RANLIB+:} false; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. if test -n "$RANLIB"; then
  6149. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6150. else
  6151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6152. for as_dir in $PATH
  6153. do
  6154. IFS=$as_save_IFS
  6155. test -z "$as_dir" && as_dir=.
  6156. for ac_exec_ext in '' $ac_executable_extensions; do
  6157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6158. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6160. break 2
  6161. fi
  6162. done
  6163. done
  6164. IFS=$as_save_IFS
  6165. fi
  6166. fi
  6167. RANLIB=$ac_cv_prog_RANLIB
  6168. if test -n "$RANLIB"; then
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6170. $as_echo "$RANLIB" >&6; }
  6171. else
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6173. $as_echo "no" >&6; }
  6174. fi
  6175. fi
  6176. if test -z "$ac_cv_prog_RANLIB"; then
  6177. ac_ct_RANLIB=$RANLIB
  6178. # Extract the first word of "ranlib", so it can be a program name with args.
  6179. set dummy ranlib; ac_word=$2
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6181. $as_echo_n "checking for $ac_word... " >&6; }
  6182. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. if test -n "$ac_ct_RANLIB"; then
  6186. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6187. else
  6188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6189. for as_dir in $PATH
  6190. do
  6191. IFS=$as_save_IFS
  6192. test -z "$as_dir" && as_dir=.
  6193. for ac_exec_ext in '' $ac_executable_extensions; do
  6194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6195. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6197. break 2
  6198. fi
  6199. done
  6200. done
  6201. IFS=$as_save_IFS
  6202. fi
  6203. fi
  6204. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6205. if test -n "$ac_ct_RANLIB"; then
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6207. $as_echo "$ac_ct_RANLIB" >&6; }
  6208. else
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6210. $as_echo "no" >&6; }
  6211. fi
  6212. if test "x$ac_ct_RANLIB" = x; then
  6213. RANLIB=":"
  6214. else
  6215. case $cross_compiling:$ac_tool_warned in
  6216. yes:)
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6219. ac_tool_warned=yes ;;
  6220. esac
  6221. RANLIB=$ac_ct_RANLIB
  6222. fi
  6223. else
  6224. RANLIB="$ac_cv_prog_RANLIB"
  6225. fi
  6226. test -z "$RANLIB" && RANLIB=:
  6227. # Determine commands to create old-style static archives.
  6228. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6229. old_postinstall_cmds='chmod 644 $oldlib'
  6230. old_postuninstall_cmds=
  6231. if test -n "$RANLIB"; then
  6232. case $host_os in
  6233. bitrig* | openbsd*)
  6234. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6235. ;;
  6236. *)
  6237. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6238. ;;
  6239. esac
  6240. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6241. fi
  6242. case $host_os in
  6243. darwin*)
  6244. lock_old_archive_extraction=yes ;;
  6245. *)
  6246. lock_old_archive_extraction=no ;;
  6247. esac
  6248. # If no C compiler was specified, use CC.
  6249. LTCC=${LTCC-"$CC"}
  6250. # If no C compiler flags were specified, use CFLAGS.
  6251. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6252. # Allow CC to be a program name with arguments.
  6253. compiler=$CC
  6254. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6256. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6257. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6258. $as_echo_n "(cached) " >&6
  6259. else
  6260. # These are sane defaults that work on at least a few old systems.
  6261. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6262. # Character class describing NM global symbol codes.
  6263. symcode='[BCDEGRST]'
  6264. # Regexp to match symbols that can be accessed directly from C.
  6265. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6266. # Define system-specific variables.
  6267. case $host_os in
  6268. aix*)
  6269. symcode='[BCDT]'
  6270. ;;
  6271. cygwin* | mingw* | pw32* | cegcc*)
  6272. symcode='[ABCDGISTW]'
  6273. ;;
  6274. hpux*)
  6275. if test ia64 = "$host_cpu"; then
  6276. symcode='[ABCDEGRST]'
  6277. fi
  6278. ;;
  6279. irix* | nonstopux*)
  6280. symcode='[BCDEGRST]'
  6281. ;;
  6282. osf*)
  6283. symcode='[BCDEGQRST]'
  6284. ;;
  6285. solaris*)
  6286. symcode='[BDRT]'
  6287. ;;
  6288. sco3.2v5*)
  6289. symcode='[DT]'
  6290. ;;
  6291. sysv4.2uw2*)
  6292. symcode='[DT]'
  6293. ;;
  6294. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6295. symcode='[ABDT]'
  6296. ;;
  6297. sysv4)
  6298. symcode='[DFNSTU]'
  6299. ;;
  6300. esac
  6301. # If we're using GNU nm, then use its standard symbol codes.
  6302. case `$NM -V 2>&1` in
  6303. *GNU* | *'with BFD'*)
  6304. symcode='[ABCDGIRSTW]' ;;
  6305. esac
  6306. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6307. # Gets list of data symbols to import.
  6308. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6309. # Adjust the below global symbol transforms to fixup imported variables.
  6310. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6311. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6312. lt_c_name_lib_hook="\
  6313. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6314. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6315. else
  6316. # Disable hooks by default.
  6317. lt_cv_sys_global_symbol_to_import=
  6318. lt_cdecl_hook=
  6319. lt_c_name_hook=
  6320. lt_c_name_lib_hook=
  6321. fi
  6322. # Transform an extracted symbol line into a proper C declaration.
  6323. # Some systems (esp. on ia64) link data and code symbols differently,
  6324. # so use this general approach.
  6325. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6326. $lt_cdecl_hook\
  6327. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6328. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6329. # Transform an extracted symbol line into symbol name and symbol address
  6330. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6331. $lt_c_name_hook\
  6332. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6333. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6334. # Transform an extracted symbol line into symbol name with lib prefix and
  6335. # symbol address.
  6336. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6337. $lt_c_name_lib_hook\
  6338. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6339. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6340. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6341. # Handle CRLF in mingw tool chain
  6342. opt_cr=
  6343. case $build_os in
  6344. mingw*)
  6345. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6346. ;;
  6347. esac
  6348. # Try without a prefix underscore, then with it.
  6349. for ac_symprfx in "" "_"; do
  6350. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6351. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6352. # Write the raw and C identifiers.
  6353. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6354. # Fake it for dumpbin and say T for any non-static function,
  6355. # D for any global variable and I for any imported variable.
  6356. # Also find C++ and __fastcall symbols from MSVC++,
  6357. # which start with @ or ?.
  6358. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6359. " {last_section=section; section=\$ 3};"\
  6360. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6361. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6362. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6363. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6364. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6365. " \$ 0!~/External *\|/{next};"\
  6366. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6367. " {if(hide[section]) next};"\
  6368. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6369. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6370. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6371. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6372. " ' prfx=^$ac_symprfx"
  6373. else
  6374. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6375. fi
  6376. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6377. # Check to see that the pipe works correctly.
  6378. pipe_works=no
  6379. rm -f conftest*
  6380. cat > conftest.$ac_ext <<_LT_EOF
  6381. #ifdef __cplusplus
  6382. extern "C" {
  6383. #endif
  6384. char nm_test_var;
  6385. void nm_test_func(void);
  6386. void nm_test_func(void){}
  6387. #ifdef __cplusplus
  6388. }
  6389. #endif
  6390. int main(){nm_test_var='a';nm_test_func();return(0);}
  6391. _LT_EOF
  6392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6393. (eval $ac_compile) 2>&5
  6394. ac_status=$?
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6396. test $ac_status = 0; }; then
  6397. # Now try to grab the symbols.
  6398. nlist=conftest.nm
  6399. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6400. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && 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. if test -n "$compiler"; then
  8153. lt_prog_compiler_no_builtin_flag=
  8154. if test yes = "$GCC"; then
  8155. case $cc_basename in
  8156. nvcc*)
  8157. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8158. *)
  8159. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8160. esac
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8162. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8163. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8164. $as_echo_n "(cached) " >&6
  8165. else
  8166. lt_cv_prog_compiler_rtti_exceptions=no
  8167. ac_outfile=conftest.$ac_objext
  8168. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8169. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8170. # Insert the option either (1) after the last *FLAGS variable, or
  8171. # (2) before a word containing "conftest.", or (3) at the end.
  8172. # Note that $ac_compile itself does not contain backslashes and begins
  8173. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8174. # The option is referenced via a variable to avoid confusing sed.
  8175. lt_compile=`echo "$ac_compile" | $SED \
  8176. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8177. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8178. -e 's:$: $lt_compiler_flag:'`
  8179. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8180. (eval "$lt_compile" 2>conftest.err)
  8181. ac_status=$?
  8182. cat conftest.err >&5
  8183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8184. if (exit $ac_status) && test -s "$ac_outfile"; then
  8185. # The compiler can only warn and ignore the option if not recognized
  8186. # So say no if there are warnings other than the usual output.
  8187. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8189. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8190. lt_cv_prog_compiler_rtti_exceptions=yes
  8191. fi
  8192. fi
  8193. $RM conftest*
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8196. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8197. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8198. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8199. else
  8200. :
  8201. fi
  8202. fi
  8203. lt_prog_compiler_wl=
  8204. lt_prog_compiler_pic=
  8205. lt_prog_compiler_static=
  8206. if test yes = "$GCC"; then
  8207. lt_prog_compiler_wl='-Wl,'
  8208. lt_prog_compiler_static='-static'
  8209. case $host_os in
  8210. aix*)
  8211. # All AIX code is PIC.
  8212. if test ia64 = "$host_cpu"; then
  8213. # AIX 5 now supports IA64 processor
  8214. lt_prog_compiler_static='-Bstatic'
  8215. fi
  8216. lt_prog_compiler_pic='-fPIC'
  8217. ;;
  8218. amigaos*)
  8219. case $host_cpu in
  8220. powerpc)
  8221. # see comment about AmigaOS4 .so support
  8222. lt_prog_compiler_pic='-fPIC'
  8223. ;;
  8224. m68k)
  8225. # FIXME: we need at least 68020 code to build shared libraries, but
  8226. # adding the '-m68020' flag to GCC prevents building anything better,
  8227. # like '-m68040'.
  8228. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8229. ;;
  8230. esac
  8231. ;;
  8232. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8233. # PIC is the default for these OSes.
  8234. ;;
  8235. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8236. # This hack is so that the source file can tell whether it is being
  8237. # built for inclusion in a dll (and should export symbols for example).
  8238. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8239. # (--disable-auto-import) libraries
  8240. lt_prog_compiler_pic='-DDLL_EXPORT'
  8241. case $host_os in
  8242. os2*)
  8243. lt_prog_compiler_static='$wl-static'
  8244. ;;
  8245. esac
  8246. ;;
  8247. darwin* | rhapsody*)
  8248. # PIC is the default on this platform
  8249. # Common symbols not allowed in MH_DYLIB files
  8250. lt_prog_compiler_pic='-fno-common'
  8251. ;;
  8252. haiku*)
  8253. # PIC is the default for Haiku.
  8254. # The "-static" flag exists, but is broken.
  8255. lt_prog_compiler_static=
  8256. ;;
  8257. hpux*)
  8258. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8259. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8260. # sets the default TLS model and affects inlining.
  8261. case $host_cpu in
  8262. hppa*64*)
  8263. # +Z the default
  8264. ;;
  8265. *)
  8266. lt_prog_compiler_pic='-fPIC'
  8267. ;;
  8268. esac
  8269. ;;
  8270. interix[3-9]*)
  8271. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8272. # Instead, we relocate shared libraries at runtime.
  8273. ;;
  8274. msdosdjgpp*)
  8275. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8276. # on systems that don't support them.
  8277. lt_prog_compiler_can_build_shared=no
  8278. enable_shared=no
  8279. ;;
  8280. *nto* | *qnx*)
  8281. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8282. # it will coredump.
  8283. lt_prog_compiler_pic='-fPIC -shared'
  8284. ;;
  8285. sysv4*MP*)
  8286. if test -d /usr/nec; then
  8287. lt_prog_compiler_pic=-Kconform_pic
  8288. fi
  8289. ;;
  8290. *)
  8291. lt_prog_compiler_pic='-fPIC'
  8292. ;;
  8293. esac
  8294. case $cc_basename in
  8295. nvcc*) # Cuda Compiler Driver 2.2
  8296. lt_prog_compiler_wl='-Xlinker '
  8297. if test -n "$lt_prog_compiler_pic"; then
  8298. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8299. fi
  8300. ;;
  8301. esac
  8302. else
  8303. # PORTME Check for flag to pass linker flags through the system compiler.
  8304. case $host_os in
  8305. aix*)
  8306. lt_prog_compiler_wl='-Wl,'
  8307. if test ia64 = "$host_cpu"; then
  8308. # AIX 5 now supports IA64 processor
  8309. lt_prog_compiler_static='-Bstatic'
  8310. else
  8311. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8312. fi
  8313. ;;
  8314. darwin* | rhapsody*)
  8315. # PIC is the default on this platform
  8316. # Common symbols not allowed in MH_DYLIB files
  8317. lt_prog_compiler_pic='-fno-common'
  8318. case $cc_basename in
  8319. nagfor*)
  8320. # NAG Fortran compiler
  8321. lt_prog_compiler_wl='-Wl,-Wl,,'
  8322. lt_prog_compiler_pic='-PIC'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. ;;
  8325. esac
  8326. ;;
  8327. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8328. # This hack is so that the source file can tell whether it is being
  8329. # built for inclusion in a dll (and should export symbols for example).
  8330. lt_prog_compiler_pic='-DDLL_EXPORT'
  8331. case $host_os in
  8332. os2*)
  8333. lt_prog_compiler_static='$wl-static'
  8334. ;;
  8335. esac
  8336. ;;
  8337. hpux9* | hpux10* | hpux11*)
  8338. lt_prog_compiler_wl='-Wl,'
  8339. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8340. # not for PA HP-UX.
  8341. case $host_cpu in
  8342. hppa*64*|ia64*)
  8343. # +Z the default
  8344. ;;
  8345. *)
  8346. lt_prog_compiler_pic='+Z'
  8347. ;;
  8348. esac
  8349. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8350. lt_prog_compiler_static='$wl-a ${wl}archive'
  8351. ;;
  8352. irix5* | irix6* | nonstopux*)
  8353. lt_prog_compiler_wl='-Wl,'
  8354. # PIC (with -KPIC) is the default.
  8355. lt_prog_compiler_static='-non_shared'
  8356. ;;
  8357. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8358. case $cc_basename in
  8359. # old Intel for x86_64, which still supported -KPIC.
  8360. ecc*)
  8361. lt_prog_compiler_wl='-Wl,'
  8362. lt_prog_compiler_pic='-KPIC'
  8363. lt_prog_compiler_static='-static'
  8364. ;;
  8365. # icc used to be incompatible with GCC.
  8366. # ICC 10 doesn't accept -KPIC any more.
  8367. icc* | ifort*)
  8368. lt_prog_compiler_wl='-Wl,'
  8369. lt_prog_compiler_pic='-fPIC'
  8370. lt_prog_compiler_static='-static'
  8371. ;;
  8372. # Lahey Fortran 8.1.
  8373. lf95*)
  8374. lt_prog_compiler_wl='-Wl,'
  8375. lt_prog_compiler_pic='--shared'
  8376. lt_prog_compiler_static='--static'
  8377. ;;
  8378. nagfor*)
  8379. # NAG Fortran compiler
  8380. lt_prog_compiler_wl='-Wl,-Wl,,'
  8381. lt_prog_compiler_pic='-PIC'
  8382. lt_prog_compiler_static='-Bstatic'
  8383. ;;
  8384. tcc*)
  8385. # Fabrice Bellard et al's Tiny C Compiler
  8386. lt_prog_compiler_wl='-Wl,'
  8387. lt_prog_compiler_pic='-fPIC'
  8388. lt_prog_compiler_static='-static'
  8389. ;;
  8390. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8391. # Portland Group compilers (*not* the Pentium gcc compiler,
  8392. # which looks to be a dead project)
  8393. lt_prog_compiler_wl='-Wl,'
  8394. lt_prog_compiler_pic='-fpic'
  8395. lt_prog_compiler_static='-Bstatic'
  8396. ;;
  8397. ccc*)
  8398. lt_prog_compiler_wl='-Wl,'
  8399. # All Alpha code is PIC.
  8400. lt_prog_compiler_static='-non_shared'
  8401. ;;
  8402. xl* | bgxl* | bgf* | mpixl*)
  8403. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8404. lt_prog_compiler_wl='-Wl,'
  8405. lt_prog_compiler_pic='-qpic'
  8406. lt_prog_compiler_static='-qstaticlink'
  8407. ;;
  8408. *)
  8409. case `$CC -V 2>&1 | sed 5q` in
  8410. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8411. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8412. lt_prog_compiler_pic='-KPIC'
  8413. lt_prog_compiler_static='-Bstatic'
  8414. lt_prog_compiler_wl=''
  8415. ;;
  8416. *Sun\ F* | *Sun*Fortran*)
  8417. lt_prog_compiler_pic='-KPIC'
  8418. lt_prog_compiler_static='-Bstatic'
  8419. lt_prog_compiler_wl='-Qoption ld '
  8420. ;;
  8421. *Sun\ C*)
  8422. # Sun C 5.9
  8423. lt_prog_compiler_pic='-KPIC'
  8424. lt_prog_compiler_static='-Bstatic'
  8425. lt_prog_compiler_wl='-Wl,'
  8426. ;;
  8427. *Intel*\ [CF]*Compiler*)
  8428. lt_prog_compiler_wl='-Wl,'
  8429. lt_prog_compiler_pic='-fPIC'
  8430. lt_prog_compiler_static='-static'
  8431. ;;
  8432. *Portland\ Group*)
  8433. lt_prog_compiler_wl='-Wl,'
  8434. lt_prog_compiler_pic='-fpic'
  8435. lt_prog_compiler_static='-Bstatic'
  8436. ;;
  8437. esac
  8438. ;;
  8439. esac
  8440. ;;
  8441. newsos6)
  8442. lt_prog_compiler_pic='-KPIC'
  8443. lt_prog_compiler_static='-Bstatic'
  8444. ;;
  8445. *nto* | *qnx*)
  8446. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8447. # it will coredump.
  8448. lt_prog_compiler_pic='-fPIC -shared'
  8449. ;;
  8450. osf3* | osf4* | osf5*)
  8451. lt_prog_compiler_wl='-Wl,'
  8452. # All OSF/1 code is PIC.
  8453. lt_prog_compiler_static='-non_shared'
  8454. ;;
  8455. rdos*)
  8456. lt_prog_compiler_static='-non_shared'
  8457. ;;
  8458. solaris*)
  8459. lt_prog_compiler_pic='-KPIC'
  8460. lt_prog_compiler_static='-Bstatic'
  8461. case $cc_basename in
  8462. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8463. lt_prog_compiler_wl='-Qoption ld ';;
  8464. *)
  8465. lt_prog_compiler_wl='-Wl,';;
  8466. esac
  8467. ;;
  8468. sunos4*)
  8469. lt_prog_compiler_wl='-Qoption ld '
  8470. lt_prog_compiler_pic='-PIC'
  8471. lt_prog_compiler_static='-Bstatic'
  8472. ;;
  8473. sysv4 | sysv4.2uw2* | sysv4.3*)
  8474. lt_prog_compiler_wl='-Wl,'
  8475. lt_prog_compiler_pic='-KPIC'
  8476. lt_prog_compiler_static='-Bstatic'
  8477. ;;
  8478. sysv4*MP*)
  8479. if test -d /usr/nec; then
  8480. lt_prog_compiler_pic='-Kconform_pic'
  8481. lt_prog_compiler_static='-Bstatic'
  8482. fi
  8483. ;;
  8484. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8485. lt_prog_compiler_wl='-Wl,'
  8486. lt_prog_compiler_pic='-KPIC'
  8487. lt_prog_compiler_static='-Bstatic'
  8488. ;;
  8489. unicos*)
  8490. lt_prog_compiler_wl='-Wl,'
  8491. lt_prog_compiler_can_build_shared=no
  8492. ;;
  8493. uts4*)
  8494. lt_prog_compiler_pic='-pic'
  8495. lt_prog_compiler_static='-Bstatic'
  8496. ;;
  8497. *)
  8498. lt_prog_compiler_can_build_shared=no
  8499. ;;
  8500. esac
  8501. fi
  8502. case $host_os in
  8503. # For platforms that do not support PIC, -DPIC is meaningless:
  8504. *djgpp*)
  8505. lt_prog_compiler_pic=
  8506. ;;
  8507. *)
  8508. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8509. ;;
  8510. esac
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8512. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8513. if ${lt_cv_prog_compiler_pic+:} false; then :
  8514. $as_echo_n "(cached) " >&6
  8515. else
  8516. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8517. fi
  8518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8519. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8520. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8521. #
  8522. # Check to make sure the PIC flag actually works.
  8523. #
  8524. if test -n "$lt_prog_compiler_pic"; then
  8525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8526. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8527. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8528. $as_echo_n "(cached) " >&6
  8529. else
  8530. lt_cv_prog_compiler_pic_works=no
  8531. ac_outfile=conftest.$ac_objext
  8532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8533. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8534. # Insert the option either (1) after the last *FLAGS variable, or
  8535. # (2) before a word containing "conftest.", or (3) at the end.
  8536. # Note that $ac_compile itself does not contain backslashes and begins
  8537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8538. # The option is referenced via a variable to avoid confusing sed.
  8539. lt_compile=`echo "$ac_compile" | $SED \
  8540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8542. -e 's:$: $lt_compiler_flag:'`
  8543. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8544. (eval "$lt_compile" 2>conftest.err)
  8545. ac_status=$?
  8546. cat conftest.err >&5
  8547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8548. if (exit $ac_status) && test -s "$ac_outfile"; then
  8549. # The compiler can only warn and ignore the option if not recognized
  8550. # So say no if there are warnings other than the usual output.
  8551. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8552. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8553. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8554. lt_cv_prog_compiler_pic_works=yes
  8555. fi
  8556. fi
  8557. $RM conftest*
  8558. fi
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8560. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8561. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8562. case $lt_prog_compiler_pic in
  8563. "" | " "*) ;;
  8564. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8565. esac
  8566. else
  8567. lt_prog_compiler_pic=
  8568. lt_prog_compiler_can_build_shared=no
  8569. fi
  8570. fi
  8571. #
  8572. # Check to make sure the static flag actually works.
  8573. #
  8574. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8576. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8577. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8578. $as_echo_n "(cached) " >&6
  8579. else
  8580. lt_cv_prog_compiler_static_works=no
  8581. save_LDFLAGS=$LDFLAGS
  8582. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8583. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8584. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8585. # The linker can only warn and ignore the option if not recognized
  8586. # So say no if there are warnings
  8587. if test -s conftest.err; then
  8588. # Append any errors to the config.log.
  8589. cat conftest.err 1>&5
  8590. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8591. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8592. if diff conftest.exp conftest.er2 >/dev/null; then
  8593. lt_cv_prog_compiler_static_works=yes
  8594. fi
  8595. else
  8596. lt_cv_prog_compiler_static_works=yes
  8597. fi
  8598. fi
  8599. $RM -r conftest*
  8600. LDFLAGS=$save_LDFLAGS
  8601. fi
  8602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8603. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8604. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8605. :
  8606. else
  8607. lt_prog_compiler_static=
  8608. fi
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8610. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8611. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8612. $as_echo_n "(cached) " >&6
  8613. else
  8614. lt_cv_prog_compiler_c_o=no
  8615. $RM -r conftest 2>/dev/null
  8616. mkdir conftest
  8617. cd conftest
  8618. mkdir out
  8619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8620. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8621. # Insert the option either (1) after the last *FLAGS variable, or
  8622. # (2) before a word containing "conftest.", or (3) at the end.
  8623. # Note that $ac_compile itself does not contain backslashes and begins
  8624. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8625. lt_compile=`echo "$ac_compile" | $SED \
  8626. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8627. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8628. -e 's:$: $lt_compiler_flag:'`
  8629. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8630. (eval "$lt_compile" 2>out/conftest.err)
  8631. ac_status=$?
  8632. cat out/conftest.err >&5
  8633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8634. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8635. then
  8636. # The compiler can only warn and ignore the option if not recognized
  8637. # So say no if there are warnings
  8638. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8639. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8640. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8641. lt_cv_prog_compiler_c_o=yes
  8642. fi
  8643. fi
  8644. chmod u+w . 2>&5
  8645. $RM conftest*
  8646. # SGI C++ compiler will create directory out/ii_files/ for
  8647. # template instantiation
  8648. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8649. $RM out/* && rmdir out
  8650. cd ..
  8651. $RM -r conftest
  8652. $RM conftest*
  8653. fi
  8654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8655. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8657. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8658. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8659. $as_echo_n "(cached) " >&6
  8660. else
  8661. lt_cv_prog_compiler_c_o=no
  8662. $RM -r conftest 2>/dev/null
  8663. mkdir conftest
  8664. cd conftest
  8665. mkdir out
  8666. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8667. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8668. # Insert the option either (1) after the last *FLAGS variable, or
  8669. # (2) before a word containing "conftest.", or (3) at the end.
  8670. # Note that $ac_compile itself does not contain backslashes and begins
  8671. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8672. lt_compile=`echo "$ac_compile" | $SED \
  8673. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8674. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8675. -e 's:$: $lt_compiler_flag:'`
  8676. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8677. (eval "$lt_compile" 2>out/conftest.err)
  8678. ac_status=$?
  8679. cat out/conftest.err >&5
  8680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8681. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8682. then
  8683. # The compiler can only warn and ignore the option if not recognized
  8684. # So say no if there are warnings
  8685. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8686. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8687. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8688. lt_cv_prog_compiler_c_o=yes
  8689. fi
  8690. fi
  8691. chmod u+w . 2>&5
  8692. $RM conftest*
  8693. # SGI C++ compiler will create directory out/ii_files/ for
  8694. # template instantiation
  8695. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8696. $RM out/* && rmdir out
  8697. cd ..
  8698. $RM -r conftest
  8699. $RM conftest*
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8702. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8703. hard_links=nottested
  8704. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8705. # do not overwrite the value of need_locks provided by the user
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8707. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8708. hard_links=yes
  8709. $RM conftest*
  8710. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8711. touch conftest.a
  8712. ln conftest.a conftest.b 2>&5 || hard_links=no
  8713. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8715. $as_echo "$hard_links" >&6; }
  8716. if test no = "$hard_links"; then
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8718. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8719. need_locks=warn
  8720. fi
  8721. else
  8722. need_locks=no
  8723. fi
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8725. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8726. runpath_var=
  8727. allow_undefined_flag=
  8728. always_export_symbols=no
  8729. archive_cmds=
  8730. archive_expsym_cmds=
  8731. compiler_needs_object=no
  8732. enable_shared_with_static_runtimes=no
  8733. export_dynamic_flag_spec=
  8734. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8735. hardcode_automatic=no
  8736. hardcode_direct=no
  8737. hardcode_direct_absolute=no
  8738. hardcode_libdir_flag_spec=
  8739. hardcode_libdir_separator=
  8740. hardcode_minus_L=no
  8741. hardcode_shlibpath_var=unsupported
  8742. inherit_rpath=no
  8743. link_all_deplibs=unknown
  8744. module_cmds=
  8745. module_expsym_cmds=
  8746. old_archive_from_new_cmds=
  8747. old_archive_from_expsyms_cmds=
  8748. thread_safe_flag_spec=
  8749. whole_archive_flag_spec=
  8750. # include_expsyms should be a list of space-separated symbols to be *always*
  8751. # included in the symbol list
  8752. include_expsyms=
  8753. # exclude_expsyms can be an extended regexp of symbols to exclude
  8754. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8755. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8756. # as well as any symbol that contains 'd'.
  8757. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8758. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8759. # platforms (ab)use it in PIC code, but their linkers get confused if
  8760. # the symbol is explicitly referenced. Since portable code cannot
  8761. # rely on this symbol name, it's probably fine to never include it in
  8762. # preloaded symbol tables.
  8763. # Exclude shared library initialization/finalization symbols.
  8764. extract_expsyms_cmds=
  8765. case $host_os in
  8766. cygwin* | mingw* | pw32* | cegcc*)
  8767. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8768. # When not using gcc, we currently assume that we are using
  8769. # Microsoft Visual C++.
  8770. if test yes != "$GCC"; then
  8771. with_gnu_ld=no
  8772. fi
  8773. ;;
  8774. interix*)
  8775. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8776. with_gnu_ld=yes
  8777. ;;
  8778. openbsd* | bitrig*)
  8779. with_gnu_ld=no
  8780. ;;
  8781. linux* | k*bsd*-gnu | gnu*)
  8782. link_all_deplibs=no
  8783. ;;
  8784. esac
  8785. ld_shlibs=yes
  8786. # On some targets, GNU ld is compatible enough with the native linker
  8787. # that we're better off using the native interface for both.
  8788. lt_use_gnu_ld_interface=no
  8789. if test yes = "$with_gnu_ld"; then
  8790. case $host_os in
  8791. aix*)
  8792. # The AIX port of GNU ld has always aspired to compatibility
  8793. # with the native linker. However, as the warning in the GNU ld
  8794. # block says, versions before 2.19.5* couldn't really create working
  8795. # shared libraries, regardless of the interface used.
  8796. case `$LD -v 2>&1` in
  8797. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8798. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8799. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8800. *)
  8801. lt_use_gnu_ld_interface=yes
  8802. ;;
  8803. esac
  8804. ;;
  8805. *)
  8806. lt_use_gnu_ld_interface=yes
  8807. ;;
  8808. esac
  8809. fi
  8810. if test yes = "$lt_use_gnu_ld_interface"; then
  8811. # If archive_cmds runs LD, not CC, wlarc should be empty
  8812. wlarc='$wl'
  8813. # Set some defaults for GNU ld with shared library support. These
  8814. # are reset later if shared libraries are not supported. Putting them
  8815. # here allows them to be overridden if necessary.
  8816. runpath_var=LD_RUN_PATH
  8817. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8818. export_dynamic_flag_spec='$wl--export-dynamic'
  8819. # ancient GNU ld didn't support --whole-archive et. al.
  8820. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8821. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8822. else
  8823. whole_archive_flag_spec=
  8824. fi
  8825. supports_anon_versioning=no
  8826. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8827. *GNU\ gold*) supports_anon_versioning=yes ;;
  8828. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8829. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8830. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8831. *\ 2.11.*) ;; # other 2.11 versions
  8832. *) supports_anon_versioning=yes ;;
  8833. esac
  8834. # See if GNU ld supports shared libraries.
  8835. case $host_os in
  8836. aix[3-9]*)
  8837. # On AIX/PPC, the GNU linker is very broken
  8838. if test ia64 != "$host_cpu"; then
  8839. ld_shlibs=no
  8840. cat <<_LT_EOF 1>&2
  8841. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8842. *** to be unable to reliably create shared libraries on AIX.
  8843. *** Therefore, libtool is disabling shared libraries support. If you
  8844. *** really care for shared libraries, you may want to install binutils
  8845. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8846. *** You will then need to restart the configuration process.
  8847. _LT_EOF
  8848. fi
  8849. ;;
  8850. amigaos*)
  8851. case $host_cpu in
  8852. powerpc)
  8853. # see comment about AmigaOS4 .so support
  8854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8855. archive_expsym_cmds=''
  8856. ;;
  8857. m68k)
  8858. 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)'
  8859. hardcode_libdir_flag_spec='-L$libdir'
  8860. hardcode_minus_L=yes
  8861. ;;
  8862. esac
  8863. ;;
  8864. beos*)
  8865. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8866. allow_undefined_flag=unsupported
  8867. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8868. # support --undefined. This deserves some investigation. FIXME
  8869. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8870. else
  8871. ld_shlibs=no
  8872. fi
  8873. ;;
  8874. cygwin* | mingw* | pw32* | cegcc*)
  8875. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8876. # as there is no search path for DLLs.
  8877. hardcode_libdir_flag_spec='-L$libdir'
  8878. export_dynamic_flag_spec='$wl--export-all-symbols'
  8879. allow_undefined_flag=unsupported
  8880. always_export_symbols=no
  8881. enable_shared_with_static_runtimes=yes
  8882. 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'
  8883. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8884. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8885. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8886. # If the export-symbols file already is a .def file, use it as
  8887. # is; otherwise, prepend EXPORTS...
  8888. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8889. cp $export_symbols $output_objdir/$soname.def;
  8890. else
  8891. echo EXPORTS > $output_objdir/$soname.def;
  8892. cat $export_symbols >> $output_objdir/$soname.def;
  8893. fi~
  8894. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8895. else
  8896. ld_shlibs=no
  8897. fi
  8898. ;;
  8899. haiku*)
  8900. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8901. link_all_deplibs=yes
  8902. ;;
  8903. os2*)
  8904. hardcode_libdir_flag_spec='-L$libdir'
  8905. hardcode_minus_L=yes
  8906. allow_undefined_flag=unsupported
  8907. shrext_cmds=.dll
  8908. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8909. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8910. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8911. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8912. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8913. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8914. emximp -o $lib $output_objdir/$libname.def'
  8915. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8916. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8917. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8918. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8919. prefix_cmds="$SED"~
  8920. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8921. prefix_cmds="$prefix_cmds -e 1d";
  8922. fi~
  8923. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8924. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8925. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8926. emximp -o $lib $output_objdir/$libname.def'
  8927. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8928. enable_shared_with_static_runtimes=yes
  8929. ;;
  8930. interix[3-9]*)
  8931. hardcode_direct=no
  8932. hardcode_shlibpath_var=no
  8933. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8934. export_dynamic_flag_spec='$wl-E'
  8935. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8936. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8937. # default) and relocated if they conflict, which is a slow very memory
  8938. # consuming and fragmenting process. To avoid this, we pick a random,
  8939. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8940. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8941. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8942. 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'
  8943. ;;
  8944. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8945. tmp_diet=no
  8946. if test linux-dietlibc = "$host_os"; then
  8947. case $cc_basename in
  8948. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8949. esac
  8950. fi
  8951. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8952. && test no = "$tmp_diet"
  8953. then
  8954. tmp_addflag=' $pic_flag'
  8955. tmp_sharedflag='-shared'
  8956. case $cc_basename,$host_cpu in
  8957. pgcc*) # Portland Group C compiler
  8958. 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'
  8959. tmp_addflag=' $pic_flag'
  8960. ;;
  8961. pgf77* | pgf90* | pgf95* | pgfortran*)
  8962. # Portland Group f77 and f90 compilers
  8963. 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'
  8964. tmp_addflag=' $pic_flag -Mnomain' ;;
  8965. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8966. tmp_addflag=' -i_dynamic' ;;
  8967. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8968. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8969. ifc* | ifort*) # Intel Fortran compiler
  8970. tmp_addflag=' -nofor_main' ;;
  8971. lf95*) # Lahey Fortran 8.1
  8972. whole_archive_flag_spec=
  8973. tmp_sharedflag='--shared' ;;
  8974. nagfor*) # NAGFOR 5.3
  8975. tmp_sharedflag='-Wl,-shared' ;;
  8976. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8977. tmp_sharedflag='-qmkshrobj'
  8978. tmp_addflag= ;;
  8979. nvcc*) # Cuda Compiler Driver 2.2
  8980. 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'
  8981. compiler_needs_object=yes
  8982. ;;
  8983. esac
  8984. case `$CC -V 2>&1 | sed 5q` in
  8985. *Sun\ C*) # Sun C 5.9
  8986. 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'
  8987. compiler_needs_object=yes
  8988. tmp_sharedflag='-G' ;;
  8989. *Sun\ F*) # Sun Fortran 8.3
  8990. tmp_sharedflag='-G' ;;
  8991. esac
  8992. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8993. if test yes = "$supports_anon_versioning"; then
  8994. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8995. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8996. echo "local: *; };" >> $output_objdir/$libname.ver~
  8997. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8998. fi
  8999. case $cc_basename in
  9000. tcc*)
  9001. export_dynamic_flag_spec='-rdynamic'
  9002. ;;
  9003. xlf* | bgf* | bgxlf* | mpixlf*)
  9004. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9005. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9006. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9007. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9008. if test yes = "$supports_anon_versioning"; then
  9009. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9010. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9011. echo "local: *; };" >> $output_objdir/$libname.ver~
  9012. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9013. fi
  9014. ;;
  9015. esac
  9016. else
  9017. ld_shlibs=no
  9018. fi
  9019. ;;
  9020. netbsd* | netbsdelf*-gnu)
  9021. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9022. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9023. wlarc=
  9024. else
  9025. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9026. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9027. fi
  9028. ;;
  9029. solaris*)
  9030. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9031. ld_shlibs=no
  9032. cat <<_LT_EOF 1>&2
  9033. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9034. *** create shared libraries on Solaris systems. Therefore, libtool
  9035. *** is disabling shared libraries support. We urge you to upgrade GNU
  9036. *** binutils to release 2.9.1 or newer. Another option is to modify
  9037. *** your PATH or compiler configuration so that the native linker is
  9038. *** used, and then restart.
  9039. _LT_EOF
  9040. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9041. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9042. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9043. else
  9044. ld_shlibs=no
  9045. fi
  9046. ;;
  9047. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9048. case `$LD -v 2>&1` in
  9049. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9050. ld_shlibs=no
  9051. cat <<_LT_EOF 1>&2
  9052. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9053. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9054. *** is disabling shared libraries support. We urge you to upgrade GNU
  9055. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9056. *** your PATH or compiler configuration so that the native linker is
  9057. *** used, and then restart.
  9058. _LT_EOF
  9059. ;;
  9060. *)
  9061. # For security reasons, it is highly recommended that you always
  9062. # use absolute paths for naming shared libraries, and exclude the
  9063. # DT_RUNPATH tag from executables and libraries. But doing so
  9064. # requires that you compile everything twice, which is a pain.
  9065. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9066. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9067. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9068. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9069. else
  9070. ld_shlibs=no
  9071. fi
  9072. ;;
  9073. esac
  9074. ;;
  9075. sunos4*)
  9076. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9077. wlarc=
  9078. hardcode_direct=yes
  9079. hardcode_shlibpath_var=no
  9080. ;;
  9081. *)
  9082. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9083. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9084. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9085. else
  9086. ld_shlibs=no
  9087. fi
  9088. ;;
  9089. esac
  9090. if test no = "$ld_shlibs"; then
  9091. runpath_var=
  9092. hardcode_libdir_flag_spec=
  9093. export_dynamic_flag_spec=
  9094. whole_archive_flag_spec=
  9095. fi
  9096. else
  9097. # PORTME fill in a description of your system's linker (not GNU ld)
  9098. case $host_os in
  9099. aix3*)
  9100. allow_undefined_flag=unsupported
  9101. always_export_symbols=yes
  9102. 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'
  9103. # Note: this linker hardcodes the directories in LIBPATH if there
  9104. # are no directories specified by -L.
  9105. hardcode_minus_L=yes
  9106. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9107. # Neither direct hardcoding nor static linking is supported with a
  9108. # broken collect2.
  9109. hardcode_direct=unsupported
  9110. fi
  9111. ;;
  9112. aix[4-9]*)
  9113. if test ia64 = "$host_cpu"; then
  9114. # On IA64, the linker does run time linking by default, so we don't
  9115. # have to do anything special.
  9116. aix_use_runtimelinking=no
  9117. exp_sym_flag='-Bexport'
  9118. no_entry_flag=
  9119. else
  9120. # If we're using GNU nm, then we don't want the "-C" option.
  9121. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9122. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9123. # weak defined symbols like other global defined symbols, whereas
  9124. # GNU nm marks them as "W".
  9125. # While the 'weak' keyword is ignored in the Export File, we need
  9126. # it in the Import File for the 'aix-soname' feature, so we have
  9127. # to replace the "-B" option with "-P" for AIX nm.
  9128. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9129. 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'
  9130. else
  9131. 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'
  9132. fi
  9133. aix_use_runtimelinking=no
  9134. # Test if we are trying to use run time linking or normal
  9135. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9136. # have runtime linking enabled, and use it for executables.
  9137. # For shared libraries, we enable/disable runtime linking
  9138. # depending on the kind of the shared library created -
  9139. # when "with_aix_soname,aix_use_runtimelinking" is:
  9140. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9141. # "aix,yes" lib.so shared, rtl:yes, for executables
  9142. # lib.a static archive
  9143. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9144. # lib.a(lib.so.V) shared, rtl:no, for executables
  9145. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9146. # lib.a(lib.so.V) shared, rtl:no
  9147. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9148. # lib.a static archive
  9149. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9150. for ld_flag in $LDFLAGS; do
  9151. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9152. aix_use_runtimelinking=yes
  9153. break
  9154. fi
  9155. done
  9156. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9157. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9158. # so we don't have lib.a shared libs to link our executables.
  9159. # We have to force runtime linking in this case.
  9160. aix_use_runtimelinking=yes
  9161. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9162. fi
  9163. ;;
  9164. esac
  9165. exp_sym_flag='-bexport'
  9166. no_entry_flag='-bnoentry'
  9167. fi
  9168. # When large executables or shared objects are built, AIX ld can
  9169. # have problems creating the table of contents. If linking a library
  9170. # or program results in "error TOC overflow" add -mminimal-toc to
  9171. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9172. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9173. archive_cmds=''
  9174. hardcode_direct=yes
  9175. hardcode_direct_absolute=yes
  9176. hardcode_libdir_separator=':'
  9177. link_all_deplibs=yes
  9178. file_list_spec='$wl-f,'
  9179. case $with_aix_soname,$aix_use_runtimelinking in
  9180. aix,*) ;; # traditional, no import file
  9181. svr4,* | *,yes) # use import file
  9182. # The Import File defines what to hardcode.
  9183. hardcode_direct=no
  9184. hardcode_direct_absolute=no
  9185. ;;
  9186. esac
  9187. if test yes = "$GCC"; then
  9188. case $host_os in aix4.[012]|aix4.[012].*)
  9189. # We only want to do this on AIX 4.2 and lower, the check
  9190. # below for broken collect2 doesn't work under 4.3+
  9191. collect2name=`$CC -print-prog-name=collect2`
  9192. if test -f "$collect2name" &&
  9193. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9194. then
  9195. # We have reworked collect2
  9196. :
  9197. else
  9198. # We have old collect2
  9199. hardcode_direct=unsupported
  9200. # It fails to find uninstalled libraries when the uninstalled
  9201. # path is not listed in the libpath. Setting hardcode_minus_L
  9202. # to unsupported forces relinking
  9203. hardcode_minus_L=yes
  9204. hardcode_libdir_flag_spec='-L$libdir'
  9205. hardcode_libdir_separator=
  9206. fi
  9207. ;;
  9208. esac
  9209. shared_flag='-shared'
  9210. if test yes = "$aix_use_runtimelinking"; then
  9211. shared_flag="$shared_flag "'$wl-G'
  9212. fi
  9213. # Need to ensure runtime linking is disabled for the traditional
  9214. # shared library, or the linker may eventually find shared libraries
  9215. # /with/ Import File - we do not want to mix them.
  9216. shared_flag_aix='-shared'
  9217. shared_flag_svr4='-shared $wl-G'
  9218. else
  9219. # not using gcc
  9220. if test ia64 = "$host_cpu"; then
  9221. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9222. # chokes on -Wl,-G. The following line is correct:
  9223. shared_flag='-G'
  9224. else
  9225. if test yes = "$aix_use_runtimelinking"; then
  9226. shared_flag='$wl-G'
  9227. else
  9228. shared_flag='$wl-bM:SRE'
  9229. fi
  9230. shared_flag_aix='$wl-bM:SRE'
  9231. shared_flag_svr4='$wl-G'
  9232. fi
  9233. fi
  9234. export_dynamic_flag_spec='$wl-bexpall'
  9235. # It seems that -bexpall does not export symbols beginning with
  9236. # underscore (_), so it is better to generate a list of symbols to export.
  9237. always_export_symbols=yes
  9238. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9239. # Warning - without using the other runtime loading flags (-brtl),
  9240. # -berok will link without error, but may produce a broken library.
  9241. allow_undefined_flag='-berok'
  9242. # Determine the default libpath from the value encoded in an
  9243. # empty executable.
  9244. if test set = "${lt_cv_aix_libpath+set}"; then
  9245. aix_libpath=$lt_cv_aix_libpath
  9246. else
  9247. if ${lt_cv_aix_libpath_+:} false; then :
  9248. $as_echo_n "(cached) " >&6
  9249. else
  9250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9251. /* end confdefs.h. */
  9252. int
  9253. main ()
  9254. {
  9255. ;
  9256. return 0;
  9257. }
  9258. _ACEOF
  9259. if ac_fn_c_try_link "$LINENO"; then :
  9260. lt_aix_libpath_sed='
  9261. /Import File Strings/,/^$/ {
  9262. /^0/ {
  9263. s/^0 *\([^ ]*\) *$/\1/
  9264. p
  9265. }
  9266. }'
  9267. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9268. # Check for a 64-bit object if we didn't find anything.
  9269. if test -z "$lt_cv_aix_libpath_"; then
  9270. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9271. fi
  9272. fi
  9273. rm -f core conftest.err conftest.$ac_objext \
  9274. conftest$ac_exeext conftest.$ac_ext
  9275. if test -z "$lt_cv_aix_libpath_"; then
  9276. lt_cv_aix_libpath_=/usr/lib:/lib
  9277. fi
  9278. fi
  9279. aix_libpath=$lt_cv_aix_libpath_
  9280. fi
  9281. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9282. 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
  9283. else
  9284. if test ia64 = "$host_cpu"; then
  9285. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9286. allow_undefined_flag="-z nodefs"
  9287. 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"
  9288. else
  9289. # Determine the default libpath from the value encoded in an
  9290. # empty executable.
  9291. if test set = "${lt_cv_aix_libpath+set}"; then
  9292. aix_libpath=$lt_cv_aix_libpath
  9293. else
  9294. if ${lt_cv_aix_libpath_+:} false; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9298. /* end confdefs.h. */
  9299. int
  9300. main ()
  9301. {
  9302. ;
  9303. return 0;
  9304. }
  9305. _ACEOF
  9306. if ac_fn_c_try_link "$LINENO"; then :
  9307. lt_aix_libpath_sed='
  9308. /Import File Strings/,/^$/ {
  9309. /^0/ {
  9310. s/^0 *\([^ ]*\) *$/\1/
  9311. p
  9312. }
  9313. }'
  9314. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9315. # Check for a 64-bit object if we didn't find anything.
  9316. if test -z "$lt_cv_aix_libpath_"; then
  9317. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9318. fi
  9319. fi
  9320. rm -f core conftest.err conftest.$ac_objext \
  9321. conftest$ac_exeext conftest.$ac_ext
  9322. if test -z "$lt_cv_aix_libpath_"; then
  9323. lt_cv_aix_libpath_=/usr/lib:/lib
  9324. fi
  9325. fi
  9326. aix_libpath=$lt_cv_aix_libpath_
  9327. fi
  9328. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9329. # Warning - without using the other run time loading flags,
  9330. # -berok will link without error, but may produce a broken library.
  9331. no_undefined_flag=' $wl-bernotok'
  9332. allow_undefined_flag=' $wl-berok'
  9333. if test yes = "$with_gnu_ld"; then
  9334. # We only use this code for GNU lds that support --whole-archive.
  9335. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9336. else
  9337. # Exported symbols can be pulled into shared objects from archives
  9338. whole_archive_flag_spec='$convenience'
  9339. fi
  9340. archive_cmds_need_lc=yes
  9341. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9342. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9343. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9344. if test svr4 != "$with_aix_soname"; then
  9345. # This is similar to how AIX traditionally builds its shared libraries.
  9346. 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'
  9347. fi
  9348. if test aix != "$with_aix_soname"; then
  9349. 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'
  9350. else
  9351. # used by -dlpreopen to get the symbols
  9352. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9353. fi
  9354. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9355. fi
  9356. fi
  9357. ;;
  9358. amigaos*)
  9359. case $host_cpu in
  9360. powerpc)
  9361. # see comment about AmigaOS4 .so support
  9362. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9363. archive_expsym_cmds=''
  9364. ;;
  9365. m68k)
  9366. 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)'
  9367. hardcode_libdir_flag_spec='-L$libdir'
  9368. hardcode_minus_L=yes
  9369. ;;
  9370. esac
  9371. ;;
  9372. bsdi[45]*)
  9373. export_dynamic_flag_spec=-rdynamic
  9374. ;;
  9375. cygwin* | mingw* | pw32* | cegcc*)
  9376. # When not using gcc, we currently assume that we are using
  9377. # Microsoft Visual C++.
  9378. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9379. # no search path for DLLs.
  9380. case $cc_basename in
  9381. cl*)
  9382. # Native MSVC
  9383. hardcode_libdir_flag_spec=' '
  9384. allow_undefined_flag=unsupported
  9385. always_export_symbols=yes
  9386. file_list_spec='@'
  9387. # Tell ltmain to make .lib files, not .a files.
  9388. libext=lib
  9389. # Tell ltmain to make .dll files, not .so files.
  9390. shrext_cmds=.dll
  9391. # FIXME: Setting linknames here is a bad hack.
  9392. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9393. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9394. cp "$export_symbols" "$output_objdir/$soname.def";
  9395. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9396. else
  9397. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9398. fi~
  9399. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9400. linknames='
  9401. # The linker will not automatically build a static lib if we build a DLL.
  9402. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9403. enable_shared_with_static_runtimes=yes
  9404. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9405. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9406. # Don't use ranlib
  9407. old_postinstall_cmds='chmod 644 $oldlib'
  9408. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9409. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9410. case $lt_outputfile in
  9411. *.exe|*.EXE) ;;
  9412. *)
  9413. lt_outputfile=$lt_outputfile.exe
  9414. lt_tool_outputfile=$lt_tool_outputfile.exe
  9415. ;;
  9416. esac~
  9417. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9418. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9419. $RM "$lt_outputfile.manifest";
  9420. fi'
  9421. ;;
  9422. *)
  9423. # Assume MSVC wrapper
  9424. hardcode_libdir_flag_spec=' '
  9425. allow_undefined_flag=unsupported
  9426. # Tell ltmain to make .lib files, not .a files.
  9427. libext=lib
  9428. # Tell ltmain to make .dll files, not .so files.
  9429. shrext_cmds=.dll
  9430. # FIXME: Setting linknames here is a bad hack.
  9431. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9432. # The linker will automatically build a .lib file if we build a DLL.
  9433. old_archive_from_new_cmds='true'
  9434. # FIXME: Should let the user specify the lib program.
  9435. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9436. enable_shared_with_static_runtimes=yes
  9437. ;;
  9438. esac
  9439. ;;
  9440. darwin* | rhapsody*)
  9441. archive_cmds_need_lc=no
  9442. hardcode_direct=no
  9443. hardcode_automatic=yes
  9444. hardcode_shlibpath_var=unsupported
  9445. if test yes = "$lt_cv_ld_force_load"; then
  9446. 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\"`'
  9447. else
  9448. whole_archive_flag_spec=''
  9449. fi
  9450. link_all_deplibs=yes
  9451. allow_undefined_flag=$_lt_dar_allow_undefined
  9452. case $cc_basename in
  9453. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9454. *) _lt_dar_can_shared=$GCC ;;
  9455. esac
  9456. if test yes = "$_lt_dar_can_shared"; then
  9457. output_verbose_link_cmd=func_echo_all
  9458. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9459. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9460. 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"
  9461. 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"
  9462. else
  9463. ld_shlibs=no
  9464. fi
  9465. ;;
  9466. dgux*)
  9467. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9468. hardcode_libdir_flag_spec='-L$libdir'
  9469. hardcode_shlibpath_var=no
  9470. ;;
  9471. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9472. # support. Future versions do this automatically, but an explicit c++rt0.o
  9473. # does not break anything, and helps significantly (at the cost of a little
  9474. # extra space).
  9475. freebsd2.2*)
  9476. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9477. hardcode_libdir_flag_spec='-R$libdir'
  9478. hardcode_direct=yes
  9479. hardcode_shlibpath_var=no
  9480. ;;
  9481. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9482. freebsd2.*)
  9483. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9484. hardcode_direct=yes
  9485. hardcode_minus_L=yes
  9486. hardcode_shlibpath_var=no
  9487. ;;
  9488. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9489. freebsd* | dragonfly*)
  9490. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9491. hardcode_libdir_flag_spec='-R$libdir'
  9492. hardcode_direct=yes
  9493. hardcode_shlibpath_var=no
  9494. ;;
  9495. hpux9*)
  9496. if test yes = "$GCC"; then
  9497. 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'
  9498. else
  9499. 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'
  9500. fi
  9501. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9502. hardcode_libdir_separator=:
  9503. hardcode_direct=yes
  9504. # hardcode_minus_L: Not really in the search PATH,
  9505. # but as the default location of the library.
  9506. hardcode_minus_L=yes
  9507. export_dynamic_flag_spec='$wl-E'
  9508. ;;
  9509. hpux10*)
  9510. if test yes,no = "$GCC,$with_gnu_ld"; then
  9511. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9512. else
  9513. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9514. fi
  9515. if test no = "$with_gnu_ld"; then
  9516. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9517. hardcode_libdir_separator=:
  9518. hardcode_direct=yes
  9519. hardcode_direct_absolute=yes
  9520. export_dynamic_flag_spec='$wl-E'
  9521. # hardcode_minus_L: Not really in the search PATH,
  9522. # but as the default location of the library.
  9523. hardcode_minus_L=yes
  9524. fi
  9525. ;;
  9526. hpux11*)
  9527. if test yes,no = "$GCC,$with_gnu_ld"; then
  9528. case $host_cpu in
  9529. hppa*64*)
  9530. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9531. ;;
  9532. ia64*)
  9533. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9534. ;;
  9535. *)
  9536. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9537. ;;
  9538. esac
  9539. else
  9540. case $host_cpu in
  9541. hppa*64*)
  9542. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9543. ;;
  9544. ia64*)
  9545. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9546. ;;
  9547. *)
  9548. # Older versions of the 11.00 compiler do not understand -b yet
  9549. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9551. $as_echo_n "checking if $CC understands -b... " >&6; }
  9552. if ${lt_cv_prog_compiler__b+:} false; then :
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. lt_cv_prog_compiler__b=no
  9556. save_LDFLAGS=$LDFLAGS
  9557. LDFLAGS="$LDFLAGS -b"
  9558. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9559. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9560. # The linker can only warn and ignore the option if not recognized
  9561. # So say no if there are warnings
  9562. if test -s conftest.err; then
  9563. # Append any errors to the config.log.
  9564. cat conftest.err 1>&5
  9565. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9566. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9567. if diff conftest.exp conftest.er2 >/dev/null; then
  9568. lt_cv_prog_compiler__b=yes
  9569. fi
  9570. else
  9571. lt_cv_prog_compiler__b=yes
  9572. fi
  9573. fi
  9574. $RM -r conftest*
  9575. LDFLAGS=$save_LDFLAGS
  9576. fi
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9578. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9579. if test yes = "$lt_cv_prog_compiler__b"; then
  9580. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9581. else
  9582. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9583. fi
  9584. ;;
  9585. esac
  9586. fi
  9587. if test no = "$with_gnu_ld"; then
  9588. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9589. hardcode_libdir_separator=:
  9590. case $host_cpu in
  9591. hppa*64*|ia64*)
  9592. hardcode_direct=no
  9593. hardcode_shlibpath_var=no
  9594. ;;
  9595. *)
  9596. hardcode_direct=yes
  9597. hardcode_direct_absolute=yes
  9598. export_dynamic_flag_spec='$wl-E'
  9599. # hardcode_minus_L: Not really in the search PATH,
  9600. # but as the default location of the library.
  9601. hardcode_minus_L=yes
  9602. ;;
  9603. esac
  9604. fi
  9605. ;;
  9606. irix5* | irix6* | nonstopux*)
  9607. if test yes = "$GCC"; then
  9608. 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'
  9609. # Try to use the -exported_symbol ld option, if it does not
  9610. # work, assume that -exports_file does not work either and
  9611. # implicitly export all symbols.
  9612. # This should be the same for all languages, so no per-tag cache variable.
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9614. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9615. if ${lt_cv_irix_exported_symbol+:} false; then :
  9616. $as_echo_n "(cached) " >&6
  9617. else
  9618. save_LDFLAGS=$LDFLAGS
  9619. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9621. /* end confdefs.h. */
  9622. int foo (void) { return 0; }
  9623. _ACEOF
  9624. if ac_fn_c_try_link "$LINENO"; then :
  9625. lt_cv_irix_exported_symbol=yes
  9626. else
  9627. lt_cv_irix_exported_symbol=no
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LDFLAGS=$save_LDFLAGS
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9634. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9635. if test yes = "$lt_cv_irix_exported_symbol"; then
  9636. 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'
  9637. fi
  9638. link_all_deplibs=no
  9639. else
  9640. 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'
  9641. 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'
  9642. fi
  9643. archive_cmds_need_lc='no'
  9644. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9645. hardcode_libdir_separator=:
  9646. inherit_rpath=yes
  9647. link_all_deplibs=yes
  9648. ;;
  9649. linux*)
  9650. case $cc_basename in
  9651. tcc*)
  9652. # Fabrice Bellard et al's Tiny C Compiler
  9653. ld_shlibs=yes
  9654. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9655. ;;
  9656. esac
  9657. ;;
  9658. netbsd* | netbsdelf*-gnu)
  9659. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9660. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9661. else
  9662. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9663. fi
  9664. hardcode_libdir_flag_spec='-R$libdir'
  9665. hardcode_direct=yes
  9666. hardcode_shlibpath_var=no
  9667. ;;
  9668. newsos6)
  9669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9670. hardcode_direct=yes
  9671. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9672. hardcode_libdir_separator=:
  9673. hardcode_shlibpath_var=no
  9674. ;;
  9675. *nto* | *qnx*)
  9676. ;;
  9677. openbsd* | bitrig*)
  9678. if test -f /usr/libexec/ld.so; then
  9679. hardcode_direct=yes
  9680. hardcode_shlibpath_var=no
  9681. hardcode_direct_absolute=yes
  9682. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9683. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9684. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9685. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9686. export_dynamic_flag_spec='$wl-E'
  9687. else
  9688. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9689. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9690. fi
  9691. else
  9692. ld_shlibs=no
  9693. fi
  9694. ;;
  9695. os2*)
  9696. hardcode_libdir_flag_spec='-L$libdir'
  9697. hardcode_minus_L=yes
  9698. allow_undefined_flag=unsupported
  9699. shrext_cmds=.dll
  9700. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9701. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9702. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9703. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9704. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9705. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9706. emximp -o $lib $output_objdir/$libname.def'
  9707. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9708. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9709. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9710. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9711. prefix_cmds="$SED"~
  9712. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9713. prefix_cmds="$prefix_cmds -e 1d";
  9714. fi~
  9715. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9716. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9717. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9718. emximp -o $lib $output_objdir/$libname.def'
  9719. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9720. enable_shared_with_static_runtimes=yes
  9721. ;;
  9722. osf3*)
  9723. if test yes = "$GCC"; then
  9724. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9725. 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'
  9726. else
  9727. allow_undefined_flag=' -expect_unresolved \*'
  9728. 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'
  9729. fi
  9730. archive_cmds_need_lc='no'
  9731. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9732. hardcode_libdir_separator=:
  9733. ;;
  9734. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9735. if test yes = "$GCC"; then
  9736. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9737. 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'
  9738. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9739. else
  9740. allow_undefined_flag=' -expect_unresolved \*'
  9741. 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'
  9742. 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~
  9743. $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'
  9744. # Both c and cxx compiler support -rpath directly
  9745. hardcode_libdir_flag_spec='-rpath $libdir'
  9746. fi
  9747. archive_cmds_need_lc='no'
  9748. hardcode_libdir_separator=:
  9749. ;;
  9750. solaris*)
  9751. no_undefined_flag=' -z defs'
  9752. if test yes = "$GCC"; then
  9753. wlarc='$wl'
  9754. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9755. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9756. $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'
  9757. else
  9758. case `$CC -V 2>&1` in
  9759. *"Compilers 5.0"*)
  9760. wlarc=''
  9761. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9762. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9763. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9764. ;;
  9765. *)
  9766. wlarc='$wl'
  9767. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9768. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9769. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9770. ;;
  9771. esac
  9772. fi
  9773. hardcode_libdir_flag_spec='-R$libdir'
  9774. hardcode_shlibpath_var=no
  9775. case $host_os in
  9776. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9777. *)
  9778. # The compiler driver will combine and reorder linker options,
  9779. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9780. # but is careful enough not to reorder.
  9781. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9782. if test yes = "$GCC"; then
  9783. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9784. else
  9785. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9786. fi
  9787. ;;
  9788. esac
  9789. link_all_deplibs=yes
  9790. ;;
  9791. sunos4*)
  9792. if test sequent = "$host_vendor"; then
  9793. # Use $CC to link under sequent, because it throws in some extra .o
  9794. # files that make .init and .fini sections work.
  9795. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9796. else
  9797. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9798. fi
  9799. hardcode_libdir_flag_spec='-L$libdir'
  9800. hardcode_direct=yes
  9801. hardcode_minus_L=yes
  9802. hardcode_shlibpath_var=no
  9803. ;;
  9804. sysv4)
  9805. case $host_vendor in
  9806. sni)
  9807. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9808. hardcode_direct=yes # is this really true???
  9809. ;;
  9810. siemens)
  9811. ## LD is ld it makes a PLAMLIB
  9812. ## CC just makes a GrossModule.
  9813. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9814. reload_cmds='$CC -r -o $output$reload_objs'
  9815. hardcode_direct=no
  9816. ;;
  9817. motorola)
  9818. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9819. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9820. ;;
  9821. esac
  9822. runpath_var='LD_RUN_PATH'
  9823. hardcode_shlibpath_var=no
  9824. ;;
  9825. sysv4.3*)
  9826. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9827. hardcode_shlibpath_var=no
  9828. export_dynamic_flag_spec='-Bexport'
  9829. ;;
  9830. sysv4*MP*)
  9831. if test -d /usr/nec; then
  9832. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9833. hardcode_shlibpath_var=no
  9834. runpath_var=LD_RUN_PATH
  9835. hardcode_runpath_var=yes
  9836. ld_shlibs=yes
  9837. fi
  9838. ;;
  9839. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9840. no_undefined_flag='$wl-z,text'
  9841. archive_cmds_need_lc=no
  9842. hardcode_shlibpath_var=no
  9843. runpath_var='LD_RUN_PATH'
  9844. if test yes = "$GCC"; then
  9845. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9846. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9847. else
  9848. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9849. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9850. fi
  9851. ;;
  9852. sysv5* | sco3.2v5* | sco5v6*)
  9853. # Note: We CANNOT use -z defs as we might desire, because we do not
  9854. # link with -lc, and that would cause any symbols used from libc to
  9855. # always be unresolved, which means just about no library would
  9856. # ever link correctly. If we're not using GNU ld we use -z text
  9857. # though, which does catch some bad symbols but isn't as heavy-handed
  9858. # as -z defs.
  9859. no_undefined_flag='$wl-z,text'
  9860. allow_undefined_flag='$wl-z,nodefs'
  9861. archive_cmds_need_lc=no
  9862. hardcode_shlibpath_var=no
  9863. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9864. hardcode_libdir_separator=':'
  9865. link_all_deplibs=yes
  9866. export_dynamic_flag_spec='$wl-Bexport'
  9867. runpath_var='LD_RUN_PATH'
  9868. if test yes = "$GCC"; then
  9869. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9870. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9871. else
  9872. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9873. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. fi
  9875. ;;
  9876. uts4*)
  9877. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9878. hardcode_libdir_flag_spec='-L$libdir'
  9879. hardcode_shlibpath_var=no
  9880. ;;
  9881. *)
  9882. ld_shlibs=no
  9883. ;;
  9884. esac
  9885. if test sni = "$host_vendor"; then
  9886. case $host in
  9887. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9888. export_dynamic_flag_spec='$wl-Blargedynsym'
  9889. ;;
  9890. esac
  9891. fi
  9892. fi
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9894. $as_echo "$ld_shlibs" >&6; }
  9895. test no = "$ld_shlibs" && can_build_shared=no
  9896. with_gnu_ld=$with_gnu_ld
  9897. #
  9898. # Do we need to explicitly link libc?
  9899. #
  9900. case "x$archive_cmds_need_lc" in
  9901. x|xyes)
  9902. # Assume -lc should be added
  9903. archive_cmds_need_lc=yes
  9904. if test yes,yes = "$GCC,$enable_shared"; then
  9905. case $archive_cmds in
  9906. *'~'*)
  9907. # FIXME: we may have to deal with multi-command sequences.
  9908. ;;
  9909. '$CC '*)
  9910. # Test whether the compiler implicitly links with -lc since on some
  9911. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9912. # to ld, don't add -lc before -lgcc.
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9914. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9915. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. $RM conftest*
  9919. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9920. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9921. (eval $ac_compile) 2>&5
  9922. ac_status=$?
  9923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9924. test $ac_status = 0; } 2>conftest.err; then
  9925. soname=conftest
  9926. lib=conftest
  9927. libobjs=conftest.$ac_objext
  9928. deplibs=
  9929. wl=$lt_prog_compiler_wl
  9930. pic_flag=$lt_prog_compiler_pic
  9931. compiler_flags=-v
  9932. linker_flags=-v
  9933. verstring=
  9934. output_objdir=.
  9935. libname=conftest
  9936. lt_save_allow_undefined_flag=$allow_undefined_flag
  9937. allow_undefined_flag=
  9938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9939. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9940. ac_status=$?
  9941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9942. test $ac_status = 0; }
  9943. then
  9944. lt_cv_archive_cmds_need_lc=no
  9945. else
  9946. lt_cv_archive_cmds_need_lc=yes
  9947. fi
  9948. allow_undefined_flag=$lt_save_allow_undefined_flag
  9949. else
  9950. cat conftest.err 1>&5
  9951. fi
  9952. $RM conftest*
  9953. fi
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9955. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9956. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9957. ;;
  9958. esac
  9959. fi
  9960. ;;
  9961. esac
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9963. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9964. if test yes = "$GCC"; then
  9965. case $host_os in
  9966. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9967. *) lt_awk_arg='/^libraries:/' ;;
  9968. esac
  9969. case $host_os in
  9970. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9971. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9972. esac
  9973. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9974. case $lt_search_path_spec in
  9975. *\;*)
  9976. # if the path contains ";" then we assume it to be the separator
  9977. # otherwise default to the standard path separator (i.e. ":") - it is
  9978. # assumed that no part of a normal pathname contains ";" but that should
  9979. # okay in the real world where ";" in dirpaths is itself problematic.
  9980. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9981. ;;
  9982. *)
  9983. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9984. ;;
  9985. esac
  9986. # Ok, now we have the path, separated by spaces, we can step through it
  9987. # and add multilib dir if necessary...
  9988. lt_tmp_lt_search_path_spec=
  9989. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9990. # ...but if some path component already ends with the multilib dir we assume
  9991. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9992. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9993. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9994. lt_multi_os_dir=
  9995. ;;
  9996. esac
  9997. for lt_sys_path in $lt_search_path_spec; do
  9998. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9999. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10000. elif test -n "$lt_multi_os_dir"; then
  10001. test -d "$lt_sys_path" && \
  10002. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10003. fi
  10004. done
  10005. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10006. BEGIN {RS = " "; FS = "/|\n";} {
  10007. lt_foo = "";
  10008. lt_count = 0;
  10009. for (lt_i = NF; lt_i > 0; lt_i--) {
  10010. if ($lt_i != "" && $lt_i != ".") {
  10011. if ($lt_i == "..") {
  10012. lt_count++;
  10013. } else {
  10014. if (lt_count == 0) {
  10015. lt_foo = "/" $lt_i lt_foo;
  10016. } else {
  10017. lt_count--;
  10018. }
  10019. }
  10020. }
  10021. }
  10022. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10023. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10024. }'`
  10025. # AWK program above erroneously prepends '/' to C:/dos/paths
  10026. # for these hosts.
  10027. case $host_os in
  10028. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10029. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10030. esac
  10031. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10032. else
  10033. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10034. fi
  10035. library_names_spec=
  10036. libname_spec='lib$name'
  10037. soname_spec=
  10038. shrext_cmds=.so
  10039. postinstall_cmds=
  10040. postuninstall_cmds=
  10041. finish_cmds=
  10042. finish_eval=
  10043. shlibpath_var=
  10044. shlibpath_overrides_runpath=unknown
  10045. version_type=none
  10046. dynamic_linker="$host_os ld.so"
  10047. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10048. need_lib_prefix=unknown
  10049. hardcode_into_libs=no
  10050. # when you set need_version to no, make sure it does not cause -set_version
  10051. # flags to be left without arguments
  10052. need_version=unknown
  10053. case $host_os in
  10054. aix3*)
  10055. version_type=linux # correct to gnu/linux during the next big refactor
  10056. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10057. shlibpath_var=LIBPATH
  10058. # AIX 3 has no versioning support, so we append a major version to the name.
  10059. soname_spec='$libname$release$shared_ext$major'
  10060. ;;
  10061. aix[4-9]*)
  10062. version_type=linux # correct to gnu/linux during the next big refactor
  10063. need_lib_prefix=no
  10064. need_version=no
  10065. hardcode_into_libs=yes
  10066. if test ia64 = "$host_cpu"; then
  10067. # AIX 5 supports IA64
  10068. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10069. shlibpath_var=LD_LIBRARY_PATH
  10070. else
  10071. # With GCC up to 2.95.x, collect2 would create an import file
  10072. # for dependence libraries. The import file would start with
  10073. # the line '#! .'. This would cause the generated library to
  10074. # depend on '.', always an invalid library. This was fixed in
  10075. # development snapshots of GCC prior to 3.0.
  10076. case $host_os in
  10077. aix4 | aix4.[01] | aix4.[01].*)
  10078. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10079. echo ' yes '
  10080. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10081. :
  10082. else
  10083. can_build_shared=no
  10084. fi
  10085. ;;
  10086. esac
  10087. # Using Import Files as archive members, it is possible to support
  10088. # filename-based versioning of shared library archives on AIX. While
  10089. # this would work for both with and without runtime linking, it will
  10090. # prevent static linking of such archives. So we do filename-based
  10091. # shared library versioning with .so extension only, which is used
  10092. # when both runtime linking and shared linking is enabled.
  10093. # Unfortunately, runtime linking may impact performance, so we do
  10094. # not want this to be the default eventually. Also, we use the
  10095. # versioned .so libs for executables only if there is the -brtl
  10096. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10097. # To allow for filename-based versioning support, we need to create
  10098. # libNAME.so.V as an archive file, containing:
  10099. # *) an Import File, referring to the versioned filename of the
  10100. # archive as well as the shared archive member, telling the
  10101. # bitwidth (32 or 64) of that shared object, and providing the
  10102. # list of exported symbols of that shared object, eventually
  10103. # decorated with the 'weak' keyword
  10104. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10105. # it being seen by the linker.
  10106. # At run time we better use the real file rather than another symlink,
  10107. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10108. case $with_aix_soname,$aix_use_runtimelinking in
  10109. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10110. # soname into executable. Probably we can add versioning support to
  10111. # collect2, so additional links can be useful in future.
  10112. aix,yes) # traditional libtool
  10113. dynamic_linker='AIX unversionable lib.so'
  10114. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10115. # instead of lib<name>.a to let people know that these are not
  10116. # typical AIX shared libraries.
  10117. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10118. ;;
  10119. aix,no) # traditional AIX only
  10120. dynamic_linker='AIX lib.a(lib.so.V)'
  10121. # We preserve .a as extension for shared libraries through AIX4.2
  10122. # and later when we are not doing run time linking.
  10123. library_names_spec='$libname$release.a $libname.a'
  10124. soname_spec='$libname$release$shared_ext$major'
  10125. ;;
  10126. svr4,*) # full svr4 only
  10127. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10128. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10129. # We do not specify a path in Import Files, so LIBPATH fires.
  10130. shlibpath_overrides_runpath=yes
  10131. ;;
  10132. *,yes) # both, prefer svr4
  10133. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10134. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10135. # unpreferred sharedlib libNAME.a needs extra handling
  10136. 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"'
  10137. 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"'
  10138. # We do not specify a path in Import Files, so LIBPATH fires.
  10139. shlibpath_overrides_runpath=yes
  10140. ;;
  10141. *,no) # both, prefer aix
  10142. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10143. library_names_spec='$libname$release.a $libname.a'
  10144. soname_spec='$libname$release$shared_ext$major'
  10145. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10146. 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)'
  10147. 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"'
  10148. ;;
  10149. esac
  10150. shlibpath_var=LIBPATH
  10151. fi
  10152. ;;
  10153. amigaos*)
  10154. case $host_cpu in
  10155. powerpc)
  10156. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10157. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10158. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10159. ;;
  10160. m68k)
  10161. library_names_spec='$libname.ixlibrary $libname.a'
  10162. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10163. 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'
  10164. ;;
  10165. esac
  10166. ;;
  10167. beos*)
  10168. library_names_spec='$libname$shared_ext'
  10169. dynamic_linker="$host_os ld.so"
  10170. shlibpath_var=LIBRARY_PATH
  10171. ;;
  10172. bsdi[45]*)
  10173. version_type=linux # correct to gnu/linux during the next big refactor
  10174. need_version=no
  10175. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10176. soname_spec='$libname$release$shared_ext$major'
  10177. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10180. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10181. # the default ld.so.conf also contains /usr/contrib/lib and
  10182. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10183. # libtool to hard-code these into programs
  10184. ;;
  10185. cygwin* | mingw* | pw32* | cegcc*)
  10186. version_type=windows
  10187. shrext_cmds=.dll
  10188. need_version=no
  10189. need_lib_prefix=no
  10190. case $GCC,$cc_basename in
  10191. yes,*)
  10192. # gcc
  10193. library_names_spec='$libname.dll.a'
  10194. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10195. postinstall_cmds='base_file=`basename \$file`~
  10196. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10197. dldir=$destdir/`dirname \$dlpath`~
  10198. test -d \$dldir || mkdir -p \$dldir~
  10199. $install_prog $dir/$dlname \$dldir/$dlname~
  10200. chmod a+x \$dldir/$dlname~
  10201. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10202. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10203. fi'
  10204. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10205. dlpath=$dir/\$dldll~
  10206. $RM \$dlpath'
  10207. shlibpath_overrides_runpath=yes
  10208. case $host_os in
  10209. cygwin*)
  10210. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10211. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10212. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10213. ;;
  10214. mingw* | cegcc*)
  10215. # MinGW DLLs use traditional 'lib' prefix
  10216. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10217. ;;
  10218. pw32*)
  10219. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10220. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10221. ;;
  10222. esac
  10223. dynamic_linker='Win32 ld.exe'
  10224. ;;
  10225. *,cl*)
  10226. # Native MSVC
  10227. libname_spec='$name'
  10228. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10229. library_names_spec='$libname.dll.lib'
  10230. case $build_os in
  10231. mingw*)
  10232. sys_lib_search_path_spec=
  10233. lt_save_ifs=$IFS
  10234. IFS=';'
  10235. for lt_path in $LIB
  10236. do
  10237. IFS=$lt_save_ifs
  10238. # Let DOS variable expansion print the short 8.3 style file name.
  10239. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10240. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10241. done
  10242. IFS=$lt_save_ifs
  10243. # Convert to MSYS style.
  10244. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10245. ;;
  10246. cygwin*)
  10247. # Convert to unix form, then to dos form, then back to unix form
  10248. # but this time dos style (no spaces!) so that the unix form looks
  10249. # like /cygdrive/c/PROGRA~1:/cygdr...
  10250. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10251. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10252. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10253. ;;
  10254. *)
  10255. sys_lib_search_path_spec=$LIB
  10256. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10257. # It is most probably a Windows format PATH.
  10258. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10259. else
  10260. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10261. fi
  10262. # FIXME: find the short name or the path components, as spaces are
  10263. # common. (e.g. "Program Files" -> "PROGRA~1")
  10264. ;;
  10265. esac
  10266. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10267. postinstall_cmds='base_file=`basename \$file`~
  10268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10269. dldir=$destdir/`dirname \$dlpath`~
  10270. test -d \$dldir || mkdir -p \$dldir~
  10271. $install_prog $dir/$dlname \$dldir/$dlname'
  10272. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10273. dlpath=$dir/\$dldll~
  10274. $RM \$dlpath'
  10275. shlibpath_overrides_runpath=yes
  10276. dynamic_linker='Win32 link.exe'
  10277. ;;
  10278. *)
  10279. # Assume MSVC wrapper
  10280. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10281. dynamic_linker='Win32 ld.exe'
  10282. ;;
  10283. esac
  10284. # FIXME: first we should search . and the directory the executable is in
  10285. shlibpath_var=PATH
  10286. ;;
  10287. darwin* | rhapsody*)
  10288. dynamic_linker="$host_os dyld"
  10289. version_type=darwin
  10290. need_lib_prefix=no
  10291. need_version=no
  10292. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10293. soname_spec='$libname$release$major$shared_ext'
  10294. shlibpath_overrides_runpath=yes
  10295. shlibpath_var=DYLD_LIBRARY_PATH
  10296. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10297. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10298. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10299. ;;
  10300. dgux*)
  10301. version_type=linux # correct to gnu/linux during the next big refactor
  10302. need_lib_prefix=no
  10303. need_version=no
  10304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10305. soname_spec='$libname$release$shared_ext$major'
  10306. shlibpath_var=LD_LIBRARY_PATH
  10307. ;;
  10308. freebsd* | dragonfly*)
  10309. # DragonFly does not have aout. When/if they implement a new
  10310. # versioning mechanism, adjust this.
  10311. if test -x /usr/bin/objformat; then
  10312. objformat=`/usr/bin/objformat`
  10313. else
  10314. case $host_os in
  10315. freebsd[23].*) objformat=aout ;;
  10316. *) objformat=elf ;;
  10317. esac
  10318. fi
  10319. version_type=freebsd-$objformat
  10320. case $version_type in
  10321. freebsd-elf*)
  10322. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10323. soname_spec='$libname$release$shared_ext$major'
  10324. need_version=no
  10325. need_lib_prefix=no
  10326. ;;
  10327. freebsd-*)
  10328. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10329. need_version=yes
  10330. ;;
  10331. esac
  10332. shlibpath_var=LD_LIBRARY_PATH
  10333. case $host_os in
  10334. freebsd2.*)
  10335. shlibpath_overrides_runpath=yes
  10336. ;;
  10337. freebsd3.[01]* | freebsdelf3.[01]*)
  10338. shlibpath_overrides_runpath=yes
  10339. hardcode_into_libs=yes
  10340. ;;
  10341. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10342. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10343. shlibpath_overrides_runpath=no
  10344. hardcode_into_libs=yes
  10345. ;;
  10346. *) # from 4.6 on, and DragonFly
  10347. shlibpath_overrides_runpath=yes
  10348. hardcode_into_libs=yes
  10349. ;;
  10350. esac
  10351. ;;
  10352. haiku*)
  10353. version_type=linux # correct to gnu/linux during the next big refactor
  10354. need_lib_prefix=no
  10355. need_version=no
  10356. dynamic_linker="$host_os runtime_loader"
  10357. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10358. soname_spec='$libname$release$shared_ext$major'
  10359. shlibpath_var=LIBRARY_PATH
  10360. shlibpath_overrides_runpath=no
  10361. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10362. hardcode_into_libs=yes
  10363. ;;
  10364. hpux9* | hpux10* | hpux11*)
  10365. # Give a soname corresponding to the major version so that dld.sl refuses to
  10366. # link against other versions.
  10367. version_type=sunos
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. case $host_cpu in
  10371. ia64*)
  10372. shrext_cmds='.so'
  10373. hardcode_into_libs=yes
  10374. dynamic_linker="$host_os dld.so"
  10375. shlibpath_var=LD_LIBRARY_PATH
  10376. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10377. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10378. soname_spec='$libname$release$shared_ext$major'
  10379. if test 32 = "$HPUX_IA64_MODE"; then
  10380. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10381. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10382. else
  10383. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10384. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10385. fi
  10386. ;;
  10387. hppa*64*)
  10388. shrext_cmds='.sl'
  10389. hardcode_into_libs=yes
  10390. dynamic_linker="$host_os dld.sl"
  10391. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10392. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10393. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10394. soname_spec='$libname$release$shared_ext$major'
  10395. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10396. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10397. ;;
  10398. *)
  10399. shrext_cmds='.sl'
  10400. dynamic_linker="$host_os dld.sl"
  10401. shlibpath_var=SHLIB_PATH
  10402. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10403. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10404. soname_spec='$libname$release$shared_ext$major'
  10405. ;;
  10406. esac
  10407. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10408. postinstall_cmds='chmod 555 $lib'
  10409. # or fails outright, so override atomically:
  10410. install_override_mode=555
  10411. ;;
  10412. interix[3-9]*)
  10413. version_type=linux # correct to gnu/linux during the next big refactor
  10414. need_lib_prefix=no
  10415. need_version=no
  10416. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10417. soname_spec='$libname$release$shared_ext$major'
  10418. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10419. shlibpath_var=LD_LIBRARY_PATH
  10420. shlibpath_overrides_runpath=no
  10421. hardcode_into_libs=yes
  10422. ;;
  10423. irix5* | irix6* | nonstopux*)
  10424. case $host_os in
  10425. nonstopux*) version_type=nonstopux ;;
  10426. *)
  10427. if test yes = "$lt_cv_prog_gnu_ld"; then
  10428. version_type=linux # correct to gnu/linux during the next big refactor
  10429. else
  10430. version_type=irix
  10431. fi ;;
  10432. esac
  10433. need_lib_prefix=no
  10434. need_version=no
  10435. soname_spec='$libname$release$shared_ext$major'
  10436. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10437. case $host_os in
  10438. irix5* | nonstopux*)
  10439. libsuff= shlibsuff=
  10440. ;;
  10441. *)
  10442. case $LD in # libtool.m4 will add one of these switches to LD
  10443. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10444. libsuff= shlibsuff= libmagic=32-bit;;
  10445. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10446. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10447. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10448. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10449. *) libsuff= shlibsuff= libmagic=never-match;;
  10450. esac
  10451. ;;
  10452. esac
  10453. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10454. shlibpath_overrides_runpath=no
  10455. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10456. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10457. hardcode_into_libs=yes
  10458. ;;
  10459. # No shared lib support for Linux oldld, aout, or coff.
  10460. linux*oldld* | linux*aout* | linux*coff*)
  10461. dynamic_linker=no
  10462. ;;
  10463. linux*android*)
  10464. version_type=none # Android doesn't support versioned libraries.
  10465. need_lib_prefix=no
  10466. need_version=no
  10467. library_names_spec='$libname$release$shared_ext'
  10468. soname_spec='$libname$release$shared_ext'
  10469. finish_cmds=
  10470. shlibpath_var=LD_LIBRARY_PATH
  10471. shlibpath_overrides_runpath=yes
  10472. # This implies no fast_install, which is unacceptable.
  10473. # Some rework will be needed to allow for fast_install
  10474. # before this can be enabled.
  10475. hardcode_into_libs=yes
  10476. dynamic_linker='Android linker'
  10477. # Don't embed -rpath directories since the linker doesn't support them.
  10478. hardcode_libdir_flag_spec='-L$libdir'
  10479. ;;
  10480. # This must be glibc/ELF.
  10481. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10482. version_type=linux # correct to gnu/linux during the next big refactor
  10483. need_lib_prefix=no
  10484. need_version=no
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10486. soname_spec='$libname$release$shared_ext$major'
  10487. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10488. shlibpath_var=LD_LIBRARY_PATH
  10489. shlibpath_overrides_runpath=no
  10490. # Some binutils ld are patched to set DT_RUNPATH
  10491. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10492. $as_echo_n "(cached) " >&6
  10493. else
  10494. lt_cv_shlibpath_overrides_runpath=no
  10495. save_LDFLAGS=$LDFLAGS
  10496. save_libdir=$libdir
  10497. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10498. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main ()
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_c_try_link "$LINENO"; then :
  10509. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10510. lt_cv_shlibpath_overrides_runpath=yes
  10511. fi
  10512. fi
  10513. rm -f core conftest.err conftest.$ac_objext \
  10514. conftest$ac_exeext conftest.$ac_ext
  10515. LDFLAGS=$save_LDFLAGS
  10516. libdir=$save_libdir
  10517. fi
  10518. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10519. # This implies no fast_install, which is unacceptable.
  10520. # Some rework will be needed to allow for fast_install
  10521. # before this can be enabled.
  10522. hardcode_into_libs=yes
  10523. # Ideally, we could use ldconfig to report *all* directores which are
  10524. # searched for libraries, however this is still not possible. Aside from not
  10525. # being certain /sbin/ldconfig is available, command
  10526. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10527. # even though it is searched at run-time. Try to do the best guess by
  10528. # appending ld.so.conf contents (and includes) to the search path.
  10529. if test -f /etc/ld.so.conf; then
  10530. 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' ' '`
  10531. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10532. fi
  10533. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10534. # powerpc, because MkLinux only supported shared libraries with the
  10535. # GNU dynamic linker. Since this was broken with cross compilers,
  10536. # most powerpc-linux boxes support dynamic linking these days and
  10537. # people can always --disable-shared, the test was removed, and we
  10538. # assume the GNU/Linux dynamic linker is in use.
  10539. dynamic_linker='GNU/Linux ld.so'
  10540. ;;
  10541. netbsdelf*-gnu)
  10542. version_type=linux
  10543. need_lib_prefix=no
  10544. need_version=no
  10545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10546. soname_spec='${libname}${release}${shared_ext}$major'
  10547. shlibpath_var=LD_LIBRARY_PATH
  10548. shlibpath_overrides_runpath=no
  10549. hardcode_into_libs=yes
  10550. dynamic_linker='NetBSD ld.elf_so'
  10551. ;;
  10552. netbsd*)
  10553. version_type=sunos
  10554. need_lib_prefix=no
  10555. need_version=no
  10556. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10557. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10558. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10559. dynamic_linker='NetBSD (a.out) ld.so'
  10560. else
  10561. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10562. soname_spec='$libname$release$shared_ext$major'
  10563. dynamic_linker='NetBSD ld.elf_so'
  10564. fi
  10565. shlibpath_var=LD_LIBRARY_PATH
  10566. shlibpath_overrides_runpath=yes
  10567. hardcode_into_libs=yes
  10568. ;;
  10569. newsos6)
  10570. version_type=linux # correct to gnu/linux during the next big refactor
  10571. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10572. shlibpath_var=LD_LIBRARY_PATH
  10573. shlibpath_overrides_runpath=yes
  10574. ;;
  10575. *nto* | *qnx*)
  10576. version_type=qnx
  10577. need_lib_prefix=no
  10578. need_version=no
  10579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10580. soname_spec='$libname$release$shared_ext$major'
  10581. shlibpath_var=LD_LIBRARY_PATH
  10582. shlibpath_overrides_runpath=no
  10583. hardcode_into_libs=yes
  10584. dynamic_linker='ldqnx.so'
  10585. ;;
  10586. openbsd* | bitrig*)
  10587. version_type=sunos
  10588. sys_lib_dlsearch_path_spec=/usr/lib
  10589. need_lib_prefix=no
  10590. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10591. need_version=no
  10592. else
  10593. need_version=yes
  10594. fi
  10595. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10596. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10597. shlibpath_var=LD_LIBRARY_PATH
  10598. shlibpath_overrides_runpath=yes
  10599. ;;
  10600. os2*)
  10601. libname_spec='$name'
  10602. version_type=windows
  10603. shrext_cmds=.dll
  10604. need_version=no
  10605. need_lib_prefix=no
  10606. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10607. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10608. v=$($ECHO $release$versuffix | tr -d .-);
  10609. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10610. $ECHO $n$v`$shared_ext'
  10611. library_names_spec='${libname}_dll.$libext'
  10612. dynamic_linker='OS/2 ld.exe'
  10613. shlibpath_var=BEGINLIBPATH
  10614. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10615. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10616. postinstall_cmds='base_file=`basename \$file`~
  10617. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10618. dldir=$destdir/`dirname \$dlpath`~
  10619. test -d \$dldir || mkdir -p \$dldir~
  10620. $install_prog $dir/$dlname \$dldir/$dlname~
  10621. chmod a+x \$dldir/$dlname~
  10622. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10623. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10624. fi'
  10625. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10626. dlpath=$dir/\$dldll~
  10627. $RM \$dlpath'
  10628. ;;
  10629. osf3* | osf4* | osf5*)
  10630. version_type=osf
  10631. need_lib_prefix=no
  10632. need_version=no
  10633. soname_spec='$libname$release$shared_ext$major'
  10634. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10635. shlibpath_var=LD_LIBRARY_PATH
  10636. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10637. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10638. ;;
  10639. rdos*)
  10640. dynamic_linker=no
  10641. ;;
  10642. solaris*)
  10643. version_type=linux # correct to gnu/linux during the next big refactor
  10644. need_lib_prefix=no
  10645. need_version=no
  10646. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10647. soname_spec='$libname$release$shared_ext$major'
  10648. shlibpath_var=LD_LIBRARY_PATH
  10649. shlibpath_overrides_runpath=yes
  10650. hardcode_into_libs=yes
  10651. # ldd complains unless libraries are executable
  10652. postinstall_cmds='chmod +x $lib'
  10653. ;;
  10654. sunos4*)
  10655. version_type=sunos
  10656. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10657. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10658. shlibpath_var=LD_LIBRARY_PATH
  10659. shlibpath_overrides_runpath=yes
  10660. if test yes = "$with_gnu_ld"; then
  10661. need_lib_prefix=no
  10662. fi
  10663. need_version=yes
  10664. ;;
  10665. sysv4 | sysv4.3*)
  10666. version_type=linux # correct to gnu/linux during the next big refactor
  10667. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10668. soname_spec='$libname$release$shared_ext$major'
  10669. shlibpath_var=LD_LIBRARY_PATH
  10670. case $host_vendor in
  10671. sni)
  10672. shlibpath_overrides_runpath=no
  10673. need_lib_prefix=no
  10674. runpath_var=LD_RUN_PATH
  10675. ;;
  10676. siemens)
  10677. need_lib_prefix=no
  10678. ;;
  10679. motorola)
  10680. need_lib_prefix=no
  10681. need_version=no
  10682. shlibpath_overrides_runpath=no
  10683. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10684. ;;
  10685. esac
  10686. ;;
  10687. sysv4*MP*)
  10688. if test -d /usr/nec; then
  10689. version_type=linux # correct to gnu/linux during the next big refactor
  10690. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10691. soname_spec='$libname$shared_ext.$major'
  10692. shlibpath_var=LD_LIBRARY_PATH
  10693. fi
  10694. ;;
  10695. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10696. version_type=sco
  10697. need_lib_prefix=no
  10698. need_version=no
  10699. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10700. soname_spec='$libname$release$shared_ext$major'
  10701. shlibpath_var=LD_LIBRARY_PATH
  10702. shlibpath_overrides_runpath=yes
  10703. hardcode_into_libs=yes
  10704. if test yes = "$with_gnu_ld"; then
  10705. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10706. else
  10707. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10708. case $host_os in
  10709. sco3.2v5*)
  10710. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10711. ;;
  10712. esac
  10713. fi
  10714. sys_lib_dlsearch_path_spec='/usr/lib'
  10715. ;;
  10716. tpf*)
  10717. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10718. version_type=linux # correct to gnu/linux during the next big refactor
  10719. need_lib_prefix=no
  10720. need_version=no
  10721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10722. shlibpath_var=LD_LIBRARY_PATH
  10723. shlibpath_overrides_runpath=no
  10724. hardcode_into_libs=yes
  10725. ;;
  10726. uts4*)
  10727. version_type=linux # correct to gnu/linux during the next big refactor
  10728. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10729. soname_spec='$libname$release$shared_ext$major'
  10730. shlibpath_var=LD_LIBRARY_PATH
  10731. ;;
  10732. *)
  10733. dynamic_linker=no
  10734. ;;
  10735. esac
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10737. $as_echo "$dynamic_linker" >&6; }
  10738. test no = "$dynamic_linker" && can_build_shared=no
  10739. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10740. if test yes = "$GCC"; then
  10741. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10742. fi
  10743. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10744. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10745. fi
  10746. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10747. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10748. fi
  10749. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10750. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10751. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10752. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10753. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10754. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10756. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10757. hardcode_action=
  10758. if test -n "$hardcode_libdir_flag_spec" ||
  10759. test -n "$runpath_var" ||
  10760. test yes = "$hardcode_automatic"; then
  10761. # We can hardcode non-existent directories.
  10762. if test no != "$hardcode_direct" &&
  10763. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10764. # have to relink, otherwise we might link with an installed library
  10765. # when we should be linking with a yet-to-be-installed one
  10766. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10767. test no != "$hardcode_minus_L"; then
  10768. # Linking always hardcodes the temporary library directory.
  10769. hardcode_action=relink
  10770. else
  10771. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10772. hardcode_action=immediate
  10773. fi
  10774. else
  10775. # We cannot hardcode anything, or else we can only hardcode existing
  10776. # directories.
  10777. hardcode_action=unsupported
  10778. fi
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10780. $as_echo "$hardcode_action" >&6; }
  10781. if test relink = "$hardcode_action" ||
  10782. test yes = "$inherit_rpath"; then
  10783. # Fast installation is not supported
  10784. enable_fast_install=no
  10785. elif test yes = "$shlibpath_overrides_runpath" ||
  10786. test no = "$enable_shared"; then
  10787. # Fast installation is not necessary
  10788. enable_fast_install=needless
  10789. fi
  10790. if test yes != "$enable_dlopen"; then
  10791. enable_dlopen=unknown
  10792. enable_dlopen_self=unknown
  10793. enable_dlopen_self_static=unknown
  10794. else
  10795. lt_cv_dlopen=no
  10796. lt_cv_dlopen_libs=
  10797. case $host_os in
  10798. beos*)
  10799. lt_cv_dlopen=load_add_on
  10800. lt_cv_dlopen_libs=
  10801. lt_cv_dlopen_self=yes
  10802. ;;
  10803. mingw* | pw32* | cegcc*)
  10804. lt_cv_dlopen=LoadLibrary
  10805. lt_cv_dlopen_libs=
  10806. ;;
  10807. cygwin*)
  10808. lt_cv_dlopen=dlopen
  10809. lt_cv_dlopen_libs=
  10810. ;;
  10811. darwin*)
  10812. # if libdl is installed we need to link against it
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10814. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10815. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. ac_check_lib_save_LIBS=$LIBS
  10819. LIBS="-ldl $LIBS"
  10820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10821. /* end confdefs.h. */
  10822. /* Override any GCC internal prototype to avoid an error.
  10823. Use char because int might match the return type of a GCC
  10824. builtin and then its argument prototype would still apply. */
  10825. #ifdef __cplusplus
  10826. extern "C"
  10827. #endif
  10828. char dlopen ();
  10829. int
  10830. main ()
  10831. {
  10832. return dlopen ();
  10833. ;
  10834. return 0;
  10835. }
  10836. _ACEOF
  10837. if ac_fn_c_try_link "$LINENO"; then :
  10838. ac_cv_lib_dl_dlopen=yes
  10839. else
  10840. ac_cv_lib_dl_dlopen=no
  10841. fi
  10842. rm -f core conftest.err conftest.$ac_objext \
  10843. conftest$ac_exeext conftest.$ac_ext
  10844. LIBS=$ac_check_lib_save_LIBS
  10845. fi
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10847. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10848. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10849. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10850. else
  10851. lt_cv_dlopen=dyld
  10852. lt_cv_dlopen_libs=
  10853. lt_cv_dlopen_self=yes
  10854. fi
  10855. ;;
  10856. tpf*)
  10857. # Don't try to run any link tests for TPF. We know it's impossible
  10858. # because TPF is a cross-compiler, and we know how we open DSOs.
  10859. lt_cv_dlopen=dlopen
  10860. lt_cv_dlopen_libs=
  10861. lt_cv_dlopen_self=no
  10862. ;;
  10863. *)
  10864. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10865. if test "x$ac_cv_func_shl_load" = xyes; then :
  10866. lt_cv_dlopen=shl_load
  10867. else
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10869. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10870. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10871. $as_echo_n "(cached) " >&6
  10872. else
  10873. ac_check_lib_save_LIBS=$LIBS
  10874. LIBS="-ldld $LIBS"
  10875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10876. /* end confdefs.h. */
  10877. /* Override any GCC internal prototype to avoid an error.
  10878. Use char because int might match the return type of a GCC
  10879. builtin and then its argument prototype would still apply. */
  10880. #ifdef __cplusplus
  10881. extern "C"
  10882. #endif
  10883. char shl_load ();
  10884. int
  10885. main ()
  10886. {
  10887. return shl_load ();
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_c_try_link "$LINENO"; then :
  10893. ac_cv_lib_dld_shl_load=yes
  10894. else
  10895. ac_cv_lib_dld_shl_load=no
  10896. fi
  10897. rm -f core conftest.err conftest.$ac_objext \
  10898. conftest$ac_exeext conftest.$ac_ext
  10899. LIBS=$ac_check_lib_save_LIBS
  10900. fi
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10902. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10903. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10904. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10905. else
  10906. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10907. if test "x$ac_cv_func_dlopen" = xyes; then :
  10908. lt_cv_dlopen=dlopen
  10909. else
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10911. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10912. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10913. $as_echo_n "(cached) " >&6
  10914. else
  10915. ac_check_lib_save_LIBS=$LIBS
  10916. LIBS="-ldl $LIBS"
  10917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10918. /* end confdefs.h. */
  10919. /* Override any GCC internal prototype to avoid an error.
  10920. Use char because int might match the return type of a GCC
  10921. builtin and then its argument prototype would still apply. */
  10922. #ifdef __cplusplus
  10923. extern "C"
  10924. #endif
  10925. char dlopen ();
  10926. int
  10927. main ()
  10928. {
  10929. return dlopen ();
  10930. ;
  10931. return 0;
  10932. }
  10933. _ACEOF
  10934. if ac_fn_c_try_link "$LINENO"; then :
  10935. ac_cv_lib_dl_dlopen=yes
  10936. else
  10937. ac_cv_lib_dl_dlopen=no
  10938. fi
  10939. rm -f core conftest.err conftest.$ac_objext \
  10940. conftest$ac_exeext conftest.$ac_ext
  10941. LIBS=$ac_check_lib_save_LIBS
  10942. fi
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10944. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10945. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10946. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10947. else
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10949. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10950. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. ac_check_lib_save_LIBS=$LIBS
  10954. LIBS="-lsvld $LIBS"
  10955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10956. /* end confdefs.h. */
  10957. /* Override any GCC internal prototype to avoid an error.
  10958. Use char because int might match the return type of a GCC
  10959. builtin and then its argument prototype would still apply. */
  10960. #ifdef __cplusplus
  10961. extern "C"
  10962. #endif
  10963. char dlopen ();
  10964. int
  10965. main ()
  10966. {
  10967. return dlopen ();
  10968. ;
  10969. return 0;
  10970. }
  10971. _ACEOF
  10972. if ac_fn_c_try_link "$LINENO"; then :
  10973. ac_cv_lib_svld_dlopen=yes
  10974. else
  10975. ac_cv_lib_svld_dlopen=no
  10976. fi
  10977. rm -f core conftest.err conftest.$ac_objext \
  10978. conftest$ac_exeext conftest.$ac_ext
  10979. LIBS=$ac_check_lib_save_LIBS
  10980. fi
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10982. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10983. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10984. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10985. else
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10987. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10988. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10989. $as_echo_n "(cached) " >&6
  10990. else
  10991. ac_check_lib_save_LIBS=$LIBS
  10992. LIBS="-ldld $LIBS"
  10993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10994. /* end confdefs.h. */
  10995. /* Override any GCC internal prototype to avoid an error.
  10996. Use char because int might match the return type of a GCC
  10997. builtin and then its argument prototype would still apply. */
  10998. #ifdef __cplusplus
  10999. extern "C"
  11000. #endif
  11001. char dld_link ();
  11002. int
  11003. main ()
  11004. {
  11005. return dld_link ();
  11006. ;
  11007. return 0;
  11008. }
  11009. _ACEOF
  11010. if ac_fn_c_try_link "$LINENO"; then :
  11011. ac_cv_lib_dld_dld_link=yes
  11012. else
  11013. ac_cv_lib_dld_dld_link=no
  11014. fi
  11015. rm -f core conftest.err conftest.$ac_objext \
  11016. conftest$ac_exeext conftest.$ac_ext
  11017. LIBS=$ac_check_lib_save_LIBS
  11018. fi
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11020. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11021. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11022. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11023. fi
  11024. fi
  11025. fi
  11026. fi
  11027. fi
  11028. fi
  11029. ;;
  11030. esac
  11031. if test no = "$lt_cv_dlopen"; then
  11032. enable_dlopen=no
  11033. else
  11034. enable_dlopen=yes
  11035. fi
  11036. case $lt_cv_dlopen in
  11037. dlopen)
  11038. save_CPPFLAGS=$CPPFLAGS
  11039. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11040. save_LDFLAGS=$LDFLAGS
  11041. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11042. save_LIBS=$LIBS
  11043. LIBS="$lt_cv_dlopen_libs $LIBS"
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11045. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11046. if ${lt_cv_dlopen_self+:} false; then :
  11047. $as_echo_n "(cached) " >&6
  11048. else
  11049. if test yes = "$cross_compiling"; then :
  11050. lt_cv_dlopen_self=cross
  11051. else
  11052. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11053. lt_status=$lt_dlunknown
  11054. cat > conftest.$ac_ext <<_LT_EOF
  11055. #line $LINENO "configure"
  11056. #include "confdefs.h"
  11057. #if HAVE_DLFCN_H
  11058. #include <dlfcn.h>
  11059. #endif
  11060. #include <stdio.h>
  11061. #ifdef RTLD_GLOBAL
  11062. # define LT_DLGLOBAL RTLD_GLOBAL
  11063. #else
  11064. # ifdef DL_GLOBAL
  11065. # define LT_DLGLOBAL DL_GLOBAL
  11066. # else
  11067. # define LT_DLGLOBAL 0
  11068. # endif
  11069. #endif
  11070. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11071. find out it does not work in some platform. */
  11072. #ifndef LT_DLLAZY_OR_NOW
  11073. # ifdef RTLD_LAZY
  11074. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11075. # else
  11076. # ifdef DL_LAZY
  11077. # define LT_DLLAZY_OR_NOW DL_LAZY
  11078. # else
  11079. # ifdef RTLD_NOW
  11080. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11081. # else
  11082. # ifdef DL_NOW
  11083. # define LT_DLLAZY_OR_NOW DL_NOW
  11084. # else
  11085. # define LT_DLLAZY_OR_NOW 0
  11086. # endif
  11087. # endif
  11088. # endif
  11089. # endif
  11090. #endif
  11091. /* When -fvisibility=hidden is used, assume the code has been annotated
  11092. correspondingly for the symbols needed. */
  11093. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11094. int fnord () __attribute__((visibility("default")));
  11095. #endif
  11096. int fnord () { return 42; }
  11097. int main ()
  11098. {
  11099. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11100. int status = $lt_dlunknown;
  11101. if (self)
  11102. {
  11103. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11104. else
  11105. {
  11106. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11107. else puts (dlerror ());
  11108. }
  11109. /* dlclose (self); */
  11110. }
  11111. else
  11112. puts (dlerror ());
  11113. return status;
  11114. }
  11115. _LT_EOF
  11116. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11117. (eval $ac_link) 2>&5
  11118. ac_status=$?
  11119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11120. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11121. (./conftest; exit; ) >&5 2>/dev/null
  11122. lt_status=$?
  11123. case x$lt_status in
  11124. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11125. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11126. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11127. esac
  11128. else :
  11129. # compilation failed
  11130. lt_cv_dlopen_self=no
  11131. fi
  11132. fi
  11133. rm -fr conftest*
  11134. fi
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11136. $as_echo "$lt_cv_dlopen_self" >&6; }
  11137. if test yes = "$lt_cv_dlopen_self"; then
  11138. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11140. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11141. if ${lt_cv_dlopen_self_static+:} false; then :
  11142. $as_echo_n "(cached) " >&6
  11143. else
  11144. if test yes = "$cross_compiling"; then :
  11145. lt_cv_dlopen_self_static=cross
  11146. else
  11147. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11148. lt_status=$lt_dlunknown
  11149. cat > conftest.$ac_ext <<_LT_EOF
  11150. #line $LINENO "configure"
  11151. #include "confdefs.h"
  11152. #if HAVE_DLFCN_H
  11153. #include <dlfcn.h>
  11154. #endif
  11155. #include <stdio.h>
  11156. #ifdef RTLD_GLOBAL
  11157. # define LT_DLGLOBAL RTLD_GLOBAL
  11158. #else
  11159. # ifdef DL_GLOBAL
  11160. # define LT_DLGLOBAL DL_GLOBAL
  11161. # else
  11162. # define LT_DLGLOBAL 0
  11163. # endif
  11164. #endif
  11165. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11166. find out it does not work in some platform. */
  11167. #ifndef LT_DLLAZY_OR_NOW
  11168. # ifdef RTLD_LAZY
  11169. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11170. # else
  11171. # ifdef DL_LAZY
  11172. # define LT_DLLAZY_OR_NOW DL_LAZY
  11173. # else
  11174. # ifdef RTLD_NOW
  11175. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11176. # else
  11177. # ifdef DL_NOW
  11178. # define LT_DLLAZY_OR_NOW DL_NOW
  11179. # else
  11180. # define LT_DLLAZY_OR_NOW 0
  11181. # endif
  11182. # endif
  11183. # endif
  11184. # endif
  11185. #endif
  11186. /* When -fvisibility=hidden is used, assume the code has been annotated
  11187. correspondingly for the symbols needed. */
  11188. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11189. int fnord () __attribute__((visibility("default")));
  11190. #endif
  11191. int fnord () { return 42; }
  11192. int main ()
  11193. {
  11194. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11195. int status = $lt_dlunknown;
  11196. if (self)
  11197. {
  11198. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11199. else
  11200. {
  11201. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11202. else puts (dlerror ());
  11203. }
  11204. /* dlclose (self); */
  11205. }
  11206. else
  11207. puts (dlerror ());
  11208. return status;
  11209. }
  11210. _LT_EOF
  11211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11212. (eval $ac_link) 2>&5
  11213. ac_status=$?
  11214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11215. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11216. (./conftest; exit; ) >&5 2>/dev/null
  11217. lt_status=$?
  11218. case x$lt_status in
  11219. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11220. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11221. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11222. esac
  11223. else :
  11224. # compilation failed
  11225. lt_cv_dlopen_self_static=no
  11226. fi
  11227. fi
  11228. rm -fr conftest*
  11229. fi
  11230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11231. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11232. fi
  11233. CPPFLAGS=$save_CPPFLAGS
  11234. LDFLAGS=$save_LDFLAGS
  11235. LIBS=$save_LIBS
  11236. ;;
  11237. esac
  11238. case $lt_cv_dlopen_self in
  11239. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11240. *) enable_dlopen_self=unknown ;;
  11241. esac
  11242. case $lt_cv_dlopen_self_static in
  11243. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11244. *) enable_dlopen_self_static=unknown ;;
  11245. esac
  11246. fi
  11247. striplib=
  11248. old_striplib=
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11250. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11251. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11252. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11253. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11255. $as_echo "yes" >&6; }
  11256. else
  11257. # FIXME - insert some real tests, host_os isn't really good enough
  11258. case $host_os in
  11259. darwin*)
  11260. if test -n "$STRIP"; then
  11261. striplib="$STRIP -x"
  11262. old_striplib="$STRIP -S"
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11264. $as_echo "yes" >&6; }
  11265. else
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. $as_echo "no" >&6; }
  11268. fi
  11269. ;;
  11270. *)
  11271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11272. $as_echo "no" >&6; }
  11273. ;;
  11274. esac
  11275. fi
  11276. # Report what library types will actually be built
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11278. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11280. $as_echo "$can_build_shared" >&6; }
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11282. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11283. test no = "$can_build_shared" && enable_shared=no
  11284. # On AIX, shared libraries and static libraries use the same namespace, and
  11285. # are all built from PIC.
  11286. case $host_os in
  11287. aix3*)
  11288. test yes = "$enable_shared" && enable_static=no
  11289. if test -n "$RANLIB"; then
  11290. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11291. postinstall_cmds='$RANLIB $lib'
  11292. fi
  11293. ;;
  11294. aix[4-9]*)
  11295. if test ia64 != "$host_cpu"; then
  11296. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11297. yes,aix,yes) ;; # shared object as lib.so file only
  11298. yes,svr4,*) ;; # shared object as lib.so archive member only
  11299. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11300. esac
  11301. fi
  11302. ;;
  11303. esac
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11305. $as_echo "$enable_shared" >&6; }
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11307. $as_echo_n "checking whether to build static libraries... " >&6; }
  11308. # Make sure either enable_shared or enable_static is yes.
  11309. test yes = "$enable_shared" || enable_static=yes
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11311. $as_echo "$enable_static" >&6; }
  11312. fi
  11313. ac_ext=c
  11314. ac_cpp='$CPP $CPPFLAGS'
  11315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11318. CC=$lt_save_CC
  11319. ac_config_commands="$ac_config_commands libtool"
  11320. # Only expand once:
  11321. ac_ext=c
  11322. ac_cpp='$CPP $CPPFLAGS'
  11323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11326. if test -n "$ac_tool_prefix"; then
  11327. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11328. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11330. $as_echo_n "checking for $ac_word... " >&6; }
  11331. if ${ac_cv_prog_CC+:} false; then :
  11332. $as_echo_n "(cached) " >&6
  11333. else
  11334. if test -n "$CC"; then
  11335. ac_cv_prog_CC="$CC" # Let the user override the test.
  11336. else
  11337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11338. for as_dir in $PATH
  11339. do
  11340. IFS=$as_save_IFS
  11341. test -z "$as_dir" && as_dir=.
  11342. for ac_exec_ext in '' $ac_executable_extensions; do
  11343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11344. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11346. break 2
  11347. fi
  11348. done
  11349. done
  11350. IFS=$as_save_IFS
  11351. fi
  11352. fi
  11353. CC=$ac_cv_prog_CC
  11354. if test -n "$CC"; then
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11356. $as_echo "$CC" >&6; }
  11357. else
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11359. $as_echo "no" >&6; }
  11360. fi
  11361. fi
  11362. if test -z "$ac_cv_prog_CC"; then
  11363. ac_ct_CC=$CC
  11364. # Extract the first word of "gcc", so it can be a program name with args.
  11365. set dummy gcc; ac_word=$2
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11367. $as_echo_n "checking for $ac_word... " >&6; }
  11368. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11369. $as_echo_n "(cached) " >&6
  11370. else
  11371. if test -n "$ac_ct_CC"; then
  11372. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11373. else
  11374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11375. for as_dir in $PATH
  11376. do
  11377. IFS=$as_save_IFS
  11378. test -z "$as_dir" && as_dir=.
  11379. for ac_exec_ext in '' $ac_executable_extensions; do
  11380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11381. ac_cv_prog_ac_ct_CC="gcc"
  11382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11383. break 2
  11384. fi
  11385. done
  11386. done
  11387. IFS=$as_save_IFS
  11388. fi
  11389. fi
  11390. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11391. if test -n "$ac_ct_CC"; then
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11393. $as_echo "$ac_ct_CC" >&6; }
  11394. else
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11396. $as_echo "no" >&6; }
  11397. fi
  11398. if test "x$ac_ct_CC" = x; then
  11399. CC=""
  11400. else
  11401. case $cross_compiling:$ac_tool_warned in
  11402. yes:)
  11403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11405. ac_tool_warned=yes ;;
  11406. esac
  11407. CC=$ac_ct_CC
  11408. fi
  11409. else
  11410. CC="$ac_cv_prog_CC"
  11411. fi
  11412. if test -z "$CC"; then
  11413. if test -n "$ac_tool_prefix"; then
  11414. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11415. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11417. $as_echo_n "checking for $ac_word... " >&6; }
  11418. if ${ac_cv_prog_CC+:} false; then :
  11419. $as_echo_n "(cached) " >&6
  11420. else
  11421. if test -n "$CC"; then
  11422. ac_cv_prog_CC="$CC" # Let the user override the test.
  11423. else
  11424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11425. for as_dir in $PATH
  11426. do
  11427. IFS=$as_save_IFS
  11428. test -z "$as_dir" && as_dir=.
  11429. for ac_exec_ext in '' $ac_executable_extensions; do
  11430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11431. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11433. break 2
  11434. fi
  11435. done
  11436. done
  11437. IFS=$as_save_IFS
  11438. fi
  11439. fi
  11440. CC=$ac_cv_prog_CC
  11441. if test -n "$CC"; then
  11442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11443. $as_echo "$CC" >&6; }
  11444. else
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11446. $as_echo "no" >&6; }
  11447. fi
  11448. fi
  11449. fi
  11450. if test -z "$CC"; then
  11451. # Extract the first word of "cc", so it can be a program name with args.
  11452. set dummy cc; ac_word=$2
  11453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11454. $as_echo_n "checking for $ac_word... " >&6; }
  11455. if ${ac_cv_prog_CC+:} false; then :
  11456. $as_echo_n "(cached) " >&6
  11457. else
  11458. if test -n "$CC"; then
  11459. ac_cv_prog_CC="$CC" # Let the user override the test.
  11460. else
  11461. ac_prog_rejected=no
  11462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11463. for as_dir in $PATH
  11464. do
  11465. IFS=$as_save_IFS
  11466. test -z "$as_dir" && as_dir=.
  11467. for ac_exec_ext in '' $ac_executable_extensions; do
  11468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11469. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11470. ac_prog_rejected=yes
  11471. continue
  11472. fi
  11473. ac_cv_prog_CC="cc"
  11474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11475. break 2
  11476. fi
  11477. done
  11478. done
  11479. IFS=$as_save_IFS
  11480. if test $ac_prog_rejected = yes; then
  11481. # We found a bogon in the path, so make sure we never use it.
  11482. set dummy $ac_cv_prog_CC
  11483. shift
  11484. if test $# != 0; then
  11485. # We chose a different compiler from the bogus one.
  11486. # However, it has the same basename, so the bogon will be chosen
  11487. # first if we set CC to just the basename; use the full file name.
  11488. shift
  11489. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11490. fi
  11491. fi
  11492. fi
  11493. fi
  11494. CC=$ac_cv_prog_CC
  11495. if test -n "$CC"; then
  11496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11497. $as_echo "$CC" >&6; }
  11498. else
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11500. $as_echo "no" >&6; }
  11501. fi
  11502. fi
  11503. if test -z "$CC"; then
  11504. if test -n "$ac_tool_prefix"; then
  11505. for ac_prog in cl.exe
  11506. do
  11507. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11508. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11510. $as_echo_n "checking for $ac_word... " >&6; }
  11511. if ${ac_cv_prog_CC+:} false; then :
  11512. $as_echo_n "(cached) " >&6
  11513. else
  11514. if test -n "$CC"; then
  11515. ac_cv_prog_CC="$CC" # Let the user override the test.
  11516. else
  11517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11518. for as_dir in $PATH
  11519. do
  11520. IFS=$as_save_IFS
  11521. test -z "$as_dir" && as_dir=.
  11522. for ac_exec_ext in '' $ac_executable_extensions; do
  11523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11524. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11526. break 2
  11527. fi
  11528. done
  11529. done
  11530. IFS=$as_save_IFS
  11531. fi
  11532. fi
  11533. CC=$ac_cv_prog_CC
  11534. if test -n "$CC"; then
  11535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11536. $as_echo "$CC" >&6; }
  11537. else
  11538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11539. $as_echo "no" >&6; }
  11540. fi
  11541. test -n "$CC" && break
  11542. done
  11543. fi
  11544. if test -z "$CC"; then
  11545. ac_ct_CC=$CC
  11546. for ac_prog in cl.exe
  11547. do
  11548. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11549. set dummy $ac_prog; ac_word=$2
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11551. $as_echo_n "checking for $ac_word... " >&6; }
  11552. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11553. $as_echo_n "(cached) " >&6
  11554. else
  11555. if test -n "$ac_ct_CC"; then
  11556. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11557. else
  11558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11559. for as_dir in $PATH
  11560. do
  11561. IFS=$as_save_IFS
  11562. test -z "$as_dir" && as_dir=.
  11563. for ac_exec_ext in '' $ac_executable_extensions; do
  11564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11565. ac_cv_prog_ac_ct_CC="$ac_prog"
  11566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11567. break 2
  11568. fi
  11569. done
  11570. done
  11571. IFS=$as_save_IFS
  11572. fi
  11573. fi
  11574. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11575. if test -n "$ac_ct_CC"; then
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11577. $as_echo "$ac_ct_CC" >&6; }
  11578. else
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11580. $as_echo "no" >&6; }
  11581. fi
  11582. test -n "$ac_ct_CC" && break
  11583. done
  11584. if test "x$ac_ct_CC" = x; then
  11585. CC=""
  11586. else
  11587. case $cross_compiling:$ac_tool_warned in
  11588. yes:)
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11591. ac_tool_warned=yes ;;
  11592. esac
  11593. CC=$ac_ct_CC
  11594. fi
  11595. fi
  11596. fi
  11597. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11599. as_fn_error $? "no acceptable C compiler found in \$PATH
  11600. See \`config.log' for more details" "$LINENO" 5; }
  11601. # Provide some information about the compiler.
  11602. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11603. set X $ac_compile
  11604. ac_compiler=$2
  11605. for ac_option in --version -v -V -qversion; do
  11606. { { ac_try="$ac_compiler $ac_option >&5"
  11607. case "(($ac_try" in
  11608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11609. *) ac_try_echo=$ac_try;;
  11610. esac
  11611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11612. $as_echo "$ac_try_echo"; } >&5
  11613. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11614. ac_status=$?
  11615. if test -s conftest.err; then
  11616. sed '10a\
  11617. ... rest of stderr output deleted ...
  11618. 10q' conftest.err >conftest.er1
  11619. cat conftest.er1 >&5
  11620. fi
  11621. rm -f conftest.er1 conftest.err
  11622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11623. test $ac_status = 0; }
  11624. done
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11626. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11627. if ${ac_cv_c_compiler_gnu+:} false; then :
  11628. $as_echo_n "(cached) " >&6
  11629. else
  11630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11631. /* end confdefs.h. */
  11632. int
  11633. main ()
  11634. {
  11635. #ifndef __GNUC__
  11636. choke me
  11637. #endif
  11638. ;
  11639. return 0;
  11640. }
  11641. _ACEOF
  11642. if ac_fn_c_try_compile "$LINENO"; then :
  11643. ac_compiler_gnu=yes
  11644. else
  11645. ac_compiler_gnu=no
  11646. fi
  11647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11648. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11649. fi
  11650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11651. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11652. if test $ac_compiler_gnu = yes; then
  11653. GCC=yes
  11654. else
  11655. GCC=
  11656. fi
  11657. ac_test_CFLAGS=${CFLAGS+set}
  11658. ac_save_CFLAGS=$CFLAGS
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11660. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11661. if ${ac_cv_prog_cc_g+:} false; then :
  11662. $as_echo_n "(cached) " >&6
  11663. else
  11664. ac_save_c_werror_flag=$ac_c_werror_flag
  11665. ac_c_werror_flag=yes
  11666. ac_cv_prog_cc_g=no
  11667. CFLAGS="-g"
  11668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11669. /* end confdefs.h. */
  11670. int
  11671. main ()
  11672. {
  11673. ;
  11674. return 0;
  11675. }
  11676. _ACEOF
  11677. if ac_fn_c_try_compile "$LINENO"; then :
  11678. ac_cv_prog_cc_g=yes
  11679. else
  11680. CFLAGS=""
  11681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11682. /* end confdefs.h. */
  11683. int
  11684. main ()
  11685. {
  11686. ;
  11687. return 0;
  11688. }
  11689. _ACEOF
  11690. if ac_fn_c_try_compile "$LINENO"; then :
  11691. else
  11692. ac_c_werror_flag=$ac_save_c_werror_flag
  11693. CFLAGS="-g"
  11694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11695. /* end confdefs.h. */
  11696. int
  11697. main ()
  11698. {
  11699. ;
  11700. return 0;
  11701. }
  11702. _ACEOF
  11703. if ac_fn_c_try_compile "$LINENO"; then :
  11704. ac_cv_prog_cc_g=yes
  11705. fi
  11706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11707. fi
  11708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11709. fi
  11710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11711. ac_c_werror_flag=$ac_save_c_werror_flag
  11712. fi
  11713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11714. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11715. if test "$ac_test_CFLAGS" = set; then
  11716. CFLAGS=$ac_save_CFLAGS
  11717. elif test $ac_cv_prog_cc_g = yes; then
  11718. if test "$GCC" = yes; then
  11719. CFLAGS="-g -O2"
  11720. else
  11721. CFLAGS="-g"
  11722. fi
  11723. else
  11724. if test "$GCC" = yes; then
  11725. CFLAGS="-O2"
  11726. else
  11727. CFLAGS=
  11728. fi
  11729. fi
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11731. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11732. if ${ac_cv_prog_cc_c89+:} false; then :
  11733. $as_echo_n "(cached) " >&6
  11734. else
  11735. ac_cv_prog_cc_c89=no
  11736. ac_save_CC=$CC
  11737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11738. /* end confdefs.h. */
  11739. #include <stdarg.h>
  11740. #include <stdio.h>
  11741. struct stat;
  11742. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11743. struct buf { int x; };
  11744. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11745. static char *e (p, i)
  11746. char **p;
  11747. int i;
  11748. {
  11749. return p[i];
  11750. }
  11751. static char *f (char * (*g) (char **, int), char **p, ...)
  11752. {
  11753. char *s;
  11754. va_list v;
  11755. va_start (v,p);
  11756. s = g (p, va_arg (v,int));
  11757. va_end (v);
  11758. return s;
  11759. }
  11760. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11761. function prototypes and stuff, but not '\xHH' hex character constants.
  11762. These don't provoke an error unfortunately, instead are silently treated
  11763. as 'x'. The following induces an error, until -std is added to get
  11764. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11765. array size at least. It's necessary to write '\x00'==0 to get something
  11766. that's true only with -std. */
  11767. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11768. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11769. inside strings and character constants. */
  11770. #define FOO(x) 'x'
  11771. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11772. int test (int i, double x);
  11773. struct s1 {int (*f) (int a);};
  11774. struct s2 {int (*f) (double a);};
  11775. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11776. int argc;
  11777. char **argv;
  11778. int
  11779. main ()
  11780. {
  11781. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11782. ;
  11783. return 0;
  11784. }
  11785. _ACEOF
  11786. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11787. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11788. do
  11789. CC="$ac_save_CC $ac_arg"
  11790. if ac_fn_c_try_compile "$LINENO"; then :
  11791. ac_cv_prog_cc_c89=$ac_arg
  11792. fi
  11793. rm -f core conftest.err conftest.$ac_objext
  11794. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11795. done
  11796. rm -f conftest.$ac_ext
  11797. CC=$ac_save_CC
  11798. fi
  11799. # AC_CACHE_VAL
  11800. case "x$ac_cv_prog_cc_c89" in
  11801. x)
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11803. $as_echo "none needed" >&6; } ;;
  11804. xno)
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11806. $as_echo "unsupported" >&6; } ;;
  11807. *)
  11808. CC="$CC $ac_cv_prog_cc_c89"
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11810. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11811. esac
  11812. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11813. fi
  11814. ac_ext=c
  11815. ac_cpp='$CPP $CPPFLAGS'
  11816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11819. ac_ext=c
  11820. ac_cpp='$CPP $CPPFLAGS'
  11821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11825. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11826. if ${am_cv_prog_cc_c_o+:} false; then :
  11827. $as_echo_n "(cached) " >&6
  11828. else
  11829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11830. /* end confdefs.h. */
  11831. int
  11832. main ()
  11833. {
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. # Make sure it works both with $CC and with simple cc.
  11839. # Following AC_PROG_CC_C_O, we do the test twice because some
  11840. # compilers refuse to overwrite an existing .o file with -o,
  11841. # though they will create one.
  11842. am_cv_prog_cc_c_o=yes
  11843. for am_i in 1 2; do
  11844. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11845. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11846. ac_status=$?
  11847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11848. (exit $ac_status); } \
  11849. && test -f conftest2.$ac_objext; then
  11850. : OK
  11851. else
  11852. am_cv_prog_cc_c_o=no
  11853. break
  11854. fi
  11855. done
  11856. rm -f core conftest*
  11857. unset am_i
  11858. fi
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11860. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11861. if test "$am_cv_prog_cc_c_o" != yes; then
  11862. # Losing compiler, so override with the script.
  11863. # FIXME: It is wrong to rewrite CC.
  11864. # But if we don't then we get into trouble of one sort or another.
  11865. # A longer-term fix would be to have automake use am__CC in this case,
  11866. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11867. CC="$am_aux_dir/compile $CC"
  11868. fi
  11869. ac_ext=c
  11870. ac_cpp='$CPP $CPPFLAGS'
  11871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11874. depcc="$CC" am_compiler_list=
  11875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11876. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11877. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11878. $as_echo_n "(cached) " >&6
  11879. else
  11880. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11881. # We make a subdir and do the tests there. Otherwise we can end up
  11882. # making bogus files that we don't know about and never remove. For
  11883. # instance it was reported that on HP-UX the gcc test will end up
  11884. # making a dummy file named 'D' -- because '-MD' means "put the output
  11885. # in D".
  11886. rm -rf conftest.dir
  11887. mkdir conftest.dir
  11888. # Copy depcomp to subdir because otherwise we won't find it if we're
  11889. # using a relative directory.
  11890. cp "$am_depcomp" conftest.dir
  11891. cd conftest.dir
  11892. # We will build objects and dependencies in a subdirectory because
  11893. # it helps to detect inapplicable dependency modes. For instance
  11894. # both Tru64's cc and ICC support -MD to output dependencies as a
  11895. # side effect of compilation, but ICC will put the dependencies in
  11896. # the current directory while Tru64 will put them in the object
  11897. # directory.
  11898. mkdir sub
  11899. am_cv_CC_dependencies_compiler_type=none
  11900. if test "$am_compiler_list" = ""; then
  11901. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11902. fi
  11903. am__universal=false
  11904. case " $depcc " in #(
  11905. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11906. esac
  11907. for depmode in $am_compiler_list; do
  11908. # Setup a source with many dependencies, because some compilers
  11909. # like to wrap large dependency lists on column 80 (with \), and
  11910. # we should not choose a depcomp mode which is confused by this.
  11911. #
  11912. # We need to recreate these files for each test, as the compiler may
  11913. # overwrite some of them when testing with obscure command lines.
  11914. # This happens at least with the AIX C compiler.
  11915. : > sub/conftest.c
  11916. for i in 1 2 3 4 5 6; do
  11917. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11918. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11919. # Solaris 10 /bin/sh.
  11920. echo '/* dummy */' > sub/conftst$i.h
  11921. done
  11922. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11923. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11924. # mode. It turns out that the SunPro C++ compiler does not properly
  11925. # handle '-M -o', and we need to detect this. Also, some Intel
  11926. # versions had trouble with output in subdirs.
  11927. am__obj=sub/conftest.${OBJEXT-o}
  11928. am__minus_obj="-o $am__obj"
  11929. case $depmode in
  11930. gcc)
  11931. # This depmode causes a compiler race in universal mode.
  11932. test "$am__universal" = false || continue
  11933. ;;
  11934. nosideeffect)
  11935. # After this tag, mechanisms are not by side-effect, so they'll
  11936. # only be used when explicitly requested.
  11937. if test "x$enable_dependency_tracking" = xyes; then
  11938. continue
  11939. else
  11940. break
  11941. fi
  11942. ;;
  11943. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11944. # This compiler won't grok '-c -o', but also, the minuso test has
  11945. # not run yet. These depmodes are late enough in the game, and
  11946. # so weak that their functioning should not be impacted.
  11947. am__obj=conftest.${OBJEXT-o}
  11948. am__minus_obj=
  11949. ;;
  11950. none) break ;;
  11951. esac
  11952. if depmode=$depmode \
  11953. source=sub/conftest.c object=$am__obj \
  11954. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11955. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11956. >/dev/null 2>conftest.err &&
  11957. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11958. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11959. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11960. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11961. # icc doesn't choke on unknown options, it will just issue warnings
  11962. # or remarks (even with -Werror). So we grep stderr for any message
  11963. # that says an option was ignored or not supported.
  11964. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11965. # icc: Command line warning: ignoring option '-M'; no argument required
  11966. # The diagnosis changed in icc 8.0:
  11967. # icc: Command line remark: option '-MP' not supported
  11968. if (grep 'ignoring option' conftest.err ||
  11969. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11970. am_cv_CC_dependencies_compiler_type=$depmode
  11971. break
  11972. fi
  11973. fi
  11974. done
  11975. cd ..
  11976. rm -rf conftest.dir
  11977. else
  11978. am_cv_CC_dependencies_compiler_type=none
  11979. fi
  11980. fi
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11982. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11983. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11984. if
  11985. test "x$enable_dependency_tracking" != xno \
  11986. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11987. am__fastdepCC_TRUE=
  11988. am__fastdepCC_FALSE='#'
  11989. else
  11990. am__fastdepCC_TRUE='#'
  11991. am__fastdepCC_FALSE=
  11992. fi
  11993. ac_ext=cpp
  11994. ac_cpp='$CXXCPP $CPPFLAGS'
  11995. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11996. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11997. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11998. if test -z "$CXX"; then
  11999. if test -n "$CCC"; then
  12000. CXX=$CCC
  12001. else
  12002. if test -n "$ac_tool_prefix"; then
  12003. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12004. do
  12005. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12006. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12008. $as_echo_n "checking for $ac_word... " >&6; }
  12009. if ${ac_cv_prog_CXX+:} false; then :
  12010. $as_echo_n "(cached) " >&6
  12011. else
  12012. if test -n "$CXX"; then
  12013. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12014. else
  12015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12016. for as_dir in $PATH
  12017. do
  12018. IFS=$as_save_IFS
  12019. test -z "$as_dir" && as_dir=.
  12020. for ac_exec_ext in '' $ac_executable_extensions; do
  12021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12022. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12024. break 2
  12025. fi
  12026. done
  12027. done
  12028. IFS=$as_save_IFS
  12029. fi
  12030. fi
  12031. CXX=$ac_cv_prog_CXX
  12032. if test -n "$CXX"; then
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12034. $as_echo "$CXX" >&6; }
  12035. else
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12037. $as_echo "no" >&6; }
  12038. fi
  12039. test -n "$CXX" && break
  12040. done
  12041. fi
  12042. if test -z "$CXX"; then
  12043. ac_ct_CXX=$CXX
  12044. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12045. do
  12046. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12047. set dummy $ac_prog; ac_word=$2
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12049. $as_echo_n "checking for $ac_word... " >&6; }
  12050. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12051. $as_echo_n "(cached) " >&6
  12052. else
  12053. if test -n "$ac_ct_CXX"; then
  12054. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12055. else
  12056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12057. for as_dir in $PATH
  12058. do
  12059. IFS=$as_save_IFS
  12060. test -z "$as_dir" && as_dir=.
  12061. for ac_exec_ext in '' $ac_executable_extensions; do
  12062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12063. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12065. break 2
  12066. fi
  12067. done
  12068. done
  12069. IFS=$as_save_IFS
  12070. fi
  12071. fi
  12072. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12073. if test -n "$ac_ct_CXX"; then
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12075. $as_echo "$ac_ct_CXX" >&6; }
  12076. else
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12078. $as_echo "no" >&6; }
  12079. fi
  12080. test -n "$ac_ct_CXX" && break
  12081. done
  12082. if test "x$ac_ct_CXX" = x; then
  12083. CXX="g++"
  12084. else
  12085. case $cross_compiling:$ac_tool_warned in
  12086. yes:)
  12087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12089. ac_tool_warned=yes ;;
  12090. esac
  12091. CXX=$ac_ct_CXX
  12092. fi
  12093. fi
  12094. fi
  12095. fi
  12096. # Provide some information about the compiler.
  12097. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12098. set X $ac_compile
  12099. ac_compiler=$2
  12100. for ac_option in --version -v -V -qversion; do
  12101. { { ac_try="$ac_compiler $ac_option >&5"
  12102. case "(($ac_try" in
  12103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12104. *) ac_try_echo=$ac_try;;
  12105. esac
  12106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12107. $as_echo "$ac_try_echo"; } >&5
  12108. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12109. ac_status=$?
  12110. if test -s conftest.err; then
  12111. sed '10a\
  12112. ... rest of stderr output deleted ...
  12113. 10q' conftest.err >conftest.er1
  12114. cat conftest.er1 >&5
  12115. fi
  12116. rm -f conftest.er1 conftest.err
  12117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12118. test $ac_status = 0; }
  12119. done
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12121. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12122. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12123. $as_echo_n "(cached) " >&6
  12124. else
  12125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12126. /* end confdefs.h. */
  12127. int
  12128. main ()
  12129. {
  12130. #ifndef __GNUC__
  12131. choke me
  12132. #endif
  12133. ;
  12134. return 0;
  12135. }
  12136. _ACEOF
  12137. if ac_fn_cxx_try_compile "$LINENO"; then :
  12138. ac_compiler_gnu=yes
  12139. else
  12140. ac_compiler_gnu=no
  12141. fi
  12142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12143. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12144. fi
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12146. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12147. if test $ac_compiler_gnu = yes; then
  12148. GXX=yes
  12149. else
  12150. GXX=
  12151. fi
  12152. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12153. ac_save_CXXFLAGS=$CXXFLAGS
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12155. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12156. if ${ac_cv_prog_cxx_g+:} false; then :
  12157. $as_echo_n "(cached) " >&6
  12158. else
  12159. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12160. ac_cxx_werror_flag=yes
  12161. ac_cv_prog_cxx_g=no
  12162. CXXFLAGS="-g"
  12163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12164. /* end confdefs.h. */
  12165. int
  12166. main ()
  12167. {
  12168. ;
  12169. return 0;
  12170. }
  12171. _ACEOF
  12172. if ac_fn_cxx_try_compile "$LINENO"; then :
  12173. ac_cv_prog_cxx_g=yes
  12174. else
  12175. CXXFLAGS=""
  12176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12177. /* end confdefs.h. */
  12178. int
  12179. main ()
  12180. {
  12181. ;
  12182. return 0;
  12183. }
  12184. _ACEOF
  12185. if ac_fn_cxx_try_compile "$LINENO"; then :
  12186. else
  12187. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12188. CXXFLAGS="-g"
  12189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12190. /* end confdefs.h. */
  12191. int
  12192. main ()
  12193. {
  12194. ;
  12195. return 0;
  12196. }
  12197. _ACEOF
  12198. if ac_fn_cxx_try_compile "$LINENO"; then :
  12199. ac_cv_prog_cxx_g=yes
  12200. fi
  12201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12202. fi
  12203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12204. fi
  12205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12206. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12207. fi
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12209. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12210. if test "$ac_test_CXXFLAGS" = set; then
  12211. CXXFLAGS=$ac_save_CXXFLAGS
  12212. elif test $ac_cv_prog_cxx_g = yes; then
  12213. if test "$GXX" = yes; then
  12214. CXXFLAGS="-g -O2"
  12215. else
  12216. CXXFLAGS="-g"
  12217. fi
  12218. else
  12219. if test "$GXX" = yes; then
  12220. CXXFLAGS="-O2"
  12221. else
  12222. CXXFLAGS=
  12223. fi
  12224. fi
  12225. ac_ext=c
  12226. ac_cpp='$CPP $CPPFLAGS'
  12227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12230. depcc="$CXX" am_compiler_list=
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12232. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12233. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12234. $as_echo_n "(cached) " >&6
  12235. else
  12236. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12237. # We make a subdir and do the tests there. Otherwise we can end up
  12238. # making bogus files that we don't know about and never remove. For
  12239. # instance it was reported that on HP-UX the gcc test will end up
  12240. # making a dummy file named 'D' -- because '-MD' means "put the output
  12241. # in D".
  12242. rm -rf conftest.dir
  12243. mkdir conftest.dir
  12244. # Copy depcomp to subdir because otherwise we won't find it if we're
  12245. # using a relative directory.
  12246. cp "$am_depcomp" conftest.dir
  12247. cd conftest.dir
  12248. # We will build objects and dependencies in a subdirectory because
  12249. # it helps to detect inapplicable dependency modes. For instance
  12250. # both Tru64's cc and ICC support -MD to output dependencies as a
  12251. # side effect of compilation, but ICC will put the dependencies in
  12252. # the current directory while Tru64 will put them in the object
  12253. # directory.
  12254. mkdir sub
  12255. am_cv_CXX_dependencies_compiler_type=none
  12256. if test "$am_compiler_list" = ""; then
  12257. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12258. fi
  12259. am__universal=false
  12260. case " $depcc " in #(
  12261. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12262. esac
  12263. for depmode in $am_compiler_list; do
  12264. # Setup a source with many dependencies, because some compilers
  12265. # like to wrap large dependency lists on column 80 (with \), and
  12266. # we should not choose a depcomp mode which is confused by this.
  12267. #
  12268. # We need to recreate these files for each test, as the compiler may
  12269. # overwrite some of them when testing with obscure command lines.
  12270. # This happens at least with the AIX C compiler.
  12271. : > sub/conftest.c
  12272. for i in 1 2 3 4 5 6; do
  12273. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12274. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12275. # Solaris 10 /bin/sh.
  12276. echo '/* dummy */' > sub/conftst$i.h
  12277. done
  12278. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12279. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12280. # mode. It turns out that the SunPro C++ compiler does not properly
  12281. # handle '-M -o', and we need to detect this. Also, some Intel
  12282. # versions had trouble with output in subdirs.
  12283. am__obj=sub/conftest.${OBJEXT-o}
  12284. am__minus_obj="-o $am__obj"
  12285. case $depmode in
  12286. gcc)
  12287. # This depmode causes a compiler race in universal mode.
  12288. test "$am__universal" = false || continue
  12289. ;;
  12290. nosideeffect)
  12291. # After this tag, mechanisms are not by side-effect, so they'll
  12292. # only be used when explicitly requested.
  12293. if test "x$enable_dependency_tracking" = xyes; then
  12294. continue
  12295. else
  12296. break
  12297. fi
  12298. ;;
  12299. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12300. # This compiler won't grok '-c -o', but also, the minuso test has
  12301. # not run yet. These depmodes are late enough in the game, and
  12302. # so weak that their functioning should not be impacted.
  12303. am__obj=conftest.${OBJEXT-o}
  12304. am__minus_obj=
  12305. ;;
  12306. none) break ;;
  12307. esac
  12308. if depmode=$depmode \
  12309. source=sub/conftest.c object=$am__obj \
  12310. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12311. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12312. >/dev/null 2>conftest.err &&
  12313. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12314. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12315. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12316. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12317. # icc doesn't choke on unknown options, it will just issue warnings
  12318. # or remarks (even with -Werror). So we grep stderr for any message
  12319. # that says an option was ignored or not supported.
  12320. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12321. # icc: Command line warning: ignoring option '-M'; no argument required
  12322. # The diagnosis changed in icc 8.0:
  12323. # icc: Command line remark: option '-MP' not supported
  12324. if (grep 'ignoring option' conftest.err ||
  12325. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12326. am_cv_CXX_dependencies_compiler_type=$depmode
  12327. break
  12328. fi
  12329. fi
  12330. done
  12331. cd ..
  12332. rm -rf conftest.dir
  12333. else
  12334. am_cv_CXX_dependencies_compiler_type=none
  12335. fi
  12336. fi
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12338. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12339. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12340. if
  12341. test "x$enable_dependency_tracking" != xno \
  12342. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12343. am__fastdepCXX_TRUE=
  12344. am__fastdepCXX_FALSE='#'
  12345. else
  12346. am__fastdepCXX_TRUE='#'
  12347. am__fastdepCXX_FALSE=
  12348. fi
  12349. func_stripname_cnf ()
  12350. {
  12351. case $2 in
  12352. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12353. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12354. esac
  12355. } # func_stripname_cnf
  12356. if test -n "$CXX" && ( test no != "$CXX" &&
  12357. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12358. (test g++ != "$CXX"))); then
  12359. ac_ext=cpp
  12360. ac_cpp='$CXXCPP $CPPFLAGS'
  12361. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12362. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12363. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12365. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12366. if test -z "$CXXCPP"; then
  12367. if ${ac_cv_prog_CXXCPP+:} false; then :
  12368. $as_echo_n "(cached) " >&6
  12369. else
  12370. # Double quotes because CXXCPP needs to be expanded
  12371. for CXXCPP in "$CXX -E" "/lib/cpp"
  12372. do
  12373. ac_preproc_ok=false
  12374. for ac_cxx_preproc_warn_flag in '' yes
  12375. do
  12376. # Use a header file that comes with gcc, so configuring glibc
  12377. # with a fresh cross-compiler works.
  12378. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12379. # <limits.h> exists even on freestanding compilers.
  12380. # On the NeXT, cc -E runs the code through the compiler's parser,
  12381. # not just through cpp. "Syntax error" is here to catch this case.
  12382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12383. /* end confdefs.h. */
  12384. #ifdef __STDC__
  12385. # include <limits.h>
  12386. #else
  12387. # include <assert.h>
  12388. #endif
  12389. Syntax error
  12390. _ACEOF
  12391. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12392. else
  12393. # Broken: fails on valid input.
  12394. continue
  12395. fi
  12396. rm -f conftest.err conftest.i conftest.$ac_ext
  12397. # OK, works on sane cases. Now check whether nonexistent headers
  12398. # can be detected and how.
  12399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12400. /* end confdefs.h. */
  12401. #include <ac_nonexistent.h>
  12402. _ACEOF
  12403. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12404. # Broken: success on invalid input.
  12405. continue
  12406. else
  12407. # Passes both tests.
  12408. ac_preproc_ok=:
  12409. break
  12410. fi
  12411. rm -f conftest.err conftest.i conftest.$ac_ext
  12412. done
  12413. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12414. rm -f conftest.i conftest.err conftest.$ac_ext
  12415. if $ac_preproc_ok; then :
  12416. break
  12417. fi
  12418. done
  12419. ac_cv_prog_CXXCPP=$CXXCPP
  12420. fi
  12421. CXXCPP=$ac_cv_prog_CXXCPP
  12422. else
  12423. ac_cv_prog_CXXCPP=$CXXCPP
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12426. $as_echo "$CXXCPP" >&6; }
  12427. ac_preproc_ok=false
  12428. for ac_cxx_preproc_warn_flag in '' yes
  12429. do
  12430. # Use a header file that comes with gcc, so configuring glibc
  12431. # with a fresh cross-compiler works.
  12432. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12433. # <limits.h> exists even on freestanding compilers.
  12434. # On the NeXT, cc -E runs the code through the compiler's parser,
  12435. # not just through cpp. "Syntax error" is here to catch this case.
  12436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12437. /* end confdefs.h. */
  12438. #ifdef __STDC__
  12439. # include <limits.h>
  12440. #else
  12441. # include <assert.h>
  12442. #endif
  12443. Syntax error
  12444. _ACEOF
  12445. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12446. else
  12447. # Broken: fails on valid input.
  12448. continue
  12449. fi
  12450. rm -f conftest.err conftest.i conftest.$ac_ext
  12451. # OK, works on sane cases. Now check whether nonexistent headers
  12452. # can be detected and how.
  12453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12454. /* end confdefs.h. */
  12455. #include <ac_nonexistent.h>
  12456. _ACEOF
  12457. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12458. # Broken: success on invalid input.
  12459. continue
  12460. else
  12461. # Passes both tests.
  12462. ac_preproc_ok=:
  12463. break
  12464. fi
  12465. rm -f conftest.err conftest.i conftest.$ac_ext
  12466. done
  12467. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12468. rm -f conftest.i conftest.err conftest.$ac_ext
  12469. if $ac_preproc_ok; then :
  12470. else
  12471. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12473. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12474. See \`config.log' for more details" "$LINENO" 5; }
  12475. fi
  12476. ac_ext=c
  12477. ac_cpp='$CPP $CPPFLAGS'
  12478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12481. else
  12482. _lt_caught_CXX_error=yes
  12483. fi
  12484. ac_ext=cpp
  12485. ac_cpp='$CXXCPP $CPPFLAGS'
  12486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12489. archive_cmds_need_lc_CXX=no
  12490. allow_undefined_flag_CXX=
  12491. always_export_symbols_CXX=no
  12492. archive_expsym_cmds_CXX=
  12493. compiler_needs_object_CXX=no
  12494. export_dynamic_flag_spec_CXX=
  12495. hardcode_direct_CXX=no
  12496. hardcode_direct_absolute_CXX=no
  12497. hardcode_libdir_flag_spec_CXX=
  12498. hardcode_libdir_separator_CXX=
  12499. hardcode_minus_L_CXX=no
  12500. hardcode_shlibpath_var_CXX=unsupported
  12501. hardcode_automatic_CXX=no
  12502. inherit_rpath_CXX=no
  12503. module_cmds_CXX=
  12504. module_expsym_cmds_CXX=
  12505. link_all_deplibs_CXX=unknown
  12506. old_archive_cmds_CXX=$old_archive_cmds
  12507. reload_flag_CXX=$reload_flag
  12508. reload_cmds_CXX=$reload_cmds
  12509. no_undefined_flag_CXX=
  12510. whole_archive_flag_spec_CXX=
  12511. enable_shared_with_static_runtimes_CXX=no
  12512. # Source file extension for C++ test sources.
  12513. ac_ext=cpp
  12514. # Object file extension for compiled C++ test sources.
  12515. objext=o
  12516. objext_CXX=$objext
  12517. # No sense in running all these tests if we already determined that
  12518. # the CXX compiler isn't working. Some variables (like enable_shared)
  12519. # are currently assumed to apply to all compilers on this platform,
  12520. # and will be corrupted by setting them based on a non-working compiler.
  12521. if test yes != "$_lt_caught_CXX_error"; then
  12522. # Code to be used in simple compile tests
  12523. lt_simple_compile_test_code="int some_variable = 0;"
  12524. # Code to be used in simple link tests
  12525. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12526. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12527. # If no C compiler was specified, use CC.
  12528. LTCC=${LTCC-"$CC"}
  12529. # If no C compiler flags were specified, use CFLAGS.
  12530. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12531. # Allow CC to be a program name with arguments.
  12532. compiler=$CC
  12533. # save warnings/boilerplate of simple test code
  12534. ac_outfile=conftest.$ac_objext
  12535. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12536. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12537. _lt_compiler_boilerplate=`cat conftest.err`
  12538. $RM conftest*
  12539. ac_outfile=conftest.$ac_objext
  12540. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12541. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12542. _lt_linker_boilerplate=`cat conftest.err`
  12543. $RM -r conftest*
  12544. # Allow CC to be a program name with arguments.
  12545. lt_save_CC=$CC
  12546. lt_save_CFLAGS=$CFLAGS
  12547. lt_save_LD=$LD
  12548. lt_save_GCC=$GCC
  12549. GCC=$GXX
  12550. lt_save_with_gnu_ld=$with_gnu_ld
  12551. lt_save_path_LD=$lt_cv_path_LD
  12552. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12553. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12554. else
  12555. $as_unset lt_cv_prog_gnu_ld
  12556. fi
  12557. if test -n "${lt_cv_path_LDCXX+set}"; then
  12558. lt_cv_path_LD=$lt_cv_path_LDCXX
  12559. else
  12560. $as_unset lt_cv_path_LD
  12561. fi
  12562. test -z "${LDCXX+set}" || LD=$LDCXX
  12563. CC=${CXX-"c++"}
  12564. CFLAGS=$CXXFLAGS
  12565. compiler=$CC
  12566. compiler_CXX=$CC
  12567. func_cc_basename $compiler
  12568. cc_basename=$func_cc_basename_result
  12569. if test -n "$compiler"; then
  12570. # We don't want -fno-exception when compiling C++ code, so set the
  12571. # no_builtin_flag separately
  12572. if test yes = "$GXX"; then
  12573. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12574. else
  12575. lt_prog_compiler_no_builtin_flag_CXX=
  12576. fi
  12577. if test yes = "$GXX"; then
  12578. # Set up default GNU C++ configuration
  12579. # Check whether --with-gnu-ld was given.
  12580. if test "${with_gnu_ld+set}" = set; then :
  12581. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12582. else
  12583. with_gnu_ld=no
  12584. fi
  12585. ac_prog=ld
  12586. if test yes = "$GCC"; then
  12587. # Check if gcc -print-prog-name=ld gives a path.
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12589. $as_echo_n "checking for ld used by $CC... " >&6; }
  12590. case $host in
  12591. *-*-mingw*)
  12592. # gcc leaves a trailing carriage return, which upsets mingw
  12593. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12594. *)
  12595. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12596. esac
  12597. case $ac_prog in
  12598. # Accept absolute paths.
  12599. [\\/]* | ?:[\\/]*)
  12600. re_direlt='/[^/][^/]*/\.\./'
  12601. # Canonicalize the pathname of ld
  12602. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12603. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12604. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12605. done
  12606. test -z "$LD" && LD=$ac_prog
  12607. ;;
  12608. "")
  12609. # If it fails, then pretend we aren't using GCC.
  12610. ac_prog=ld
  12611. ;;
  12612. *)
  12613. # If it is relative, then search for the first ld in PATH.
  12614. with_gnu_ld=unknown
  12615. ;;
  12616. esac
  12617. elif test yes = "$with_gnu_ld"; then
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12619. $as_echo_n "checking for GNU ld... " >&6; }
  12620. else
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12622. $as_echo_n "checking for non-GNU ld... " >&6; }
  12623. fi
  12624. if ${lt_cv_path_LD+:} false; then :
  12625. $as_echo_n "(cached) " >&6
  12626. else
  12627. if test -z "$LD"; then
  12628. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12629. for ac_dir in $PATH; do
  12630. IFS=$lt_save_ifs
  12631. test -z "$ac_dir" && ac_dir=.
  12632. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12633. lt_cv_path_LD=$ac_dir/$ac_prog
  12634. # Check to see if the program is GNU ld. I'd rather use --version,
  12635. # but apparently some variants of GNU ld only accept -v.
  12636. # Break only if it was the GNU/non-GNU ld that we prefer.
  12637. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12638. *GNU* | *'with BFD'*)
  12639. test no != "$with_gnu_ld" && break
  12640. ;;
  12641. *)
  12642. test yes != "$with_gnu_ld" && break
  12643. ;;
  12644. esac
  12645. fi
  12646. done
  12647. IFS=$lt_save_ifs
  12648. else
  12649. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12650. fi
  12651. fi
  12652. LD=$lt_cv_path_LD
  12653. if test -n "$LD"; then
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12655. $as_echo "$LD" >&6; }
  12656. else
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12658. $as_echo "no" >&6; }
  12659. fi
  12660. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12662. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12663. if ${lt_cv_prog_gnu_ld+:} false; then :
  12664. $as_echo_n "(cached) " >&6
  12665. else
  12666. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12667. case `$LD -v 2>&1 </dev/null` in
  12668. *GNU* | *'with BFD'*)
  12669. lt_cv_prog_gnu_ld=yes
  12670. ;;
  12671. *)
  12672. lt_cv_prog_gnu_ld=no
  12673. ;;
  12674. esac
  12675. fi
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12677. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12678. with_gnu_ld=$lt_cv_prog_gnu_ld
  12679. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12680. # archiving commands below assume that GNU ld is being used.
  12681. if test yes = "$with_gnu_ld"; then
  12682. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12683. 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'
  12684. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12685. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12686. # If archive_cmds runs LD, not CC, wlarc should be empty
  12687. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12688. # investigate it a little bit more. (MM)
  12689. wlarc='$wl'
  12690. # ancient GNU ld didn't support --whole-archive et. al.
  12691. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12692. $GREP 'no-whole-archive' > /dev/null; then
  12693. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12694. else
  12695. whole_archive_flag_spec_CXX=
  12696. fi
  12697. else
  12698. with_gnu_ld=no
  12699. wlarc=
  12700. # A generic and very simple default shared library creation
  12701. # command for GNU C++ for the case where it uses the native
  12702. # linker, instead of GNU ld. If possible, this setting should
  12703. # overridden to take advantage of the native linker features on
  12704. # the platform it is being used on.
  12705. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12706. fi
  12707. # Commands to make compiler produce verbose output that lists
  12708. # what "hidden" libraries, object files and flags are used when
  12709. # linking a shared library.
  12710. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12711. else
  12712. GXX=no
  12713. with_gnu_ld=no
  12714. wlarc=
  12715. fi
  12716. # PORTME: fill in a description of your system's C++ link characteristics
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12718. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12719. ld_shlibs_CXX=yes
  12720. case $host_os in
  12721. aix3*)
  12722. # FIXME: insert proper C++ library support
  12723. ld_shlibs_CXX=no
  12724. ;;
  12725. aix[4-9]*)
  12726. if test ia64 = "$host_cpu"; then
  12727. # On IA64, the linker does run time linking by default, so we don't
  12728. # have to do anything special.
  12729. aix_use_runtimelinking=no
  12730. exp_sym_flag='-Bexport'
  12731. no_entry_flag=
  12732. else
  12733. aix_use_runtimelinking=no
  12734. # Test if we are trying to use run time linking or normal
  12735. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12736. # have runtime linking enabled, and use it for executables.
  12737. # For shared libraries, we enable/disable runtime linking
  12738. # depending on the kind of the shared library created -
  12739. # when "with_aix_soname,aix_use_runtimelinking" is:
  12740. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12741. # "aix,yes" lib.so shared, rtl:yes, for executables
  12742. # lib.a static archive
  12743. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12744. # lib.a(lib.so.V) shared, rtl:no, for executables
  12745. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12746. # lib.a(lib.so.V) shared, rtl:no
  12747. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12748. # lib.a static archive
  12749. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12750. for ld_flag in $LDFLAGS; do
  12751. case $ld_flag in
  12752. *-brtl*)
  12753. aix_use_runtimelinking=yes
  12754. break
  12755. ;;
  12756. esac
  12757. done
  12758. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12759. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12760. # so we don't have lib.a shared libs to link our executables.
  12761. # We have to force runtime linking in this case.
  12762. aix_use_runtimelinking=yes
  12763. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12764. fi
  12765. ;;
  12766. esac
  12767. exp_sym_flag='-bexport'
  12768. no_entry_flag='-bnoentry'
  12769. fi
  12770. # When large executables or shared objects are built, AIX ld can
  12771. # have problems creating the table of contents. If linking a library
  12772. # or program results in "error TOC overflow" add -mminimal-toc to
  12773. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12774. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12775. archive_cmds_CXX=''
  12776. hardcode_direct_CXX=yes
  12777. hardcode_direct_absolute_CXX=yes
  12778. hardcode_libdir_separator_CXX=':'
  12779. link_all_deplibs_CXX=yes
  12780. file_list_spec_CXX='$wl-f,'
  12781. case $with_aix_soname,$aix_use_runtimelinking in
  12782. aix,*) ;; # no import file
  12783. svr4,* | *,yes) # use import file
  12784. # The Import File defines what to hardcode.
  12785. hardcode_direct_CXX=no
  12786. hardcode_direct_absolute_CXX=no
  12787. ;;
  12788. esac
  12789. if test yes = "$GXX"; then
  12790. case $host_os in aix4.[012]|aix4.[012].*)
  12791. # We only want to do this on AIX 4.2 and lower, the check
  12792. # below for broken collect2 doesn't work under 4.3+
  12793. collect2name=`$CC -print-prog-name=collect2`
  12794. if test -f "$collect2name" &&
  12795. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12796. then
  12797. # We have reworked collect2
  12798. :
  12799. else
  12800. # We have old collect2
  12801. hardcode_direct_CXX=unsupported
  12802. # It fails to find uninstalled libraries when the uninstalled
  12803. # path is not listed in the libpath. Setting hardcode_minus_L
  12804. # to unsupported forces relinking
  12805. hardcode_minus_L_CXX=yes
  12806. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12807. hardcode_libdir_separator_CXX=
  12808. fi
  12809. esac
  12810. shared_flag='-shared'
  12811. if test yes = "$aix_use_runtimelinking"; then
  12812. shared_flag=$shared_flag' $wl-G'
  12813. fi
  12814. # Need to ensure runtime linking is disabled for the traditional
  12815. # shared library, or the linker may eventually find shared libraries
  12816. # /with/ Import File - we do not want to mix them.
  12817. shared_flag_aix='-shared'
  12818. shared_flag_svr4='-shared $wl-G'
  12819. else
  12820. # not using gcc
  12821. if test ia64 = "$host_cpu"; then
  12822. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12823. # chokes on -Wl,-G. The following line is correct:
  12824. shared_flag='-G'
  12825. else
  12826. if test yes = "$aix_use_runtimelinking"; then
  12827. shared_flag='$wl-G'
  12828. else
  12829. shared_flag='$wl-bM:SRE'
  12830. fi
  12831. shared_flag_aix='$wl-bM:SRE'
  12832. shared_flag_svr4='$wl-G'
  12833. fi
  12834. fi
  12835. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12836. # It seems that -bexpall does not export symbols beginning with
  12837. # underscore (_), so it is better to generate a list of symbols to
  12838. # export.
  12839. always_export_symbols_CXX=yes
  12840. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12841. # Warning - without using the other runtime loading flags (-brtl),
  12842. # -berok will link without error, but may produce a broken library.
  12843. # The "-G" linker flag allows undefined symbols.
  12844. no_undefined_flag_CXX='-bernotok'
  12845. # Determine the default libpath from the value encoded in an empty
  12846. # executable.
  12847. if test set = "${lt_cv_aix_libpath+set}"; then
  12848. aix_libpath=$lt_cv_aix_libpath
  12849. else
  12850. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12851. $as_echo_n "(cached) " >&6
  12852. else
  12853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12854. /* end confdefs.h. */
  12855. int
  12856. main ()
  12857. {
  12858. ;
  12859. return 0;
  12860. }
  12861. _ACEOF
  12862. if ac_fn_cxx_try_link "$LINENO"; then :
  12863. lt_aix_libpath_sed='
  12864. /Import File Strings/,/^$/ {
  12865. /^0/ {
  12866. s/^0 *\([^ ]*\) *$/\1/
  12867. p
  12868. }
  12869. }'
  12870. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12871. # Check for a 64-bit object if we didn't find anything.
  12872. if test -z "$lt_cv_aix_libpath__CXX"; then
  12873. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12874. fi
  12875. fi
  12876. rm -f core conftest.err conftest.$ac_objext \
  12877. conftest$ac_exeext conftest.$ac_ext
  12878. if test -z "$lt_cv_aix_libpath__CXX"; then
  12879. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12880. fi
  12881. fi
  12882. aix_libpath=$lt_cv_aix_libpath__CXX
  12883. fi
  12884. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12885. 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
  12886. else
  12887. if test ia64 = "$host_cpu"; then
  12888. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12889. allow_undefined_flag_CXX="-z nodefs"
  12890. 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"
  12891. else
  12892. # Determine the default libpath from the value encoded in an
  12893. # empty executable.
  12894. if test set = "${lt_cv_aix_libpath+set}"; then
  12895. aix_libpath=$lt_cv_aix_libpath
  12896. else
  12897. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12898. $as_echo_n "(cached) " >&6
  12899. else
  12900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12901. /* end confdefs.h. */
  12902. int
  12903. main ()
  12904. {
  12905. ;
  12906. return 0;
  12907. }
  12908. _ACEOF
  12909. if ac_fn_cxx_try_link "$LINENO"; then :
  12910. lt_aix_libpath_sed='
  12911. /Import File Strings/,/^$/ {
  12912. /^0/ {
  12913. s/^0 *\([^ ]*\) *$/\1/
  12914. p
  12915. }
  12916. }'
  12917. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12918. # Check for a 64-bit object if we didn't find anything.
  12919. if test -z "$lt_cv_aix_libpath__CXX"; then
  12920. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12921. fi
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext \
  12924. conftest$ac_exeext conftest.$ac_ext
  12925. if test -z "$lt_cv_aix_libpath__CXX"; then
  12926. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12927. fi
  12928. fi
  12929. aix_libpath=$lt_cv_aix_libpath__CXX
  12930. fi
  12931. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12932. # Warning - without using the other run time loading flags,
  12933. # -berok will link without error, but may produce a broken library.
  12934. no_undefined_flag_CXX=' $wl-bernotok'
  12935. allow_undefined_flag_CXX=' $wl-berok'
  12936. if test yes = "$with_gnu_ld"; then
  12937. # We only use this code for GNU lds that support --whole-archive.
  12938. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12939. else
  12940. # Exported symbols can be pulled into shared objects from archives
  12941. whole_archive_flag_spec_CXX='$convenience'
  12942. fi
  12943. archive_cmds_need_lc_CXX=yes
  12944. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12945. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12946. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12947. if test svr4 != "$with_aix_soname"; then
  12948. # This is similar to how AIX traditionally builds its shared
  12949. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12950. 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'
  12951. fi
  12952. if test aix != "$with_aix_soname"; then
  12953. 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'
  12954. else
  12955. # used by -dlpreopen to get the symbols
  12956. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12957. fi
  12958. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12959. fi
  12960. fi
  12961. ;;
  12962. beos*)
  12963. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12964. allow_undefined_flag_CXX=unsupported
  12965. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12966. # support --undefined. This deserves some investigation. FIXME
  12967. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12968. else
  12969. ld_shlibs_CXX=no
  12970. fi
  12971. ;;
  12972. chorus*)
  12973. case $cc_basename in
  12974. *)
  12975. # FIXME: insert proper C++ library support
  12976. ld_shlibs_CXX=no
  12977. ;;
  12978. esac
  12979. ;;
  12980. cygwin* | mingw* | pw32* | cegcc*)
  12981. case $GXX,$cc_basename in
  12982. ,cl* | no,cl*)
  12983. # Native MSVC
  12984. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12985. # no search path for DLLs.
  12986. hardcode_libdir_flag_spec_CXX=' '
  12987. allow_undefined_flag_CXX=unsupported
  12988. always_export_symbols_CXX=yes
  12989. file_list_spec_CXX='@'
  12990. # Tell ltmain to make .lib files, not .a files.
  12991. libext=lib
  12992. # Tell ltmain to make .dll files, not .so files.
  12993. shrext_cmds=.dll
  12994. # FIXME: Setting linknames here is a bad hack.
  12995. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12996. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12997. cp "$export_symbols" "$output_objdir/$soname.def";
  12998. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12999. else
  13000. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13001. fi~
  13002. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13003. linknames='
  13004. # The linker will not automatically build a static lib if we build a DLL.
  13005. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13006. enable_shared_with_static_runtimes_CXX=yes
  13007. # Don't use ranlib
  13008. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13009. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13010. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13011. case $lt_outputfile in
  13012. *.exe|*.EXE) ;;
  13013. *)
  13014. lt_outputfile=$lt_outputfile.exe
  13015. lt_tool_outputfile=$lt_tool_outputfile.exe
  13016. ;;
  13017. esac~
  13018. func_to_tool_file "$lt_outputfile"~
  13019. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13020. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13021. $RM "$lt_outputfile.manifest";
  13022. fi'
  13023. ;;
  13024. *)
  13025. # g++
  13026. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13027. # as there is no search path for DLLs.
  13028. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13029. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13030. allow_undefined_flag_CXX=unsupported
  13031. always_export_symbols_CXX=no
  13032. enable_shared_with_static_runtimes_CXX=yes
  13033. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13034. 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'
  13035. # If the export-symbols file already is a .def file, use it as
  13036. # is; otherwise, prepend EXPORTS...
  13037. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13038. cp $export_symbols $output_objdir/$soname.def;
  13039. else
  13040. echo EXPORTS > $output_objdir/$soname.def;
  13041. cat $export_symbols >> $output_objdir/$soname.def;
  13042. fi~
  13043. $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'
  13044. else
  13045. ld_shlibs_CXX=no
  13046. fi
  13047. ;;
  13048. esac
  13049. ;;
  13050. darwin* | rhapsody*)
  13051. archive_cmds_need_lc_CXX=no
  13052. hardcode_direct_CXX=no
  13053. hardcode_automatic_CXX=yes
  13054. hardcode_shlibpath_var_CXX=unsupported
  13055. if test yes = "$lt_cv_ld_force_load"; then
  13056. 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\"`'
  13057. else
  13058. whole_archive_flag_spec_CXX=''
  13059. fi
  13060. link_all_deplibs_CXX=yes
  13061. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13062. case $cc_basename in
  13063. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13064. *) _lt_dar_can_shared=$GCC ;;
  13065. esac
  13066. if test yes = "$_lt_dar_can_shared"; then
  13067. output_verbose_link_cmd=func_echo_all
  13068. 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"
  13069. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13070. 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"
  13071. 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"
  13072. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13073. 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"
  13074. 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"
  13075. fi
  13076. else
  13077. ld_shlibs_CXX=no
  13078. fi
  13079. ;;
  13080. os2*)
  13081. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13082. hardcode_minus_L_CXX=yes
  13083. allow_undefined_flag_CXX=unsupported
  13084. shrext_cmds=.dll
  13085. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13086. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13087. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13088. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13089. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13090. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13091. emximp -o $lib $output_objdir/$libname.def'
  13092. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13093. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13094. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13095. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13096. prefix_cmds="$SED"~
  13097. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13098. prefix_cmds="$prefix_cmds -e 1d";
  13099. fi~
  13100. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13101. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13102. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13103. emximp -o $lib $output_objdir/$libname.def'
  13104. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13105. enable_shared_with_static_runtimes_CXX=yes
  13106. ;;
  13107. dgux*)
  13108. case $cc_basename in
  13109. ec++*)
  13110. # FIXME: insert proper C++ library support
  13111. ld_shlibs_CXX=no
  13112. ;;
  13113. ghcx*)
  13114. # Green Hills C++ Compiler
  13115. # FIXME: insert proper C++ library support
  13116. ld_shlibs_CXX=no
  13117. ;;
  13118. *)
  13119. # FIXME: insert proper C++ library support
  13120. ld_shlibs_CXX=no
  13121. ;;
  13122. esac
  13123. ;;
  13124. freebsd2.*)
  13125. # C++ shared libraries reported to be fairly broken before
  13126. # switch to ELF
  13127. ld_shlibs_CXX=no
  13128. ;;
  13129. freebsd-elf*)
  13130. archive_cmds_need_lc_CXX=no
  13131. ;;
  13132. freebsd* | dragonfly*)
  13133. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13134. # conventions
  13135. ld_shlibs_CXX=yes
  13136. ;;
  13137. haiku*)
  13138. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13139. link_all_deplibs_CXX=yes
  13140. ;;
  13141. hpux9*)
  13142. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13143. hardcode_libdir_separator_CXX=:
  13144. export_dynamic_flag_spec_CXX='$wl-E'
  13145. hardcode_direct_CXX=yes
  13146. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13147. # but as the default
  13148. # location of the library.
  13149. case $cc_basename in
  13150. CC*)
  13151. # FIXME: insert proper C++ library support
  13152. ld_shlibs_CXX=no
  13153. ;;
  13154. aCC*)
  13155. 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'
  13156. # Commands to make compiler produce verbose output that lists
  13157. # what "hidden" libraries, object files and flags are used when
  13158. # linking a shared library.
  13159. #
  13160. # There doesn't appear to be a way to prevent this compiler from
  13161. # explicitly linking system object files so we need to strip them
  13162. # from the output so that they don't get included in the library
  13163. # dependencies.
  13164. 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"'
  13165. ;;
  13166. *)
  13167. if test yes = "$GXX"; then
  13168. 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'
  13169. else
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. fi
  13173. ;;
  13174. esac
  13175. ;;
  13176. hpux10*|hpux11*)
  13177. if test no = "$with_gnu_ld"; then
  13178. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13179. hardcode_libdir_separator_CXX=:
  13180. case $host_cpu in
  13181. hppa*64*|ia64*)
  13182. ;;
  13183. *)
  13184. export_dynamic_flag_spec_CXX='$wl-E'
  13185. ;;
  13186. esac
  13187. fi
  13188. case $host_cpu in
  13189. hppa*64*|ia64*)
  13190. hardcode_direct_CXX=no
  13191. hardcode_shlibpath_var_CXX=no
  13192. ;;
  13193. *)
  13194. hardcode_direct_CXX=yes
  13195. hardcode_direct_absolute_CXX=yes
  13196. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13197. # but as the default
  13198. # location of the library.
  13199. ;;
  13200. esac
  13201. case $cc_basename in
  13202. CC*)
  13203. # FIXME: insert proper C++ library support
  13204. ld_shlibs_CXX=no
  13205. ;;
  13206. aCC*)
  13207. case $host_cpu in
  13208. hppa*64*)
  13209. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13210. ;;
  13211. ia64*)
  13212. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13213. ;;
  13214. *)
  13215. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13216. ;;
  13217. esac
  13218. # Commands to make compiler produce verbose output that lists
  13219. # what "hidden" libraries, object files and flags are used when
  13220. # linking a shared library.
  13221. #
  13222. # There doesn't appear to be a way to prevent this compiler from
  13223. # explicitly linking system object files so we need to strip them
  13224. # from the output so that they don't get included in the library
  13225. # dependencies.
  13226. 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"'
  13227. ;;
  13228. *)
  13229. if test yes = "$GXX"; then
  13230. if test no = "$with_gnu_ld"; then
  13231. case $host_cpu in
  13232. hppa*64*)
  13233. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13234. ;;
  13235. ia64*)
  13236. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13237. ;;
  13238. *)
  13239. 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'
  13240. ;;
  13241. esac
  13242. fi
  13243. else
  13244. # FIXME: insert proper C++ library support
  13245. ld_shlibs_CXX=no
  13246. fi
  13247. ;;
  13248. esac
  13249. ;;
  13250. interix[3-9]*)
  13251. hardcode_direct_CXX=no
  13252. hardcode_shlibpath_var_CXX=no
  13253. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13254. export_dynamic_flag_spec_CXX='$wl-E'
  13255. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13256. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13257. # default) and relocated if they conflict, which is a slow very memory
  13258. # consuming and fragmenting process. To avoid this, we pick a random,
  13259. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13260. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13261. 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'
  13262. 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'
  13263. ;;
  13264. irix5* | irix6*)
  13265. case $cc_basename in
  13266. CC*)
  13267. # SGI C++
  13268. 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'
  13269. # Archives containing C++ object files must be created using
  13270. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13271. # necessary to make sure instantiated templates are included
  13272. # in the archive.
  13273. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13274. ;;
  13275. *)
  13276. if test yes = "$GXX"; then
  13277. if test no = "$with_gnu_ld"; then
  13278. 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'
  13279. else
  13280. 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'
  13281. fi
  13282. fi
  13283. link_all_deplibs_CXX=yes
  13284. ;;
  13285. esac
  13286. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13287. hardcode_libdir_separator_CXX=:
  13288. inherit_rpath_CXX=yes
  13289. ;;
  13290. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13291. case $cc_basename in
  13292. KCC*)
  13293. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13294. # KCC will only create a shared library if the output file
  13295. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13296. # to its proper name (with version) after linking.
  13297. 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'
  13298. 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'
  13299. # Commands to make compiler produce verbose output that lists
  13300. # what "hidden" libraries, object files and flags are used when
  13301. # linking a shared library.
  13302. #
  13303. # There doesn't appear to be a way to prevent this compiler from
  13304. # explicitly linking system object files so we need to strip them
  13305. # from the output so that they don't get included in the library
  13306. # dependencies.
  13307. 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"'
  13308. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13309. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13310. # Archives containing C++ object files must be created using
  13311. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13312. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13313. ;;
  13314. icpc* | ecpc* )
  13315. # Intel C++
  13316. with_gnu_ld=yes
  13317. # version 8.0 and above of icpc choke on multiply defined symbols
  13318. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13319. # earlier do not add the objects themselves.
  13320. case `$CC -V 2>&1` in
  13321. *"Version 7."*)
  13322. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13323. 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'
  13324. ;;
  13325. *) # Version 8.0 or newer
  13326. tmp_idyn=
  13327. case $host_cpu in
  13328. ia64*) tmp_idyn=' -i_dynamic';;
  13329. esac
  13330. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13331. 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'
  13332. ;;
  13333. esac
  13334. archive_cmds_need_lc_CXX=no
  13335. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13336. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13337. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13338. ;;
  13339. pgCC* | pgcpp*)
  13340. # Portland Group C++ compiler
  13341. case `$CC -V` in
  13342. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13343. prelink_cmds_CXX='tpldir=Template.dir~
  13344. rm -rf $tpldir~
  13345. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13346. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13347. old_archive_cmds_CXX='tpldir=Template.dir~
  13348. rm -rf $tpldir~
  13349. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13350. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13351. $RANLIB $oldlib'
  13352. archive_cmds_CXX='tpldir=Template.dir~
  13353. rm -rf $tpldir~
  13354. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13355. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13356. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13357. rm -rf $tpldir~
  13358. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13359. $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'
  13360. ;;
  13361. *) # Version 6 and above use weak symbols
  13362. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13363. 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'
  13364. ;;
  13365. esac
  13366. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13367. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13368. 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'
  13369. ;;
  13370. cxx*)
  13371. # Compaq C++
  13372. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13373. 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'
  13374. runpath_var=LD_RUN_PATH
  13375. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13376. hardcode_libdir_separator_CXX=:
  13377. # Commands to make compiler produce verbose output that lists
  13378. # what "hidden" libraries, object files and flags are used when
  13379. # linking a shared library.
  13380. #
  13381. # There doesn't appear to be a way to prevent this compiler from
  13382. # explicitly linking system object files so we need to strip them
  13383. # from the output so that they don't get included in the library
  13384. # dependencies.
  13385. 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'
  13386. ;;
  13387. xl* | mpixl* | bgxl*)
  13388. # IBM XL 8.0 on PPC, with GNU ld
  13389. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13390. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13391. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13392. if test yes = "$supports_anon_versioning"; then
  13393. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13394. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13395. echo "local: *; };" >> $output_objdir/$libname.ver~
  13396. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13397. fi
  13398. ;;
  13399. *)
  13400. case `$CC -V 2>&1 | sed 5q` in
  13401. *Sun\ C*)
  13402. # Sun C++ 5.9
  13403. no_undefined_flag_CXX=' -zdefs'
  13404. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13405. 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'
  13406. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13407. 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'
  13408. compiler_needs_object_CXX=yes
  13409. # Not sure whether something based on
  13410. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13411. # would be better.
  13412. output_verbose_link_cmd='func_echo_all'
  13413. # Archives containing C++ object files must be created using
  13414. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13415. # necessary to make sure instantiated templates are included
  13416. # in the archive.
  13417. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13418. ;;
  13419. esac
  13420. ;;
  13421. esac
  13422. ;;
  13423. lynxos*)
  13424. # FIXME: insert proper C++ library support
  13425. ld_shlibs_CXX=no
  13426. ;;
  13427. m88k*)
  13428. # FIXME: insert proper C++ library support
  13429. ld_shlibs_CXX=no
  13430. ;;
  13431. mvs*)
  13432. case $cc_basename in
  13433. cxx*)
  13434. # FIXME: insert proper C++ library support
  13435. ld_shlibs_CXX=no
  13436. ;;
  13437. *)
  13438. # FIXME: insert proper C++ library support
  13439. ld_shlibs_CXX=no
  13440. ;;
  13441. esac
  13442. ;;
  13443. netbsd*)
  13444. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13445. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13446. wlarc=
  13447. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13448. hardcode_direct_CXX=yes
  13449. hardcode_shlibpath_var_CXX=no
  13450. fi
  13451. # Workaround some broken pre-1.5 toolchains
  13452. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13453. ;;
  13454. *nto* | *qnx*)
  13455. ld_shlibs_CXX=yes
  13456. ;;
  13457. openbsd* | bitrig*)
  13458. if test -f /usr/libexec/ld.so; then
  13459. hardcode_direct_CXX=yes
  13460. hardcode_shlibpath_var_CXX=no
  13461. hardcode_direct_absolute_CXX=yes
  13462. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13463. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13464. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13465. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13466. export_dynamic_flag_spec_CXX='$wl-E'
  13467. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13468. fi
  13469. output_verbose_link_cmd=func_echo_all
  13470. else
  13471. ld_shlibs_CXX=no
  13472. fi
  13473. ;;
  13474. osf3* | osf4* | osf5*)
  13475. case $cc_basename in
  13476. KCC*)
  13477. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13478. # KCC will only create a shared library if the output file
  13479. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13480. # to its proper name (with version) after linking.
  13481. 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'
  13482. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13483. hardcode_libdir_separator_CXX=:
  13484. # Archives containing C++ object files must be created using
  13485. # the KAI C++ compiler.
  13486. case $host in
  13487. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13488. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13489. esac
  13490. ;;
  13491. RCC*)
  13492. # Rational C++ 2.4.1
  13493. # FIXME: insert proper C++ library support
  13494. ld_shlibs_CXX=no
  13495. ;;
  13496. cxx*)
  13497. case $host in
  13498. osf3*)
  13499. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13500. 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'
  13501. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13502. ;;
  13503. *)
  13504. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13505. 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'
  13506. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13507. echo "-hidden">> $lib.exp~
  13508. $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~
  13509. $RM $lib.exp'
  13510. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13511. ;;
  13512. esac
  13513. hardcode_libdir_separator_CXX=:
  13514. # Commands to make compiler produce verbose output that lists
  13515. # what "hidden" libraries, object files and flags are used when
  13516. # linking a shared library.
  13517. #
  13518. # There doesn't appear to be a way to prevent this compiler from
  13519. # explicitly linking system object files so we need to strip them
  13520. # from the output so that they don't get included in the library
  13521. # dependencies.
  13522. 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"'
  13523. ;;
  13524. *)
  13525. if test yes,no = "$GXX,$with_gnu_ld"; then
  13526. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13527. case $host in
  13528. osf3*)
  13529. 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'
  13530. ;;
  13531. *)
  13532. 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'
  13533. ;;
  13534. esac
  13535. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13536. hardcode_libdir_separator_CXX=:
  13537. # Commands to make compiler produce verbose output that lists
  13538. # what "hidden" libraries, object files and flags are used when
  13539. # linking a shared library.
  13540. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13541. else
  13542. # FIXME: insert proper C++ library support
  13543. ld_shlibs_CXX=no
  13544. fi
  13545. ;;
  13546. esac
  13547. ;;
  13548. psos*)
  13549. # FIXME: insert proper C++ library support
  13550. ld_shlibs_CXX=no
  13551. ;;
  13552. sunos4*)
  13553. case $cc_basename in
  13554. CC*)
  13555. # Sun C++ 4.x
  13556. # FIXME: insert proper C++ library support
  13557. ld_shlibs_CXX=no
  13558. ;;
  13559. lcc*)
  13560. # Lucid
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. ;;
  13564. *)
  13565. # FIXME: insert proper C++ library support
  13566. ld_shlibs_CXX=no
  13567. ;;
  13568. esac
  13569. ;;
  13570. solaris*)
  13571. case $cc_basename in
  13572. CC* | sunCC*)
  13573. # Sun C++ 4.2, 5.x and Centerline C++
  13574. archive_cmds_need_lc_CXX=yes
  13575. no_undefined_flag_CXX=' -zdefs'
  13576. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13577. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13578. $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'
  13579. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13580. hardcode_shlibpath_var_CXX=no
  13581. case $host_os in
  13582. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13583. *)
  13584. # The compiler driver will combine and reorder linker options,
  13585. # but understands '-z linker_flag'.
  13586. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13587. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13588. ;;
  13589. esac
  13590. link_all_deplibs_CXX=yes
  13591. output_verbose_link_cmd='func_echo_all'
  13592. # Archives containing C++ object files must be created using
  13593. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13594. # necessary to make sure instantiated templates are included
  13595. # in the archive.
  13596. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13597. ;;
  13598. gcx*)
  13599. # Green Hills C++ Compiler
  13600. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13601. # The C++ compiler must be used to create the archive.
  13602. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13603. ;;
  13604. *)
  13605. # GNU C++ compiler with Solaris linker
  13606. if test yes,no = "$GXX,$with_gnu_ld"; then
  13607. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13608. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13609. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13610. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13611. $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'
  13612. # Commands to make compiler produce verbose output that lists
  13613. # what "hidden" libraries, object files and flags are used when
  13614. # linking a shared library.
  13615. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13616. else
  13617. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13618. # platform.
  13619. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13620. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13621. $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'
  13622. # Commands to make compiler produce verbose output that lists
  13623. # what "hidden" libraries, object files and flags are used when
  13624. # linking a shared library.
  13625. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13626. fi
  13627. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13628. case $host_os in
  13629. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13630. *)
  13631. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13632. ;;
  13633. esac
  13634. fi
  13635. ;;
  13636. esac
  13637. ;;
  13638. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13639. no_undefined_flag_CXX='$wl-z,text'
  13640. archive_cmds_need_lc_CXX=no
  13641. hardcode_shlibpath_var_CXX=no
  13642. runpath_var='LD_RUN_PATH'
  13643. case $cc_basename in
  13644. CC*)
  13645. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13647. ;;
  13648. *)
  13649. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13651. ;;
  13652. esac
  13653. ;;
  13654. sysv5* | sco3.2v5* | sco5v6*)
  13655. # Note: We CANNOT use -z defs as we might desire, because we do not
  13656. # link with -lc, and that would cause any symbols used from libc to
  13657. # always be unresolved, which means just about no library would
  13658. # ever link correctly. If we're not using GNU ld we use -z text
  13659. # though, which does catch some bad symbols but isn't as heavy-handed
  13660. # as -z defs.
  13661. no_undefined_flag_CXX='$wl-z,text'
  13662. allow_undefined_flag_CXX='$wl-z,nodefs'
  13663. archive_cmds_need_lc_CXX=no
  13664. hardcode_shlibpath_var_CXX=no
  13665. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13666. hardcode_libdir_separator_CXX=':'
  13667. link_all_deplibs_CXX=yes
  13668. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13669. runpath_var='LD_RUN_PATH'
  13670. case $cc_basename in
  13671. CC*)
  13672. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13673. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13675. '"$old_archive_cmds_CXX"
  13676. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13677. '"$reload_cmds_CXX"
  13678. ;;
  13679. *)
  13680. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13681. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13682. ;;
  13683. esac
  13684. ;;
  13685. tandem*)
  13686. case $cc_basename in
  13687. NCC*)
  13688. # NonStop-UX NCC 3.20
  13689. # FIXME: insert proper C++ library support
  13690. ld_shlibs_CXX=no
  13691. ;;
  13692. *)
  13693. # FIXME: insert proper C++ library support
  13694. ld_shlibs_CXX=no
  13695. ;;
  13696. esac
  13697. ;;
  13698. vxworks*)
  13699. # FIXME: insert proper C++ library support
  13700. ld_shlibs_CXX=no
  13701. ;;
  13702. *)
  13703. # FIXME: insert proper C++ library support
  13704. ld_shlibs_CXX=no
  13705. ;;
  13706. esac
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13708. $as_echo "$ld_shlibs_CXX" >&6; }
  13709. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13710. GCC_CXX=$GXX
  13711. LD_CXX=$LD
  13712. ## CAVEAT EMPTOR:
  13713. ## There is no encapsulation within the following macros, do not change
  13714. ## the running order or otherwise move them around unless you know exactly
  13715. ## what you are doing...
  13716. # Dependencies to place before and after the object being linked:
  13717. predep_objects_CXX=
  13718. postdep_objects_CXX=
  13719. predeps_CXX=
  13720. postdeps_CXX=
  13721. compiler_lib_search_path_CXX=
  13722. cat > conftest.$ac_ext <<_LT_EOF
  13723. class Foo
  13724. {
  13725. public:
  13726. Foo (void) { a = 0; }
  13727. private:
  13728. int a;
  13729. };
  13730. _LT_EOF
  13731. _lt_libdeps_save_CFLAGS=$CFLAGS
  13732. case "$CC $CFLAGS " in #(
  13733. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13734. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13735. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13736. esac
  13737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13738. (eval $ac_compile) 2>&5
  13739. ac_status=$?
  13740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13741. test $ac_status = 0; }; then
  13742. # Parse the compiler output and extract the necessary
  13743. # objects, libraries and library flags.
  13744. # Sentinel used to keep track of whether or not we are before
  13745. # the conftest object file.
  13746. pre_test_object_deps_done=no
  13747. for p in `eval "$output_verbose_link_cmd"`; do
  13748. case $prev$p in
  13749. -L* | -R* | -l*)
  13750. # Some compilers place space between "-{L,R}" and the path.
  13751. # Remove the space.
  13752. if test x-L = "$p" ||
  13753. test x-R = "$p"; then
  13754. prev=$p
  13755. continue
  13756. fi
  13757. # Expand the sysroot to ease extracting the directories later.
  13758. if test -z "$prev"; then
  13759. case $p in
  13760. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13761. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13762. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13763. esac
  13764. fi
  13765. case $p in
  13766. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13767. esac
  13768. if test no = "$pre_test_object_deps_done"; then
  13769. case $prev in
  13770. -L | -R)
  13771. # Internal compiler library paths should come after those
  13772. # provided the user. The postdeps already come after the
  13773. # user supplied libs so there is no need to process them.
  13774. if test -z "$compiler_lib_search_path_CXX"; then
  13775. compiler_lib_search_path_CXX=$prev$p
  13776. else
  13777. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13778. fi
  13779. ;;
  13780. # The "-l" case would never come before the object being
  13781. # linked, so don't bother handling this case.
  13782. esac
  13783. else
  13784. if test -z "$postdeps_CXX"; then
  13785. postdeps_CXX=$prev$p
  13786. else
  13787. postdeps_CXX="${postdeps_CXX} $prev$p"
  13788. fi
  13789. fi
  13790. prev=
  13791. ;;
  13792. *.lto.$objext) ;; # Ignore GCC LTO objects
  13793. *.$objext)
  13794. # This assumes that the test object file only shows up
  13795. # once in the compiler output.
  13796. if test "$p" = "conftest.$objext"; then
  13797. pre_test_object_deps_done=yes
  13798. continue
  13799. fi
  13800. if test no = "$pre_test_object_deps_done"; then
  13801. if test -z "$predep_objects_CXX"; then
  13802. predep_objects_CXX=$p
  13803. else
  13804. predep_objects_CXX="$predep_objects_CXX $p"
  13805. fi
  13806. else
  13807. if test -z "$postdep_objects_CXX"; then
  13808. postdep_objects_CXX=$p
  13809. else
  13810. postdep_objects_CXX="$postdep_objects_CXX $p"
  13811. fi
  13812. fi
  13813. ;;
  13814. *) ;; # Ignore the rest.
  13815. esac
  13816. done
  13817. # Clean up.
  13818. rm -f a.out a.exe
  13819. else
  13820. echo "libtool.m4: error: problem compiling CXX test program"
  13821. fi
  13822. $RM -f confest.$objext
  13823. CFLAGS=$_lt_libdeps_save_CFLAGS
  13824. # PORTME: override above test on systems where it is broken
  13825. case $host_os in
  13826. interix[3-9]*)
  13827. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13828. # hack all around it, let's just trust "g++" to DTRT.
  13829. predep_objects_CXX=
  13830. postdep_objects_CXX=
  13831. postdeps_CXX=
  13832. ;;
  13833. esac
  13834. case " $postdeps_CXX " in
  13835. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13836. esac
  13837. compiler_lib_search_dirs_CXX=
  13838. if test -n "${compiler_lib_search_path_CXX}"; then
  13839. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13840. fi
  13841. lt_prog_compiler_wl_CXX=
  13842. lt_prog_compiler_pic_CXX=
  13843. lt_prog_compiler_static_CXX=
  13844. # C++ specific cases for pic, static, wl, etc.
  13845. if test yes = "$GXX"; then
  13846. lt_prog_compiler_wl_CXX='-Wl,'
  13847. lt_prog_compiler_static_CXX='-static'
  13848. case $host_os in
  13849. aix*)
  13850. # All AIX code is PIC.
  13851. if test ia64 = "$host_cpu"; then
  13852. # AIX 5 now supports IA64 processor
  13853. lt_prog_compiler_static_CXX='-Bstatic'
  13854. fi
  13855. lt_prog_compiler_pic_CXX='-fPIC'
  13856. ;;
  13857. amigaos*)
  13858. case $host_cpu in
  13859. powerpc)
  13860. # see comment about AmigaOS4 .so support
  13861. lt_prog_compiler_pic_CXX='-fPIC'
  13862. ;;
  13863. m68k)
  13864. # FIXME: we need at least 68020 code to build shared libraries, but
  13865. # adding the '-m68020' flag to GCC prevents building anything better,
  13866. # like '-m68040'.
  13867. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13868. ;;
  13869. esac
  13870. ;;
  13871. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13872. # PIC is the default for these OSes.
  13873. ;;
  13874. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13875. # This hack is so that the source file can tell whether it is being
  13876. # built for inclusion in a dll (and should export symbols for example).
  13877. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13878. # (--disable-auto-import) libraries
  13879. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13880. case $host_os in
  13881. os2*)
  13882. lt_prog_compiler_static_CXX='$wl-static'
  13883. ;;
  13884. esac
  13885. ;;
  13886. darwin* | rhapsody*)
  13887. # PIC is the default on this platform
  13888. # Common symbols not allowed in MH_DYLIB files
  13889. lt_prog_compiler_pic_CXX='-fno-common'
  13890. ;;
  13891. *djgpp*)
  13892. # DJGPP does not support shared libraries at all
  13893. lt_prog_compiler_pic_CXX=
  13894. ;;
  13895. haiku*)
  13896. # PIC is the default for Haiku.
  13897. # The "-static" flag exists, but is broken.
  13898. lt_prog_compiler_static_CXX=
  13899. ;;
  13900. interix[3-9]*)
  13901. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13902. # Instead, we relocate shared libraries at runtime.
  13903. ;;
  13904. sysv4*MP*)
  13905. if test -d /usr/nec; then
  13906. lt_prog_compiler_pic_CXX=-Kconform_pic
  13907. fi
  13908. ;;
  13909. hpux*)
  13910. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13911. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13912. # sets the default TLS model and affects inlining.
  13913. case $host_cpu in
  13914. hppa*64*)
  13915. ;;
  13916. *)
  13917. lt_prog_compiler_pic_CXX='-fPIC'
  13918. ;;
  13919. esac
  13920. ;;
  13921. *qnx* | *nto*)
  13922. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13923. # it will coredump.
  13924. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13925. ;;
  13926. *)
  13927. lt_prog_compiler_pic_CXX='-fPIC'
  13928. ;;
  13929. esac
  13930. else
  13931. case $host_os in
  13932. aix[4-9]*)
  13933. # All AIX code is PIC.
  13934. if test ia64 = "$host_cpu"; then
  13935. # AIX 5 now supports IA64 processor
  13936. lt_prog_compiler_static_CXX='-Bstatic'
  13937. else
  13938. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13939. fi
  13940. ;;
  13941. chorus*)
  13942. case $cc_basename in
  13943. cxch68*)
  13944. # Green Hills C++ Compiler
  13945. # _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"
  13946. ;;
  13947. esac
  13948. ;;
  13949. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13950. # This hack is so that the source file can tell whether it is being
  13951. # built for inclusion in a dll (and should export symbols for example).
  13952. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13953. ;;
  13954. dgux*)
  13955. case $cc_basename in
  13956. ec++*)
  13957. lt_prog_compiler_pic_CXX='-KPIC'
  13958. ;;
  13959. ghcx*)
  13960. # Green Hills C++ Compiler
  13961. lt_prog_compiler_pic_CXX='-pic'
  13962. ;;
  13963. *)
  13964. ;;
  13965. esac
  13966. ;;
  13967. freebsd* | dragonfly*)
  13968. # FreeBSD uses GNU C++
  13969. ;;
  13970. hpux9* | hpux10* | hpux11*)
  13971. case $cc_basename in
  13972. CC*)
  13973. lt_prog_compiler_wl_CXX='-Wl,'
  13974. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13975. if test ia64 != "$host_cpu"; then
  13976. lt_prog_compiler_pic_CXX='+Z'
  13977. fi
  13978. ;;
  13979. aCC*)
  13980. lt_prog_compiler_wl_CXX='-Wl,'
  13981. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13982. case $host_cpu in
  13983. hppa*64*|ia64*)
  13984. # +Z the default
  13985. ;;
  13986. *)
  13987. lt_prog_compiler_pic_CXX='+Z'
  13988. ;;
  13989. esac
  13990. ;;
  13991. *)
  13992. ;;
  13993. esac
  13994. ;;
  13995. interix*)
  13996. # This is c89, which is MS Visual C++ (no shared libs)
  13997. # Anyone wants to do a port?
  13998. ;;
  13999. irix5* | irix6* | nonstopux*)
  14000. case $cc_basename in
  14001. CC*)
  14002. lt_prog_compiler_wl_CXX='-Wl,'
  14003. lt_prog_compiler_static_CXX='-non_shared'
  14004. # CC pic flag -KPIC is the default.
  14005. ;;
  14006. *)
  14007. ;;
  14008. esac
  14009. ;;
  14010. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14011. case $cc_basename in
  14012. KCC*)
  14013. # KAI C++ Compiler
  14014. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14015. lt_prog_compiler_pic_CXX='-fPIC'
  14016. ;;
  14017. ecpc* )
  14018. # old Intel C++ for x86_64, which still supported -KPIC.
  14019. lt_prog_compiler_wl_CXX='-Wl,'
  14020. lt_prog_compiler_pic_CXX='-KPIC'
  14021. lt_prog_compiler_static_CXX='-static'
  14022. ;;
  14023. icpc* )
  14024. # Intel C++, used to be incompatible with GCC.
  14025. # ICC 10 doesn't accept -KPIC any more.
  14026. lt_prog_compiler_wl_CXX='-Wl,'
  14027. lt_prog_compiler_pic_CXX='-fPIC'
  14028. lt_prog_compiler_static_CXX='-static'
  14029. ;;
  14030. pgCC* | pgcpp*)
  14031. # Portland Group C++ compiler
  14032. lt_prog_compiler_wl_CXX='-Wl,'
  14033. lt_prog_compiler_pic_CXX='-fpic'
  14034. lt_prog_compiler_static_CXX='-Bstatic'
  14035. ;;
  14036. cxx*)
  14037. # Compaq C++
  14038. # Make sure the PIC flag is empty. It appears that all Alpha
  14039. # Linux and Compaq Tru64 Unix objects are PIC.
  14040. lt_prog_compiler_pic_CXX=
  14041. lt_prog_compiler_static_CXX='-non_shared'
  14042. ;;
  14043. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14044. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_pic_CXX='-qpic'
  14047. lt_prog_compiler_static_CXX='-qstaticlink'
  14048. ;;
  14049. *)
  14050. case `$CC -V 2>&1 | sed 5q` in
  14051. *Sun\ C*)
  14052. # Sun C++ 5.9
  14053. lt_prog_compiler_pic_CXX='-KPIC'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. lt_prog_compiler_wl_CXX='-Qoption ld '
  14056. ;;
  14057. esac
  14058. ;;
  14059. esac
  14060. ;;
  14061. lynxos*)
  14062. ;;
  14063. m88k*)
  14064. ;;
  14065. mvs*)
  14066. case $cc_basename in
  14067. cxx*)
  14068. lt_prog_compiler_pic_CXX='-W c,exportall'
  14069. ;;
  14070. *)
  14071. ;;
  14072. esac
  14073. ;;
  14074. netbsd* | netbsdelf*-gnu)
  14075. ;;
  14076. *qnx* | *nto*)
  14077. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14078. # it will coredump.
  14079. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14080. ;;
  14081. osf3* | osf4* | osf5*)
  14082. case $cc_basename in
  14083. KCC*)
  14084. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14085. ;;
  14086. RCC*)
  14087. # Rational C++ 2.4.1
  14088. lt_prog_compiler_pic_CXX='-pic'
  14089. ;;
  14090. cxx*)
  14091. # Digital/Compaq C++
  14092. lt_prog_compiler_wl_CXX='-Wl,'
  14093. # Make sure the PIC flag is empty. It appears that all Alpha
  14094. # Linux and Compaq Tru64 Unix objects are PIC.
  14095. lt_prog_compiler_pic_CXX=
  14096. lt_prog_compiler_static_CXX='-non_shared'
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. psos*)
  14103. ;;
  14104. solaris*)
  14105. case $cc_basename in
  14106. CC* | sunCC*)
  14107. # Sun C++ 4.2, 5.x and Centerline C++
  14108. lt_prog_compiler_pic_CXX='-KPIC'
  14109. lt_prog_compiler_static_CXX='-Bstatic'
  14110. lt_prog_compiler_wl_CXX='-Qoption ld '
  14111. ;;
  14112. gcx*)
  14113. # Green Hills C++ Compiler
  14114. lt_prog_compiler_pic_CXX='-PIC'
  14115. ;;
  14116. *)
  14117. ;;
  14118. esac
  14119. ;;
  14120. sunos4*)
  14121. case $cc_basename in
  14122. CC*)
  14123. # Sun C++ 4.x
  14124. lt_prog_compiler_pic_CXX='-pic'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. ;;
  14127. lcc*)
  14128. # Lucid
  14129. lt_prog_compiler_pic_CXX='-pic'
  14130. ;;
  14131. *)
  14132. ;;
  14133. esac
  14134. ;;
  14135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14136. case $cc_basename in
  14137. CC*)
  14138. lt_prog_compiler_wl_CXX='-Wl,'
  14139. lt_prog_compiler_pic_CXX='-KPIC'
  14140. lt_prog_compiler_static_CXX='-Bstatic'
  14141. ;;
  14142. esac
  14143. ;;
  14144. tandem*)
  14145. case $cc_basename in
  14146. NCC*)
  14147. # NonStop-UX NCC 3.20
  14148. lt_prog_compiler_pic_CXX='-KPIC'
  14149. ;;
  14150. *)
  14151. ;;
  14152. esac
  14153. ;;
  14154. vxworks*)
  14155. ;;
  14156. *)
  14157. lt_prog_compiler_can_build_shared_CXX=no
  14158. ;;
  14159. esac
  14160. fi
  14161. case $host_os in
  14162. # For platforms that do not support PIC, -DPIC is meaningless:
  14163. *djgpp*)
  14164. lt_prog_compiler_pic_CXX=
  14165. ;;
  14166. *)
  14167. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14168. ;;
  14169. esac
  14170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14171. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14172. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14173. $as_echo_n "(cached) " >&6
  14174. else
  14175. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14176. fi
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14178. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14179. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14180. #
  14181. # Check to make sure the PIC flag actually works.
  14182. #
  14183. if test -n "$lt_prog_compiler_pic_CXX"; then
  14184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14185. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14186. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14187. $as_echo_n "(cached) " >&6
  14188. else
  14189. lt_cv_prog_compiler_pic_works_CXX=no
  14190. ac_outfile=conftest.$ac_objext
  14191. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14192. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14193. # Insert the option either (1) after the last *FLAGS variable, or
  14194. # (2) before a word containing "conftest.", or (3) at the end.
  14195. # Note that $ac_compile itself does not contain backslashes and begins
  14196. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14197. # The option is referenced via a variable to avoid confusing sed.
  14198. lt_compile=`echo "$ac_compile" | $SED \
  14199. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14200. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14201. -e 's:$: $lt_compiler_flag:'`
  14202. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14203. (eval "$lt_compile" 2>conftest.err)
  14204. ac_status=$?
  14205. cat conftest.err >&5
  14206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14207. if (exit $ac_status) && test -s "$ac_outfile"; then
  14208. # The compiler can only warn and ignore the option if not recognized
  14209. # So say no if there are warnings other than the usual output.
  14210. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14211. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14212. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14213. lt_cv_prog_compiler_pic_works_CXX=yes
  14214. fi
  14215. fi
  14216. $RM conftest*
  14217. fi
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14219. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14220. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14221. case $lt_prog_compiler_pic_CXX in
  14222. "" | " "*) ;;
  14223. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14224. esac
  14225. else
  14226. lt_prog_compiler_pic_CXX=
  14227. lt_prog_compiler_can_build_shared_CXX=no
  14228. fi
  14229. fi
  14230. #
  14231. # Check to make sure the static flag actually works.
  14232. #
  14233. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14235. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14236. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14237. $as_echo_n "(cached) " >&6
  14238. else
  14239. lt_cv_prog_compiler_static_works_CXX=no
  14240. save_LDFLAGS=$LDFLAGS
  14241. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14242. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14243. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14244. # The linker can only warn and ignore the option if not recognized
  14245. # So say no if there are warnings
  14246. if test -s conftest.err; then
  14247. # Append any errors to the config.log.
  14248. cat conftest.err 1>&5
  14249. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14250. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14251. if diff conftest.exp conftest.er2 >/dev/null; then
  14252. lt_cv_prog_compiler_static_works_CXX=yes
  14253. fi
  14254. else
  14255. lt_cv_prog_compiler_static_works_CXX=yes
  14256. fi
  14257. fi
  14258. $RM -r conftest*
  14259. LDFLAGS=$save_LDFLAGS
  14260. fi
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14262. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14263. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14264. :
  14265. else
  14266. lt_prog_compiler_static_CXX=
  14267. fi
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14269. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14270. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14271. $as_echo_n "(cached) " >&6
  14272. else
  14273. lt_cv_prog_compiler_c_o_CXX=no
  14274. $RM -r conftest 2>/dev/null
  14275. mkdir conftest
  14276. cd conftest
  14277. mkdir out
  14278. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14279. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14280. # Insert the option either (1) after the last *FLAGS variable, or
  14281. # (2) before a word containing "conftest.", or (3) at the end.
  14282. # Note that $ac_compile itself does not contain backslashes and begins
  14283. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14284. lt_compile=`echo "$ac_compile" | $SED \
  14285. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14286. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14287. -e 's:$: $lt_compiler_flag:'`
  14288. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14289. (eval "$lt_compile" 2>out/conftest.err)
  14290. ac_status=$?
  14291. cat out/conftest.err >&5
  14292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14293. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14294. then
  14295. # The compiler can only warn and ignore the option if not recognized
  14296. # So say no if there are warnings
  14297. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14298. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14299. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14300. lt_cv_prog_compiler_c_o_CXX=yes
  14301. fi
  14302. fi
  14303. chmod u+w . 2>&5
  14304. $RM conftest*
  14305. # SGI C++ compiler will create directory out/ii_files/ for
  14306. # template instantiation
  14307. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14308. $RM out/* && rmdir out
  14309. cd ..
  14310. $RM -r conftest
  14311. $RM conftest*
  14312. fi
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14314. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14316. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14317. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14318. $as_echo_n "(cached) " >&6
  14319. else
  14320. lt_cv_prog_compiler_c_o_CXX=no
  14321. $RM -r conftest 2>/dev/null
  14322. mkdir conftest
  14323. cd conftest
  14324. mkdir out
  14325. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14326. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14327. # Insert the option either (1) after the last *FLAGS variable, or
  14328. # (2) before a word containing "conftest.", or (3) at the end.
  14329. # Note that $ac_compile itself does not contain backslashes and begins
  14330. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14331. lt_compile=`echo "$ac_compile" | $SED \
  14332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14334. -e 's:$: $lt_compiler_flag:'`
  14335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14336. (eval "$lt_compile" 2>out/conftest.err)
  14337. ac_status=$?
  14338. cat out/conftest.err >&5
  14339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14340. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14341. then
  14342. # The compiler can only warn and ignore the option if not recognized
  14343. # So say no if there are warnings
  14344. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14345. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14346. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14347. lt_cv_prog_compiler_c_o_CXX=yes
  14348. fi
  14349. fi
  14350. chmod u+w . 2>&5
  14351. $RM conftest*
  14352. # SGI C++ compiler will create directory out/ii_files/ for
  14353. # template instantiation
  14354. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14355. $RM out/* && rmdir out
  14356. cd ..
  14357. $RM -r conftest
  14358. $RM conftest*
  14359. fi
  14360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14361. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14362. hard_links=nottested
  14363. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14364. # do not overwrite the value of need_locks provided by the user
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14366. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14367. hard_links=yes
  14368. $RM conftest*
  14369. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14370. touch conftest.a
  14371. ln conftest.a conftest.b 2>&5 || hard_links=no
  14372. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14374. $as_echo "$hard_links" >&6; }
  14375. if test no = "$hard_links"; then
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14377. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14378. need_locks=warn
  14379. fi
  14380. else
  14381. need_locks=no
  14382. fi
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14384. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14385. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14386. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14387. case $host_os in
  14388. aix[4-9]*)
  14389. # If we're using GNU nm, then we don't want the "-C" option.
  14390. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14391. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14392. # weak defined symbols like other global defined symbols, whereas
  14393. # GNU nm marks them as "W".
  14394. # While the 'weak' keyword is ignored in the Export File, we need
  14395. # it in the Import File for the 'aix-soname' feature, so we have
  14396. # to replace the "-B" option with "-P" for AIX nm.
  14397. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14398. 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'
  14399. else
  14400. 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'
  14401. fi
  14402. ;;
  14403. pw32*)
  14404. export_symbols_cmds_CXX=$ltdll_cmds
  14405. ;;
  14406. cygwin* | mingw* | cegcc*)
  14407. case $cc_basename in
  14408. cl*)
  14409. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14410. ;;
  14411. *)
  14412. 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'
  14413. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14414. ;;
  14415. esac
  14416. ;;
  14417. linux* | k*bsd*-gnu | gnu*)
  14418. link_all_deplibs_CXX=no
  14419. ;;
  14420. *)
  14421. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14422. ;;
  14423. esac
  14424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14425. $as_echo "$ld_shlibs_CXX" >&6; }
  14426. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14427. with_gnu_ld_CXX=$with_gnu_ld
  14428. #
  14429. # Do we need to explicitly link libc?
  14430. #
  14431. case "x$archive_cmds_need_lc_CXX" in
  14432. x|xyes)
  14433. # Assume -lc should be added
  14434. archive_cmds_need_lc_CXX=yes
  14435. if test yes,yes = "$GCC,$enable_shared"; then
  14436. case $archive_cmds_CXX in
  14437. *'~'*)
  14438. # FIXME: we may have to deal with multi-command sequences.
  14439. ;;
  14440. '$CC '*)
  14441. # Test whether the compiler implicitly links with -lc since on some
  14442. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14443. # to ld, don't add -lc before -lgcc.
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14445. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14446. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14447. $as_echo_n "(cached) " >&6
  14448. else
  14449. $RM conftest*
  14450. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14451. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14452. (eval $ac_compile) 2>&5
  14453. ac_status=$?
  14454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14455. test $ac_status = 0; } 2>conftest.err; then
  14456. soname=conftest
  14457. lib=conftest
  14458. libobjs=conftest.$ac_objext
  14459. deplibs=
  14460. wl=$lt_prog_compiler_wl_CXX
  14461. pic_flag=$lt_prog_compiler_pic_CXX
  14462. compiler_flags=-v
  14463. linker_flags=-v
  14464. verstring=
  14465. output_objdir=.
  14466. libname=conftest
  14467. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14468. allow_undefined_flag_CXX=
  14469. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14470. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14471. ac_status=$?
  14472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14473. test $ac_status = 0; }
  14474. then
  14475. lt_cv_archive_cmds_need_lc_CXX=no
  14476. else
  14477. lt_cv_archive_cmds_need_lc_CXX=yes
  14478. fi
  14479. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14480. else
  14481. cat conftest.err 1>&5
  14482. fi
  14483. $RM conftest*
  14484. fi
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14486. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14487. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14488. ;;
  14489. esac
  14490. fi
  14491. ;;
  14492. esac
  14493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14494. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14495. library_names_spec=
  14496. libname_spec='lib$name'
  14497. soname_spec=
  14498. shrext_cmds=.so
  14499. postinstall_cmds=
  14500. postuninstall_cmds=
  14501. finish_cmds=
  14502. finish_eval=
  14503. shlibpath_var=
  14504. shlibpath_overrides_runpath=unknown
  14505. version_type=none
  14506. dynamic_linker="$host_os ld.so"
  14507. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14508. need_lib_prefix=unknown
  14509. hardcode_into_libs=no
  14510. # when you set need_version to no, make sure it does not cause -set_version
  14511. # flags to be left without arguments
  14512. need_version=unknown
  14513. case $host_os in
  14514. aix3*)
  14515. version_type=linux # correct to gnu/linux during the next big refactor
  14516. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14517. shlibpath_var=LIBPATH
  14518. # AIX 3 has no versioning support, so we append a major version to the name.
  14519. soname_spec='$libname$release$shared_ext$major'
  14520. ;;
  14521. aix[4-9]*)
  14522. version_type=linux # correct to gnu/linux during the next big refactor
  14523. need_lib_prefix=no
  14524. need_version=no
  14525. hardcode_into_libs=yes
  14526. if test ia64 = "$host_cpu"; then
  14527. # AIX 5 supports IA64
  14528. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14529. shlibpath_var=LD_LIBRARY_PATH
  14530. else
  14531. # With GCC up to 2.95.x, collect2 would create an import file
  14532. # for dependence libraries. The import file would start with
  14533. # the line '#! .'. This would cause the generated library to
  14534. # depend on '.', always an invalid library. This was fixed in
  14535. # development snapshots of GCC prior to 3.0.
  14536. case $host_os in
  14537. aix4 | aix4.[01] | aix4.[01].*)
  14538. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14539. echo ' yes '
  14540. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14541. :
  14542. else
  14543. can_build_shared=no
  14544. fi
  14545. ;;
  14546. esac
  14547. # Using Import Files as archive members, it is possible to support
  14548. # filename-based versioning of shared library archives on AIX. While
  14549. # this would work for both with and without runtime linking, it will
  14550. # prevent static linking of such archives. So we do filename-based
  14551. # shared library versioning with .so extension only, which is used
  14552. # when both runtime linking and shared linking is enabled.
  14553. # Unfortunately, runtime linking may impact performance, so we do
  14554. # not want this to be the default eventually. Also, we use the
  14555. # versioned .so libs for executables only if there is the -brtl
  14556. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14557. # To allow for filename-based versioning support, we need to create
  14558. # libNAME.so.V as an archive file, containing:
  14559. # *) an Import File, referring to the versioned filename of the
  14560. # archive as well as the shared archive member, telling the
  14561. # bitwidth (32 or 64) of that shared object, and providing the
  14562. # list of exported symbols of that shared object, eventually
  14563. # decorated with the 'weak' keyword
  14564. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14565. # it being seen by the linker.
  14566. # At run time we better use the real file rather than another symlink,
  14567. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14568. case $with_aix_soname,$aix_use_runtimelinking in
  14569. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14570. # soname into executable. Probably we can add versioning support to
  14571. # collect2, so additional links can be useful in future.
  14572. aix,yes) # traditional libtool
  14573. dynamic_linker='AIX unversionable lib.so'
  14574. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14575. # instead of lib<name>.a to let people know that these are not
  14576. # typical AIX shared libraries.
  14577. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14578. ;;
  14579. aix,no) # traditional AIX only
  14580. dynamic_linker='AIX lib.a(lib.so.V)'
  14581. # We preserve .a as extension for shared libraries through AIX4.2
  14582. # and later when we are not doing run time linking.
  14583. library_names_spec='$libname$release.a $libname.a'
  14584. soname_spec='$libname$release$shared_ext$major'
  14585. ;;
  14586. svr4,*) # full svr4 only
  14587. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14588. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14589. # We do not specify a path in Import Files, so LIBPATH fires.
  14590. shlibpath_overrides_runpath=yes
  14591. ;;
  14592. *,yes) # both, prefer svr4
  14593. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14594. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14595. # unpreferred sharedlib libNAME.a needs extra handling
  14596. 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"'
  14597. 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"'
  14598. # We do not specify a path in Import Files, so LIBPATH fires.
  14599. shlibpath_overrides_runpath=yes
  14600. ;;
  14601. *,no) # both, prefer aix
  14602. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14603. library_names_spec='$libname$release.a $libname.a'
  14604. soname_spec='$libname$release$shared_ext$major'
  14605. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14606. 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)'
  14607. 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"'
  14608. ;;
  14609. esac
  14610. shlibpath_var=LIBPATH
  14611. fi
  14612. ;;
  14613. amigaos*)
  14614. case $host_cpu in
  14615. powerpc)
  14616. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14617. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14618. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14619. ;;
  14620. m68k)
  14621. library_names_spec='$libname.ixlibrary $libname.a'
  14622. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14623. 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'
  14624. ;;
  14625. esac
  14626. ;;
  14627. beos*)
  14628. library_names_spec='$libname$shared_ext'
  14629. dynamic_linker="$host_os ld.so"
  14630. shlibpath_var=LIBRARY_PATH
  14631. ;;
  14632. bsdi[45]*)
  14633. version_type=linux # correct to gnu/linux during the next big refactor
  14634. need_version=no
  14635. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14636. soname_spec='$libname$release$shared_ext$major'
  14637. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14638. shlibpath_var=LD_LIBRARY_PATH
  14639. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14640. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14641. # the default ld.so.conf also contains /usr/contrib/lib and
  14642. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14643. # libtool to hard-code these into programs
  14644. ;;
  14645. cygwin* | mingw* | pw32* | cegcc*)
  14646. version_type=windows
  14647. shrext_cmds=.dll
  14648. need_version=no
  14649. need_lib_prefix=no
  14650. case $GCC,$cc_basename in
  14651. yes,*)
  14652. # gcc
  14653. library_names_spec='$libname.dll.a'
  14654. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14655. postinstall_cmds='base_file=`basename \$file`~
  14656. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14657. dldir=$destdir/`dirname \$dlpath`~
  14658. test -d \$dldir || mkdir -p \$dldir~
  14659. $install_prog $dir/$dlname \$dldir/$dlname~
  14660. chmod a+x \$dldir/$dlname~
  14661. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14662. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14663. fi'
  14664. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14665. dlpath=$dir/\$dldll~
  14666. $RM \$dlpath'
  14667. shlibpath_overrides_runpath=yes
  14668. case $host_os in
  14669. cygwin*)
  14670. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14671. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14672. ;;
  14673. mingw* | cegcc*)
  14674. # MinGW DLLs use traditional 'lib' prefix
  14675. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14676. ;;
  14677. pw32*)
  14678. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14679. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14680. ;;
  14681. esac
  14682. dynamic_linker='Win32 ld.exe'
  14683. ;;
  14684. *,cl*)
  14685. # Native MSVC
  14686. libname_spec='$name'
  14687. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14688. library_names_spec='$libname.dll.lib'
  14689. case $build_os in
  14690. mingw*)
  14691. sys_lib_search_path_spec=
  14692. lt_save_ifs=$IFS
  14693. IFS=';'
  14694. for lt_path in $LIB
  14695. do
  14696. IFS=$lt_save_ifs
  14697. # Let DOS variable expansion print the short 8.3 style file name.
  14698. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14699. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14700. done
  14701. IFS=$lt_save_ifs
  14702. # Convert to MSYS style.
  14703. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14704. ;;
  14705. cygwin*)
  14706. # Convert to unix form, then to dos form, then back to unix form
  14707. # but this time dos style (no spaces!) so that the unix form looks
  14708. # like /cygdrive/c/PROGRA~1:/cygdr...
  14709. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14710. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14711. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14712. ;;
  14713. *)
  14714. sys_lib_search_path_spec=$LIB
  14715. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14716. # It is most probably a Windows format PATH.
  14717. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14718. else
  14719. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14720. fi
  14721. # FIXME: find the short name or the path components, as spaces are
  14722. # common. (e.g. "Program Files" -> "PROGRA~1")
  14723. ;;
  14724. esac
  14725. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14726. postinstall_cmds='base_file=`basename \$file`~
  14727. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14728. dldir=$destdir/`dirname \$dlpath`~
  14729. test -d \$dldir || mkdir -p \$dldir~
  14730. $install_prog $dir/$dlname \$dldir/$dlname'
  14731. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14732. dlpath=$dir/\$dldll~
  14733. $RM \$dlpath'
  14734. shlibpath_overrides_runpath=yes
  14735. dynamic_linker='Win32 link.exe'
  14736. ;;
  14737. *)
  14738. # Assume MSVC wrapper
  14739. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14740. dynamic_linker='Win32 ld.exe'
  14741. ;;
  14742. esac
  14743. # FIXME: first we should search . and the directory the executable is in
  14744. shlibpath_var=PATH
  14745. ;;
  14746. darwin* | rhapsody*)
  14747. dynamic_linker="$host_os dyld"
  14748. version_type=darwin
  14749. need_lib_prefix=no
  14750. need_version=no
  14751. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14752. soname_spec='$libname$release$major$shared_ext'
  14753. shlibpath_overrides_runpath=yes
  14754. shlibpath_var=DYLD_LIBRARY_PATH
  14755. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14756. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14757. ;;
  14758. dgux*)
  14759. version_type=linux # correct to gnu/linux during the next big refactor
  14760. need_lib_prefix=no
  14761. need_version=no
  14762. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14763. soname_spec='$libname$release$shared_ext$major'
  14764. shlibpath_var=LD_LIBRARY_PATH
  14765. ;;
  14766. freebsd* | dragonfly*)
  14767. # DragonFly does not have aout. When/if they implement a new
  14768. # versioning mechanism, adjust this.
  14769. if test -x /usr/bin/objformat; then
  14770. objformat=`/usr/bin/objformat`
  14771. else
  14772. case $host_os in
  14773. freebsd[23].*) objformat=aout ;;
  14774. *) objformat=elf ;;
  14775. esac
  14776. fi
  14777. version_type=freebsd-$objformat
  14778. case $version_type in
  14779. freebsd-elf*)
  14780. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14781. soname_spec='$libname$release$shared_ext$major'
  14782. need_version=no
  14783. need_lib_prefix=no
  14784. ;;
  14785. freebsd-*)
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14787. need_version=yes
  14788. ;;
  14789. esac
  14790. shlibpath_var=LD_LIBRARY_PATH
  14791. case $host_os in
  14792. freebsd2.*)
  14793. shlibpath_overrides_runpath=yes
  14794. ;;
  14795. freebsd3.[01]* | freebsdelf3.[01]*)
  14796. shlibpath_overrides_runpath=yes
  14797. hardcode_into_libs=yes
  14798. ;;
  14799. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14800. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14801. shlibpath_overrides_runpath=no
  14802. hardcode_into_libs=yes
  14803. ;;
  14804. *) # from 4.6 on, and DragonFly
  14805. shlibpath_overrides_runpath=yes
  14806. hardcode_into_libs=yes
  14807. ;;
  14808. esac
  14809. ;;
  14810. haiku*)
  14811. version_type=linux # correct to gnu/linux during the next big refactor
  14812. need_lib_prefix=no
  14813. need_version=no
  14814. dynamic_linker="$host_os runtime_loader"
  14815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14816. soname_spec='$libname$release$shared_ext$major'
  14817. shlibpath_var=LIBRARY_PATH
  14818. shlibpath_overrides_runpath=no
  14819. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14820. hardcode_into_libs=yes
  14821. ;;
  14822. hpux9* | hpux10* | hpux11*)
  14823. # Give a soname corresponding to the major version so that dld.sl refuses to
  14824. # link against other versions.
  14825. version_type=sunos
  14826. need_lib_prefix=no
  14827. need_version=no
  14828. case $host_cpu in
  14829. ia64*)
  14830. shrext_cmds='.so'
  14831. hardcode_into_libs=yes
  14832. dynamic_linker="$host_os dld.so"
  14833. shlibpath_var=LD_LIBRARY_PATH
  14834. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14835. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14836. soname_spec='$libname$release$shared_ext$major'
  14837. if test 32 = "$HPUX_IA64_MODE"; then
  14838. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14839. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14840. else
  14841. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14842. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14843. fi
  14844. ;;
  14845. hppa*64*)
  14846. shrext_cmds='.sl'
  14847. hardcode_into_libs=yes
  14848. dynamic_linker="$host_os dld.sl"
  14849. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14850. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14851. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14852. soname_spec='$libname$release$shared_ext$major'
  14853. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14854. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14855. ;;
  14856. *)
  14857. shrext_cmds='.sl'
  14858. dynamic_linker="$host_os dld.sl"
  14859. shlibpath_var=SHLIB_PATH
  14860. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14862. soname_spec='$libname$release$shared_ext$major'
  14863. ;;
  14864. esac
  14865. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14866. postinstall_cmds='chmod 555 $lib'
  14867. # or fails outright, so override atomically:
  14868. install_override_mode=555
  14869. ;;
  14870. interix[3-9]*)
  14871. version_type=linux # correct to gnu/linux during the next big refactor
  14872. need_lib_prefix=no
  14873. need_version=no
  14874. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14875. soname_spec='$libname$release$shared_ext$major'
  14876. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14877. shlibpath_var=LD_LIBRARY_PATH
  14878. shlibpath_overrides_runpath=no
  14879. hardcode_into_libs=yes
  14880. ;;
  14881. irix5* | irix6* | nonstopux*)
  14882. case $host_os in
  14883. nonstopux*) version_type=nonstopux ;;
  14884. *)
  14885. if test yes = "$lt_cv_prog_gnu_ld"; then
  14886. version_type=linux # correct to gnu/linux during the next big refactor
  14887. else
  14888. version_type=irix
  14889. fi ;;
  14890. esac
  14891. need_lib_prefix=no
  14892. need_version=no
  14893. soname_spec='$libname$release$shared_ext$major'
  14894. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14895. case $host_os in
  14896. irix5* | nonstopux*)
  14897. libsuff= shlibsuff=
  14898. ;;
  14899. *)
  14900. case $LD in # libtool.m4 will add one of these switches to LD
  14901. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14902. libsuff= shlibsuff= libmagic=32-bit;;
  14903. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14904. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14905. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14906. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14907. *) libsuff= shlibsuff= libmagic=never-match;;
  14908. esac
  14909. ;;
  14910. esac
  14911. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14912. shlibpath_overrides_runpath=no
  14913. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14914. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14915. hardcode_into_libs=yes
  14916. ;;
  14917. # No shared lib support for Linux oldld, aout, or coff.
  14918. linux*oldld* | linux*aout* | linux*coff*)
  14919. dynamic_linker=no
  14920. ;;
  14921. linux*android*)
  14922. version_type=none # Android doesn't support versioned libraries.
  14923. need_lib_prefix=no
  14924. need_version=no
  14925. library_names_spec='$libname$release$shared_ext'
  14926. soname_spec='$libname$release$shared_ext'
  14927. finish_cmds=
  14928. shlibpath_var=LD_LIBRARY_PATH
  14929. shlibpath_overrides_runpath=yes
  14930. # This implies no fast_install, which is unacceptable.
  14931. # Some rework will be needed to allow for fast_install
  14932. # before this can be enabled.
  14933. hardcode_into_libs=yes
  14934. dynamic_linker='Android linker'
  14935. # Don't embed -rpath directories since the linker doesn't support them.
  14936. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14937. ;;
  14938. # This must be glibc/ELF.
  14939. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14940. version_type=linux # correct to gnu/linux during the next big refactor
  14941. need_lib_prefix=no
  14942. need_version=no
  14943. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14944. soname_spec='$libname$release$shared_ext$major'
  14945. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14946. shlibpath_var=LD_LIBRARY_PATH
  14947. shlibpath_overrides_runpath=no
  14948. # Some binutils ld are patched to set DT_RUNPATH
  14949. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14950. $as_echo_n "(cached) " >&6
  14951. else
  14952. lt_cv_shlibpath_overrides_runpath=no
  14953. save_LDFLAGS=$LDFLAGS
  14954. save_libdir=$libdir
  14955. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14956. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14958. /* end confdefs.h. */
  14959. int
  14960. main ()
  14961. {
  14962. ;
  14963. return 0;
  14964. }
  14965. _ACEOF
  14966. if ac_fn_cxx_try_link "$LINENO"; then :
  14967. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14968. lt_cv_shlibpath_overrides_runpath=yes
  14969. fi
  14970. fi
  14971. rm -f core conftest.err conftest.$ac_objext \
  14972. conftest$ac_exeext conftest.$ac_ext
  14973. LDFLAGS=$save_LDFLAGS
  14974. libdir=$save_libdir
  14975. fi
  14976. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14977. # This implies no fast_install, which is unacceptable.
  14978. # Some rework will be needed to allow for fast_install
  14979. # before this can be enabled.
  14980. hardcode_into_libs=yes
  14981. # Ideally, we could use ldconfig to report *all* directores which are
  14982. # searched for libraries, however this is still not possible. Aside from not
  14983. # being certain /sbin/ldconfig is available, command
  14984. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14985. # even though it is searched at run-time. Try to do the best guess by
  14986. # appending ld.so.conf contents (and includes) to the search path.
  14987. if test -f /etc/ld.so.conf; then
  14988. 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' ' '`
  14989. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14990. fi
  14991. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14992. # powerpc, because MkLinux only supported shared libraries with the
  14993. # GNU dynamic linker. Since this was broken with cross compilers,
  14994. # most powerpc-linux boxes support dynamic linking these days and
  14995. # people can always --disable-shared, the test was removed, and we
  14996. # assume the GNU/Linux dynamic linker is in use.
  14997. dynamic_linker='GNU/Linux ld.so'
  14998. ;;
  14999. netbsdelf*-gnu)
  15000. version_type=linux
  15001. need_lib_prefix=no
  15002. need_version=no
  15003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15004. soname_spec='${libname}${release}${shared_ext}$major'
  15005. shlibpath_var=LD_LIBRARY_PATH
  15006. shlibpath_overrides_runpath=no
  15007. hardcode_into_libs=yes
  15008. dynamic_linker='NetBSD ld.elf_so'
  15009. ;;
  15010. netbsd*)
  15011. version_type=sunos
  15012. need_lib_prefix=no
  15013. need_version=no
  15014. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15015. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15017. dynamic_linker='NetBSD (a.out) ld.so'
  15018. else
  15019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15020. soname_spec='$libname$release$shared_ext$major'
  15021. dynamic_linker='NetBSD ld.elf_so'
  15022. fi
  15023. shlibpath_var=LD_LIBRARY_PATH
  15024. shlibpath_overrides_runpath=yes
  15025. hardcode_into_libs=yes
  15026. ;;
  15027. newsos6)
  15028. version_type=linux # correct to gnu/linux during the next big refactor
  15029. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15030. shlibpath_var=LD_LIBRARY_PATH
  15031. shlibpath_overrides_runpath=yes
  15032. ;;
  15033. *nto* | *qnx*)
  15034. version_type=qnx
  15035. need_lib_prefix=no
  15036. need_version=no
  15037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15038. soname_spec='$libname$release$shared_ext$major'
  15039. shlibpath_var=LD_LIBRARY_PATH
  15040. shlibpath_overrides_runpath=no
  15041. hardcode_into_libs=yes
  15042. dynamic_linker='ldqnx.so'
  15043. ;;
  15044. openbsd* | bitrig*)
  15045. version_type=sunos
  15046. sys_lib_dlsearch_path_spec=/usr/lib
  15047. need_lib_prefix=no
  15048. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15049. need_version=no
  15050. else
  15051. need_version=yes
  15052. fi
  15053. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15054. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15055. shlibpath_var=LD_LIBRARY_PATH
  15056. shlibpath_overrides_runpath=yes
  15057. ;;
  15058. os2*)
  15059. libname_spec='$name'
  15060. version_type=windows
  15061. shrext_cmds=.dll
  15062. need_version=no
  15063. need_lib_prefix=no
  15064. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15065. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15066. v=$($ECHO $release$versuffix | tr -d .-);
  15067. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15068. $ECHO $n$v`$shared_ext'
  15069. library_names_spec='${libname}_dll.$libext'
  15070. dynamic_linker='OS/2 ld.exe'
  15071. shlibpath_var=BEGINLIBPATH
  15072. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15073. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15074. postinstall_cmds='base_file=`basename \$file`~
  15075. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15076. dldir=$destdir/`dirname \$dlpath`~
  15077. test -d \$dldir || mkdir -p \$dldir~
  15078. $install_prog $dir/$dlname \$dldir/$dlname~
  15079. chmod a+x \$dldir/$dlname~
  15080. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15081. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15082. fi'
  15083. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15084. dlpath=$dir/\$dldll~
  15085. $RM \$dlpath'
  15086. ;;
  15087. osf3* | osf4* | osf5*)
  15088. version_type=osf
  15089. need_lib_prefix=no
  15090. need_version=no
  15091. soname_spec='$libname$release$shared_ext$major'
  15092. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15093. shlibpath_var=LD_LIBRARY_PATH
  15094. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15095. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15096. ;;
  15097. rdos*)
  15098. dynamic_linker=no
  15099. ;;
  15100. solaris*)
  15101. version_type=linux # correct to gnu/linux during the next big refactor
  15102. need_lib_prefix=no
  15103. need_version=no
  15104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15105. soname_spec='$libname$release$shared_ext$major'
  15106. shlibpath_var=LD_LIBRARY_PATH
  15107. shlibpath_overrides_runpath=yes
  15108. hardcode_into_libs=yes
  15109. # ldd complains unless libraries are executable
  15110. postinstall_cmds='chmod +x $lib'
  15111. ;;
  15112. sunos4*)
  15113. version_type=sunos
  15114. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15115. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15116. shlibpath_var=LD_LIBRARY_PATH
  15117. shlibpath_overrides_runpath=yes
  15118. if test yes = "$with_gnu_ld"; then
  15119. need_lib_prefix=no
  15120. fi
  15121. need_version=yes
  15122. ;;
  15123. sysv4 | sysv4.3*)
  15124. version_type=linux # correct to gnu/linux during the next big refactor
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. case $host_vendor in
  15129. sni)
  15130. shlibpath_overrides_runpath=no
  15131. need_lib_prefix=no
  15132. runpath_var=LD_RUN_PATH
  15133. ;;
  15134. siemens)
  15135. need_lib_prefix=no
  15136. ;;
  15137. motorola)
  15138. need_lib_prefix=no
  15139. need_version=no
  15140. shlibpath_overrides_runpath=no
  15141. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15142. ;;
  15143. esac
  15144. ;;
  15145. sysv4*MP*)
  15146. if test -d /usr/nec; then
  15147. version_type=linux # correct to gnu/linux during the next big refactor
  15148. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15149. soname_spec='$libname$shared_ext.$major'
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. fi
  15152. ;;
  15153. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15154. version_type=sco
  15155. need_lib_prefix=no
  15156. need_version=no
  15157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15158. soname_spec='$libname$release$shared_ext$major'
  15159. shlibpath_var=LD_LIBRARY_PATH
  15160. shlibpath_overrides_runpath=yes
  15161. hardcode_into_libs=yes
  15162. if test yes = "$with_gnu_ld"; then
  15163. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15164. else
  15165. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15166. case $host_os in
  15167. sco3.2v5*)
  15168. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15169. ;;
  15170. esac
  15171. fi
  15172. sys_lib_dlsearch_path_spec='/usr/lib'
  15173. ;;
  15174. tpf*)
  15175. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15176. version_type=linux # correct to gnu/linux during the next big refactor
  15177. need_lib_prefix=no
  15178. need_version=no
  15179. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=no
  15182. hardcode_into_libs=yes
  15183. ;;
  15184. uts4*)
  15185. version_type=linux # correct to gnu/linux during the next big refactor
  15186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15187. soname_spec='$libname$release$shared_ext$major'
  15188. shlibpath_var=LD_LIBRARY_PATH
  15189. ;;
  15190. *)
  15191. dynamic_linker=no
  15192. ;;
  15193. esac
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15195. $as_echo "$dynamic_linker" >&6; }
  15196. test no = "$dynamic_linker" && can_build_shared=no
  15197. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15198. if test yes = "$GCC"; then
  15199. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15200. fi
  15201. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15202. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15203. fi
  15204. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15205. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15206. fi
  15207. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15208. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15209. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15210. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15211. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15212. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15214. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15215. hardcode_action_CXX=
  15216. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15217. test -n "$runpath_var_CXX" ||
  15218. test yes = "$hardcode_automatic_CXX"; then
  15219. # We can hardcode non-existent directories.
  15220. if test no != "$hardcode_direct_CXX" &&
  15221. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15222. # have to relink, otherwise we might link with an installed library
  15223. # when we should be linking with a yet-to-be-installed one
  15224. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15225. test no != "$hardcode_minus_L_CXX"; then
  15226. # Linking always hardcodes the temporary library directory.
  15227. hardcode_action_CXX=relink
  15228. else
  15229. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15230. hardcode_action_CXX=immediate
  15231. fi
  15232. else
  15233. # We cannot hardcode anything, or else we can only hardcode existing
  15234. # directories.
  15235. hardcode_action_CXX=unsupported
  15236. fi
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15238. $as_echo "$hardcode_action_CXX" >&6; }
  15239. if test relink = "$hardcode_action_CXX" ||
  15240. test yes = "$inherit_rpath_CXX"; then
  15241. # Fast installation is not supported
  15242. enable_fast_install=no
  15243. elif test yes = "$shlibpath_overrides_runpath" ||
  15244. test no = "$enable_shared"; then
  15245. # Fast installation is not necessary
  15246. enable_fast_install=needless
  15247. fi
  15248. fi # test -n "$compiler"
  15249. CC=$lt_save_CC
  15250. CFLAGS=$lt_save_CFLAGS
  15251. LDCXX=$LD
  15252. LD=$lt_save_LD
  15253. GCC=$lt_save_GCC
  15254. with_gnu_ld=$lt_save_with_gnu_ld
  15255. lt_cv_path_LDCXX=$lt_cv_path_LD
  15256. lt_cv_path_LD=$lt_save_path_LD
  15257. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15258. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15259. fi # test yes != "$_lt_caught_CXX_error"
  15260. ac_ext=c
  15261. ac_cpp='$CPP $CPPFLAGS'
  15262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15265. ac_ext=c
  15266. ac_cpp='$CPP $CPPFLAGS'
  15267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15271. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15272. # On Suns, sometimes $CPP names a directory.
  15273. if test -n "$CPP" && test -d "$CPP"; then
  15274. CPP=
  15275. fi
  15276. if test -z "$CPP"; then
  15277. if ${ac_cv_prog_CPP+:} false; then :
  15278. $as_echo_n "(cached) " >&6
  15279. else
  15280. # Double quotes because CPP needs to be expanded
  15281. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15282. do
  15283. ac_preproc_ok=false
  15284. for ac_c_preproc_warn_flag in '' yes
  15285. do
  15286. # Use a header file that comes with gcc, so configuring glibc
  15287. # with a fresh cross-compiler works.
  15288. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15289. # <limits.h> exists even on freestanding compilers.
  15290. # On the NeXT, cc -E runs the code through the compiler's parser,
  15291. # not just through cpp. "Syntax error" is here to catch this case.
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. #ifdef __STDC__
  15295. # include <limits.h>
  15296. #else
  15297. # include <assert.h>
  15298. #endif
  15299. Syntax error
  15300. _ACEOF
  15301. if ac_fn_c_try_cpp "$LINENO"; then :
  15302. else
  15303. # Broken: fails on valid input.
  15304. continue
  15305. fi
  15306. rm -f conftest.err conftest.i conftest.$ac_ext
  15307. # OK, works on sane cases. Now check whether nonexistent headers
  15308. # can be detected and how.
  15309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15310. /* end confdefs.h. */
  15311. #include <ac_nonexistent.h>
  15312. _ACEOF
  15313. if ac_fn_c_try_cpp "$LINENO"; then :
  15314. # Broken: success on invalid input.
  15315. continue
  15316. else
  15317. # Passes both tests.
  15318. ac_preproc_ok=:
  15319. break
  15320. fi
  15321. rm -f conftest.err conftest.i conftest.$ac_ext
  15322. done
  15323. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15324. rm -f conftest.i conftest.err conftest.$ac_ext
  15325. if $ac_preproc_ok; then :
  15326. break
  15327. fi
  15328. done
  15329. ac_cv_prog_CPP=$CPP
  15330. fi
  15331. CPP=$ac_cv_prog_CPP
  15332. else
  15333. ac_cv_prog_CPP=$CPP
  15334. fi
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15336. $as_echo "$CPP" >&6; }
  15337. ac_preproc_ok=false
  15338. for ac_c_preproc_warn_flag in '' yes
  15339. do
  15340. # Use a header file that comes with gcc, so configuring glibc
  15341. # with a fresh cross-compiler works.
  15342. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15343. # <limits.h> exists even on freestanding compilers.
  15344. # On the NeXT, cc -E runs the code through the compiler's parser,
  15345. # not just through cpp. "Syntax error" is here to catch this case.
  15346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15347. /* end confdefs.h. */
  15348. #ifdef __STDC__
  15349. # include <limits.h>
  15350. #else
  15351. # include <assert.h>
  15352. #endif
  15353. Syntax error
  15354. _ACEOF
  15355. if ac_fn_c_try_cpp "$LINENO"; then :
  15356. else
  15357. # Broken: fails on valid input.
  15358. continue
  15359. fi
  15360. rm -f conftest.err conftest.i conftest.$ac_ext
  15361. # OK, works on sane cases. Now check whether nonexistent headers
  15362. # can be detected and how.
  15363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15364. /* end confdefs.h. */
  15365. #include <ac_nonexistent.h>
  15366. _ACEOF
  15367. if ac_fn_c_try_cpp "$LINENO"; then :
  15368. # Broken: success on invalid input.
  15369. continue
  15370. else
  15371. # Passes both tests.
  15372. ac_preproc_ok=:
  15373. break
  15374. fi
  15375. rm -f conftest.err conftest.i conftest.$ac_ext
  15376. done
  15377. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15378. rm -f conftest.i conftest.err conftest.$ac_ext
  15379. if $ac_preproc_ok; then :
  15380. else
  15381. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15382. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15383. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15384. See \`config.log' for more details" "$LINENO" 5; }
  15385. fi
  15386. ac_ext=c
  15387. ac_cpp='$CPP $CPPFLAGS'
  15388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15392. $as_echo_n "checking whether ln -s works... " >&6; }
  15393. LN_S=$as_ln_s
  15394. if test "$LN_S" = "ln -s"; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15396. $as_echo "yes" >&6; }
  15397. else
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15399. $as_echo "no, using $LN_S" >&6; }
  15400. fi
  15401. for ac_prog in gawk mawk nawk awk
  15402. do
  15403. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15404. set dummy $ac_prog; ac_word=$2
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15406. $as_echo_n "checking for $ac_word... " >&6; }
  15407. if ${ac_cv_prog_AWK+:} false; then :
  15408. $as_echo_n "(cached) " >&6
  15409. else
  15410. if test -n "$AWK"; then
  15411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15412. else
  15413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15414. for as_dir in $PATH
  15415. do
  15416. IFS=$as_save_IFS
  15417. test -z "$as_dir" && as_dir=.
  15418. for ac_exec_ext in '' $ac_executable_extensions; do
  15419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15420. ac_cv_prog_AWK="$ac_prog"
  15421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15422. break 2
  15423. fi
  15424. done
  15425. done
  15426. IFS=$as_save_IFS
  15427. fi
  15428. fi
  15429. AWK=$ac_cv_prog_AWK
  15430. if test -n "$AWK"; then
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15432. $as_echo "$AWK" >&6; }
  15433. else
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15435. $as_echo "no" >&6; }
  15436. fi
  15437. test -n "$AWK" && break
  15438. done
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15440. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15441. if ${ac_cv_path_SED+:} false; then :
  15442. $as_echo_n "(cached) " >&6
  15443. else
  15444. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15445. for ac_i in 1 2 3 4 5 6 7; do
  15446. ac_script="$ac_script$as_nl$ac_script"
  15447. done
  15448. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15449. { ac_script=; unset ac_script;}
  15450. if test -z "$SED"; then
  15451. ac_path_SED_found=false
  15452. # Loop through the user's path and test for each of PROGNAME-LIST
  15453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15454. for as_dir in $PATH
  15455. do
  15456. IFS=$as_save_IFS
  15457. test -z "$as_dir" && as_dir=.
  15458. for ac_prog in sed gsed; do
  15459. for ac_exec_ext in '' $ac_executable_extensions; do
  15460. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15461. as_fn_executable_p "$ac_path_SED" || continue
  15462. # Check for GNU ac_path_SED and select it if it is found.
  15463. # Check for GNU $ac_path_SED
  15464. case `"$ac_path_SED" --version 2>&1` in
  15465. *GNU*)
  15466. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15467. *)
  15468. ac_count=0
  15469. $as_echo_n 0123456789 >"conftest.in"
  15470. while :
  15471. do
  15472. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15473. mv "conftest.tmp" "conftest.in"
  15474. cp "conftest.in" "conftest.nl"
  15475. $as_echo '' >> "conftest.nl"
  15476. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15477. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15478. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15479. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15480. # Best one so far, save it but keep looking for a better one
  15481. ac_cv_path_SED="$ac_path_SED"
  15482. ac_path_SED_max=$ac_count
  15483. fi
  15484. # 10*(2^10) chars as input seems more than enough
  15485. test $ac_count -gt 10 && break
  15486. done
  15487. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15488. esac
  15489. $ac_path_SED_found && break 3
  15490. done
  15491. done
  15492. done
  15493. IFS=$as_save_IFS
  15494. if test -z "$ac_cv_path_SED"; then
  15495. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15496. fi
  15497. else
  15498. ac_cv_path_SED=$SED
  15499. fi
  15500. fi
  15501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15502. $as_echo "$ac_cv_path_SED" >&6; }
  15503. SED="$ac_cv_path_SED"
  15504. rm -f conftest.sed
  15505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15506. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15507. set x ${MAKE-make}
  15508. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15509. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15510. $as_echo_n "(cached) " >&6
  15511. else
  15512. cat >conftest.make <<\_ACEOF
  15513. SHELL = /bin/sh
  15514. all:
  15515. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15516. _ACEOF
  15517. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15518. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15519. *@@@%%%=?*=@@@%%%*)
  15520. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15521. *)
  15522. eval ac_cv_prog_make_${ac_make}_set=no;;
  15523. esac
  15524. rm -f conftest.make
  15525. fi
  15526. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15528. $as_echo "yes" >&6; }
  15529. SET_MAKE=
  15530. else
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15532. $as_echo "no" >&6; }
  15533. SET_MAKE="MAKE=${MAKE-make}"
  15534. fi
  15535. # Extract the first word of "printf", so it can be a program name with args.
  15536. set dummy printf; ac_word=$2
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15538. $as_echo_n "checking for $ac_word... " >&6; }
  15539. if ${ac_cv_path_PRINTF+:} false; then :
  15540. $as_echo_n "(cached) " >&6
  15541. else
  15542. case $PRINTF in
  15543. [\\/]* | ?:[\\/]*)
  15544. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15545. ;;
  15546. *)
  15547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15548. for as_dir in $PATH
  15549. do
  15550. IFS=$as_save_IFS
  15551. test -z "$as_dir" && as_dir=.
  15552. for ac_exec_ext in '' $ac_executable_extensions; do
  15553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15554. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15556. break 2
  15557. fi
  15558. done
  15559. done
  15560. IFS=$as_save_IFS
  15561. ;;
  15562. esac
  15563. fi
  15564. PRINTF=$ac_cv_path_PRINTF
  15565. if test -n "$PRINTF"; then
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15567. $as_echo "$PRINTF" >&6; }
  15568. else
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15570. $as_echo "no" >&6; }
  15571. fi
  15572. # Extract the first word of "echo", so it can be a program name with args.
  15573. set dummy echo; ac_word=$2
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15575. $as_echo_n "checking for $ac_word... " >&6; }
  15576. if ${ac_cv_path_ECHO+:} false; then :
  15577. $as_echo_n "(cached) " >&6
  15578. else
  15579. case $ECHO in
  15580. [\\/]* | ?:[\\/]*)
  15581. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15582. ;;
  15583. *)
  15584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15585. for as_dir in $PATH
  15586. do
  15587. IFS=$as_save_IFS
  15588. test -z "$as_dir" && as_dir=.
  15589. for ac_exec_ext in '' $ac_executable_extensions; do
  15590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15591. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15593. break 2
  15594. fi
  15595. done
  15596. done
  15597. IFS=$as_save_IFS
  15598. ;;
  15599. esac
  15600. fi
  15601. ECHO=$ac_cv_path_ECHO
  15602. if test -n "$ECHO"; then
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15604. $as_echo "$ECHO" >&6; }
  15605. else
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15607. $as_echo "no" >&6; }
  15608. fi
  15609. # Extract the first word of "cut", so it can be a program name with args.
  15610. set dummy cut; ac_word=$2
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15612. $as_echo_n "checking for $ac_word... " >&6; }
  15613. if ${ac_cv_path_CUT+:} false; then :
  15614. $as_echo_n "(cached) " >&6
  15615. else
  15616. case $CUT in
  15617. [\\/]* | ?:[\\/]*)
  15618. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15619. ;;
  15620. *)
  15621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15622. for as_dir in $PATH
  15623. do
  15624. IFS=$as_save_IFS
  15625. test -z "$as_dir" && as_dir=.
  15626. for ac_exec_ext in '' $ac_executable_extensions; do
  15627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15628. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15630. break 2
  15631. fi
  15632. done
  15633. done
  15634. IFS=$as_save_IFS
  15635. ;;
  15636. esac
  15637. fi
  15638. CUT=$ac_cv_path_CUT
  15639. if test -n "$CUT"; then
  15640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15641. $as_echo "$CUT" >&6; }
  15642. else
  15643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15644. $as_echo "no" >&6; }
  15645. fi
  15646. # Extract the first word of "autogen", so it can be a program name with args.
  15647. set dummy autogen; ac_word=$2
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15649. $as_echo_n "checking for $ac_word... " >&6; }
  15650. if ${ac_cv_path_AUTOGEN+:} false; then :
  15651. $as_echo_n "(cached) " >&6
  15652. else
  15653. case $AUTOGEN in
  15654. [\\/]* | ?:[\\/]*)
  15655. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15656. ;;
  15657. *)
  15658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15659. for as_dir in $PATH
  15660. do
  15661. IFS=$as_save_IFS
  15662. test -z "$as_dir" && as_dir=.
  15663. for ac_exec_ext in '' $ac_executable_extensions; do
  15664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15665. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15667. break 2
  15668. fi
  15669. done
  15670. done
  15671. IFS=$as_save_IFS
  15672. ;;
  15673. esac
  15674. fi
  15675. AUTOGEN=$ac_cv_path_AUTOGEN
  15676. if test -n "$AUTOGEN"; then
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15678. $as_echo "$AUTOGEN" >&6; }
  15679. else
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15681. $as_echo "no" >&6; }
  15682. fi
  15683. # Extract the first word of "groff", so it can be a program name with args.
  15684. set dummy groff; ac_word=$2
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15686. $as_echo_n "checking for $ac_word... " >&6; }
  15687. if ${ac_cv_path_GROFF+:} false; then :
  15688. $as_echo_n "(cached) " >&6
  15689. else
  15690. case $GROFF in
  15691. [\\/]* | ?:[\\/]*)
  15692. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15693. ;;
  15694. *)
  15695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15696. for as_dir in $PATH
  15697. do
  15698. IFS=$as_save_IFS
  15699. test -z "$as_dir" && as_dir=.
  15700. for ac_exec_ext in '' $ac_executable_extensions; do
  15701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15702. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15704. break 2
  15705. fi
  15706. done
  15707. done
  15708. IFS=$as_save_IFS
  15709. ;;
  15710. esac
  15711. fi
  15712. GROFF=$ac_cv_path_GROFF
  15713. if test -n "$GROFF"; then
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15715. $as_echo "$GROFF" >&6; }
  15716. else
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15718. $as_echo "no" >&6; }
  15719. fi
  15720. # Extract the first word of "depmod", so it can be a program name with args.
  15721. set dummy depmod; ac_word=$2
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15723. $as_echo_n "checking for $ac_word... " >&6; }
  15724. if ${ac_cv_path_depmod+:} false; then :
  15725. $as_echo_n "(cached) " >&6
  15726. else
  15727. case $depmod in
  15728. [\\/]* | ?:[\\/]*)
  15729. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15730. ;;
  15731. *)
  15732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15733. as_dummy="$PATH:/sbin"
  15734. for as_dir in $as_dummy
  15735. do
  15736. IFS=$as_save_IFS
  15737. test -z "$as_dir" && as_dir=.
  15738. for ac_exec_ext in '' $ac_executable_extensions; do
  15739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15740. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15742. break 2
  15743. fi
  15744. done
  15745. done
  15746. IFS=$as_save_IFS
  15747. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15748. ;;
  15749. esac
  15750. fi
  15751. depmod=$ac_cv_path_depmod
  15752. if test -n "$depmod"; then
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15754. $as_echo "$depmod" >&6; }
  15755. else
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15757. $as_echo "no" >&6; }
  15758. fi
  15759. # Extract the first word of "insmod", so it can be a program name with args.
  15760. set dummy insmod; ac_word=$2
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15762. $as_echo_n "checking for $ac_word... " >&6; }
  15763. if ${ac_cv_path_insmod+:} false; then :
  15764. $as_echo_n "(cached) " >&6
  15765. else
  15766. case $insmod in
  15767. [\\/]* | ?:[\\/]*)
  15768. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15769. ;;
  15770. *)
  15771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15772. as_dummy="$PATH:/sbin"
  15773. for as_dir in $as_dummy
  15774. do
  15775. IFS=$as_save_IFS
  15776. test -z "$as_dir" && as_dir=.
  15777. for ac_exec_ext in '' $ac_executable_extensions; do
  15778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15779. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15781. break 2
  15782. fi
  15783. done
  15784. done
  15785. IFS=$as_save_IFS
  15786. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15787. ;;
  15788. esac
  15789. fi
  15790. insmod=$ac_cv_path_insmod
  15791. if test -n "$insmod"; then
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15793. $as_echo "$insmod" >&6; }
  15794. else
  15795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15796. $as_echo "no" >&6; }
  15797. fi
  15798. # Extract the first word of "rmmod", so it can be a program name with args.
  15799. set dummy rmmod; ac_word=$2
  15800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15801. $as_echo_n "checking for $ac_word... " >&6; }
  15802. if ${ac_cv_path_rmmod+:} false; then :
  15803. $as_echo_n "(cached) " >&6
  15804. else
  15805. case $rmmod in
  15806. [\\/]* | ?:[\\/]*)
  15807. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15808. ;;
  15809. *)
  15810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15811. as_dummy="$PATH:/sbin"
  15812. for as_dir in $as_dummy
  15813. do
  15814. IFS=$as_save_IFS
  15815. test -z "$as_dir" && as_dir=.
  15816. for ac_exec_ext in '' $ac_executable_extensions; do
  15817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15818. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15820. break 2
  15821. fi
  15822. done
  15823. done
  15824. IFS=$as_save_IFS
  15825. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15826. ;;
  15827. esac
  15828. fi
  15829. rmmod=$ac_cv_path_rmmod
  15830. if test -n "$rmmod"; then
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15832. $as_echo "$rmmod" >&6; }
  15833. else
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15835. $as_echo "no" >&6; }
  15836. fi
  15837. case "${enable_local_libopts+set}" in
  15838. set) ;;
  15839. *) enable_local_libopts=yes ;;
  15840. esac
  15841. case "${enable_libopts_install+set}" in
  15842. set) ;;
  15843. *) enable_libopts_install=no ;;
  15844. esac
  15845. AUTOGEN_VERSION="unknown - man pages will not be built"
  15846. if test -n "${AUTOGEN}" ; then
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15848. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15849. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15850. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15851. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15852. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15853. if test -z "$AUTOGEN_BUILD"; then
  15854. AUTOGEN_BUILD=0
  15855. fi
  15856. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15857. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15858. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15860. $as_echo "no" >&6; }
  15861. if test ! "x$enable_local_libopts" = "xyes"; then
  15862. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15863. fi
  15864. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15865. else
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15867. $as_echo "yes" >&6; }
  15868. fi
  15869. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15870. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15871. 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
  15872. fi
  15873. fi
  15874. else
  15875. if test ! -f src/tcpreplay_opts.c ; then
  15876. 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 https://github.com/appneta/tcpreplay/releases/latest" "$LINENO" 5
  15877. fi
  15878. fi
  15879. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15880. if test "x$enable_local_libopts" = "xyes" ; then
  15881. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15882. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15883. else
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15885. $as_echo "$as_me: Using system libopts" >&6;}
  15886. fi
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15888. $as_echo_n "checking for egrep... " >&6; }
  15889. if ${ac_cv_path_EGREP+:} false; then :
  15890. $as_echo_n "(cached) " >&6
  15891. else
  15892. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15893. then ac_cv_path_EGREP="$GREP -E"
  15894. else
  15895. if test -z "$EGREP"; then
  15896. ac_path_EGREP_found=false
  15897. # Loop through the user's path and test for each of PROGNAME-LIST
  15898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15899. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15900. do
  15901. IFS=$as_save_IFS
  15902. test -z "$as_dir" && as_dir=.
  15903. for ac_prog in egrep; do
  15904. for ac_exec_ext in '' $ac_executable_extensions; do
  15905. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15906. as_fn_executable_p "$ac_path_EGREP" || continue
  15907. # Check for GNU ac_path_EGREP and select it if it is found.
  15908. # Check for GNU $ac_path_EGREP
  15909. case `"$ac_path_EGREP" --version 2>&1` in
  15910. *GNU*)
  15911. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15912. *)
  15913. ac_count=0
  15914. $as_echo_n 0123456789 >"conftest.in"
  15915. while :
  15916. do
  15917. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15918. mv "conftest.tmp" "conftest.in"
  15919. cp "conftest.in" "conftest.nl"
  15920. $as_echo 'EGREP' >> "conftest.nl"
  15921. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15922. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15923. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15924. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15925. # Best one so far, save it but keep looking for a better one
  15926. ac_cv_path_EGREP="$ac_path_EGREP"
  15927. ac_path_EGREP_max=$ac_count
  15928. fi
  15929. # 10*(2^10) chars as input seems more than enough
  15930. test $ac_count -gt 10 && break
  15931. done
  15932. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15933. esac
  15934. $ac_path_EGREP_found && break 3
  15935. done
  15936. done
  15937. done
  15938. IFS=$as_save_IFS
  15939. if test -z "$ac_cv_path_EGREP"; then
  15940. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15941. fi
  15942. else
  15943. ac_cv_path_EGREP=$EGREP
  15944. fi
  15945. fi
  15946. fi
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15948. $as_echo "$ac_cv_path_EGREP" >&6; }
  15949. EGREP="$ac_cv_path_EGREP"
  15950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15951. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15952. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15953. $as_echo_n "(cached) " >&6
  15954. else
  15955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15956. /* end confdefs.h. */
  15957. #include <sys/types.h>
  15958. int
  15959. main ()
  15960. {
  15961. return makedev(0, 0);
  15962. ;
  15963. return 0;
  15964. }
  15965. _ACEOF
  15966. if ac_fn_c_try_link "$LINENO"; then :
  15967. ac_cv_header_sys_types_h_makedev=yes
  15968. else
  15969. ac_cv_header_sys_types_h_makedev=no
  15970. fi
  15971. rm -f core conftest.err conftest.$ac_objext \
  15972. conftest$ac_exeext conftest.$ac_ext
  15973. fi
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  15975. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  15976. if test $ac_cv_header_sys_types_h_makedev = no; then
  15977. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  15978. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  15979. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  15980. fi
  15981. if test $ac_cv_header_sys_mkdev_h = no; then
  15982. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  15983. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  15984. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  15985. fi
  15986. fi
  15987. fi
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  15989. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  15990. if ${ac_cv_header_stdbool_h+:} false; then :
  15991. $as_echo_n "(cached) " >&6
  15992. else
  15993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15994. /* end confdefs.h. */
  15995. #include <stdbool.h>
  15996. #ifndef bool
  15997. "error: bool is not defined"
  15998. #endif
  15999. #ifndef false
  16000. "error: false is not defined"
  16001. #endif
  16002. #if false
  16003. "error: false is not 0"
  16004. #endif
  16005. #ifndef true
  16006. "error: true is not defined"
  16007. #endif
  16008. #if true != 1
  16009. "error: true is not 1"
  16010. #endif
  16011. #ifndef __bool_true_false_are_defined
  16012. "error: __bool_true_false_are_defined is not defined"
  16013. #endif
  16014. struct s { _Bool s: 1; _Bool t; } s;
  16015. char a[true == 1 ? 1 : -1];
  16016. char b[false == 0 ? 1 : -1];
  16017. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16018. char d[(bool) 0.5 == true ? 1 : -1];
  16019. /* See body of main program for 'e'. */
  16020. char f[(_Bool) 0.0 == false ? 1 : -1];
  16021. char g[true];
  16022. char h[sizeof (_Bool)];
  16023. char i[sizeof s.t];
  16024. enum { j = false, k = true, l = false * true, m = true * 256 };
  16025. /* The following fails for
  16026. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16027. _Bool n[m];
  16028. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16029. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16030. /* Catch a bug in an HP-UX C compiler. See
  16031. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16032. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16033. */
  16034. _Bool q = true;
  16035. _Bool *pq = &q;
  16036. int
  16037. main ()
  16038. {
  16039. bool e = &s;
  16040. *pq |= q;
  16041. *pq |= ! q;
  16042. /* Refer to every declared value, to avoid compiler optimizations. */
  16043. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16044. + !m + !n + !o + !p + !q + !pq);
  16045. ;
  16046. return 0;
  16047. }
  16048. _ACEOF
  16049. if ac_fn_c_try_compile "$LINENO"; then :
  16050. ac_cv_header_stdbool_h=yes
  16051. else
  16052. ac_cv_header_stdbool_h=no
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16055. fi
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16057. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16058. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16059. if test "x$ac_cv_type__Bool" = xyes; then :
  16060. cat >>confdefs.h <<_ACEOF
  16061. #define HAVE__BOOL 1
  16062. _ACEOF
  16063. fi
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16065. $as_echo_n "checking for inline... " >&6; }
  16066. if ${ac_cv_c_inline+:} false; then :
  16067. $as_echo_n "(cached) " >&6
  16068. else
  16069. ac_cv_c_inline=no
  16070. for ac_kw in inline __inline__ __inline; do
  16071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16072. /* end confdefs.h. */
  16073. #ifndef __cplusplus
  16074. typedef int foo_t;
  16075. static $ac_kw foo_t static_foo () {return 0; }
  16076. $ac_kw foo_t foo () {return 0; }
  16077. #endif
  16078. _ACEOF
  16079. if ac_fn_c_try_compile "$LINENO"; then :
  16080. ac_cv_c_inline=$ac_kw
  16081. fi
  16082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16083. test "$ac_cv_c_inline" != no && break
  16084. done
  16085. fi
  16086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16087. $as_echo "$ac_cv_c_inline" >&6; }
  16088. case $ac_cv_c_inline in
  16089. inline | yes) ;;
  16090. *)
  16091. case $ac_cv_c_inline in
  16092. no) ac_val=;;
  16093. *) ac_val=$ac_cv_c_inline;;
  16094. esac
  16095. cat >>confdefs.h <<_ACEOF
  16096. #ifndef __cplusplus
  16097. #define inline $ac_val
  16098. #endif
  16099. _ACEOF
  16100. ;;
  16101. esac
  16102. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16103. case $ac_cv_c_int16_t in #(
  16104. no|yes) ;; #(
  16105. *)
  16106. cat >>confdefs.h <<_ACEOF
  16107. #define int16_t $ac_cv_c_int16_t
  16108. _ACEOF
  16109. ;;
  16110. esac
  16111. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16112. case $ac_cv_c_int32_t in #(
  16113. no|yes) ;; #(
  16114. *)
  16115. cat >>confdefs.h <<_ACEOF
  16116. #define int32_t $ac_cv_c_int32_t
  16117. _ACEOF
  16118. ;;
  16119. esac
  16120. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16121. case $ac_cv_c_int64_t in #(
  16122. no|yes) ;; #(
  16123. *)
  16124. cat >>confdefs.h <<_ACEOF
  16125. #define int64_t $ac_cv_c_int64_t
  16126. _ACEOF
  16127. ;;
  16128. esac
  16129. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16130. case $ac_cv_c_int8_t in #(
  16131. no|yes) ;; #(
  16132. *)
  16133. cat >>confdefs.h <<_ACEOF
  16134. #define int8_t $ac_cv_c_int8_t
  16135. _ACEOF
  16136. ;;
  16137. esac
  16138. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16139. if test "x$ac_cv_type_off_t" = xyes; then :
  16140. else
  16141. cat >>confdefs.h <<_ACEOF
  16142. #define off_t long int
  16143. _ACEOF
  16144. fi
  16145. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16146. if test "x$ac_cv_type_pid_t" = xyes; then :
  16147. else
  16148. cat >>confdefs.h <<_ACEOF
  16149. #define pid_t int
  16150. _ACEOF
  16151. fi
  16152. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16153. if test "x$ac_cv_type_size_t" = xyes; then :
  16154. else
  16155. cat >>confdefs.h <<_ACEOF
  16156. #define size_t unsigned int
  16157. _ACEOF
  16158. fi
  16159. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16160. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16161. else
  16162. cat >>confdefs.h <<_ACEOF
  16163. #define ssize_t int
  16164. _ACEOF
  16165. fi
  16166. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16167. case $ac_cv_c_uint16_t in #(
  16168. no|yes) ;; #(
  16169. *)
  16170. cat >>confdefs.h <<_ACEOF
  16171. #define uint16_t $ac_cv_c_uint16_t
  16172. _ACEOF
  16173. ;;
  16174. esac
  16175. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16176. case $ac_cv_c_uint32_t in #(
  16177. no|yes) ;; #(
  16178. *)
  16179. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16180. cat >>confdefs.h <<_ACEOF
  16181. #define uint32_t $ac_cv_c_uint32_t
  16182. _ACEOF
  16183. ;;
  16184. esac
  16185. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16186. case $ac_cv_c_uint64_t in #(
  16187. no|yes) ;; #(
  16188. *)
  16189. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16190. cat >>confdefs.h <<_ACEOF
  16191. #define uint64_t $ac_cv_c_uint64_t
  16192. _ACEOF
  16193. ;;
  16194. esac
  16195. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16196. case $ac_cv_c_uint8_t in #(
  16197. no|yes) ;; #(
  16198. *)
  16199. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16200. cat >>confdefs.h <<_ACEOF
  16201. #define uint8_t $ac_cv_c_uint8_t
  16202. _ACEOF
  16203. ;;
  16204. esac
  16205. for ac_header in $ac_header_list
  16206. do :
  16207. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16208. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16209. "
  16210. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16211. cat >>confdefs.h <<_ACEOF
  16212. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16213. _ACEOF
  16214. fi
  16215. done
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16217. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16218. if ${ac_cv_c_const+:} false; then :
  16219. $as_echo_n "(cached) " >&6
  16220. else
  16221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16222. /* end confdefs.h. */
  16223. int
  16224. main ()
  16225. {
  16226. #ifndef __cplusplus
  16227. /* Ultrix mips cc rejects this sort of thing. */
  16228. typedef int charset[2];
  16229. const charset cs = { 0, 0 };
  16230. /* SunOS 4.1.1 cc rejects this. */
  16231. char const *const *pcpcc;
  16232. char **ppc;
  16233. /* NEC SVR4.0.2 mips cc rejects this. */
  16234. struct point {int x, y;};
  16235. static struct point const zero = {0,0};
  16236. /* AIX XL C 1.02.0.0 rejects this.
  16237. It does not let you subtract one const X* pointer from another in
  16238. an arm of an if-expression whose if-part is not a constant
  16239. expression */
  16240. const char *g = "string";
  16241. pcpcc = &g + (g ? g-g : 0);
  16242. /* HPUX 7.0 cc rejects these. */
  16243. ++pcpcc;
  16244. ppc = (char**) pcpcc;
  16245. pcpcc = (char const *const *) ppc;
  16246. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16247. char tx;
  16248. char *t = &tx;
  16249. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16250. *t++ = 0;
  16251. if (s) return 0;
  16252. }
  16253. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16254. int x[] = {25, 17};
  16255. const int *foo = &x[0];
  16256. ++foo;
  16257. }
  16258. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16259. typedef const int *iptr;
  16260. iptr p = 0;
  16261. ++p;
  16262. }
  16263. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16264. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16265. struct s { int j; const int *ap[3]; } bx;
  16266. struct s *b = &bx; b->j = 5;
  16267. }
  16268. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16269. const int foo = 10;
  16270. if (!foo) return 0;
  16271. }
  16272. return !cs[0] && !zero.x;
  16273. #endif
  16274. ;
  16275. return 0;
  16276. }
  16277. _ACEOF
  16278. if ac_fn_c_try_compile "$LINENO"; then :
  16279. ac_cv_c_const=yes
  16280. else
  16281. ac_cv_c_const=no
  16282. fi
  16283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16284. fi
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16286. $as_echo "$ac_cv_c_const" >&6; }
  16287. if test $ac_cv_c_const = no; then
  16288. $as_echo "#define const /**/" >>confdefs.h
  16289. fi
  16290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16291. $as_echo_n "checking for inline... " >&6; }
  16292. if ${ac_cv_c_inline+:} false; then :
  16293. $as_echo_n "(cached) " >&6
  16294. else
  16295. ac_cv_c_inline=no
  16296. for ac_kw in inline __inline__ __inline; do
  16297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16298. /* end confdefs.h. */
  16299. #ifndef __cplusplus
  16300. typedef int foo_t;
  16301. static $ac_kw foo_t static_foo () {return 0; }
  16302. $ac_kw foo_t foo () {return 0; }
  16303. #endif
  16304. _ACEOF
  16305. if ac_fn_c_try_compile "$LINENO"; then :
  16306. ac_cv_c_inline=$ac_kw
  16307. fi
  16308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16309. test "$ac_cv_c_inline" != no && break
  16310. done
  16311. fi
  16312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16313. $as_echo "$ac_cv_c_inline" >&6; }
  16314. case $ac_cv_c_inline in
  16315. inline | yes) ;;
  16316. *)
  16317. case $ac_cv_c_inline in
  16318. no) ac_val=;;
  16319. *) ac_val=$ac_cv_c_inline;;
  16320. esac
  16321. cat >>confdefs.h <<_ACEOF
  16322. #ifndef __cplusplus
  16323. #define inline $ac_val
  16324. #endif
  16325. _ACEOF
  16326. ;;
  16327. esac
  16328. # Check whether --enable-largefile was given.
  16329. if test "${enable_largefile+set}" = set; then :
  16330. enableval=$enable_largefile;
  16331. fi
  16332. if test "$enable_largefile" != no; then
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16334. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16335. if ${ac_cv_sys_largefile_CC+:} false; then :
  16336. $as_echo_n "(cached) " >&6
  16337. else
  16338. ac_cv_sys_largefile_CC=no
  16339. if test "$GCC" != yes; then
  16340. ac_save_CC=$CC
  16341. while :; do
  16342. # IRIX 6.2 and later do not support large files by default,
  16343. # so use the C compiler's -n32 option if that helps.
  16344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16345. /* end confdefs.h. */
  16346. #include <sys/types.h>
  16347. /* Check that off_t can represent 2**63 - 1 correctly.
  16348. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16349. since some C++ compilers masquerading as C compilers
  16350. incorrectly reject 9223372036854775807. */
  16351. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16352. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16353. && LARGE_OFF_T % 2147483647 == 1)
  16354. ? 1 : -1];
  16355. int
  16356. main ()
  16357. {
  16358. ;
  16359. return 0;
  16360. }
  16361. _ACEOF
  16362. if ac_fn_c_try_compile "$LINENO"; then :
  16363. break
  16364. fi
  16365. rm -f core conftest.err conftest.$ac_objext
  16366. CC="$CC -n32"
  16367. if ac_fn_c_try_compile "$LINENO"; then :
  16368. ac_cv_sys_largefile_CC=' -n32'; break
  16369. fi
  16370. rm -f core conftest.err conftest.$ac_objext
  16371. break
  16372. done
  16373. CC=$ac_save_CC
  16374. rm -f conftest.$ac_ext
  16375. fi
  16376. fi
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16378. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16379. if test "$ac_cv_sys_largefile_CC" != no; then
  16380. CC=$CC$ac_cv_sys_largefile_CC
  16381. fi
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16383. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16384. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16385. $as_echo_n "(cached) " >&6
  16386. else
  16387. while :; do
  16388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16389. /* end confdefs.h. */
  16390. #include <sys/types.h>
  16391. /* Check that off_t can represent 2**63 - 1 correctly.
  16392. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16393. since some C++ compilers masquerading as C compilers
  16394. incorrectly reject 9223372036854775807. */
  16395. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16396. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16397. && LARGE_OFF_T % 2147483647 == 1)
  16398. ? 1 : -1];
  16399. int
  16400. main ()
  16401. {
  16402. ;
  16403. return 0;
  16404. }
  16405. _ACEOF
  16406. if ac_fn_c_try_compile "$LINENO"; then :
  16407. ac_cv_sys_file_offset_bits=no; break
  16408. fi
  16409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16411. /* end confdefs.h. */
  16412. #define _FILE_OFFSET_BITS 64
  16413. #include <sys/types.h>
  16414. /* Check that off_t can represent 2**63 - 1 correctly.
  16415. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16416. since some C++ compilers masquerading as C compilers
  16417. incorrectly reject 9223372036854775807. */
  16418. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16419. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16420. && LARGE_OFF_T % 2147483647 == 1)
  16421. ? 1 : -1];
  16422. int
  16423. main ()
  16424. {
  16425. ;
  16426. return 0;
  16427. }
  16428. _ACEOF
  16429. if ac_fn_c_try_compile "$LINENO"; then :
  16430. ac_cv_sys_file_offset_bits=64; break
  16431. fi
  16432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16433. ac_cv_sys_file_offset_bits=unknown
  16434. break
  16435. done
  16436. fi
  16437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16438. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16439. case $ac_cv_sys_file_offset_bits in #(
  16440. no | unknown) ;;
  16441. *)
  16442. cat >>confdefs.h <<_ACEOF
  16443. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16444. _ACEOF
  16445. ;;
  16446. esac
  16447. rm -rf conftest*
  16448. if test $ac_cv_sys_file_offset_bits = unknown; then
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16450. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16451. if ${ac_cv_sys_large_files+:} false; then :
  16452. $as_echo_n "(cached) " >&6
  16453. else
  16454. while :; do
  16455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16456. /* end confdefs.h. */
  16457. #include <sys/types.h>
  16458. /* Check that off_t can represent 2**63 - 1 correctly.
  16459. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16460. since some C++ compilers masquerading as C compilers
  16461. incorrectly reject 9223372036854775807. */
  16462. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16463. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16464. && LARGE_OFF_T % 2147483647 == 1)
  16465. ? 1 : -1];
  16466. int
  16467. main ()
  16468. {
  16469. ;
  16470. return 0;
  16471. }
  16472. _ACEOF
  16473. if ac_fn_c_try_compile "$LINENO"; then :
  16474. ac_cv_sys_large_files=no; break
  16475. fi
  16476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16478. /* end confdefs.h. */
  16479. #define _LARGE_FILES 1
  16480. #include <sys/types.h>
  16481. /* Check that off_t can represent 2**63 - 1 correctly.
  16482. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16483. since some C++ compilers masquerading as C compilers
  16484. incorrectly reject 9223372036854775807. */
  16485. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16486. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16487. && LARGE_OFF_T % 2147483647 == 1)
  16488. ? 1 : -1];
  16489. int
  16490. main ()
  16491. {
  16492. ;
  16493. return 0;
  16494. }
  16495. _ACEOF
  16496. if ac_fn_c_try_compile "$LINENO"; then :
  16497. ac_cv_sys_large_files=1; break
  16498. fi
  16499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16500. ac_cv_sys_large_files=unknown
  16501. break
  16502. done
  16503. fi
  16504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16505. $as_echo "$ac_cv_sys_large_files" >&6; }
  16506. case $ac_cv_sys_large_files in #(
  16507. no | unknown) ;;
  16508. *)
  16509. cat >>confdefs.h <<_ACEOF
  16510. #define _LARGE_FILES $ac_cv_sys_large_files
  16511. _ACEOF
  16512. ;;
  16513. esac
  16514. rm -rf conftest*
  16515. fi
  16516. fi
  16517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16518. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16519. if ${ac_cv_sys_largefile_source+:} false; then :
  16520. $as_echo_n "(cached) " >&6
  16521. else
  16522. while :; do
  16523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16524. /* end confdefs.h. */
  16525. #include <sys/types.h> /* for off_t */
  16526. #include <stdio.h>
  16527. int
  16528. main ()
  16529. {
  16530. int (*fp) (FILE *, off_t, int) = fseeko;
  16531. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16532. ;
  16533. return 0;
  16534. }
  16535. _ACEOF
  16536. if ac_fn_c_try_link "$LINENO"; then :
  16537. ac_cv_sys_largefile_source=no; break
  16538. fi
  16539. rm -f core conftest.err conftest.$ac_objext \
  16540. conftest$ac_exeext conftest.$ac_ext
  16541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16542. /* end confdefs.h. */
  16543. #define _LARGEFILE_SOURCE 1
  16544. #include <sys/types.h> /* for off_t */
  16545. #include <stdio.h>
  16546. int
  16547. main ()
  16548. {
  16549. int (*fp) (FILE *, off_t, int) = fseeko;
  16550. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16551. ;
  16552. return 0;
  16553. }
  16554. _ACEOF
  16555. if ac_fn_c_try_link "$LINENO"; then :
  16556. ac_cv_sys_largefile_source=1; break
  16557. fi
  16558. rm -f core conftest.err conftest.$ac_objext \
  16559. conftest$ac_exeext conftest.$ac_ext
  16560. ac_cv_sys_largefile_source=unknown
  16561. break
  16562. done
  16563. fi
  16564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16565. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16566. case $ac_cv_sys_largefile_source in #(
  16567. no | unknown) ;;
  16568. *)
  16569. cat >>confdefs.h <<_ACEOF
  16570. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16571. _ACEOF
  16572. ;;
  16573. esac
  16574. rm -rf conftest*
  16575. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16576. # in glibc 2.1.3, but that breaks too many other things.
  16577. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16578. if test $ac_cv_sys_largefile_source != unknown; then
  16579. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16580. fi
  16581. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16582. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16583. else
  16584. cat >>confdefs.h <<_ACEOF
  16585. #define u_int8_t uint8_t
  16586. _ACEOF
  16587. fi
  16588. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16589. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16590. else
  16591. cat >>confdefs.h <<_ACEOF
  16592. #define u_int16_t uint16_t
  16593. _ACEOF
  16594. fi
  16595. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16596. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16597. else
  16598. cat >>confdefs.h <<_ACEOF
  16599. #define u_int32_t uint32_t
  16600. _ACEOF
  16601. fi
  16602. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16603. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16604. else
  16605. cat >>confdefs.h <<_ACEOF
  16606. #define u_int64_t uint64_t
  16607. _ACEOF
  16608. fi
  16609. wno_format=""
  16610. wno_macro_redefined=""
  16611. case $host in
  16612. *-apple-darwin*)
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16614. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16615. OLD_CFLAGS=$CFLAGS
  16616. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16618. /* end confdefs.h. */
  16619. #include <stdlib.h>
  16620. int main(int argc, char *argv[]) { return(0); }
  16621. _ACEOF
  16622. if ac_fn_c_try_compile "$LINENO"; then :
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16624. $as_echo "yes" >&6; }
  16625. wno_macro_redefined="-Wno-macro-redefined"
  16626. else
  16627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16628. $as_echo "no" >&6; }
  16629. fi
  16630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16632. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16633. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16634. CFLAGS="$CFLAGS -Wno-format -Werror"
  16635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16636. /* end confdefs.h. */
  16637. #include <stdlib.h>
  16638. int main(int argc, char *argv[]) { return(0); }
  16639. _ACEOF
  16640. if ac_fn_c_try_compile "$LINENO"; then :
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16642. $as_echo "yes" >&6; }
  16643. wno_format="-Wno-format"
  16644. else
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16646. $as_echo "no" >&6; }
  16647. fi
  16648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16649. CFLAGS="$OLD_CFLAGS $wno_format"
  16650. ;;
  16651. esac
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16653. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16654. OLD_CFLAGS=$CFLAGS
  16655. CFLAGS="$CFLAGS -Wextra -Werror"
  16656. wextra=""
  16657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16658. /* end confdefs.h. */
  16659. #include <stdlib.h>
  16660. int main(int argc, char *argv[]) { return(0); }
  16661. _ACEOF
  16662. if ac_fn_c_try_compile "$LINENO"; then :
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16664. $as_echo "yes" >&6; }
  16665. wextra="-Wextra"
  16666. else
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16668. $as_echo "no" >&6; }
  16669. fi
  16670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16671. CFLAGS="$OLD_CFLAGS $wextra"
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16673. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16674. OLD_CFLAGS=$CFLAGS
  16675. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16676. wno_variadic_macros=""
  16677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16678. /* end confdefs.h. */
  16679. #include <stdlib.h>
  16680. int main(int argc, char *argv[]) { return(0); }
  16681. _ACEOF
  16682. if ac_fn_c_try_compile "$LINENO"; then :
  16683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16684. $as_echo "yes" >&6; }
  16685. wno_variadic_macros="-Wno-variadic-macros"
  16686. else
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16688. $as_echo "no" >&6; }
  16689. fi
  16690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16691. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16693. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16694. OLD_CFLAGS=$CFLAGS
  16695. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16696. wfatal_errors=""
  16697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16698. /* end confdefs.h. */
  16699. #include <stdlib.h>
  16700. int main(int argc, char *argv[]) { return(0); }
  16701. _ACEOF
  16702. if ac_fn_c_try_compile "$LINENO"; then :
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16704. $as_echo "yes" >&6; }
  16705. wfatal_errors="-Wfatal-errors"
  16706. else
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16708. $as_echo "no" >&6; }
  16709. fi
  16710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16711. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16713. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16714. OLD_CFLAGS=$CFLAGS
  16715. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16716. wno_format_contains_nul=""
  16717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16718. /* end confdefs.h. */
  16719. #include <stdlib.h>
  16720. int main(int argc, char *argv[]) { return(0); }
  16721. _ACEOF
  16722. if ac_fn_c_try_compile "$LINENO"; then :
  16723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16724. $as_echo "yes" >&6; }
  16725. wno_format_contains_nul="-Wno-format-contains-nul"
  16726. else
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16728. $as_echo "no" >&6; }
  16729. fi
  16730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16731. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16732. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  16733. do :
  16734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16735. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16736. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16737. cat >>confdefs.h <<_ACEOF
  16738. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16739. _ACEOF
  16740. fi
  16741. done
  16742. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  16743. do :
  16744. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16745. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16746. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16747. cat >>confdefs.h <<_ACEOF
  16748. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16749. _ACEOF
  16750. fi
  16751. done
  16752. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16753. do :
  16754. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16755. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16756. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16757. cat >>confdefs.h <<_ACEOF
  16758. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16759. _ACEOF
  16760. fi
  16761. done
  16762. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16763. do :
  16764. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16765. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16766. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16767. cat >>confdefs.h <<_ACEOF
  16768. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16769. _ACEOF
  16770. fi
  16771. done
  16772. for ac_header in sys/io.h architecture/i386/pio.h sched.h
  16773. do :
  16774. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16775. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16776. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16777. cat >>confdefs.h <<_ACEOF
  16778. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16779. _ACEOF
  16780. fi
  16781. done
  16782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16783. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16784. if ${ac_cv_header_stdbool_h+:} false; then :
  16785. $as_echo_n "(cached) " >&6
  16786. else
  16787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16788. /* end confdefs.h. */
  16789. #include <stdbool.h>
  16790. #ifndef bool
  16791. "error: bool is not defined"
  16792. #endif
  16793. #ifndef false
  16794. "error: false is not defined"
  16795. #endif
  16796. #if false
  16797. "error: false is not 0"
  16798. #endif
  16799. #ifndef true
  16800. "error: true is not defined"
  16801. #endif
  16802. #if true != 1
  16803. "error: true is not 1"
  16804. #endif
  16805. #ifndef __bool_true_false_are_defined
  16806. "error: __bool_true_false_are_defined is not defined"
  16807. #endif
  16808. struct s { _Bool s: 1; _Bool t; } s;
  16809. char a[true == 1 ? 1 : -1];
  16810. char b[false == 0 ? 1 : -1];
  16811. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16812. char d[(bool) 0.5 == true ? 1 : -1];
  16813. /* See body of main program for 'e'. */
  16814. char f[(_Bool) 0.0 == false ? 1 : -1];
  16815. char g[true];
  16816. char h[sizeof (_Bool)];
  16817. char i[sizeof s.t];
  16818. enum { j = false, k = true, l = false * true, m = true * 256 };
  16819. /* The following fails for
  16820. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16821. _Bool n[m];
  16822. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16823. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16824. /* Catch a bug in an HP-UX C compiler. See
  16825. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16826. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16827. */
  16828. _Bool q = true;
  16829. _Bool *pq = &q;
  16830. int
  16831. main ()
  16832. {
  16833. bool e = &s;
  16834. *pq |= q;
  16835. *pq |= ! q;
  16836. /* Refer to every declared value, to avoid compiler optimizations. */
  16837. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16838. + !m + !n + !o + !p + !q + !pq);
  16839. ;
  16840. return 0;
  16841. }
  16842. _ACEOF
  16843. if ac_fn_c_try_compile "$LINENO"; then :
  16844. ac_cv_header_stdbool_h=yes
  16845. else
  16846. ac_cv_header_stdbool_h=no
  16847. fi
  16848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16849. fi
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16851. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16852. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16853. if test "x$ac_cv_type__Bool" = xyes; then :
  16854. cat >>confdefs.h <<_ACEOF
  16855. #define HAVE__BOOL 1
  16856. _ACEOF
  16857. fi
  16858. if test $ac_cv_header_stdbool_h = yes; then
  16859. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16860. fi
  16861. for ac_header in sys/sysctl.h net/route.h
  16862. do :
  16863. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16864. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16865. #if HAVE_SYS_PARAM_H
  16866. #include <sys/param.h>
  16867. #endif
  16868. #if HAVE_SYS_TYPES_H
  16869. #include <sys/types.h>
  16870. #endif
  16871. #if HAVE_SYS_SOCKET_H
  16872. #include <sys/socket.h>
  16873. #endif
  16874. "
  16875. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16876. cat >>confdefs.h <<_ACEOF
  16877. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16878. _ACEOF
  16879. fi
  16880. done
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16882. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16883. if ${ac_cv_lib_socket_socket+:} false; then :
  16884. $as_echo_n "(cached) " >&6
  16885. else
  16886. ac_check_lib_save_LIBS=$LIBS
  16887. LIBS="-lsocket $LIBS"
  16888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16889. /* end confdefs.h. */
  16890. /* Override any GCC internal prototype to avoid an error.
  16891. Use char because int might match the return type of a GCC
  16892. builtin and then its argument prototype would still apply. */
  16893. #ifdef __cplusplus
  16894. extern "C"
  16895. #endif
  16896. char socket ();
  16897. int
  16898. main ()
  16899. {
  16900. return socket ();
  16901. ;
  16902. return 0;
  16903. }
  16904. _ACEOF
  16905. if ac_fn_c_try_link "$LINENO"; then :
  16906. ac_cv_lib_socket_socket=yes
  16907. else
  16908. ac_cv_lib_socket_socket=no
  16909. fi
  16910. rm -f core conftest.err conftest.$ac_objext \
  16911. conftest$ac_exeext conftest.$ac_ext
  16912. LIBS=$ac_check_lib_save_LIBS
  16913. fi
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16915. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16916. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16917. cat >>confdefs.h <<_ACEOF
  16918. #define HAVE_LIBSOCKET 1
  16919. _ACEOF
  16920. LIBS="-lsocket $LIBS"
  16921. fi
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16923. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16924. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16925. $as_echo_n "(cached) " >&6
  16926. else
  16927. ac_check_lib_save_LIBS=$LIBS
  16928. LIBS="-lnsl $LIBS"
  16929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16930. /* end confdefs.h. */
  16931. /* Override any GCC internal prototype to avoid an error.
  16932. Use char because int might match the return type of a GCC
  16933. builtin and then its argument prototype would still apply. */
  16934. #ifdef __cplusplus
  16935. extern "C"
  16936. #endif
  16937. char gethostbyname ();
  16938. int
  16939. main ()
  16940. {
  16941. return gethostbyname ();
  16942. ;
  16943. return 0;
  16944. }
  16945. _ACEOF
  16946. if ac_fn_c_try_link "$LINENO"; then :
  16947. ac_cv_lib_nsl_gethostbyname=yes
  16948. else
  16949. ac_cv_lib_nsl_gethostbyname=no
  16950. fi
  16951. rm -f core conftest.err conftest.$ac_objext \
  16952. conftest$ac_exeext conftest.$ac_ext
  16953. LIBS=$ac_check_lib_save_LIBS
  16954. fi
  16955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16956. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16957. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16958. cat >>confdefs.h <<_ACEOF
  16959. #define HAVE_LIBNSL 1
  16960. _ACEOF
  16961. LIBS="-lnsl $LIBS"
  16962. fi
  16963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16964. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16965. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16966. $as_echo_n "(cached) " >&6
  16967. else
  16968. ac_check_lib_save_LIBS=$LIBS
  16969. LIBS="-lrt $LIBS"
  16970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16971. /* end confdefs.h. */
  16972. /* Override any GCC internal prototype to avoid an error.
  16973. Use char because int might match the return type of a GCC
  16974. builtin and then its argument prototype would still apply. */
  16975. #ifdef __cplusplus
  16976. extern "C"
  16977. #endif
  16978. char nanosleep ();
  16979. int
  16980. main ()
  16981. {
  16982. return nanosleep ();
  16983. ;
  16984. return 0;
  16985. }
  16986. _ACEOF
  16987. if ac_fn_c_try_link "$LINENO"; then :
  16988. ac_cv_lib_rt_nanosleep=yes
  16989. else
  16990. ac_cv_lib_rt_nanosleep=no
  16991. fi
  16992. rm -f core conftest.err conftest.$ac_objext \
  16993. conftest$ac_exeext conftest.$ac_ext
  16994. LIBS=$ac_check_lib_save_LIBS
  16995. fi
  16996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  16997. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  16998. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  16999. cat >>confdefs.h <<_ACEOF
  17000. #define HAVE_LIBRT 1
  17001. _ACEOF
  17002. LIBS="-lrt $LIBS"
  17003. fi
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17005. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17006. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17007. $as_echo_n "(cached) " >&6
  17008. else
  17009. ac_check_lib_save_LIBS=$LIBS
  17010. LIBS="-lresolv $LIBS"
  17011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17012. /* end confdefs.h. */
  17013. /* Override any GCC internal prototype to avoid an error.
  17014. Use char because int might match the return type of a GCC
  17015. builtin and then its argument prototype would still apply. */
  17016. #ifdef __cplusplus
  17017. extern "C"
  17018. #endif
  17019. char resolv ();
  17020. int
  17021. main ()
  17022. {
  17023. return resolv ();
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. if ac_fn_c_try_link "$LINENO"; then :
  17029. ac_cv_lib_resolv_resolv=yes
  17030. else
  17031. ac_cv_lib_resolv_resolv=no
  17032. fi
  17033. rm -f core conftest.err conftest.$ac_objext \
  17034. conftest$ac_exeext conftest.$ac_ext
  17035. LIBS=$ac_check_lib_save_LIBS
  17036. fi
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17038. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17039. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17040. cat >>confdefs.h <<_ACEOF
  17041. #define HAVE_LIBRESOLV 1
  17042. _ACEOF
  17043. LIBS="-lresolv $LIBS"
  17044. fi
  17045. for ac_header in vfork.h
  17046. do :
  17047. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17048. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17049. cat >>confdefs.h <<_ACEOF
  17050. #define HAVE_VFORK_H 1
  17051. _ACEOF
  17052. fi
  17053. done
  17054. for ac_func in fork vfork
  17055. do :
  17056. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17057. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17058. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17059. cat >>confdefs.h <<_ACEOF
  17060. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17061. _ACEOF
  17062. fi
  17063. done
  17064. if test "x$ac_cv_func_fork" = xyes; then
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17066. $as_echo_n "checking for working fork... " >&6; }
  17067. if ${ac_cv_func_fork_works+:} false; then :
  17068. $as_echo_n "(cached) " >&6
  17069. else
  17070. if test "$cross_compiling" = yes; then :
  17071. ac_cv_func_fork_works=cross
  17072. else
  17073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17074. /* end confdefs.h. */
  17075. $ac_includes_default
  17076. int
  17077. main ()
  17078. {
  17079. /* By Ruediger Kuhlmann. */
  17080. return fork () < 0;
  17081. ;
  17082. return 0;
  17083. }
  17084. _ACEOF
  17085. if ac_fn_c_try_run "$LINENO"; then :
  17086. ac_cv_func_fork_works=yes
  17087. else
  17088. ac_cv_func_fork_works=no
  17089. fi
  17090. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17091. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17092. fi
  17093. fi
  17094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17095. $as_echo "$ac_cv_func_fork_works" >&6; }
  17096. else
  17097. ac_cv_func_fork_works=$ac_cv_func_fork
  17098. fi
  17099. if test "x$ac_cv_func_fork_works" = xcross; then
  17100. case $host in
  17101. *-*-amigaos* | *-*-msdosdjgpp*)
  17102. # Override, as these systems have only a dummy fork() stub
  17103. ac_cv_func_fork_works=no
  17104. ;;
  17105. *)
  17106. ac_cv_func_fork_works=yes
  17107. ;;
  17108. esac
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17110. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17111. fi
  17112. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17113. if test "x$ac_cv_func_vfork" = xyes; then
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17115. $as_echo_n "checking for working vfork... " >&6; }
  17116. if ${ac_cv_func_vfork_works+:} false; then :
  17117. $as_echo_n "(cached) " >&6
  17118. else
  17119. if test "$cross_compiling" = yes; then :
  17120. ac_cv_func_vfork_works=cross
  17121. else
  17122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17123. /* end confdefs.h. */
  17124. /* Thanks to Paul Eggert for this test. */
  17125. $ac_includes_default
  17126. #include <sys/wait.h>
  17127. #ifdef HAVE_VFORK_H
  17128. # include <vfork.h>
  17129. #endif
  17130. /* On some sparc systems, changes by the child to local and incoming
  17131. argument registers are propagated back to the parent. The compiler
  17132. is told about this with #include <vfork.h>, but some compilers
  17133. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17134. static variable whose address is put into a register that is
  17135. clobbered by the vfork. */
  17136. static void
  17137. #ifdef __cplusplus
  17138. sparc_address_test (int arg)
  17139. # else
  17140. sparc_address_test (arg) int arg;
  17141. #endif
  17142. {
  17143. static pid_t child;
  17144. if (!child) {
  17145. child = vfork ();
  17146. if (child < 0) {
  17147. perror ("vfork");
  17148. _exit(2);
  17149. }
  17150. if (!child) {
  17151. arg = getpid();
  17152. write(-1, "", 0);
  17153. _exit (arg);
  17154. }
  17155. }
  17156. }
  17157. int
  17158. main ()
  17159. {
  17160. pid_t parent = getpid ();
  17161. pid_t child;
  17162. sparc_address_test (0);
  17163. child = vfork ();
  17164. if (child == 0) {
  17165. /* Here is another test for sparc vfork register problems. This
  17166. test uses lots of local variables, at least as many local
  17167. variables as main has allocated so far including compiler
  17168. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17169. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17170. reuse the register of parent for one of the local variables,
  17171. since it will think that parent can't possibly be used any more
  17172. in this routine. Assigning to the local variable will thus
  17173. munge parent in the parent process. */
  17174. pid_t
  17175. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17176. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17177. /* Convince the compiler that p..p7 are live; otherwise, it might
  17178. use the same hardware register for all 8 local variables. */
  17179. if (p != p1 || p != p2 || p != p3 || p != p4
  17180. || p != p5 || p != p6 || p != p7)
  17181. _exit(1);
  17182. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17183. from child file descriptors. If the child closes a descriptor
  17184. before it execs or exits, this munges the parent's descriptor
  17185. as well. Test for this by closing stdout in the child. */
  17186. _exit(close(fileno(stdout)) != 0);
  17187. } else {
  17188. int status;
  17189. struct stat st;
  17190. while (wait(&status) != child)
  17191. ;
  17192. return (
  17193. /* Was there some problem with vforking? */
  17194. child < 0
  17195. /* Did the child fail? (This shouldn't happen.) */
  17196. || status
  17197. /* Did the vfork/compiler bug occur? */
  17198. || parent != getpid()
  17199. /* Did the file descriptor bug occur? */
  17200. || fstat(fileno(stdout), &st) != 0
  17201. );
  17202. }
  17203. }
  17204. _ACEOF
  17205. if ac_fn_c_try_run "$LINENO"; then :
  17206. ac_cv_func_vfork_works=yes
  17207. else
  17208. ac_cv_func_vfork_works=no
  17209. fi
  17210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17211. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17212. fi
  17213. fi
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17215. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17216. fi;
  17217. if test "x$ac_cv_func_fork_works" = xcross; then
  17218. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17220. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17221. fi
  17222. if test "x$ac_cv_func_vfork_works" = xyes; then
  17223. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17224. else
  17225. $as_echo "#define vfork fork" >>confdefs.h
  17226. fi
  17227. if test "x$ac_cv_func_fork_works" = xyes; then
  17228. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17229. fi
  17230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17231. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17232. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17233. $as_echo_n "(cached) " >&6
  17234. else
  17235. rm -f conftest.sym conftest.file
  17236. echo >conftest.file
  17237. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17238. if test "$cross_compiling" = yes; then :
  17239. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17240. else
  17241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17242. /* end confdefs.h. */
  17243. $ac_includes_default
  17244. int
  17245. main ()
  17246. {
  17247. struct stat sbuf;
  17248. /* Linux will dereference the symlink and fail, as required by POSIX.
  17249. That is better in the sense that it means we will not
  17250. have to compile and use the lstat wrapper. */
  17251. return lstat ("conftest.sym/", &sbuf) == 0;
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. if ac_fn_c_try_run "$LINENO"; then :
  17257. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17258. else
  17259. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17260. fi
  17261. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17262. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17263. fi
  17264. else
  17265. # If the `ln -s' command failed, then we probably don't even
  17266. # have an lstat function.
  17267. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17268. fi
  17269. rm -f conftest.sym conftest.file
  17270. fi
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17272. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17273. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17274. cat >>confdefs.h <<_ACEOF
  17275. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17276. _ACEOF
  17277. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17278. case " $LIBOBJS " in
  17279. *" lstat.$ac_objext "* ) ;;
  17280. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17281. ;;
  17282. esac
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17285. $as_echo_n "checking for working memcmp... " >&6; }
  17286. if ${ac_cv_func_memcmp_working+:} false; then :
  17287. $as_echo_n "(cached) " >&6
  17288. else
  17289. if test "$cross_compiling" = yes; then :
  17290. ac_cv_func_memcmp_working=no
  17291. else
  17292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17293. /* end confdefs.h. */
  17294. $ac_includes_default
  17295. int
  17296. main ()
  17297. {
  17298. /* Some versions of memcmp are not 8-bit clean. */
  17299. char c0 = '\100', c1 = '\200', c2 = '\201';
  17300. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17301. return 1;
  17302. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17303. or more and with at least one buffer not starting on a 4-byte boundary.
  17304. William Lewis provided this test program. */
  17305. {
  17306. char foo[21];
  17307. char bar[21];
  17308. int i;
  17309. for (i = 0; i < 4; i++)
  17310. {
  17311. char *a = foo + i;
  17312. char *b = bar + i;
  17313. strcpy (a, "--------01111111");
  17314. strcpy (b, "--------10000000");
  17315. if (memcmp (a, b, 16) >= 0)
  17316. return 1;
  17317. }
  17318. return 0;
  17319. }
  17320. ;
  17321. return 0;
  17322. }
  17323. _ACEOF
  17324. if ac_fn_c_try_run "$LINENO"; then :
  17325. ac_cv_func_memcmp_working=yes
  17326. else
  17327. ac_cv_func_memcmp_working=no
  17328. fi
  17329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17330. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17331. fi
  17332. fi
  17333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17334. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17335. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17336. *" memcmp.$ac_objext "* ) ;;
  17337. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17338. ;;
  17339. esac
  17340. for ac_func in vprintf
  17341. do :
  17342. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17343. if test "x$ac_cv_func_vprintf" = xyes; then :
  17344. cat >>confdefs.h <<_ACEOF
  17345. #define HAVE_VPRINTF 1
  17346. _ACEOF
  17347. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17348. if test "x$ac_cv_func__doprnt" = xyes; then :
  17349. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17350. fi
  17351. fi
  17352. done
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17354. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17355. if ${ac_cv_header_time+:} false; then :
  17356. $as_echo_n "(cached) " >&6
  17357. else
  17358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17359. /* end confdefs.h. */
  17360. #include <sys/types.h>
  17361. #include <sys/time.h>
  17362. #include <time.h>
  17363. int
  17364. main ()
  17365. {
  17366. if ((struct tm *) 0)
  17367. return 0;
  17368. ;
  17369. return 0;
  17370. }
  17371. _ACEOF
  17372. if ac_fn_c_try_compile "$LINENO"; then :
  17373. ac_cv_header_time=yes
  17374. else
  17375. ac_cv_header_time=no
  17376. fi
  17377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17378. fi
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17380. $as_echo "$ac_cv_header_time" >&6; }
  17381. if test $ac_cv_header_time = yes; then
  17382. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17383. fi
  17384. for ac_func in $ac_func_list
  17385. do :
  17386. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17387. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17388. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17389. cat >>confdefs.h <<_ACEOF
  17390. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17391. _ACEOF
  17392. fi
  17393. done
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17395. $as_echo_n "checking for working mktime... " >&6; }
  17396. if ${ac_cv_func_working_mktime+:} false; then :
  17397. $as_echo_n "(cached) " >&6
  17398. else
  17399. if test "$cross_compiling" = yes; then :
  17400. ac_cv_func_working_mktime=no
  17401. else
  17402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17403. /* end confdefs.h. */
  17404. /* Test program from Paul Eggert and Tony Leneis. */
  17405. #ifdef TIME_WITH_SYS_TIME
  17406. # include <sys/time.h>
  17407. # include <time.h>
  17408. #else
  17409. # ifdef HAVE_SYS_TIME_H
  17410. # include <sys/time.h>
  17411. # else
  17412. # include <time.h>
  17413. # endif
  17414. #endif
  17415. #include <limits.h>
  17416. #include <stdlib.h>
  17417. #ifdef HAVE_UNISTD_H
  17418. # include <unistd.h>
  17419. #endif
  17420. #ifndef HAVE_ALARM
  17421. # define alarm(X) /* empty */
  17422. #endif
  17423. /* Work around redefinition to rpl_putenv by other config tests. */
  17424. #undef putenv
  17425. static time_t time_t_max;
  17426. static time_t time_t_min;
  17427. /* Values we'll use to set the TZ environment variable. */
  17428. static const char *tz_strings[] = {
  17429. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17430. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17431. };
  17432. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17433. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17434. Based on a problem report from Andreas Jaeger. */
  17435. static int
  17436. spring_forward_gap ()
  17437. {
  17438. /* glibc (up to about 1998-10-07) failed this test. */
  17439. struct tm tm;
  17440. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17441. instead of "TZ=America/Vancouver" in order to detect the bug even
  17442. on systems that don't support the Olson extension, or don't have the
  17443. full zoneinfo tables installed. */
  17444. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17445. tm.tm_year = 98;
  17446. tm.tm_mon = 3;
  17447. tm.tm_mday = 5;
  17448. tm.tm_hour = 2;
  17449. tm.tm_min = 0;
  17450. tm.tm_sec = 0;
  17451. tm.tm_isdst = -1;
  17452. return mktime (&tm) != (time_t) -1;
  17453. }
  17454. static int
  17455. mktime_test1 (time_t now)
  17456. {
  17457. struct tm *lt;
  17458. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17459. }
  17460. static int
  17461. mktime_test (time_t now)
  17462. {
  17463. return (mktime_test1 (now)
  17464. && mktime_test1 ((time_t) (time_t_max - now))
  17465. && mktime_test1 ((time_t) (time_t_min + now)));
  17466. }
  17467. static int
  17468. irix_6_4_bug ()
  17469. {
  17470. /* Based on code from Ariel Faigon. */
  17471. struct tm tm;
  17472. tm.tm_year = 96;
  17473. tm.tm_mon = 3;
  17474. tm.tm_mday = 0;
  17475. tm.tm_hour = 0;
  17476. tm.tm_min = 0;
  17477. tm.tm_sec = 0;
  17478. tm.tm_isdst = -1;
  17479. mktime (&tm);
  17480. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17481. }
  17482. static int
  17483. bigtime_test (int j)
  17484. {
  17485. struct tm tm;
  17486. time_t now;
  17487. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17488. now = mktime (&tm);
  17489. if (now != (time_t) -1)
  17490. {
  17491. struct tm *lt = localtime (&now);
  17492. if (! (lt
  17493. && lt->tm_year == tm.tm_year
  17494. && lt->tm_mon == tm.tm_mon
  17495. && lt->tm_mday == tm.tm_mday
  17496. && lt->tm_hour == tm.tm_hour
  17497. && lt->tm_min == tm.tm_min
  17498. && lt->tm_sec == tm.tm_sec
  17499. && lt->tm_yday == tm.tm_yday
  17500. && lt->tm_wday == tm.tm_wday
  17501. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17502. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17503. return 0;
  17504. }
  17505. return 1;
  17506. }
  17507. static int
  17508. year_2050_test ()
  17509. {
  17510. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17511. ignoring leap seconds. */
  17512. unsigned long int answer = 2527315200UL;
  17513. struct tm tm;
  17514. time_t t;
  17515. tm.tm_year = 2050 - 1900;
  17516. tm.tm_mon = 2 - 1;
  17517. tm.tm_mday = 1;
  17518. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17519. tm.tm_isdst = -1;
  17520. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17521. instead of "TZ=America/Vancouver" in order to detect the bug even
  17522. on systems that don't support the Olson extension, or don't have the
  17523. full zoneinfo tables installed. */
  17524. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17525. t = mktime (&tm);
  17526. /* Check that the result is either a failure, or close enough
  17527. to the correct answer that we can assume the discrepancy is
  17528. due to leap seconds. */
  17529. return (t == (time_t) -1
  17530. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17531. }
  17532. int
  17533. main ()
  17534. {
  17535. time_t t, delta;
  17536. int i, j;
  17537. /* This test makes some buggy mktime implementations loop.
  17538. Give up after 60 seconds; a mktime slower than that
  17539. isn't worth using anyway. */
  17540. alarm (60);
  17541. for (;;)
  17542. {
  17543. t = (time_t_max << 1) + 1;
  17544. if (t <= time_t_max)
  17545. break;
  17546. time_t_max = t;
  17547. }
  17548. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17549. delta = time_t_max / 997; /* a suitable prime number */
  17550. for (i = 0; i < N_STRINGS; i++)
  17551. {
  17552. if (tz_strings[i])
  17553. putenv ((char*) tz_strings[i]);
  17554. for (t = 0; t <= time_t_max - delta; t += delta)
  17555. if (! mktime_test (t))
  17556. return 1;
  17557. if (! (mktime_test ((time_t) 1)
  17558. && mktime_test ((time_t) (60 * 60))
  17559. && mktime_test ((time_t) (60 * 60 * 24))))
  17560. return 1;
  17561. for (j = 1; ; j <<= 1)
  17562. if (! bigtime_test (j))
  17563. return 1;
  17564. else if (INT_MAX / 2 < j)
  17565. break;
  17566. if (! bigtime_test (INT_MAX))
  17567. return 1;
  17568. }
  17569. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17570. }
  17571. _ACEOF
  17572. if ac_fn_c_try_run "$LINENO"; then :
  17573. ac_cv_func_working_mktime=yes
  17574. else
  17575. ac_cv_func_working_mktime=no
  17576. fi
  17577. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17578. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17579. fi
  17580. fi
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17582. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17583. if test $ac_cv_func_working_mktime = no; then
  17584. case " $LIBOBJS " in
  17585. *" mktime.$ac_objext "* ) ;;
  17586. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17587. ;;
  17588. esac
  17589. fi
  17590. for ac_func in getpagesize
  17591. do :
  17592. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17593. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17594. cat >>confdefs.h <<_ACEOF
  17595. #define HAVE_GETPAGESIZE 1
  17596. _ACEOF
  17597. fi
  17598. done
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17600. $as_echo_n "checking for working mmap... " >&6; }
  17601. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17602. $as_echo_n "(cached) " >&6
  17603. else
  17604. if test "$cross_compiling" = yes; then :
  17605. ac_cv_func_mmap_fixed_mapped=no
  17606. else
  17607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17608. /* end confdefs.h. */
  17609. $ac_includes_default
  17610. /* malloc might have been renamed as rpl_malloc. */
  17611. #undef malloc
  17612. /* Thanks to Mike Haertel and Jim Avera for this test.
  17613. Here is a matrix of mmap possibilities:
  17614. mmap private not fixed
  17615. mmap private fixed at somewhere currently unmapped
  17616. mmap private fixed at somewhere already mapped
  17617. mmap shared not fixed
  17618. mmap shared fixed at somewhere currently unmapped
  17619. mmap shared fixed at somewhere already mapped
  17620. For private mappings, we should verify that changes cannot be read()
  17621. back from the file, nor mmap's back from the file at a different
  17622. address. (There have been systems where private was not correctly
  17623. implemented like the infamous i386 svr4.0, and systems where the
  17624. VM page cache was not coherent with the file system buffer cache
  17625. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17626. For shared mappings, we should conversely verify that changes get
  17627. propagated back to all the places they're supposed to be.
  17628. Grep wants private fixed already mapped.
  17629. The main things grep needs to know about mmap are:
  17630. * does it exist and is it safe to write into the mmap'd area
  17631. * how to use it (BSD variants) */
  17632. #include <fcntl.h>
  17633. #include <sys/mman.h>
  17634. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17635. char *malloc ();
  17636. #endif
  17637. /* This mess was copied from the GNU getpagesize.h. */
  17638. #ifndef HAVE_GETPAGESIZE
  17639. # ifdef _SC_PAGESIZE
  17640. # define getpagesize() sysconf(_SC_PAGESIZE)
  17641. # else /* no _SC_PAGESIZE */
  17642. # ifdef HAVE_SYS_PARAM_H
  17643. # include <sys/param.h>
  17644. # ifdef EXEC_PAGESIZE
  17645. # define getpagesize() EXEC_PAGESIZE
  17646. # else /* no EXEC_PAGESIZE */
  17647. # ifdef NBPG
  17648. # define getpagesize() NBPG * CLSIZE
  17649. # ifndef CLSIZE
  17650. # define CLSIZE 1
  17651. # endif /* no CLSIZE */
  17652. # else /* no NBPG */
  17653. # ifdef NBPC
  17654. # define getpagesize() NBPC
  17655. # else /* no NBPC */
  17656. # ifdef PAGESIZE
  17657. # define getpagesize() PAGESIZE
  17658. # endif /* PAGESIZE */
  17659. # endif /* no NBPC */
  17660. # endif /* no NBPG */
  17661. # endif /* no EXEC_PAGESIZE */
  17662. # else /* no HAVE_SYS_PARAM_H */
  17663. # define getpagesize() 8192 /* punt totally */
  17664. # endif /* no HAVE_SYS_PARAM_H */
  17665. # endif /* no _SC_PAGESIZE */
  17666. #endif /* no HAVE_GETPAGESIZE */
  17667. int
  17668. main ()
  17669. {
  17670. char *data, *data2, *data3;
  17671. const char *cdata2;
  17672. int i, pagesize;
  17673. int fd, fd2;
  17674. pagesize = getpagesize ();
  17675. /* First, make a file with some known garbage in it. */
  17676. data = (char *) malloc (pagesize);
  17677. if (!data)
  17678. return 1;
  17679. for (i = 0; i < pagesize; ++i)
  17680. *(data + i) = rand ();
  17681. umask (0);
  17682. fd = creat ("conftest.mmap", 0600);
  17683. if (fd < 0)
  17684. return 2;
  17685. if (write (fd, data, pagesize) != pagesize)
  17686. return 3;
  17687. close (fd);
  17688. /* Next, check that the tail of a page is zero-filled. File must have
  17689. non-zero length, otherwise we risk SIGBUS for entire page. */
  17690. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17691. if (fd2 < 0)
  17692. return 4;
  17693. cdata2 = "";
  17694. if (write (fd2, cdata2, 1) != 1)
  17695. return 5;
  17696. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17697. if (data2 == MAP_FAILED)
  17698. return 6;
  17699. for (i = 0; i < pagesize; ++i)
  17700. if (*(data2 + i))
  17701. return 7;
  17702. close (fd2);
  17703. if (munmap (data2, pagesize))
  17704. return 8;
  17705. /* Next, try to mmap the file at a fixed address which already has
  17706. something else allocated at it. If we can, also make sure that
  17707. we see the same garbage. */
  17708. fd = open ("conftest.mmap", O_RDWR);
  17709. if (fd < 0)
  17710. return 9;
  17711. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17712. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17713. return 10;
  17714. for (i = 0; i < pagesize; ++i)
  17715. if (*(data + i) != *(data2 + i))
  17716. return 11;
  17717. /* Finally, make sure that changes to the mapped area do not
  17718. percolate back to the file as seen by read(). (This is a bug on
  17719. some variants of i386 svr4.0.) */
  17720. for (i = 0; i < pagesize; ++i)
  17721. *(data2 + i) = *(data2 + i) + 1;
  17722. data3 = (char *) malloc (pagesize);
  17723. if (!data3)
  17724. return 12;
  17725. if (read (fd, data3, pagesize) != pagesize)
  17726. return 13;
  17727. for (i = 0; i < pagesize; ++i)
  17728. if (*(data + i) != *(data3 + i))
  17729. return 14;
  17730. close (fd);
  17731. free (data);
  17732. free (data3);
  17733. return 0;
  17734. }
  17735. _ACEOF
  17736. if ac_fn_c_try_run "$LINENO"; then :
  17737. ac_cv_func_mmap_fixed_mapped=yes
  17738. else
  17739. ac_cv_func_mmap_fixed_mapped=no
  17740. fi
  17741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17742. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17743. fi
  17744. fi
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17746. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17747. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17748. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17749. fi
  17750. rm -f conftest.mmap conftest.txt
  17751. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17752. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17753. cat >>confdefs.h <<_ACEOF
  17754. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17755. _ACEOF
  17756. fi
  17757. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  17758. do :
  17759. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17760. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17761. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17762. cat >>confdefs.h <<_ACEOF
  17763. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17764. _ACEOF
  17765. fi
  17766. done
  17767. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  17768. do :
  17769. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17770. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17771. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17772. cat >>confdefs.h <<_ACEOF
  17773. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17774. _ACEOF
  17775. fi
  17776. done
  17777. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  17778. do :
  17779. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17780. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17781. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17782. cat >>confdefs.h <<_ACEOF
  17783. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17784. _ACEOF
  17785. fi
  17786. done
  17787. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17788. do :
  17789. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17790. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17791. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17792. cat >>confdefs.h <<_ACEOF
  17793. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17794. _ACEOF
  17795. fi
  17796. done
  17797. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17798. do :
  17799. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17800. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17801. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17802. cat >>confdefs.h <<_ACEOF
  17803. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17804. _ACEOF
  17805. fi
  17806. done
  17807. for ac_func in ioperm
  17808. do :
  17809. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17810. if test "x$ac_cv_func_ioperm" = xyes; then :
  17811. cat >>confdefs.h <<_ACEOF
  17812. #define HAVE_IOPERM 1
  17813. _ACEOF
  17814. fi
  17815. done
  17816. for ac_func in strlcpy
  17817. do :
  17818. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17819. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17820. cat >>confdefs.h <<_ACEOF
  17821. #define HAVE_STRLCPY 1
  17822. _ACEOF
  17823. have_strlcpy=true
  17824. else
  17825. have_strlcpy=false
  17826. fi
  17827. done
  17828. if test x$have_strlcpy = xtrue; then
  17829. SYSTEM_STRLCPY_TRUE=
  17830. SYSTEM_STRLCPY_FALSE='#'
  17831. else
  17832. SYSTEM_STRLCPY_TRUE='#'
  17833. SYSTEM_STRLCPY_FALSE=
  17834. fi
  17835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17836. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17837. if ${ac_cv_c_bigendian+:} false; then :
  17838. $as_echo_n "(cached) " >&6
  17839. else
  17840. ac_cv_c_bigendian=unknown
  17841. # See if we're dealing with a universal compiler.
  17842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17843. /* end confdefs.h. */
  17844. #ifndef __APPLE_CC__
  17845. not a universal capable compiler
  17846. #endif
  17847. typedef int dummy;
  17848. _ACEOF
  17849. if ac_fn_c_try_compile "$LINENO"; then :
  17850. # Check for potential -arch flags. It is not universal unless
  17851. # there are at least two -arch flags with different values.
  17852. ac_arch=
  17853. ac_prev=
  17854. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17855. if test -n "$ac_prev"; then
  17856. case $ac_word in
  17857. i?86 | x86_64 | ppc | ppc64)
  17858. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17859. ac_arch=$ac_word
  17860. else
  17861. ac_cv_c_bigendian=universal
  17862. break
  17863. fi
  17864. ;;
  17865. esac
  17866. ac_prev=
  17867. elif test "x$ac_word" = "x-arch"; then
  17868. ac_prev=arch
  17869. fi
  17870. done
  17871. fi
  17872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17873. if test $ac_cv_c_bigendian = unknown; then
  17874. # See if sys/param.h defines the BYTE_ORDER macro.
  17875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17876. /* end confdefs.h. */
  17877. #include <sys/types.h>
  17878. #include <sys/param.h>
  17879. int
  17880. main ()
  17881. {
  17882. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17883. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17884. && LITTLE_ENDIAN)
  17885. bogus endian macros
  17886. #endif
  17887. ;
  17888. return 0;
  17889. }
  17890. _ACEOF
  17891. if ac_fn_c_try_compile "$LINENO"; then :
  17892. # It does; now see whether it defined to BIG_ENDIAN or not.
  17893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17894. /* end confdefs.h. */
  17895. #include <sys/types.h>
  17896. #include <sys/param.h>
  17897. int
  17898. main ()
  17899. {
  17900. #if BYTE_ORDER != BIG_ENDIAN
  17901. not big endian
  17902. #endif
  17903. ;
  17904. return 0;
  17905. }
  17906. _ACEOF
  17907. if ac_fn_c_try_compile "$LINENO"; then :
  17908. ac_cv_c_bigendian=yes
  17909. else
  17910. ac_cv_c_bigendian=no
  17911. fi
  17912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17913. fi
  17914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17915. fi
  17916. if test $ac_cv_c_bigendian = unknown; then
  17917. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17919. /* end confdefs.h. */
  17920. #include <limits.h>
  17921. int
  17922. main ()
  17923. {
  17924. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17925. bogus endian macros
  17926. #endif
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"; then :
  17932. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17934. /* end confdefs.h. */
  17935. #include <limits.h>
  17936. int
  17937. main ()
  17938. {
  17939. #ifndef _BIG_ENDIAN
  17940. not big endian
  17941. #endif
  17942. ;
  17943. return 0;
  17944. }
  17945. _ACEOF
  17946. if ac_fn_c_try_compile "$LINENO"; then :
  17947. ac_cv_c_bigendian=yes
  17948. else
  17949. ac_cv_c_bigendian=no
  17950. fi
  17951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17952. fi
  17953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17954. fi
  17955. if test $ac_cv_c_bigendian = unknown; then
  17956. # Compile a test program.
  17957. if test "$cross_compiling" = yes; then :
  17958. # Try to guess by grepping values from an object file.
  17959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17960. /* end confdefs.h. */
  17961. short int ascii_mm[] =
  17962. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17963. short int ascii_ii[] =
  17964. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17965. int use_ascii (int i) {
  17966. return ascii_mm[i] + ascii_ii[i];
  17967. }
  17968. short int ebcdic_ii[] =
  17969. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17970. short int ebcdic_mm[] =
  17971. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17972. int use_ebcdic (int i) {
  17973. return ebcdic_mm[i] + ebcdic_ii[i];
  17974. }
  17975. extern int foo;
  17976. int
  17977. main ()
  17978. {
  17979. return use_ascii (foo) == use_ebcdic (foo);
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_c_try_compile "$LINENO"; then :
  17985. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  17986. ac_cv_c_bigendian=yes
  17987. fi
  17988. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  17989. if test "$ac_cv_c_bigendian" = unknown; then
  17990. ac_cv_c_bigendian=no
  17991. else
  17992. # finding both strings is unlikely to happen, but who knows?
  17993. ac_cv_c_bigendian=unknown
  17994. fi
  17995. fi
  17996. fi
  17997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17998. else
  17999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18000. /* end confdefs.h. */
  18001. $ac_includes_default
  18002. int
  18003. main ()
  18004. {
  18005. /* Are we little or big endian? From Harbison&Steele. */
  18006. union
  18007. {
  18008. long int l;
  18009. char c[sizeof (long int)];
  18010. } u;
  18011. u.l = 1;
  18012. return u.c[sizeof (long int) - 1] == 1;
  18013. ;
  18014. return 0;
  18015. }
  18016. _ACEOF
  18017. if ac_fn_c_try_run "$LINENO"; then :
  18018. ac_cv_c_bigendian=no
  18019. else
  18020. ac_cv_c_bigendian=yes
  18021. fi
  18022. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18023. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18024. fi
  18025. fi
  18026. fi
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18028. $as_echo "$ac_cv_c_bigendian" >&6; }
  18029. case $ac_cv_c_bigendian in #(
  18030. yes)
  18031. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18032. ;; #(
  18033. no)
  18034. ;; #(
  18035. universal)
  18036. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18037. ;; #(
  18038. *)
  18039. as_fn_error $? "unknown endianness
  18040. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18041. esac
  18042. if test x$ac_cv_c_bigendian = xyes ; then
  18043. WORDS_BIGENDIAN_TRUE=
  18044. WORDS_BIGENDIAN_FALSE='#'
  18045. else
  18046. WORDS_BIGENDIAN_TRUE='#'
  18047. WORDS_BIGENDIAN_FALSE=
  18048. fi
  18049. # Check whether --enable-asan was given.
  18050. if test "${enable_asan+set}" = set; then :
  18051. enableval=$enable_asan;
  18052. fi
  18053. if test "x$enable_asan" = "xyes"; then
  18054. build_asan=yes
  18055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18056. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18057. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18058. $as_echo_n "(cached) " >&6
  18059. else
  18060. ac_check_lib_save_LIBS=$LIBS
  18061. LIBS="-lasan $LIBS"
  18062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18063. /* end confdefs.h. */
  18064. /* Override any GCC internal prototype to avoid an error.
  18065. Use char because int might match the return type of a GCC
  18066. builtin and then its argument prototype would still apply. */
  18067. #ifdef __cplusplus
  18068. extern "C"
  18069. #endif
  18070. char __asan_report_error ();
  18071. int
  18072. main ()
  18073. {
  18074. return __asan_report_error ();
  18075. ;
  18076. return 0;
  18077. }
  18078. _ACEOF
  18079. if ac_fn_c_try_link "$LINENO"; then :
  18080. ac_cv_lib_asan___asan_report_error=yes
  18081. else
  18082. ac_cv_lib_asan___asan_report_error=no
  18083. fi
  18084. rm -f core conftest.err conftest.$ac_objext \
  18085. conftest$ac_exeext conftest.$ac_ext
  18086. LIBS=$ac_check_lib_save_LIBS
  18087. fi
  18088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18089. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18090. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18091. cat >>confdefs.h <<_ACEOF
  18092. #define HAVE_LIBASAN 1
  18093. _ACEOF
  18094. LIBS="-lasan $LIBS"
  18095. else
  18096. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18097. fi
  18098. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18099. LDFLAGS="-lasan ${LDFLAGS}"
  18100. else
  18101. build_asan=no
  18102. fi
  18103. debug=no
  18104. debug_flag=NDEBUG
  18105. debug_run_time_flag=
  18106. # Check whether --enable-debug was given.
  18107. if test "${enable_debug+set}" = set; then :
  18108. enableval=$enable_debug; if test x$enableval = xyes; then
  18109. debug=yes
  18110. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18111. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18112. # We may also want to add:
  18113. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18114. debug_flag=DEBUG
  18115. debug_run_time_flag=--dbug=1
  18116. $as_echo "#define DEBUG 1" >>confdefs.h
  18117. fi
  18118. fi
  18119. extra_debug=no
  18120. extra_debug_flag=NEXTRA_DBUG
  18121. # Check whether --enable-extra-debug was given.
  18122. if test "${enable_extra_debug+set}" = set; then :
  18123. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18124. extra_debug=yes
  18125. extra_debug_flag=EXTRA_DEBUG
  18126. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18127. fi
  18128. fi
  18129. timestamp_trace=no
  18130. # Check whether --enable-timestamp-trace was given.
  18131. if test "${enable_timestamp_trace+set}" = set; then :
  18132. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18133. timestamp_trace=yes
  18134. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18135. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18136. fi
  18137. fi
  18138. # Check whether --enable-dmalloc was given.
  18139. if test "${enable_dmalloc+set}" = set; then :
  18140. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18141. dmalloc=yes
  18142. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18143. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18144. CFLAGS="${CFLAGS} -I/opt/local/include"
  18145. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18146. fi
  18147. fi
  18148. # Check whether --enable-pedantic was given.
  18149. if test "${enable_pedantic+set}" = set; then :
  18150. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18151. CFLAGS="$CFLAGS -pedantic"
  18152. fi
  18153. fi
  18154. # Check whether --enable-efence was given.
  18155. if test "${enable_efence+set}" = set; then :
  18156. enableval=$enable_efence; if test x$enableval = xyes; then
  18157. CFLAGS="$CFLAGS -lefence"
  18158. $as_echo "#define EFENCE 1" >>confdefs.h
  18159. fi
  18160. fi
  18161. # Check whether --enable-gprof was given.
  18162. if test "${enable_gprof+set}" = set; then :
  18163. enableval=$enable_gprof; if test x$enableval = xyes; then
  18164. if test $debug = yes; then
  18165. CFLAGS="$CFLAGS -pg"
  18166. else
  18167. # GPROF requires gdb
  18168. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18169. fi
  18170. $as_echo "#define GPROF 1" >>confdefs.h
  18171. fi
  18172. fi
  18173. enable_pcap_config=no
  18174. # Check whether --enable-pcapconfig was given.
  18175. if test "${enable_pcapconfig+set}" = set; then :
  18176. enableval=$enable_pcapconfig;
  18177. if test $enableval = yes; then
  18178. enable_pcap_config=yes
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18180. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18181. else
  18182. enable_pcap_config=no
  18183. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18184. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18185. fi
  18186. else
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18188. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18189. fi
  18190. use64bit_counters=yes
  18191. # Check whether --enable-64bits was given.
  18192. if test "${enable_64bits+set}" = set; then :
  18193. enableval=$enable_64bits;
  18194. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18195. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18196. else
  18197. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18199. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18200. fi
  18201. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18202. # so we can use _U_ to flag unused function arguments and not get warnings
  18203. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18204. # function argument will compile with non-GCC compilers.
  18205. #
  18206. if test "x$GCC" = "xyes" ; then
  18207. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18208. else
  18209. CFLAGS="-D_U_=\"\" $CFLAGS"
  18210. fi
  18211. # Check whether --enable-force-bpf was given.
  18212. if test "${enable_force_bpf+set}" = set; then :
  18213. enableval=$enable_force_bpf;
  18214. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18215. fi
  18216. # Check whether --enable-force-pf was given.
  18217. if test "${enable_force_pf+set}" = set; then :
  18218. enableval=$enable_force_pf;
  18219. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18220. fi
  18221. # Check whether --enable-force-libdnet was given.
  18222. if test "${enable_force_libdnet+set}" = set; then :
  18223. enableval=$enable_force_libdnet;
  18224. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18225. fi
  18226. # Check whether --enable-force-inject was given.
  18227. if test "${enable_force_inject+set}" = set; then :
  18228. enableval=$enable_force_inject;
  18229. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18230. fi
  18231. # Check whether --enable-force-sendpacket was given.
  18232. if test "${enable_force_sendpacket+set}" = set; then :
  18233. enableval=$enable_force_sendpacket;
  18234. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18235. fi
  18236. static_link=no
  18237. dynamic_link=yes
  18238. # Check whether --enable-static-link was given.
  18239. if test "${enable_static_link+set}" = set; then :
  18240. enableval=$enable_static_link;
  18241. if test $enableval = yes; then
  18242. static_link=yes
  18243. dynamic_link=no
  18244. fi
  18245. fi
  18246. # Check whether --enable-dynamic-link was given.
  18247. if test "${enable_dynamic_link+set}" = set; then :
  18248. enableval=$enable_dynamic_link;
  18249. if test $enableval = no; then
  18250. dynamic_link=no
  18251. static_link=yes
  18252. elif test $static_link = yes; then
  18253. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18254. fi
  18255. fi
  18256. if test $static_link = yes; then
  18257. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18258. else
  18259. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18260. fi
  18261. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18262. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18263. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18264. inet_aton=yes
  18265. else
  18266. inet_aton=no
  18267. fi
  18268. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18269. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18270. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18271. inet_pton=yes
  18272. else
  18273. inet_pton=no
  18274. fi
  18275. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18276. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18277. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18278. inet_ntop=yes
  18279. else
  18280. inet_ntop=no
  18281. fi
  18282. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18283. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18284. fi
  18285. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18286. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18287. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18288. inet_addr=yes
  18289. else
  18290. inet_addr=no
  18291. fi
  18292. if test x$inet_addr = no ; then
  18293. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18294. fi
  18295. have_tuntap=no
  18296. # Check whether --enable-tuntap was given.
  18297. if test "${enable_tuntap+set}" = set; then :
  18298. enableval=$enable_tuntap; :
  18299. else
  18300. case "$build_os" in
  18301. linux*)
  18302. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18303. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18304. have_tuntap=yes
  18305. fi
  18306. ;;
  18307. *)
  18308. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18309. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18310. have_tuntap=yes
  18311. fi
  18312. ;;
  18313. esac
  18314. fi
  18315. if test $have_tuntap = yes ; then
  18316. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18317. fi
  18318. foundpcap=no
  18319. pf_ring_found=no
  18320. pf_ring_lib=${with_pfring_lib}
  18321. using_pcap_config=no
  18322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18323. $as_echo_n "checking for libpcap... " >&6; }
  18324. # Check whether --with-libpcap was given.
  18325. if test "${with_libpcap+set}" = set; then :
  18326. withval=$with_libpcap;
  18327. testdir=$withval
  18328. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18329. if ! test -f "${incl}"; then
  18330. continue
  18331. fi
  18332. LPCAPINC=${incl}
  18333. LPCAPINCDIR=${testdir}
  18334. if test $dynamic_link = yes; then
  18335. for ext in .dylib .so .tbd ; do
  18336. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18337. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18338. if test -n "${sharefile}"; then
  18339. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18340. foundpcap=$testdir
  18341. break
  18342. fi
  18343. done
  18344. if ! test $foundpcap = no; then
  18345. break
  18346. fi
  18347. done
  18348. else
  18349. for ext in ${libext} .a .A.tbd ; do
  18350. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18351. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18352. if test -n "${staticfile}"; then
  18353. LPCAPLIB="${staticfile}"
  18354. foundpcap=${testdir}
  18355. break
  18356. fi
  18357. done
  18358. if ! test $foundpcap = no; then
  18359. ## could be PF_RING
  18360. #
  18361. # library is static and in PF_RING build tree
  18362. #
  18363. # Need access to libpfring library
  18364. # and must find an associated libpfring.a
  18365. if test -n "${with_pfring_lib}"; then
  18366. if test -f ${with_pfring_lib}; then
  18367. pf_ring_lib=${with_pfring_lib}
  18368. pf_ring_found=yes
  18369. else
  18370. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18371. fi
  18372. else
  18373. ## search locally for most likely PF_RING library
  18374. for lib in ${foundpcap}/../lib/libs/libpfring_zc_${host_cpu}.a \
  18375. ${foundpcap}/../lib/libs/libpfring_dna_${host_cpu}.a \
  18376. ${foundpcap}/../lib/libs/libpfring_zero_${host_cpu}.a \
  18377. ${foundpcap}/../lib/libs/libpfring_nt_${host_cpu}.a \
  18378. ${foundpcap}/../lib/libpfring.a; do
  18379. if test -f "${lib}"; then
  18380. pf_ring_lib=${lib}
  18381. pf_ring_found=yes
  18382. break
  18383. fi
  18384. done
  18385. fi
  18386. break
  18387. fi
  18388. done
  18389. fi
  18390. if test $foundpcap = no; then
  18391. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18392. fi
  18393. break
  18394. done
  18395. else
  18396. #
  18397. # Look for pcap-config.
  18398. #
  18399. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18400. #
  18401. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18402. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18403. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18404. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18405. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18406. # 'pcap-config' script that only occasionally works for dynamic definitions, and defintely
  18407. # does not work for static.
  18408. #
  18409. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18410. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18411. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18412. # libpcap fucntional. In the future, there may be more.
  18413. #
  18414. # (sigh)
  18415. #
  18416. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18417. # it may work for you.
  18418. if test $enable_pcap_config = yes; then
  18419. if test -n "$ac_tool_prefix"; then
  18420. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18421. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18423. $as_echo_n "checking for $ac_word... " >&6; }
  18424. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18425. $as_echo_n "(cached) " >&6
  18426. else
  18427. case $PCAP_CONFIG in
  18428. [\\/]* | ?:[\\/]*)
  18429. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18430. ;;
  18431. *)
  18432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18433. for as_dir in $PATH
  18434. do
  18435. IFS=$as_save_IFS
  18436. test -z "$as_dir" && as_dir=.
  18437. for ac_exec_ext in '' $ac_executable_extensions; do
  18438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18439. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18441. break 2
  18442. fi
  18443. done
  18444. done
  18445. IFS=$as_save_IFS
  18446. ;;
  18447. esac
  18448. fi
  18449. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18450. if test -n "$PCAP_CONFIG"; then
  18451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18452. $as_echo "$PCAP_CONFIG" >&6; }
  18453. else
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18455. $as_echo "no" >&6; }
  18456. fi
  18457. fi
  18458. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18459. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18460. # Extract the first word of "pcap-config", so it can be a program name with args.
  18461. set dummy pcap-config; ac_word=$2
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18463. $as_echo_n "checking for $ac_word... " >&6; }
  18464. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18465. $as_echo_n "(cached) " >&6
  18466. else
  18467. case $ac_pt_PCAP_CONFIG in
  18468. [\\/]* | ?:[\\/]*)
  18469. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18470. ;;
  18471. *)
  18472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18473. for as_dir in $PATH
  18474. do
  18475. IFS=$as_save_IFS
  18476. test -z "$as_dir" && as_dir=.
  18477. for ac_exec_ext in '' $ac_executable_extensions; do
  18478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18479. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18481. break 2
  18482. fi
  18483. done
  18484. done
  18485. IFS=$as_save_IFS
  18486. ;;
  18487. esac
  18488. fi
  18489. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18490. if test -n "$ac_pt_PCAP_CONFIG"; then
  18491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18492. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18493. else
  18494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18495. $as_echo "no" >&6; }
  18496. fi
  18497. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18498. PCAP_CONFIG=""
  18499. else
  18500. case $cross_compiling:$ac_tool_warned in
  18501. yes:)
  18502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18504. ac_tool_warned=yes ;;
  18505. esac
  18506. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18507. fi
  18508. else
  18509. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18510. fi
  18511. if test -n "$PCAP_CONFIG"; then
  18512. #
  18513. # Found - use it to get the include flags for
  18514. # libpcap and the flags to link with libpcap.
  18515. #
  18516. # Please read section 11.6 "Shell Substitutions"
  18517. # in the autoconf manual before doing anything
  18518. # to this that involves quoting. Especially note
  18519. # the statement "There is just no portable way to use
  18520. # double-quoted strings inside double-quoted back-quoted
  18521. # expressions (pfew!)."
  18522. #
  18523. if test $dynamic_link = yes; then
  18524. LPCAPLIB=$($PCAP_CONFIG --libs)
  18525. else
  18526. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18527. fi
  18528. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18529. if test -n "$LPCAPLIB"; then
  18530. foundpcap=yes
  18531. using_pcap_config=yes
  18532. else
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18534. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18535. fi
  18536. fi
  18537. fi
  18538. if test ! $foundpcap = yes; then
  18539. #
  18540. # Not found; look for pcap.
  18541. #
  18542. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18543. if test -f "${testdir}/include/pcap.h"; then
  18544. LPCAPINC="${testdir}/include/pcap.h"
  18545. LPCAPINCDIR="${testdir}/include"
  18546. if test $dynamic_link = yes; then
  18547. for ext in .dylib .so .tbd; do
  18548. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18549. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18550. if test -n "${sharefile}"; then
  18551. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18552. foundpcap=$testdir
  18553. break
  18554. fi
  18555. done
  18556. if ! test $foundpcap = no; then
  18557. break
  18558. fi
  18559. done
  18560. fi
  18561. if test $foundpcap = no ; then
  18562. for ext in ${libext} .a .A.tbd ; do
  18563. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18564. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18565. if test -n "${staticfile}"; then
  18566. LPCAPLIB="${staticfile}"
  18567. foundpcap=$testdir
  18568. break
  18569. fi
  18570. done
  18571. if ! test $foundpcap = no; then
  18572. break
  18573. fi
  18574. done
  18575. fi
  18576. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18577. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18578. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18579. foundpcap=$testdir
  18580. fi
  18581. fi
  18582. if ! test $foundpcap = no; then
  18583. break
  18584. fi
  18585. done
  18586. fi
  18587. fi
  18588. if test $foundpcap = no ; then
  18589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18590. $as_echo "no" >&6; }
  18591. as_fn_error $? "libpcap not found" "$LINENO" 5
  18592. else
  18593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18594. $as_echo "$foundpcap" >&6; }
  18595. fi
  18596. # libpcap can require libnl
  18597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18598. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18599. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18600. $as_echo_n "(cached) " >&6
  18601. else
  18602. ac_func_search_save_LIBS=$LIBS
  18603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18604. /* end confdefs.h. */
  18605. /* Override any GCC internal prototype to avoid an error.
  18606. Use char because int might match the return type of a GCC
  18607. builtin and then its argument prototype would still apply. */
  18608. #ifdef __cplusplus
  18609. extern "C"
  18610. #endif
  18611. char nl_handle_alloc ();
  18612. int
  18613. main ()
  18614. {
  18615. return nl_handle_alloc ();
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. for ac_lib in '' nl; do
  18621. if test -z "$ac_lib"; then
  18622. ac_res="none required"
  18623. else
  18624. ac_res=-l$ac_lib
  18625. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18626. fi
  18627. if ac_fn_c_try_link "$LINENO"; then :
  18628. ac_cv_search_nl_handle_alloc=$ac_res
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext \
  18631. conftest$ac_exeext
  18632. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18633. break
  18634. fi
  18635. done
  18636. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18637. else
  18638. ac_cv_search_nl_handle_alloc=no
  18639. fi
  18640. rm conftest.$ac_ext
  18641. LIBS=$ac_func_search_save_LIBS
  18642. fi
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18644. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18645. ac_res=$ac_cv_search_nl_handle_alloc
  18646. if test "$ac_res" != no; then :
  18647. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18648. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18649. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18650. fi
  18651. ##
  18652. ## If not automatically configured,
  18653. ## check for newer and full-featured libpcap's
  18654. ##
  18655. if ! test $using_pcap_config = yes; then
  18656. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18658. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18659. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18660. $as_echo_n "(cached) " >&6
  18661. else
  18662. ac_check_lib_save_LIBS=$LIBS
  18663. LIBS="-lnl $LIBS"
  18664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18665. /* end confdefs.h. */
  18666. /* Override any GCC internal prototype to avoid an error.
  18667. Use char because int might match the return type of a GCC
  18668. builtin and then its argument prototype would still apply. */
  18669. #ifdef __cplusplus
  18670. extern "C"
  18671. #endif
  18672. char nl_cache_alloc ();
  18673. int
  18674. main ()
  18675. {
  18676. return nl_cache_alloc ();
  18677. ;
  18678. return 0;
  18679. }
  18680. _ACEOF
  18681. if ac_fn_c_try_link "$LINENO"; then :
  18682. ac_cv_lib_nl_nl_cache_alloc=yes
  18683. else
  18684. ac_cv_lib_nl_nl_cache_alloc=no
  18685. fi
  18686. rm -f core conftest.err conftest.$ac_objext \
  18687. conftest$ac_exeext conftest.$ac_ext
  18688. LIBS=$ac_check_lib_save_LIBS
  18689. fi
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18691. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18692. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18693. nl_found=yes
  18694. fi
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18696. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18697. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18698. $as_echo_n "(cached) " >&6
  18699. else
  18700. ac_check_lib_save_LIBS=$LIBS
  18701. LIBS="-lnl-genl-3 $LIBS"
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. /* Override any GCC internal prototype to avoid an error.
  18705. Use char because int might match the return type of a GCC
  18706. builtin and then its argument prototype would still apply. */
  18707. #ifdef __cplusplus
  18708. extern "C"
  18709. #endif
  18710. char genl_connect ();
  18711. int
  18712. main ()
  18713. {
  18714. return genl_connect ();
  18715. ;
  18716. return 0;
  18717. }
  18718. _ACEOF
  18719. if ac_fn_c_try_link "$LINENO"; then :
  18720. ac_cv_lib_nl_genl_3_genl_connect=yes
  18721. else
  18722. ac_cv_lib_nl_genl_3_genl_connect=no
  18723. fi
  18724. rm -f core conftest.err conftest.$ac_objext \
  18725. conftest$ac_exeext conftest.$ac_ext
  18726. LIBS=$ac_check_lib_save_LIBS
  18727. fi
  18728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  18729. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  18730. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  18731. nl_genl_3_found=yes
  18732. fi
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  18734. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  18735. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  18736. $as_echo_n "(cached) " >&6
  18737. else
  18738. ac_check_lib_save_LIBS=$LIBS
  18739. LIBS="-lnl-3 $LIBS"
  18740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18741. /* end confdefs.h. */
  18742. /* Override any GCC internal prototype to avoid an error.
  18743. Use char because int might match the return type of a GCC
  18744. builtin and then its argument prototype would still apply. */
  18745. #ifdef __cplusplus
  18746. extern "C"
  18747. #endif
  18748. char nl_cache_alloc ();
  18749. int
  18750. main ()
  18751. {
  18752. return nl_cache_alloc ();
  18753. ;
  18754. return 0;
  18755. }
  18756. _ACEOF
  18757. if ac_fn_c_try_link "$LINENO"; then :
  18758. ac_cv_lib_nl_3_nl_cache_alloc=yes
  18759. else
  18760. ac_cv_lib_nl_3_nl_cache_alloc=no
  18761. fi
  18762. rm -f core conftest.err conftest.$ac_objext \
  18763. conftest$ac_exeext conftest.$ac_ext
  18764. LIBS=$ac_check_lib_save_LIBS
  18765. fi
  18766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  18767. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  18768. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  18769. nl_3_found=yes
  18770. fi
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  18772. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  18773. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  18774. $as_echo_n "(cached) " >&6
  18775. else
  18776. ac_check_lib_save_LIBS=$LIBS
  18777. LIBS="-ldbus-1 $LIBS"
  18778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18779. /* end confdefs.h. */
  18780. /* Override any GCC internal prototype to avoid an error.
  18781. Use char because int might match the return type of a GCC
  18782. builtin and then its argument prototype would still apply. */
  18783. #ifdef __cplusplus
  18784. extern "C"
  18785. #endif
  18786. char dbus_malloc ();
  18787. int
  18788. main ()
  18789. {
  18790. return dbus_malloc ();
  18791. ;
  18792. return 0;
  18793. }
  18794. _ACEOF
  18795. if ac_fn_c_try_link "$LINENO"; then :
  18796. ac_cv_lib_dbus_1_dbus_malloc=yes
  18797. else
  18798. ac_cv_lib_dbus_1_dbus_malloc=no
  18799. fi
  18800. rm -f core conftest.err conftest.$ac_objext \
  18801. conftest$ac_exeext conftest.$ac_ext
  18802. LIBS=$ac_check_lib_save_LIBS
  18803. fi
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  18805. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  18806. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  18807. dbus_1_found=yes
  18808. fi
  18809. if test "$nl_found" = "yes"; then
  18810. LPCAPLIB="$LPCAPLIB -lnl"
  18811. fi
  18812. if test "$nl_genl_3_found" = "yes"; then
  18813. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  18814. fi
  18815. if test "$nl_3_found" = "yes"; then
  18816. LPCAPLIB="$LPCAPLIB -lnl-3"
  18817. fi
  18818. if test "$dbus_1_found" = "yes"; then
  18819. LPCAPLIB="$LPCAPLIB -ldbus-1"
  18820. fi
  18821. ## See if prereqs for PF_RING exist
  18822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  18823. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  18824. if ${ac_cv_lib_numa_numa_available+:} false; then :
  18825. $as_echo_n "(cached) " >&6
  18826. else
  18827. ac_check_lib_save_LIBS=$LIBS
  18828. LIBS="-lnuma $LIBS"
  18829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18830. /* end confdefs.h. */
  18831. /* Override any GCC internal prototype to avoid an error.
  18832. Use char because int might match the return type of a GCC
  18833. builtin and then its argument prototype would still apply. */
  18834. #ifdef __cplusplus
  18835. extern "C"
  18836. #endif
  18837. char numa_available ();
  18838. int
  18839. main ()
  18840. {
  18841. return numa_available ();
  18842. ;
  18843. return 0;
  18844. }
  18845. _ACEOF
  18846. if ac_fn_c_try_link "$LINENO"; then :
  18847. ac_cv_lib_numa_numa_available=yes
  18848. else
  18849. ac_cv_lib_numa_numa_available=no
  18850. fi
  18851. rm -f core conftest.err conftest.$ac_objext \
  18852. conftest$ac_exeext conftest.$ac_ext
  18853. LIBS=$ac_check_lib_save_LIBS
  18854. fi
  18855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  18856. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  18857. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  18858. numa_found=yes
  18859. fi
  18860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  18861. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  18862. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  18863. $as_echo_n "(cached) " >&6
  18864. else
  18865. ac_check_lib_save_LIBS=$LIBS
  18866. LIBS="-lpthread $LIBS"
  18867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18868. /* end confdefs.h. */
  18869. /* Override any GCC internal prototype to avoid an error.
  18870. Use char because int might match the return type of a GCC
  18871. builtin and then its argument prototype would still apply. */
  18872. #ifdef __cplusplus
  18873. extern "C"
  18874. #endif
  18875. char pthread_create ();
  18876. int
  18877. main ()
  18878. {
  18879. return pthread_create ();
  18880. ;
  18881. return 0;
  18882. }
  18883. _ACEOF
  18884. if ac_fn_c_try_link "$LINENO"; then :
  18885. ac_cv_lib_pthread_pthread_create=yes
  18886. else
  18887. ac_cv_lib_pthread_pthread_create=no
  18888. fi
  18889. rm -f core conftest.err conftest.$ac_objext \
  18890. conftest$ac_exeext conftest.$ac_ext
  18891. LIBS=$ac_check_lib_save_LIBS
  18892. fi
  18893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  18894. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  18895. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  18896. pthread_found=yes
  18897. fi
  18898. if test $pf_ring_found = yes; then
  18899. if ! test "${numa_found}" = "yes"; then
  18900. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  18901. fi
  18902. if ! test "${pthread_found}" = "yes"; then
  18903. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  18904. fi
  18905. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  18906. fi
  18907. fi
  18908. OLDLIBS="$LIBS"
  18909. if test -n "$LPCAPINCDIR"; then
  18910. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18911. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18912. else
  18913. OLDCFLAGS="$CFLAGS"
  18914. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  18915. LPCAPINC="$LPCAPINCDIR/pcap.h"
  18916. fi
  18917. LIBS="$LPCAPLIB"
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  18919. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  18920. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18921. $as_echo_n "(cached) " >&6
  18922. else
  18923. ac_func_search_save_LIBS=$LIBS
  18924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18925. /* end confdefs.h. */
  18926. /* Override any GCC internal prototype to avoid an error.
  18927. Use char because int might match the return type of a GCC
  18928. builtin and then its argument prototype would still apply. */
  18929. #ifdef __cplusplus
  18930. extern "C"
  18931. #endif
  18932. char pcap_get_pfring_id ();
  18933. int
  18934. main ()
  18935. {
  18936. return pcap_get_pfring_id ();
  18937. ;
  18938. return 0;
  18939. }
  18940. _ACEOF
  18941. for ac_lib in '' pcap; do
  18942. if test -z "$ac_lib"; then
  18943. ac_res="none required"
  18944. else
  18945. ac_res=-l$ac_lib
  18946. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18947. fi
  18948. if ac_fn_c_try_link "$LINENO"; then :
  18949. ac_cv_search_pcap_get_pfring_id=$ac_res
  18950. fi
  18951. rm -f core conftest.err conftest.$ac_objext \
  18952. conftest$ac_exeext
  18953. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18954. break
  18955. fi
  18956. done
  18957. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18958. else
  18959. ac_cv_search_pcap_get_pfring_id=no
  18960. fi
  18961. rm conftest.$ac_ext
  18962. LIBS=$ac_func_search_save_LIBS
  18963. fi
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  18965. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  18966. ac_res=$ac_cv_search_pcap_get_pfring_id
  18967. if test "$ac_res" != no; then :
  18968. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18969. $as_echo "#define HAVE_PF_RING_PCAP 1" >>confdefs.h
  18970. fi
  18971. ## Does libpcap work with selected libraries?
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  18973. $as_echo_n "checking for library containing pcap_close... " >&6; }
  18974. if ${ac_cv_search_pcap_close+:} false; then :
  18975. $as_echo_n "(cached) " >&6
  18976. else
  18977. ac_func_search_save_LIBS=$LIBS
  18978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18979. /* end confdefs.h. */
  18980. /* Override any GCC internal prototype to avoid an error.
  18981. Use char because int might match the return type of a GCC
  18982. builtin and then its argument prototype would still apply. */
  18983. #ifdef __cplusplus
  18984. extern "C"
  18985. #endif
  18986. char pcap_close ();
  18987. int
  18988. main ()
  18989. {
  18990. return pcap_close ();
  18991. ;
  18992. return 0;
  18993. }
  18994. _ACEOF
  18995. for ac_lib in '' pcap; do
  18996. if test -z "$ac_lib"; then
  18997. ac_res="none required"
  18998. else
  18999. ac_res=-l$ac_lib
  19000. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19001. fi
  19002. if ac_fn_c_try_link "$LINENO"; then :
  19003. ac_cv_search_pcap_close=$ac_res
  19004. fi
  19005. rm -f core conftest.err conftest.$ac_objext \
  19006. conftest$ac_exeext
  19007. if ${ac_cv_search_pcap_close+:} false; then :
  19008. break
  19009. fi
  19010. done
  19011. if ${ac_cv_search_pcap_close+:} false; then :
  19012. else
  19013. ac_cv_search_pcap_close=no
  19014. fi
  19015. rm conftest.$ac_ext
  19016. LIBS=$ac_func_search_save_LIBS
  19017. fi
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19019. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19020. ac_res=$ac_cv_search_pcap_close
  19021. if test "$ac_res" != no; then :
  19022. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19023. else
  19024. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19025. fi
  19026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  19027. $as_echo_n "checking for libpcap version... " >&6; }
  19028. if test "$cross_compiling" = yes; then :
  19029. libpcap_version_096=yes
  19030. else
  19031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19032. /* end confdefs.h. */
  19033. #include <string.h>
  19034. #include <stdlib.h>
  19035. #include <stdio.h>
  19036. #include "$LPCAPINC"
  19037. #define PCAP_TEST "0.9.6"
  19038. int
  19039. main ()
  19040. {
  19041. /*
  19042. * simple proggy to test the version of libpcap
  19043. * returns zero if version >= 0.9.6
  19044. * or one otherwise
  19045. */
  19046. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19047. exit(0);
  19048. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0) {
  19049. printf("%s ", pcap_lib_version());
  19050. exit(0);
  19051. }
  19052. exit(1);
  19053. ;
  19054. return 0;
  19055. }
  19056. _ACEOF
  19057. if ac_fn_c_try_run "$LINENO"; then :
  19058. libpcap_version_096=yes
  19059. else
  19060. libpcap_version_096=no
  19061. fi
  19062. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19063. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19064. fi
  19065. if test "$cross_compiling" = yes; then :
  19066. libpcap_ver8=yes
  19067. else
  19068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19069. /* end confdefs.h. */
  19070. #include <string.h>
  19071. #include <stdlib.h>
  19072. #include <stdio.h>
  19073. #include "$LPCAPINC"
  19074. #define PCAP_TEST "0.8"
  19075. int
  19076. main ()
  19077. {
  19078. /*
  19079. * simple proggy to test the version of libpcap
  19080. * returns zero if version >= 0.8.0
  19081. * or one otherwise
  19082. */
  19083. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19084. exit(0);
  19085. /* winpcap? */
  19086. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  19087. exit(0);
  19088. exit(1);
  19089. ;
  19090. return 0;
  19091. }
  19092. _ACEOF
  19093. if ac_fn_c_try_run "$LINENO"; then :
  19094. libpcap_ver8=yes
  19095. else
  19096. libpcap_ver8=no
  19097. fi
  19098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19099. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19100. fi
  19101. if test "$cross_compiling" = yes; then :
  19102. libpcap_ver7=yes
  19103. else
  19104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19105. /* end confdefs.h. */
  19106. #include <string.h>
  19107. #include <stdlib.h>
  19108. #include <stdio.h>
  19109. #include "$LPCAPINC"
  19110. #define PCAP_TEST "0.7.2"
  19111. extern const char pcap_version[[]]; /* double up since autoconf escapes things */
  19112. int
  19113. main ()
  19114. {
  19115. /*
  19116. * simple proggy to test the version of libpcap
  19117. * returns zero if version >= 0.7.2
  19118. * or one otherwise
  19119. */
  19120. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  19121. exit(0);
  19122. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  19123. exit(0);
  19124. exit(1);
  19125. ;
  19126. return 0;
  19127. }
  19128. _ACEOF
  19129. if ac_fn_c_try_run "$LINENO"; then :
  19130. libpcap_ver7=yes
  19131. else
  19132. libpcap_ver7=no
  19133. fi
  19134. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19135. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19136. fi
  19137. if test x$libpcap_ver8 = xyes ; then
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  19139. $as_echo ">= 0.8.0" >&6; }
  19140. elif test x$libpcap_ver7 = xyes ; then
  19141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  19142. $as_echo ">= 0.7.2" >&6; }
  19143. else
  19144. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19145. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  19146. fi
  19147. libpcap_version=unknown
  19148. if test x$libpcap_version_096 = xyes ; then
  19149. libpcap_version=">= 0.9.6"
  19150. elif test x$libpcap_ver8 = xyes ; then
  19151. libpcap_version=">= 0.8.0"
  19152. elif test x$libcap_ver7 = xyes ; then
  19153. libpcap_version=">= 0.7.0"
  19154. fi
  19155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19156. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19158. /* end confdefs.h. */
  19159. #include <stdio.h>
  19160. #include <stdlib.h>
  19161. #include <string.h>
  19162. #include "$LPCAPINC"
  19163. int
  19164. main ()
  19165. {
  19166. pcap_t *p;
  19167. char *errbuf;
  19168. pcap_setnonblock(p, 1, errbuf);
  19169. exit(0);
  19170. ;
  19171. return 0;
  19172. }
  19173. _ACEOF
  19174. if ac_fn_c_try_link "$LINENO"; then :
  19175. have_pcap_setnonblock=yes
  19176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19177. $as_echo "yes" >&6; }
  19178. else
  19179. have_pcap_setnonblock=no
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19181. $as_echo "no" >&6; }
  19182. fi
  19183. rm -f core conftest.err conftest.$ac_objext \
  19184. conftest$ac_exeext conftest.$ac_ext
  19185. if test $have_pcap_setnonblock = yes ; then
  19186. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19187. fi
  19188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19189. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19191. /* end confdefs.h. */
  19192. #include <stdio.h>
  19193. #include <stdlib.h>
  19194. #include <string.h>
  19195. #include "$LPCAPINC"
  19196. int
  19197. main ()
  19198. {
  19199. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19200. exit(0);
  19201. exit(1);
  19202. ;
  19203. return 0;
  19204. }
  19205. _ACEOF
  19206. if ac_fn_c_try_link "$LINENO"; then :
  19207. have_dlt_to_desc=yes
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19209. $as_echo "yes" >&6; }
  19210. else
  19211. have_dlt_to_desc=no
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19213. $as_echo "no" >&6; }
  19214. fi
  19215. rm -f core conftest.err conftest.$ac_objext \
  19216. conftest$ac_exeext conftest.$ac_ext
  19217. if test $have_dlt_to_desc = yes ; then
  19218. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19219. fi
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19221. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19223. /* end confdefs.h. */
  19224. #include <stdio.h>
  19225. #include <stdlib.h>
  19226. #include <string.h>
  19227. #include "$LPCAPINC"
  19228. int
  19229. main ()
  19230. {
  19231. int f;
  19232. pcap_t *p;
  19233. f = pcap_get_selectable_fd(p);
  19234. exit(0);
  19235. ;
  19236. return 0;
  19237. }
  19238. _ACEOF
  19239. if ac_fn_c_try_link "$LINENO"; then :
  19240. have_pcap_get_selectable_fd=yes
  19241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19242. $as_echo "yes" >&6; }
  19243. else
  19244. have_pcap_get_selectable_fd=no
  19245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19246. $as_echo "no" >&6; }
  19247. fi
  19248. rm -f core conftest.err conftest.$ac_objext \
  19249. conftest$ac_exeext conftest.$ac_ext
  19250. if test x$have_pcap_get_selectable_fd = xyes ; then
  19251. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19252. fi
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19254. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19256. /* end confdefs.h. */
  19257. #include <stdio.h>
  19258. #include <stdlib.h>
  19259. #include <string.h>
  19260. #include "$LPCAPINC"
  19261. int
  19262. main ()
  19263. {
  19264. pcap_dumper_t *dump;
  19265. pcap_t *pcap;
  19266. FILE *foo;
  19267. dump = pcap_dump_fopen(pcap, foo);
  19268. ;
  19269. return 0;
  19270. }
  19271. _ACEOF
  19272. if ac_fn_c_try_link "$LINENO"; then :
  19273. have_pcap_dump_fopen=yes
  19274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19275. $as_echo "yes" >&6; }
  19276. else
  19277. have_pcap_dump_fopen=no
  19278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19279. $as_echo "no" >&6; }
  19280. fi
  19281. rm -f core conftest.err conftest.$ac_objext \
  19282. conftest$ac_exeext conftest.$ac_ext
  19283. if test $have_pcap_dump_fopen = yes ; then
  19284. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19285. else
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19287. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19288. fi
  19289. have_pcap_inject=no
  19290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19291. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19293. /* end confdefs.h. */
  19294. #include <stdio.h>
  19295. #include <stdlib.h>
  19296. #include <string.h>
  19297. #include "$LPCAPINC"
  19298. int
  19299. main ()
  19300. {
  19301. pcap_t *pcap;
  19302. char *buf;
  19303. pcap_inject(pcap, (void *)buf, 0);
  19304. ;
  19305. return 0;
  19306. }
  19307. _ACEOF
  19308. if ac_fn_c_try_link "$LINENO"; then :
  19309. have_pcap_inject=yes
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19311. $as_echo "yes" >&6; }
  19312. else
  19313. have_pcap_inject=no
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19315. $as_echo "no" >&6; }
  19316. fi
  19317. rm -f core conftest.err conftest.$ac_objext \
  19318. conftest$ac_exeext conftest.$ac_ext
  19319. if test $have_pcap_inject = yes ; then
  19320. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19321. fi
  19322. have_pcap_sendpacket=no
  19323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19324. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19326. /* end confdefs.h. */
  19327. #include <stdio.h>
  19328. #include <stdlib.h>
  19329. #include <string.h>
  19330. #include "$LPCAPINC"
  19331. int
  19332. main ()
  19333. {
  19334. pcap_t *pcap;
  19335. u_char *buf;
  19336. pcap_sendpacket(pcap, buf, 0);
  19337. ;
  19338. return 0;
  19339. }
  19340. _ACEOF
  19341. if ac_fn_c_try_link "$LINENO"; then :
  19342. have_pcap_sendpacket=yes
  19343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19344. $as_echo "yes" >&6; }
  19345. else
  19346. have_pcap_sendpacket=no
  19347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19348. $as_echo "no" >&6; }
  19349. fi
  19350. rm -f core conftest.err conftest.$ac_objext \
  19351. conftest$ac_exeext conftest.$ac_ext
  19352. if test $have_pcap_sendpacket = yes ; then
  19353. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19354. fi
  19355. have_pcap_breakloop=no
  19356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19357. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19359. /* end confdefs.h. */
  19360. #include <stdio.h>
  19361. #include <stdlib.h>
  19362. #include <string.h>
  19363. #include "$LPCAPINC"
  19364. int
  19365. main ()
  19366. {
  19367. pcap_t *pcap;
  19368. pcap_sendpacket(pcap);
  19369. ;
  19370. return 0;
  19371. }
  19372. _ACEOF
  19373. if ac_fn_c_try_link "$LINENO"; then :
  19374. have_pcap_breakloop=yes
  19375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19376. $as_echo "yes" >&6; }
  19377. else
  19378. have_pcap_breakloop=no
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19380. $as_echo "no" >&6; }
  19381. fi
  19382. rm -f core conftest.err conftest.$ac_objext \
  19383. conftest$ac_exeext conftest.$ac_ext
  19384. if test $have_pcap_breakloop = yes ; then
  19385. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19386. fi
  19387. have_pcap_version=no
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19389. $as_echo_n "checking for pcap_version... " >&6; }
  19390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19391. /* end confdefs.h. */
  19392. #include <stdio.h>
  19393. #include <stdlib.h>
  19394. #include <string.h>
  19395. #include "$LPCAPINC"
  19396. extern char pcap_version[];
  19397. int
  19398. main ()
  19399. {
  19400. printf("%s", pcap_version);
  19401. ;
  19402. return 0;
  19403. }
  19404. _ACEOF
  19405. if ac_fn_c_try_link "$LINENO"; then :
  19406. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19408. $as_echo "yes" >&6; }
  19409. else
  19410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19411. $as_echo "no" >&6; }
  19412. fi
  19413. rm -f core conftest.err conftest.$ac_objext \
  19414. conftest$ac_exeext conftest.$ac_ext
  19415. have_pcap_snapshot=no
  19416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19417. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19419. /* end confdefs.h. */
  19420. #include <stdio.h>
  19421. #include <stdlib.h>
  19422. #include <string.h>
  19423. #include "$LPCAPINC"
  19424. int
  19425. main ()
  19426. {
  19427. pcap_t *p;
  19428. int len;
  19429. len = pcap_snapshot(p);
  19430. exit(0);
  19431. ;
  19432. return 0;
  19433. }
  19434. _ACEOF
  19435. if ac_fn_c_try_link "$LINENO"; then :
  19436. have_pcap_snapshot=yes
  19437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19438. $as_echo "yes" >&6; }
  19439. else
  19440. have_pcap_snapshot=no
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19442. $as_echo "no" >&6; }
  19443. fi
  19444. rm -f core conftest.err conftest.$ac_objext \
  19445. conftest$ac_exeext conftest.$ac_ext
  19446. if test $have_pcap_snapshot = yes ; then
  19447. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19448. fi
  19449. # Tcpbridge requires libpcap and pcap_sendpacket()
  19450. enable_tcpbridge=no
  19451. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19452. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19453. if test x$have_bpf = xno; then
  19454. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19455. enable_tcpbridge=yes
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19457. $as_echo "$as_me: Building tcpbridge" >&6;}
  19458. # BPF systems need to also have pcap_setnonblock()
  19459. elif test x$have_pcap_setnonblock = xyes ; then
  19460. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19461. enable_tcpbridge=yes
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19463. $as_echo "$as_me: Building tcpbridge" >&6;}
  19464. else
  19465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19466. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19467. fi
  19468. fi
  19469. if test x$enable_tcpbridge = xyes ; then
  19470. COMPILE_TCPBRIDGE_TRUE=
  19471. COMPILE_TCPBRIDGE_FALSE='#'
  19472. else
  19473. COMPILE_TCPBRIDGE_TRUE='#'
  19474. COMPILE_TCPBRIDGE_FALSE=
  19475. fi
  19476. # tcpliveplay requires linux OS to function properly
  19477. enable_tcpliveplay=no
  19478. case $host in
  19479. *-*-linux*)
  19480. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19481. enable_tcpliveplay=yes
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19483. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19484. ;;
  19485. *)
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19487. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19488. ;;
  19489. esac
  19490. if test x$enable_tcpliveplay = xyes ; then
  19491. COMPILE_TCPLIVEPLAY_TRUE=
  19492. COMPILE_TCPLIVEPLAY_FALSE='#'
  19493. else
  19494. COMPILE_TCPLIVEPLAY_TRUE='#'
  19495. COMPILE_TCPLIVEPLAY_FALSE=
  19496. fi
  19497. have_netmap=no
  19498. enable_netmap=no
  19499. trynetmapdir=
  19500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19501. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19502. # Check whether --with-netmap was given.
  19503. if test "${with_netmap+set}" = set; then :
  19504. withval=$with_netmap; trynetmapdir=$withval
  19505. fi
  19506. NETMAP_SEARCH_DIRS=
  19507. if test "$cross_compiling" = yes; then
  19508. if test "x$trynetmapdir" != "x"; then
  19509. NETMAP_SEARCH_DIRS=$trynetmapdir
  19510. fi
  19511. else
  19512. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include"
  19513. fi
  19514. for testdir in $NETMAP_SEARCH_DIRS; do
  19515. if test -f "${testdir}/sys/net/netmap.h" ; then
  19516. NETMAPINC="${testdir}/sys/net/netmap.h"
  19517. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19518. NETMAPINCDIR="${testdir}/sys"
  19519. have_netmap="yes $testdir"
  19520. enable_netmap=yes
  19521. else
  19522. if test -f "${testdir}/net/netmap.h" ; then
  19523. NETMAPINC="${testdir}/net/netmap.h"
  19524. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19525. NETMAPINCDIR="${testdir}"
  19526. have_netmap="yes $testdir"
  19527. enable_netmap=yes
  19528. fi
  19529. fi
  19530. if test "$have_netmap" != no ; then
  19531. NETMAPFLAGS="-DHAVE_NETMAP"
  19532. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19533. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19534. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19535. have_netmap="yes $testdir"
  19536. enable_netmap=yes
  19537. break;
  19538. fi
  19539. done
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19541. $as_echo "$have_netmap" >&6; }
  19542. if test x$enable_netmap = xyes ; then
  19543. COMPILE_NETMAP_TRUE=
  19544. COMPILE_NETMAP_FALSE='#'
  19545. else
  19546. COMPILE_NETMAP_TRUE='#'
  19547. COMPILE_NETMAP_FALSE=
  19548. fi
  19549. if test "x$NETMAPINCDIR" != "x"; then
  19550. OLDCPPFLAGS="$CPPFLAGS"
  19551. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19552. have_nm_open=no
  19553. have_nm_nr_reg_mask=no
  19554. have_nm_nr_flags=no
  19555. have_nmring_head_tail=no
  19556. if test "$have_netmap" != no ; then
  19557. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19558. #include <stdio.h>
  19559. #include \"${NETMAPUSERINC}\"
  19560. "
  19561. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19562. have_nm_open=yes
  19563. fi
  19564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19565. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19567. /* end confdefs.h. */
  19568. #include <stdint.h>
  19569. #include <sys/socket.h>
  19570. #include <net/if.h>
  19571. #include <net/netmap.h>
  19572. int
  19573. main ()
  19574. {
  19575. #ifdef NR_REG_MASK
  19576. /* OK */
  19577. #else
  19578. # error NR_REG_MASK not found
  19579. #endif
  19580. ;
  19581. return 0;
  19582. }
  19583. _ACEOF
  19584. if ac_fn_c_try_compile "$LINENO"; then :
  19585. have_nm_nr_reg_mask=yes
  19586. fi
  19587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19589. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19591. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19593. /* end confdefs.h. */
  19594. #include <stdint.h>
  19595. #include <sys/socket.h>
  19596. #include <net/if.h>
  19597. #include <net/netmap.h>
  19598. int
  19599. main ()
  19600. {
  19601. struct nmreq nmr;
  19602. nmr.nr_flags = 0;
  19603. ;
  19604. return 0;
  19605. }
  19606. _ACEOF
  19607. if ac_fn_c_try_compile "$LINENO"; then :
  19608. have_nm_nr_flags=yes
  19609. fi
  19610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19612. $as_echo "$have_nm_nr_flags" >&6; }
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19614. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19616. /* end confdefs.h. */
  19617. #include <stdint.h>
  19618. #include <sys/socket.h>
  19619. #include <net/if.h>
  19620. #include <net/netmap.h>
  19621. int
  19622. main ()
  19623. {
  19624. struct netmap_ring r;
  19625. r.head = r.tail = 0;
  19626. ;
  19627. return 0;
  19628. }
  19629. _ACEOF
  19630. if ac_fn_c_try_compile "$LINENO"; then :
  19631. have_nmring_head_tail=yes
  19632. fi
  19633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19635. $as_echo "$have_nmring_head_tail" >&6; }
  19636. fi
  19637. if test "$have_nm_open" = yes ; then
  19638. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19639. fi
  19640. if test "$have_nm_nr_reg_mask" = yes ; then
  19641. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19642. fi
  19643. if test "$have_nm_nr_flags" = yes ; then
  19644. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19645. fi
  19646. if test "$have_nmring_head_tail" = yes ; then
  19647. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19648. fi
  19649. CPPFLAGS="$OLDCPPFLAGS"
  19650. fi
  19651. have_pf=no
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19653. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19655. /* end confdefs.h. */
  19656. #include <sys/socket.h>
  19657. #include <netpacket/packet.h>
  19658. #include <net/ethernet.h> /* the L2 protocols */
  19659. #include <netinet/in.h> /* htons */
  19660. int
  19661. main ()
  19662. {
  19663. int pf_socket;
  19664. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19665. ;
  19666. return 0;
  19667. }
  19668. _ACEOF
  19669. if ac_fn_c_try_compile "$LINENO"; then :
  19670. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19672. $as_echo "yes" >&6; }
  19673. have_pf=yes
  19674. else
  19675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19676. $as_echo "no" >&6; }
  19677. fi
  19678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19679. have_tx_ring=no
  19680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19681. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19683. /* end confdefs.h. */
  19684. #include <sys/socket.h>
  19685. #include <netpacket/packet.h>
  19686. #include <net/ethernet.h> /* the L2 protocols */
  19687. #include <netinet/in.h> /* htons */
  19688. #include <linux/if_packet.h>
  19689. int
  19690. main ()
  19691. {
  19692. int test;
  19693. test = TP_STATUS_WRONG_FORMAT
  19694. ;
  19695. return 0;
  19696. }
  19697. _ACEOF
  19698. if ac_fn_c_try_compile "$LINENO"; then :
  19699. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19701. $as_echo "yes" >&6; }
  19702. have_tx_ring=yes
  19703. else
  19704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19705. $as_echo "no" >&6; }
  19706. fi
  19707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19708. for ac_header in net/bpf.h
  19709. do :
  19710. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  19711. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  19712. cat >>confdefs.h <<_ACEOF
  19713. #define HAVE_NET_BPF_H 1
  19714. _ACEOF
  19715. have_bpf=yes
  19716. else
  19717. have_bpf=no
  19718. fi
  19719. done
  19720. if test $have_bpf = yes ; then
  19721. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  19722. fi
  19723. founddnet=no
  19724. have_libdnet=no
  19725. libdnet_version=
  19726. enable_fragroute=no
  19727. trydnetdir=/usr/local
  19728. if test $have_cygwin = no ; then
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  19730. $as_echo_n "checking for libdnet... " >&6; }
  19731. # Check whether --with-libdnet was given.
  19732. if test "${with_libdnet+set}" = set; then :
  19733. withval=$with_libdnet; trydnetdir=$withval
  19734. fi
  19735. if test $trydnetdir != no; then
  19736. case "$build_os" in
  19737. linux*)
  19738. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19739. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  19740. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  19741. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  19742. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  19743. founddnet=$testdir
  19744. fi
  19745. done
  19746. ;;
  19747. esac
  19748. if test $founddnet = no ; then
  19749. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  19750. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19751. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  19752. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  19753. libdnet_version="$($testdir/bin/dnet-config --version)"
  19754. founddnet=$testdir
  19755. fi
  19756. done
  19757. fi
  19758. fi
  19759. if test $founddnet = no ; then
  19760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19761. $as_echo "no" >&6; }
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  19763. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19764. else
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  19766. $as_echo "$founddnet" >&6; }
  19767. enable_fragroute=yes
  19768. have_libdnet=yes
  19769. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  19770. old_cflags=$CFLAGS
  19771. CFLAGS=$LDNETINC
  19772. for ac_header in dumbnet.h dnet.h
  19773. do :
  19774. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19775. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19776. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19777. cat >>confdefs.h <<_ACEOF
  19778. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19779. _ACEOF
  19780. fi
  19781. done
  19782. CFLAGS=$old_cflags
  19783. fi
  19784. else
  19785. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19786. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19787. fi
  19788. cat >>confdefs.h <<_ACEOF
  19789. #define LIBDNET_VERSION "$libdnet_version"
  19790. _ACEOF
  19791. if test x$founddnet != xno; then
  19792. COMPILE_FRAGROUTE_TRUE=
  19793. COMPILE_FRAGROUTE_FALSE='#'
  19794. else
  19795. COMPILE_FRAGROUTE_TRUE='#'
  19796. COMPILE_FRAGROUTE_FALSE=
  19797. fi
  19798. if test x$founddnet != xno ; then
  19799. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  19800. fi
  19801. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19802. -a $have_libdnet = no -a $have_pf = no ; then
  19803. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  19804. fi
  19805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  19806. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19808. /* end confdefs.h. */
  19809. #include "$LPCAPINC"
  19810. int
  19811. main ()
  19812. {
  19813. int foo;
  19814. foo = DLT_LINUX_SLL
  19815. ;
  19816. return 0;
  19817. }
  19818. _ACEOF
  19819. if ac_fn_c_try_compile "$LINENO"; then :
  19820. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  19821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19822. $as_echo "yes" >&6; }
  19823. else
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19825. $as_echo "no" >&6; }
  19826. fi
  19827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  19829. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19831. /* end confdefs.h. */
  19832. #include "$LPCAPINC"
  19833. int
  19834. main ()
  19835. {
  19836. int foo;
  19837. foo = DLT_C_HDLC
  19838. ;
  19839. return 0;
  19840. }
  19841. _ACEOF
  19842. if ac_fn_c_try_compile "$LINENO"; then :
  19843. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19845. $as_echo "yes" >&6; }
  19846. else
  19847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19848. $as_echo "no" >&6; }
  19849. fi
  19850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19851. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  19853. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19855. /* end confdefs.h. */
  19856. #include <sys/types.h>
  19857. #include <sys/time.h>
  19858. #include <stdint.h>
  19859. #include "$PCAP_BPF_H_FILE"
  19860. int
  19861. main ()
  19862. {
  19863. int foo;
  19864. foo = BPF_MAJOR_VERSION;
  19865. ;
  19866. return 0;
  19867. }
  19868. _ACEOF
  19869. if ac_fn_c_try_compile "$LINENO"; then :
  19870. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19872. $as_echo "yes" >&6; }
  19873. else
  19874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19875. $as_echo "no" >&6; }
  19876. fi
  19877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19878. foundbpfheader=no
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  19880. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19881. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19882. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19884. /* end confdefs.h. */
  19885. #include <sys/types.h>
  19886. #include <sys/time.h>
  19887. #include <stdint.h>
  19888. #include "$testfile"
  19889. int
  19890. main ()
  19891. {
  19892. int foo;
  19893. foo = BPF_MAJOR_VERSION;
  19894. ;
  19895. return 0;
  19896. }
  19897. _ACEOF
  19898. if ac_fn_c_try_compile "$LINENO"; then :
  19899. foundbpfheader=yes
  19900. PCAP_BPF_H_FILE=$testfile
  19901. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19902. fi
  19903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19904. fi
  19905. done
  19906. if test $foundbpfheader != no; then
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  19908. $as_echo "$testfile" >&6; }
  19909. else
  19910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19911. $as_echo "no" >&6; }
  19912. fi
  19913. have_pcap_netmap=no
  19914. if test $foundpcap != no ; then
  19915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  19916. $as_echo_n "checking for netmap libpcap... " >&6; }
  19917. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  19918. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  19919. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  19920. have_pcap_netmap=yes
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19922. $as_echo "yes" >&6; }
  19923. else
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19925. $as_echo "no" >&6; }
  19926. fi
  19927. fi
  19928. LIBS="$OLDLIBS"
  19929. CFLAGS="$OLDCFLAGS"
  19930. pcapnav_ver=no
  19931. pcncfg=no
  19932. # Check whether --with-pcapnav-config was given.
  19933. if test "${with_pcapnav_config+set}" = set; then :
  19934. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  19935. $as_echo_n "checking for pcapnav-config... " >&6; }
  19936. if test -x $withval ; then
  19937. pcncfg=$withval
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19939. $as_echo "$pcncfg" >&6; }
  19940. elif test x$withval = xno ; then
  19941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19942. $as_echo "no" >&6; }
  19943. else
  19944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19945. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19946. fi
  19947. else
  19948. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19949. set dummy pcapnav-config; ac_word=$2
  19950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19951. $as_echo_n "checking for $ac_word... " >&6; }
  19952. if ${ac_cv_path_pcncfg+:} false; then :
  19953. $as_echo_n "(cached) " >&6
  19954. else
  19955. case $pcncfg in
  19956. [\\/]* | ?:[\\/]*)
  19957. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19958. ;;
  19959. *)
  19960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19961. for as_dir in $PATH
  19962. do
  19963. IFS=$as_save_IFS
  19964. test -z "$as_dir" && as_dir=.
  19965. for ac_exec_ext in '' $ac_executable_extensions; do
  19966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19967. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19969. break 2
  19970. fi
  19971. done
  19972. done
  19973. IFS=$as_save_IFS
  19974. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19975. ;;
  19976. esac
  19977. fi
  19978. pcncfg=$ac_cv_path_pcncfg
  19979. if test -n "$pcncfg"; then
  19980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19981. $as_echo "$pcncfg" >&6; }
  19982. else
  19983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19984. $as_echo "no" >&6; }
  19985. fi
  19986. fi
  19987. if test $pcncfg != no ; then
  19988. LNAVLIB=$($pcncfg --libs)
  19989. LNAV_CFLAGS=$($pcncfg --cflags)
  19990. PCAPNAV_VERSION=$($pcncfg --version)
  19991. cat >>confdefs.h <<_ACEOF
  19992. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  19993. _ACEOF
  19994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  19995. $as_echo_n "checking for libpcapnav version... " >&6; }
  19996. if test "$cross_compiling" = yes; then :
  19997. libpcapnav_ver=no
  19998. else
  19999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20000. /* end confdefs.h. */
  20001. #include <string.h>
  20002. #define PCAPNAV_TEST "0.4"
  20003. /*
  20004. * simple proggy to test the version of libpcapnav
  20005. * returns zero if version >= 0.4
  20006. * or one otherwise
  20007. */
  20008. int
  20009. main (int argc, char *argv[])
  20010. {
  20011. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20012. exit(0);
  20013. exit(1);
  20014. }
  20015. _ACEOF
  20016. if ac_fn_c_try_run "$LINENO"; then :
  20017. libpcapnav_ver=yes
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20019. $as_echo ">= 0.4" >&6; }
  20020. else
  20021. libpcapnav_ver=no
  20022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20023. $as_echo "< 0.4" >&6; }
  20024. fi
  20025. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20026. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20027. fi
  20028. if test x$libpcapnav_ver = xno ; then
  20029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20030. Please upgrade to version 0.4 or better.
  20031. Disabling offset jump feature." >&5
  20032. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20033. Please upgrade to version 0.4 or better.
  20034. Disabling offset jump feature." >&2;}
  20035. else
  20036. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20037. fi
  20038. fi # checking pcapnav version
  20039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  20040. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  20041. if ${unaligned_cv_fail+:} false; then :
  20042. $as_echo_n "(cached) " >&6
  20043. else
  20044. case "$host_cpu" in
  20045. # XXX: should also check that they don't do weird things (like on arm)
  20046. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20047. unaligned_cv_fail=yes
  20048. ;;
  20049. *)
  20050. cat >conftest.c <<EOF
  20051. #include <sys/types.h>
  20052. #include <sys/wait.h>
  20053. #include <stdio.h>
  20054. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20055. main() {
  20056. unsigned int i;
  20057. pid_t pid;
  20058. int status;
  20059. /* avoid "core dumped" message */
  20060. pid = fork();
  20061. if (pid < 0)
  20062. exit(2);
  20063. if (pid > 0) {
  20064. /* parent */
  20065. pid = waitpid(pid, &status, 0);
  20066. if (pid < 0)
  20067. exit(3);
  20068. exit(!WIFEXITED(status));
  20069. }
  20070. /* child */
  20071. i = *(unsigned int *)&a[1];
  20072. printf("%d\n", i);
  20073. exit(0);
  20074. }
  20075. EOF
  20076. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20077. conftest.c $LIBS >/dev/null 2>&1
  20078. if test ! -x conftest ; then
  20079. unaligned_cv_fail=yes
  20080. else
  20081. ./conftest >conftest.out
  20082. if test ! -s conftest.out ; then
  20083. unaligned_cv_fail=yes
  20084. else
  20085. unaligned_cv_fail=no
  20086. fi
  20087. fi
  20088. rm -f conftest* core core.conftest
  20089. ;;
  20090. esac
  20091. fi
  20092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20093. $as_echo "$unaligned_cv_fail" >&6; }
  20094. if test $unaligned_cv_fail = yes ; then
  20095. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20096. fi
  20097. tcpdump_path=no
  20098. # Check whether --with-tcpdump was given.
  20099. if test "${with_tcpdump+set}" = set; then :
  20100. withval=$with_tcpdump; if test -x $withval ; then
  20101. tcpdump_path=$withval
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20103. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20104. else
  20105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20106. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20107. fi
  20108. else
  20109. # Extract the first word of "tcpdump", so it can be a program name with args.
  20110. set dummy tcpdump; ac_word=$2
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20112. $as_echo_n "checking for $ac_word... " >&6; }
  20113. if ${ac_cv_path_tcpdump_path+:} false; then :
  20114. $as_echo_n "(cached) " >&6
  20115. else
  20116. case $tcpdump_path in
  20117. [\\/]* | ?:[\\/]*)
  20118. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20119. ;;
  20120. *)
  20121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20122. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20123. for as_dir in $as_dummy
  20124. do
  20125. IFS=$as_save_IFS
  20126. test -z "$as_dir" && as_dir=.
  20127. for ac_exec_ext in '' $ac_executable_extensions; do
  20128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20129. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20131. break 2
  20132. fi
  20133. done
  20134. done
  20135. IFS=$as_save_IFS
  20136. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20137. ;;
  20138. esac
  20139. fi
  20140. tcpdump_path=$ac_cv_path_tcpdump_path
  20141. if test -n "$tcpdump_path"; then
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20143. $as_echo "$tcpdump_path" >&6; }
  20144. else
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20146. $as_echo "no" >&6; }
  20147. fi
  20148. fi
  20149. if test "$tcpdump_path" = "no"; then
  20150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20151. Disabling --verbose" >&5
  20152. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20153. Disabling --verbose" >&2;}
  20154. else
  20155. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20156. cat >>confdefs.h <<_ACEOF
  20157. #define TCPDUMP_BINARY "$tcpdump_path"
  20158. _ACEOF
  20159. fi
  20160. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20161. ENABLE_TCPDUMP_TRUE=
  20162. ENABLE_TCPDUMP_FALSE='#'
  20163. else
  20164. ENABLE_TCPDUMP_TRUE='#'
  20165. ENABLE_TCPDUMP_FALSE=
  20166. fi
  20167. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20168. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20169. else
  20170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20171. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20172. fi
  20173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20174. $as_echo_n "checking for 'make test' profile... " >&6; }
  20175. if test "$host" == "$build" ; then
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20177. $as_echo "yes" >&6; }
  20178. else
  20179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20180. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20182. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20183. fi
  20184. # Check whether --with-testnic was given.
  20185. if test "${with_testnic+set}" = set; then :
  20186. withval=$with_testnic; nic1=$withval
  20187. nic2=$withval
  20188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20189. $as_echo "Using --with-testnic=$withval" >&6; }
  20190. else
  20191. case $host in
  20192. *-*-linux*)
  20193. nic1=eth0
  20194. nic2=eth0
  20195. ;;
  20196. *-*-solaris*)
  20197. nic1=hme0
  20198. nic2=hme0
  20199. ;;
  20200. *-*-sunos*)
  20201. nic1=hme0
  20202. nic2=hme0
  20203. ;;
  20204. *-apple-darwin*)
  20205. nic1=en0
  20206. nic2=en0
  20207. ;;
  20208. *-*-openbsd*)
  20209. nic1=xl0
  20210. nic2=xl0
  20211. ;;
  20212. *-*-freebsd*)
  20213. nic1=em0
  20214. nic2=em0
  20215. ;;
  20216. *-*-cygwin)
  20217. nic1=%0
  20218. nic2=%0
  20219. ;;
  20220. *)
  20221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20222. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20223. nic1=%0
  20224. nic2=%0
  20225. ;;
  20226. esac
  20227. fi
  20228. disable_pcap_findalldevs=no
  20229. osx_frameworks=no
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20231. $as_echo_n "checking for OS version... " >&6; }
  20232. case $host in
  20233. *-*-linux*)
  20234. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20236. $as_echo "Linux" >&6; }
  20237. ;;
  20238. *-*-solaris*)
  20239. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20241. $as_echo "Solaris" >&6; }
  20242. ;;
  20243. *-*-sunos*)
  20244. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20246. $as_echo "SunOS" >&6; }
  20247. ;;
  20248. *-apple-darwin*)
  20249. if test x$libpcap_version_096 = xno ; then
  20250. disable_pcap_findalldevs=yes
  20251. fi
  20252. osx_frameworks=yes
  20253. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20255. $as_echo "Apple macOS" >&6; }
  20256. ;;
  20257. *-*-openbsd*)
  20258. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20260. $as_echo "OpenBSD" >&6; }
  20261. ;;
  20262. *-*-freebsd*)
  20263. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20265. $as_echo "FreeBSD" >&6; }
  20266. ;;
  20267. *-*-cygwin)
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20269. $as_echo "Win32/Cygwin" >&6; }
  20270. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20271. ;;
  20272. *)
  20273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20274. $as_echo "$host is unknown!" >&6; }
  20275. ;;
  20276. esac
  20277. if test "$osx_frameworks" = "yes"; then
  20278. ENABLE_OSX_FRAMEWORKS_TRUE=
  20279. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20280. else
  20281. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20282. ENABLE_OSX_FRAMEWORKS_FALSE=
  20283. fi
  20284. # Check whether --with-testnic2 was given.
  20285. if test "${with_testnic2+set}" = set; then :
  20286. withval=$with_testnic2; nic2=$withval
  20287. fi
  20288. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20289. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20290. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20291. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20293. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20294. if test x$disable_pcap_findalldevs = xno ; then
  20295. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20297. $as_echo "yes" >&6; }
  20298. else
  20299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20300. $as_echo "no" >&6; }
  20301. fi
  20302. ac_header_dirent=no
  20303. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20304. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20306. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20307. if eval \${$as_ac_Header+:} false; then :
  20308. $as_echo_n "(cached) " >&6
  20309. else
  20310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20311. /* end confdefs.h. */
  20312. #include <sys/types.h>
  20313. #include <$ac_hdr>
  20314. int
  20315. main ()
  20316. {
  20317. if ((DIR *) 0)
  20318. return 0;
  20319. ;
  20320. return 0;
  20321. }
  20322. _ACEOF
  20323. if ac_fn_c_try_compile "$LINENO"; then :
  20324. eval "$as_ac_Header=yes"
  20325. else
  20326. eval "$as_ac_Header=no"
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20329. fi
  20330. eval ac_res=\$$as_ac_Header
  20331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20332. $as_echo "$ac_res" >&6; }
  20333. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20334. cat >>confdefs.h <<_ACEOF
  20335. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20336. _ACEOF
  20337. ac_header_dirent=$ac_hdr; break
  20338. fi
  20339. done
  20340. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20341. if test $ac_header_dirent = dirent.h; then
  20342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20343. $as_echo_n "checking for library containing opendir... " >&6; }
  20344. if ${ac_cv_search_opendir+:} false; then :
  20345. $as_echo_n "(cached) " >&6
  20346. else
  20347. ac_func_search_save_LIBS=$LIBS
  20348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20349. /* end confdefs.h. */
  20350. /* Override any GCC internal prototype to avoid an error.
  20351. Use char because int might match the return type of a GCC
  20352. builtin and then its argument prototype would still apply. */
  20353. #ifdef __cplusplus
  20354. extern "C"
  20355. #endif
  20356. char opendir ();
  20357. int
  20358. main ()
  20359. {
  20360. return opendir ();
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. for ac_lib in '' dir; do
  20366. if test -z "$ac_lib"; then
  20367. ac_res="none required"
  20368. else
  20369. ac_res=-l$ac_lib
  20370. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20371. fi
  20372. if ac_fn_c_try_link "$LINENO"; then :
  20373. ac_cv_search_opendir=$ac_res
  20374. fi
  20375. rm -f core conftest.err conftest.$ac_objext \
  20376. conftest$ac_exeext
  20377. if ${ac_cv_search_opendir+:} false; then :
  20378. break
  20379. fi
  20380. done
  20381. if ${ac_cv_search_opendir+:} false; then :
  20382. else
  20383. ac_cv_search_opendir=no
  20384. fi
  20385. rm conftest.$ac_ext
  20386. LIBS=$ac_func_search_save_LIBS
  20387. fi
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20389. $as_echo "$ac_cv_search_opendir" >&6; }
  20390. ac_res=$ac_cv_search_opendir
  20391. if test "$ac_res" != no; then :
  20392. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20393. fi
  20394. else
  20395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20396. $as_echo_n "checking for library containing opendir... " >&6; }
  20397. if ${ac_cv_search_opendir+:} false; then :
  20398. $as_echo_n "(cached) " >&6
  20399. else
  20400. ac_func_search_save_LIBS=$LIBS
  20401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20402. /* end confdefs.h. */
  20403. /* Override any GCC internal prototype to avoid an error.
  20404. Use char because int might match the return type of a GCC
  20405. builtin and then its argument prototype would still apply. */
  20406. #ifdef __cplusplus
  20407. extern "C"
  20408. #endif
  20409. char opendir ();
  20410. int
  20411. main ()
  20412. {
  20413. return opendir ();
  20414. ;
  20415. return 0;
  20416. }
  20417. _ACEOF
  20418. for ac_lib in '' x; do
  20419. if test -z "$ac_lib"; then
  20420. ac_res="none required"
  20421. else
  20422. ac_res=-l$ac_lib
  20423. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20424. fi
  20425. if ac_fn_c_try_link "$LINENO"; then :
  20426. ac_cv_search_opendir=$ac_res
  20427. fi
  20428. rm -f core conftest.err conftest.$ac_objext \
  20429. conftest$ac_exeext
  20430. if ${ac_cv_search_opendir+:} false; then :
  20431. break
  20432. fi
  20433. done
  20434. if ${ac_cv_search_opendir+:} false; then :
  20435. else
  20436. ac_cv_search_opendir=no
  20437. fi
  20438. rm conftest.$ac_ext
  20439. LIBS=$ac_func_search_save_LIBS
  20440. fi
  20441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20442. $as_echo "$ac_cv_search_opendir" >&6; }
  20443. ac_res=$ac_cv_search_opendir
  20444. if test "$ac_res" != no; then :
  20445. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20446. fi
  20447. fi
  20448. # =================
  20449. # AC_CHECK_HEADERS
  20450. # =================
  20451. for ac_header in \
  20452. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20453. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20454. sys/un.h sys/wait.h dlfcn.h errno.h \
  20455. fcntl.h libgen.h libintl.h memory.h \
  20456. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20457. unistd.h utime.h
  20458. do :
  20459. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20460. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20461. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20462. cat >>confdefs.h <<_ACEOF
  20463. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20464. _ACEOF
  20465. fi
  20466. done
  20467. for ac_header in stdarg.h varargs.h
  20468. do :
  20469. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20470. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20471. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20472. cat >>confdefs.h <<_ACEOF
  20473. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20474. _ACEOF
  20475. lo_have_arg_hdr=true;break
  20476. else
  20477. lo_have_arg_hdr=false
  20478. fi
  20479. done
  20480. for ac_header in string.h strings.h
  20481. do :
  20482. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20483. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20484. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20485. cat >>confdefs.h <<_ACEOF
  20486. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20487. _ACEOF
  20488. lo_have_str_hdr=true;break
  20489. else
  20490. lo_have_str_hdr=false
  20491. fi
  20492. done
  20493. for ac_header in limits.h sys/limits.h values.h
  20494. do :
  20495. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20496. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20497. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20498. cat >>confdefs.h <<_ACEOF
  20499. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20500. _ACEOF
  20501. lo_have_lim_hdr=true;break
  20502. else
  20503. lo_have_lim_hdr=false
  20504. fi
  20505. done
  20506. for ac_header in inttypes.h stdint.h
  20507. do :
  20508. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20509. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20510. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20511. cat >>confdefs.h <<_ACEOF
  20512. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20513. _ACEOF
  20514. lo_have_typ_hdr=true;break
  20515. else
  20516. lo_have_typ_hdr=false
  20517. fi
  20518. done
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20520. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20521. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20522. $as_echo_n "(cached) " >&6
  20523. else
  20524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20525. /* end confdefs.h. */
  20526. #include <stdlib.h>
  20527. #include <stdnoreturn.h>
  20528. /* Do not check for 'noreturn' after the return type.
  20529. C11 allows it, but it's rarely done that way
  20530. and circa-2012 bleeding-edge GCC rejects it when given
  20531. -Werror=old-style-declaration. */
  20532. noreturn void foo1 (void) { exit (0); }
  20533. _Noreturn void foo2 (void) { exit (0); }
  20534. int testit (int argc, char **argv) {
  20535. if (argc & 1)
  20536. return 0;
  20537. (argv[0][0] ? foo1 : foo2) ();
  20538. }
  20539. int
  20540. main ()
  20541. {
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. if ac_fn_c_try_compile "$LINENO"; then :
  20547. gl_cv_header_working_stdnoreturn_h=yes
  20548. else
  20549. gl_cv_header_working_stdnoreturn_h=no
  20550. fi
  20551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20552. fi
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20554. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20555. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20556. STDNORETURN_H=''
  20557. else
  20558. STDNORETURN_H='stdnoreturn.h'
  20559. fi
  20560. if test -n "$STDNORETURN_H"; then
  20561. GL_GENERATE_STDNORETURN_H_TRUE=
  20562. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20563. else
  20564. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20565. GL_GENERATE_STDNORETURN_H_FALSE=
  20566. fi
  20567. # ----------------------------------------------------------------------
  20568. # check for various programs used during the build.
  20569. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20570. # ----------------------------------------------------------------------
  20571. for ac_header in runetype.h wchar.h
  20572. do :
  20573. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20574. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20575. $ac_includes_default
  20576. #if HAVE_RUNETYPE_H
  20577. # include <runetype.h>
  20578. #endif
  20579. "
  20580. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20581. cat >>confdefs.h <<_ACEOF
  20582. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20583. _ACEOF
  20584. fi
  20585. done
  20586. # Check whether --enable-nls was given.
  20587. if test "${enable_nls+set}" = set; then :
  20588. enableval=$enable_nls;
  20589. fi
  20590. if test "x$enable_nls" != "xno" && \
  20591. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20592. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20593. fi
  20594. # --------------------------------------------
  20595. # Verify certain entries from AC_CHECK_HEADERS
  20596. # --------------------------------------------
  20597. ${lo_have_arg_hdr} || \
  20598. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20599. ${lo_have_str_hdr} || \
  20600. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20601. ${lo_have_lim_hdr} || \
  20602. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20603. ${lo_have_typ_hdr} || \
  20604. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20605. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20606. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20607. test "X${as_ac_var}" = Xyes || {
  20608. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20609. }
  20610. done
  20611. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20612. echo '#include <stdint.h>' > inttypes.h
  20613. # ----------------------------------------------------------------------
  20614. # Checks for typedefs
  20615. # ----------------------------------------------------------------------
  20616. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20617. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20618. cat >>confdefs.h <<_ACEOF
  20619. #define HAVE_WCHAR_T 1
  20620. _ACEOF
  20621. fi
  20622. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20623. $ac_includes_default
  20624. #if HAVE_RUNETYPE_H
  20625. # include <runetype.h>
  20626. #endif
  20627. #if HAVE_WCHAR_H
  20628. # include <wchar.h>
  20629. #endif
  20630. "
  20631. if test "x$ac_cv_type_wint_t" = xyes; then :
  20632. cat >>confdefs.h <<_ACEOF
  20633. #define HAVE_WINT_T 1
  20634. _ACEOF
  20635. fi
  20636. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20637. if test "x$ac_cv_type_int8_t" = xyes; then :
  20638. cat >>confdefs.h <<_ACEOF
  20639. #define HAVE_INT8_T 1
  20640. _ACEOF
  20641. fi
  20642. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20643. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20644. cat >>confdefs.h <<_ACEOF
  20645. #define HAVE_UINT8_T 1
  20646. _ACEOF
  20647. fi
  20648. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20649. if test "x$ac_cv_type_int16_t" = xyes; then :
  20650. cat >>confdefs.h <<_ACEOF
  20651. #define HAVE_INT16_T 1
  20652. _ACEOF
  20653. fi
  20654. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  20655. if test "x$ac_cv_type_uint16_t" = xyes; then :
  20656. cat >>confdefs.h <<_ACEOF
  20657. #define HAVE_UINT16_T 1
  20658. _ACEOF
  20659. fi
  20660. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  20661. if test "x$ac_cv_type_int32_t" = xyes; then :
  20662. cat >>confdefs.h <<_ACEOF
  20663. #define HAVE_INT32_T 1
  20664. _ACEOF
  20665. fi
  20666. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  20667. if test "x$ac_cv_type_uint32_t" = xyes; then :
  20668. cat >>confdefs.h <<_ACEOF
  20669. #define HAVE_UINT32_T 1
  20670. _ACEOF
  20671. fi
  20672. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  20673. if test "x$ac_cv_type_intptr_t" = xyes; then :
  20674. cat >>confdefs.h <<_ACEOF
  20675. #define HAVE_INTPTR_T 1
  20676. _ACEOF
  20677. fi
  20678. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  20679. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  20680. cat >>confdefs.h <<_ACEOF
  20681. #define HAVE_UINTPTR_T 1
  20682. _ACEOF
  20683. fi
  20684. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  20685. if test "x$ac_cv_type_uint_t" = xyes; then :
  20686. cat >>confdefs.h <<_ACEOF
  20687. #define HAVE_UINT_T 1
  20688. _ACEOF
  20689. fi
  20690. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  20691. if test "x$ac_cv_type_pid_t" = xyes; then :
  20692. cat >>confdefs.h <<_ACEOF
  20693. #define HAVE_PID_T 1
  20694. _ACEOF
  20695. fi
  20696. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20697. if test "x$ac_cv_type_size_t" = xyes; then :
  20698. cat >>confdefs.h <<_ACEOF
  20699. #define HAVE_SIZE_T 1
  20700. _ACEOF
  20701. fi
  20702. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  20703. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  20704. cat >>confdefs.h <<_ACEOF
  20705. #define HAVE_PTRDIFF_T 1
  20706. _ACEOF
  20707. fi
  20708. # The cast to long int works around a bug in the HP C Compiler
  20709. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20710. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20711. # This bug is HP SR number 8606223364.
  20712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  20713. $as_echo_n "checking size of char *... " >&6; }
  20714. if ${ac_cv_sizeof_char_p+:} false; then :
  20715. $as_echo_n "(cached) " >&6
  20716. else
  20717. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  20718. else
  20719. if test "$ac_cv_type_char_p" = yes; then
  20720. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20721. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20722. as_fn_error 77 "cannot compute sizeof (char *)
  20723. See \`config.log' for more details" "$LINENO" 5; }
  20724. else
  20725. ac_cv_sizeof_char_p=0
  20726. fi
  20727. fi
  20728. fi
  20729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  20730. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  20731. cat >>confdefs.h <<_ACEOF
  20732. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  20733. _ACEOF
  20734. # The cast to long int works around a bug in the HP C Compiler
  20735. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20736. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20737. # This bug is HP SR number 8606223364.
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  20739. $as_echo_n "checking size of int... " >&6; }
  20740. if ${ac_cv_sizeof_int+:} false; then :
  20741. $as_echo_n "(cached) " >&6
  20742. else
  20743. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  20744. else
  20745. if test "$ac_cv_type_int" = yes; then
  20746. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20747. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20748. as_fn_error 77 "cannot compute sizeof (int)
  20749. See \`config.log' for more details" "$LINENO" 5; }
  20750. else
  20751. ac_cv_sizeof_int=0
  20752. fi
  20753. fi
  20754. fi
  20755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  20756. $as_echo "$ac_cv_sizeof_int" >&6; }
  20757. cat >>confdefs.h <<_ACEOF
  20758. #define SIZEOF_INT $ac_cv_sizeof_int
  20759. _ACEOF
  20760. # The cast to long int works around a bug in the HP C Compiler
  20761. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20762. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20763. # This bug is HP SR number 8606223364.
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  20765. $as_echo_n "checking size of long... " >&6; }
  20766. if ${ac_cv_sizeof_long+:} false; then :
  20767. $as_echo_n "(cached) " >&6
  20768. else
  20769. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  20770. else
  20771. if test "$ac_cv_type_long" = yes; then
  20772. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20774. as_fn_error 77 "cannot compute sizeof (long)
  20775. See \`config.log' for more details" "$LINENO" 5; }
  20776. else
  20777. ac_cv_sizeof_long=0
  20778. fi
  20779. fi
  20780. fi
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  20782. $as_echo "$ac_cv_sizeof_long" >&6; }
  20783. cat >>confdefs.h <<_ACEOF
  20784. #define SIZEOF_LONG $ac_cv_sizeof_long
  20785. _ACEOF
  20786. # The cast to long int works around a bug in the HP C Compiler
  20787. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20788. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20789. # This bug is HP SR number 8606223364.
  20790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  20791. $as_echo_n "checking size of short... " >&6; }
  20792. if ${ac_cv_sizeof_short+:} false; then :
  20793. $as_echo_n "(cached) " >&6
  20794. else
  20795. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  20796. else
  20797. if test "$ac_cv_type_short" = yes; then
  20798. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20799. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20800. as_fn_error 77 "cannot compute sizeof (short)
  20801. See \`config.log' for more details" "$LINENO" 5; }
  20802. else
  20803. ac_cv_sizeof_short=0
  20804. fi
  20805. fi
  20806. fi
  20807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  20808. $as_echo "$ac_cv_sizeof_short" >&6; }
  20809. cat >>confdefs.h <<_ACEOF
  20810. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20811. _ACEOF
  20812. # ------------
  20813. # AC_CHECK_LIB
  20814. # ------------
  20815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  20816. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  20817. if ${ac_cv_lib_gen_pathfind+:} false; then :
  20818. $as_echo_n "(cached) " >&6
  20819. else
  20820. ac_check_lib_save_LIBS=$LIBS
  20821. LIBS="-lgen $LIBS"
  20822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20823. /* end confdefs.h. */
  20824. /* Override any GCC internal prototype to avoid an error.
  20825. Use char because int might match the return type of a GCC
  20826. builtin and then its argument prototype would still apply. */
  20827. #ifdef __cplusplus
  20828. extern "C"
  20829. #endif
  20830. char pathfind ();
  20831. int
  20832. main ()
  20833. {
  20834. return pathfind ();
  20835. ;
  20836. return 0;
  20837. }
  20838. _ACEOF
  20839. if ac_fn_c_try_link "$LINENO"; then :
  20840. ac_cv_lib_gen_pathfind=yes
  20841. else
  20842. ac_cv_lib_gen_pathfind=no
  20843. fi
  20844. rm -f core conftest.err conftest.$ac_objext \
  20845. conftest$ac_exeext conftest.$ac_ext
  20846. LIBS=$ac_check_lib_save_LIBS
  20847. fi
  20848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  20849. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  20850. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  20851. cat >>confdefs.h <<_ACEOF
  20852. #define HAVE_LIBGEN 1
  20853. _ACEOF
  20854. LIBS="-lgen $LIBS"
  20855. fi
  20856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  20857. $as_echo_n "checking for gettext in -lintl... " >&6; }
  20858. if ${ac_cv_lib_intl_gettext+:} false; then :
  20859. $as_echo_n "(cached) " >&6
  20860. else
  20861. ac_check_lib_save_LIBS=$LIBS
  20862. LIBS="-lintl $LIBS"
  20863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20864. /* end confdefs.h. */
  20865. /* Override any GCC internal prototype to avoid an error.
  20866. Use char because int might match the return type of a GCC
  20867. builtin and then its argument prototype would still apply. */
  20868. #ifdef __cplusplus
  20869. extern "C"
  20870. #endif
  20871. char gettext ();
  20872. int
  20873. main ()
  20874. {
  20875. return gettext ();
  20876. ;
  20877. return 0;
  20878. }
  20879. _ACEOF
  20880. if ac_fn_c_try_link "$LINENO"; then :
  20881. ac_cv_lib_intl_gettext=yes
  20882. else
  20883. ac_cv_lib_intl_gettext=no
  20884. fi
  20885. rm -f core conftest.err conftest.$ac_objext \
  20886. conftest$ac_exeext conftest.$ac_ext
  20887. LIBS=$ac_check_lib_save_LIBS
  20888. fi
  20889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  20890. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  20891. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  20892. cat >>confdefs.h <<_ACEOF
  20893. #define HAVE_LIBINTL 1
  20894. _ACEOF
  20895. LIBS="-lintl $LIBS"
  20896. fi
  20897. for ac_func in vprintf
  20898. do :
  20899. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20900. if test "x$ac_cv_func_vprintf" = xyes; then :
  20901. cat >>confdefs.h <<_ACEOF
  20902. #define HAVE_VPRINTF 1
  20903. _ACEOF
  20904. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20905. if test "x$ac_cv_func__doprnt" = xyes; then :
  20906. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20907. fi
  20908. fi
  20909. done
  20910. for ac_header in vfork.h
  20911. do :
  20912. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  20913. if test "x$ac_cv_header_vfork_h" = xyes; then :
  20914. cat >>confdefs.h <<_ACEOF
  20915. #define HAVE_VFORK_H 1
  20916. _ACEOF
  20917. fi
  20918. done
  20919. for ac_func in fork vfork
  20920. do :
  20921. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20922. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20923. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20924. cat >>confdefs.h <<_ACEOF
  20925. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20926. _ACEOF
  20927. fi
  20928. done
  20929. if test "x$ac_cv_func_fork" = xyes; then
  20930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20931. $as_echo_n "checking for working fork... " >&6; }
  20932. if ${ac_cv_func_fork_works+:} false; then :
  20933. $as_echo_n "(cached) " >&6
  20934. else
  20935. if test "$cross_compiling" = yes; then :
  20936. ac_cv_func_fork_works=cross
  20937. else
  20938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20939. /* end confdefs.h. */
  20940. $ac_includes_default
  20941. int
  20942. main ()
  20943. {
  20944. /* By Ruediger Kuhlmann. */
  20945. return fork () < 0;
  20946. ;
  20947. return 0;
  20948. }
  20949. _ACEOF
  20950. if ac_fn_c_try_run "$LINENO"; then :
  20951. ac_cv_func_fork_works=yes
  20952. else
  20953. ac_cv_func_fork_works=no
  20954. fi
  20955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20956. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20957. fi
  20958. fi
  20959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20960. $as_echo "$ac_cv_func_fork_works" >&6; }
  20961. else
  20962. ac_cv_func_fork_works=$ac_cv_func_fork
  20963. fi
  20964. if test "x$ac_cv_func_fork_works" = xcross; then
  20965. case $host in
  20966. *-*-amigaos* | *-*-msdosdjgpp*)
  20967. # Override, as these systems have only a dummy fork() stub
  20968. ac_cv_func_fork_works=no
  20969. ;;
  20970. *)
  20971. ac_cv_func_fork_works=yes
  20972. ;;
  20973. esac
  20974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  20975. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  20976. fi
  20977. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20978. if test "x$ac_cv_func_vfork" = xyes; then
  20979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  20980. $as_echo_n "checking for working vfork... " >&6; }
  20981. if ${ac_cv_func_vfork_works+:} false; then :
  20982. $as_echo_n "(cached) " >&6
  20983. else
  20984. if test "$cross_compiling" = yes; then :
  20985. ac_cv_func_vfork_works=cross
  20986. else
  20987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20988. /* end confdefs.h. */
  20989. /* Thanks to Paul Eggert for this test. */
  20990. $ac_includes_default
  20991. #include <sys/wait.h>
  20992. #ifdef HAVE_VFORK_H
  20993. # include <vfork.h>
  20994. #endif
  20995. /* On some sparc systems, changes by the child to local and incoming
  20996. argument registers are propagated back to the parent. The compiler
  20997. is told about this with #include <vfork.h>, but some compilers
  20998. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  20999. static variable whose address is put into a register that is
  21000. clobbered by the vfork. */
  21001. static void
  21002. #ifdef __cplusplus
  21003. sparc_address_test (int arg)
  21004. # else
  21005. sparc_address_test (arg) int arg;
  21006. #endif
  21007. {
  21008. static pid_t child;
  21009. if (!child) {
  21010. child = vfork ();
  21011. if (child < 0) {
  21012. perror ("vfork");
  21013. _exit(2);
  21014. }
  21015. if (!child) {
  21016. arg = getpid();
  21017. write(-1, "", 0);
  21018. _exit (arg);
  21019. }
  21020. }
  21021. }
  21022. int
  21023. main ()
  21024. {
  21025. pid_t parent = getpid ();
  21026. pid_t child;
  21027. sparc_address_test (0);
  21028. child = vfork ();
  21029. if (child == 0) {
  21030. /* Here is another test for sparc vfork register problems. This
  21031. test uses lots of local variables, at least as many local
  21032. variables as main has allocated so far including compiler
  21033. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21034. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21035. reuse the register of parent for one of the local variables,
  21036. since it will think that parent can't possibly be used any more
  21037. in this routine. Assigning to the local variable will thus
  21038. munge parent in the parent process. */
  21039. pid_t
  21040. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21041. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21042. /* Convince the compiler that p..p7 are live; otherwise, it might
  21043. use the same hardware register for all 8 local variables. */
  21044. if (p != p1 || p != p2 || p != p3 || p != p4
  21045. || p != p5 || p != p6 || p != p7)
  21046. _exit(1);
  21047. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21048. from child file descriptors. If the child closes a descriptor
  21049. before it execs or exits, this munges the parent's descriptor
  21050. as well. Test for this by closing stdout in the child. */
  21051. _exit(close(fileno(stdout)) != 0);
  21052. } else {
  21053. int status;
  21054. struct stat st;
  21055. while (wait(&status) != child)
  21056. ;
  21057. return (
  21058. /* Was there some problem with vforking? */
  21059. child < 0
  21060. /* Did the child fail? (This shouldn't happen.) */
  21061. || status
  21062. /* Did the vfork/compiler bug occur? */
  21063. || parent != getpid()
  21064. /* Did the file descriptor bug occur? */
  21065. || fstat(fileno(stdout), &st) != 0
  21066. );
  21067. }
  21068. }
  21069. _ACEOF
  21070. if ac_fn_c_try_run "$LINENO"; then :
  21071. ac_cv_func_vfork_works=yes
  21072. else
  21073. ac_cv_func_vfork_works=no
  21074. fi
  21075. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21076. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21077. fi
  21078. fi
  21079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21080. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21081. fi;
  21082. if test "x$ac_cv_func_fork_works" = xcross; then
  21083. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21085. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21086. fi
  21087. if test "x$ac_cv_func_vfork_works" = xyes; then
  21088. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21089. else
  21090. $as_echo "#define vfork fork" >>confdefs.h
  21091. fi
  21092. if test "x$ac_cv_func_fork_works" = xyes; then
  21093. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21094. fi
  21095. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21096. strrchr strsignal fchmod fstat chmod
  21097. do :
  21098. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21099. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21100. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21101. cat >>confdefs.h <<_ACEOF
  21102. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21103. _ACEOF
  21104. fi
  21105. done
  21106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21107. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21108. if ${ac_cv_path_SED+:} false; then :
  21109. $as_echo_n "(cached) " >&6
  21110. else
  21111. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21112. for ac_i in 1 2 3 4 5 6 7; do
  21113. ac_script="$ac_script$as_nl$ac_script"
  21114. done
  21115. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21116. { ac_script=; unset ac_script;}
  21117. if test -z "$SED"; then
  21118. ac_path_SED_found=false
  21119. # Loop through the user's path and test for each of PROGNAME-LIST
  21120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21121. for as_dir in $PATH
  21122. do
  21123. IFS=$as_save_IFS
  21124. test -z "$as_dir" && as_dir=.
  21125. for ac_prog in sed gsed; do
  21126. for ac_exec_ext in '' $ac_executable_extensions; do
  21127. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21128. as_fn_executable_p "$ac_path_SED" || continue
  21129. # Check for GNU ac_path_SED and select it if it is found.
  21130. # Check for GNU $ac_path_SED
  21131. case `"$ac_path_SED" --version 2>&1` in
  21132. *GNU*)
  21133. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21134. *)
  21135. ac_count=0
  21136. $as_echo_n 0123456789 >"conftest.in"
  21137. while :
  21138. do
  21139. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21140. mv "conftest.tmp" "conftest.in"
  21141. cp "conftest.in" "conftest.nl"
  21142. $as_echo '' >> "conftest.nl"
  21143. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21144. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21145. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21146. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21147. # Best one so far, save it but keep looking for a better one
  21148. ac_cv_path_SED="$ac_path_SED"
  21149. ac_path_SED_max=$ac_count
  21150. fi
  21151. # 10*(2^10) chars as input seems more than enough
  21152. test $ac_count -gt 10 && break
  21153. done
  21154. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21155. esac
  21156. $ac_path_SED_found && break 3
  21157. done
  21158. done
  21159. done
  21160. IFS=$as_save_IFS
  21161. if test -z "$ac_cv_path_SED"; then
  21162. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21163. fi
  21164. else
  21165. ac_cv_path_SED=$SED
  21166. fi
  21167. fi
  21168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21169. $as_echo "$ac_cv_path_SED" >&6; }
  21170. SED="$ac_cv_path_SED"
  21171. rm -f conftest.sed
  21172. while :
  21173. do
  21174. POSIX_SHELL=`which bash`
  21175. test -x "$POSIX_SHELL" && break
  21176. POSIX_SHELL=`which dash`
  21177. test -x "$POSIX_SHELL" && break
  21178. POSIX_SHELL=/usr/xpg4/bin/sh
  21179. test -x "$POSIX_SHELL" && break
  21180. POSIX_SHELL=`/bin/sh -c '
  21181. exec 2>/dev/null
  21182. if ! true ; then exit 1 ; fi
  21183. echo /bin/sh'`
  21184. test -x "$POSIX_SHELL" && break
  21185. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21186. done
  21187. cat >>confdefs.h <<_ACEOF
  21188. #define POSIX_SHELL "${POSIX_SHELL}"
  21189. _ACEOF
  21190. LIBOPTS_BUILD_BLOCKED=''
  21191. NEED_LIBOPTS_DIR=''
  21192. # Check whether --enable-local-libopts was given.
  21193. if test "${enable_local_libopts+set}" = set; then :
  21194. enableval=$enable_local_libopts;
  21195. if test x$enableval = xyes ; then
  21196. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21197. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21198. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21199. NEED_LIBOPTS_DIR=true
  21200. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21201. fi
  21202. fi
  21203. # Check whether --enable-libopts-install was given.
  21204. if test "${enable_libopts_install+set}" = set; then :
  21205. enableval=$enable_libopts_install;
  21206. fi
  21207. if test "X${enable_libopts_install}" = Xyes; then
  21208. INSTALL_LIBOPTS_TRUE=
  21209. INSTALL_LIBOPTS_FALSE='#'
  21210. else
  21211. INSTALL_LIBOPTS_TRUE='#'
  21212. INSTALL_LIBOPTS_FALSE=
  21213. fi
  21214. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21216. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21217. # Check whether --with-autoopts-config was given.
  21218. if test "${with_autoopts_config+set}" = set; then :
  21219. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21220. else
  21221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21222. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21223. if ${lo_cv_with_autoopts_config+:} false; then :
  21224. $as_echo_n "(cached) " >&6
  21225. else
  21226. if autoopts-config --help 2>/dev/null 1>&2
  21227. then lo_cv_with_autoopts_config=autoopts-config
  21228. elif libopts-config --help 2>/dev/null 1>&2
  21229. then lo_cv_with_autoopts_config=libopts-config
  21230. else lo_cv_with_autoopts_config=no ; fi
  21231. fi
  21232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21233. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21234. fi
  21235. # end of AC_ARG_WITH
  21236. if ${lo_cv_test_autoopts+:} false; then :
  21237. $as_echo_n "(cached) " >&6
  21238. else
  21239. if test -z "${lo_cv_with_autoopts_config}" \
  21240. -o X"${lo_cv_with_autoopts_config}" = Xno
  21241. then
  21242. if autoopts-config --help 2>/dev/null 1>&2
  21243. then lo_cv_with_autoopts_config=autoopts-config
  21244. elif libopts-config --help 2>/dev/null 1>&2
  21245. then lo_cv_with_autoopts_config=libopts-config
  21246. else lo_cv_with_autoopts_config=false ; fi
  21247. fi
  21248. lo_cv_test_autoopts=`
  21249. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21250. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21251. then lo_cv_test_autoopts=no ; fi
  21252. fi
  21253. # end of CACHE_VAL
  21254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21255. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21256. if test "X${lo_cv_test_autoopts}" != Xno
  21257. then
  21258. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21259. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21260. else
  21261. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21262. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21263. NEED_LIBOPTS_DIR=true
  21264. fi
  21265. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21266. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21267. NEED_LIBOPTS_DIR=''
  21268. fi
  21269. if test -n "${NEED_LIBOPTS_DIR}"; then
  21270. NEED_LIBOPTS_TRUE=
  21271. NEED_LIBOPTS_FALSE='#'
  21272. else
  21273. NEED_LIBOPTS_TRUE='#'
  21274. NEED_LIBOPTS_FALSE=
  21275. fi
  21276. LIBOPTS_DIR=libopts
  21277. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21278. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21279. # Check to see if a reg expr header is specified.
  21280. # Check whether --with-regex-header was given.
  21281. if test "${with_regex_header+set}" = set; then :
  21282. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21283. else
  21284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21285. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21286. if ${libopts_cv_with_regex_header+:} false; then :
  21287. $as_echo_n "(cached) " >&6
  21288. else
  21289. libopts_cv_with_regex_header=no
  21290. fi
  21291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21292. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21293. fi
  21294. # end of AC_ARG_WITH
  21295. if test "X${libopts_cv_with_regex_header}" != Xno
  21296. then
  21297. cat >>confdefs.h <<_ACEOF
  21298. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21299. _ACEOF
  21300. else
  21301. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21302. fi
  21303. # Check to see if a working libregex can be found.
  21304. # Check whether --with-libregex was given.
  21305. if test "${with_libregex+set}" = set; then :
  21306. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21307. else
  21308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21309. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21310. if ${libopts_cv_with_libregex_root+:} false; then :
  21311. $as_echo_n "(cached) " >&6
  21312. else
  21313. libopts_cv_with_libregex_root=no
  21314. fi
  21315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21316. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21317. fi
  21318. # end of AC_ARG_WITH libregex
  21319. if test "${with_libregex+set}" = set && \
  21320. test "X${withval}" = Xno
  21321. then ## disabled by request
  21322. libopts_cv_with_libregex_root=no
  21323. libopts_cv_with_libregex_cflags=no
  21324. libopts_cv_with_libregex_libs=no
  21325. else
  21326. # Check whether --with-libregex-cflags was given.
  21327. if test "${with_libregex_cflags+set}" = set; then :
  21328. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21329. else
  21330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21331. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21332. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21333. $as_echo_n "(cached) " >&6
  21334. else
  21335. libopts_cv_with_libregex_cflags=no
  21336. fi
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21338. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21339. fi
  21340. # end of AC_ARG_WITH libregex-cflags
  21341. # Check whether --with-libregex-libs was given.
  21342. if test "${with_libregex_libs+set}" = set; then :
  21343. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21344. else
  21345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21346. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21347. if ${libopts_cv_with_libregex_libs+:} false; then :
  21348. $as_echo_n "(cached) " >&6
  21349. else
  21350. libopts_cv_with_libregex_libs=no
  21351. fi
  21352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21353. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21354. fi
  21355. # end of AC_ARG_WITH libregex-libs
  21356. case "X${libopts_cv_with_libregex_cflags}" in
  21357. Xyes|Xno|X )
  21358. case "X${libopts_cv_with_libregex_root}" in
  21359. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21360. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21361. esac
  21362. esac
  21363. case "X${libopts_cv_with_libregex_libs}" in
  21364. Xyes|Xno|X )
  21365. case "X${libopts_cv_with_libregex_root}" in
  21366. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21367. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21368. esac
  21369. esac
  21370. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21371. libopts_save_LIBS="${LIBS}"
  21372. case "X${libopts_cv_with_libregex_cflags}" in
  21373. Xyes|Xno|X )
  21374. libopts_cv_with_libregex_cflags="" ;;
  21375. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21376. esac
  21377. case "X${libopts_cv_with_libregex_libs}" in
  21378. Xyes|Xno|X )
  21379. libopts_cv_with_libregex_libs="" ;;
  21380. * )
  21381. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21382. esac
  21383. LIBREGEX_CFLAGS=""
  21384. LIBREGEX_LIBS=""
  21385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21386. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21387. if ${libopts_cv_with_libregex+:} false; then :
  21388. $as_echo_n "(cached) " >&6
  21389. else
  21390. if test "$cross_compiling" = yes; then :
  21391. libopts_cv_with_libregex=no
  21392. else
  21393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21394. /* end confdefs.h. */
  21395. #include <stdio.h>
  21396. #include <stdlib.h>
  21397. #include <sys/types.h>
  21398. #include REGEX_HEADER
  21399. static regex_t re;
  21400. void comp_re(char const * pzPat) {
  21401. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21402. if (res == 0) return;
  21403. exit( res ); }
  21404. int main() {
  21405. regmatch_t m[2];
  21406. comp_re( "^.*\$" );
  21407. comp_re( "()|no.*" );
  21408. comp_re( "." );
  21409. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21410. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21411. fputs( "error: regex -->.<-- did not match\n", stderr );
  21412. return 1;
  21413. }
  21414. return 0; }
  21415. _ACEOF
  21416. if ac_fn_c_try_run "$LINENO"; then :
  21417. libopts_cv_with_libregex=yes
  21418. else
  21419. libopts_cv_with_libregex=no
  21420. fi
  21421. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21422. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21423. fi
  21424. # end of AC_RUN_IFELSE
  21425. fi
  21426. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21427. fi ## disabled by request
  21428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21429. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21430. if test "X${libopts_cv_with_libregex}" != Xno
  21431. then
  21432. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21433. else
  21434. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21435. LIBS="${libopts_save_LIBS}"
  21436. libopts_cv_with_libregex_root=no
  21437. libopts_cv_with_libregex_cflags=no
  21438. libopts_cv_with_libregex_libs=no
  21439. libopts_cv_with_libregex=no
  21440. fi
  21441. # Check to see if pathfind(3) works.
  21442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21443. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21444. if ${libopts_cv_run_pathfind+:} false; then :
  21445. $as_echo_n "(cached) " >&6
  21446. else
  21447. if test "$cross_compiling" = yes; then :
  21448. libopts_cv_run_pathfind=no
  21449. else
  21450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21451. /* end confdefs.h. */
  21452. #include <string.h>
  21453. #include <stdlib.h>
  21454. int main (int argc, char ** argv) {
  21455. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21456. return (pz == 0) ? 1 : 0;
  21457. }
  21458. _ACEOF
  21459. if ac_fn_c_try_run "$LINENO"; then :
  21460. libopts_cv_run_pathfind=yes
  21461. else
  21462. libopts_cv_run_pathfind=no
  21463. fi
  21464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21465. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21466. fi
  21467. # end of RUN_IFELSE
  21468. fi
  21469. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21471. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21472. if test "X${libopts_cv_run_pathfind}" != Xno
  21473. then
  21474. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21475. fi
  21476. # Check to see if /dev/zero is readable device.
  21477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21478. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21479. if ${libopts_cv_test_dev_zero+:} false; then :
  21480. $as_echo_n "(cached) " >&6
  21481. else
  21482. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21483. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21484. test -z "${dzero}" && exit 1
  21485. echo ${dzero}`
  21486. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21487. then libopts_cv_test_dev_zero=no
  21488. fi
  21489. fi
  21490. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21492. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21493. if test "X${libopts_cv_test_dev_zero}" != Xno
  21494. then
  21495. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21496. fi
  21497. # Check to see if we have a functional realpath(3C).
  21498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21499. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21500. if ${libopts_cv_run_realpath+:} false; then :
  21501. $as_echo_n "(cached) " >&6
  21502. else
  21503. if test "$cross_compiling" = yes; then :
  21504. libopts_cv_run_realpath=no
  21505. else
  21506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21507. /* end confdefs.h. */
  21508. #include <limits.h>
  21509. #include <stdlib.h>
  21510. int main (int argc, char ** argv) {
  21511. #ifndef PATH_MAX
  21512. choke me!!
  21513. #else
  21514. char zPath[PATH_MAX+1];
  21515. #endif
  21516. char *pz = realpath(argv[0], zPath);
  21517. return (pz == zPath) ? 0 : 1;
  21518. }
  21519. _ACEOF
  21520. if ac_fn_c_try_run "$LINENO"; then :
  21521. libopts_cv_run_realpath=yes
  21522. else
  21523. libopts_cv_run_realpath=no
  21524. fi
  21525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21527. fi
  21528. # end of RUN_IFELSE
  21529. fi
  21530. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21532. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21533. if test "X${libopts_cv_run_realpath}" != Xno
  21534. then
  21535. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21536. fi
  21537. # Check to see if strftime() works.
  21538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21539. $as_echo_n "checking whether strftime() works... " >&6; }
  21540. if ${libopts_cv_run_strftime+:} false; then :
  21541. $as_echo_n "(cached) " >&6
  21542. else
  21543. if test "$cross_compiling" = yes; then :
  21544. libopts_cv_run_strftime=no
  21545. else
  21546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21547. /* end confdefs.h. */
  21548. #include <time.h>
  21549. #include <string.h>
  21550. char t_buf[ 64 ];
  21551. int main() {
  21552. static char const z[] = "Thursday Aug 28 240";
  21553. struct tm tm;
  21554. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21555. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21556. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21557. tm.tm_mday = 28; /* day of the month [1, 31] */
  21558. tm.tm_mon = 7; /* months since January [0, 11] */
  21559. tm.tm_year = 86; /* years since 1900 */
  21560. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21561. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21562. tm.tm_isdst = 1; /* flag for daylight savings time */
  21563. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21564. return (strcmp( t_buf, z ) != 0); }
  21565. _ACEOF
  21566. if ac_fn_c_try_run "$LINENO"; then :
  21567. libopts_cv_run_strftime=yes
  21568. else
  21569. libopts_cv_run_strftime=no
  21570. fi
  21571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21573. fi
  21574. # end of RUN_IFELSE
  21575. fi
  21576. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21578. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21579. if test "X${libopts_cv_run_strftime}" != Xno
  21580. then
  21581. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21582. fi
  21583. # Check to see if fopen accepts "b" mode.
  21584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21585. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21586. if ${libopts_cv_run_fopen_binary+:} false; then :
  21587. $as_echo_n "(cached) " >&6
  21588. else
  21589. if test "$cross_compiling" = yes; then :
  21590. libopts_cv_run_fopen_binary=no
  21591. else
  21592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21593. /* end confdefs.h. */
  21594. #include <stdio.h>
  21595. int main (int argc, char ** argv) {
  21596. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21597. return (fp == NULL) ? 1 : fclose(fp); }
  21598. _ACEOF
  21599. if ac_fn_c_try_run "$LINENO"; then :
  21600. libopts_cv_run_fopen_binary=yes
  21601. else
  21602. libopts_cv_run_fopen_binary=no
  21603. fi
  21604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21605. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21606. fi
  21607. # end of RUN_IFELSE
  21608. fi
  21609. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21611. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21612. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21613. then
  21614. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21615. else
  21616. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21617. fi
  21618. # Check to see if fopen accepts "t" mode.
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21620. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21621. if ${libopts_cv_run_fopen_text+:} false; then :
  21622. $as_echo_n "(cached) " >&6
  21623. else
  21624. if test "$cross_compiling" = yes; then :
  21625. libopts_cv_run_fopen_text=no
  21626. else
  21627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21628. /* end confdefs.h. */
  21629. #include <stdio.h>
  21630. int main (int argc, char ** argv) {
  21631. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21632. return (fp == NULL) ? 1 : fclose(fp); }
  21633. _ACEOF
  21634. if ac_fn_c_try_run "$LINENO"; then :
  21635. libopts_cv_run_fopen_text=yes
  21636. else
  21637. libopts_cv_run_fopen_text=no
  21638. fi
  21639. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21640. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21641. fi
  21642. # end of RUN_IFELSE
  21643. fi
  21644. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21646. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21647. if test "X${libopts_cv_run_fopen_text}" != Xno
  21648. then
  21649. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  21650. else
  21651. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  21652. fi
  21653. # Check to see if not wanting optional option args.
  21654. # Check whether --enable-optional-args was given.
  21655. if test "${enable_optional_args+set}" = set; then :
  21656. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  21657. else
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  21659. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  21660. if ${libopts_cv_enable_optional_args+:} false; then :
  21661. $as_echo_n "(cached) " >&6
  21662. else
  21663. libopts_cv_enable_optional_args=yes
  21664. fi
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  21666. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  21667. fi
  21668. # end of AC_ARG_ENABLE
  21669. if test "X${libopts_cv_enable_optional_args}" = Xno
  21670. then
  21671. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  21672. fi
  21673. fi
  21674. ac_config_files="$ac_config_files libopts/Makefile"
  21675. # end of AC_DEFUN of LIBOPTS_CHECK
  21676. 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"
  21677. cat >confcache <<\_ACEOF
  21678. # This file is a shell script that caches the results of configure
  21679. # tests run on this system so they can be shared between configure
  21680. # scripts and configure runs, see configure's option --config-cache.
  21681. # It is not useful on other systems. If it contains results you don't
  21682. # want to keep, you may remove or edit it.
  21683. #
  21684. # config.status only pays attention to the cache file if you give it
  21685. # the --recheck option to rerun configure.
  21686. #
  21687. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21688. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21689. # following values.
  21690. _ACEOF
  21691. # The following way of writing the cache mishandles newlines in values,
  21692. # but we know of no workaround that is simple, portable, and efficient.
  21693. # So, we kill variables containing newlines.
  21694. # Ultrix sh set writes to stderr and can't be redirected directly,
  21695. # and sets the high bit in the cache file unless we assign to the vars.
  21696. (
  21697. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21698. eval ac_val=\$$ac_var
  21699. case $ac_val in #(
  21700. *${as_nl}*)
  21701. case $ac_var in #(
  21702. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21703. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21704. esac
  21705. case $ac_var in #(
  21706. _ | IFS | as_nl) ;; #(
  21707. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21708. *) { eval $ac_var=; unset $ac_var;} ;;
  21709. esac ;;
  21710. esac
  21711. done
  21712. (set) 2>&1 |
  21713. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21714. *${as_nl}ac_space=\ *)
  21715. # `set' does not quote correctly, so add quotes: double-quote
  21716. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21717. sed -n \
  21718. "s/'/'\\\\''/g;
  21719. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21720. ;; #(
  21721. *)
  21722. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21723. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21724. ;;
  21725. esac |
  21726. sort
  21727. ) |
  21728. sed '
  21729. /^ac_cv_env_/b end
  21730. t clear
  21731. :clear
  21732. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21733. t end
  21734. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21735. :end' >>confcache
  21736. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21737. if test -w "$cache_file"; then
  21738. if test "x$cache_file" != "x/dev/null"; then
  21739. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21740. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21741. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21742. cat confcache >"$cache_file"
  21743. else
  21744. case $cache_file in #(
  21745. */* | ?:*)
  21746. mv -f confcache "$cache_file"$$ &&
  21747. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21748. *)
  21749. mv -f confcache "$cache_file" ;;
  21750. esac
  21751. fi
  21752. fi
  21753. else
  21754. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21755. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21756. fi
  21757. fi
  21758. rm -f confcache
  21759. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21760. # Let make expand exec_prefix.
  21761. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21762. DEFS=-DHAVE_CONFIG_H
  21763. ac_libobjs=
  21764. ac_ltlibobjs=
  21765. U=
  21766. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21767. # 1. Remove the extension, and $U if already installed.
  21768. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21769. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21770. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21771. # will be set to the directory where LIBOBJS objects are built.
  21772. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21773. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21774. done
  21775. LIBOBJS=$ac_libobjs
  21776. LTLIBOBJS=$ac_ltlibobjs
  21777. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21778. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21780. fi
  21781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21782. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  21783. if test -n "$am_sleep_pid"; then
  21784. # Hide warnings about reused PIDs.
  21785. wait $am_sleep_pid 2>/dev/null
  21786. fi
  21787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21788. $as_echo "done" >&6; }
  21789. if test -n "$EXEEXT"; then
  21790. am__EXEEXT_TRUE=
  21791. am__EXEEXT_FALSE='#'
  21792. else
  21793. am__EXEEXT_TRUE='#'
  21794. am__EXEEXT_FALSE=
  21795. fi
  21796. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21797. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21798. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21799. fi
  21800. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21801. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21802. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21803. fi
  21804. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21805. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21806. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21807. fi
  21808. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21809. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21810. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21811. fi
  21812. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  21813. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  21814. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21815. fi
  21816. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  21817. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  21818. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21819. fi
  21820. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  21821. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  21822. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21823. fi
  21824. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  21825. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  21826. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21827. fi
  21828. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  21829. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  21830. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21831. fi
  21832. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  21833. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  21834. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21835. fi
  21836. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  21837. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  21838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21839. fi
  21840. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  21841. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  21842. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21843. fi
  21844. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  21845. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  21846. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21847. fi
  21848. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  21849. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  21850. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21851. fi
  21852. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  21853. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  21854. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21855. fi
  21856. : "${CONFIG_STATUS=./config.status}"
  21857. ac_write_fail=0
  21858. ac_clean_files_save=$ac_clean_files
  21859. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21860. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21861. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21862. as_write_fail=0
  21863. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21864. #! $SHELL
  21865. # Generated by $as_me.
  21866. # Run this file to recreate the current configuration.
  21867. # Compiler output produced by configure, useful for debugging
  21868. # configure, is in config.log if it exists.
  21869. debug=false
  21870. ac_cs_recheck=false
  21871. ac_cs_silent=false
  21872. SHELL=\${CONFIG_SHELL-$SHELL}
  21873. export SHELL
  21874. _ASEOF
  21875. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21876. ## -------------------- ##
  21877. ## M4sh Initialization. ##
  21878. ## -------------------- ##
  21879. # Be more Bourne compatible
  21880. DUALCASE=1; export DUALCASE # for MKS sh
  21881. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21882. emulate sh
  21883. NULLCMD=:
  21884. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21885. # is contrary to our usage. Disable this feature.
  21886. alias -g '${1+"$@"}'='"$@"'
  21887. setopt NO_GLOB_SUBST
  21888. else
  21889. case `(set -o) 2>/dev/null` in #(
  21890. *posix*) :
  21891. set -o posix ;; #(
  21892. *) :
  21893. ;;
  21894. esac
  21895. fi
  21896. as_nl='
  21897. '
  21898. export as_nl
  21899. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21900. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21901. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21902. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21903. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21904. # but without wasting forks for bash or zsh.
  21905. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21906. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21907. as_echo='print -r --'
  21908. as_echo_n='print -rn --'
  21909. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21910. as_echo='printf %s\n'
  21911. as_echo_n='printf %s'
  21912. else
  21913. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21914. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21915. as_echo_n='/usr/ucb/echo -n'
  21916. else
  21917. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21918. as_echo_n_body='eval
  21919. arg=$1;
  21920. case $arg in #(
  21921. *"$as_nl"*)
  21922. expr "X$arg" : "X\\(.*\\)$as_nl";
  21923. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21924. esac;
  21925. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21926. '
  21927. export as_echo_n_body
  21928. as_echo_n='sh -c $as_echo_n_body as_echo'
  21929. fi
  21930. export as_echo_body
  21931. as_echo='sh -c $as_echo_body as_echo'
  21932. fi
  21933. # The user is always right.
  21934. if test "${PATH_SEPARATOR+set}" != set; then
  21935. PATH_SEPARATOR=:
  21936. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21937. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21938. PATH_SEPARATOR=';'
  21939. }
  21940. fi
  21941. # IFS
  21942. # We need space, tab and new line, in precisely that order. Quoting is
  21943. # there to prevent editors from complaining about space-tab.
  21944. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21945. # splitting by setting IFS to empty value.)
  21946. IFS=" "" $as_nl"
  21947. # Find who we are. Look in the path if we contain no directory separator.
  21948. as_myself=
  21949. case $0 in #((
  21950. *[\\/]* ) as_myself=$0 ;;
  21951. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21952. for as_dir in $PATH
  21953. do
  21954. IFS=$as_save_IFS
  21955. test -z "$as_dir" && as_dir=.
  21956. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21957. done
  21958. IFS=$as_save_IFS
  21959. ;;
  21960. esac
  21961. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21962. # in which case we are not to be found in the path.
  21963. if test "x$as_myself" = x; then
  21964. as_myself=$0
  21965. fi
  21966. if test ! -f "$as_myself"; then
  21967. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21968. exit 1
  21969. fi
  21970. # Unset variables that we do not need and which cause bugs (e.g. in
  21971. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21972. # suppresses any "Segmentation fault" message there. '((' could
  21973. # trigger a bug in pdksh 5.2.14.
  21974. for as_var in BASH_ENV ENV MAIL MAILPATH
  21975. do eval test x\${$as_var+set} = xset \
  21976. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21977. done
  21978. PS1='$ '
  21979. PS2='> '
  21980. PS4='+ '
  21981. # NLS nuisances.
  21982. LC_ALL=C
  21983. export LC_ALL
  21984. LANGUAGE=C
  21985. export LANGUAGE
  21986. # CDPATH.
  21987. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21988. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21989. # ----------------------------------------
  21990. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21991. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21992. # script with STATUS, using 1 if that was 0.
  21993. as_fn_error ()
  21994. {
  21995. as_status=$1; test $as_status -eq 0 && as_status=1
  21996. if test "$4"; then
  21997. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21998. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21999. fi
  22000. $as_echo "$as_me: error: $2" >&2
  22001. as_fn_exit $as_status
  22002. } # as_fn_error
  22003. # as_fn_set_status STATUS
  22004. # -----------------------
  22005. # Set $? to STATUS, without forking.
  22006. as_fn_set_status ()
  22007. {
  22008. return $1
  22009. } # as_fn_set_status
  22010. # as_fn_exit STATUS
  22011. # -----------------
  22012. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22013. as_fn_exit ()
  22014. {
  22015. set +e
  22016. as_fn_set_status $1
  22017. exit $1
  22018. } # as_fn_exit
  22019. # as_fn_unset VAR
  22020. # ---------------
  22021. # Portably unset VAR.
  22022. as_fn_unset ()
  22023. {
  22024. { eval $1=; unset $1;}
  22025. }
  22026. as_unset=as_fn_unset
  22027. # as_fn_append VAR VALUE
  22028. # ----------------------
  22029. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22030. # advantage of any shell optimizations that allow amortized linear growth over
  22031. # repeated appends, instead of the typical quadratic growth present in naive
  22032. # implementations.
  22033. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22034. eval 'as_fn_append ()
  22035. {
  22036. eval $1+=\$2
  22037. }'
  22038. else
  22039. as_fn_append ()
  22040. {
  22041. eval $1=\$$1\$2
  22042. }
  22043. fi # as_fn_append
  22044. # as_fn_arith ARG...
  22045. # ------------------
  22046. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22047. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22048. # must be portable across $(()) and expr.
  22049. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22050. eval 'as_fn_arith ()
  22051. {
  22052. as_val=$(( $* ))
  22053. }'
  22054. else
  22055. as_fn_arith ()
  22056. {
  22057. as_val=`expr "$@" || test $? -eq 1`
  22058. }
  22059. fi # as_fn_arith
  22060. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22061. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22062. as_expr=expr
  22063. else
  22064. as_expr=false
  22065. fi
  22066. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22067. as_basename=basename
  22068. else
  22069. as_basename=false
  22070. fi
  22071. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22072. as_dirname=dirname
  22073. else
  22074. as_dirname=false
  22075. fi
  22076. as_me=`$as_basename -- "$0" ||
  22077. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22078. X"$0" : 'X\(//\)$' \| \
  22079. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22080. $as_echo X/"$0" |
  22081. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22082. s//\1/
  22083. q
  22084. }
  22085. /^X\/\(\/\/\)$/{
  22086. s//\1/
  22087. q
  22088. }
  22089. /^X\/\(\/\).*/{
  22090. s//\1/
  22091. q
  22092. }
  22093. s/.*/./; q'`
  22094. # Avoid depending upon Character Ranges.
  22095. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22096. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22097. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22098. as_cr_digits='0123456789'
  22099. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22100. ECHO_C= ECHO_N= ECHO_T=
  22101. case `echo -n x` in #(((((
  22102. -n*)
  22103. case `echo 'xy\c'` in
  22104. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22105. xy) ECHO_C='\c';;
  22106. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22107. ECHO_T=' ';;
  22108. esac;;
  22109. *)
  22110. ECHO_N='-n';;
  22111. esac
  22112. rm -f conf$$ conf$$.exe conf$$.file
  22113. if test -d conf$$.dir; then
  22114. rm -f conf$$.dir/conf$$.file
  22115. else
  22116. rm -f conf$$.dir
  22117. mkdir conf$$.dir 2>/dev/null
  22118. fi
  22119. if (echo >conf$$.file) 2>/dev/null; then
  22120. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22121. as_ln_s='ln -s'
  22122. # ... but there are two gotchas:
  22123. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22124. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22125. # In both cases, we have to default to `cp -pR'.
  22126. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22127. as_ln_s='cp -pR'
  22128. elif ln conf$$.file conf$$ 2>/dev/null; then
  22129. as_ln_s=ln
  22130. else
  22131. as_ln_s='cp -pR'
  22132. fi
  22133. else
  22134. as_ln_s='cp -pR'
  22135. fi
  22136. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22137. rmdir conf$$.dir 2>/dev/null
  22138. # as_fn_mkdir_p
  22139. # -------------
  22140. # Create "$as_dir" as a directory, including parents if necessary.
  22141. as_fn_mkdir_p ()
  22142. {
  22143. case $as_dir in #(
  22144. -*) as_dir=./$as_dir;;
  22145. esac
  22146. test -d "$as_dir" || eval $as_mkdir_p || {
  22147. as_dirs=
  22148. while :; do
  22149. case $as_dir in #(
  22150. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22151. *) as_qdir=$as_dir;;
  22152. esac
  22153. as_dirs="'$as_qdir' $as_dirs"
  22154. as_dir=`$as_dirname -- "$as_dir" ||
  22155. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22156. X"$as_dir" : 'X\(//\)[^/]' \| \
  22157. X"$as_dir" : 'X\(//\)$' \| \
  22158. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22159. $as_echo X"$as_dir" |
  22160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22161. s//\1/
  22162. q
  22163. }
  22164. /^X\(\/\/\)[^/].*/{
  22165. s//\1/
  22166. q
  22167. }
  22168. /^X\(\/\/\)$/{
  22169. s//\1/
  22170. q
  22171. }
  22172. /^X\(\/\).*/{
  22173. s//\1/
  22174. q
  22175. }
  22176. s/.*/./; q'`
  22177. test -d "$as_dir" && break
  22178. done
  22179. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22180. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22181. } # as_fn_mkdir_p
  22182. if mkdir -p . 2>/dev/null; then
  22183. as_mkdir_p='mkdir -p "$as_dir"'
  22184. else
  22185. test -d ./-p && rmdir ./-p
  22186. as_mkdir_p=false
  22187. fi
  22188. # as_fn_executable_p FILE
  22189. # -----------------------
  22190. # Test if FILE is an executable regular file.
  22191. as_fn_executable_p ()
  22192. {
  22193. test -f "$1" && test -x "$1"
  22194. } # as_fn_executable_p
  22195. as_test_x='test -x'
  22196. as_executable_p=as_fn_executable_p
  22197. # Sed expression to map a string onto a valid CPP name.
  22198. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22199. # Sed expression to map a string onto a valid variable name.
  22200. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22201. exec 6>&1
  22202. ## ----------------------------------- ##
  22203. ## Main body of $CONFIG_STATUS script. ##
  22204. ## ----------------------------------- ##
  22205. _ASEOF
  22206. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22207. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22208. # Save the log message, to keep $0 and so on meaningful, and to
  22209. # report actual input values of CONFIG_FILES etc. instead of their
  22210. # values after options handling.
  22211. ac_log="
  22212. This file was extended by tcpreplay $as_me 4.3.4, which was
  22213. generated by GNU Autoconf 2.69. Invocation command line was
  22214. CONFIG_FILES = $CONFIG_FILES
  22215. CONFIG_HEADERS = $CONFIG_HEADERS
  22216. CONFIG_LINKS = $CONFIG_LINKS
  22217. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22218. $ $0 $@
  22219. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22220. "
  22221. _ACEOF
  22222. case $ac_config_files in *"
  22223. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22224. esac
  22225. case $ac_config_headers in *"
  22226. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22227. esac
  22228. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22229. # Files that config.status was made for.
  22230. config_files="$ac_config_files"
  22231. config_headers="$ac_config_headers"
  22232. config_commands="$ac_config_commands"
  22233. _ACEOF
  22234. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22235. ac_cs_usage="\
  22236. \`$as_me' instantiates files and other configuration actions
  22237. from templates according to the current configuration. Unless the files
  22238. and actions are specified as TAGs, all are instantiated by default.
  22239. Usage: $0 [OPTION]... [TAG]...
  22240. -h, --help print this help, then exit
  22241. -V, --version print version number and configuration settings, then exit
  22242. --config print configuration, then exit
  22243. -q, --quiet, --silent
  22244. do not print progress messages
  22245. -d, --debug don't remove temporary files
  22246. --recheck update $as_me by reconfiguring in the same conditions
  22247. --file=FILE[:TEMPLATE]
  22248. instantiate the configuration file FILE
  22249. --header=FILE[:TEMPLATE]
  22250. instantiate the configuration header FILE
  22251. Configuration files:
  22252. $config_files
  22253. Configuration headers:
  22254. $config_headers
  22255. Configuration commands:
  22256. $config_commands
  22257. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22258. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22259. _ACEOF
  22260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22261. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22262. ac_cs_version="\\
  22263. tcpreplay config.status 4.3.4
  22264. configured by $0, generated by GNU Autoconf 2.69,
  22265. with options \\"\$ac_cs_config\\"
  22266. Copyright (C) 2012 Free Software Foundation, Inc.
  22267. This config.status script is free software; the Free Software Foundation
  22268. gives unlimited permission to copy, distribute and modify it."
  22269. ac_pwd='$ac_pwd'
  22270. srcdir='$srcdir'
  22271. INSTALL='$INSTALL'
  22272. MKDIR_P='$MKDIR_P'
  22273. AWK='$AWK'
  22274. test -n "\$AWK" || AWK=awk
  22275. _ACEOF
  22276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22277. # The default lists apply if the user does not specify any file.
  22278. ac_need_defaults=:
  22279. while test $# != 0
  22280. do
  22281. case $1 in
  22282. --*=?*)
  22283. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22284. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22285. ac_shift=:
  22286. ;;
  22287. --*=)
  22288. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22289. ac_optarg=
  22290. ac_shift=:
  22291. ;;
  22292. *)
  22293. ac_option=$1
  22294. ac_optarg=$2
  22295. ac_shift=shift
  22296. ;;
  22297. esac
  22298. case $ac_option in
  22299. # Handling of the options.
  22300. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22301. ac_cs_recheck=: ;;
  22302. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22303. $as_echo "$ac_cs_version"; exit ;;
  22304. --config | --confi | --conf | --con | --co | --c )
  22305. $as_echo "$ac_cs_config"; exit ;;
  22306. --debug | --debu | --deb | --de | --d | -d )
  22307. debug=: ;;
  22308. --file | --fil | --fi | --f )
  22309. $ac_shift
  22310. case $ac_optarg in
  22311. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22312. '') as_fn_error $? "missing file argument" ;;
  22313. esac
  22314. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22315. ac_need_defaults=false;;
  22316. --header | --heade | --head | --hea )
  22317. $ac_shift
  22318. case $ac_optarg in
  22319. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22320. esac
  22321. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22322. ac_need_defaults=false;;
  22323. --he | --h)
  22324. # Conflict between --help and --header
  22325. as_fn_error $? "ambiguous option: \`$1'
  22326. Try \`$0 --help' for more information.";;
  22327. --help | --hel | -h )
  22328. $as_echo "$ac_cs_usage"; exit ;;
  22329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22330. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22331. ac_cs_silent=: ;;
  22332. # This is an error.
  22333. -*) as_fn_error $? "unrecognized option: \`$1'
  22334. Try \`$0 --help' for more information." ;;
  22335. *) as_fn_append ac_config_targets " $1"
  22336. ac_need_defaults=false ;;
  22337. esac
  22338. shift
  22339. done
  22340. ac_configure_extra_args=
  22341. if $ac_cs_silent; then
  22342. exec 6>/dev/null
  22343. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22344. fi
  22345. _ACEOF
  22346. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22347. if \$ac_cs_recheck; then
  22348. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22349. shift
  22350. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22351. CONFIG_SHELL='$SHELL'
  22352. export CONFIG_SHELL
  22353. exec "\$@"
  22354. fi
  22355. _ACEOF
  22356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22357. exec 5>>config.log
  22358. {
  22359. echo
  22360. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22361. ## Running $as_me. ##
  22362. _ASBOX
  22363. $as_echo "$ac_log"
  22364. } >&5
  22365. _ACEOF
  22366. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22367. #
  22368. # INIT-COMMANDS
  22369. #
  22370. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  22371. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22372. # if CDPATH is set.
  22373. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22374. sed_quote_subst='$sed_quote_subst'
  22375. double_quote_subst='$double_quote_subst'
  22376. delay_variable_subst='$delay_variable_subst'
  22377. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22378. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22379. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22380. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22381. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22382. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22383. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22384. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22385. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22386. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22387. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22388. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22389. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22390. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22391. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22392. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22393. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22394. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22395. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22396. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22397. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22398. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22399. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22400. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22401. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22402. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22403. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22404. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22405. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22406. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22407. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22408. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22409. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22410. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22411. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22412. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22413. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22414. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22415. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22416. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22417. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22418. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22419. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22420. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22421. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22422. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22423. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22424. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22425. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22426. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22427. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22428. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22429. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22430. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22431. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22432. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22433. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22434. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22435. 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"`'
  22436. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22437. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22438. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22439. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22440. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22441. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22442. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22443. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22444. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22445. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22446. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22447. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22448. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22449. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22450. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22451. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22452. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22453. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22454. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22455. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22456. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22457. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22458. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22459. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22460. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22461. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22462. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22463. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22464. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22465. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22466. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22467. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22468. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22469. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22470. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22471. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22472. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22473. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22474. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22475. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22476. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22477. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22478. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22479. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22480. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22481. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22482. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22483. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22484. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22485. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22486. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22487. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22488. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22489. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22490. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22491. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22492. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22493. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22494. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22495. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22496. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22497. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22498. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22499. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22500. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22501. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22502. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22503. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22504. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22505. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22506. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22507. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22508. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22509. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22510. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22511. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22512. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22513. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22514. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22515. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22516. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22517. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22518. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22519. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22520. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22521. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22522. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22523. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22524. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22525. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22526. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22527. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22528. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22529. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22530. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22531. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22532. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22533. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22534. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22535. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22536. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22537. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22538. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22539. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22540. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22541. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22542. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22543. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22544. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22545. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22546. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22547. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22548. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22549. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22550. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22551. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22552. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22553. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22554. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22555. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22556. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22557. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22558. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22559. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22560. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22561. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22562. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22563. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22564. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22565. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22566. LTCC='$LTCC'
  22567. LTCFLAGS='$LTCFLAGS'
  22568. compiler='$compiler_DEFAULT'
  22569. # A function that is used when there is no print builtin or printf.
  22570. func_fallback_echo ()
  22571. {
  22572. eval 'cat <<_LTECHO_EOF
  22573. \$1
  22574. _LTECHO_EOF'
  22575. }
  22576. # Quote evaled strings.
  22577. for var in SHELL \
  22578. ECHO \
  22579. PATH_SEPARATOR \
  22580. SED \
  22581. GREP \
  22582. EGREP \
  22583. FGREP \
  22584. LD \
  22585. NM \
  22586. LN_S \
  22587. lt_SP2NL \
  22588. lt_NL2SP \
  22589. reload_flag \
  22590. OBJDUMP \
  22591. deplibs_check_method \
  22592. file_magic_cmd \
  22593. file_magic_glob \
  22594. want_nocaseglob \
  22595. DLLTOOL \
  22596. sharedlib_from_linklib_cmd \
  22597. AR \
  22598. AR_FLAGS \
  22599. archiver_list_spec \
  22600. STRIP \
  22601. RANLIB \
  22602. CC \
  22603. CFLAGS \
  22604. compiler \
  22605. lt_cv_sys_global_symbol_pipe \
  22606. lt_cv_sys_global_symbol_to_cdecl \
  22607. lt_cv_sys_global_symbol_to_import \
  22608. lt_cv_sys_global_symbol_to_c_name_address \
  22609. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22610. lt_cv_nm_interface \
  22611. nm_file_list_spec \
  22612. lt_cv_truncate_bin \
  22613. lt_prog_compiler_no_builtin_flag \
  22614. lt_prog_compiler_pic \
  22615. lt_prog_compiler_wl \
  22616. lt_prog_compiler_static \
  22617. lt_cv_prog_compiler_c_o \
  22618. need_locks \
  22619. MANIFEST_TOOL \
  22620. DSYMUTIL \
  22621. NMEDIT \
  22622. LIPO \
  22623. OTOOL \
  22624. OTOOL64 \
  22625. shrext_cmds \
  22626. export_dynamic_flag_spec \
  22627. whole_archive_flag_spec \
  22628. compiler_needs_object \
  22629. with_gnu_ld \
  22630. allow_undefined_flag \
  22631. no_undefined_flag \
  22632. hardcode_libdir_flag_spec \
  22633. hardcode_libdir_separator \
  22634. exclude_expsyms \
  22635. include_expsyms \
  22636. file_list_spec \
  22637. variables_saved_for_relink \
  22638. libname_spec \
  22639. library_names_spec \
  22640. soname_spec \
  22641. install_override_mode \
  22642. finish_eval \
  22643. old_striplib \
  22644. striplib \
  22645. compiler_lib_search_dirs \
  22646. predep_objects \
  22647. postdep_objects \
  22648. predeps \
  22649. postdeps \
  22650. compiler_lib_search_path \
  22651. LD_CXX \
  22652. reload_flag_CXX \
  22653. compiler_CXX \
  22654. lt_prog_compiler_no_builtin_flag_CXX \
  22655. lt_prog_compiler_pic_CXX \
  22656. lt_prog_compiler_wl_CXX \
  22657. lt_prog_compiler_static_CXX \
  22658. lt_cv_prog_compiler_c_o_CXX \
  22659. export_dynamic_flag_spec_CXX \
  22660. whole_archive_flag_spec_CXX \
  22661. compiler_needs_object_CXX \
  22662. with_gnu_ld_CXX \
  22663. allow_undefined_flag_CXX \
  22664. no_undefined_flag_CXX \
  22665. hardcode_libdir_flag_spec_CXX \
  22666. hardcode_libdir_separator_CXX \
  22667. exclude_expsyms_CXX \
  22668. include_expsyms_CXX \
  22669. file_list_spec_CXX \
  22670. compiler_lib_search_dirs_CXX \
  22671. predep_objects_CXX \
  22672. postdep_objects_CXX \
  22673. predeps_CXX \
  22674. postdeps_CXX \
  22675. compiler_lib_search_path_CXX; do
  22676. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22677. *[\\\\\\\`\\"\\\$]*)
  22678. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22679. ;;
  22680. *)
  22681. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22682. ;;
  22683. esac
  22684. done
  22685. # Double-quote double-evaled strings.
  22686. for var in reload_cmds \
  22687. old_postinstall_cmds \
  22688. old_postuninstall_cmds \
  22689. old_archive_cmds \
  22690. extract_expsyms_cmds \
  22691. old_archive_from_new_cmds \
  22692. old_archive_from_expsyms_cmds \
  22693. archive_cmds \
  22694. archive_expsym_cmds \
  22695. module_cmds \
  22696. module_expsym_cmds \
  22697. export_symbols_cmds \
  22698. prelink_cmds \
  22699. postlink_cmds \
  22700. postinstall_cmds \
  22701. postuninstall_cmds \
  22702. finish_cmds \
  22703. sys_lib_search_path_spec \
  22704. configure_time_dlsearch_path \
  22705. configure_time_lt_sys_library_path \
  22706. reload_cmds_CXX \
  22707. old_archive_cmds_CXX \
  22708. old_archive_from_new_cmds_CXX \
  22709. old_archive_from_expsyms_cmds_CXX \
  22710. archive_cmds_CXX \
  22711. archive_expsym_cmds_CXX \
  22712. module_cmds_CXX \
  22713. module_expsym_cmds_CXX \
  22714. export_symbols_cmds_CXX \
  22715. prelink_cmds_CXX \
  22716. postlink_cmds_CXX; do
  22717. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22718. *[\\\\\\\`\\"\\\$]*)
  22719. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22720. ;;
  22721. *)
  22722. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22723. ;;
  22724. esac
  22725. done
  22726. ac_aux_dir='$ac_aux_dir'
  22727. # See if we are running on zsh, and set the options that allow our
  22728. # commands through without removal of \ escapes INIT.
  22729. if test -n "\${ZSH_VERSION+set}"; then
  22730. setopt NO_GLOB_SUBST
  22731. fi
  22732. PACKAGE='$PACKAGE'
  22733. VERSION='$VERSION'
  22734. RM='$RM'
  22735. ofile='$ofile'
  22736. _ACEOF
  22737. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22738. # Handling of arguments.
  22739. for ac_config_target in $ac_config_targets
  22740. do
  22741. case $ac_config_target in
  22742. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  22743. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22744. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22745. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22746. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22747. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  22748. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  22749. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  22750. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22751. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  22752. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  22753. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  22754. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  22755. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  22756. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  22757. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22758. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22759. esac
  22760. done
  22761. # If the user did not use the arguments to specify the items to instantiate,
  22762. # then the envvar interface is used. Set only those that are not.
  22763. # We use the long form for the default assignment because of an extremely
  22764. # bizarre bug on SunOS 4.1.3.
  22765. if $ac_need_defaults; then
  22766. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22767. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22768. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22769. fi
  22770. # Have a temporary directory for convenience. Make it in the build tree
  22771. # simply because there is no reason against having it here, and in addition,
  22772. # creating and moving files from /tmp can sometimes cause problems.
  22773. # Hook for its removal unless debugging.
  22774. # Note that there is a small window in which the directory will not be cleaned:
  22775. # after its creation but before its name has been assigned to `$tmp'.
  22776. $debug ||
  22777. {
  22778. tmp= ac_tmp=
  22779. trap 'exit_status=$?
  22780. : "${ac_tmp:=$tmp}"
  22781. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22782. ' 0
  22783. trap 'as_fn_exit 1' 1 2 13 15
  22784. }
  22785. # Create a (secure) tmp directory for tmp files.
  22786. {
  22787. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22788. test -d "$tmp"
  22789. } ||
  22790. {
  22791. tmp=./conf$$-$RANDOM
  22792. (umask 077 && mkdir "$tmp")
  22793. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22794. ac_tmp=$tmp
  22795. # Set up the scripts for CONFIG_FILES section.
  22796. # No need to generate them if there are no CONFIG_FILES.
  22797. # This happens for instance with `./config.status config.h'.
  22798. if test -n "$CONFIG_FILES"; then
  22799. ac_cr=`echo X | tr X '\015'`
  22800. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22801. # But we know of no other shell where ac_cr would be empty at this
  22802. # point, so we can use a bashism as a fallback.
  22803. if test "x$ac_cr" = x; then
  22804. eval ac_cr=\$\'\\r\'
  22805. fi
  22806. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22807. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22808. ac_cs_awk_cr='\\r'
  22809. else
  22810. ac_cs_awk_cr=$ac_cr
  22811. fi
  22812. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22813. _ACEOF
  22814. {
  22815. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22816. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22817. echo "_ACEOF"
  22818. } >conf$$subs.sh ||
  22819. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22820. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22821. ac_delim='%!_!# '
  22822. for ac_last_try in false false false false false :; do
  22823. . ./conf$$subs.sh ||
  22824. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22825. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22826. if test $ac_delim_n = $ac_delim_num; then
  22827. break
  22828. elif $ac_last_try; then
  22829. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22830. else
  22831. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22832. fi
  22833. done
  22834. rm -f conf$$subs.sh
  22835. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22836. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22837. _ACEOF
  22838. sed -n '
  22839. h
  22840. s/^/S["/; s/!.*/"]=/
  22841. p
  22842. g
  22843. s/^[^!]*!//
  22844. :repl
  22845. t repl
  22846. s/'"$ac_delim"'$//
  22847. t delim
  22848. :nl
  22849. h
  22850. s/\(.\{148\}\)..*/\1/
  22851. t more1
  22852. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22853. p
  22854. n
  22855. b repl
  22856. :more1
  22857. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22858. p
  22859. g
  22860. s/.\{148\}//
  22861. t nl
  22862. :delim
  22863. h
  22864. s/\(.\{148\}\)..*/\1/
  22865. t more2
  22866. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22867. p
  22868. b
  22869. :more2
  22870. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22871. p
  22872. g
  22873. s/.\{148\}//
  22874. t delim
  22875. ' <conf$$subs.awk | sed '
  22876. /^[^""]/{
  22877. N
  22878. s/\n//
  22879. }
  22880. ' >>$CONFIG_STATUS || ac_write_fail=1
  22881. rm -f conf$$subs.awk
  22882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22883. _ACAWK
  22884. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22885. for (key in S) S_is_set[key] = 1
  22886. FS = ""
  22887. }
  22888. {
  22889. line = $ 0
  22890. nfields = split(line, field, "@")
  22891. substed = 0
  22892. len = length(field[1])
  22893. for (i = 2; i < nfields; i++) {
  22894. key = field[i]
  22895. keylen = length(key)
  22896. if (S_is_set[key]) {
  22897. value = S[key]
  22898. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22899. len += length(value) + length(field[++i])
  22900. substed = 1
  22901. } else
  22902. len += 1 + keylen
  22903. }
  22904. print line
  22905. }
  22906. _ACAWK
  22907. _ACEOF
  22908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22909. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22910. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22911. else
  22912. cat
  22913. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22914. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22915. _ACEOF
  22916. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22917. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22918. # trailing colons and then remove the whole line if VPATH becomes empty
  22919. # (actually we leave an empty line to preserve line numbers).
  22920. if test "x$srcdir" = x.; then
  22921. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22922. h
  22923. s///
  22924. s/^/:/
  22925. s/[ ]*$/:/
  22926. s/:\$(srcdir):/:/g
  22927. s/:\${srcdir}:/:/g
  22928. s/:@srcdir@:/:/g
  22929. s/^:*//
  22930. s/:*$//
  22931. x
  22932. s/\(=[ ]*\).*/\1/
  22933. G
  22934. s/\n//
  22935. s/^[^=]*=[ ]*$//
  22936. }'
  22937. fi
  22938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22939. fi # test -n "$CONFIG_FILES"
  22940. # Set up the scripts for CONFIG_HEADERS section.
  22941. # No need to generate them if there are no CONFIG_HEADERS.
  22942. # This happens for instance with `./config.status Makefile'.
  22943. if test -n "$CONFIG_HEADERS"; then
  22944. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22945. BEGIN {
  22946. _ACEOF
  22947. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22948. # here-document in config.status, that substitutes the proper values into
  22949. # config.h.in to produce config.h.
  22950. # Create a delimiter string that does not exist in confdefs.h, to ease
  22951. # handling of long lines.
  22952. ac_delim='%!_!# '
  22953. for ac_last_try in false false :; do
  22954. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22955. if test -z "$ac_tt"; then
  22956. break
  22957. elif $ac_last_try; then
  22958. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22959. else
  22960. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22961. fi
  22962. done
  22963. # For the awk script, D is an array of macro values keyed by name,
  22964. # likewise P contains macro parameters if any. Preserve backslash
  22965. # newline sequences.
  22966. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22967. sed -n '
  22968. s/.\{148\}/&'"$ac_delim"'/g
  22969. t rset
  22970. :rset
  22971. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22972. t def
  22973. d
  22974. :def
  22975. s/\\$//
  22976. t bsnl
  22977. s/["\\]/\\&/g
  22978. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22979. D["\1"]=" \3"/p
  22980. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22981. d
  22982. :bsnl
  22983. s/["\\]/\\&/g
  22984. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22985. D["\1"]=" \3\\\\\\n"\\/p
  22986. t cont
  22987. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22988. t cont
  22989. d
  22990. :cont
  22991. n
  22992. s/.\{148\}/&'"$ac_delim"'/g
  22993. t clear
  22994. :clear
  22995. s/\\$//
  22996. t bsnlc
  22997. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22998. d
  22999. :bsnlc
  23000. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23001. b cont
  23002. ' <confdefs.h | sed '
  23003. s/'"$ac_delim"'/"\\\
  23004. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23005. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23006. for (key in D) D_is_set[key] = 1
  23007. FS = ""
  23008. }
  23009. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23010. line = \$ 0
  23011. split(line, arg, " ")
  23012. if (arg[1] == "#") {
  23013. defundef = arg[2]
  23014. mac1 = arg[3]
  23015. } else {
  23016. defundef = substr(arg[1], 2)
  23017. mac1 = arg[2]
  23018. }
  23019. split(mac1, mac2, "(") #)
  23020. macro = mac2[1]
  23021. prefix = substr(line, 1, index(line, defundef) - 1)
  23022. if (D_is_set[macro]) {
  23023. # Preserve the white space surrounding the "#".
  23024. print prefix "define", macro P[macro] D[macro]
  23025. next
  23026. } else {
  23027. # Replace #undef with comments. This is necessary, for example,
  23028. # in the case of _POSIX_SOURCE, which is predefined and required
  23029. # on some systems where configure will not decide to define it.
  23030. if (defundef == "undef") {
  23031. print "/*", prefix defundef, macro, "*/"
  23032. next
  23033. }
  23034. }
  23035. }
  23036. { print }
  23037. _ACAWK
  23038. _ACEOF
  23039. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23040. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23041. fi # test -n "$CONFIG_HEADERS"
  23042. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23043. shift
  23044. for ac_tag
  23045. do
  23046. case $ac_tag in
  23047. :[FHLC]) ac_mode=$ac_tag; continue;;
  23048. esac
  23049. case $ac_mode$ac_tag in
  23050. :[FHL]*:*);;
  23051. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23052. :[FH]-) ac_tag=-:-;;
  23053. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23054. esac
  23055. ac_save_IFS=$IFS
  23056. IFS=:
  23057. set x $ac_tag
  23058. IFS=$ac_save_IFS
  23059. shift
  23060. ac_file=$1
  23061. shift
  23062. case $ac_mode in
  23063. :L) ac_source=$1;;
  23064. :[FH])
  23065. ac_file_inputs=
  23066. for ac_f
  23067. do
  23068. case $ac_f in
  23069. -) ac_f="$ac_tmp/stdin";;
  23070. *) # Look for the file first in the build tree, then in the source tree
  23071. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23072. # because $ac_f cannot contain `:'.
  23073. test -f "$ac_f" ||
  23074. case $ac_f in
  23075. [\\/$]*) false;;
  23076. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23077. esac ||
  23078. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23079. esac
  23080. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23081. as_fn_append ac_file_inputs " '$ac_f'"
  23082. done
  23083. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23084. # use $as_me), people would be surprised to read:
  23085. # /* config.h. Generated by config.status. */
  23086. configure_input='Generated from '`
  23087. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23088. `' by configure.'
  23089. if test x"$ac_file" != x-; then
  23090. configure_input="$ac_file. $configure_input"
  23091. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23092. $as_echo "$as_me: creating $ac_file" >&6;}
  23093. fi
  23094. # Neutralize special characters interpreted by sed in replacement strings.
  23095. case $configure_input in #(
  23096. *\&* | *\|* | *\\* )
  23097. ac_sed_conf_input=`$as_echo "$configure_input" |
  23098. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23099. *) ac_sed_conf_input=$configure_input;;
  23100. esac
  23101. case $ac_tag in
  23102. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23103. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23104. esac
  23105. ;;
  23106. esac
  23107. ac_dir=`$as_dirname -- "$ac_file" ||
  23108. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23109. X"$ac_file" : 'X\(//\)[^/]' \| \
  23110. X"$ac_file" : 'X\(//\)$' \| \
  23111. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23112. $as_echo X"$ac_file" |
  23113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23114. s//\1/
  23115. q
  23116. }
  23117. /^X\(\/\/\)[^/].*/{
  23118. s//\1/
  23119. q
  23120. }
  23121. /^X\(\/\/\)$/{
  23122. s//\1/
  23123. q
  23124. }
  23125. /^X\(\/\).*/{
  23126. s//\1/
  23127. q
  23128. }
  23129. s/.*/./; q'`
  23130. as_dir="$ac_dir"; as_fn_mkdir_p
  23131. ac_builddir=.
  23132. case "$ac_dir" in
  23133. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23134. *)
  23135. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23136. # A ".." for each directory in $ac_dir_suffix.
  23137. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23138. case $ac_top_builddir_sub in
  23139. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23140. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23141. esac ;;
  23142. esac
  23143. ac_abs_top_builddir=$ac_pwd
  23144. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23145. # for backward compatibility:
  23146. ac_top_builddir=$ac_top_build_prefix
  23147. case $srcdir in
  23148. .) # We are building in place.
  23149. ac_srcdir=.
  23150. ac_top_srcdir=$ac_top_builddir_sub
  23151. ac_abs_top_srcdir=$ac_pwd ;;
  23152. [\\/]* | ?:[\\/]* ) # Absolute name.
  23153. ac_srcdir=$srcdir$ac_dir_suffix;
  23154. ac_top_srcdir=$srcdir
  23155. ac_abs_top_srcdir=$srcdir ;;
  23156. *) # Relative name.
  23157. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23158. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23159. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23160. esac
  23161. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23162. case $ac_mode in
  23163. :F)
  23164. #
  23165. # CONFIG_FILE
  23166. #
  23167. case $INSTALL in
  23168. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23169. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23170. esac
  23171. ac_MKDIR_P=$MKDIR_P
  23172. case $MKDIR_P in
  23173. [\\/$]* | ?:[\\/]* ) ;;
  23174. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23175. esac
  23176. _ACEOF
  23177. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23178. # If the template does not know about datarootdir, expand it.
  23179. # FIXME: This hack should be removed a few years after 2.60.
  23180. ac_datarootdir_hack=; ac_datarootdir_seen=
  23181. ac_sed_dataroot='
  23182. /datarootdir/ {
  23183. p
  23184. q
  23185. }
  23186. /@datadir@/p
  23187. /@docdir@/p
  23188. /@infodir@/p
  23189. /@localedir@/p
  23190. /@mandir@/p'
  23191. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23192. *datarootdir*) ac_datarootdir_seen=yes;;
  23193. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23195. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23196. _ACEOF
  23197. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23198. ac_datarootdir_hack='
  23199. s&@datadir@&$datadir&g
  23200. s&@docdir@&$docdir&g
  23201. s&@infodir@&$infodir&g
  23202. s&@localedir@&$localedir&g
  23203. s&@mandir@&$mandir&g
  23204. s&\\\${datarootdir}&$datarootdir&g' ;;
  23205. esac
  23206. _ACEOF
  23207. # Neutralize VPATH when `$srcdir' = `.'.
  23208. # Shell code in configure.ac might set extrasub.
  23209. # FIXME: do we really want to maintain this feature?
  23210. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23211. ac_sed_extra="$ac_vpsub
  23212. $extrasub
  23213. _ACEOF
  23214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23215. :t
  23216. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23217. s|@configure_input@|$ac_sed_conf_input|;t t
  23218. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23219. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23220. s&@srcdir@&$ac_srcdir&;t t
  23221. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23222. s&@top_srcdir@&$ac_top_srcdir&;t t
  23223. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23224. s&@builddir@&$ac_builddir&;t t
  23225. s&@abs_builddir@&$ac_abs_builddir&;t t
  23226. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23227. s&@INSTALL@&$ac_INSTALL&;t t
  23228. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23229. $ac_datarootdir_hack
  23230. "
  23231. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23232. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23233. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23234. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23235. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23236. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23238. which seems to be undefined. Please make sure it is defined" >&5
  23239. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23240. which seems to be undefined. Please make sure it is defined" >&2;}
  23241. rm -f "$ac_tmp/stdin"
  23242. case $ac_file in
  23243. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23244. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23245. esac \
  23246. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23247. ;;
  23248. :H)
  23249. #
  23250. # CONFIG_HEADER
  23251. #
  23252. if test x"$ac_file" != x-; then
  23253. {
  23254. $as_echo "/* $configure_input */" \
  23255. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23256. } >"$ac_tmp/config.h" \
  23257. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23258. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23259. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23260. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23261. else
  23262. rm -f "$ac_file"
  23263. mv "$ac_tmp/config.h" "$ac_file" \
  23264. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23265. fi
  23266. else
  23267. $as_echo "/* $configure_input */" \
  23268. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23269. || as_fn_error $? "could not create -" "$LINENO" 5
  23270. fi
  23271. # Compute "$ac_file"'s index in $config_headers.
  23272. _am_arg="$ac_file"
  23273. _am_stamp_count=1
  23274. for _am_header in $config_headers :; do
  23275. case $_am_header in
  23276. $_am_arg | $_am_arg:* )
  23277. break ;;
  23278. * )
  23279. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23280. esac
  23281. done
  23282. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23283. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23284. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23285. X"$_am_arg" : 'X\(//\)$' \| \
  23286. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23287. $as_echo X"$_am_arg" |
  23288. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23289. s//\1/
  23290. q
  23291. }
  23292. /^X\(\/\/\)[^/].*/{
  23293. s//\1/
  23294. q
  23295. }
  23296. /^X\(\/\/\)$/{
  23297. s//\1/
  23298. q
  23299. }
  23300. /^X\(\/\).*/{
  23301. s//\1/
  23302. q
  23303. }
  23304. s/.*/./; q'`/stamp-h$_am_stamp_count
  23305. ;;
  23306. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23307. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23308. ;;
  23309. esac
  23310. case $ac_file$ac_mode in
  23311. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23312. # Older Autoconf quotes --file arguments for eval, but not when files
  23313. # are listed without --file. Let's play safe and only enable the eval
  23314. # if we detect the quoting.
  23315. # TODO: see whether this extra hack can be removed once we start
  23316. # requiring Autoconf 2.70 or later.
  23317. case $CONFIG_FILES in #(
  23318. *\'*) :
  23319. eval set x "$CONFIG_FILES" ;; #(
  23320. *) :
  23321. set x $CONFIG_FILES ;; #(
  23322. *) :
  23323. ;;
  23324. esac
  23325. shift
  23326. # Used to flag and report bootstrapping failures.
  23327. am_rc=0
  23328. for am_mf
  23329. do
  23330. # Strip MF so we end up with the name of the file.
  23331. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  23332. # Check whether this is an Automake generated Makefile which includes
  23333. # dependency-tracking related rules and includes.
  23334. # Grep'ing the whole file directly is not great: AIX grep has a line
  23335. # limit of 2048, but all sed's we know have understand at least 4000.
  23336. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  23337. || continue
  23338. am_dirpart=`$as_dirname -- "$am_mf" ||
  23339. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23340. X"$am_mf" : 'X\(//\)[^/]' \| \
  23341. X"$am_mf" : 'X\(//\)$' \| \
  23342. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23343. $as_echo X"$am_mf" |
  23344. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23345. s//\1/
  23346. q
  23347. }
  23348. /^X\(\/\/\)[^/].*/{
  23349. s//\1/
  23350. q
  23351. }
  23352. /^X\(\/\/\)$/{
  23353. s//\1/
  23354. q
  23355. }
  23356. /^X\(\/\).*/{
  23357. s//\1/
  23358. q
  23359. }
  23360. s/.*/./; q'`
  23361. am_filepart=`$as_basename -- "$am_mf" ||
  23362. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  23363. X"$am_mf" : 'X\(//\)$' \| \
  23364. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23365. $as_echo X/"$am_mf" |
  23366. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23367. s//\1/
  23368. q
  23369. }
  23370. /^X\/\(\/\/\)$/{
  23371. s//\1/
  23372. q
  23373. }
  23374. /^X\/\(\/\).*/{
  23375. s//\1/
  23376. q
  23377. }
  23378. s/.*/./; q'`
  23379. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  23380. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23381. | $MAKE -f - am--depfiles" >&5
  23382. (cd "$am_dirpart" \
  23383. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23384. | $MAKE -f - am--depfiles) >&5 2>&5
  23385. ac_status=$?
  23386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23387. (exit $ac_status); } || am_rc=$?
  23388. done
  23389. if test $am_rc -ne 0; then
  23390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23392. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  23393. for automatic dependency tracking. Try re-running configure with the
  23394. '--disable-dependency-tracking' option to at least be able to build
  23395. the package (albeit without support for automatic dependency tracking).
  23396. See \`config.log' for more details" "$LINENO" 5; }
  23397. fi
  23398. { am_dirpart=; unset am_dirpart;}
  23399. { am_filepart=; unset am_filepart;}
  23400. { am_mf=; unset am_mf;}
  23401. { am_rc=; unset am_rc;}
  23402. rm -f conftest-deps.mk
  23403. }
  23404. ;;
  23405. "libtool":C)
  23406. # See if we are running on zsh, and set the options that allow our
  23407. # commands through without removal of \ escapes.
  23408. if test -n "${ZSH_VERSION+set}"; then
  23409. setopt NO_GLOB_SUBST
  23410. fi
  23411. cfgfile=${ofile}T
  23412. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23413. $RM "$cfgfile"
  23414. cat <<_LT_EOF >> "$cfgfile"
  23415. #! $SHELL
  23416. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23417. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23418. # Provide generalized library-building support services.
  23419. # Written by Gordon Matzigkeit, 1996
  23420. # Copyright (C) 2014 Free Software Foundation, Inc.
  23421. # This is free software; see the source for copying conditions. There is NO
  23422. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23423. # GNU Libtool is free software; you can redistribute it and/or modify
  23424. # it under the terms of the GNU General Public License as published by
  23425. # the Free Software Foundation; either version 2 of of the License, or
  23426. # (at your option) any later version.
  23427. #
  23428. # As a special exception to the GNU General Public License, if you
  23429. # distribute this file as part of a program or library that is built
  23430. # using GNU Libtool, you may include this file under the same
  23431. # distribution terms that you use for the rest of that program.
  23432. #
  23433. # GNU Libtool is distributed in the hope that it will be useful, but
  23434. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23435. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23436. # GNU General Public License for more details.
  23437. #
  23438. # You should have received a copy of the GNU General Public License
  23439. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23440. # The names of the tagged configurations supported by this script.
  23441. available_tags='CXX '
  23442. # Configured defaults for sys_lib_dlsearch_path munging.
  23443. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23444. # ### BEGIN LIBTOOL CONFIG
  23445. # Which release of libtool.m4 was used?
  23446. macro_version=$macro_version
  23447. macro_revision=$macro_revision
  23448. # Whether or not to build shared libraries.
  23449. build_libtool_libs=$enable_shared
  23450. # Whether or not to build static libraries.
  23451. build_old_libs=$enable_static
  23452. # What type of objects to build.
  23453. pic_mode=$pic_mode
  23454. # Whether or not to optimize for fast installation.
  23455. fast_install=$enable_fast_install
  23456. # Shared archive member basename,for filename based shared library versioning on AIX.
  23457. shared_archive_member_spec=$shared_archive_member_spec
  23458. # Shell to use when invoking shell scripts.
  23459. SHELL=$lt_SHELL
  23460. # An echo program that protects backslashes.
  23461. ECHO=$lt_ECHO
  23462. # The PATH separator for the build system.
  23463. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23464. # The host system.
  23465. host_alias=$host_alias
  23466. host=$host
  23467. host_os=$host_os
  23468. # The build system.
  23469. build_alias=$build_alias
  23470. build=$build
  23471. build_os=$build_os
  23472. # A sed program that does not truncate output.
  23473. SED=$lt_SED
  23474. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23475. Xsed="\$SED -e 1s/^X//"
  23476. # A grep program that handles long lines.
  23477. GREP=$lt_GREP
  23478. # An ERE matcher.
  23479. EGREP=$lt_EGREP
  23480. # A literal string matcher.
  23481. FGREP=$lt_FGREP
  23482. # A BSD- or MS-compatible name lister.
  23483. NM=$lt_NM
  23484. # Whether we need soft or hard links.
  23485. LN_S=$lt_LN_S
  23486. # What is the maximum length of a command?
  23487. max_cmd_len=$max_cmd_len
  23488. # Object file suffix (normally "o").
  23489. objext=$ac_objext
  23490. # Executable file suffix (normally "").
  23491. exeext=$exeext
  23492. # whether the shell understands "unset".
  23493. lt_unset=$lt_unset
  23494. # turn spaces into newlines.
  23495. SP2NL=$lt_lt_SP2NL
  23496. # turn newlines into spaces.
  23497. NL2SP=$lt_lt_NL2SP
  23498. # convert \$build file names to \$host format.
  23499. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23500. # convert \$build files to toolchain format.
  23501. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23502. # An object symbol dumper.
  23503. OBJDUMP=$lt_OBJDUMP
  23504. # Method to check whether dependent libraries are shared objects.
  23505. deplibs_check_method=$lt_deplibs_check_method
  23506. # Command to use when deplibs_check_method = "file_magic".
  23507. file_magic_cmd=$lt_file_magic_cmd
  23508. # How to find potential files when deplibs_check_method = "file_magic".
  23509. file_magic_glob=$lt_file_magic_glob
  23510. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23511. want_nocaseglob=$lt_want_nocaseglob
  23512. # DLL creation program.
  23513. DLLTOOL=$lt_DLLTOOL
  23514. # Command to associate shared and link libraries.
  23515. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23516. # The archiver.
  23517. AR=$lt_AR
  23518. # Flags to create an archive.
  23519. AR_FLAGS=$lt_AR_FLAGS
  23520. # How to feed a file listing to the archiver.
  23521. archiver_list_spec=$lt_archiver_list_spec
  23522. # A symbol stripping program.
  23523. STRIP=$lt_STRIP
  23524. # Commands used to install an old-style archive.
  23525. RANLIB=$lt_RANLIB
  23526. old_postinstall_cmds=$lt_old_postinstall_cmds
  23527. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23528. # Whether to use a lock for old archive extraction.
  23529. lock_old_archive_extraction=$lock_old_archive_extraction
  23530. # A C compiler.
  23531. LTCC=$lt_CC
  23532. # LTCC compiler flags.
  23533. LTCFLAGS=$lt_CFLAGS
  23534. # Take the output of nm and produce a listing of raw symbols and C names.
  23535. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23536. # Transform the output of nm in a proper C declaration.
  23537. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23538. # Transform the output of nm into a list of symbols to manually relocate.
  23539. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23540. # Transform the output of nm in a C name address pair.
  23541. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23542. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23543. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23544. # The name lister interface.
  23545. nm_interface=$lt_lt_cv_nm_interface
  23546. # Specify filename containing input files for \$NM.
  23547. nm_file_list_spec=$lt_nm_file_list_spec
  23548. # The root where to search for dependent libraries,and where our libraries should be installed.
  23549. lt_sysroot=$lt_sysroot
  23550. # Command to truncate a binary pipe.
  23551. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23552. # The name of the directory that contains temporary libtool files.
  23553. objdir=$objdir
  23554. # Used to examine libraries when file_magic_cmd begins with "file".
  23555. MAGIC_CMD=$MAGIC_CMD
  23556. # Must we lock files when doing compilation?
  23557. need_locks=$lt_need_locks
  23558. # Manifest tool.
  23559. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23560. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23561. DSYMUTIL=$lt_DSYMUTIL
  23562. # Tool to change global to local symbols on Mac OS X.
  23563. NMEDIT=$lt_NMEDIT
  23564. # Tool to manipulate fat objects and archives on Mac OS X.
  23565. LIPO=$lt_LIPO
  23566. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23567. OTOOL=$lt_OTOOL
  23568. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23569. OTOOL64=$lt_OTOOL64
  23570. # Old archive suffix (normally "a").
  23571. libext=$libext
  23572. # Shared library suffix (normally ".so").
  23573. shrext_cmds=$lt_shrext_cmds
  23574. # The commands to extract the exported symbol list from a shared archive.
  23575. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23576. # Variables whose values should be saved in libtool wrapper scripts and
  23577. # restored at link time.
  23578. variables_saved_for_relink=$lt_variables_saved_for_relink
  23579. # Do we need the "lib" prefix for modules?
  23580. need_lib_prefix=$need_lib_prefix
  23581. # Do we need a version for libraries?
  23582. need_version=$need_version
  23583. # Library versioning type.
  23584. version_type=$version_type
  23585. # Shared library runtime path variable.
  23586. runpath_var=$runpath_var
  23587. # Shared library path variable.
  23588. shlibpath_var=$shlibpath_var
  23589. # Is shlibpath searched before the hard-coded library search path?
  23590. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23591. # Format of library name prefix.
  23592. libname_spec=$lt_libname_spec
  23593. # List of archive names. First name is the real one, the rest are links.
  23594. # The last name is the one that the linker finds with -lNAME
  23595. library_names_spec=$lt_library_names_spec
  23596. # The coded name of the library, if different from the real name.
  23597. soname_spec=$lt_soname_spec
  23598. # Permission mode override for installation of shared libraries.
  23599. install_override_mode=$lt_install_override_mode
  23600. # Command to use after installation of a shared archive.
  23601. postinstall_cmds=$lt_postinstall_cmds
  23602. # Command to use after uninstallation of a shared archive.
  23603. postuninstall_cmds=$lt_postuninstall_cmds
  23604. # Commands used to finish a libtool library installation in a directory.
  23605. finish_cmds=$lt_finish_cmds
  23606. # As "finish_cmds", except a single script fragment to be evaled but
  23607. # not shown.
  23608. finish_eval=$lt_finish_eval
  23609. # Whether we should hardcode library paths into libraries.
  23610. hardcode_into_libs=$hardcode_into_libs
  23611. # Compile-time system search path for libraries.
  23612. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23613. # Detected run-time system search path for libraries.
  23614. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23615. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23616. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23617. # Whether dlopen is supported.
  23618. dlopen_support=$enable_dlopen
  23619. # Whether dlopen of programs is supported.
  23620. dlopen_self=$enable_dlopen_self
  23621. # Whether dlopen of statically linked programs is supported.
  23622. dlopen_self_static=$enable_dlopen_self_static
  23623. # Commands to strip libraries.
  23624. old_striplib=$lt_old_striplib
  23625. striplib=$lt_striplib
  23626. # The linker used to build libraries.
  23627. LD=$lt_LD
  23628. # How to create reloadable object files.
  23629. reload_flag=$lt_reload_flag
  23630. reload_cmds=$lt_reload_cmds
  23631. # Commands used to build an old-style archive.
  23632. old_archive_cmds=$lt_old_archive_cmds
  23633. # A language specific compiler.
  23634. CC=$lt_compiler
  23635. # Is the compiler the GNU compiler?
  23636. with_gcc=$GCC
  23637. # Compiler flag to turn off builtin functions.
  23638. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23639. # Additional compiler flags for building library objects.
  23640. pic_flag=$lt_lt_prog_compiler_pic
  23641. # How to pass a linker flag through the compiler.
  23642. wl=$lt_lt_prog_compiler_wl
  23643. # Compiler flag to prevent dynamic linking.
  23644. link_static_flag=$lt_lt_prog_compiler_static
  23645. # Does compiler simultaneously support -c and -o options?
  23646. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23647. # Whether or not to add -lc for building shared libraries.
  23648. build_libtool_need_lc=$archive_cmds_need_lc
  23649. # Whether or not to disallow shared libs when runtime libs are static.
  23650. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23651. # Compiler flag to allow reflexive dlopens.
  23652. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23653. # Compiler flag to generate shared objects directly from archives.
  23654. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23655. # Whether the compiler copes with passing no objects directly.
  23656. compiler_needs_object=$lt_compiler_needs_object
  23657. # Create an old-style archive from a shared archive.
  23658. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23659. # Create a temporary old-style archive to link instead of a shared archive.
  23660. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23661. # Commands used to build a shared archive.
  23662. archive_cmds=$lt_archive_cmds
  23663. archive_expsym_cmds=$lt_archive_expsym_cmds
  23664. # Commands used to build a loadable module if different from building
  23665. # a shared archive.
  23666. module_cmds=$lt_module_cmds
  23667. module_expsym_cmds=$lt_module_expsym_cmds
  23668. # Whether we are building with GNU ld or not.
  23669. with_gnu_ld=$lt_with_gnu_ld
  23670. # Flag that allows shared libraries with undefined symbols to be built.
  23671. allow_undefined_flag=$lt_allow_undefined_flag
  23672. # Flag that enforces no undefined symbols.
  23673. no_undefined_flag=$lt_no_undefined_flag
  23674. # Flag to hardcode \$libdir into a binary during linking.
  23675. # This must work even if \$libdir does not exist
  23676. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23677. # Whether we need a single "-rpath" flag with a separated argument.
  23678. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23679. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23680. # DIR into the resulting binary.
  23681. hardcode_direct=$hardcode_direct
  23682. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23683. # DIR into the resulting binary and the resulting library dependency is
  23684. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23685. # library is relocated.
  23686. hardcode_direct_absolute=$hardcode_direct_absolute
  23687. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23688. # into the resulting binary.
  23689. hardcode_minus_L=$hardcode_minus_L
  23690. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23691. # into the resulting binary.
  23692. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23693. # Set to "yes" if building a shared library automatically hardcodes DIR
  23694. # into the library and all subsequent libraries and executables linked
  23695. # against it.
  23696. hardcode_automatic=$hardcode_automatic
  23697. # Set to yes if linker adds runtime paths of dependent libraries
  23698. # to runtime path list.
  23699. inherit_rpath=$inherit_rpath
  23700. # Whether libtool must link a program against all its dependency libraries.
  23701. link_all_deplibs=$link_all_deplibs
  23702. # Set to "yes" if exported symbols are required.
  23703. always_export_symbols=$always_export_symbols
  23704. # The commands to list exported symbols.
  23705. export_symbols_cmds=$lt_export_symbols_cmds
  23706. # Symbols that should not be listed in the preloaded symbols.
  23707. exclude_expsyms=$lt_exclude_expsyms
  23708. # Symbols that must always be exported.
  23709. include_expsyms=$lt_include_expsyms
  23710. # Commands necessary for linking programs (against libraries) with templates.
  23711. prelink_cmds=$lt_prelink_cmds
  23712. # Commands necessary for finishing linking programs.
  23713. postlink_cmds=$lt_postlink_cmds
  23714. # Specify filename containing input files.
  23715. file_list_spec=$lt_file_list_spec
  23716. # How to hardcode a shared library path into an executable.
  23717. hardcode_action=$hardcode_action
  23718. # The directories searched by this compiler when creating a shared library.
  23719. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23720. # Dependencies to place before and after the objects being linked to
  23721. # create a shared library.
  23722. predep_objects=$lt_predep_objects
  23723. postdep_objects=$lt_postdep_objects
  23724. predeps=$lt_predeps
  23725. postdeps=$lt_postdeps
  23726. # The library search path used internally by the compiler when linking
  23727. # a shared library.
  23728. compiler_lib_search_path=$lt_compiler_lib_search_path
  23729. # ### END LIBTOOL CONFIG
  23730. _LT_EOF
  23731. cat <<'_LT_EOF' >> "$cfgfile"
  23732. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  23733. # func_munge_path_list VARIABLE PATH
  23734. # -----------------------------------
  23735. # VARIABLE is name of variable containing _space_ separated list of
  23736. # directories to be munged by the contents of PATH, which is string
  23737. # having a format:
  23738. # "DIR[:DIR]:"
  23739. # string "DIR[ DIR]" will be prepended to VARIABLE
  23740. # ":DIR[:DIR]"
  23741. # string "DIR[ DIR]" will be appended to VARIABLE
  23742. # "DIRP[:DIRP]::[DIRA:]DIRA"
  23743. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  23744. # "DIRA[ DIRA]" will be appended to VARIABLE
  23745. # "DIR[:DIR]"
  23746. # VARIABLE will be replaced by "DIR[ DIR]"
  23747. func_munge_path_list ()
  23748. {
  23749. case x$2 in
  23750. x)
  23751. ;;
  23752. *:)
  23753. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  23754. ;;
  23755. x:*)
  23756. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  23757. ;;
  23758. *::*)
  23759. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  23760. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  23761. ;;
  23762. *)
  23763. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  23764. ;;
  23765. esac
  23766. }
  23767. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  23768. func_cc_basename ()
  23769. {
  23770. for cc_temp in $*""; do
  23771. case $cc_temp in
  23772. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23773. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23774. \-*) ;;
  23775. *) break;;
  23776. esac
  23777. done
  23778. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  23779. }
  23780. # ### END FUNCTIONS SHARED WITH CONFIGURE
  23781. _LT_EOF
  23782. case $host_os in
  23783. aix3*)
  23784. cat <<\_LT_EOF >> "$cfgfile"
  23785. # AIX sometimes has problems with the GCC collect2 program. For some
  23786. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23787. # vanish in a puff of smoke.
  23788. if test set != "${COLLECT_NAMES+set}"; then
  23789. COLLECT_NAMES=
  23790. export COLLECT_NAMES
  23791. fi
  23792. _LT_EOF
  23793. ;;
  23794. esac
  23795. ltmain=$ac_aux_dir/ltmain.sh
  23796. # We use sed instead of cat because bash on DJGPP gets confused if
  23797. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23798. # text mode, it properly converts lines to CR/LF. This bash problem
  23799. # is reportedly fixed, but why not run on old versions too?
  23800. sed '$q' "$ltmain" >> "$cfgfile" \
  23801. || (rm -f "$cfgfile"; exit 1)
  23802. mv -f "$cfgfile" "$ofile" ||
  23803. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23804. chmod +x "$ofile"
  23805. cat <<_LT_EOF >> "$ofile"
  23806. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23807. # The linker used to build libraries.
  23808. LD=$lt_LD_CXX
  23809. # How to create reloadable object files.
  23810. reload_flag=$lt_reload_flag_CXX
  23811. reload_cmds=$lt_reload_cmds_CXX
  23812. # Commands used to build an old-style archive.
  23813. old_archive_cmds=$lt_old_archive_cmds_CXX
  23814. # A language specific compiler.
  23815. CC=$lt_compiler_CXX
  23816. # Is the compiler the GNU compiler?
  23817. with_gcc=$GCC_CXX
  23818. # Compiler flag to turn off builtin functions.
  23819. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23820. # Additional compiler flags for building library objects.
  23821. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23822. # How to pass a linker flag through the compiler.
  23823. wl=$lt_lt_prog_compiler_wl_CXX
  23824. # Compiler flag to prevent dynamic linking.
  23825. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23826. # Does compiler simultaneously support -c and -o options?
  23827. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23828. # Whether or not to add -lc for building shared libraries.
  23829. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23830. # Whether or not to disallow shared libs when runtime libs are static.
  23831. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23832. # Compiler flag to allow reflexive dlopens.
  23833. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23834. # Compiler flag to generate shared objects directly from archives.
  23835. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23836. # Whether the compiler copes with passing no objects directly.
  23837. compiler_needs_object=$lt_compiler_needs_object_CXX
  23838. # Create an old-style archive from a shared archive.
  23839. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23840. # Create a temporary old-style archive to link instead of a shared archive.
  23841. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23842. # Commands used to build a shared archive.
  23843. archive_cmds=$lt_archive_cmds_CXX
  23844. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23845. # Commands used to build a loadable module if different from building
  23846. # a shared archive.
  23847. module_cmds=$lt_module_cmds_CXX
  23848. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23849. # Whether we are building with GNU ld or not.
  23850. with_gnu_ld=$lt_with_gnu_ld_CXX
  23851. # Flag that allows shared libraries with undefined symbols to be built.
  23852. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23853. # Flag that enforces no undefined symbols.
  23854. no_undefined_flag=$lt_no_undefined_flag_CXX
  23855. # Flag to hardcode \$libdir into a binary during linking.
  23856. # This must work even if \$libdir does not exist
  23857. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23858. # Whether we need a single "-rpath" flag with a separated argument.
  23859. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23860. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23861. # DIR into the resulting binary.
  23862. hardcode_direct=$hardcode_direct_CXX
  23863. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23864. # DIR into the resulting binary and the resulting library dependency is
  23865. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23866. # library is relocated.
  23867. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23868. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23869. # into the resulting binary.
  23870. hardcode_minus_L=$hardcode_minus_L_CXX
  23871. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23872. # into the resulting binary.
  23873. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23874. # Set to "yes" if building a shared library automatically hardcodes DIR
  23875. # into the library and all subsequent libraries and executables linked
  23876. # against it.
  23877. hardcode_automatic=$hardcode_automatic_CXX
  23878. # Set to yes if linker adds runtime paths of dependent libraries
  23879. # to runtime path list.
  23880. inherit_rpath=$inherit_rpath_CXX
  23881. # Whether libtool must link a program against all its dependency libraries.
  23882. link_all_deplibs=$link_all_deplibs_CXX
  23883. # Set to "yes" if exported symbols are required.
  23884. always_export_symbols=$always_export_symbols_CXX
  23885. # The commands to list exported symbols.
  23886. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23887. # Symbols that should not be listed in the preloaded symbols.
  23888. exclude_expsyms=$lt_exclude_expsyms_CXX
  23889. # Symbols that must always be exported.
  23890. include_expsyms=$lt_include_expsyms_CXX
  23891. # Commands necessary for linking programs (against libraries) with templates.
  23892. prelink_cmds=$lt_prelink_cmds_CXX
  23893. # Commands necessary for finishing linking programs.
  23894. postlink_cmds=$lt_postlink_cmds_CXX
  23895. # Specify filename containing input files.
  23896. file_list_spec=$lt_file_list_spec_CXX
  23897. # How to hardcode a shared library path into an executable.
  23898. hardcode_action=$hardcode_action_CXX
  23899. # The directories searched by this compiler when creating a shared library.
  23900. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23901. # Dependencies to place before and after the objects being linked to
  23902. # create a shared library.
  23903. predep_objects=$lt_predep_objects_CXX
  23904. postdep_objects=$lt_postdep_objects_CXX
  23905. predeps=$lt_predeps_CXX
  23906. postdeps=$lt_postdeps_CXX
  23907. # The library search path used internally by the compiler when linking
  23908. # a shared library.
  23909. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23910. # ### END LIBTOOL TAG CONFIG: CXX
  23911. _LT_EOF
  23912. ;;
  23913. esac
  23914. done # for ac_tag
  23915. as_fn_exit 0
  23916. _ACEOF
  23917. ac_clean_files=$ac_clean_files_save
  23918. test $ac_write_fail = 0 ||
  23919. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23920. # configure is writing to config.log, and then calls config.status.
  23921. # config.status does its own redirection, appending to config.log.
  23922. # Unfortunately, on DOS this fails, as config.log is still kept open
  23923. # by configure, so config.status won't be able to write to it; its
  23924. # output is simply discarded. So we exec the FD to /dev/null,
  23925. # effectively closing config.log, so it can be properly (re)opened and
  23926. # appended to by config.status. When coming back to configure, we
  23927. # need to make the FD available again.
  23928. if test "$no_create" != yes; then
  23929. ac_cs_success=:
  23930. ac_config_status_args=
  23931. test "$silent" = yes &&
  23932. ac_config_status_args="$ac_config_status_args --quiet"
  23933. exec 5>/dev/null
  23934. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23935. exec 5>>config.log
  23936. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23937. # would make configure fail if this is the last instruction.
  23938. $ac_cs_success || as_fn_exit 1
  23939. fi
  23940. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23942. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23943. fi
  23944. # Configuration results
  23945. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  23946. ##########################################################################
  23947. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23948. ##########################################################################
  23949. libpcap: ${foundpcap} (${libpcap_version})
  23950. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23951. libdnet: ${founddnet} ${libdnet_version}
  23952. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23953. Use libopts tearoff: ${enable_local_libopts}
  23954. 64bit counter support: ${use64bit_counters}
  23955. tcpdump binary path: ${tcpdump_path}
  23956. fragroute support: ${enable_fragroute}
  23957. tcpbridge support: ${enable_tcpbridge}
  23958. tcpliveplay support: ${enable_tcpliveplay}
  23959. Supported Packet Injection Methods (*):
  23960. Linux TX_RING: ${have_tx_ring}
  23961. Linux PF_PACKET: ${have_pf}
  23962. BSD BPF: ${have_bpf}
  23963. libdnet: ${have_libdnet}
  23964. pcap_inject: ${have_pcap_inject}
  23965. pcap_sendpacket: ${have_pcap_sendpacket} **
  23966. pcap_netmap ${have_pcap_netmap}
  23967. Linux/BSD netmap: ${have_netmap}
  23968. Tuntap device support: ${have_tuntap}
  23969. * In order of preference; see configure --help to override
  23970. ** Required for tcpbridge
  23971. " >&5
  23972. $as_echo "
  23973. ##########################################################################
  23974. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23975. ##########################################################################
  23976. libpcap: ${foundpcap} (${libpcap_version})
  23977. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23978. libdnet: ${founddnet} ${libdnet_version}
  23979. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23980. Use libopts tearoff: ${enable_local_libopts}
  23981. 64bit counter support: ${use64bit_counters}
  23982. tcpdump binary path: ${tcpdump_path}
  23983. fragroute support: ${enable_fragroute}
  23984. tcpbridge support: ${enable_tcpbridge}
  23985. tcpliveplay support: ${enable_tcpliveplay}
  23986. Supported Packet Injection Methods (*):
  23987. Linux TX_RING: ${have_tx_ring}
  23988. Linux PF_PACKET: ${have_pf}
  23989. BSD BPF: ${have_bpf}
  23990. libdnet: ${have_libdnet}
  23991. pcap_inject: ${have_pcap_inject}
  23992. pcap_sendpacket: ${have_pcap_sendpacket} **
  23993. pcap_netmap ${have_pcap_netmap}
  23994. Linux/BSD netmap: ${have_netmap}
  23995. Tuntap device support: ${have_tuntap}
  23996. * In order of preference; see configure --help to override
  23997. ** Required for tcpbridge
  23998. " >&6; }
  23999. case $host in
  24000. *-*-cygwin)
  24001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  24002. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  24003. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  24004. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  24005. ;;
  24006. esac