configure 831 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.5.1.
  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.5.1'
  544. PACKAGE_STRING='tcpreplay 4.5.1'
  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_tsan
  633. build_asan
  634. WORDS_BIGENDIAN_FALSE
  635. WORDS_BIGENDIAN_TRUE
  636. SYSTEM_STRLCPY_FALSE
  637. SYSTEM_STRLCPY_TRUE
  638. LIBOBJS
  639. rmmod
  640. insmod
  641. depmod
  642. GROFF
  643. AUTOGEN
  644. CUT
  645. ECHO
  646. PRINTF
  647. CXXCPP
  648. am__fastdepCXX_FALSE
  649. am__fastdepCXX_TRUE
  650. CXXDEPMODE
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. CPP
  655. LT_SYS_LIBRARY_PATH
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. RANLIB
  663. DLLTOOL
  664. OBJDUMP
  665. LN_S
  666. NM
  667. ac_ct_DUMPBIN
  668. DUMPBIN
  669. LD
  670. FGREP
  671. EGREP
  672. GREP
  673. SED
  674. am__fastdepCC_FALSE
  675. am__fastdepCC_TRUE
  676. CCDEPMODE
  677. am__nodep
  678. AMDEPBACKSLASH
  679. AMDEP_FALSE
  680. AMDEP_TRUE
  681. am__include
  682. DEPDIR
  683. OBJEXT
  684. EXEEXT
  685. ac_ct_CC
  686. CPPFLAGS
  687. LDFLAGS
  688. CFLAGS
  689. CC
  690. ac_ct_AR
  691. AR
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. AM_DEFAULT_V
  695. AM_V
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. LIBTOOL
  720. MACOSX_SDK_PATH
  721. CROSS_LD
  722. CROSS_ARCH
  723. target_os
  724. target_vendor
  725. target_cpu
  726. target
  727. host_os
  728. host_vendor
  729. host_cpu
  730. host
  731. build_os
  732. build_vendor
  733. build_cpu
  734. build
  735. TCPREPLAY_RELEASE
  736. TCPREPLAY_VERSION
  737. MAINT
  738. MAINTAINER_MODE_FALSE
  739. MAINTAINER_MODE_TRUE
  740. target_alias
  741. host_alias
  742. build_alias
  743. LIBS
  744. ECHO_T
  745. ECHO_N
  746. ECHO_C
  747. DEFS
  748. mandir
  749. localedir
  750. libdir
  751. psdir
  752. pdfdir
  753. dvidir
  754. htmldir
  755. infodir
  756. docdir
  757. oldincludedir
  758. includedir
  759. runstatedir
  760. localstatedir
  761. sharedstatedir
  762. sysconfdir
  763. datadir
  764. datarootdir
  765. libexecdir
  766. sbindir
  767. bindir
  768. program_transform_name
  769. prefix
  770. exec_prefix
  771. PACKAGE_URL
  772. PACKAGE_BUGREPORT
  773. PACKAGE_STRING
  774. PACKAGE_VERSION
  775. PACKAGE_TARNAME
  776. PACKAGE_NAME
  777. PATH_SEPARATOR
  778. SHELL
  779. am__quote'
  780. ac_subst_files=''
  781. ac_user_opts='
  782. enable_option_checking
  783. enable_maintainer_mode
  784. with_dmalloc
  785. with_macos_sdk
  786. with_pfring_lib
  787. enable_silent_rules
  788. enable_dependency_tracking
  789. enable_shared
  790. enable_static
  791. with_pic
  792. enable_fast_install
  793. with_aix_soname
  794. with_gnu_ld
  795. with_sysroot
  796. enable_libtool_lock
  797. enable_largefile
  798. enable_asan
  799. enable_tsan
  800. enable_debug
  801. enable_extra_debug
  802. enable_timestamp_trace
  803. enable_dmalloc
  804. enable_pedantic
  805. enable_efence
  806. enable_gprof
  807. enable_pcapconfig
  808. enable_64bits
  809. enable_force_bpf
  810. enable_force_pf
  811. enable_force_libdnet
  812. enable_force_libxdp
  813. enable_force_inject
  814. enable_force_sendpacket
  815. enable_static_link
  816. enable_dynamic_link
  817. enable_tuntap
  818. with_libpcap
  819. with_netmap
  820. with_libdnet
  821. with_pcapnav_config
  822. with_tcpdump
  823. with_testnic
  824. with_testnic2
  825. enable_nls
  826. enable_local_libopts
  827. enable_libopts_install
  828. with_autoopts_config
  829. with_regex_header
  830. with_libregex
  831. with_libregex_cflags
  832. with_libregex_libs
  833. enable_optional_args
  834. '
  835. ac_precious_vars='build_alias
  836. host_alias
  837. target_alias
  838. CC
  839. CFLAGS
  840. LDFLAGS
  841. LIBS
  842. CPPFLAGS
  843. LT_SYS_LIBRARY_PATH
  844. CPP
  845. CXX
  846. CXXFLAGS
  847. CCC
  848. CXXCPP'
  849. # Initialize some variables set by options.
  850. ac_init_help=
  851. ac_init_version=false
  852. ac_unrecognized_opts=
  853. ac_unrecognized_sep=
  854. # The variables have the same names as the options, with
  855. # dashes changed to underlines.
  856. cache_file=/dev/null
  857. exec_prefix=NONE
  858. no_create=
  859. no_recursion=
  860. prefix=NONE
  861. program_prefix=NONE
  862. program_suffix=NONE
  863. program_transform_name=s,x,x,
  864. silent=
  865. site=
  866. srcdir=
  867. verbose=
  868. x_includes=NONE
  869. x_libraries=NONE
  870. # Installation directory options.
  871. # These are left unexpanded so users can "make install exec_prefix=/foo"
  872. # and all the variables that are supposed to be based on exec_prefix
  873. # by default will actually change.
  874. # Use braces instead of parens because sh, perl, etc. also accept them.
  875. # (The list follows the same order as the GNU Coding Standards.)
  876. bindir='${exec_prefix}/bin'
  877. sbindir='${exec_prefix}/sbin'
  878. libexecdir='${exec_prefix}/libexec'
  879. datarootdir='${prefix}/share'
  880. datadir='${datarootdir}'
  881. sysconfdir='${prefix}/etc'
  882. sharedstatedir='${prefix}/com'
  883. localstatedir='${prefix}/var'
  884. runstatedir='${localstatedir}/run'
  885. includedir='${prefix}/include'
  886. oldincludedir='/usr/include'
  887. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  888. infodir='${datarootdir}/info'
  889. htmldir='${docdir}'
  890. dvidir='${docdir}'
  891. pdfdir='${docdir}'
  892. psdir='${docdir}'
  893. libdir='${exec_prefix}/lib'
  894. localedir='${datarootdir}/locale'
  895. mandir='${datarootdir}/man'
  896. ac_prev=
  897. ac_dashdash=
  898. for ac_option
  899. do
  900. # If the previous option needs an argument, assign it.
  901. if test -n "$ac_prev"; then
  902. eval $ac_prev=\$ac_option
  903. ac_prev=
  904. continue
  905. fi
  906. case $ac_option in
  907. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  908. *=) ac_optarg= ;;
  909. *) ac_optarg=yes ;;
  910. esac
  911. # Accept the important Cygnus configure options, so we can diagnose typos.
  912. case $ac_dashdash$ac_option in
  913. --)
  914. ac_dashdash=yes ;;
  915. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  916. ac_prev=bindir ;;
  917. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  918. bindir=$ac_optarg ;;
  919. -build | --build | --buil | --bui | --bu)
  920. ac_prev=build_alias ;;
  921. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  922. build_alias=$ac_optarg ;;
  923. -cache-file | --cache-file | --cache-fil | --cache-fi \
  924. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  925. ac_prev=cache_file ;;
  926. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  927. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  928. cache_file=$ac_optarg ;;
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. -datadir | --datadir | --datadi | --datad)
  932. ac_prev=datadir ;;
  933. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  934. datadir=$ac_optarg ;;
  935. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  936. | --dataroo | --dataro | --datar)
  937. ac_prev=datarootdir ;;
  938. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  939. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  940. datarootdir=$ac_optarg ;;
  941. -disable-* | --disable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. as_fn_error $? "invalid feature name: $ac_useropt"
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=no ;;
  956. -docdir | --docdir | --docdi | --doc | --do)
  957. ac_prev=docdir ;;
  958. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959. docdir=$ac_optarg ;;
  960. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  961. ac_prev=dvidir ;;
  962. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  963. dvidir=$ac_optarg ;;
  964. -enable-* | --enable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid feature name: $ac_useropt"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=\$ac_optarg ;;
  979. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  980. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  981. | --exec | --exe | --ex)
  982. ac_prev=exec_prefix ;;
  983. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  984. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  985. | --exec=* | --exe=* | --ex=*)
  986. exec_prefix=$ac_optarg ;;
  987. -gas | --gas | --ga | --g)
  988. # Obsolete; use --with-gas.
  989. with_gas=yes ;;
  990. -help | --help | --hel | --he | -h)
  991. ac_init_help=long ;;
  992. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  993. ac_init_help=recursive ;;
  994. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  995. ac_init_help=short ;;
  996. -host | --host | --hos | --ho)
  997. ac_prev=host_alias ;;
  998. -host=* | --host=* | --hos=* | --ho=*)
  999. host_alias=$ac_optarg ;;
  1000. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1001. ac_prev=htmldir ;;
  1002. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1003. | --ht=*)
  1004. htmldir=$ac_optarg ;;
  1005. -includedir | --includedir | --includedi | --included | --include \
  1006. | --includ | --inclu | --incl | --inc)
  1007. ac_prev=includedir ;;
  1008. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1009. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1010. includedir=$ac_optarg ;;
  1011. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1012. ac_prev=infodir ;;
  1013. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1014. infodir=$ac_optarg ;;
  1015. -libdir | --libdir | --libdi | --libd)
  1016. ac_prev=libdir ;;
  1017. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1018. libdir=$ac_optarg ;;
  1019. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020. | --libexe | --libex | --libe)
  1021. ac_prev=libexecdir ;;
  1022. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023. | --libexe=* | --libex=* | --libe=*)
  1024. libexecdir=$ac_optarg ;;
  1025. -localedir | --localedir | --localedi | --localed | --locale)
  1026. ac_prev=localedir ;;
  1027. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1028. localedir=$ac_optarg ;;
  1029. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1030. | --localstate | --localstat | --localsta | --localst | --locals)
  1031. ac_prev=localstatedir ;;
  1032. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1033. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1034. localstatedir=$ac_optarg ;;
  1035. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1036. ac_prev=mandir ;;
  1037. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1038. mandir=$ac_optarg ;;
  1039. -nfp | --nfp | --nf)
  1040. # Obsolete; use --without-fp.
  1041. with_fp=no ;;
  1042. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043. | --no-cr | --no-c | -n)
  1044. no_create=yes ;;
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1049. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1050. | --oldin | --oldi | --old | --ol | --o)
  1051. ac_prev=oldincludedir ;;
  1052. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1053. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1054. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1055. oldincludedir=$ac_optarg ;;
  1056. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1057. ac_prev=prefix ;;
  1058. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1059. prefix=$ac_optarg ;;
  1060. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1061. | --program-pre | --program-pr | --program-p)
  1062. ac_prev=program_prefix ;;
  1063. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1064. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1065. program_prefix=$ac_optarg ;;
  1066. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1067. | --program-suf | --program-su | --program-s)
  1068. ac_prev=program_suffix ;;
  1069. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1070. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1071. program_suffix=$ac_optarg ;;
  1072. -program-transform-name | --program-transform-name \
  1073. | --program-transform-nam | --program-transform-na \
  1074. | --program-transform-n | --program-transform- \
  1075. | --program-transform | --program-transfor \
  1076. | --program-transfo | --program-transf \
  1077. | --program-trans | --program-tran \
  1078. | --progr-tra | --program-tr | --program-t)
  1079. ac_prev=program_transform_name ;;
  1080. -program-transform-name=* | --program-transform-name=* \
  1081. | --program-transform-nam=* | --program-transform-na=* \
  1082. | --program-transform-n=* | --program-transform-=* \
  1083. | --program-transform=* | --program-transfor=* \
  1084. | --program-transfo=* | --program-transf=* \
  1085. | --program-trans=* | --program-tran=* \
  1086. | --progr-tra=* | --program-tr=* | --program-t=*)
  1087. program_transform_name=$ac_optarg ;;
  1088. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1089. ac_prev=pdfdir ;;
  1090. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1091. pdfdir=$ac_optarg ;;
  1092. -psdir | --psdir | --psdi | --psd | --ps)
  1093. ac_prev=psdir ;;
  1094. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1095. psdir=$ac_optarg ;;
  1096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1097. | -silent | --silent | --silen | --sile | --sil)
  1098. silent=yes ;;
  1099. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1100. | --runstate | --runstat | --runsta | --runst | --runs \
  1101. | --run | --ru | --r)
  1102. ac_prev=runstatedir ;;
  1103. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1104. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1105. | --run=* | --ru=* | --r=*)
  1106. runstatedir=$ac_optarg ;;
  1107. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1108. ac_prev=sbindir ;;
  1109. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1110. | --sbi=* | --sb=*)
  1111. sbindir=$ac_optarg ;;
  1112. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1113. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1114. | --sharedst | --shareds | --shared | --share | --shar \
  1115. | --sha | --sh)
  1116. ac_prev=sharedstatedir ;;
  1117. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1118. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1119. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1120. | --sha=* | --sh=*)
  1121. sharedstatedir=$ac_optarg ;;
  1122. -site | --site | --sit)
  1123. ac_prev=site ;;
  1124. -site=* | --site=* | --sit=*)
  1125. site=$ac_optarg ;;
  1126. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1127. ac_prev=srcdir ;;
  1128. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1129. srcdir=$ac_optarg ;;
  1130. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1131. | --syscon | --sysco | --sysc | --sys | --sy)
  1132. ac_prev=sysconfdir ;;
  1133. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1134. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1135. sysconfdir=$ac_optarg ;;
  1136. -target | --target | --targe | --targ | --tar | --ta | --t)
  1137. ac_prev=target_alias ;;
  1138. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1139. target_alias=$ac_optarg ;;
  1140. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1141. verbose=yes ;;
  1142. -version | --version | --versio | --versi | --vers | -V)
  1143. ac_init_version=: ;;
  1144. -with-* | --with-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. as_fn_error $? "invalid package name: $ac_useropt"
  1149. ac_useropt_orig=$ac_useropt
  1150. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1151. case $ac_user_opts in
  1152. *"
  1153. "with_$ac_useropt"
  1154. "*) ;;
  1155. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1156. ac_unrecognized_sep=', ';;
  1157. esac
  1158. eval with_$ac_useropt=\$ac_optarg ;;
  1159. -without-* | --without-*)
  1160. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1161. # Reject names that are not valid shell variable names.
  1162. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163. as_fn_error $? "invalid package name: $ac_useropt"
  1164. ac_useropt_orig=$ac_useropt
  1165. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1166. case $ac_user_opts in
  1167. *"
  1168. "with_$ac_useropt"
  1169. "*) ;;
  1170. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1171. ac_unrecognized_sep=', ';;
  1172. esac
  1173. eval with_$ac_useropt=no ;;
  1174. --x)
  1175. # Obsolete; use --with-x.
  1176. with_x=yes ;;
  1177. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1178. | --x-incl | --x-inc | --x-in | --x-i)
  1179. ac_prev=x_includes ;;
  1180. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1181. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1182. x_includes=$ac_optarg ;;
  1183. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1184. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1185. ac_prev=x_libraries ;;
  1186. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1187. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1188. x_libraries=$ac_optarg ;;
  1189. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1190. Try \`$0 --help' for more information"
  1191. ;;
  1192. *=*)
  1193. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1194. # Reject names that are not valid shell variable names.
  1195. case $ac_envvar in #(
  1196. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1197. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1198. esac
  1199. eval $ac_envvar=\$ac_optarg
  1200. export $ac_envvar ;;
  1201. *)
  1202. # FIXME: should be removed in autoconf 3.0.
  1203. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1204. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1205. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1206. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1207. ;;
  1208. esac
  1209. done
  1210. if test -n "$ac_prev"; then
  1211. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1212. as_fn_error $? "missing argument to $ac_option"
  1213. fi
  1214. if test -n "$ac_unrecognized_opts"; then
  1215. case $enable_option_checking in
  1216. no) ;;
  1217. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1218. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1219. esac
  1220. fi
  1221. # Check all directory arguments for consistency.
  1222. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1223. datadir sysconfdir sharedstatedir localstatedir includedir \
  1224. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1225. libdir localedir mandir runstatedir
  1226. do
  1227. eval ac_val=\$$ac_var
  1228. # Remove trailing slashes.
  1229. case $ac_val in
  1230. */ )
  1231. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1232. eval $ac_var=\$ac_val;;
  1233. esac
  1234. # Be sure to have absolute directory names.
  1235. case $ac_val in
  1236. [\\/$]* | ?:[\\/]* ) continue;;
  1237. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1238. esac
  1239. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1240. done
  1241. # There might be people who depend on the old broken behavior: `$host'
  1242. # used to hold the argument of --host etc.
  1243. # FIXME: To remove some day.
  1244. build=$build_alias
  1245. host=$host_alias
  1246. target=$target_alias
  1247. # FIXME: To remove some day.
  1248. if test "x$host_alias" != x; then
  1249. if test "x$build_alias" = x; then
  1250. cross_compiling=maybe
  1251. elif test "x$build_alias" != "x$host_alias"; then
  1252. cross_compiling=yes
  1253. fi
  1254. fi
  1255. ac_tool_prefix=
  1256. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1257. test "$silent" = yes && exec 6>/dev/null
  1258. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1259. ac_ls_di=`ls -di .` &&
  1260. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1261. as_fn_error $? "working directory cannot be determined"
  1262. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1263. as_fn_error $? "pwd does not report name of working directory"
  1264. # Find the source files, if location was not specified.
  1265. if test -z "$srcdir"; then
  1266. ac_srcdir_defaulted=yes
  1267. # Try the directory containing this script, then the parent directory.
  1268. ac_confdir=`$as_dirname -- "$as_myself" ||
  1269. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1270. X"$as_myself" : 'X\(//\)[^/]' \| \
  1271. X"$as_myself" : 'X\(//\)$' \| \
  1272. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1273. $as_echo X"$as_myself" |
  1274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\/\)[^/].*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. /^X\(\/\/\)$/{
  1283. s//\1/
  1284. q
  1285. }
  1286. /^X\(\/\).*/{
  1287. s//\1/
  1288. q
  1289. }
  1290. s/.*/./; q'`
  1291. srcdir=$ac_confdir
  1292. if test ! -r "$srcdir/$ac_unique_file"; then
  1293. srcdir=..
  1294. fi
  1295. else
  1296. ac_srcdir_defaulted=no
  1297. fi
  1298. if test ! -r "$srcdir/$ac_unique_file"; then
  1299. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1300. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1301. fi
  1302. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1303. ac_abs_confdir=`(
  1304. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1305. pwd)`
  1306. # When building in place, set srcdir=.
  1307. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1308. srcdir=.
  1309. fi
  1310. # Remove unnecessary trailing slashes from srcdir.
  1311. # Double slashes in file names in object file debugging info
  1312. # mess up M-x gdb in Emacs.
  1313. case $srcdir in
  1314. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1315. esac
  1316. for ac_var in $ac_precious_vars; do
  1317. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_env_${ac_var}_value=\$${ac_var}
  1319. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1320. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1321. done
  1322. #
  1323. # Report the --help message.
  1324. #
  1325. if test "$ac_init_help" = "long"; then
  1326. # Omit some internal or obsolete options to make the list less imposing.
  1327. # This message is too long to be a string in the A/UX 3.1 sh.
  1328. cat <<_ACEOF
  1329. \`configure' configures tcpreplay 4.5.1 to adapt to many kinds of systems.
  1330. Usage: $0 [OPTION]... [VAR=VALUE]...
  1331. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1332. VAR=VALUE. See below for descriptions of some of the useful variables.
  1333. Defaults for the options are specified in brackets.
  1334. Configuration:
  1335. -h, --help display this help and exit
  1336. --help=short display options specific to this package
  1337. --help=recursive display the short help of all the included packages
  1338. -V, --version display version information and exit
  1339. -q, --quiet, --silent do not print \`checking ...' messages
  1340. --cache-file=FILE cache test results in FILE [disabled]
  1341. -C, --config-cache alias for \`--cache-file=config.cache'
  1342. -n, --no-create do not create output files
  1343. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1344. Installation directories:
  1345. --prefix=PREFIX install architecture-independent files in PREFIX
  1346. [$ac_default_prefix]
  1347. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1348. [PREFIX]
  1349. By default, \`make install' will install all the files in
  1350. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1351. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1352. for instance \`--prefix=\$HOME'.
  1353. For better control, use the options below.
  1354. Fine tuning of the installation directories:
  1355. --bindir=DIR user executables [EPREFIX/bin]
  1356. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1357. --libexecdir=DIR program executables [EPREFIX/libexec]
  1358. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1359. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1360. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1361. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1362. --libdir=DIR object code libraries [EPREFIX/lib]
  1363. --includedir=DIR C header files [PREFIX/include]
  1364. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1365. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1366. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1367. --infodir=DIR info documentation [DATAROOTDIR/info]
  1368. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1369. --mandir=DIR man documentation [DATAROOTDIR/man]
  1370. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1371. --htmldir=DIR html documentation [DOCDIR]
  1372. --dvidir=DIR dvi documentation [DOCDIR]
  1373. --pdfdir=DIR pdf documentation [DOCDIR]
  1374. --psdir=DIR ps documentation [DOCDIR]
  1375. _ACEOF
  1376. cat <<\_ACEOF
  1377. Program names:
  1378. --program-prefix=PREFIX prepend PREFIX to installed program names
  1379. --program-suffix=SUFFIX append SUFFIX to installed program names
  1380. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1381. System types:
  1382. --build=BUILD configure for building on BUILD [guessed]
  1383. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1384. --target=TARGET configure for building compilers for TARGET [HOST]
  1385. _ACEOF
  1386. fi
  1387. if test -n "$ac_init_help"; then
  1388. case $ac_init_help in
  1389. short | recursive ) echo "Configuration of tcpreplay 4.5.1:";;
  1390. esac
  1391. cat <<\_ACEOF
  1392. Optional Features:
  1393. --disable-option-checking ignore unrecognized --enable/--with options
  1394. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1395. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1396. --disable-maintainer-mode
  1397. disable make rules and dependencies not useful (and
  1398. sometimes confusing) to the casual installer
  1399. --enable-silent-rules less verbose build output (undo: "make V=1")
  1400. --disable-silent-rules verbose build output (undo: "make V=0")
  1401. --enable-dependency-tracking
  1402. do not reject slow dependency extractors
  1403. --disable-dependency-tracking
  1404. speeds up one-time build
  1405. --enable-shared[=PKGS] build shared libraries [default=yes]
  1406. --enable-static[=PKGS] build static libraries [default=yes]
  1407. --enable-fast-install[=PKGS]
  1408. optimize for fast installation [default=yes]
  1409. --disable-libtool-lock avoid locking (might break parallel builds)
  1410. --disable-largefile omit support for large files
  1411. --enable-asan Enable Address Sanitizer support
  1412. --enable-tsan Enable Thread Sanitizer support
  1413. --enable-debug Enable debugging code and support for the -d option
  1414. --enable-extra-debug Enable additional debugging code (may affect
  1415. performance)
  1416. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1417. test
  1418. --enable-dmalloc Enable linking to dmalloc for better memory
  1419. debugging
  1420. --enable-pedantic Enable gcc's -pedantic option
  1421. --enable-efence Enable Electric Fence memory debugger
  1422. --enable-gprof Enable GNU Profiler
  1423. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1424. scanning
  1425. --disable-64bits Do not use 64bit packet counters
  1426. --enable-force-bpf Force using BPF for sending packets
  1427. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1428. --enable-force-libdnet Force using libdnet for sending packets
  1429. --enable-force-libxdp Force using libxdp for sending packets
  1430. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1431. packets
  1432. --enable-force-sendpacket
  1433. Force using libpcap's pcap_sendpacket() for sending
  1434. packets
  1435. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1436. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1437. default yes
  1438. --disable-tuntap Disable tuntap support
  1439. --disable-nls disable nls support in libopts
  1440. --enable-local-libopts Use the supplied libopts tearoff code
  1441. --enable-libopts-install
  1442. Install libopts with client installation
  1443. --disable-optional-args not wanting optional option args
  1444. Optional Packages:
  1445. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1446. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1447. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1448. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1449. --with-pfring-lib Use a specific PF_RING static library when using
  1450. PF_RING libpcap.
  1451. Usage: --with-pfring-lib=<library>
  1452. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1453. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1454. both]
  1455. --with-aix-soname=aix|svr4|both
  1456. shared library versioning (aka "SONAME") variant to
  1457. provide on AIX, [default=aix].
  1458. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1459. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1460. compiler's sysroot if not specified).
  1461. --with-libpcap=DIR Use libpcap in DIR
  1462. --with-netmap=DIR Use netmap in DIR
  1463. --with-libdnet=DIR Use libdnet in DIR
  1464. --with-pcapnav-config=FILE
  1465. Use given pcapnav-config
  1466. --with-tcpdump=FILE Path to tcpdump binary
  1467. --with-testnic=NIC Select which network card to use for testing
  1468. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1469. testing
  1470. --with-autoopts-config specify the config-info script
  1471. --with-regex-header a reg expr header is specified
  1472. --with-libregex libregex installation prefix
  1473. --with-libregex-cflags libregex compile flags
  1474. --with-libregex-libs libregex link command arguments
  1475. Some influential environment variables:
  1476. CC C compiler command
  1477. CFLAGS C compiler flags
  1478. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1479. nonstandard directory <lib dir>
  1480. LIBS libraries to pass to the linker, e.g. -l<library>
  1481. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1482. you have headers in a nonstandard directory <include dir>
  1483. LT_SYS_LIBRARY_PATH
  1484. User-defined run-time library search path.
  1485. CPP C preprocessor
  1486. CXX C++ compiler command
  1487. CXXFLAGS C++ compiler flags
  1488. CXXCPP C++ preprocessor
  1489. Use these variables to override the choices made by `configure' or to help
  1490. it to find libraries and programs with nonstandard names/locations.
  1491. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1492. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1493. _ACEOF
  1494. ac_status=$?
  1495. fi
  1496. if test "$ac_init_help" = "recursive"; then
  1497. # If there are subdirs, report their specific --help.
  1498. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1499. test -d "$ac_dir" ||
  1500. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1501. continue
  1502. ac_builddir=.
  1503. case "$ac_dir" in
  1504. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1505. *)
  1506. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1507. # A ".." for each directory in $ac_dir_suffix.
  1508. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1509. case $ac_top_builddir_sub in
  1510. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1511. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1512. esac ;;
  1513. esac
  1514. ac_abs_top_builddir=$ac_pwd
  1515. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1516. # for backward compatibility:
  1517. ac_top_builddir=$ac_top_build_prefix
  1518. case $srcdir in
  1519. .) # We are building in place.
  1520. ac_srcdir=.
  1521. ac_top_srcdir=$ac_top_builddir_sub
  1522. ac_abs_top_srcdir=$ac_pwd ;;
  1523. [\\/]* | ?:[\\/]* ) # Absolute name.
  1524. ac_srcdir=$srcdir$ac_dir_suffix;
  1525. ac_top_srcdir=$srcdir
  1526. ac_abs_top_srcdir=$srcdir ;;
  1527. *) # Relative name.
  1528. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1529. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1530. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1531. esac
  1532. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1533. cd "$ac_dir" || { ac_status=$?; continue; }
  1534. # Check for guested configure.
  1535. if test -f "$ac_srcdir/configure.gnu"; then
  1536. echo &&
  1537. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1538. elif test -f "$ac_srcdir/configure"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure" --help=recursive
  1541. else
  1542. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1543. fi || ac_status=$?
  1544. cd "$ac_pwd" || { ac_status=$?; break; }
  1545. done
  1546. fi
  1547. test -n "$ac_init_help" && exit $ac_status
  1548. if $ac_init_version; then
  1549. cat <<\_ACEOF
  1550. tcpreplay configure 4.5.1
  1551. generated by GNU Autoconf 2.69
  1552. Copyright (C) 2012 Free Software Foundation, Inc.
  1553. This configure script is free software; the Free Software Foundation
  1554. gives unlimited permission to copy, distribute and modify it.
  1555. _ACEOF
  1556. exit
  1557. fi
  1558. ## ------------------------ ##
  1559. ## Autoconf initialization. ##
  1560. ## ------------------------ ##
  1561. # ac_fn_c_try_compile LINENO
  1562. # --------------------------
  1563. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_compile ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. rm -f conftest.$ac_objext
  1568. if { { ac_try="$ac_compile"
  1569. case "(($ac_try" in
  1570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1571. *) ac_try_echo=$ac_try;;
  1572. esac
  1573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1574. $as_echo "$ac_try_echo"; } >&5
  1575. (eval "$ac_compile") 2>conftest.err
  1576. ac_status=$?
  1577. if test -s conftest.err; then
  1578. grep -v '^ *+' conftest.err >conftest.er1
  1579. cat conftest.er1 >&5
  1580. mv -f conftest.er1 conftest.err
  1581. fi
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; } && {
  1584. test -z "$ac_c_werror_flag" ||
  1585. test ! -s conftest.err
  1586. } && test -s conftest.$ac_objext; then :
  1587. ac_retval=0
  1588. else
  1589. $as_echo "$as_me: failed program was:" >&5
  1590. sed 's/^/| /' conftest.$ac_ext >&5
  1591. ac_retval=1
  1592. fi
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595. } # ac_fn_c_try_compile
  1596. # ac_fn_c_try_link LINENO
  1597. # -----------------------
  1598. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1599. ac_fn_c_try_link ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. rm -f conftest.$ac_objext conftest$ac_exeext
  1603. if { { ac_try="$ac_link"
  1604. case "(($ac_try" in
  1605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1606. *) ac_try_echo=$ac_try;;
  1607. esac
  1608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1609. $as_echo "$ac_try_echo"; } >&5
  1610. (eval "$ac_link") 2>conftest.err
  1611. ac_status=$?
  1612. if test -s conftest.err; then
  1613. grep -v '^ *+' conftest.err >conftest.er1
  1614. cat conftest.er1 >&5
  1615. mv -f conftest.er1 conftest.err
  1616. fi
  1617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1618. test $ac_status = 0; } && {
  1619. test -z "$ac_c_werror_flag" ||
  1620. test ! -s conftest.err
  1621. } && test -s conftest$ac_exeext && {
  1622. test "$cross_compiling" = yes ||
  1623. test -x conftest$ac_exeext
  1624. }; then :
  1625. ac_retval=0
  1626. else
  1627. $as_echo "$as_me: failed program was:" >&5
  1628. sed 's/^/| /' conftest.$ac_ext >&5
  1629. ac_retval=1
  1630. fi
  1631. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1632. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1633. # interfere with the next link command; also delete a directory that is
  1634. # left behind by Apple's compiler. We do this before executing the actions.
  1635. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1636. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1637. as_fn_set_status $ac_retval
  1638. } # ac_fn_c_try_link
  1639. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1640. # -------------------------------------------------------
  1641. # Tests whether HEADER exists and can be compiled using the include files in
  1642. # INCLUDES, setting the cache variable VAR accordingly.
  1643. ac_fn_c_check_header_compile ()
  1644. {
  1645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1647. $as_echo_n "checking for $2... " >&6; }
  1648. if eval \${$3+:} false; then :
  1649. $as_echo_n "(cached) " >&6
  1650. else
  1651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1652. /* end confdefs.h. */
  1653. $4
  1654. #include <$2>
  1655. _ACEOF
  1656. if ac_fn_c_try_compile "$LINENO"; then :
  1657. eval "$3=yes"
  1658. else
  1659. eval "$3=no"
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1662. fi
  1663. eval ac_res=\$$3
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1665. $as_echo "$ac_res" >&6; }
  1666. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1667. } # ac_fn_c_check_header_compile
  1668. # ac_fn_c_try_cpp LINENO
  1669. # ----------------------
  1670. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1671. ac_fn_c_try_cpp ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1675. case "(($ac_try" in
  1676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1677. *) ac_try_echo=$ac_try;;
  1678. esac
  1679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1680. $as_echo "$ac_try_echo"; } >&5
  1681. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1682. ac_status=$?
  1683. if test -s conftest.err; then
  1684. grep -v '^ *+' conftest.err >conftest.er1
  1685. cat conftest.er1 >&5
  1686. mv -f conftest.er1 conftest.err
  1687. fi
  1688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1689. test $ac_status = 0; } > conftest.i && {
  1690. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1691. test ! -s conftest.err
  1692. }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_retval=1
  1698. fi
  1699. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1700. as_fn_set_status $ac_retval
  1701. } # ac_fn_c_try_cpp
  1702. # ac_fn_c_try_run LINENO
  1703. # ----------------------
  1704. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1705. # that executables *can* be run.
  1706. ac_fn_c_try_run ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. if { { ac_try="$ac_link"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_link") 2>&5
  1717. ac_status=$?
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1720. { { case "(($ac_try" in
  1721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1722. *) ac_try_echo=$ac_try;;
  1723. esac
  1724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1725. $as_echo "$ac_try_echo"; } >&5
  1726. (eval "$ac_try") 2>&5
  1727. ac_status=$?
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; }; }; then :
  1730. ac_retval=0
  1731. else
  1732. $as_echo "$as_me: program exited with status $ac_status" >&5
  1733. $as_echo "$as_me: failed program was:" >&5
  1734. sed 's/^/| /' conftest.$ac_ext >&5
  1735. ac_retval=$ac_status
  1736. fi
  1737. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_run
  1741. # ac_fn_c_check_func LINENO FUNC VAR
  1742. # ----------------------------------
  1743. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1744. ac_fn_c_check_func ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1748. $as_echo_n "checking for $2... " >&6; }
  1749. if eval \${$3+:} false; then :
  1750. $as_echo_n "(cached) " >&6
  1751. else
  1752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1753. /* end confdefs.h. */
  1754. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1755. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1756. #define $2 innocuous_$2
  1757. /* System header to define __stub macros and hopefully few prototypes,
  1758. which can conflict with char $2 (); below.
  1759. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1760. <limits.h> exists even on freestanding compilers. */
  1761. #ifdef __STDC__
  1762. # include <limits.h>
  1763. #else
  1764. # include <assert.h>
  1765. #endif
  1766. #undef $2
  1767. /* Override any GCC internal prototype to avoid an error.
  1768. Use char because int might match the return type of a GCC
  1769. builtin and then its argument prototype would still apply. */
  1770. #ifdef __cplusplus
  1771. extern "C"
  1772. #endif
  1773. char $2 ();
  1774. /* The GNU C library defines this for functions which it implements
  1775. to always fail with ENOSYS. Some functions are actually named
  1776. something starting with __ and the normal name is an alias. */
  1777. #if defined __stub_$2 || defined __stub___$2
  1778. choke me
  1779. #endif
  1780. int
  1781. main ()
  1782. {
  1783. return $2 ();
  1784. ;
  1785. return 0;
  1786. }
  1787. _ACEOF
  1788. if ac_fn_c_try_link "$LINENO"; then :
  1789. eval "$3=yes"
  1790. else
  1791. eval "$3=no"
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext \
  1794. conftest$ac_exeext conftest.$ac_ext
  1795. fi
  1796. eval ac_res=\$$3
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1798. $as_echo "$ac_res" >&6; }
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. } # ac_fn_c_check_func
  1801. # ac_fn_cxx_try_compile LINENO
  1802. # ----------------------------
  1803. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1804. ac_fn_cxx_try_compile ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. rm -f conftest.$ac_objext
  1808. if { { ac_try="$ac_compile"
  1809. case "(($ac_try" in
  1810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1811. *) ac_try_echo=$ac_try;;
  1812. esac
  1813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1814. $as_echo "$ac_try_echo"; } >&5
  1815. (eval "$ac_compile") 2>conftest.err
  1816. ac_status=$?
  1817. if test -s conftest.err; then
  1818. grep -v '^ *+' conftest.err >conftest.er1
  1819. cat conftest.er1 >&5
  1820. mv -f conftest.er1 conftest.err
  1821. fi
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; } && {
  1824. test -z "$ac_cxx_werror_flag" ||
  1825. test ! -s conftest.err
  1826. } && test -s conftest.$ac_objext; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. as_fn_set_status $ac_retval
  1835. } # ac_fn_cxx_try_compile
  1836. # ac_fn_cxx_try_cpp LINENO
  1837. # ------------------------
  1838. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1839. ac_fn_cxx_try_cpp ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1843. case "(($ac_try" in
  1844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1845. *) ac_try_echo=$ac_try;;
  1846. esac
  1847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1848. $as_echo "$ac_try_echo"; } >&5
  1849. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1850. ac_status=$?
  1851. if test -s conftest.err; then
  1852. grep -v '^ *+' conftest.err >conftest.er1
  1853. cat conftest.er1 >&5
  1854. mv -f conftest.er1 conftest.err
  1855. fi
  1856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1857. test $ac_status = 0; } > conftest.i && {
  1858. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1859. test ! -s conftest.err
  1860. }; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=1
  1866. fi
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. as_fn_set_status $ac_retval
  1869. } # ac_fn_cxx_try_cpp
  1870. # ac_fn_cxx_try_link LINENO
  1871. # -------------------------
  1872. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1873. ac_fn_cxx_try_link ()
  1874. {
  1875. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1876. rm -f conftest.$ac_objext conftest$ac_exeext
  1877. if { { ac_try="$ac_link"
  1878. case "(($ac_try" in
  1879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1880. *) ac_try_echo=$ac_try;;
  1881. esac
  1882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1883. $as_echo "$ac_try_echo"; } >&5
  1884. (eval "$ac_link") 2>conftest.err
  1885. ac_status=$?
  1886. if test -s conftest.err; then
  1887. grep -v '^ *+' conftest.err >conftest.er1
  1888. cat conftest.er1 >&5
  1889. mv -f conftest.er1 conftest.err
  1890. fi
  1891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1892. test $ac_status = 0; } && {
  1893. test -z "$ac_cxx_werror_flag" ||
  1894. test ! -s conftest.err
  1895. } && test -s conftest$ac_exeext && {
  1896. test "$cross_compiling" = yes ||
  1897. test -x conftest$ac_exeext
  1898. }; then :
  1899. ac_retval=0
  1900. else
  1901. $as_echo "$as_me: failed program was:" >&5
  1902. sed 's/^/| /' conftest.$ac_ext >&5
  1903. ac_retval=1
  1904. fi
  1905. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1906. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1907. # interfere with the next link command; also delete a directory that is
  1908. # left behind by Apple's compiler. We do this before executing the actions.
  1909. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1910. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1911. as_fn_set_status $ac_retval
  1912. } # ac_fn_cxx_try_link
  1913. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1914. # -------------------------------------------------------
  1915. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1916. # the include files in INCLUDES and setting the cache variable VAR
  1917. # accordingly.
  1918. ac_fn_c_check_header_mongrel ()
  1919. {
  1920. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1921. if eval \${$3+:} false; then :
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. else
  1931. # Is the header compilable?
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1933. $as_echo_n "checking $2 usability... " >&6; }
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. $4
  1937. #include <$2>
  1938. _ACEOF
  1939. if ac_fn_c_try_compile "$LINENO"; then :
  1940. ac_header_compiler=yes
  1941. else
  1942. ac_header_compiler=no
  1943. fi
  1944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1946. $as_echo "$ac_header_compiler" >&6; }
  1947. # Is the header present?
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1949. $as_echo_n "checking $2 presence... " >&6; }
  1950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1951. /* end confdefs.h. */
  1952. #include <$2>
  1953. _ACEOF
  1954. if ac_fn_c_try_cpp "$LINENO"; then :
  1955. ac_header_preproc=yes
  1956. else
  1957. ac_header_preproc=no
  1958. fi
  1959. rm -f conftest.err conftest.i conftest.$ac_ext
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1961. $as_echo "$ac_header_preproc" >&6; }
  1962. # So? What about this header?
  1963. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1964. yes:no: )
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1966. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1968. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1969. ;;
  1970. no:yes:* )
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1972. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1974. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1976. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1978. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1980. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1981. ( $as_echo "## ---------------------------------------------------------- ##
  1982. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1983. ## ---------------------------------------------------------- ##"
  1984. ) | sed "s/^/$as_me: WARNING: /" >&2
  1985. ;;
  1986. esac
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1988. $as_echo_n "checking for $2... " >&6; }
  1989. if eval \${$3+:} false; then :
  1990. $as_echo_n "(cached) " >&6
  1991. else
  1992. eval "$3=\$ac_header_compiler"
  1993. fi
  1994. eval ac_res=\$$3
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1996. $as_echo "$ac_res" >&6; }
  1997. fi
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. } # ac_fn_c_check_header_mongrel
  2000. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2001. # -------------------------------------------
  2002. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2003. # variable VAR accordingly.
  2004. ac_fn_c_check_type ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2008. $as_echo_n "checking for $2... " >&6; }
  2009. if eval \${$3+:} false; then :
  2010. $as_echo_n "(cached) " >&6
  2011. else
  2012. eval "$3=no"
  2013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2014. /* end confdefs.h. */
  2015. $4
  2016. int
  2017. main ()
  2018. {
  2019. if (sizeof ($2))
  2020. return 0;
  2021. ;
  2022. return 0;
  2023. }
  2024. _ACEOF
  2025. if ac_fn_c_try_compile "$LINENO"; then :
  2026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2027. /* end confdefs.h. */
  2028. $4
  2029. int
  2030. main ()
  2031. {
  2032. if (sizeof (($2)))
  2033. return 0;
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_c_try_compile "$LINENO"; then :
  2039. else
  2040. eval "$3=yes"
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. fi
  2046. eval ac_res=\$$3
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2048. $as_echo "$ac_res" >&6; }
  2049. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2050. } # ac_fn_c_check_type
  2051. # ac_fn_c_find_intX_t LINENO BITS VAR
  2052. # -----------------------------------
  2053. # Finds a signed integer type with width BITS, setting cache variable VAR
  2054. # accordingly.
  2055. ac_fn_c_find_intX_t ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2059. $as_echo_n "checking for int$2_t... " >&6; }
  2060. if eval \${$3+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. else
  2063. eval "$3=no"
  2064. # Order is important - never check a type that is potentially smaller
  2065. # than half of the expected target width.
  2066. for ac_type in int$2_t 'int' 'long int' \
  2067. 'long long int' 'short int' 'signed char'; do
  2068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2069. /* end confdefs.h. */
  2070. $ac_includes_default
  2071. enum { N = $2 / 2 - 1 };
  2072. int
  2073. main ()
  2074. {
  2075. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2076. test_array [0] = 0;
  2077. return test_array [0];
  2078. ;
  2079. return 0;
  2080. }
  2081. _ACEOF
  2082. if ac_fn_c_try_compile "$LINENO"; then :
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. $ac_includes_default
  2086. enum { N = $2 / 2 - 1 };
  2087. int
  2088. main ()
  2089. {
  2090. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2091. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2092. test_array [0] = 0;
  2093. return test_array [0];
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"; then :
  2099. else
  2100. case $ac_type in #(
  2101. int$2_t) :
  2102. eval "$3=yes" ;; #(
  2103. *) :
  2104. eval "$3=\$ac_type" ;;
  2105. esac
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. fi
  2109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2110. if eval test \"x\$"$3"\" = x"no"; then :
  2111. else
  2112. break
  2113. fi
  2114. done
  2115. fi
  2116. eval ac_res=\$$3
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2118. $as_echo "$ac_res" >&6; }
  2119. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2120. } # ac_fn_c_find_intX_t
  2121. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2122. # ------------------------------------
  2123. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2124. # accordingly.
  2125. ac_fn_c_find_uintX_t ()
  2126. {
  2127. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2129. $as_echo_n "checking for uint$2_t... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=no"
  2134. # Order is important - never check a type that is potentially smaller
  2135. # than half of the expected target width.
  2136. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2137. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2139. /* end confdefs.h. */
  2140. $ac_includes_default
  2141. int
  2142. main ()
  2143. {
  2144. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2145. test_array [0] = 0;
  2146. return test_array [0];
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. if ac_fn_c_try_compile "$LINENO"; then :
  2152. case $ac_type in #(
  2153. uint$2_t) :
  2154. eval "$3=yes" ;; #(
  2155. *) :
  2156. eval "$3=\$ac_type" ;;
  2157. esac
  2158. fi
  2159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2160. if eval test \"x\$"$3"\" = x"no"; then :
  2161. else
  2162. break
  2163. fi
  2164. done
  2165. fi
  2166. eval ac_res=\$$3
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2168. $as_echo "$ac_res" >&6; }
  2169. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2170. } # ac_fn_c_find_uintX_t
  2171. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2172. # ----------------------------------------------------
  2173. # Tries to find if the field MEMBER exists in type AGGR, after including
  2174. # INCLUDES, setting cache variable VAR accordingly.
  2175. ac_fn_c_check_member ()
  2176. {
  2177. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2179. $as_echo_n "checking for $2.$3... " >&6; }
  2180. if eval \${$4+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2184. /* end confdefs.h. */
  2185. $5
  2186. int
  2187. main ()
  2188. {
  2189. static $2 ac_aggr;
  2190. if (ac_aggr.$3)
  2191. return 0;
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_c_try_compile "$LINENO"; then :
  2197. eval "$4=yes"
  2198. else
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $5
  2202. int
  2203. main ()
  2204. {
  2205. static $2 ac_aggr;
  2206. if (sizeof ac_aggr.$3)
  2207. return 0;
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_compile "$LINENO"; then :
  2213. eval "$4=yes"
  2214. else
  2215. eval "$4=no"
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. eval ac_res=\$$4
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2223. $as_echo "$ac_res" >&6; }
  2224. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2225. } # ac_fn_c_check_member
  2226. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2227. # ---------------------------------------------
  2228. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2229. # accordingly.
  2230. ac_fn_c_check_decl ()
  2231. {
  2232. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2233. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2234. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2236. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2237. if eval \${$3+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2241. /* end confdefs.h. */
  2242. $4
  2243. int
  2244. main ()
  2245. {
  2246. #ifndef $as_decl_name
  2247. #ifdef __cplusplus
  2248. (void) $as_decl_use;
  2249. #else
  2250. (void) $as_decl_name;
  2251. #endif
  2252. #endif
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. if ac_fn_c_try_compile "$LINENO"; then :
  2258. eval "$3=yes"
  2259. else
  2260. eval "$3=no"
  2261. fi
  2262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2263. fi
  2264. eval ac_res=\$$3
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2266. $as_echo "$ac_res" >&6; }
  2267. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2268. } # ac_fn_c_check_decl
  2269. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2270. # --------------------------------------------
  2271. # Tries to find the compile-time value of EXPR in a program that includes
  2272. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2273. # computed
  2274. ac_fn_c_compute_int ()
  2275. {
  2276. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2277. if test "$cross_compiling" = yes; then
  2278. # Depending upon the size, compute the lo and hi bounds.
  2279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2280. /* end confdefs.h. */
  2281. $4
  2282. int
  2283. main ()
  2284. {
  2285. static int test_array [1 - 2 * !(($2) >= 0)];
  2286. test_array [0] = 0;
  2287. return test_array [0];
  2288. ;
  2289. return 0;
  2290. }
  2291. _ACEOF
  2292. if ac_fn_c_try_compile "$LINENO"; then :
  2293. ac_lo=0 ac_mid=0
  2294. while :; do
  2295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2296. /* end confdefs.h. */
  2297. $4
  2298. int
  2299. main ()
  2300. {
  2301. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2302. test_array [0] = 0;
  2303. return test_array [0];
  2304. ;
  2305. return 0;
  2306. }
  2307. _ACEOF
  2308. if ac_fn_c_try_compile "$LINENO"; then :
  2309. ac_hi=$ac_mid; break
  2310. else
  2311. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2312. if test $ac_lo -le $ac_mid; then
  2313. ac_lo= ac_hi=
  2314. break
  2315. fi
  2316. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2317. fi
  2318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2319. done
  2320. else
  2321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2322. /* end confdefs.h. */
  2323. $4
  2324. int
  2325. main ()
  2326. {
  2327. static int test_array [1 - 2 * !(($2) < 0)];
  2328. test_array [0] = 0;
  2329. return test_array [0];
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. if ac_fn_c_try_compile "$LINENO"; then :
  2335. ac_hi=-1 ac_mid=-1
  2336. while :; do
  2337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2338. /* end confdefs.h. */
  2339. $4
  2340. int
  2341. main ()
  2342. {
  2343. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2344. test_array [0] = 0;
  2345. return test_array [0];
  2346. ;
  2347. return 0;
  2348. }
  2349. _ACEOF
  2350. if ac_fn_c_try_compile "$LINENO"; then :
  2351. ac_lo=$ac_mid; break
  2352. else
  2353. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2354. if test $ac_mid -le $ac_hi; then
  2355. ac_lo= ac_hi=
  2356. break
  2357. fi
  2358. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2359. fi
  2360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2361. done
  2362. else
  2363. ac_lo= ac_hi=
  2364. fi
  2365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2366. fi
  2367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2368. # Binary search between lo and hi bounds.
  2369. while test "x$ac_lo" != "x$ac_hi"; do
  2370. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2372. /* end confdefs.h. */
  2373. $4
  2374. int
  2375. main ()
  2376. {
  2377. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2378. test_array [0] = 0;
  2379. return test_array [0];
  2380. ;
  2381. return 0;
  2382. }
  2383. _ACEOF
  2384. if ac_fn_c_try_compile "$LINENO"; then :
  2385. ac_hi=$ac_mid
  2386. else
  2387. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2388. fi
  2389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2390. done
  2391. case $ac_lo in #((
  2392. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2393. '') ac_retval=1 ;;
  2394. esac
  2395. else
  2396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2397. /* end confdefs.h. */
  2398. $4
  2399. static long int longval () { return $2; }
  2400. static unsigned long int ulongval () { return $2; }
  2401. #include <stdio.h>
  2402. #include <stdlib.h>
  2403. int
  2404. main ()
  2405. {
  2406. FILE *f = fopen ("conftest.val", "w");
  2407. if (! f)
  2408. return 1;
  2409. if (($2) < 0)
  2410. {
  2411. long int i = longval ();
  2412. if (i != ($2))
  2413. return 1;
  2414. fprintf (f, "%ld", i);
  2415. }
  2416. else
  2417. {
  2418. unsigned long int i = ulongval ();
  2419. if (i != ($2))
  2420. return 1;
  2421. fprintf (f, "%lu", i);
  2422. }
  2423. /* Do not output a trailing newline, as this causes \r\n confusion
  2424. on some platforms. */
  2425. return ferror (f) || fclose (f) != 0;
  2426. ;
  2427. return 0;
  2428. }
  2429. _ACEOF
  2430. if ac_fn_c_try_run "$LINENO"; then :
  2431. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2432. else
  2433. ac_retval=1
  2434. fi
  2435. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2436. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2437. rm -f conftest.val
  2438. fi
  2439. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2440. as_fn_set_status $ac_retval
  2441. } # ac_fn_c_compute_int
  2442. cat >config.log <<_ACEOF
  2443. This file contains any messages produced by compilers while
  2444. running configure, to aid debugging if configure makes a mistake.
  2445. It was created by tcpreplay $as_me 4.5.1, which was
  2446. generated by GNU Autoconf 2.69. Invocation command line was
  2447. $ $0 $@
  2448. _ACEOF
  2449. exec 5>>config.log
  2450. {
  2451. cat <<_ASUNAME
  2452. ## --------- ##
  2453. ## Platform. ##
  2454. ## --------- ##
  2455. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2456. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2457. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2458. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2459. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2460. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2461. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2462. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2463. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2464. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2465. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2466. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2467. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2468. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2469. _ASUNAME
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. $as_echo "PATH: $as_dir"
  2476. done
  2477. IFS=$as_save_IFS
  2478. } >&5
  2479. cat >&5 <<_ACEOF
  2480. ## ----------- ##
  2481. ## Core tests. ##
  2482. ## ----------- ##
  2483. _ACEOF
  2484. # Keep a trace of the command line.
  2485. # Strip out --no-create and --no-recursion so they do not pile up.
  2486. # Strip out --silent because we don't want to record it for future runs.
  2487. # Also quote any args containing shell meta-characters.
  2488. # Make two passes to allow for proper duplicate-argument suppression.
  2489. ac_configure_args=
  2490. ac_configure_args0=
  2491. ac_configure_args1=
  2492. ac_must_keep_next=false
  2493. for ac_pass in 1 2
  2494. do
  2495. for ac_arg
  2496. do
  2497. case $ac_arg in
  2498. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2499. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2500. | -silent | --silent | --silen | --sile | --sil)
  2501. continue ;;
  2502. *\'*)
  2503. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2504. esac
  2505. case $ac_pass in
  2506. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2507. 2)
  2508. as_fn_append ac_configure_args1 " '$ac_arg'"
  2509. if test $ac_must_keep_next = true; then
  2510. ac_must_keep_next=false # Got value, back to normal.
  2511. else
  2512. case $ac_arg in
  2513. *=* | --config-cache | -C | -disable-* | --disable-* \
  2514. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2515. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2516. | -with-* | --with-* | -without-* | --without-* | --x)
  2517. case "$ac_configure_args0 " in
  2518. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2519. esac
  2520. ;;
  2521. -* ) ac_must_keep_next=true ;;
  2522. esac
  2523. fi
  2524. as_fn_append ac_configure_args " '$ac_arg'"
  2525. ;;
  2526. esac
  2527. done
  2528. done
  2529. { ac_configure_args0=; unset ac_configure_args0;}
  2530. { ac_configure_args1=; unset ac_configure_args1;}
  2531. # When interrupted or exit'd, cleanup temporary files, and complete
  2532. # config.log. We remove comments because anyway the quotes in there
  2533. # would cause problems or look ugly.
  2534. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2535. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2536. trap 'exit_status=$?
  2537. # Save into config.log some information that might help in debugging.
  2538. {
  2539. echo
  2540. $as_echo "## ---------------- ##
  2541. ## Cache variables. ##
  2542. ## ---------------- ##"
  2543. echo
  2544. # The following way of writing the cache mishandles newlines in values,
  2545. (
  2546. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2547. eval ac_val=\$$ac_var
  2548. case $ac_val in #(
  2549. *${as_nl}*)
  2550. case $ac_var in #(
  2551. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2552. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2553. esac
  2554. case $ac_var in #(
  2555. _ | IFS | as_nl) ;; #(
  2556. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2557. *) { eval $ac_var=; unset $ac_var;} ;;
  2558. esac ;;
  2559. esac
  2560. done
  2561. (set) 2>&1 |
  2562. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2563. *${as_nl}ac_space=\ *)
  2564. sed -n \
  2565. "s/'\''/'\''\\\\'\'''\''/g;
  2566. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2567. ;; #(
  2568. *)
  2569. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2570. ;;
  2571. esac |
  2572. sort
  2573. )
  2574. echo
  2575. $as_echo "## ----------------- ##
  2576. ## Output variables. ##
  2577. ## ----------------- ##"
  2578. echo
  2579. for ac_var in $ac_subst_vars
  2580. do
  2581. eval ac_val=\$$ac_var
  2582. case $ac_val in
  2583. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2584. esac
  2585. $as_echo "$ac_var='\''$ac_val'\''"
  2586. done | sort
  2587. echo
  2588. if test -n "$ac_subst_files"; then
  2589. $as_echo "## ------------------- ##
  2590. ## File substitutions. ##
  2591. ## ------------------- ##"
  2592. echo
  2593. for ac_var in $ac_subst_files
  2594. do
  2595. eval ac_val=\$$ac_var
  2596. case $ac_val in
  2597. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2598. esac
  2599. $as_echo "$ac_var='\''$ac_val'\''"
  2600. done | sort
  2601. echo
  2602. fi
  2603. if test -s confdefs.h; then
  2604. $as_echo "## ----------- ##
  2605. ## confdefs.h. ##
  2606. ## ----------- ##"
  2607. echo
  2608. cat confdefs.h
  2609. echo
  2610. fi
  2611. test "$ac_signal" != 0 &&
  2612. $as_echo "$as_me: caught signal $ac_signal"
  2613. $as_echo "$as_me: exit $exit_status"
  2614. } >&5
  2615. rm -f core *.core core.conftest.* &&
  2616. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2617. exit $exit_status
  2618. ' 0
  2619. for ac_signal in 1 2 13 15; do
  2620. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2621. done
  2622. ac_signal=0
  2623. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2624. rm -f -r conftest* confdefs.h
  2625. $as_echo "/* confdefs.h */" > confdefs.h
  2626. # Predefined preprocessor variables.
  2627. cat >>confdefs.h <<_ACEOF
  2628. #define PACKAGE_NAME "$PACKAGE_NAME"
  2629. _ACEOF
  2630. cat >>confdefs.h <<_ACEOF
  2631. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2632. _ACEOF
  2633. cat >>confdefs.h <<_ACEOF
  2634. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2635. _ACEOF
  2636. cat >>confdefs.h <<_ACEOF
  2637. #define PACKAGE_STRING "$PACKAGE_STRING"
  2638. _ACEOF
  2639. cat >>confdefs.h <<_ACEOF
  2640. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2641. _ACEOF
  2642. cat >>confdefs.h <<_ACEOF
  2643. #define PACKAGE_URL "$PACKAGE_URL"
  2644. _ACEOF
  2645. # Let the site file select an alternate cache file if it wants to.
  2646. # Prefer an explicitly selected file to automatically selected ones.
  2647. ac_site_file1=NONE
  2648. ac_site_file2=NONE
  2649. if test -n "$CONFIG_SITE"; then
  2650. # We do not want a PATH search for config.site.
  2651. case $CONFIG_SITE in #((
  2652. -*) ac_site_file1=./$CONFIG_SITE;;
  2653. */*) ac_site_file1=$CONFIG_SITE;;
  2654. *) ac_site_file1=./$CONFIG_SITE;;
  2655. esac
  2656. elif test "x$prefix" != xNONE; then
  2657. ac_site_file1=$prefix/share/config.site
  2658. ac_site_file2=$prefix/etc/config.site
  2659. else
  2660. ac_site_file1=$ac_default_prefix/share/config.site
  2661. ac_site_file2=$ac_default_prefix/etc/config.site
  2662. fi
  2663. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2664. do
  2665. test "x$ac_site_file" = xNONE && continue
  2666. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2668. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2669. sed 's/^/| /' "$ac_site_file" >&5
  2670. . "$ac_site_file" \
  2671. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2672. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2673. as_fn_error $? "failed to load site script $ac_site_file
  2674. See \`config.log' for more details" "$LINENO" 5; }
  2675. fi
  2676. done
  2677. if test -r "$cache_file"; then
  2678. # Some versions of bash will fail to source /dev/null (special files
  2679. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2680. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2682. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2683. case $cache_file in
  2684. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2685. *) . "./$cache_file";;
  2686. esac
  2687. fi
  2688. else
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2690. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2691. >$cache_file
  2692. fi
  2693. as_fn_append ac_header_list " sys/time.h"
  2694. as_fn_append ac_header_list " unistd.h"
  2695. as_fn_append ac_func_list " alarm"
  2696. as_fn_append ac_header_list " stdlib.h"
  2697. as_fn_append ac_header_list " sys/param.h"
  2698. # Check that the precious variables saved in the cache have kept the same
  2699. # value.
  2700. ac_cache_corrupted=false
  2701. for ac_var in $ac_precious_vars; do
  2702. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2703. eval ac_new_set=\$ac_env_${ac_var}_set
  2704. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2705. eval ac_new_val=\$ac_env_${ac_var}_value
  2706. case $ac_old_set,$ac_new_set in
  2707. set,)
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2709. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2710. ac_cache_corrupted=: ;;
  2711. ,set)
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2713. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2714. ac_cache_corrupted=: ;;
  2715. ,);;
  2716. *)
  2717. if test "x$ac_old_val" != "x$ac_new_val"; then
  2718. # differences in whitespace do not lead to failure.
  2719. ac_old_val_w=`echo x $ac_old_val`
  2720. ac_new_val_w=`echo x $ac_new_val`
  2721. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2723. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2724. ac_cache_corrupted=:
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2727. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2728. eval $ac_var=\$ac_old_val
  2729. fi
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2731. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2733. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2734. fi;;
  2735. esac
  2736. # Pass precious variables to config.status.
  2737. if test "$ac_new_set" = set; then
  2738. case $ac_new_val in
  2739. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2740. *) ac_arg=$ac_var=$ac_new_val ;;
  2741. esac
  2742. case " $ac_configure_args " in
  2743. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2744. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2745. esac
  2746. fi
  2747. done
  2748. if $ac_cache_corrupted; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2750. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2752. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2753. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2754. fi
  2755. ## -------------------- ##
  2756. ## Main body of script. ##
  2757. ## -------------------- ##
  2758. ac_ext=c
  2759. ac_cpp='$CPP $CPPFLAGS'
  2760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2763. ac_config_headers="$ac_config_headers src/config.h"
  2764. ac_aux_dir=
  2765. for ac_dir in config "$srcdir"/config; do
  2766. if test -f "$ac_dir/install-sh"; then
  2767. ac_aux_dir=$ac_dir
  2768. ac_install_sh="$ac_aux_dir/install-sh -c"
  2769. break
  2770. elif test -f "$ac_dir/install.sh"; then
  2771. ac_aux_dir=$ac_dir
  2772. ac_install_sh="$ac_aux_dir/install.sh -c"
  2773. break
  2774. elif test -f "$ac_dir/shtool"; then
  2775. ac_aux_dir=$ac_dir
  2776. ac_install_sh="$ac_aux_dir/shtool install -c"
  2777. break
  2778. fi
  2779. done
  2780. if test -z "$ac_aux_dir"; then
  2781. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2782. fi
  2783. # These three variables are undocumented and unsupported,
  2784. # and are intended to be withdrawn in a future Autoconf release.
  2785. # They can cause serious problems if a builder's source tree is in a directory
  2786. # whose full name contains unusual characters.
  2787. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2788. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2789. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2791. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2792. # Check whether --enable-maintainer-mode was given.
  2793. if test "${enable_maintainer_mode+set}" = set; then :
  2794. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2795. else
  2796. USE_MAINTAINER_MODE=yes
  2797. fi
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2799. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2800. if test $USE_MAINTAINER_MODE = yes; then
  2801. MAINTAINER_MODE_TRUE=
  2802. MAINTAINER_MODE_FALSE='#'
  2803. else
  2804. MAINTAINER_MODE_TRUE='#'
  2805. MAINTAINER_MODE_FALSE=
  2806. fi
  2807. MAINT=$MAINTAINER_MODE_TRUE
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2809. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2810. # Check whether --with-dmalloc was given.
  2811. if test "${with_dmalloc+set}" = set; then :
  2812. withval=$with_dmalloc; if test "$withval" = yes; then
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2814. $as_echo "yes" >&6; }
  2815. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2816. LIBS="$LIBS -ldmalloc"
  2817. LDFLAGS="$LDFLAGS -g"
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. else
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2824. $as_echo "no" >&6; }
  2825. fi
  2826. MAINTAINER_AUTOGEN_VERSION=5.18.16
  2827. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2828. TCPREPLAY_RELEASE=1
  2829. # Make sure we can run config.sub.
  2830. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2831. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2833. $as_echo_n "checking build system type... " >&6; }
  2834. if ${ac_cv_build+:} false; then :
  2835. $as_echo_n "(cached) " >&6
  2836. else
  2837. ac_build_alias=$build_alias
  2838. test "x$ac_build_alias" = x &&
  2839. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2840. test "x$ac_build_alias" = x &&
  2841. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2842. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2843. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2844. fi
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2846. $as_echo "$ac_cv_build" >&6; }
  2847. case $ac_cv_build in
  2848. *-*-*) ;;
  2849. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2850. esac
  2851. build=$ac_cv_build
  2852. ac_save_IFS=$IFS; IFS='-'
  2853. set x $ac_cv_build
  2854. shift
  2855. build_cpu=$1
  2856. build_vendor=$2
  2857. shift; shift
  2858. # Remember, the first character of IFS is used to create $*,
  2859. # except with old shells:
  2860. build_os=$*
  2861. IFS=$ac_save_IFS
  2862. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2864. $as_echo_n "checking host system type... " >&6; }
  2865. if ${ac_cv_host+:} false; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test "x$host_alias" = x; then
  2869. ac_cv_host=$ac_cv_build
  2870. else
  2871. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2872. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2873. fi
  2874. fi
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2876. $as_echo "$ac_cv_host" >&6; }
  2877. case $ac_cv_host in
  2878. *-*-*) ;;
  2879. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2880. esac
  2881. host=$ac_cv_host
  2882. ac_save_IFS=$IFS; IFS='-'
  2883. set x $ac_cv_host
  2884. shift
  2885. host_cpu=$1
  2886. host_vendor=$2
  2887. shift; shift
  2888. # Remember, the first character of IFS is used to create $*,
  2889. # except with old shells:
  2890. host_os=$*
  2891. IFS=$ac_save_IFS
  2892. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2894. $as_echo_n "checking target system type... " >&6; }
  2895. if ${ac_cv_target+:} false; then :
  2896. $as_echo_n "(cached) " >&6
  2897. else
  2898. if test "x$target_alias" = x; then
  2899. ac_cv_target=$ac_cv_host
  2900. else
  2901. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2902. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2903. fi
  2904. fi
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2906. $as_echo "$ac_cv_target" >&6; }
  2907. case $ac_cv_target in
  2908. *-*-*) ;;
  2909. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2910. esac
  2911. target=$ac_cv_target
  2912. ac_save_IFS=$IFS; IFS='-'
  2913. set x $ac_cv_target
  2914. shift
  2915. target_cpu=$1
  2916. target_vendor=$2
  2917. shift; shift
  2918. # Remember, the first character of IFS is used to create $*,
  2919. # except with old shells:
  2920. target_os=$*
  2921. IFS=$ac_save_IFS
  2922. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2923. # The aliases save the names the user supplied, while $host etc.
  2924. # will get canonicalized.
  2925. test -n "$target_alias" &&
  2926. test "$program_prefix$program_suffix$program_transform_name" = \
  2927. NONENONEs,x,x, &&
  2928. program_prefix=${target_alias}-
  2929. CROSS_ARCH=
  2930. CROSS_LD=
  2931. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2932. if test "$cross_compiling" = "yes" ; then
  2933. CROSS_ARCH="ARCH=$host_cpu"
  2934. CROSS_LD="LD=$LD"
  2935. fi
  2936. # Check whether --with-macos-sdk was given.
  2937. if test "${with_macos_sdk+set}" = set; then :
  2938. withval=$with_macos_sdk;
  2939. fi
  2940. case "$host_os" in
  2941. darwin*) # Mac OS X or iOS
  2942. # If no --with-macos-sdk option is given, look for the latestq SDK
  2943. # The intent is that for "most" Mac-based developers, a suitable
  2944. # SDK will be found automatically without any configure options.
  2945. # For developers with a current Xcode, the lowest-numbered SDK
  2946. # higher than or equal to the minimum required should be found.
  2947. # To find a list of available version run `xcodebuild -showsdks`
  2948. MULTIARCH=${host_cpu}-${host_os}
  2949. unset MACOSX_SDK_PATH
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2951. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2952. if test -n "$with_macos_sdk"; then
  2953. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  2954. if test -z "$MACOSX_SDK_PATH" ; then
  2955. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  2956. fi
  2957. else
  2958. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  2959. if test -z "$MACOSX_SDK_PATH" ; then
  2960. for _macos_sdk_major in $(seq 15 -1 10); do
  2961. for _macos_sdk_minor in $(seq 20 -1 0); do
  2962. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2963. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  2964. if test -d "$_macos_sdk_path" ; then
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. if test -z "$MACOSX_SDK_PATH"; then
  2970. for _macos_sdk_major in $(seq 15 -1 10); do
  2971. for _macos_sdk_minor in $(seq 20 -1 0); do
  2972. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2973. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  2974. if test -d "$MACOSX_SDK_PATH"; then
  2975. break 2
  2976. fi
  2977. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  2978. if test -d "$MACOSX_SDK_PATH"; then
  2979. break 2
  2980. fi
  2981. done
  2982. done
  2983. fi
  2984. fi
  2985. fi
  2986. if test -d "$MACOSX_SDK_PATH"; then
  2987. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2988. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2989. AR=$(xcrun -find ar)
  2990. NM=$(xcrun -find nm)
  2991. STRIP=$(xcrun -find strip)
  2992. LIBTOOL=$(xcrun -find libtool)
  2993. RANLIB=$(xcrun -find ranlib)
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  2995. $as_echo "${MACOSX_SDK_PATH}" >&6; }
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2998. $as_echo "legacy" >&6; }
  2999. fi
  3000. ;;
  3001. Linux*)
  3002. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  3003. ;;
  3004. *)
  3005. MULTIARCH=${host_cpu}-${host_os}
  3006. ;;
  3007. esac
  3008. # Note that the OS X libtool command is unrelated to GNU libtool
  3009. # Check whether --with-pfring-lib was given.
  3010. if test "${with_pfring_lib+set}" = set; then :
  3011. withval=$with_pfring_lib;
  3012. fi
  3013. have_cygwin=no
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  3015. $as_echo_n "checking for cygwin development environment... " >&6; }
  3016. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3017. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3019. $as_echo "yes" >&6; }
  3020. have_cygwin=yes
  3021. else
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3023. $as_echo "no" >&6; }
  3024. fi
  3025. am__api_version='1.16'
  3026. # Find a good install program. We prefer a C program (faster),
  3027. # so one script is as good as another. But avoid the broken or
  3028. # incompatible versions:
  3029. # SysV /etc/install, /usr/sbin/install
  3030. # SunOS /usr/etc/install
  3031. # IRIX /sbin/install
  3032. # AIX /bin/install
  3033. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3034. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3035. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3036. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3037. # OS/2's system install, which has a completely different semantic
  3038. # ./install, which can be erroneously created by make from ./install.sh.
  3039. # Reject install programs that cannot install multiple files.
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3041. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3042. if test -z "$INSTALL"; then
  3043. if ${ac_cv_path_install+:} false; then :
  3044. $as_echo_n "(cached) " >&6
  3045. else
  3046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3047. for as_dir in $PATH
  3048. do
  3049. IFS=$as_save_IFS
  3050. test -z "$as_dir" && as_dir=.
  3051. # Account for people who put trailing slashes in PATH elements.
  3052. case $as_dir/ in #((
  3053. ./ | .// | /[cC]/* | \
  3054. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3055. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3056. /usr/ucb/* ) ;;
  3057. *)
  3058. # OSF1 and SCO ODT 3.0 have their own names for install.
  3059. # Don't use installbsd from OSF since it installs stuff as root
  3060. # by default.
  3061. for ac_prog in ginstall scoinst install; do
  3062. for ac_exec_ext in '' $ac_executable_extensions; do
  3063. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3064. if test $ac_prog = install &&
  3065. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3066. # AIX install. It has an incompatible calling convention.
  3067. :
  3068. elif test $ac_prog = install &&
  3069. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3070. # program-specific install script used by HP pwplus--don't use.
  3071. :
  3072. else
  3073. rm -rf conftest.one conftest.two conftest.dir
  3074. echo one > conftest.one
  3075. echo two > conftest.two
  3076. mkdir conftest.dir
  3077. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3078. test -s conftest.one && test -s conftest.two &&
  3079. test -s conftest.dir/conftest.one &&
  3080. test -s conftest.dir/conftest.two
  3081. then
  3082. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3083. break 3
  3084. fi
  3085. fi
  3086. fi
  3087. done
  3088. done
  3089. ;;
  3090. esac
  3091. done
  3092. IFS=$as_save_IFS
  3093. rm -rf conftest.one conftest.two conftest.dir
  3094. fi
  3095. if test "${ac_cv_path_install+set}" = set; then
  3096. INSTALL=$ac_cv_path_install
  3097. else
  3098. # As a last resort, use the slow shell script. Don't cache a
  3099. # value for INSTALL within a source directory, because that will
  3100. # break other packages using the cache if that directory is
  3101. # removed, or if the value is a relative name.
  3102. INSTALL=$ac_install_sh
  3103. fi
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3106. $as_echo "$INSTALL" >&6; }
  3107. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3108. # It thinks the first close brace ends the variable substitution.
  3109. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3110. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3111. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3113. $as_echo_n "checking whether build environment is sane... " >&6; }
  3114. # Reject unsafe characters in $srcdir or the absolute working directory
  3115. # name. Accept space and tab only in the latter.
  3116. am_lf='
  3117. '
  3118. case `pwd` in
  3119. *[\\\"\#\$\&\'\`$am_lf]*)
  3120. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3121. esac
  3122. case $srcdir in
  3123. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3124. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3125. esac
  3126. # Do 'set' in a subshell so we don't clobber the current shell's
  3127. # arguments. Must try -L first in case configure is actually a
  3128. # symlink; some systems play weird games with the mod time of symlinks
  3129. # (eg FreeBSD returns the mod time of the symlink's containing
  3130. # directory).
  3131. if (
  3132. am_has_slept=no
  3133. for am_try in 1 2; do
  3134. echo "timestamp, slept: $am_has_slept" > conftest.file
  3135. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3136. if test "$*" = "X"; then
  3137. # -L didn't work.
  3138. set X `ls -t "$srcdir/configure" conftest.file`
  3139. fi
  3140. if test "$*" != "X $srcdir/configure conftest.file" \
  3141. && test "$*" != "X conftest.file $srcdir/configure"; then
  3142. # If neither matched, then we have a broken ls. This can happen
  3143. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3144. # broken ls alias from the environment. This has actually
  3145. # happened. Such a system could not be considered "sane".
  3146. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3147. alias in your environment" "$LINENO" 5
  3148. fi
  3149. if test "$2" = conftest.file || test $am_try -eq 2; then
  3150. break
  3151. fi
  3152. # Just in case.
  3153. sleep 1
  3154. am_has_slept=yes
  3155. done
  3156. test "$2" = conftest.file
  3157. )
  3158. then
  3159. # Ok.
  3160. :
  3161. else
  3162. as_fn_error $? "newly created file is older than distributed files!
  3163. Check your system clock" "$LINENO" 5
  3164. fi
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3166. $as_echo "yes" >&6; }
  3167. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3168. # generated files are strictly newer.
  3169. am_sleep_pid=
  3170. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3171. ( sleep 1 ) &
  3172. am_sleep_pid=$!
  3173. fi
  3174. rm -f conftest.file
  3175. test "$program_prefix" != NONE &&
  3176. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3177. # Use a double $ so make ignores it.
  3178. test "$program_suffix" != NONE &&
  3179. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3180. # Double any \ or $.
  3181. # By default was `s,x,x', remove it if useless.
  3182. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3183. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3184. # Expand $ac_aux_dir to an absolute path.
  3185. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3186. if test x"${MISSING+set}" != xset; then
  3187. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3188. fi
  3189. # Use eval to expand $SHELL
  3190. if eval "$MISSING --is-lightweight"; then
  3191. am_missing_run="$MISSING "
  3192. else
  3193. am_missing_run=
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3195. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3196. fi
  3197. if test x"${install_sh+set}" != xset; then
  3198. case $am_aux_dir in
  3199. *\ * | *\ *)
  3200. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3201. *)
  3202. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3203. esac
  3204. fi
  3205. # Installed binaries are usually stripped using 'strip' when the user
  3206. # run "make install-strip". However 'strip' might not be the right
  3207. # tool to use in cross-compilation environments, therefore Automake
  3208. # will honor the 'STRIP' environment variable to overrule this program.
  3209. if test "$cross_compiling" != no; then
  3210. if test -n "$ac_tool_prefix"; then
  3211. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3212. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3214. $as_echo_n "checking for $ac_word... " >&6; }
  3215. if ${ac_cv_prog_STRIP+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if test -n "$STRIP"; then
  3219. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3220. else
  3221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3222. for as_dir in $PATH
  3223. do
  3224. IFS=$as_save_IFS
  3225. test -z "$as_dir" && as_dir=.
  3226. for ac_exec_ext in '' $ac_executable_extensions; do
  3227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3228. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. IFS=$as_save_IFS
  3235. fi
  3236. fi
  3237. STRIP=$ac_cv_prog_STRIP
  3238. if test -n "$STRIP"; then
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3240. $as_echo "$STRIP" >&6; }
  3241. else
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3243. $as_echo "no" >&6; }
  3244. fi
  3245. fi
  3246. if test -z "$ac_cv_prog_STRIP"; then
  3247. ac_ct_STRIP=$STRIP
  3248. # Extract the first word of "strip", so it can be a program name with args.
  3249. set dummy strip; ac_word=$2
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3251. $as_echo_n "checking for $ac_word... " >&6; }
  3252. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -n "$ac_ct_STRIP"; then
  3256. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3257. else
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3265. ac_cv_prog_ac_ct_STRIP="strip"
  3266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. fi
  3273. fi
  3274. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3275. if test -n "$ac_ct_STRIP"; then
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3277. $as_echo "$ac_ct_STRIP" >&6; }
  3278. else
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3280. $as_echo "no" >&6; }
  3281. fi
  3282. if test "x$ac_ct_STRIP" = x; then
  3283. STRIP=":"
  3284. else
  3285. case $cross_compiling:$ac_tool_warned in
  3286. yes:)
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3289. ac_tool_warned=yes ;;
  3290. esac
  3291. STRIP=$ac_ct_STRIP
  3292. fi
  3293. else
  3294. STRIP="$ac_cv_prog_STRIP"
  3295. fi
  3296. fi
  3297. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3299. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3300. if test -z "$MKDIR_P"; then
  3301. if ${ac_cv_path_mkdir+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_prog in mkdir gmkdir; do
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3312. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3313. 'mkdir (GNU coreutils) '* | \
  3314. 'mkdir (coreutils) '* | \
  3315. 'mkdir (fileutils) '4.1*)
  3316. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3317. break 3;;
  3318. esac
  3319. done
  3320. done
  3321. done
  3322. IFS=$as_save_IFS
  3323. fi
  3324. test -d ./--version && rmdir ./--version
  3325. if test "${ac_cv_path_mkdir+set}" = set; then
  3326. MKDIR_P="$ac_cv_path_mkdir -p"
  3327. else
  3328. # As a last resort, use the slow shell script. Don't cache a
  3329. # value for MKDIR_P within a source directory, because that will
  3330. # break other packages using the cache if that directory is
  3331. # removed, or if the value is a relative name.
  3332. MKDIR_P="$ac_install_sh -d"
  3333. fi
  3334. fi
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3336. $as_echo "$MKDIR_P" >&6; }
  3337. for ac_prog in gawk mawk nawk awk
  3338. do
  3339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3340. set dummy $ac_prog; ac_word=$2
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if ${ac_cv_prog_AWK+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$AWK"; then
  3347. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_exec_ext in '' $ac_executable_extensions; do
  3355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3356. ac_cv_prog_AWK="$ac_prog"
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3358. break 2
  3359. fi
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. fi
  3364. fi
  3365. AWK=$ac_cv_prog_AWK
  3366. if test -n "$AWK"; then
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3368. $as_echo "$AWK" >&6; }
  3369. else
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3371. $as_echo "no" >&6; }
  3372. fi
  3373. test -n "$AWK" && break
  3374. done
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3376. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3377. set x ${MAKE-make}
  3378. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3379. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. cat >conftest.make <<\_ACEOF
  3383. SHELL = /bin/sh
  3384. all:
  3385. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3386. _ACEOF
  3387. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3388. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3389. *@@@%%%=?*=@@@%%%*)
  3390. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3391. *)
  3392. eval ac_cv_prog_make_${ac_make}_set=no;;
  3393. esac
  3394. rm -f conftest.make
  3395. fi
  3396. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3398. $as_echo "yes" >&6; }
  3399. SET_MAKE=
  3400. else
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3402. $as_echo "no" >&6; }
  3403. SET_MAKE="MAKE=${MAKE-make}"
  3404. fi
  3405. rm -rf .tst 2>/dev/null
  3406. mkdir .tst 2>/dev/null
  3407. if test -d .tst; then
  3408. am__leading_dot=.
  3409. else
  3410. am__leading_dot=_
  3411. fi
  3412. rmdir .tst 2>/dev/null
  3413. # Check whether --enable-silent-rules was given.
  3414. if test "${enable_silent_rules+set}" = set; then :
  3415. enableval=$enable_silent_rules;
  3416. fi
  3417. case $enable_silent_rules in # (((
  3418. yes) AM_DEFAULT_VERBOSITY=0;;
  3419. no) AM_DEFAULT_VERBOSITY=1;;
  3420. *) AM_DEFAULT_VERBOSITY=1;;
  3421. esac
  3422. am_make=${MAKE-make}
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3424. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3425. if ${am_cv_make_support_nested_variables+:} false; then :
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. if $as_echo 'TRUE=$(BAR$(V))
  3429. BAR0=false
  3430. BAR1=true
  3431. V=1
  3432. am__doit:
  3433. @$(TRUE)
  3434. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3435. am_cv_make_support_nested_variables=yes
  3436. else
  3437. am_cv_make_support_nested_variables=no
  3438. fi
  3439. fi
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3441. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3442. if test $am_cv_make_support_nested_variables = yes; then
  3443. AM_V='$(V)'
  3444. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3445. else
  3446. AM_V=$AM_DEFAULT_VERBOSITY
  3447. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3448. fi
  3449. AM_BACKSLASH='\'
  3450. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3451. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3452. # is not polluted with repeated "-I."
  3453. am__isrc=' -I$(srcdir)'
  3454. # test to see if srcdir already configured
  3455. if test -f $srcdir/config.status; then
  3456. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3457. fi
  3458. fi
  3459. # test whether we have cygpath
  3460. if test -z "$CYGPATH_W"; then
  3461. if (cygpath --version) >/dev/null 2>/dev/null; then
  3462. CYGPATH_W='cygpath -w'
  3463. else
  3464. CYGPATH_W=echo
  3465. fi
  3466. fi
  3467. # Define the identity of the package.
  3468. PACKAGE='tcpreplay'
  3469. VERSION='4.5.1'
  3470. cat >>confdefs.h <<_ACEOF
  3471. #define PACKAGE "$PACKAGE"
  3472. _ACEOF
  3473. cat >>confdefs.h <<_ACEOF
  3474. #define VERSION "$VERSION"
  3475. _ACEOF
  3476. # Some tools Automake needs.
  3477. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3478. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3479. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3480. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3481. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3482. # For better backward compatibility. To be removed once Automake 1.9.x
  3483. # dies out for good. For more background, see:
  3484. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3485. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3486. mkdir_p='$(MKDIR_P)'
  3487. # We need awk for the "check" target (and possibly the TAP driver). The
  3488. # system "awk" is bad on some platforms.
  3489. # Always define AMTAR for backward compatibility. Yes, it's still used
  3490. # in the wild :-( We should find a proper way to deprecate it ...
  3491. AMTAR='$${TAR-tar}'
  3492. # We'll loop over all known methods to create a tar archive until one works.
  3493. _am_tools='gnutar pax cpio none'
  3494. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3495. # POSIX will say in a future version that running "rm -f" with no argument
  3496. # is OK; and we want to be able to make that assumption in our Makefile
  3497. # recipes. So use an aggressive probe to check that the usage we want is
  3498. # actually supported "in the wild" to an acceptable degree.
  3499. # See automake bug#10828.
  3500. # To make any issue more visible, cause the running configure to be aborted
  3501. # by default if the 'rm' program in use doesn't match our expectations; the
  3502. # user can still override this though.
  3503. if rm -f && rm -fr && rm -rf; then : OK; else
  3504. cat >&2 <<'END'
  3505. Oops!
  3506. Your 'rm' program seems unable to run without file operands specified
  3507. on the command line, even when the '-f' option is present. This is contrary
  3508. to the behaviour of most rm programs out there, and not conforming with
  3509. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3510. Please tell bug-automake@gnu.org about your system, including the value
  3511. of your $PATH and any error possibly output before this message. This
  3512. can help us improve future automake versions.
  3513. END
  3514. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3515. echo 'Configuration will proceed anyway, since you have set the' >&2
  3516. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3517. echo >&2
  3518. else
  3519. cat >&2 <<'END'
  3520. Aborting the configuration process, to ensure you take notice of the issue.
  3521. You can download and install GNU coreutils to get an 'rm' implementation
  3522. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3523. If you want to complete the configuration process using your problematic
  3524. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3525. to "yes", and re-run configure.
  3526. END
  3527. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3528. fi
  3529. fi
  3530. # Check whether --enable-silent-rules was given.
  3531. if test "${enable_silent_rules+set}" = set; then :
  3532. enableval=$enable_silent_rules;
  3533. fi
  3534. case $enable_silent_rules in # (((
  3535. yes) AM_DEFAULT_VERBOSITY=0;;
  3536. no) AM_DEFAULT_VERBOSITY=1;;
  3537. *) AM_DEFAULT_VERBOSITY=0;;
  3538. esac
  3539. am_make=${MAKE-make}
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3541. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3542. if ${am_cv_make_support_nested_variables+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if $as_echo 'TRUE=$(BAR$(V))
  3546. BAR0=false
  3547. BAR1=true
  3548. V=1
  3549. am__doit:
  3550. @$(TRUE)
  3551. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3552. am_cv_make_support_nested_variables=yes
  3553. else
  3554. am_cv_make_support_nested_variables=no
  3555. fi
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3558. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3559. if test $am_cv_make_support_nested_variables = yes; then
  3560. AM_V='$(V)'
  3561. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3562. else
  3563. AM_V=$AM_DEFAULT_VERBOSITY
  3564. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3565. fi
  3566. AM_BACKSLASH='\'
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3570. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3571. cat > confinc.mk << 'END'
  3572. am__doit:
  3573. @echo this is the am__doit target >confinc.out
  3574. .PHONY: am__doit
  3575. END
  3576. am__include="#"
  3577. am__quote=
  3578. # BSD make does it like this.
  3579. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3580. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3581. echo 'include confinc.mk # ignored' > confmf.GNU
  3582. _am_result=no
  3583. for s in GNU BSD; do
  3584. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3585. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3586. ac_status=$?
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }
  3589. case $?:`cat confinc.out 2>/dev/null` in #(
  3590. '0:this is the am__doit target') :
  3591. case $s in #(
  3592. BSD) :
  3593. am__include='.include' am__quote='"' ;; #(
  3594. *) :
  3595. am__include='include' am__quote='' ;;
  3596. esac ;; #(
  3597. *) :
  3598. ;;
  3599. esac
  3600. if test "$am__include" != "#"; then
  3601. _am_result="yes ($s style)"
  3602. break
  3603. fi
  3604. done
  3605. rm -f confinc.* confmf.*
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3607. $as_echo "${_am_result}" >&6; }
  3608. # Check whether --enable-dependency-tracking was given.
  3609. if test "${enable_dependency_tracking+set}" = set; then :
  3610. enableval=$enable_dependency_tracking;
  3611. fi
  3612. if test "x$enable_dependency_tracking" != xno; then
  3613. am_depcomp="$ac_aux_dir/depcomp"
  3614. AMDEPBACKSLASH='\'
  3615. am__nodep='_no'
  3616. fi
  3617. if test "x$enable_dependency_tracking" != xno; then
  3618. AMDEP_TRUE=
  3619. AMDEP_FALSE='#'
  3620. else
  3621. AMDEP_TRUE='#'
  3622. AMDEP_FALSE=
  3623. fi
  3624. ac_ext=c
  3625. ac_cpp='$CPP $CPPFLAGS'
  3626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3629. if test -n "$ac_tool_prefix"; then
  3630. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3631. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3633. $as_echo_n "checking for $ac_word... " >&6; }
  3634. if ${ac_cv_prog_CC+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -n "$CC"; then
  3638. ac_cv_prog_CC="$CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. test -z "$as_dir" && as_dir=.
  3645. for ac_exec_ext in '' $ac_executable_extensions; do
  3646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3647. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3649. break 2
  3650. fi
  3651. done
  3652. done
  3653. IFS=$as_save_IFS
  3654. fi
  3655. fi
  3656. CC=$ac_cv_prog_CC
  3657. if test -n "$CC"; then
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3659. $as_echo "$CC" >&6; }
  3660. else
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3662. $as_echo "no" >&6; }
  3663. fi
  3664. fi
  3665. if test -z "$ac_cv_prog_CC"; then
  3666. ac_ct_CC=$CC
  3667. # Extract the first word of "gcc", so it can be a program name with args.
  3668. set dummy gcc; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$ac_ct_CC"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3684. ac_cv_prog_ac_ct_CC="gcc"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3694. if test -n "$ac_ct_CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3696. $as_echo "$ac_ct_CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. if test "x$ac_ct_CC" = x; then
  3702. CC=""
  3703. else
  3704. case $cross_compiling:$ac_tool_warned in
  3705. yes:)
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3708. ac_tool_warned=yes ;;
  3709. esac
  3710. CC=$ac_ct_CC
  3711. fi
  3712. else
  3713. CC="$ac_cv_prog_CC"
  3714. fi
  3715. if test -z "$CC"; then
  3716. if test -n "$ac_tool_prefix"; then
  3717. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3718. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3720. $as_echo_n "checking for $ac_word... " >&6; }
  3721. if ${ac_cv_prog_CC+:} false; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. if test -n "$CC"; then
  3725. ac_cv_prog_CC="$CC" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3734. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. fi
  3742. fi
  3743. CC=$ac_cv_prog_CC
  3744. if test -n "$CC"; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3746. $as_echo "$CC" >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3749. $as_echo "no" >&6; }
  3750. fi
  3751. fi
  3752. fi
  3753. if test -z "$CC"; then
  3754. # Extract the first word of "cc", so it can be a program name with args.
  3755. set dummy cc; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if ${ac_cv_prog_CC+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$CC"; then
  3762. ac_cv_prog_CC="$CC" # Let the user override the test.
  3763. else
  3764. ac_prog_rejected=no
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3773. ac_prog_rejected=yes
  3774. continue
  3775. fi
  3776. ac_cv_prog_CC="cc"
  3777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3778. break 2
  3779. fi
  3780. done
  3781. done
  3782. IFS=$as_save_IFS
  3783. if test $ac_prog_rejected = yes; then
  3784. # We found a bogon in the path, so make sure we never use it.
  3785. set dummy $ac_cv_prog_CC
  3786. shift
  3787. if test $# != 0; then
  3788. # We chose a different compiler from the bogus one.
  3789. # However, it has the same basename, so the bogon will be chosen
  3790. # first if we set CC to just the basename; use the full file name.
  3791. shift
  3792. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3793. fi
  3794. fi
  3795. fi
  3796. fi
  3797. CC=$ac_cv_prog_CC
  3798. if test -n "$CC"; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3800. $as_echo "$CC" >&6; }
  3801. else
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. fi
  3806. if test -z "$CC"; then
  3807. if test -n "$ac_tool_prefix"; then
  3808. for ac_prog in cl.exe
  3809. do
  3810. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if ${ac_cv_prog_CC+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$CC"; then
  3818. ac_cv_prog_CC="$CC" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3827. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. CC=$ac_cv_prog_CC
  3837. if test -n "$CC"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3839. $as_echo "$CC" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$CC" && break
  3845. done
  3846. fi
  3847. if test -z "$CC"; then
  3848. ac_ct_CC=$CC
  3849. for ac_prog in cl.exe
  3850. do
  3851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3852. set dummy $ac_prog; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$ac_ct_CC"; then
  3859. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3860. else
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3868. ac_cv_prog_ac_ct_CC="$ac_prog"
  3869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3870. break 2
  3871. fi
  3872. done
  3873. done
  3874. IFS=$as_save_IFS
  3875. fi
  3876. fi
  3877. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3878. if test -n "$ac_ct_CC"; then
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3880. $as_echo "$ac_ct_CC" >&6; }
  3881. else
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3883. $as_echo "no" >&6; }
  3884. fi
  3885. test -n "$ac_ct_CC" && break
  3886. done
  3887. if test "x$ac_ct_CC" = x; then
  3888. CC=""
  3889. else
  3890. case $cross_compiling:$ac_tool_warned in
  3891. yes:)
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3894. ac_tool_warned=yes ;;
  3895. esac
  3896. CC=$ac_ct_CC
  3897. fi
  3898. fi
  3899. fi
  3900. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3902. as_fn_error $? "no acceptable C compiler found in \$PATH
  3903. See \`config.log' for more details" "$LINENO" 5; }
  3904. # Provide some information about the compiler.
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3906. set X $ac_compile
  3907. ac_compiler=$2
  3908. for ac_option in --version -v -V -qversion; do
  3909. { { ac_try="$ac_compiler $ac_option >&5"
  3910. case "(($ac_try" in
  3911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3912. *) ac_try_echo=$ac_try;;
  3913. esac
  3914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3915. $as_echo "$ac_try_echo"; } >&5
  3916. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3917. ac_status=$?
  3918. if test -s conftest.err; then
  3919. sed '10a\
  3920. ... rest of stderr output deleted ...
  3921. 10q' conftest.err >conftest.er1
  3922. cat conftest.er1 >&5
  3923. fi
  3924. rm -f conftest.er1 conftest.err
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3926. test $ac_status = 0; }
  3927. done
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. int
  3931. main ()
  3932. {
  3933. ;
  3934. return 0;
  3935. }
  3936. _ACEOF
  3937. ac_clean_files_save=$ac_clean_files
  3938. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3939. # Try to create an executable without -o first, disregard a.out.
  3940. # It will help us diagnose broken compilers, and finding out an intuition
  3941. # of exeext.
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3943. $as_echo_n "checking whether the C compiler works... " >&6; }
  3944. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3945. # The possible output files:
  3946. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3947. ac_rmfiles=
  3948. for ac_file in $ac_files
  3949. do
  3950. case $ac_file in
  3951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3952. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3953. esac
  3954. done
  3955. rm -f $ac_rmfiles
  3956. if { { ac_try="$ac_link_default"
  3957. case "(($ac_try" in
  3958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3959. *) ac_try_echo=$ac_try;;
  3960. esac
  3961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3962. $as_echo "$ac_try_echo"; } >&5
  3963. (eval "$ac_link_default") 2>&5
  3964. ac_status=$?
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3966. test $ac_status = 0; }; then :
  3967. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3968. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3969. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3970. # so that the user can short-circuit this test for compilers unknown to
  3971. # Autoconf.
  3972. for ac_file in $ac_files ''
  3973. do
  3974. test -f "$ac_file" || continue
  3975. case $ac_file in
  3976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3977. ;;
  3978. [ab].out )
  3979. # We found the default executable, but exeext='' is most
  3980. # certainly right.
  3981. break;;
  3982. *.* )
  3983. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3984. then :; else
  3985. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3986. fi
  3987. # We set ac_cv_exeext here because the later test for it is not
  3988. # safe: cross compilers may not add the suffix if given an `-o'
  3989. # argument, so we may need to know it at that point already.
  3990. # Even if this section looks crufty: it has the advantage of
  3991. # actually working.
  3992. break;;
  3993. * )
  3994. break;;
  3995. esac
  3996. done
  3997. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3998. else
  3999. ac_file=''
  4000. fi
  4001. if test -z "$ac_file"; then :
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4003. $as_echo "no" >&6; }
  4004. $as_echo "$as_me: failed program was:" >&5
  4005. sed 's/^/| /' conftest.$ac_ext >&5
  4006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4008. as_fn_error 77 "C compiler cannot create executables
  4009. See \`config.log' for more details" "$LINENO" 5; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4012. $as_echo "yes" >&6; }
  4013. fi
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4015. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4017. $as_echo "$ac_file" >&6; }
  4018. ac_exeext=$ac_cv_exeext
  4019. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4020. ac_clean_files=$ac_clean_files_save
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4022. $as_echo_n "checking for suffix of executables... " >&6; }
  4023. if { { ac_try="$ac_link"
  4024. case "(($ac_try" in
  4025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4026. *) ac_try_echo=$ac_try;;
  4027. esac
  4028. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4029. $as_echo "$ac_try_echo"; } >&5
  4030. (eval "$ac_link") 2>&5
  4031. ac_status=$?
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4033. test $ac_status = 0; }; then :
  4034. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4035. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4036. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4037. # `rm'.
  4038. for ac_file in conftest.exe conftest conftest.*; do
  4039. test -f "$ac_file" || continue
  4040. case $ac_file in
  4041. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4042. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4043. break;;
  4044. * ) break;;
  4045. esac
  4046. done
  4047. else
  4048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4050. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4051. See \`config.log' for more details" "$LINENO" 5; }
  4052. fi
  4053. rm -f conftest conftest$ac_cv_exeext
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4055. $as_echo "$ac_cv_exeext" >&6; }
  4056. rm -f conftest.$ac_ext
  4057. EXEEXT=$ac_cv_exeext
  4058. ac_exeext=$EXEEXT
  4059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4060. /* end confdefs.h. */
  4061. #include <stdio.h>
  4062. int
  4063. main ()
  4064. {
  4065. FILE *f = fopen ("conftest.out", "w");
  4066. return ferror (f) || fclose (f) != 0;
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. ac_clean_files="$ac_clean_files conftest.out"
  4072. # Check that the compiler produces executables we can run. If not, either
  4073. # the compiler is broken, or we cross compile.
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4075. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4076. if test "$cross_compiling" != yes; then
  4077. { { ac_try="$ac_link"
  4078. case "(($ac_try" in
  4079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4080. *) ac_try_echo=$ac_try;;
  4081. esac
  4082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4083. $as_echo "$ac_try_echo"; } >&5
  4084. (eval "$ac_link") 2>&5
  4085. ac_status=$?
  4086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4087. test $ac_status = 0; }
  4088. if { ac_try='./conftest$ac_cv_exeext'
  4089. { { case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4094. $as_echo "$ac_try_echo"; } >&5
  4095. (eval "$ac_try") 2>&5
  4096. ac_status=$?
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4098. test $ac_status = 0; }; }; then
  4099. cross_compiling=no
  4100. else
  4101. if test "$cross_compiling" = maybe; then
  4102. cross_compiling=yes
  4103. else
  4104. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4105. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4106. as_fn_error $? "cannot run C compiled programs.
  4107. If you meant to cross compile, use \`--host'.
  4108. See \`config.log' for more details" "$LINENO" 5; }
  4109. fi
  4110. fi
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4113. $as_echo "$cross_compiling" >&6; }
  4114. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4115. ac_clean_files=$ac_clean_files_save
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4117. $as_echo_n "checking for suffix of object files... " >&6; }
  4118. if ${ac_cv_objext+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4122. /* end confdefs.h. */
  4123. int
  4124. main ()
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. rm -f conftest.o conftest.obj
  4131. if { { ac_try="$ac_compile"
  4132. case "(($ac_try" in
  4133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4134. *) ac_try_echo=$ac_try;;
  4135. esac
  4136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4137. $as_echo "$ac_try_echo"; } >&5
  4138. (eval "$ac_compile") 2>&5
  4139. ac_status=$?
  4140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4141. test $ac_status = 0; }; then :
  4142. for ac_file in conftest.o conftest.obj conftest.*; do
  4143. test -f "$ac_file" || continue;
  4144. case $ac_file in
  4145. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4146. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4147. break;;
  4148. esac
  4149. done
  4150. else
  4151. $as_echo "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4155. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4156. See \`config.log' for more details" "$LINENO" 5; }
  4157. fi
  4158. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4161. $as_echo "$ac_cv_objext" >&6; }
  4162. OBJEXT=$ac_cv_objext
  4163. ac_objext=$OBJEXT
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4165. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4166. if ${ac_cv_c_compiler_gnu+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. int
  4172. main ()
  4173. {
  4174. #ifndef __GNUC__
  4175. choke me
  4176. #endif
  4177. ;
  4178. return 0;
  4179. }
  4180. _ACEOF
  4181. if ac_fn_c_try_compile "$LINENO"; then :
  4182. ac_compiler_gnu=yes
  4183. else
  4184. ac_compiler_gnu=no
  4185. fi
  4186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4187. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4190. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4191. if test $ac_compiler_gnu = yes; then
  4192. GCC=yes
  4193. else
  4194. GCC=
  4195. fi
  4196. ac_test_CFLAGS=${CFLAGS+set}
  4197. ac_save_CFLAGS=$CFLAGS
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4199. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4200. if ${ac_cv_prog_cc_g+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. ac_save_c_werror_flag=$ac_c_werror_flag
  4204. ac_c_werror_flag=yes
  4205. ac_cv_prog_cc_g=no
  4206. CFLAGS="-g"
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. int
  4210. main ()
  4211. {
  4212. ;
  4213. return 0;
  4214. }
  4215. _ACEOF
  4216. if ac_fn_c_try_compile "$LINENO"; then :
  4217. ac_cv_prog_cc_g=yes
  4218. else
  4219. CFLAGS=""
  4220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4221. /* end confdefs.h. */
  4222. int
  4223. main ()
  4224. {
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. if ac_fn_c_try_compile "$LINENO"; then :
  4230. else
  4231. ac_c_werror_flag=$ac_save_c_werror_flag
  4232. CFLAGS="-g"
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. int
  4236. main ()
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cc_g=yes
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4248. fi
  4249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4250. ac_c_werror_flag=$ac_save_c_werror_flag
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4253. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4254. if test "$ac_test_CFLAGS" = set; then
  4255. CFLAGS=$ac_save_CFLAGS
  4256. elif test $ac_cv_prog_cc_g = yes; then
  4257. if test "$GCC" = yes; then
  4258. CFLAGS="-g -O2"
  4259. else
  4260. CFLAGS="-g"
  4261. fi
  4262. else
  4263. if test "$GCC" = yes; then
  4264. CFLAGS="-O2"
  4265. else
  4266. CFLAGS=
  4267. fi
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4270. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4271. if ${ac_cv_prog_cc_c89+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. ac_cv_prog_cc_c89=no
  4275. ac_save_CC=$CC
  4276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4277. /* end confdefs.h. */
  4278. #include <stdarg.h>
  4279. #include <stdio.h>
  4280. struct stat;
  4281. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4282. struct buf { int x; };
  4283. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4284. static char *e (p, i)
  4285. char **p;
  4286. int i;
  4287. {
  4288. return p[i];
  4289. }
  4290. static char *f (char * (*g) (char **, int), char **p, ...)
  4291. {
  4292. char *s;
  4293. va_list v;
  4294. va_start (v,p);
  4295. s = g (p, va_arg (v,int));
  4296. va_end (v);
  4297. return s;
  4298. }
  4299. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4300. function prototypes and stuff, but not '\xHH' hex character constants.
  4301. These don't provoke an error unfortunately, instead are silently treated
  4302. as 'x'. The following induces an error, until -std is added to get
  4303. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4304. array size at least. It's necessary to write '\x00'==0 to get something
  4305. that's true only with -std. */
  4306. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4307. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4308. inside strings and character constants. */
  4309. #define FOO(x) 'x'
  4310. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4311. int test (int i, double x);
  4312. struct s1 {int (*f) (int a);};
  4313. struct s2 {int (*f) (double a);};
  4314. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4315. int argc;
  4316. char **argv;
  4317. int
  4318. main ()
  4319. {
  4320. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4326. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4327. do
  4328. CC="$ac_save_CC $ac_arg"
  4329. if ac_fn_c_try_compile "$LINENO"; then :
  4330. ac_cv_prog_cc_c89=$ac_arg
  4331. fi
  4332. rm -f core conftest.err conftest.$ac_objext
  4333. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4334. done
  4335. rm -f conftest.$ac_ext
  4336. CC=$ac_save_CC
  4337. fi
  4338. # AC_CACHE_VAL
  4339. case "x$ac_cv_prog_cc_c89" in
  4340. x)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4342. $as_echo "none needed" >&6; } ;;
  4343. xno)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4345. $as_echo "unsupported" >&6; } ;;
  4346. *)
  4347. CC="$CC $ac_cv_prog_cc_c89"
  4348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4349. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4350. esac
  4351. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4352. fi
  4353. ac_ext=c
  4354. ac_cpp='$CPP $CPPFLAGS'
  4355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4358. ac_ext=c
  4359. ac_cpp='$CPP $CPPFLAGS'
  4360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4364. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4365. if ${am_cv_prog_cc_c_o+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4369. /* end confdefs.h. */
  4370. int
  4371. main ()
  4372. {
  4373. ;
  4374. return 0;
  4375. }
  4376. _ACEOF
  4377. # Make sure it works both with $CC and with simple cc.
  4378. # Following AC_PROG_CC_C_O, we do the test twice because some
  4379. # compilers refuse to overwrite an existing .o file with -o,
  4380. # though they will create one.
  4381. am_cv_prog_cc_c_o=yes
  4382. for am_i in 1 2; do
  4383. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4384. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4385. ac_status=$?
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } \
  4388. && test -f conftest2.$ac_objext; then
  4389. : OK
  4390. else
  4391. am_cv_prog_cc_c_o=no
  4392. break
  4393. fi
  4394. done
  4395. rm -f core conftest*
  4396. unset am_i
  4397. fi
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4399. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4400. if test "$am_cv_prog_cc_c_o" != yes; then
  4401. # Losing compiler, so override with the script.
  4402. # FIXME: It is wrong to rewrite CC.
  4403. # But if we don't then we get into trouble of one sort or another.
  4404. # A longer-term fix would be to have automake use am__CC in this case,
  4405. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4406. CC="$am_aux_dir/compile $CC"
  4407. fi
  4408. ac_ext=c
  4409. ac_cpp='$CPP $CPPFLAGS'
  4410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4413. depcc="$CC" am_compiler_list=
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4415. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4416. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4420. # We make a subdir and do the tests there. Otherwise we can end up
  4421. # making bogus files that we don't know about and never remove. For
  4422. # instance it was reported that on HP-UX the gcc test will end up
  4423. # making a dummy file named 'D' -- because '-MD' means "put the output
  4424. # in D".
  4425. rm -rf conftest.dir
  4426. mkdir conftest.dir
  4427. # Copy depcomp to subdir because otherwise we won't find it if we're
  4428. # using a relative directory.
  4429. cp "$am_depcomp" conftest.dir
  4430. cd conftest.dir
  4431. # We will build objects and dependencies in a subdirectory because
  4432. # it helps to detect inapplicable dependency modes. For instance
  4433. # both Tru64's cc and ICC support -MD to output dependencies as a
  4434. # side effect of compilation, but ICC will put the dependencies in
  4435. # the current directory while Tru64 will put them in the object
  4436. # directory.
  4437. mkdir sub
  4438. am_cv_CC_dependencies_compiler_type=none
  4439. if test "$am_compiler_list" = ""; then
  4440. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4441. fi
  4442. am__universal=false
  4443. case " $depcc " in #(
  4444. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4445. esac
  4446. for depmode in $am_compiler_list; do
  4447. # Setup a source with many dependencies, because some compilers
  4448. # like to wrap large dependency lists on column 80 (with \), and
  4449. # we should not choose a depcomp mode which is confused by this.
  4450. #
  4451. # We need to recreate these files for each test, as the compiler may
  4452. # overwrite some of them when testing with obscure command lines.
  4453. # This happens at least with the AIX C compiler.
  4454. : > sub/conftest.c
  4455. for i in 1 2 3 4 5 6; do
  4456. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4457. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4458. # Solaris 10 /bin/sh.
  4459. echo '/* dummy */' > sub/conftst$i.h
  4460. done
  4461. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4462. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4463. # mode. It turns out that the SunPro C++ compiler does not properly
  4464. # handle '-M -o', and we need to detect this. Also, some Intel
  4465. # versions had trouble with output in subdirs.
  4466. am__obj=sub/conftest.${OBJEXT-o}
  4467. am__minus_obj="-o $am__obj"
  4468. case $depmode in
  4469. gcc)
  4470. # This depmode causes a compiler race in universal mode.
  4471. test "$am__universal" = false || continue
  4472. ;;
  4473. nosideeffect)
  4474. # After this tag, mechanisms are not by side-effect, so they'll
  4475. # only be used when explicitly requested.
  4476. if test "x$enable_dependency_tracking" = xyes; then
  4477. continue
  4478. else
  4479. break
  4480. fi
  4481. ;;
  4482. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4483. # This compiler won't grok '-c -o', but also, the minuso test has
  4484. # not run yet. These depmodes are late enough in the game, and
  4485. # so weak that their functioning should not be impacted.
  4486. am__obj=conftest.${OBJEXT-o}
  4487. am__minus_obj=
  4488. ;;
  4489. none) break ;;
  4490. esac
  4491. if depmode=$depmode \
  4492. source=sub/conftest.c object=$am__obj \
  4493. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4494. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4495. >/dev/null 2>conftest.err &&
  4496. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4497. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4498. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4499. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4500. # icc doesn't choke on unknown options, it will just issue warnings
  4501. # or remarks (even with -Werror). So we grep stderr for any message
  4502. # that says an option was ignored or not supported.
  4503. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4504. # icc: Command line warning: ignoring option '-M'; no argument required
  4505. # The diagnosis changed in icc 8.0:
  4506. # icc: Command line remark: option '-MP' not supported
  4507. if (grep 'ignoring option' conftest.err ||
  4508. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4509. am_cv_CC_dependencies_compiler_type=$depmode
  4510. break
  4511. fi
  4512. fi
  4513. done
  4514. cd ..
  4515. rm -rf conftest.dir
  4516. else
  4517. am_cv_CC_dependencies_compiler_type=none
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4521. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4522. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4523. if
  4524. test "x$enable_dependency_tracking" != xno \
  4525. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4526. am__fastdepCC_TRUE=
  4527. am__fastdepCC_FALSE='#'
  4528. else
  4529. am__fastdepCC_TRUE='#'
  4530. am__fastdepCC_FALSE=
  4531. fi
  4532. if test -n "$ac_tool_prefix"; then
  4533. for ac_prog in ar lib "link -lib"
  4534. do
  4535. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4536. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_AR+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$AR"; then
  4543. ac_cv_prog_AR="$AR" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. AR=$ac_cv_prog_AR
  4562. if test -n "$AR"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4564. $as_echo "$AR" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. test -n "$AR" && break
  4570. done
  4571. fi
  4572. if test -z "$AR"; then
  4573. ac_ct_AR=$AR
  4574. for ac_prog in ar lib "link -lib"
  4575. do
  4576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4577. set dummy $ac_prog; ac_word=$2
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4579. $as_echo_n "checking for $ac_word... " >&6; }
  4580. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. if test -n "$ac_ct_AR"; then
  4584. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4585. else
  4586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4587. for as_dir in $PATH
  4588. do
  4589. IFS=$as_save_IFS
  4590. test -z "$as_dir" && as_dir=.
  4591. for ac_exec_ext in '' $ac_executable_extensions; do
  4592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4593. ac_cv_prog_ac_ct_AR="$ac_prog"
  4594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4595. break 2
  4596. fi
  4597. done
  4598. done
  4599. IFS=$as_save_IFS
  4600. fi
  4601. fi
  4602. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4603. if test -n "$ac_ct_AR"; then
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4605. $as_echo "$ac_ct_AR" >&6; }
  4606. else
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4608. $as_echo "no" >&6; }
  4609. fi
  4610. test -n "$ac_ct_AR" && break
  4611. done
  4612. if test "x$ac_ct_AR" = x; then
  4613. AR="false"
  4614. else
  4615. case $cross_compiling:$ac_tool_warned in
  4616. yes:)
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4619. ac_tool_warned=yes ;;
  4620. esac
  4621. AR=$ac_ct_AR
  4622. fi
  4623. fi
  4624. : ${AR=ar}
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4626. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4627. if ${am_cv_ar_interface+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. ac_ext=c
  4631. ac_cpp='$CPP $CPPFLAGS'
  4632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4635. am_cv_ar_interface=ar
  4636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4637. /* end confdefs.h. */
  4638. int some_variable = 0;
  4639. _ACEOF
  4640. if ac_fn_c_try_compile "$LINENO"; then :
  4641. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4642. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4643. (eval $am_ar_try) 2>&5
  4644. ac_status=$?
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4646. test $ac_status = 0; }
  4647. if test "$ac_status" -eq 0; then
  4648. am_cv_ar_interface=ar
  4649. else
  4650. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4651. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4652. (eval $am_ar_try) 2>&5
  4653. ac_status=$?
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4655. test $ac_status = 0; }
  4656. if test "$ac_status" -eq 0; then
  4657. am_cv_ar_interface=lib
  4658. else
  4659. am_cv_ar_interface=unknown
  4660. fi
  4661. fi
  4662. rm -f conftest.lib libconftest.a
  4663. fi
  4664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4665. ac_ext=c
  4666. ac_cpp='$CPP $CPPFLAGS'
  4667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4670. fi
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4672. $as_echo "$am_cv_ar_interface" >&6; }
  4673. case $am_cv_ar_interface in
  4674. ar)
  4675. ;;
  4676. lib)
  4677. # Microsoft lib, so override with the ar-lib wrapper script.
  4678. # FIXME: It is wrong to rewrite AR.
  4679. # But if we don't then we get into trouble of one sort or another.
  4680. # A longer-term fix would be to have automake use am__AR in this case,
  4681. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4682. # similar.
  4683. AR="$am_aux_dir/ar-lib $AR"
  4684. ;;
  4685. unknown)
  4686. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4687. ;;
  4688. esac
  4689. case `pwd` in
  4690. *\ * | *\ *)
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4692. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4693. esac
  4694. macro_version='2.4.6'
  4695. macro_revision='2.4.6'
  4696. ltmain=$ac_aux_dir/ltmain.sh
  4697. # Backslashify metacharacters that are still active within
  4698. # double-quoted strings.
  4699. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4700. # Same as above, but do not quote variable references.
  4701. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4702. # Sed substitution to delay expansion of an escaped shell variable in a
  4703. # double_quote_subst'ed string.
  4704. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4705. # Sed substitution to delay expansion of an escaped single quote.
  4706. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4707. # Sed substitution to avoid accidental globbing in evaled expressions
  4708. no_glob_subst='s/\*/\\\*/g'
  4709. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4710. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4711. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4713. $as_echo_n "checking how to print strings... " >&6; }
  4714. # Test print first, because it will be a builtin if present.
  4715. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4716. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4717. ECHO='print -r --'
  4718. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4719. ECHO='printf %s\n'
  4720. else
  4721. # Use this function as a fallback that always works.
  4722. func_fallback_echo ()
  4723. {
  4724. eval 'cat <<_LTECHO_EOF
  4725. $1
  4726. _LTECHO_EOF'
  4727. }
  4728. ECHO='func_fallback_echo'
  4729. fi
  4730. # func_echo_all arg...
  4731. # Invoke $ECHO with all args, space-separated.
  4732. func_echo_all ()
  4733. {
  4734. $ECHO ""
  4735. }
  4736. case $ECHO in
  4737. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4738. $as_echo "printf" >&6; } ;;
  4739. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4740. $as_echo "print -r" >&6; } ;;
  4741. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4742. $as_echo "cat" >&6; } ;;
  4743. esac
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4745. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4746. if ${ac_cv_path_SED+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4750. for ac_i in 1 2 3 4 5 6 7; do
  4751. ac_script="$ac_script$as_nl$ac_script"
  4752. done
  4753. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4754. { ac_script=; unset ac_script;}
  4755. if test -z "$SED"; then
  4756. ac_path_SED_found=false
  4757. # Loop through the user's path and test for each of PROGNAME-LIST
  4758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4759. for as_dir in $PATH
  4760. do
  4761. IFS=$as_save_IFS
  4762. test -z "$as_dir" && as_dir=.
  4763. for ac_prog in sed gsed; do
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4766. as_fn_executable_p "$ac_path_SED" || continue
  4767. # Check for GNU ac_path_SED and select it if it is found.
  4768. # Check for GNU $ac_path_SED
  4769. case `"$ac_path_SED" --version 2>&1` in
  4770. *GNU*)
  4771. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4772. *)
  4773. ac_count=0
  4774. $as_echo_n 0123456789 >"conftest.in"
  4775. while :
  4776. do
  4777. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4778. mv "conftest.tmp" "conftest.in"
  4779. cp "conftest.in" "conftest.nl"
  4780. $as_echo '' >> "conftest.nl"
  4781. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4782. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4783. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4784. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4785. # Best one so far, save it but keep looking for a better one
  4786. ac_cv_path_SED="$ac_path_SED"
  4787. ac_path_SED_max=$ac_count
  4788. fi
  4789. # 10*(2^10) chars as input seems more than enough
  4790. test $ac_count -gt 10 && break
  4791. done
  4792. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4793. esac
  4794. $ac_path_SED_found && break 3
  4795. done
  4796. done
  4797. done
  4798. IFS=$as_save_IFS
  4799. if test -z "$ac_cv_path_SED"; then
  4800. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4801. fi
  4802. else
  4803. ac_cv_path_SED=$SED
  4804. fi
  4805. fi
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4807. $as_echo "$ac_cv_path_SED" >&6; }
  4808. SED="$ac_cv_path_SED"
  4809. rm -f conftest.sed
  4810. test -z "$SED" && SED=sed
  4811. Xsed="$SED -e 1s/^X//"
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4813. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4814. if ${ac_cv_path_GREP+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -z "$GREP"; then
  4818. ac_path_GREP_found=false
  4819. # Loop through the user's path and test for each of PROGNAME-LIST
  4820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4821. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4822. do
  4823. IFS=$as_save_IFS
  4824. test -z "$as_dir" && as_dir=.
  4825. for ac_prog in grep ggrep; do
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4828. as_fn_executable_p "$ac_path_GREP" || continue
  4829. # Check for GNU ac_path_GREP and select it if it is found.
  4830. # Check for GNU $ac_path_GREP
  4831. case `"$ac_path_GREP" --version 2>&1` in
  4832. *GNU*)
  4833. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. *)
  4835. ac_count=0
  4836. $as_echo_n 0123456789 >"conftest.in"
  4837. while :
  4838. do
  4839. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. mv "conftest.tmp" "conftest.in"
  4841. cp "conftest.in" "conftest.nl"
  4842. $as_echo 'GREP' >> "conftest.nl"
  4843. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. # Best one so far, save it but keep looking for a better one
  4848. ac_cv_path_GREP="$ac_path_GREP"
  4849. ac_path_GREP_max=$ac_count
  4850. fi
  4851. # 10*(2^10) chars as input seems more than enough
  4852. test $ac_count -gt 10 && break
  4853. done
  4854. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4855. esac
  4856. $ac_path_GREP_found && break 3
  4857. done
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. if test -z "$ac_cv_path_GREP"; then
  4862. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4863. fi
  4864. else
  4865. ac_cv_path_GREP=$GREP
  4866. fi
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4869. $as_echo "$ac_cv_path_GREP" >&6; }
  4870. GREP="$ac_cv_path_GREP"
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4872. $as_echo_n "checking for egrep... " >&6; }
  4873. if ${ac_cv_path_EGREP+:} false; then :
  4874. $as_echo_n "(cached) " >&6
  4875. else
  4876. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4877. then ac_cv_path_EGREP="$GREP -E"
  4878. else
  4879. if test -z "$EGREP"; then
  4880. ac_path_EGREP_found=false
  4881. # Loop through the user's path and test for each of PROGNAME-LIST
  4882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4883. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4884. do
  4885. IFS=$as_save_IFS
  4886. test -z "$as_dir" && as_dir=.
  4887. for ac_prog in egrep; do
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4890. as_fn_executable_p "$ac_path_EGREP" || continue
  4891. # Check for GNU ac_path_EGREP and select it if it is found.
  4892. # Check for GNU $ac_path_EGREP
  4893. case `"$ac_path_EGREP" --version 2>&1` in
  4894. *GNU*)
  4895. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4896. *)
  4897. ac_count=0
  4898. $as_echo_n 0123456789 >"conftest.in"
  4899. while :
  4900. do
  4901. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4902. mv "conftest.tmp" "conftest.in"
  4903. cp "conftest.in" "conftest.nl"
  4904. $as_echo 'EGREP' >> "conftest.nl"
  4905. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4906. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4907. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4908. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4909. # Best one so far, save it but keep looking for a better one
  4910. ac_cv_path_EGREP="$ac_path_EGREP"
  4911. ac_path_EGREP_max=$ac_count
  4912. fi
  4913. # 10*(2^10) chars as input seems more than enough
  4914. test $ac_count -gt 10 && break
  4915. done
  4916. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4917. esac
  4918. $ac_path_EGREP_found && break 3
  4919. done
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. if test -z "$ac_cv_path_EGREP"; then
  4924. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4925. fi
  4926. else
  4927. ac_cv_path_EGREP=$EGREP
  4928. fi
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4932. $as_echo "$ac_cv_path_EGREP" >&6; }
  4933. EGREP="$ac_cv_path_EGREP"
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4935. $as_echo_n "checking for fgrep... " >&6; }
  4936. if ${ac_cv_path_FGREP+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4940. then ac_cv_path_FGREP="$GREP -F"
  4941. else
  4942. if test -z "$FGREP"; then
  4943. ac_path_FGREP_found=false
  4944. # Loop through the user's path and test for each of PROGNAME-LIST
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_prog in fgrep; do
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4953. as_fn_executable_p "$ac_path_FGREP" || continue
  4954. # Check for GNU ac_path_FGREP and select it if it is found.
  4955. # Check for GNU $ac_path_FGREP
  4956. case `"$ac_path_FGREP" --version 2>&1` in
  4957. *GNU*)
  4958. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4959. *)
  4960. ac_count=0
  4961. $as_echo_n 0123456789 >"conftest.in"
  4962. while :
  4963. do
  4964. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4965. mv "conftest.tmp" "conftest.in"
  4966. cp "conftest.in" "conftest.nl"
  4967. $as_echo 'FGREP' >> "conftest.nl"
  4968. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4969. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4970. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4971. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4972. # Best one so far, save it but keep looking for a better one
  4973. ac_cv_path_FGREP="$ac_path_FGREP"
  4974. ac_path_FGREP_max=$ac_count
  4975. fi
  4976. # 10*(2^10) chars as input seems more than enough
  4977. test $ac_count -gt 10 && break
  4978. done
  4979. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4980. esac
  4981. $ac_path_FGREP_found && break 3
  4982. done
  4983. done
  4984. done
  4985. IFS=$as_save_IFS
  4986. if test -z "$ac_cv_path_FGREP"; then
  4987. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4988. fi
  4989. else
  4990. ac_cv_path_FGREP=$FGREP
  4991. fi
  4992. fi
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4995. $as_echo "$ac_cv_path_FGREP" >&6; }
  4996. FGREP="$ac_cv_path_FGREP"
  4997. test -z "$GREP" && GREP=grep
  4998. # Check whether --with-gnu-ld was given.
  4999. if test "${with_gnu_ld+set}" = set; then :
  5000. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5001. else
  5002. with_gnu_ld=no
  5003. fi
  5004. ac_prog=ld
  5005. if test yes = "$GCC"; then
  5006. # Check if gcc -print-prog-name=ld gives a path.
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5008. $as_echo_n "checking for ld used by $CC... " >&6; }
  5009. case $host in
  5010. *-*-mingw*)
  5011. # gcc leaves a trailing carriage return, which upsets mingw
  5012. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5013. *)
  5014. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5015. esac
  5016. case $ac_prog in
  5017. # Accept absolute paths.
  5018. [\\/]* | ?:[\\/]*)
  5019. re_direlt='/[^/][^/]*/\.\./'
  5020. # Canonicalize the pathname of ld
  5021. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5022. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5023. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5024. done
  5025. test -z "$LD" && LD=$ac_prog
  5026. ;;
  5027. "")
  5028. # If it fails, then pretend we aren't using GCC.
  5029. ac_prog=ld
  5030. ;;
  5031. *)
  5032. # If it is relative, then search for the first ld in PATH.
  5033. with_gnu_ld=unknown
  5034. ;;
  5035. esac
  5036. elif test yes = "$with_gnu_ld"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5038. $as_echo_n "checking for GNU ld... " >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5041. $as_echo_n "checking for non-GNU ld... " >&6; }
  5042. fi
  5043. if ${lt_cv_path_LD+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. if test -z "$LD"; then
  5047. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5048. for ac_dir in $PATH; do
  5049. IFS=$lt_save_ifs
  5050. test -z "$ac_dir" && ac_dir=.
  5051. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5052. lt_cv_path_LD=$ac_dir/$ac_prog
  5053. # Check to see if the program is GNU ld. I'd rather use --version,
  5054. # but apparently some variants of GNU ld only accept -v.
  5055. # Break only if it was the GNU/non-GNU ld that we prefer.
  5056. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5057. *GNU* | *'with BFD'*)
  5058. test no != "$with_gnu_ld" && break
  5059. ;;
  5060. *)
  5061. test yes != "$with_gnu_ld" && break
  5062. ;;
  5063. esac
  5064. fi
  5065. done
  5066. IFS=$lt_save_ifs
  5067. else
  5068. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5069. fi
  5070. fi
  5071. LD=$lt_cv_path_LD
  5072. if test -n "$LD"; then
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5074. $as_echo "$LD" >&6; }
  5075. else
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5077. $as_echo "no" >&6; }
  5078. fi
  5079. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5081. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5082. if ${lt_cv_prog_gnu_ld+:} false; then :
  5083. $as_echo_n "(cached) " >&6
  5084. else
  5085. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5086. case `$LD -v 2>&1 </dev/null` in
  5087. *GNU* | *'with BFD'*)
  5088. lt_cv_prog_gnu_ld=yes
  5089. ;;
  5090. *)
  5091. lt_cv_prog_gnu_ld=no
  5092. ;;
  5093. esac
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5096. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5097. with_gnu_ld=$lt_cv_prog_gnu_ld
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5099. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5100. if ${lt_cv_path_NM+:} false; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. if test -n "$NM"; then
  5104. # Let the user override the test.
  5105. lt_cv_path_NM=$NM
  5106. else
  5107. lt_nm_to_check=${ac_tool_prefix}nm
  5108. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5109. lt_nm_to_check="$lt_nm_to_check nm"
  5110. fi
  5111. for lt_tmp_nm in $lt_nm_to_check; do
  5112. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5113. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5114. IFS=$lt_save_ifs
  5115. test -z "$ac_dir" && ac_dir=.
  5116. tmp_nm=$ac_dir/$lt_tmp_nm
  5117. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5118. # Check to see if the nm accepts a BSD-compat flag.
  5119. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5120. # nm: unknown option "B" ignored
  5121. # Tru64's nm complains that /dev/null is an invalid object file
  5122. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5123. case $build_os in
  5124. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5125. *) lt_bad_file=/dev/null ;;
  5126. esac
  5127. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5128. *$lt_bad_file* | *'Invalid file or object type'*)
  5129. lt_cv_path_NM="$tmp_nm -B"
  5130. break 2
  5131. ;;
  5132. *)
  5133. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5134. */dev/null*)
  5135. lt_cv_path_NM="$tmp_nm -p"
  5136. break 2
  5137. ;;
  5138. *)
  5139. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5140. continue # so that we can try to find one that supports BSD flags
  5141. ;;
  5142. esac
  5143. ;;
  5144. esac
  5145. fi
  5146. done
  5147. IFS=$lt_save_ifs
  5148. done
  5149. : ${lt_cv_path_NM=no}
  5150. fi
  5151. fi
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5153. $as_echo "$lt_cv_path_NM" >&6; }
  5154. if test no != "$lt_cv_path_NM"; then
  5155. NM=$lt_cv_path_NM
  5156. else
  5157. # Didn't find any BSD compatible name lister, look for dumpbin.
  5158. if test -n "$DUMPBIN"; then :
  5159. # Let the user override the test.
  5160. else
  5161. if test -n "$ac_tool_prefix"; then
  5162. for ac_prog in dumpbin "link -dump"
  5163. do
  5164. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5165. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. if test -n "$DUMPBIN"; then
  5172. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5173. else
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5181. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5183. break 2
  5184. fi
  5185. done
  5186. done
  5187. IFS=$as_save_IFS
  5188. fi
  5189. fi
  5190. DUMPBIN=$ac_cv_prog_DUMPBIN
  5191. if test -n "$DUMPBIN"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5193. $as_echo "$DUMPBIN" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. test -n "$DUMPBIN" && break
  5199. done
  5200. fi
  5201. if test -z "$DUMPBIN"; then
  5202. ac_ct_DUMPBIN=$DUMPBIN
  5203. for ac_prog in dumpbin "link -dump"
  5204. do
  5205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5206. set dummy $ac_prog; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_DUMPBIN"; then
  5213. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5222. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5232. if test -n "$ac_ct_DUMPBIN"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5234. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. test -n "$ac_ct_DUMPBIN" && break
  5240. done
  5241. if test "x$ac_ct_DUMPBIN" = x; then
  5242. DUMPBIN=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. DUMPBIN=$ac_ct_DUMPBIN
  5251. fi
  5252. fi
  5253. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5254. *COFF*)
  5255. DUMPBIN="$DUMPBIN -symbols -headers"
  5256. ;;
  5257. *)
  5258. DUMPBIN=:
  5259. ;;
  5260. esac
  5261. fi
  5262. if test : != "$DUMPBIN"; then
  5263. NM=$DUMPBIN
  5264. fi
  5265. fi
  5266. test -z "$NM" && NM=nm
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5268. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5269. if ${lt_cv_nm_interface+:} false; then :
  5270. $as_echo_n "(cached) " >&6
  5271. else
  5272. lt_cv_nm_interface="BSD nm"
  5273. echo "int some_variable = 0;" > conftest.$ac_ext
  5274. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5275. (eval "$ac_compile" 2>conftest.err)
  5276. cat conftest.err >&5
  5277. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5278. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5279. cat conftest.err >&5
  5280. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5281. cat conftest.out >&5
  5282. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5283. lt_cv_nm_interface="MS dumpbin"
  5284. fi
  5285. rm -f conftest*
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5288. $as_echo "$lt_cv_nm_interface" >&6; }
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5290. $as_echo_n "checking whether ln -s works... " >&6; }
  5291. LN_S=$as_ln_s
  5292. if test "$LN_S" = "ln -s"; then
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5294. $as_echo "yes" >&6; }
  5295. else
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5297. $as_echo "no, using $LN_S" >&6; }
  5298. fi
  5299. # find the maximum length of command line arguments
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5301. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5302. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. i=0
  5306. teststring=ABCD
  5307. case $build_os in
  5308. msdosdjgpp*)
  5309. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5310. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5311. # during glob expansion). Even if it were fixed, the result of this
  5312. # check would be larger than it should be.
  5313. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5314. ;;
  5315. gnu*)
  5316. # Under GNU Hurd, this test is not required because there is
  5317. # no limit to the length of command line arguments.
  5318. # Libtool will interpret -1 as no limit whatsoever
  5319. lt_cv_sys_max_cmd_len=-1;
  5320. ;;
  5321. cygwin* | mingw* | cegcc*)
  5322. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5323. # about 5 minutes as the teststring grows exponentially.
  5324. # Worse, since 9x/ME are not pre-emptively multitasking,
  5325. # you end up with a "frozen" computer, even though with patience
  5326. # the test eventually succeeds (with a max line length of 256k).
  5327. # Instead, let's just punt: use the minimum linelength reported by
  5328. # all of the supported platforms: 8192 (on NT/2K/XP).
  5329. lt_cv_sys_max_cmd_len=8192;
  5330. ;;
  5331. mint*)
  5332. # On MiNT this can take a long time and run out of memory.
  5333. lt_cv_sys_max_cmd_len=8192;
  5334. ;;
  5335. amigaos*)
  5336. # On AmigaOS with pdksh, this test takes hours, literally.
  5337. # So we just punt and use a minimum line length of 8192.
  5338. lt_cv_sys_max_cmd_len=8192;
  5339. ;;
  5340. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5341. # This has been around since 386BSD, at least. Likely further.
  5342. if test -x /sbin/sysctl; then
  5343. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5344. elif test -x /usr/sbin/sysctl; then
  5345. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5346. else
  5347. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5348. fi
  5349. # And add a safety zone
  5350. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5351. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5352. ;;
  5353. interix*)
  5354. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5355. lt_cv_sys_max_cmd_len=196608
  5356. ;;
  5357. os2*)
  5358. # The test takes a long time on OS/2.
  5359. lt_cv_sys_max_cmd_len=8192
  5360. ;;
  5361. osf*)
  5362. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5363. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5364. # nice to cause kernel panics so lets avoid the loop below.
  5365. # First set a reasonable default.
  5366. lt_cv_sys_max_cmd_len=16384
  5367. #
  5368. if test -x /sbin/sysconfig; then
  5369. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5370. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5371. esac
  5372. fi
  5373. ;;
  5374. sco3.2v5*)
  5375. lt_cv_sys_max_cmd_len=102400
  5376. ;;
  5377. sysv5* | sco5v6* | sysv4.2uw2*)
  5378. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5379. if test -n "$kargmax"; then
  5380. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5381. else
  5382. lt_cv_sys_max_cmd_len=32768
  5383. fi
  5384. ;;
  5385. *)
  5386. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5387. if test -n "$lt_cv_sys_max_cmd_len" && \
  5388. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5390. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5391. else
  5392. # Make teststring a little bigger before we do anything with it.
  5393. # a 1K string should be a reasonable start.
  5394. for i in 1 2 3 4 5 6 7 8; do
  5395. teststring=$teststring$teststring
  5396. done
  5397. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5398. # If test is not a shell built-in, we'll probably end up computing a
  5399. # maximum length that is only half of the actual maximum length, but
  5400. # we can't tell.
  5401. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5402. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5403. test 17 != "$i" # 1/2 MB should be enough
  5404. do
  5405. i=`expr $i + 1`
  5406. teststring=$teststring$teststring
  5407. done
  5408. # Only check the string length outside the loop.
  5409. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5410. teststring=
  5411. # Add a significant safety factor because C++ compilers can tack on
  5412. # massive amounts of additional arguments before passing them to the
  5413. # linker. It appears as though 1/2 is a usable value.
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5415. fi
  5416. ;;
  5417. esac
  5418. fi
  5419. if test -n "$lt_cv_sys_max_cmd_len"; then
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5421. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5422. else
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5424. $as_echo "none" >&6; }
  5425. fi
  5426. max_cmd_len=$lt_cv_sys_max_cmd_len
  5427. : ${CP="cp -f"}
  5428. : ${MV="mv -f"}
  5429. : ${RM="rm -f"}
  5430. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5431. lt_unset=unset
  5432. else
  5433. lt_unset=false
  5434. fi
  5435. # test EBCDIC or ASCII
  5436. case `echo X|tr X '\101'` in
  5437. A) # ASCII based system
  5438. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5439. lt_SP2NL='tr \040 \012'
  5440. lt_NL2SP='tr \015\012 \040\040'
  5441. ;;
  5442. *) # EBCDIC based system
  5443. lt_SP2NL='tr \100 \n'
  5444. lt_NL2SP='tr \r\n \100\100'
  5445. ;;
  5446. esac
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5448. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5449. if ${lt_cv_to_host_file_cmd+:} false; then :
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. case $host in
  5453. *-*-mingw* )
  5454. case $build in
  5455. *-*-mingw* ) # actually msys
  5456. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5457. ;;
  5458. *-*-cygwin* )
  5459. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5460. ;;
  5461. * ) # otherwise, assume *nix
  5462. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5463. ;;
  5464. esac
  5465. ;;
  5466. *-*-cygwin* )
  5467. case $build in
  5468. *-*-mingw* ) # actually msys
  5469. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5470. ;;
  5471. *-*-cygwin* )
  5472. lt_cv_to_host_file_cmd=func_convert_file_noop
  5473. ;;
  5474. * ) # otherwise, assume *nix
  5475. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5476. ;;
  5477. esac
  5478. ;;
  5479. * ) # unhandled hosts (and "normal" native builds)
  5480. lt_cv_to_host_file_cmd=func_convert_file_noop
  5481. ;;
  5482. esac
  5483. fi
  5484. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5486. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5488. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5489. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. #assume ordinary cross tools, or native build.
  5493. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5494. case $host in
  5495. *-*-mingw* )
  5496. case $build in
  5497. *-*-mingw* ) # actually msys
  5498. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5499. ;;
  5500. esac
  5501. ;;
  5502. esac
  5503. fi
  5504. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5506. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5508. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5509. if ${lt_cv_ld_reload_flag+:} false; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. lt_cv_ld_reload_flag='-r'
  5513. fi
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5515. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5516. reload_flag=$lt_cv_ld_reload_flag
  5517. case $reload_flag in
  5518. "" | " "*) ;;
  5519. *) reload_flag=" $reload_flag" ;;
  5520. esac
  5521. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5522. case $host_os in
  5523. cygwin* | mingw* | pw32* | cegcc*)
  5524. if test yes != "$GCC"; then
  5525. reload_cmds=false
  5526. fi
  5527. ;;
  5528. darwin*)
  5529. if test yes = "$GCC"; then
  5530. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5531. else
  5532. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5533. fi
  5534. ;;
  5535. esac
  5536. if test -n "$ac_tool_prefix"; then
  5537. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5538. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$OBJDUMP"; then
  5545. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. OBJDUMP=$ac_cv_prog_OBJDUMP
  5564. if test -n "$OBJDUMP"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5566. $as_echo "$OBJDUMP" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. fi
  5572. if test -z "$ac_cv_prog_OBJDUMP"; then
  5573. ac_ct_OBJDUMP=$OBJDUMP
  5574. # Extract the first word of "objdump", so it can be a program name with args.
  5575. set dummy objdump; ac_word=$2
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5577. $as_echo_n "checking for $ac_word... " >&6; }
  5578. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. if test -n "$ac_ct_OBJDUMP"; then
  5582. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. test -z "$as_dir" && as_dir=.
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5591. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5593. break 2
  5594. fi
  5595. done
  5596. done
  5597. IFS=$as_save_IFS
  5598. fi
  5599. fi
  5600. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5601. if test -n "$ac_ct_OBJDUMP"; then
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5603. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5604. else
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5606. $as_echo "no" >&6; }
  5607. fi
  5608. if test "x$ac_ct_OBJDUMP" = x; then
  5609. OBJDUMP="false"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. OBJDUMP=$ac_ct_OBJDUMP
  5618. fi
  5619. else
  5620. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5621. fi
  5622. test -z "$OBJDUMP" && OBJDUMP=objdump
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5624. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5625. if ${lt_cv_deplibs_check_method+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5629. lt_cv_file_magic_test_file=
  5630. lt_cv_deplibs_check_method='unknown'
  5631. # Need to set the preceding variable on all platforms that support
  5632. # interlibrary dependencies.
  5633. # 'none' -- dependencies not supported.
  5634. # 'unknown' -- same as none, but documents that we really don't know.
  5635. # 'pass_all' -- all dependencies passed with no checks.
  5636. # 'test_compile' -- check by making test program.
  5637. # 'file_magic [[regex]]' -- check by looking for files in library path
  5638. # that responds to the $file_magic_cmd with a given extended regex.
  5639. # If you have 'file' or equivalent on your system and you're not sure
  5640. # whether 'pass_all' will *always* work, you probably want this one.
  5641. case $host_os in
  5642. aix[4-9]*)
  5643. lt_cv_deplibs_check_method=pass_all
  5644. ;;
  5645. beos*)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. bsdi[45]*)
  5649. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5650. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5651. lt_cv_file_magic_test_file=/shlib/libc.so
  5652. ;;
  5653. cygwin*)
  5654. # func_win32_libid is a shell function defined in ltmain.sh
  5655. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5656. lt_cv_file_magic_cmd='func_win32_libid'
  5657. ;;
  5658. mingw* | pw32*)
  5659. # Base MSYS/MinGW do not provide the 'file' command needed by
  5660. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5661. # unless we find 'file', for example because we are cross-compiling.
  5662. if ( file / ) >/dev/null 2>&1; then
  5663. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5664. lt_cv_file_magic_cmd='func_win32_libid'
  5665. else
  5666. # Keep this pattern in sync with the one in func_win32_libid.
  5667. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5668. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5669. fi
  5670. ;;
  5671. cegcc*)
  5672. # use the weaker test based on 'objdump'. See mingw*.
  5673. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5674. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5675. ;;
  5676. darwin* | rhapsody*)
  5677. lt_cv_deplibs_check_method=pass_all
  5678. ;;
  5679. freebsd* | dragonfly*)
  5680. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5681. case $host_cpu in
  5682. i*86 )
  5683. # Not sure whether the presence of OpenBSD here was a mistake.
  5684. # Let's accept both of them until this is cleared up.
  5685. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5686. lt_cv_file_magic_cmd=/usr/bin/file
  5687. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5688. ;;
  5689. esac
  5690. else
  5691. lt_cv_deplibs_check_method=pass_all
  5692. fi
  5693. ;;
  5694. haiku*)
  5695. lt_cv_deplibs_check_method=pass_all
  5696. ;;
  5697. hpux10.20* | hpux11*)
  5698. lt_cv_file_magic_cmd=/usr/bin/file
  5699. case $host_cpu in
  5700. ia64*)
  5701. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5702. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5703. ;;
  5704. hppa*64*)
  5705. 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]'
  5706. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5707. ;;
  5708. *)
  5709. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5710. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5711. ;;
  5712. esac
  5713. ;;
  5714. interix[3-9]*)
  5715. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5716. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5717. ;;
  5718. irix5* | irix6* | nonstopux*)
  5719. case $LD in
  5720. *-32|*"-32 ") libmagic=32-bit;;
  5721. *-n32|*"-n32 ") libmagic=N32;;
  5722. *-64|*"-64 ") libmagic=64-bit;;
  5723. *) libmagic=never-match;;
  5724. esac
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. # This must be glibc/ELF.
  5728. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. netbsd* | netbsdelf*-gnu)
  5732. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5734. else
  5735. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5736. fi
  5737. ;;
  5738. newos6*)
  5739. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5740. lt_cv_file_magic_cmd=/usr/bin/file
  5741. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5742. ;;
  5743. *nto* | *qnx*)
  5744. lt_cv_deplibs_check_method=pass_all
  5745. ;;
  5746. openbsd* | bitrig*)
  5747. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5749. else
  5750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5751. fi
  5752. ;;
  5753. osf3* | osf4* | osf5*)
  5754. lt_cv_deplibs_check_method=pass_all
  5755. ;;
  5756. rdos*)
  5757. lt_cv_deplibs_check_method=pass_all
  5758. ;;
  5759. solaris*)
  5760. lt_cv_deplibs_check_method=pass_all
  5761. ;;
  5762. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5763. lt_cv_deplibs_check_method=pass_all
  5764. ;;
  5765. sysv4 | sysv4.3*)
  5766. case $host_vendor in
  5767. motorola)
  5768. 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]'
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5770. ;;
  5771. ncr)
  5772. lt_cv_deplibs_check_method=pass_all
  5773. ;;
  5774. sequent)
  5775. lt_cv_file_magic_cmd='/bin/file'
  5776. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5777. ;;
  5778. sni)
  5779. lt_cv_file_magic_cmd='/bin/file'
  5780. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5781. lt_cv_file_magic_test_file=/lib/libc.so
  5782. ;;
  5783. siemens)
  5784. lt_cv_deplibs_check_method=pass_all
  5785. ;;
  5786. pc)
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. esac
  5790. ;;
  5791. tpf*)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. os2*)
  5795. lt_cv_deplibs_check_method=pass_all
  5796. ;;
  5797. esac
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5800. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5801. file_magic_glob=
  5802. want_nocaseglob=no
  5803. if test "$build" = "$host"; then
  5804. case $host_os in
  5805. mingw* | pw32*)
  5806. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5807. want_nocaseglob=yes
  5808. else
  5809. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5810. fi
  5811. ;;
  5812. esac
  5813. fi
  5814. file_magic_cmd=$lt_cv_file_magic_cmd
  5815. deplibs_check_method=$lt_cv_deplibs_check_method
  5816. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5817. if test -n "$ac_tool_prefix"; then
  5818. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5819. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5821. $as_echo_n "checking for $ac_word... " >&6; }
  5822. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. if test -n "$DLLTOOL"; then
  5826. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5827. else
  5828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5829. for as_dir in $PATH
  5830. do
  5831. IFS=$as_save_IFS
  5832. test -z "$as_dir" && as_dir=.
  5833. for ac_exec_ext in '' $ac_executable_extensions; do
  5834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5835. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5837. break 2
  5838. fi
  5839. done
  5840. done
  5841. IFS=$as_save_IFS
  5842. fi
  5843. fi
  5844. DLLTOOL=$ac_cv_prog_DLLTOOL
  5845. if test -n "$DLLTOOL"; then
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5847. $as_echo "$DLLTOOL" >&6; }
  5848. else
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5850. $as_echo "no" >&6; }
  5851. fi
  5852. fi
  5853. if test -z "$ac_cv_prog_DLLTOOL"; then
  5854. ac_ct_DLLTOOL=$DLLTOOL
  5855. # Extract the first word of "dlltool", so it can be a program name with args.
  5856. set dummy dlltool; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$ac_ct_DLLTOOL"; then
  5863. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5882. if test -n "$ac_ct_DLLTOOL"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5884. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. if test "x$ac_ct_DLLTOOL" = x; then
  5890. DLLTOOL="false"
  5891. else
  5892. case $cross_compiling:$ac_tool_warned in
  5893. yes:)
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5896. ac_tool_warned=yes ;;
  5897. esac
  5898. DLLTOOL=$ac_ct_DLLTOOL
  5899. fi
  5900. else
  5901. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5902. fi
  5903. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5905. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5906. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5910. case $host_os in
  5911. cygwin* | mingw* | pw32* | cegcc*)
  5912. # two different shell functions defined in ltmain.sh;
  5913. # decide which one to use based on capabilities of $DLLTOOL
  5914. case `$DLLTOOL --help 2>&1` in
  5915. *--identify-strict*)
  5916. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5917. ;;
  5918. *)
  5919. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5920. ;;
  5921. esac
  5922. ;;
  5923. *)
  5924. # fallback: assume linklib IS sharedlib
  5925. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5926. ;;
  5927. esac
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5930. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5931. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5932. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5933. if test -n "$ac_tool_prefix"; then
  5934. for ac_prog in ar
  5935. do
  5936. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5937. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5939. $as_echo_n "checking for $ac_word... " >&6; }
  5940. if ${ac_cv_prog_AR+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. if test -n "$AR"; then
  5944. ac_cv_prog_AR="$AR" # Let the user override the test.
  5945. else
  5946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5947. for as_dir in $PATH
  5948. do
  5949. IFS=$as_save_IFS
  5950. test -z "$as_dir" && as_dir=.
  5951. for ac_exec_ext in '' $ac_executable_extensions; do
  5952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5953. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5955. break 2
  5956. fi
  5957. done
  5958. done
  5959. IFS=$as_save_IFS
  5960. fi
  5961. fi
  5962. AR=$ac_cv_prog_AR
  5963. if test -n "$AR"; then
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5965. $as_echo "$AR" >&6; }
  5966. else
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5968. $as_echo "no" >&6; }
  5969. fi
  5970. test -n "$AR" && break
  5971. done
  5972. fi
  5973. if test -z "$AR"; then
  5974. ac_ct_AR=$AR
  5975. for ac_prog in ar
  5976. do
  5977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5978. set dummy $ac_prog; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. if test -n "$ac_ct_AR"; then
  5985. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5986. else
  5987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5988. for as_dir in $PATH
  5989. do
  5990. IFS=$as_save_IFS
  5991. test -z "$as_dir" && as_dir=.
  5992. for ac_exec_ext in '' $ac_executable_extensions; do
  5993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5994. ac_cv_prog_ac_ct_AR="$ac_prog"
  5995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5996. break 2
  5997. fi
  5998. done
  5999. done
  6000. IFS=$as_save_IFS
  6001. fi
  6002. fi
  6003. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6004. if test -n "$ac_ct_AR"; then
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6006. $as_echo "$ac_ct_AR" >&6; }
  6007. else
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6009. $as_echo "no" >&6; }
  6010. fi
  6011. test -n "$ac_ct_AR" && break
  6012. done
  6013. if test "x$ac_ct_AR" = x; then
  6014. AR="false"
  6015. else
  6016. case $cross_compiling:$ac_tool_warned in
  6017. yes:)
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6020. ac_tool_warned=yes ;;
  6021. esac
  6022. AR=$ac_ct_AR
  6023. fi
  6024. fi
  6025. : ${AR=ar}
  6026. : ${AR_FLAGS=cr}
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6028. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6029. if ${lt_cv_ar_at_file+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_ar_at_file=no
  6033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6034. /* end confdefs.h. */
  6035. int
  6036. main ()
  6037. {
  6038. ;
  6039. return 0;
  6040. }
  6041. _ACEOF
  6042. if ac_fn_c_try_compile "$LINENO"; then :
  6043. echo conftest.$ac_objext > conftest.lst
  6044. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6045. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6046. (eval $lt_ar_try) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; }
  6050. if test 0 -eq "$ac_status"; then
  6051. # Ensure the archiver fails upon bogus file names.
  6052. rm -f conftest.$ac_objext libconftest.a
  6053. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6054. (eval $lt_ar_try) 2>&5
  6055. ac_status=$?
  6056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6057. test $ac_status = 0; }
  6058. if test 0 -ne "$ac_status"; then
  6059. lt_cv_ar_at_file=@
  6060. fi
  6061. fi
  6062. rm -f conftest.* libconftest.a
  6063. fi
  6064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6065. fi
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6067. $as_echo "$lt_cv_ar_at_file" >&6; }
  6068. if test no = "$lt_cv_ar_at_file"; then
  6069. archiver_list_spec=
  6070. else
  6071. archiver_list_spec=$lt_cv_ar_at_file
  6072. fi
  6073. if test -n "$ac_tool_prefix"; then
  6074. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6075. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6077. $as_echo_n "checking for $ac_word... " >&6; }
  6078. if ${ac_cv_prog_STRIP+:} false; then :
  6079. $as_echo_n "(cached) " >&6
  6080. else
  6081. if test -n "$STRIP"; then
  6082. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6083. else
  6084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6085. for as_dir in $PATH
  6086. do
  6087. IFS=$as_save_IFS
  6088. test -z "$as_dir" && as_dir=.
  6089. for ac_exec_ext in '' $ac_executable_extensions; do
  6090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6091. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6093. break 2
  6094. fi
  6095. done
  6096. done
  6097. IFS=$as_save_IFS
  6098. fi
  6099. fi
  6100. STRIP=$ac_cv_prog_STRIP
  6101. if test -n "$STRIP"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6103. $as_echo "$STRIP" >&6; }
  6104. else
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6106. $as_echo "no" >&6; }
  6107. fi
  6108. fi
  6109. if test -z "$ac_cv_prog_STRIP"; then
  6110. ac_ct_STRIP=$STRIP
  6111. # Extract the first word of "strip", so it can be a program name with args.
  6112. set dummy strip; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$ac_ct_STRIP"; then
  6119. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6128. ac_cv_prog_ac_ct_STRIP="strip"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6138. if test -n "$ac_ct_STRIP"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6140. $as_echo "$ac_ct_STRIP" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. if test "x$ac_ct_STRIP" = x; then
  6146. STRIP=":"
  6147. else
  6148. case $cross_compiling:$ac_tool_warned in
  6149. yes:)
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6152. ac_tool_warned=yes ;;
  6153. esac
  6154. STRIP=$ac_ct_STRIP
  6155. fi
  6156. else
  6157. STRIP="$ac_cv_prog_STRIP"
  6158. fi
  6159. test -z "$STRIP" && STRIP=:
  6160. if test -n "$ac_tool_prefix"; then
  6161. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6162. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6164. $as_echo_n "checking for $ac_word... " >&6; }
  6165. if ${ac_cv_prog_RANLIB+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. if test -n "$RANLIB"; then
  6169. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6170. else
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. test -z "$as_dir" && as_dir=.
  6176. for ac_exec_ext in '' $ac_executable_extensions; do
  6177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6178. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6180. break 2
  6181. fi
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. fi
  6186. fi
  6187. RANLIB=$ac_cv_prog_RANLIB
  6188. if test -n "$RANLIB"; then
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6190. $as_echo "$RANLIB" >&6; }
  6191. else
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6193. $as_echo "no" >&6; }
  6194. fi
  6195. fi
  6196. if test -z "$ac_cv_prog_RANLIB"; then
  6197. ac_ct_RANLIB=$RANLIB
  6198. # Extract the first word of "ranlib", so it can be a program name with args.
  6199. set dummy ranlib; ac_word=$2
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. $as_echo_n "checking for $ac_word... " >&6; }
  6202. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6203. $as_echo_n "(cached) " >&6
  6204. else
  6205. if test -n "$ac_ct_RANLIB"; then
  6206. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6207. else
  6208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6209. for as_dir in $PATH
  6210. do
  6211. IFS=$as_save_IFS
  6212. test -z "$as_dir" && as_dir=.
  6213. for ac_exec_ext in '' $ac_executable_extensions; do
  6214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6215. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6217. break 2
  6218. fi
  6219. done
  6220. done
  6221. IFS=$as_save_IFS
  6222. fi
  6223. fi
  6224. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6225. if test -n "$ac_ct_RANLIB"; then
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6227. $as_echo "$ac_ct_RANLIB" >&6; }
  6228. else
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6230. $as_echo "no" >&6; }
  6231. fi
  6232. if test "x$ac_ct_RANLIB" = x; then
  6233. RANLIB=":"
  6234. else
  6235. case $cross_compiling:$ac_tool_warned in
  6236. yes:)
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6239. ac_tool_warned=yes ;;
  6240. esac
  6241. RANLIB=$ac_ct_RANLIB
  6242. fi
  6243. else
  6244. RANLIB="$ac_cv_prog_RANLIB"
  6245. fi
  6246. test -z "$RANLIB" && RANLIB=:
  6247. # Determine commands to create old-style static archives.
  6248. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6249. old_postinstall_cmds='chmod 644 $oldlib'
  6250. old_postuninstall_cmds=
  6251. if test -n "$RANLIB"; then
  6252. case $host_os in
  6253. bitrig* | openbsd*)
  6254. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6255. ;;
  6256. *)
  6257. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6258. ;;
  6259. esac
  6260. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6261. fi
  6262. case $host_os in
  6263. darwin*)
  6264. lock_old_archive_extraction=yes ;;
  6265. *)
  6266. lock_old_archive_extraction=no ;;
  6267. esac
  6268. # If no C compiler was specified, use CC.
  6269. LTCC=${LTCC-"$CC"}
  6270. # If no C compiler flags were specified, use CFLAGS.
  6271. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6272. # Allow CC to be a program name with arguments.
  6273. compiler=$CC
  6274. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6276. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6277. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6278. $as_echo_n "(cached) " >&6
  6279. else
  6280. # These are sane defaults that work on at least a few old systems.
  6281. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6282. # Character class describing NM global symbol codes.
  6283. symcode='[BCDEGRST]'
  6284. # Regexp to match symbols that can be accessed directly from C.
  6285. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6286. # Define system-specific variables.
  6287. case $host_os in
  6288. aix*)
  6289. symcode='[BCDT]'
  6290. ;;
  6291. cygwin* | mingw* | pw32* | cegcc*)
  6292. symcode='[ABCDGISTW]'
  6293. ;;
  6294. hpux*)
  6295. if test ia64 = "$host_cpu"; then
  6296. symcode='[ABCDEGRST]'
  6297. fi
  6298. ;;
  6299. irix* | nonstopux*)
  6300. symcode='[BCDEGRST]'
  6301. ;;
  6302. osf*)
  6303. symcode='[BCDEGQRST]'
  6304. ;;
  6305. solaris*)
  6306. symcode='[BDRT]'
  6307. ;;
  6308. sco3.2v5*)
  6309. symcode='[DT]'
  6310. ;;
  6311. sysv4.2uw2*)
  6312. symcode='[DT]'
  6313. ;;
  6314. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6315. symcode='[ABDT]'
  6316. ;;
  6317. sysv4)
  6318. symcode='[DFNSTU]'
  6319. ;;
  6320. esac
  6321. # If we're using GNU nm, then use its standard symbol codes.
  6322. case `$NM -V 2>&1` in
  6323. *GNU* | *'with BFD'*)
  6324. symcode='[ABCDGIRSTW]' ;;
  6325. esac
  6326. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6327. # Gets list of data symbols to import.
  6328. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6329. # Adjust the below global symbol transforms to fixup imported variables.
  6330. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6331. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6332. lt_c_name_lib_hook="\
  6333. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6334. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6335. else
  6336. # Disable hooks by default.
  6337. lt_cv_sys_global_symbol_to_import=
  6338. lt_cdecl_hook=
  6339. lt_c_name_hook=
  6340. lt_c_name_lib_hook=
  6341. fi
  6342. # Transform an extracted symbol line into a proper C declaration.
  6343. # Some systems (esp. on ia64) link data and code symbols differently,
  6344. # so use this general approach.
  6345. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6346. $lt_cdecl_hook\
  6347. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6348. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6349. # Transform an extracted symbol line into symbol name and symbol address
  6350. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6351. $lt_c_name_hook\
  6352. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6353. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6354. # Transform an extracted symbol line into symbol name with lib prefix and
  6355. # symbol address.
  6356. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6357. $lt_c_name_lib_hook\
  6358. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6359. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6360. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6361. # Handle CRLF in mingw tool chain
  6362. opt_cr=
  6363. case $build_os in
  6364. mingw*)
  6365. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6366. ;;
  6367. esac
  6368. # Try without a prefix underscore, then with it.
  6369. for ac_symprfx in "" "_"; do
  6370. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6371. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6372. # Write the raw and C identifiers.
  6373. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6374. # Fake it for dumpbin and say T for any non-static function,
  6375. # D for any global variable and I for any imported variable.
  6376. # Also find C++ and __fastcall symbols from MSVC++,
  6377. # which start with @ or ?.
  6378. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6379. " {last_section=section; section=\$ 3};"\
  6380. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6381. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6382. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6383. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6384. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6385. " \$ 0!~/External *\|/{next};"\
  6386. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6387. " {if(hide[section]) next};"\
  6388. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6389. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6390. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6391. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6392. " ' prfx=^$ac_symprfx"
  6393. else
  6394. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6395. fi
  6396. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6397. # Check to see that the pipe works correctly.
  6398. pipe_works=no
  6399. rm -f conftest*
  6400. cat > conftest.$ac_ext <<_LT_EOF
  6401. #ifdef __cplusplus
  6402. extern "C" {
  6403. #endif
  6404. char nm_test_var;
  6405. void nm_test_func(void);
  6406. void nm_test_func(void){}
  6407. #ifdef __cplusplus
  6408. }
  6409. #endif
  6410. int main(){nm_test_var='a';nm_test_func();return(0);}
  6411. _LT_EOF
  6412. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6413. (eval $ac_compile) 2>&5
  6414. ac_status=$?
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6416. test $ac_status = 0; }; then
  6417. # Now try to grab the symbols.
  6418. nlist=conftest.nm
  6419. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6420. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6421. # Try sorting and uniquifying the output.
  6422. if sort "$nlist" | uniq > "$nlist"T; then
  6423. mv -f "$nlist"T "$nlist"
  6424. else
  6425. rm -f "$nlist"T
  6426. fi
  6427. # Make sure that we snagged all the symbols we need.
  6428. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6429. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6430. cat <<_LT_EOF > conftest.$ac_ext
  6431. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6432. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6433. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6434. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6435. # define LT_DLSYM_CONST
  6436. #elif defined __osf__
  6437. /* This system does not cope well with relocations in const data. */
  6438. # define LT_DLSYM_CONST
  6439. #else
  6440. # define LT_DLSYM_CONST const
  6441. #endif
  6442. #ifdef __cplusplus
  6443. extern "C" {
  6444. #endif
  6445. _LT_EOF
  6446. # Now generate the symbol file.
  6447. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6448. cat <<_LT_EOF >> conftest.$ac_ext
  6449. /* The mapping between symbol names and symbols. */
  6450. LT_DLSYM_CONST struct {
  6451. const char *name;
  6452. void *address;
  6453. }
  6454. lt__PROGRAM__LTX_preloaded_symbols[] =
  6455. {
  6456. { "@PROGRAM@", (void *) 0 },
  6457. _LT_EOF
  6458. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6459. cat <<\_LT_EOF >> conftest.$ac_ext
  6460. {0, (void *) 0}
  6461. };
  6462. /* This works around a problem in FreeBSD linker */
  6463. #ifdef FREEBSD_WORKAROUND
  6464. static const void *lt_preloaded_setup() {
  6465. return lt__PROGRAM__LTX_preloaded_symbols;
  6466. }
  6467. #endif
  6468. #ifdef __cplusplus
  6469. }
  6470. #endif
  6471. _LT_EOF
  6472. # Now try linking the two files.
  6473. mv conftest.$ac_objext conftstm.$ac_objext
  6474. lt_globsym_save_LIBS=$LIBS
  6475. lt_globsym_save_CFLAGS=$CFLAGS
  6476. LIBS=conftstm.$ac_objext
  6477. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6479. (eval $ac_link) 2>&5
  6480. ac_status=$?
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6482. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6483. pipe_works=yes
  6484. fi
  6485. LIBS=$lt_globsym_save_LIBS
  6486. CFLAGS=$lt_globsym_save_CFLAGS
  6487. else
  6488. echo "cannot find nm_test_func in $nlist" >&5
  6489. fi
  6490. else
  6491. echo "cannot find nm_test_var in $nlist" >&5
  6492. fi
  6493. else
  6494. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6495. fi
  6496. else
  6497. echo "$progname: failed program was:" >&5
  6498. cat conftest.$ac_ext >&5
  6499. fi
  6500. rm -rf conftest* conftst*
  6501. # Do not use the global_symbol_pipe unless it works.
  6502. if test yes = "$pipe_works"; then
  6503. break
  6504. else
  6505. lt_cv_sys_global_symbol_pipe=
  6506. fi
  6507. done
  6508. fi
  6509. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6510. lt_cv_sys_global_symbol_to_cdecl=
  6511. fi
  6512. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6514. $as_echo "failed" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6517. $as_echo "ok" >&6; }
  6518. fi
  6519. # Response file support.
  6520. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6521. nm_file_list_spec='@'
  6522. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6523. nm_file_list_spec='@'
  6524. fi
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6526. $as_echo_n "checking for sysroot... " >&6; }
  6527. # Check whether --with-sysroot was given.
  6528. if test "${with_sysroot+set}" = set; then :
  6529. withval=$with_sysroot;
  6530. else
  6531. with_sysroot=no
  6532. fi
  6533. lt_sysroot=
  6534. case $with_sysroot in #(
  6535. yes)
  6536. if test yes = "$GCC"; then
  6537. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6538. fi
  6539. ;; #(
  6540. /*)
  6541. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6542. ;; #(
  6543. no|'')
  6544. ;; #(
  6545. *)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6547. $as_echo "$with_sysroot" >&6; }
  6548. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6549. ;;
  6550. esac
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6552. $as_echo "${lt_sysroot:-no}" >&6; }
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6554. $as_echo_n "checking for a working dd... " >&6; }
  6555. if ${ac_cv_path_lt_DD+:} false; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. printf 0123456789abcdef0123456789abcdef >conftest.i
  6559. cat conftest.i conftest.i >conftest2.i
  6560. : ${lt_DD:=$DD}
  6561. if test -z "$lt_DD"; then
  6562. ac_path_lt_DD_found=false
  6563. # Loop through the user's path and test for each of PROGNAME-LIST
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. test -z "$as_dir" && as_dir=.
  6569. for ac_prog in dd; do
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6572. as_fn_executable_p "$ac_path_lt_DD" || continue
  6573. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6574. cmp -s conftest.i conftest.out \
  6575. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6576. fi
  6577. $ac_path_lt_DD_found && break 3
  6578. done
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. if test -z "$ac_cv_path_lt_DD"; then
  6583. :
  6584. fi
  6585. else
  6586. ac_cv_path_lt_DD=$lt_DD
  6587. fi
  6588. rm -f conftest.i conftest2.i conftest.out
  6589. fi
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6591. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6593. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6594. if ${lt_cv_truncate_bin+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. printf 0123456789abcdef0123456789abcdef >conftest.i
  6598. cat conftest.i conftest.i >conftest2.i
  6599. lt_cv_truncate_bin=
  6600. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6601. cmp -s conftest.i conftest.out \
  6602. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6603. fi
  6604. rm -f conftest.i conftest2.i conftest.out
  6605. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6608. $as_echo "$lt_cv_truncate_bin" >&6; }
  6609. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6610. func_cc_basename ()
  6611. {
  6612. for cc_temp in $*""; do
  6613. case $cc_temp in
  6614. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6615. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6616. \-*) ;;
  6617. *) break;;
  6618. esac
  6619. done
  6620. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6621. }
  6622. # Check whether --enable-libtool-lock was given.
  6623. if test "${enable_libtool_lock+set}" = set; then :
  6624. enableval=$enable_libtool_lock;
  6625. fi
  6626. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6627. # Some flags need to be propagated to the compiler or linker for good
  6628. # libtool support.
  6629. case $host in
  6630. ia64-*-hpux*)
  6631. # Find out what ABI is being produced by ac_compile, and set mode
  6632. # options accordingly.
  6633. echo 'int i;' > 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. case `/usr/bin/file conftest.$ac_objext` in
  6640. *ELF-32*)
  6641. HPUX_IA64_MODE=32
  6642. ;;
  6643. *ELF-64*)
  6644. HPUX_IA64_MODE=64
  6645. ;;
  6646. esac
  6647. fi
  6648. rm -rf conftest*
  6649. ;;
  6650. *-*-irix6*)
  6651. # Find out what ABI is being produced by ac_compile, and set linker
  6652. # options accordingly.
  6653. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6655. (eval $ac_compile) 2>&5
  6656. ac_status=$?
  6657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6658. test $ac_status = 0; }; then
  6659. if test yes = "$lt_cv_prog_gnu_ld"; then
  6660. case `/usr/bin/file conftest.$ac_objext` in
  6661. *32-bit*)
  6662. LD="${LD-ld} -melf32bsmip"
  6663. ;;
  6664. *N32*)
  6665. LD="${LD-ld} -melf32bmipn32"
  6666. ;;
  6667. *64-bit*)
  6668. LD="${LD-ld} -melf64bmip"
  6669. ;;
  6670. esac
  6671. else
  6672. case `/usr/bin/file conftest.$ac_objext` in
  6673. *32-bit*)
  6674. LD="${LD-ld} -32"
  6675. ;;
  6676. *N32*)
  6677. LD="${LD-ld} -n32"
  6678. ;;
  6679. *64-bit*)
  6680. LD="${LD-ld} -64"
  6681. ;;
  6682. esac
  6683. fi
  6684. fi
  6685. rm -rf conftest*
  6686. ;;
  6687. mips64*-*linux*)
  6688. # Find out what ABI is being produced by ac_compile, and set linker
  6689. # options accordingly.
  6690. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6692. (eval $ac_compile) 2>&5
  6693. ac_status=$?
  6694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6695. test $ac_status = 0; }; then
  6696. emul=elf
  6697. case `/usr/bin/file conftest.$ac_objext` in
  6698. *32-bit*)
  6699. emul="${emul}32"
  6700. ;;
  6701. *64-bit*)
  6702. emul="${emul}64"
  6703. ;;
  6704. esac
  6705. case `/usr/bin/file conftest.$ac_objext` in
  6706. *MSB*)
  6707. emul="${emul}btsmip"
  6708. ;;
  6709. *LSB*)
  6710. emul="${emul}ltsmip"
  6711. ;;
  6712. esac
  6713. case `/usr/bin/file conftest.$ac_objext` in
  6714. *N32*)
  6715. emul="${emul}n32"
  6716. ;;
  6717. esac
  6718. LD="${LD-ld} -m $emul"
  6719. fi
  6720. rm -rf conftest*
  6721. ;;
  6722. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6723. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6724. # Find out what ABI is being produced by ac_compile, and set linker
  6725. # options accordingly. Note that the listed cases only cover the
  6726. # situations where additional linker options are needed (such as when
  6727. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6728. # vice versa); the common cases where no linker options are needed do
  6729. # not appear in the list.
  6730. echo 'int i;' > conftest.$ac_ext
  6731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6732. (eval $ac_compile) 2>&5
  6733. ac_status=$?
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6735. test $ac_status = 0; }; then
  6736. case `/usr/bin/file conftest.o` in
  6737. *32-bit*)
  6738. case $host in
  6739. x86_64-*kfreebsd*-gnu)
  6740. LD="${LD-ld} -m elf_i386_fbsd"
  6741. ;;
  6742. x86_64-*linux*)
  6743. case `/usr/bin/file conftest.o` in
  6744. *x86-64*)
  6745. LD="${LD-ld} -m elf32_x86_64"
  6746. ;;
  6747. *)
  6748. LD="${LD-ld} -m elf_i386"
  6749. ;;
  6750. esac
  6751. ;;
  6752. powerpc64le-*linux*)
  6753. LD="${LD-ld} -m elf32lppclinux"
  6754. ;;
  6755. powerpc64-*linux*)
  6756. LD="${LD-ld} -m elf32ppclinux"
  6757. ;;
  6758. s390x-*linux*)
  6759. LD="${LD-ld} -m elf_s390"
  6760. ;;
  6761. sparc64-*linux*)
  6762. LD="${LD-ld} -m elf32_sparc"
  6763. ;;
  6764. esac
  6765. ;;
  6766. *64-bit*)
  6767. case $host in
  6768. x86_64-*kfreebsd*-gnu)
  6769. LD="${LD-ld} -m elf_x86_64_fbsd"
  6770. ;;
  6771. x86_64-*linux*)
  6772. LD="${LD-ld} -m elf_x86_64"
  6773. ;;
  6774. powerpcle-*linux*)
  6775. LD="${LD-ld} -m elf64lppc"
  6776. ;;
  6777. powerpc-*linux*)
  6778. LD="${LD-ld} -m elf64ppc"
  6779. ;;
  6780. s390*-*linux*|s390*-*tpf*)
  6781. LD="${LD-ld} -m elf64_s390"
  6782. ;;
  6783. sparc*-*linux*)
  6784. LD="${LD-ld} -m elf64_sparc"
  6785. ;;
  6786. esac
  6787. ;;
  6788. esac
  6789. fi
  6790. rm -rf conftest*
  6791. ;;
  6792. *-*-sco3.2v5*)
  6793. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6794. SAVE_CFLAGS=$CFLAGS
  6795. CFLAGS="$CFLAGS -belf"
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6797. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6798. if ${lt_cv_cc_needs_belf+:} false; then :
  6799. $as_echo_n "(cached) " >&6
  6800. else
  6801. ac_ext=c
  6802. ac_cpp='$CPP $CPPFLAGS'
  6803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. int
  6809. main ()
  6810. {
  6811. ;
  6812. return 0;
  6813. }
  6814. _ACEOF
  6815. if ac_fn_c_try_link "$LINENO"; then :
  6816. lt_cv_cc_needs_belf=yes
  6817. else
  6818. lt_cv_cc_needs_belf=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext \
  6821. conftest$ac_exeext conftest.$ac_ext
  6822. ac_ext=c
  6823. ac_cpp='$CPP $CPPFLAGS'
  6824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6827. fi
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6829. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6830. if test yes != "$lt_cv_cc_needs_belf"; then
  6831. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6832. CFLAGS=$SAVE_CFLAGS
  6833. fi
  6834. ;;
  6835. *-*solaris*)
  6836. # Find out what ABI is being produced by ac_compile, and set linker
  6837. # options accordingly.
  6838. echo 'int i;' > conftest.$ac_ext
  6839. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6840. (eval $ac_compile) 2>&5
  6841. ac_status=$?
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6843. test $ac_status = 0; }; then
  6844. case `/usr/bin/file conftest.o` in
  6845. *64-bit*)
  6846. case $lt_cv_prog_gnu_ld in
  6847. yes*)
  6848. case $host in
  6849. i?86-*-solaris*|x86_64-*-solaris*)
  6850. LD="${LD-ld} -m elf_x86_64"
  6851. ;;
  6852. sparc*-*-solaris*)
  6853. LD="${LD-ld} -m elf64_sparc"
  6854. ;;
  6855. esac
  6856. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6857. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6858. LD=${LD-ld}_sol2
  6859. fi
  6860. ;;
  6861. *)
  6862. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6863. LD="${LD-ld} -64"
  6864. fi
  6865. ;;
  6866. esac
  6867. ;;
  6868. esac
  6869. fi
  6870. rm -rf conftest*
  6871. ;;
  6872. esac
  6873. need_locks=$enable_libtool_lock
  6874. if test -n "$ac_tool_prefix"; then
  6875. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6876. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$MANIFEST_TOOL"; then
  6883. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6902. if test -n "$MANIFEST_TOOL"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6904. $as_echo "$MANIFEST_TOOL" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. fi
  6910. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6911. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6912. # Extract the first word of "mt", so it can be a program name with args.
  6913. set dummy mt; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6920. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925. IFS=$as_save_IFS
  6926. test -z "$as_dir" && as_dir=.
  6927. for ac_exec_ext in '' $ac_executable_extensions; do
  6928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931. break 2
  6932. fi
  6933. done
  6934. done
  6935. IFS=$as_save_IFS
  6936. fi
  6937. fi
  6938. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6939. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6941. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6947. MANIFEST_TOOL=":"
  6948. else
  6949. case $cross_compiling:$ac_tool_warned in
  6950. yes:)
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6953. ac_tool_warned=yes ;;
  6954. esac
  6955. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6956. fi
  6957. else
  6958. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6959. fi
  6960. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6962. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6963. if ${lt_cv_path_mainfest_tool+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. lt_cv_path_mainfest_tool=no
  6967. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6968. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6969. cat conftest.err >&5
  6970. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6971. lt_cv_path_mainfest_tool=yes
  6972. fi
  6973. rm -f conftest*
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6976. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6977. if test yes != "$lt_cv_path_mainfest_tool"; then
  6978. MANIFEST_TOOL=:
  6979. fi
  6980. case $host_os in
  6981. rhapsody* | darwin*)
  6982. if test -n "$ac_tool_prefix"; then
  6983. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6984. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6986. $as_echo_n "checking for $ac_word... " >&6; }
  6987. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6988. $as_echo_n "(cached) " >&6
  6989. else
  6990. if test -n "$DSYMUTIL"; then
  6991. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. test -z "$as_dir" && as_dir=.
  6998. for ac_exec_ext in '' $ac_executable_extensions; do
  6999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7000. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7002. break 2
  7003. fi
  7004. done
  7005. done
  7006. IFS=$as_save_IFS
  7007. fi
  7008. fi
  7009. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7010. if test -n "$DSYMUTIL"; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7012. $as_echo "$DSYMUTIL" >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7015. $as_echo "no" >&6; }
  7016. fi
  7017. fi
  7018. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7019. ac_ct_DSYMUTIL=$DSYMUTIL
  7020. # Extract the first word of "dsymutil", so it can be a program name with args.
  7021. set dummy dsymutil; ac_word=$2
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7023. $as_echo_n "checking for $ac_word... " >&6; }
  7024. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test -n "$ac_ct_DSYMUTIL"; then
  7028. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7029. else
  7030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7031. for as_dir in $PATH
  7032. do
  7033. IFS=$as_save_IFS
  7034. test -z "$as_dir" && as_dir=.
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7037. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7039. break 2
  7040. fi
  7041. done
  7042. done
  7043. IFS=$as_save_IFS
  7044. fi
  7045. fi
  7046. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7047. if test -n "$ac_ct_DSYMUTIL"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7049. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7050. else
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7052. $as_echo "no" >&6; }
  7053. fi
  7054. if test "x$ac_ct_DSYMUTIL" = x; then
  7055. DSYMUTIL=":"
  7056. else
  7057. case $cross_compiling:$ac_tool_warned in
  7058. yes:)
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7060. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7061. ac_tool_warned=yes ;;
  7062. esac
  7063. DSYMUTIL=$ac_ct_DSYMUTIL
  7064. fi
  7065. else
  7066. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7067. fi
  7068. if test -n "$ac_tool_prefix"; then
  7069. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7070. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_NMEDIT+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. if test -n "$NMEDIT"; then
  7077. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082. IFS=$as_save_IFS
  7083. test -z "$as_dir" && as_dir=.
  7084. for ac_exec_ext in '' $ac_executable_extensions; do
  7085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088. break 2
  7089. fi
  7090. done
  7091. done
  7092. IFS=$as_save_IFS
  7093. fi
  7094. fi
  7095. NMEDIT=$ac_cv_prog_NMEDIT
  7096. if test -n "$NMEDIT"; then
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7098. $as_echo "$NMEDIT" >&6; }
  7099. else
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7101. $as_echo "no" >&6; }
  7102. fi
  7103. fi
  7104. if test -z "$ac_cv_prog_NMEDIT"; then
  7105. ac_ct_NMEDIT=$NMEDIT
  7106. # Extract the first word of "nmedit", so it can be a program name with args.
  7107. set dummy nmedit; ac_word=$2
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7109. $as_echo_n "checking for $ac_word... " >&6; }
  7110. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. if test -n "$ac_ct_NMEDIT"; then
  7114. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7115. else
  7116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117. for as_dir in $PATH
  7118. do
  7119. IFS=$as_save_IFS
  7120. test -z "$as_dir" && as_dir=.
  7121. for ac_exec_ext in '' $ac_executable_extensions; do
  7122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7123. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7125. break 2
  7126. fi
  7127. done
  7128. done
  7129. IFS=$as_save_IFS
  7130. fi
  7131. fi
  7132. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7133. if test -n "$ac_ct_NMEDIT"; then
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7135. $as_echo "$ac_ct_NMEDIT" >&6; }
  7136. else
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7138. $as_echo "no" >&6; }
  7139. fi
  7140. if test "x$ac_ct_NMEDIT" = x; then
  7141. NMEDIT=":"
  7142. else
  7143. case $cross_compiling:$ac_tool_warned in
  7144. yes:)
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. NMEDIT=$ac_ct_NMEDIT
  7150. fi
  7151. else
  7152. NMEDIT="$ac_cv_prog_NMEDIT"
  7153. fi
  7154. if test -n "$ac_tool_prefix"; then
  7155. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7156. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if ${ac_cv_prog_LIPO+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test -n "$LIPO"; then
  7163. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7164. else
  7165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7166. for as_dir in $PATH
  7167. do
  7168. IFS=$as_save_IFS
  7169. test -z "$as_dir" && as_dir=.
  7170. for ac_exec_ext in '' $ac_executable_extensions; do
  7171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7172. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7174. break 2
  7175. fi
  7176. done
  7177. done
  7178. IFS=$as_save_IFS
  7179. fi
  7180. fi
  7181. LIPO=$ac_cv_prog_LIPO
  7182. if test -n "$LIPO"; then
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7184. $as_echo "$LIPO" >&6; }
  7185. else
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7187. $as_echo "no" >&6; }
  7188. fi
  7189. fi
  7190. if test -z "$ac_cv_prog_LIPO"; then
  7191. ac_ct_LIPO=$LIPO
  7192. # Extract the first word of "lipo", so it can be a program name with args.
  7193. set dummy lipo; ac_word=$2
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7195. $as_echo_n "checking for $ac_word... " >&6; }
  7196. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. if test -n "$ac_ct_LIPO"; then
  7200. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7201. else
  7202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7203. for as_dir in $PATH
  7204. do
  7205. IFS=$as_save_IFS
  7206. test -z "$as_dir" && as_dir=.
  7207. for ac_exec_ext in '' $ac_executable_extensions; do
  7208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7209. ac_cv_prog_ac_ct_LIPO="lipo"
  7210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7211. break 2
  7212. fi
  7213. done
  7214. done
  7215. IFS=$as_save_IFS
  7216. fi
  7217. fi
  7218. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7219. if test -n "$ac_ct_LIPO"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7221. $as_echo "$ac_ct_LIPO" >&6; }
  7222. else
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7224. $as_echo "no" >&6; }
  7225. fi
  7226. if test "x$ac_ct_LIPO" = x; then
  7227. LIPO=":"
  7228. else
  7229. case $cross_compiling:$ac_tool_warned in
  7230. yes:)
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7233. ac_tool_warned=yes ;;
  7234. esac
  7235. LIPO=$ac_ct_LIPO
  7236. fi
  7237. else
  7238. LIPO="$ac_cv_prog_LIPO"
  7239. fi
  7240. if test -n "$ac_tool_prefix"; then
  7241. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7242. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7244. $as_echo_n "checking for $ac_word... " >&6; }
  7245. if ${ac_cv_prog_OTOOL+:} false; then :
  7246. $as_echo_n "(cached) " >&6
  7247. else
  7248. if test -n "$OTOOL"; then
  7249. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7250. else
  7251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7252. for as_dir in $PATH
  7253. do
  7254. IFS=$as_save_IFS
  7255. test -z "$as_dir" && as_dir=.
  7256. for ac_exec_ext in '' $ac_executable_extensions; do
  7257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7258. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7260. break 2
  7261. fi
  7262. done
  7263. done
  7264. IFS=$as_save_IFS
  7265. fi
  7266. fi
  7267. OTOOL=$ac_cv_prog_OTOOL
  7268. if test -n "$OTOOL"; then
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7270. $as_echo "$OTOOL" >&6; }
  7271. else
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7273. $as_echo "no" >&6; }
  7274. fi
  7275. fi
  7276. if test -z "$ac_cv_prog_OTOOL"; then
  7277. ac_ct_OTOOL=$OTOOL
  7278. # Extract the first word of "otool", so it can be a program name with args.
  7279. set dummy otool; ac_word=$2
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7281. $as_echo_n "checking for $ac_word... " >&6; }
  7282. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. if test -n "$ac_ct_OTOOL"; then
  7286. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7287. else
  7288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7289. for as_dir in $PATH
  7290. do
  7291. IFS=$as_save_IFS
  7292. test -z "$as_dir" && as_dir=.
  7293. for ac_exec_ext in '' $ac_executable_extensions; do
  7294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7295. ac_cv_prog_ac_ct_OTOOL="otool"
  7296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7297. break 2
  7298. fi
  7299. done
  7300. done
  7301. IFS=$as_save_IFS
  7302. fi
  7303. fi
  7304. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7305. if test -n "$ac_ct_OTOOL"; then
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7307. $as_echo "$ac_ct_OTOOL" >&6; }
  7308. else
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7310. $as_echo "no" >&6; }
  7311. fi
  7312. if test "x$ac_ct_OTOOL" = x; then
  7313. OTOOL=":"
  7314. else
  7315. case $cross_compiling:$ac_tool_warned in
  7316. yes:)
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7319. ac_tool_warned=yes ;;
  7320. esac
  7321. OTOOL=$ac_ct_OTOOL
  7322. fi
  7323. else
  7324. OTOOL="$ac_cv_prog_OTOOL"
  7325. fi
  7326. if test -n "$ac_tool_prefix"; then
  7327. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7328. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. $as_echo_n "checking for $ac_word... " >&6; }
  7331. if ${ac_cv_prog_OTOOL64+:} false; then :
  7332. $as_echo_n "(cached) " >&6
  7333. else
  7334. if test -n "$OTOOL64"; then
  7335. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7336. else
  7337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7338. for as_dir in $PATH
  7339. do
  7340. IFS=$as_save_IFS
  7341. test -z "$as_dir" && as_dir=.
  7342. for ac_exec_ext in '' $ac_executable_extensions; do
  7343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7344. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7346. break 2
  7347. fi
  7348. done
  7349. done
  7350. IFS=$as_save_IFS
  7351. fi
  7352. fi
  7353. OTOOL64=$ac_cv_prog_OTOOL64
  7354. if test -n "$OTOOL64"; then
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7356. $as_echo "$OTOOL64" >&6; }
  7357. else
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7359. $as_echo "no" >&6; }
  7360. fi
  7361. fi
  7362. if test -z "$ac_cv_prog_OTOOL64"; then
  7363. ac_ct_OTOOL64=$OTOOL64
  7364. # Extract the first word of "otool64", so it can be a program name with args.
  7365. set dummy otool64; ac_word=$2
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7367. $as_echo_n "checking for $ac_word... " >&6; }
  7368. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7369. $as_echo_n "(cached) " >&6
  7370. else
  7371. if test -n "$ac_ct_OTOOL64"; then
  7372. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7373. else
  7374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7375. for as_dir in $PATH
  7376. do
  7377. IFS=$as_save_IFS
  7378. test -z "$as_dir" && as_dir=.
  7379. for ac_exec_ext in '' $ac_executable_extensions; do
  7380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7381. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7383. break 2
  7384. fi
  7385. done
  7386. done
  7387. IFS=$as_save_IFS
  7388. fi
  7389. fi
  7390. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7391. if test -n "$ac_ct_OTOOL64"; then
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7393. $as_echo "$ac_ct_OTOOL64" >&6; }
  7394. else
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7396. $as_echo "no" >&6; }
  7397. fi
  7398. if test "x$ac_ct_OTOOL64" = x; then
  7399. OTOOL64=":"
  7400. else
  7401. case $cross_compiling:$ac_tool_warned in
  7402. yes:)
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7405. ac_tool_warned=yes ;;
  7406. esac
  7407. OTOOL64=$ac_ct_OTOOL64
  7408. fi
  7409. else
  7410. OTOOL64="$ac_cv_prog_OTOOL64"
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7413. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7414. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7415. $as_echo_n "(cached) " >&6
  7416. else
  7417. lt_cv_apple_cc_single_mod=no
  7418. if test -z "$LT_MULTI_MODULE"; then
  7419. # By default we will add the -single_module flag. You can override
  7420. # by either setting the environment variable LT_MULTI_MODULE
  7421. # non-empty at configure time, or by adding -multi_module to the
  7422. # link flags.
  7423. rm -rf libconftest.dylib*
  7424. echo "int foo(void){return 1;}" > conftest.c
  7425. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7426. -dynamiclib -Wl,-single_module conftest.c" >&5
  7427. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7428. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7429. _lt_result=$?
  7430. # If there is a non-empty error log, and "single_module"
  7431. # appears in it, assume the flag caused a linker warning
  7432. if test -s conftest.err && $GREP single_module conftest.err; then
  7433. cat conftest.err >&5
  7434. # Otherwise, if the output was created with a 0 exit code from
  7435. # the compiler, it worked.
  7436. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7437. lt_cv_apple_cc_single_mod=yes
  7438. else
  7439. cat conftest.err >&5
  7440. fi
  7441. rm -rf libconftest.dylib*
  7442. rm -f conftest.*
  7443. fi
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7446. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7448. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7449. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7450. $as_echo_n "(cached) " >&6
  7451. else
  7452. lt_cv_ld_exported_symbols_list=no
  7453. save_LDFLAGS=$LDFLAGS
  7454. echo "_main" > conftest.sym
  7455. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7457. /* end confdefs.h. */
  7458. int
  7459. main ()
  7460. {
  7461. ;
  7462. return 0;
  7463. }
  7464. _ACEOF
  7465. if ac_fn_c_try_link "$LINENO"; then :
  7466. lt_cv_ld_exported_symbols_list=yes
  7467. else
  7468. lt_cv_ld_exported_symbols_list=no
  7469. fi
  7470. rm -f core conftest.err conftest.$ac_objext \
  7471. conftest$ac_exeext conftest.$ac_ext
  7472. LDFLAGS=$save_LDFLAGS
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7475. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7477. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7478. if ${lt_cv_ld_force_load+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. lt_cv_ld_force_load=no
  7482. cat > conftest.c << _LT_EOF
  7483. int forced_loaded() { return 2;}
  7484. _LT_EOF
  7485. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7486. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7487. echo "$AR cr libconftest.a conftest.o" >&5
  7488. $AR cr libconftest.a conftest.o 2>&5
  7489. echo "$RANLIB libconftest.a" >&5
  7490. $RANLIB libconftest.a 2>&5
  7491. cat > conftest.c << _LT_EOF
  7492. int main() { return 0;}
  7493. _LT_EOF
  7494. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7495. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7496. _lt_result=$?
  7497. if test -s conftest.err && $GREP force_load conftest.err; then
  7498. cat conftest.err >&5
  7499. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7500. lt_cv_ld_force_load=yes
  7501. else
  7502. cat conftest.err >&5
  7503. fi
  7504. rm -f conftest.err libconftest.a conftest conftest.c
  7505. rm -rf conftest.dSYM
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7508. $as_echo "$lt_cv_ld_force_load" >&6; }
  7509. case $host_os in
  7510. rhapsody* | darwin1.[012])
  7511. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7512. darwin1.*)
  7513. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7514. darwin*) # darwin 5.x on
  7515. # if running on 10.5 or later, the deployment target defaults
  7516. # to the OS version, if on x86, and 10.4, the deployment
  7517. # target defaults to 10.4. Don't you love it?
  7518. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7519. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  7520. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7521. 10.[012][,.]*)
  7522. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7523. 10.*|11.*)
  7524. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7525. esac
  7526. ;;
  7527. esac
  7528. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7529. _lt_dar_single_mod='$single_module'
  7530. fi
  7531. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7532. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7533. else
  7534. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7535. fi
  7536. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7537. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7538. else
  7539. _lt_dsymutil=
  7540. fi
  7541. ;;
  7542. esac
  7543. # func_munge_path_list VARIABLE PATH
  7544. # -----------------------------------
  7545. # VARIABLE is name of variable containing _space_ separated list of
  7546. # directories to be munged by the contents of PATH, which is string
  7547. # having a format:
  7548. # "DIR[:DIR]:"
  7549. # string "DIR[ DIR]" will be prepended to VARIABLE
  7550. # ":DIR[:DIR]"
  7551. # string "DIR[ DIR]" will be appended to VARIABLE
  7552. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7553. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7554. # "DIRA[ DIRA]" will be appended to VARIABLE
  7555. # "DIR[:DIR]"
  7556. # VARIABLE will be replaced by "DIR[ DIR]"
  7557. func_munge_path_list ()
  7558. {
  7559. case x$2 in
  7560. x)
  7561. ;;
  7562. *:)
  7563. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7564. ;;
  7565. x:*)
  7566. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7567. ;;
  7568. *::*)
  7569. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7570. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7571. ;;
  7572. *)
  7573. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7574. ;;
  7575. esac
  7576. }
  7577. ac_ext=c
  7578. ac_cpp='$CPP $CPPFLAGS'
  7579. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7580. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7581. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7583. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7584. # On Suns, sometimes $CPP names a directory.
  7585. if test -n "$CPP" && test -d "$CPP"; then
  7586. CPP=
  7587. fi
  7588. if test -z "$CPP"; then
  7589. if ${ac_cv_prog_CPP+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. # Double quotes because CPP needs to be expanded
  7593. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7594. do
  7595. ac_preproc_ok=false
  7596. for ac_c_preproc_warn_flag in '' yes
  7597. do
  7598. # Use a header file that comes with gcc, so configuring glibc
  7599. # with a fresh cross-compiler works.
  7600. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7601. # <limits.h> exists even on freestanding compilers.
  7602. # On the NeXT, cc -E runs the code through the compiler's parser,
  7603. # not just through cpp. "Syntax error" is here to catch this case.
  7604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7605. /* end confdefs.h. */
  7606. #ifdef __STDC__
  7607. # include <limits.h>
  7608. #else
  7609. # include <assert.h>
  7610. #endif
  7611. Syntax error
  7612. _ACEOF
  7613. if ac_fn_c_try_cpp "$LINENO"; then :
  7614. else
  7615. # Broken: fails on valid input.
  7616. continue
  7617. fi
  7618. rm -f conftest.err conftest.i conftest.$ac_ext
  7619. # OK, works on sane cases. Now check whether nonexistent headers
  7620. # can be detected and how.
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. #include <ac_nonexistent.h>
  7624. _ACEOF
  7625. if ac_fn_c_try_cpp "$LINENO"; then :
  7626. # Broken: success on invalid input.
  7627. continue
  7628. else
  7629. # Passes both tests.
  7630. ac_preproc_ok=:
  7631. break
  7632. fi
  7633. rm -f conftest.err conftest.i conftest.$ac_ext
  7634. done
  7635. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7636. rm -f conftest.i conftest.err conftest.$ac_ext
  7637. if $ac_preproc_ok; then :
  7638. break
  7639. fi
  7640. done
  7641. ac_cv_prog_CPP=$CPP
  7642. fi
  7643. CPP=$ac_cv_prog_CPP
  7644. else
  7645. ac_cv_prog_CPP=$CPP
  7646. fi
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7648. $as_echo "$CPP" >&6; }
  7649. ac_preproc_ok=false
  7650. for ac_c_preproc_warn_flag in '' yes
  7651. do
  7652. # Use a header file that comes with gcc, so configuring glibc
  7653. # with a fresh cross-compiler works.
  7654. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7655. # <limits.h> exists even on freestanding compilers.
  7656. # On the NeXT, cc -E runs the code through the compiler's parser,
  7657. # not just through cpp. "Syntax error" is here to catch this case.
  7658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7659. /* end confdefs.h. */
  7660. #ifdef __STDC__
  7661. # include <limits.h>
  7662. #else
  7663. # include <assert.h>
  7664. #endif
  7665. Syntax error
  7666. _ACEOF
  7667. if ac_fn_c_try_cpp "$LINENO"; then :
  7668. else
  7669. # Broken: fails on valid input.
  7670. continue
  7671. fi
  7672. rm -f conftest.err conftest.i conftest.$ac_ext
  7673. # OK, works on sane cases. Now check whether nonexistent headers
  7674. # can be detected and how.
  7675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7676. /* end confdefs.h. */
  7677. #include <ac_nonexistent.h>
  7678. _ACEOF
  7679. if ac_fn_c_try_cpp "$LINENO"; then :
  7680. # Broken: success on invalid input.
  7681. continue
  7682. else
  7683. # Passes both tests.
  7684. ac_preproc_ok=:
  7685. break
  7686. fi
  7687. rm -f conftest.err conftest.i conftest.$ac_ext
  7688. done
  7689. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7690. rm -f conftest.i conftest.err conftest.$ac_ext
  7691. if $ac_preproc_ok; then :
  7692. else
  7693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7695. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7696. See \`config.log' for more details" "$LINENO" 5; }
  7697. fi
  7698. ac_ext=c
  7699. ac_cpp='$CPP $CPPFLAGS'
  7700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7704. $as_echo_n "checking for ANSI C header files... " >&6; }
  7705. if ${ac_cv_header_stdc+:} false; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7709. /* end confdefs.h. */
  7710. #include <stdlib.h>
  7711. #include <stdarg.h>
  7712. #include <string.h>
  7713. #include <float.h>
  7714. int
  7715. main ()
  7716. {
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. if ac_fn_c_try_compile "$LINENO"; then :
  7722. ac_cv_header_stdc=yes
  7723. else
  7724. ac_cv_header_stdc=no
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. if test $ac_cv_header_stdc = yes; then
  7728. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7730. /* end confdefs.h. */
  7731. #include <string.h>
  7732. _ACEOF
  7733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7734. $EGREP "memchr" >/dev/null 2>&1; then :
  7735. else
  7736. ac_cv_header_stdc=no
  7737. fi
  7738. rm -f conftest*
  7739. fi
  7740. if test $ac_cv_header_stdc = yes; then
  7741. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7743. /* end confdefs.h. */
  7744. #include <stdlib.h>
  7745. _ACEOF
  7746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7747. $EGREP "free" >/dev/null 2>&1; then :
  7748. else
  7749. ac_cv_header_stdc=no
  7750. fi
  7751. rm -f conftest*
  7752. fi
  7753. if test $ac_cv_header_stdc = yes; then
  7754. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7755. if test "$cross_compiling" = yes; then :
  7756. :
  7757. else
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. #include <ctype.h>
  7761. #include <stdlib.h>
  7762. #if ((' ' & 0x0FF) == 0x020)
  7763. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7764. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7765. #else
  7766. # define ISLOWER(c) \
  7767. (('a' <= (c) && (c) <= 'i') \
  7768. || ('j' <= (c) && (c) <= 'r') \
  7769. || ('s' <= (c) && (c) <= 'z'))
  7770. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7771. #endif
  7772. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7773. int
  7774. main ()
  7775. {
  7776. int i;
  7777. for (i = 0; i < 256; i++)
  7778. if (XOR (islower (i), ISLOWER (i))
  7779. || toupper (i) != TOUPPER (i))
  7780. return 2;
  7781. return 0;
  7782. }
  7783. _ACEOF
  7784. if ac_fn_c_try_run "$LINENO"; then :
  7785. else
  7786. ac_cv_header_stdc=no
  7787. fi
  7788. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7789. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7790. fi
  7791. fi
  7792. fi
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7794. $as_echo "$ac_cv_header_stdc" >&6; }
  7795. if test $ac_cv_header_stdc = yes; then
  7796. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7797. fi
  7798. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7799. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7800. inttypes.h stdint.h unistd.h
  7801. do :
  7802. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7803. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7804. "
  7805. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7806. cat >>confdefs.h <<_ACEOF
  7807. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7808. _ACEOF
  7809. fi
  7810. done
  7811. for ac_header in dlfcn.h
  7812. do :
  7813. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7814. "
  7815. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7816. cat >>confdefs.h <<_ACEOF
  7817. #define HAVE_DLFCN_H 1
  7818. _ACEOF
  7819. fi
  7820. done
  7821. # Set options
  7822. enable_dlopen=no
  7823. enable_win32_dll=no
  7824. # Check whether --enable-shared was given.
  7825. if test "${enable_shared+set}" = set; then :
  7826. enableval=$enable_shared; p=${PACKAGE-default}
  7827. case $enableval in
  7828. yes) enable_shared=yes ;;
  7829. no) enable_shared=no ;;
  7830. *)
  7831. enable_shared=no
  7832. # Look at the argument we got. We use all the common list separators.
  7833. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7834. for pkg in $enableval; do
  7835. IFS=$lt_save_ifs
  7836. if test "X$pkg" = "X$p"; then
  7837. enable_shared=yes
  7838. fi
  7839. done
  7840. IFS=$lt_save_ifs
  7841. ;;
  7842. esac
  7843. else
  7844. enable_shared=yes
  7845. fi
  7846. # Check whether --enable-static was given.
  7847. if test "${enable_static+set}" = set; then :
  7848. enableval=$enable_static; p=${PACKAGE-default}
  7849. case $enableval in
  7850. yes) enable_static=yes ;;
  7851. no) enable_static=no ;;
  7852. *)
  7853. enable_static=no
  7854. # Look at the argument we got. We use all the common list separators.
  7855. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7856. for pkg in $enableval; do
  7857. IFS=$lt_save_ifs
  7858. if test "X$pkg" = "X$p"; then
  7859. enable_static=yes
  7860. fi
  7861. done
  7862. IFS=$lt_save_ifs
  7863. ;;
  7864. esac
  7865. else
  7866. enable_static=yes
  7867. fi
  7868. # Check whether --with-pic was given.
  7869. if test "${with_pic+set}" = set; then :
  7870. withval=$with_pic; lt_p=${PACKAGE-default}
  7871. case $withval in
  7872. yes|no) pic_mode=$withval ;;
  7873. *)
  7874. pic_mode=default
  7875. # Look at the argument we got. We use all the common list separators.
  7876. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7877. for lt_pkg in $withval; do
  7878. IFS=$lt_save_ifs
  7879. if test "X$lt_pkg" = "X$lt_p"; then
  7880. pic_mode=yes
  7881. fi
  7882. done
  7883. IFS=$lt_save_ifs
  7884. ;;
  7885. esac
  7886. else
  7887. pic_mode=default
  7888. fi
  7889. # Check whether --enable-fast-install was given.
  7890. if test "${enable_fast_install+set}" = set; then :
  7891. enableval=$enable_fast_install; p=${PACKAGE-default}
  7892. case $enableval in
  7893. yes) enable_fast_install=yes ;;
  7894. no) enable_fast_install=no ;;
  7895. *)
  7896. enable_fast_install=no
  7897. # Look at the argument we got. We use all the common list separators.
  7898. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7899. for pkg in $enableval; do
  7900. IFS=$lt_save_ifs
  7901. if test "X$pkg" = "X$p"; then
  7902. enable_fast_install=yes
  7903. fi
  7904. done
  7905. IFS=$lt_save_ifs
  7906. ;;
  7907. esac
  7908. else
  7909. enable_fast_install=yes
  7910. fi
  7911. shared_archive_member_spec=
  7912. case $host,$enable_shared in
  7913. power*-*-aix[5-9]*,yes)
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7915. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7916. # Check whether --with-aix-soname was given.
  7917. if test "${with_aix_soname+set}" = set; then :
  7918. withval=$with_aix_soname; case $withval in
  7919. aix|svr4|both)
  7920. ;;
  7921. *)
  7922. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7923. ;;
  7924. esac
  7925. lt_cv_with_aix_soname=$with_aix_soname
  7926. else
  7927. if ${lt_cv_with_aix_soname+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. lt_cv_with_aix_soname=aix
  7931. fi
  7932. with_aix_soname=$lt_cv_with_aix_soname
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7935. $as_echo "$with_aix_soname" >&6; }
  7936. if test aix != "$with_aix_soname"; then
  7937. # For the AIX way of multilib, we name the shared archive member
  7938. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7939. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7940. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7941. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7942. if test 64 = "${OBJECT_MODE-32}"; then
  7943. shared_archive_member_spec=shr_64
  7944. else
  7945. shared_archive_member_spec=shr
  7946. fi
  7947. fi
  7948. ;;
  7949. *)
  7950. with_aix_soname=aix
  7951. ;;
  7952. esac
  7953. # This can be used to rebuild libtool when needed
  7954. LIBTOOL_DEPS=$ltmain
  7955. # Always use our own libtool.
  7956. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7957. test -z "$LN_S" && LN_S="ln -s"
  7958. if test -n "${ZSH_VERSION+set}"; then
  7959. setopt NO_GLOB_SUBST
  7960. fi
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7962. $as_echo_n "checking for objdir... " >&6; }
  7963. if ${lt_cv_objdir+:} false; then :
  7964. $as_echo_n "(cached) " >&6
  7965. else
  7966. rm -f .libs 2>/dev/null
  7967. mkdir .libs 2>/dev/null
  7968. if test -d .libs; then
  7969. lt_cv_objdir=.libs
  7970. else
  7971. # MS-DOS does not allow filenames that begin with a dot.
  7972. lt_cv_objdir=_libs
  7973. fi
  7974. rmdir .libs 2>/dev/null
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7977. $as_echo "$lt_cv_objdir" >&6; }
  7978. objdir=$lt_cv_objdir
  7979. cat >>confdefs.h <<_ACEOF
  7980. #define LT_OBJDIR "$lt_cv_objdir/"
  7981. _ACEOF
  7982. case $host_os in
  7983. aix3*)
  7984. # AIX sometimes has problems with the GCC collect2 program. For some
  7985. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7986. # vanish in a puff of smoke.
  7987. if test set != "${COLLECT_NAMES+set}"; then
  7988. COLLECT_NAMES=
  7989. export COLLECT_NAMES
  7990. fi
  7991. ;;
  7992. esac
  7993. # Global variables:
  7994. ofile=libtool
  7995. can_build_shared=yes
  7996. # All known linkers require a '.a' archive for static linking (except MSVC,
  7997. # which needs '.lib').
  7998. libext=a
  7999. with_gnu_ld=$lt_cv_prog_gnu_ld
  8000. old_CC=$CC
  8001. old_CFLAGS=$CFLAGS
  8002. # Set sane defaults for various variables
  8003. test -z "$CC" && CC=cc
  8004. test -z "$LTCC" && LTCC=$CC
  8005. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8006. test -z "$LD" && LD=ld
  8007. test -z "$ac_objext" && ac_objext=o
  8008. func_cc_basename $compiler
  8009. cc_basename=$func_cc_basename_result
  8010. # Only perform the check for file, if the check method requires it
  8011. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8012. case $deplibs_check_method in
  8013. file_magic*)
  8014. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8016. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8017. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. case $MAGIC_CMD in
  8021. [\\/*] | ?:[\\/]*)
  8022. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8023. ;;
  8024. *)
  8025. lt_save_MAGIC_CMD=$MAGIC_CMD
  8026. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8027. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8028. for ac_dir in $ac_dummy; do
  8029. IFS=$lt_save_ifs
  8030. test -z "$ac_dir" && ac_dir=.
  8031. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8032. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8033. if test -n "$file_magic_test_file"; then
  8034. case $deplibs_check_method in
  8035. "file_magic "*)
  8036. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8037. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8038. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8039. $EGREP "$file_magic_regex" > /dev/null; then
  8040. :
  8041. else
  8042. cat <<_LT_EOF 1>&2
  8043. *** Warning: the command libtool uses to detect shared libraries,
  8044. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8045. *** The result is that libtool may fail to recognize shared libraries
  8046. *** as such. This will affect the creation of libtool libraries that
  8047. *** depend on shared libraries, but programs linked with such libtool
  8048. *** libraries will work regardless of this problem. Nevertheless, you
  8049. *** may want to report the problem to your system manager and/or to
  8050. *** bug-libtool@gnu.org
  8051. _LT_EOF
  8052. fi ;;
  8053. esac
  8054. fi
  8055. break
  8056. fi
  8057. done
  8058. IFS=$lt_save_ifs
  8059. MAGIC_CMD=$lt_save_MAGIC_CMD
  8060. ;;
  8061. esac
  8062. fi
  8063. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8064. if test -n "$MAGIC_CMD"; then
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8066. $as_echo "$MAGIC_CMD" >&6; }
  8067. else
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8069. $as_echo "no" >&6; }
  8070. fi
  8071. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8072. if test -n "$ac_tool_prefix"; then
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8074. $as_echo_n "checking for file... " >&6; }
  8075. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8076. $as_echo_n "(cached) " >&6
  8077. else
  8078. case $MAGIC_CMD in
  8079. [\\/*] | ?:[\\/]*)
  8080. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8081. ;;
  8082. *)
  8083. lt_save_MAGIC_CMD=$MAGIC_CMD
  8084. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8085. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8086. for ac_dir in $ac_dummy; do
  8087. IFS=$lt_save_ifs
  8088. test -z "$ac_dir" && ac_dir=.
  8089. if test -f "$ac_dir/file"; then
  8090. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8091. if test -n "$file_magic_test_file"; then
  8092. case $deplibs_check_method in
  8093. "file_magic "*)
  8094. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8095. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8096. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8097. $EGREP "$file_magic_regex" > /dev/null; then
  8098. :
  8099. else
  8100. cat <<_LT_EOF 1>&2
  8101. *** Warning: the command libtool uses to detect shared libraries,
  8102. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8103. *** The result is that libtool may fail to recognize shared libraries
  8104. *** as such. This will affect the creation of libtool libraries that
  8105. *** depend on shared libraries, but programs linked with such libtool
  8106. *** libraries will work regardless of this problem. Nevertheless, you
  8107. *** may want to report the problem to your system manager and/or to
  8108. *** bug-libtool@gnu.org
  8109. _LT_EOF
  8110. fi ;;
  8111. esac
  8112. fi
  8113. break
  8114. fi
  8115. done
  8116. IFS=$lt_save_ifs
  8117. MAGIC_CMD=$lt_save_MAGIC_CMD
  8118. ;;
  8119. esac
  8120. fi
  8121. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8122. if test -n "$MAGIC_CMD"; then
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8124. $as_echo "$MAGIC_CMD" >&6; }
  8125. else
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8127. $as_echo "no" >&6; }
  8128. fi
  8129. else
  8130. MAGIC_CMD=:
  8131. fi
  8132. fi
  8133. fi
  8134. ;;
  8135. esac
  8136. # Use C for the default configuration in the libtool script
  8137. lt_save_CC=$CC
  8138. ac_ext=c
  8139. ac_cpp='$CPP $CPPFLAGS'
  8140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8143. # Source file extension for C test sources.
  8144. ac_ext=c
  8145. # Object file extension for compiled C test sources.
  8146. objext=o
  8147. objext=$objext
  8148. # Code to be used in simple compile tests
  8149. lt_simple_compile_test_code="int some_variable = 0;"
  8150. # Code to be used in simple link tests
  8151. lt_simple_link_test_code='int main(){return(0);}'
  8152. # If no C compiler was specified, use CC.
  8153. LTCC=${LTCC-"$CC"}
  8154. # If no C compiler flags were specified, use CFLAGS.
  8155. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8156. # Allow CC to be a program name with arguments.
  8157. compiler=$CC
  8158. # Save the default compiler, since it gets overwritten when the other
  8159. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8160. compiler_DEFAULT=$CC
  8161. # save warnings/boilerplate of simple test code
  8162. ac_outfile=conftest.$ac_objext
  8163. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8164. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8165. _lt_compiler_boilerplate=`cat conftest.err`
  8166. $RM conftest*
  8167. ac_outfile=conftest.$ac_objext
  8168. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8169. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8170. _lt_linker_boilerplate=`cat conftest.err`
  8171. $RM -r conftest*
  8172. ## CAVEAT EMPTOR:
  8173. ## There is no encapsulation within the following macros, do not change
  8174. ## the running order or otherwise move them around unless you know exactly
  8175. ## what you are doing...
  8176. if test -n "$compiler"; then
  8177. lt_prog_compiler_no_builtin_flag=
  8178. if test yes = "$GCC"; then
  8179. case $cc_basename in
  8180. nvcc*)
  8181. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8182. *)
  8183. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8184. esac
  8185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8186. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8187. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8188. $as_echo_n "(cached) " >&6
  8189. else
  8190. lt_cv_prog_compiler_rtti_exceptions=no
  8191. ac_outfile=conftest.$ac_objext
  8192. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8193. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8194. # Insert the option either (1) after the last *FLAGS variable, or
  8195. # (2) before a word containing "conftest.", or (3) at the end.
  8196. # Note that $ac_compile itself does not contain backslashes and begins
  8197. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8198. # The option is referenced via a variable to avoid confusing sed.
  8199. lt_compile=`echo "$ac_compile" | $SED \
  8200. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8201. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8202. -e 's:$: $lt_compiler_flag:'`
  8203. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8204. (eval "$lt_compile" 2>conftest.err)
  8205. ac_status=$?
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. if (exit $ac_status) && test -s "$ac_outfile"; then
  8209. # The compiler can only warn and ignore the option if not recognized
  8210. # So say no if there are warnings other than the usual output.
  8211. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8213. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8214. lt_cv_prog_compiler_rtti_exceptions=yes
  8215. fi
  8216. fi
  8217. $RM conftest*
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8220. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8221. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8222. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8223. else
  8224. :
  8225. fi
  8226. fi
  8227. lt_prog_compiler_wl=
  8228. lt_prog_compiler_pic=
  8229. lt_prog_compiler_static=
  8230. if test yes = "$GCC"; then
  8231. lt_prog_compiler_wl='-Wl,'
  8232. lt_prog_compiler_static='-static'
  8233. case $host_os in
  8234. aix*)
  8235. # All AIX code is PIC.
  8236. if test ia64 = "$host_cpu"; then
  8237. # AIX 5 now supports IA64 processor
  8238. lt_prog_compiler_static='-Bstatic'
  8239. fi
  8240. lt_prog_compiler_pic='-fPIC'
  8241. ;;
  8242. amigaos*)
  8243. case $host_cpu in
  8244. powerpc)
  8245. # see comment about AmigaOS4 .so support
  8246. lt_prog_compiler_pic='-fPIC'
  8247. ;;
  8248. m68k)
  8249. # FIXME: we need at least 68020 code to build shared libraries, but
  8250. # adding the '-m68020' flag to GCC prevents building anything better,
  8251. # like '-m68040'.
  8252. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8253. ;;
  8254. esac
  8255. ;;
  8256. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8257. # PIC is the default for these OSes.
  8258. ;;
  8259. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8260. # This hack is so that the source file can tell whether it is being
  8261. # built for inclusion in a dll (and should export symbols for example).
  8262. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8263. # (--disable-auto-import) libraries
  8264. lt_prog_compiler_pic='-DDLL_EXPORT'
  8265. case $host_os in
  8266. os2*)
  8267. lt_prog_compiler_static='$wl-static'
  8268. ;;
  8269. esac
  8270. ;;
  8271. darwin* | rhapsody*)
  8272. # PIC is the default on this platform
  8273. # Common symbols not allowed in MH_DYLIB files
  8274. lt_prog_compiler_pic='-fno-common'
  8275. ;;
  8276. haiku*)
  8277. # PIC is the default for Haiku.
  8278. # The "-static" flag exists, but is broken.
  8279. lt_prog_compiler_static=
  8280. ;;
  8281. hpux*)
  8282. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8283. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8284. # sets the default TLS model and affects inlining.
  8285. case $host_cpu in
  8286. hppa*64*)
  8287. # +Z the default
  8288. ;;
  8289. *)
  8290. lt_prog_compiler_pic='-fPIC'
  8291. ;;
  8292. esac
  8293. ;;
  8294. interix[3-9]*)
  8295. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8296. # Instead, we relocate shared libraries at runtime.
  8297. ;;
  8298. msdosdjgpp*)
  8299. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8300. # on systems that don't support them.
  8301. lt_prog_compiler_can_build_shared=no
  8302. enable_shared=no
  8303. ;;
  8304. *nto* | *qnx*)
  8305. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8306. # it will coredump.
  8307. lt_prog_compiler_pic='-fPIC -shared'
  8308. ;;
  8309. sysv4*MP*)
  8310. if test -d /usr/nec; then
  8311. lt_prog_compiler_pic=-Kconform_pic
  8312. fi
  8313. ;;
  8314. *)
  8315. lt_prog_compiler_pic='-fPIC'
  8316. ;;
  8317. esac
  8318. case $cc_basename in
  8319. nvcc*) # Cuda Compiler Driver 2.2
  8320. lt_prog_compiler_wl='-Xlinker '
  8321. if test -n "$lt_prog_compiler_pic"; then
  8322. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8323. fi
  8324. ;;
  8325. esac
  8326. else
  8327. # PORTME Check for flag to pass linker flags through the system compiler.
  8328. case $host_os in
  8329. aix*)
  8330. lt_prog_compiler_wl='-Wl,'
  8331. if test ia64 = "$host_cpu"; then
  8332. # AIX 5 now supports IA64 processor
  8333. lt_prog_compiler_static='-Bstatic'
  8334. else
  8335. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8336. fi
  8337. ;;
  8338. darwin* | rhapsody*)
  8339. # PIC is the default on this platform
  8340. # Common symbols not allowed in MH_DYLIB files
  8341. lt_prog_compiler_pic='-fno-common'
  8342. case $cc_basename in
  8343. nagfor*)
  8344. # NAG Fortran compiler
  8345. lt_prog_compiler_wl='-Wl,-Wl,,'
  8346. lt_prog_compiler_pic='-PIC'
  8347. lt_prog_compiler_static='-Bstatic'
  8348. ;;
  8349. esac
  8350. ;;
  8351. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8352. # This hack is so that the source file can tell whether it is being
  8353. # built for inclusion in a dll (and should export symbols for example).
  8354. lt_prog_compiler_pic='-DDLL_EXPORT'
  8355. case $host_os in
  8356. os2*)
  8357. lt_prog_compiler_static='$wl-static'
  8358. ;;
  8359. esac
  8360. ;;
  8361. hpux9* | hpux10* | hpux11*)
  8362. lt_prog_compiler_wl='-Wl,'
  8363. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8364. # not for PA HP-UX.
  8365. case $host_cpu in
  8366. hppa*64*|ia64*)
  8367. # +Z the default
  8368. ;;
  8369. *)
  8370. lt_prog_compiler_pic='+Z'
  8371. ;;
  8372. esac
  8373. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8374. lt_prog_compiler_static='$wl-a ${wl}archive'
  8375. ;;
  8376. irix5* | irix6* | nonstopux*)
  8377. lt_prog_compiler_wl='-Wl,'
  8378. # PIC (with -KPIC) is the default.
  8379. lt_prog_compiler_static='-non_shared'
  8380. ;;
  8381. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8382. case $cc_basename in
  8383. # old Intel for x86_64, which still supported -KPIC.
  8384. ecc*)
  8385. lt_prog_compiler_wl='-Wl,'
  8386. lt_prog_compiler_pic='-KPIC'
  8387. lt_prog_compiler_static='-static'
  8388. ;;
  8389. # flang / f18. f95 an alias for gfortran or flang on Debian
  8390. flang* | f18* | f95*)
  8391. lt_prog_compiler_wl='-Wl,'
  8392. lt_prog_compiler_pic='-fPIC'
  8393. lt_prog_compiler_static='-static'
  8394. ;;
  8395. # icc used to be incompatible with GCC.
  8396. # ICC 10 doesn't accept -KPIC any more.
  8397. icc* | ifort*)
  8398. lt_prog_compiler_wl='-Wl,'
  8399. lt_prog_compiler_pic='-fPIC'
  8400. lt_prog_compiler_static='-static'
  8401. ;;
  8402. # Lahey Fortran 8.1.
  8403. lf95*)
  8404. lt_prog_compiler_wl='-Wl,'
  8405. lt_prog_compiler_pic='--shared'
  8406. lt_prog_compiler_static='--static'
  8407. ;;
  8408. nagfor*)
  8409. # NAG Fortran compiler
  8410. lt_prog_compiler_wl='-Wl,-Wl,,'
  8411. lt_prog_compiler_pic='-PIC'
  8412. lt_prog_compiler_static='-Bstatic'
  8413. ;;
  8414. tcc*)
  8415. # Fabrice Bellard et al's Tiny C Compiler
  8416. lt_prog_compiler_wl='-Wl,'
  8417. lt_prog_compiler_pic='-fPIC'
  8418. lt_prog_compiler_static='-static'
  8419. ;;
  8420. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8421. # Portland Group compilers (*not* the Pentium gcc compiler,
  8422. # which looks to be a dead project)
  8423. lt_prog_compiler_wl='-Wl,'
  8424. lt_prog_compiler_pic='-fpic'
  8425. lt_prog_compiler_static='-Bstatic'
  8426. ;;
  8427. ccc*)
  8428. lt_prog_compiler_wl='-Wl,'
  8429. # All Alpha code is PIC.
  8430. lt_prog_compiler_static='-non_shared'
  8431. ;;
  8432. xl* | bgxl* | bgf* | mpixl*)
  8433. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8434. lt_prog_compiler_wl='-Wl,'
  8435. lt_prog_compiler_pic='-qpic'
  8436. lt_prog_compiler_static='-qstaticlink'
  8437. ;;
  8438. *)
  8439. case `$CC -V 2>&1 | sed 5q` in
  8440. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8441. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8442. lt_prog_compiler_pic='-KPIC'
  8443. lt_prog_compiler_static='-Bstatic'
  8444. lt_prog_compiler_wl=''
  8445. ;;
  8446. *Sun\ F* | *Sun*Fortran*)
  8447. lt_prog_compiler_pic='-KPIC'
  8448. lt_prog_compiler_static='-Bstatic'
  8449. lt_prog_compiler_wl='-Qoption ld '
  8450. ;;
  8451. *Sun\ C*)
  8452. # Sun C 5.9
  8453. lt_prog_compiler_pic='-KPIC'
  8454. lt_prog_compiler_static='-Bstatic'
  8455. lt_prog_compiler_wl='-Wl,'
  8456. ;;
  8457. *Intel*\ [CF]*Compiler*)
  8458. lt_prog_compiler_wl='-Wl,'
  8459. lt_prog_compiler_pic='-fPIC'
  8460. lt_prog_compiler_static='-static'
  8461. ;;
  8462. *Portland\ Group*)
  8463. lt_prog_compiler_wl='-Wl,'
  8464. lt_prog_compiler_pic='-fpic'
  8465. lt_prog_compiler_static='-Bstatic'
  8466. ;;
  8467. esac
  8468. ;;
  8469. esac
  8470. ;;
  8471. newsos6)
  8472. lt_prog_compiler_pic='-KPIC'
  8473. lt_prog_compiler_static='-Bstatic'
  8474. ;;
  8475. *nto* | *qnx*)
  8476. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8477. # it will coredump.
  8478. lt_prog_compiler_pic='-fPIC -shared'
  8479. ;;
  8480. osf3* | osf4* | osf5*)
  8481. lt_prog_compiler_wl='-Wl,'
  8482. # All OSF/1 code is PIC.
  8483. lt_prog_compiler_static='-non_shared'
  8484. ;;
  8485. rdos*)
  8486. lt_prog_compiler_static='-non_shared'
  8487. ;;
  8488. solaris*)
  8489. lt_prog_compiler_pic='-KPIC'
  8490. lt_prog_compiler_static='-Bstatic'
  8491. case $cc_basename in
  8492. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8493. lt_prog_compiler_wl='-Qoption ld ';;
  8494. *)
  8495. lt_prog_compiler_wl='-Wl,';;
  8496. esac
  8497. ;;
  8498. sunos4*)
  8499. lt_prog_compiler_wl='-Qoption ld '
  8500. lt_prog_compiler_pic='-PIC'
  8501. lt_prog_compiler_static='-Bstatic'
  8502. ;;
  8503. sysv4 | sysv4.2uw2* | sysv4.3*)
  8504. lt_prog_compiler_wl='-Wl,'
  8505. lt_prog_compiler_pic='-KPIC'
  8506. lt_prog_compiler_static='-Bstatic'
  8507. ;;
  8508. sysv4*MP*)
  8509. if test -d /usr/nec; then
  8510. lt_prog_compiler_pic='-Kconform_pic'
  8511. lt_prog_compiler_static='-Bstatic'
  8512. fi
  8513. ;;
  8514. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8515. lt_prog_compiler_wl='-Wl,'
  8516. lt_prog_compiler_pic='-KPIC'
  8517. lt_prog_compiler_static='-Bstatic'
  8518. ;;
  8519. unicos*)
  8520. lt_prog_compiler_wl='-Wl,'
  8521. lt_prog_compiler_can_build_shared=no
  8522. ;;
  8523. uts4*)
  8524. lt_prog_compiler_pic='-pic'
  8525. lt_prog_compiler_static='-Bstatic'
  8526. ;;
  8527. *)
  8528. lt_prog_compiler_can_build_shared=no
  8529. ;;
  8530. esac
  8531. fi
  8532. case $host_os in
  8533. # For platforms that do not support PIC, -DPIC is meaningless:
  8534. *djgpp*)
  8535. lt_prog_compiler_pic=
  8536. ;;
  8537. *)
  8538. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8539. ;;
  8540. esac
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8542. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8543. if ${lt_cv_prog_compiler_pic+:} false; then :
  8544. $as_echo_n "(cached) " >&6
  8545. else
  8546. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8547. fi
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8549. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8550. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8551. #
  8552. # Check to make sure the PIC flag actually works.
  8553. #
  8554. if test -n "$lt_prog_compiler_pic"; then
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8556. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8557. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8558. $as_echo_n "(cached) " >&6
  8559. else
  8560. lt_cv_prog_compiler_pic_works=no
  8561. ac_outfile=conftest.$ac_objext
  8562. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8563. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8564. # Insert the option either (1) after the last *FLAGS variable, or
  8565. # (2) before a word containing "conftest.", or (3) at the end.
  8566. # Note that $ac_compile itself does not contain backslashes and begins
  8567. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8568. # The option is referenced via a variable to avoid confusing sed.
  8569. lt_compile=`echo "$ac_compile" | $SED \
  8570. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8571. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8572. -e 's:$: $lt_compiler_flag:'`
  8573. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8574. (eval "$lt_compile" 2>conftest.err)
  8575. ac_status=$?
  8576. cat conftest.err >&5
  8577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8578. if (exit $ac_status) && test -s "$ac_outfile"; then
  8579. # The compiler can only warn and ignore the option if not recognized
  8580. # So say no if there are warnings other than the usual output.
  8581. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8582. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8583. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8584. lt_cv_prog_compiler_pic_works=yes
  8585. fi
  8586. fi
  8587. $RM conftest*
  8588. fi
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8590. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8591. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8592. case $lt_prog_compiler_pic in
  8593. "" | " "*) ;;
  8594. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8595. esac
  8596. else
  8597. lt_prog_compiler_pic=
  8598. lt_prog_compiler_can_build_shared=no
  8599. fi
  8600. fi
  8601. #
  8602. # Check to make sure the static flag actually works.
  8603. #
  8604. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8606. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8607. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8608. $as_echo_n "(cached) " >&6
  8609. else
  8610. lt_cv_prog_compiler_static_works=no
  8611. save_LDFLAGS=$LDFLAGS
  8612. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8613. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8614. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8615. # The linker can only warn and ignore the option if not recognized
  8616. # So say no if there are warnings
  8617. if test -s conftest.err; then
  8618. # Append any errors to the config.log.
  8619. cat conftest.err 1>&5
  8620. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8621. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8622. if diff conftest.exp conftest.er2 >/dev/null; then
  8623. lt_cv_prog_compiler_static_works=yes
  8624. fi
  8625. else
  8626. lt_cv_prog_compiler_static_works=yes
  8627. fi
  8628. fi
  8629. $RM -r conftest*
  8630. LDFLAGS=$save_LDFLAGS
  8631. fi
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8633. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8634. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8635. :
  8636. else
  8637. lt_prog_compiler_static=
  8638. fi
  8639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8640. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8641. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8642. $as_echo_n "(cached) " >&6
  8643. else
  8644. lt_cv_prog_compiler_c_o=no
  8645. $RM -r conftest 2>/dev/null
  8646. mkdir conftest
  8647. cd conftest
  8648. mkdir out
  8649. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8650. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8651. # Insert the option either (1) after the last *FLAGS variable, or
  8652. # (2) before a word containing "conftest.", or (3) at the end.
  8653. # Note that $ac_compile itself does not contain backslashes and begins
  8654. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8655. lt_compile=`echo "$ac_compile" | $SED \
  8656. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8657. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8658. -e 's:$: $lt_compiler_flag:'`
  8659. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8660. (eval "$lt_compile" 2>out/conftest.err)
  8661. ac_status=$?
  8662. cat out/conftest.err >&5
  8663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8665. then
  8666. # The compiler can only warn and ignore the option if not recognized
  8667. # So say no if there are warnings
  8668. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8669. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8670. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8671. lt_cv_prog_compiler_c_o=yes
  8672. fi
  8673. fi
  8674. chmod u+w . 2>&5
  8675. $RM conftest*
  8676. # SGI C++ compiler will create directory out/ii_files/ for
  8677. # template instantiation
  8678. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8679. $RM out/* && rmdir out
  8680. cd ..
  8681. $RM -r conftest
  8682. $RM conftest*
  8683. fi
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8685. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8687. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8688. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8689. $as_echo_n "(cached) " >&6
  8690. else
  8691. lt_cv_prog_compiler_c_o=no
  8692. $RM -r conftest 2>/dev/null
  8693. mkdir conftest
  8694. cd conftest
  8695. mkdir out
  8696. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8697. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8698. # Insert the option either (1) after the last *FLAGS variable, or
  8699. # (2) before a word containing "conftest.", or (3) at the end.
  8700. # Note that $ac_compile itself does not contain backslashes and begins
  8701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8702. lt_compile=`echo "$ac_compile" | $SED \
  8703. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8704. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8705. -e 's:$: $lt_compiler_flag:'`
  8706. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8707. (eval "$lt_compile" 2>out/conftest.err)
  8708. ac_status=$?
  8709. cat out/conftest.err >&5
  8710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8711. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8712. then
  8713. # The compiler can only warn and ignore the option if not recognized
  8714. # So say no if there are warnings
  8715. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8716. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8717. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8718. lt_cv_prog_compiler_c_o=yes
  8719. fi
  8720. fi
  8721. chmod u+w . 2>&5
  8722. $RM conftest*
  8723. # SGI C++ compiler will create directory out/ii_files/ for
  8724. # template instantiation
  8725. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8726. $RM out/* && rmdir out
  8727. cd ..
  8728. $RM -r conftest
  8729. $RM conftest*
  8730. fi
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8732. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8733. hard_links=nottested
  8734. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8735. # do not overwrite the value of need_locks provided by the user
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8737. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8738. hard_links=yes
  8739. $RM conftest*
  8740. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8741. touch conftest.a
  8742. ln conftest.a conftest.b 2>&5 || hard_links=no
  8743. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8745. $as_echo "$hard_links" >&6; }
  8746. if test no = "$hard_links"; then
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8748. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8749. need_locks=warn
  8750. fi
  8751. else
  8752. need_locks=no
  8753. fi
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8755. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8756. runpath_var=
  8757. allow_undefined_flag=
  8758. always_export_symbols=no
  8759. archive_cmds=
  8760. archive_expsym_cmds=
  8761. compiler_needs_object=no
  8762. enable_shared_with_static_runtimes=no
  8763. export_dynamic_flag_spec=
  8764. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8765. hardcode_automatic=no
  8766. hardcode_direct=no
  8767. hardcode_direct_absolute=no
  8768. hardcode_libdir_flag_spec=
  8769. hardcode_libdir_separator=
  8770. hardcode_minus_L=no
  8771. hardcode_shlibpath_var=unsupported
  8772. inherit_rpath=no
  8773. link_all_deplibs=unknown
  8774. module_cmds=
  8775. module_expsym_cmds=
  8776. old_archive_from_new_cmds=
  8777. old_archive_from_expsyms_cmds=
  8778. thread_safe_flag_spec=
  8779. whole_archive_flag_spec=
  8780. # include_expsyms should be a list of space-separated symbols to be *always*
  8781. # included in the symbol list
  8782. include_expsyms=
  8783. # exclude_expsyms can be an extended regexp of symbols to exclude
  8784. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8785. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8786. # as well as any symbol that contains 'd'.
  8787. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8788. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8789. # platforms (ab)use it in PIC code, but their linkers get confused if
  8790. # the symbol is explicitly referenced. Since portable code cannot
  8791. # rely on this symbol name, it's probably fine to never include it in
  8792. # preloaded symbol tables.
  8793. # Exclude shared library initialization/finalization symbols.
  8794. extract_expsyms_cmds=
  8795. case $host_os in
  8796. cygwin* | mingw* | pw32* | cegcc*)
  8797. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8798. # When not using gcc, we currently assume that we are using
  8799. # Microsoft Visual C++.
  8800. if test yes != "$GCC"; then
  8801. with_gnu_ld=no
  8802. fi
  8803. ;;
  8804. interix*)
  8805. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8806. with_gnu_ld=yes
  8807. ;;
  8808. openbsd* | bitrig*)
  8809. with_gnu_ld=no
  8810. ;;
  8811. linux* | k*bsd*-gnu | gnu*)
  8812. link_all_deplibs=no
  8813. ;;
  8814. esac
  8815. ld_shlibs=yes
  8816. # On some targets, GNU ld is compatible enough with the native linker
  8817. # that we're better off using the native interface for both.
  8818. lt_use_gnu_ld_interface=no
  8819. if test yes = "$with_gnu_ld"; then
  8820. case $host_os in
  8821. aix*)
  8822. # The AIX port of GNU ld has always aspired to compatibility
  8823. # with the native linker. However, as the warning in the GNU ld
  8824. # block says, versions before 2.19.5* couldn't really create working
  8825. # shared libraries, regardless of the interface used.
  8826. case `$LD -v 2>&1` in
  8827. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8828. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8829. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8830. *)
  8831. lt_use_gnu_ld_interface=yes
  8832. ;;
  8833. esac
  8834. ;;
  8835. *)
  8836. lt_use_gnu_ld_interface=yes
  8837. ;;
  8838. esac
  8839. fi
  8840. if test yes = "$lt_use_gnu_ld_interface"; then
  8841. # If archive_cmds runs LD, not CC, wlarc should be empty
  8842. wlarc='$wl'
  8843. # Set some defaults for GNU ld with shared library support. These
  8844. # are reset later if shared libraries are not supported. Putting them
  8845. # here allows them to be overridden if necessary.
  8846. runpath_var=LD_RUN_PATH
  8847. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8848. export_dynamic_flag_spec='$wl--export-dynamic'
  8849. # ancient GNU ld didn't support --whole-archive et. al.
  8850. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8851. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8852. else
  8853. whole_archive_flag_spec=
  8854. fi
  8855. supports_anon_versioning=no
  8856. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8857. *GNU\ gold*) supports_anon_versioning=yes ;;
  8858. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8859. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8860. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8861. *\ 2.11.*) ;; # other 2.11 versions
  8862. *) supports_anon_versioning=yes ;;
  8863. esac
  8864. # See if GNU ld supports shared libraries.
  8865. case $host_os in
  8866. aix[3-9]*)
  8867. # On AIX/PPC, the GNU linker is very broken
  8868. if test ia64 != "$host_cpu"; then
  8869. ld_shlibs=no
  8870. cat <<_LT_EOF 1>&2
  8871. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8872. *** to be unable to reliably create shared libraries on AIX.
  8873. *** Therefore, libtool is disabling shared libraries support. If you
  8874. *** really care for shared libraries, you may want to install binutils
  8875. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8876. *** You will then need to restart the configuration process.
  8877. _LT_EOF
  8878. fi
  8879. ;;
  8880. amigaos*)
  8881. case $host_cpu in
  8882. powerpc)
  8883. # see comment about AmigaOS4 .so support
  8884. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8885. archive_expsym_cmds=''
  8886. ;;
  8887. m68k)
  8888. 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)'
  8889. hardcode_libdir_flag_spec='-L$libdir'
  8890. hardcode_minus_L=yes
  8891. ;;
  8892. esac
  8893. ;;
  8894. beos*)
  8895. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8896. allow_undefined_flag=unsupported
  8897. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8898. # support --undefined. This deserves some investigation. FIXME
  8899. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8900. else
  8901. ld_shlibs=no
  8902. fi
  8903. ;;
  8904. cygwin* | mingw* | pw32* | cegcc*)
  8905. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8906. # as there is no search path for DLLs.
  8907. hardcode_libdir_flag_spec='-L$libdir'
  8908. export_dynamic_flag_spec='$wl--export-all-symbols'
  8909. allow_undefined_flag=unsupported
  8910. always_export_symbols=no
  8911. enable_shared_with_static_runtimes=yes
  8912. 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'
  8913. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8914. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8916. # If the export-symbols file already is a .def file, use it as
  8917. # is; otherwise, prepend EXPORTS...
  8918. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8919. cp $export_symbols $output_objdir/$soname.def;
  8920. else
  8921. echo EXPORTS > $output_objdir/$soname.def;
  8922. cat $export_symbols >> $output_objdir/$soname.def;
  8923. fi~
  8924. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8925. else
  8926. ld_shlibs=no
  8927. fi
  8928. ;;
  8929. haiku*)
  8930. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8931. link_all_deplibs=yes
  8932. ;;
  8933. os2*)
  8934. hardcode_libdir_flag_spec='-L$libdir'
  8935. hardcode_minus_L=yes
  8936. allow_undefined_flag=unsupported
  8937. shrext_cmds=.dll
  8938. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8939. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8940. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8941. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8942. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8943. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8944. emximp -o $lib $output_objdir/$libname.def'
  8945. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8946. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8947. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8948. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8949. prefix_cmds="$SED"~
  8950. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8951. prefix_cmds="$prefix_cmds -e 1d";
  8952. fi~
  8953. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8954. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8955. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8956. emximp -o $lib $output_objdir/$libname.def'
  8957. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8958. enable_shared_with_static_runtimes=yes
  8959. ;;
  8960. interix[3-9]*)
  8961. hardcode_direct=no
  8962. hardcode_shlibpath_var=no
  8963. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8964. export_dynamic_flag_spec='$wl-E'
  8965. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8966. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8967. # default) and relocated if they conflict, which is a slow very memory
  8968. # consuming and fragmenting process. To avoid this, we pick a random,
  8969. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8970. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8971. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8972. 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'
  8973. ;;
  8974. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8975. tmp_diet=no
  8976. if test linux-dietlibc = "$host_os"; then
  8977. case $cc_basename in
  8978. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8979. esac
  8980. fi
  8981. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8982. && test no = "$tmp_diet"
  8983. then
  8984. tmp_addflag=' $pic_flag'
  8985. tmp_sharedflag='-shared'
  8986. case $cc_basename,$host_cpu in
  8987. pgcc*) # Portland Group C compiler
  8988. 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'
  8989. tmp_addflag=' $pic_flag'
  8990. ;;
  8991. pgf77* | pgf90* | pgf95* | pgfortran*)
  8992. # Portland Group f77 and f90 compilers
  8993. 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'
  8994. tmp_addflag=' $pic_flag -Mnomain' ;;
  8995. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8996. tmp_addflag=' -i_dynamic' ;;
  8997. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8998. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8999. ifc* | ifort*) # Intel Fortran compiler
  9000. tmp_addflag=' -nofor_main' ;;
  9001. lf95*) # Lahey Fortran 8.1
  9002. whole_archive_flag_spec=
  9003. tmp_sharedflag='--shared' ;;
  9004. nagfor*) # NAGFOR 5.3
  9005. tmp_sharedflag='-Wl,-shared' ;;
  9006. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9007. tmp_sharedflag='-qmkshrobj'
  9008. tmp_addflag= ;;
  9009. nvcc*) # Cuda Compiler Driver 2.2
  9010. 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'
  9011. compiler_needs_object=yes
  9012. ;;
  9013. esac
  9014. case `$CC -V 2>&1 | sed 5q` in
  9015. *Sun\ C*) # Sun C 5.9
  9016. 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'
  9017. compiler_needs_object=yes
  9018. tmp_sharedflag='-G' ;;
  9019. *Sun\ F*) # Sun Fortran 8.3
  9020. tmp_sharedflag='-G' ;;
  9021. esac
  9022. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9023. if test yes = "$supports_anon_versioning"; then
  9024. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9025. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9026. echo "local: *; };" >> $output_objdir/$libname.ver~
  9027. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9028. fi
  9029. case $cc_basename in
  9030. tcc*)
  9031. export_dynamic_flag_spec='-rdynamic'
  9032. ;;
  9033. xlf* | bgf* | bgxlf* | mpixlf*)
  9034. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9035. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9036. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9037. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9038. if test yes = "$supports_anon_versioning"; then
  9039. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9040. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9041. echo "local: *; };" >> $output_objdir/$libname.ver~
  9042. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9043. fi
  9044. ;;
  9045. esac
  9046. else
  9047. ld_shlibs=no
  9048. fi
  9049. ;;
  9050. netbsd* | netbsdelf*-gnu)
  9051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9052. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9053. wlarc=
  9054. else
  9055. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9056. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9057. fi
  9058. ;;
  9059. solaris*)
  9060. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9061. ld_shlibs=no
  9062. cat <<_LT_EOF 1>&2
  9063. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9064. *** create shared libraries on Solaris systems. Therefore, libtool
  9065. *** is disabling shared libraries support. We urge you to upgrade GNU
  9066. *** binutils to release 2.9.1 or newer. Another option is to modify
  9067. *** your PATH or compiler configuration so that the native linker is
  9068. *** used, and then restart.
  9069. _LT_EOF
  9070. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9071. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9072. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9073. else
  9074. ld_shlibs=no
  9075. fi
  9076. ;;
  9077. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9078. case `$LD -v 2>&1` in
  9079. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9080. ld_shlibs=no
  9081. cat <<_LT_EOF 1>&2
  9082. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9083. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9084. *** is disabling shared libraries support. We urge you to upgrade GNU
  9085. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9086. *** your PATH or compiler configuration so that the native linker is
  9087. *** used, and then restart.
  9088. _LT_EOF
  9089. ;;
  9090. *)
  9091. # For security reasons, it is highly recommended that you always
  9092. # use absolute paths for naming shared libraries, and exclude the
  9093. # DT_RUNPATH tag from executables and libraries. But doing so
  9094. # requires that you compile everything twice, which is a pain.
  9095. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9096. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9098. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9099. else
  9100. ld_shlibs=no
  9101. fi
  9102. ;;
  9103. esac
  9104. ;;
  9105. sunos4*)
  9106. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9107. wlarc=
  9108. hardcode_direct=yes
  9109. hardcode_shlibpath_var=no
  9110. ;;
  9111. *)
  9112. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9113. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9114. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9115. else
  9116. ld_shlibs=no
  9117. fi
  9118. ;;
  9119. esac
  9120. if test no = "$ld_shlibs"; then
  9121. runpath_var=
  9122. hardcode_libdir_flag_spec=
  9123. export_dynamic_flag_spec=
  9124. whole_archive_flag_spec=
  9125. fi
  9126. else
  9127. # PORTME fill in a description of your system's linker (not GNU ld)
  9128. case $host_os in
  9129. aix3*)
  9130. allow_undefined_flag=unsupported
  9131. always_export_symbols=yes
  9132. 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'
  9133. # Note: this linker hardcodes the directories in LIBPATH if there
  9134. # are no directories specified by -L.
  9135. hardcode_minus_L=yes
  9136. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9137. # Neither direct hardcoding nor static linking is supported with a
  9138. # broken collect2.
  9139. hardcode_direct=unsupported
  9140. fi
  9141. ;;
  9142. aix[4-9]*)
  9143. if test ia64 = "$host_cpu"; then
  9144. # On IA64, the linker does run time linking by default, so we don't
  9145. # have to do anything special.
  9146. aix_use_runtimelinking=no
  9147. exp_sym_flag='-Bexport'
  9148. no_entry_flag=
  9149. else
  9150. # If we're using GNU nm, then we don't want the "-C" option.
  9151. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9152. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9153. # weak defined symbols like other global defined symbols, whereas
  9154. # GNU nm marks them as "W".
  9155. # While the 'weak' keyword is ignored in the Export File, we need
  9156. # it in the Import File for the 'aix-soname' feature, so we have
  9157. # to replace the "-B" option with "-P" for AIX nm.
  9158. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9159. 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'
  9160. else
  9161. 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'
  9162. fi
  9163. aix_use_runtimelinking=no
  9164. # Test if we are trying to use run time linking or normal
  9165. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9166. # have runtime linking enabled, and use it for executables.
  9167. # For shared libraries, we enable/disable runtime linking
  9168. # depending on the kind of the shared library created -
  9169. # when "with_aix_soname,aix_use_runtimelinking" is:
  9170. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9171. # "aix,yes" lib.so shared, rtl:yes, for executables
  9172. # lib.a static archive
  9173. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9174. # lib.a(lib.so.V) shared, rtl:no, for executables
  9175. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9176. # lib.a(lib.so.V) shared, rtl:no
  9177. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9178. # lib.a static archive
  9179. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9180. for ld_flag in $LDFLAGS; do
  9181. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9182. aix_use_runtimelinking=yes
  9183. break
  9184. fi
  9185. done
  9186. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9187. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9188. # so we don't have lib.a shared libs to link our executables.
  9189. # We have to force runtime linking in this case.
  9190. aix_use_runtimelinking=yes
  9191. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9192. fi
  9193. ;;
  9194. esac
  9195. exp_sym_flag='-bexport'
  9196. no_entry_flag='-bnoentry'
  9197. fi
  9198. # When large executables or shared objects are built, AIX ld can
  9199. # have problems creating the table of contents. If linking a library
  9200. # or program results in "error TOC overflow" add -mminimal-toc to
  9201. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9202. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9203. archive_cmds=''
  9204. hardcode_direct=yes
  9205. hardcode_direct_absolute=yes
  9206. hardcode_libdir_separator=':'
  9207. link_all_deplibs=yes
  9208. file_list_spec='$wl-f,'
  9209. case $with_aix_soname,$aix_use_runtimelinking in
  9210. aix,*) ;; # traditional, no import file
  9211. svr4,* | *,yes) # use import file
  9212. # The Import File defines what to hardcode.
  9213. hardcode_direct=no
  9214. hardcode_direct_absolute=no
  9215. ;;
  9216. esac
  9217. if test yes = "$GCC"; then
  9218. case $host_os in aix4.[012]|aix4.[012].*)
  9219. # We only want to do this on AIX 4.2 and lower, the check
  9220. # below for broken collect2 doesn't work under 4.3+
  9221. collect2name=`$CC -print-prog-name=collect2`
  9222. if test -f "$collect2name" &&
  9223. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9224. then
  9225. # We have reworked collect2
  9226. :
  9227. else
  9228. # We have old collect2
  9229. hardcode_direct=unsupported
  9230. # It fails to find uninstalled libraries when the uninstalled
  9231. # path is not listed in the libpath. Setting hardcode_minus_L
  9232. # to unsupported forces relinking
  9233. hardcode_minus_L=yes
  9234. hardcode_libdir_flag_spec='-L$libdir'
  9235. hardcode_libdir_separator=
  9236. fi
  9237. ;;
  9238. esac
  9239. shared_flag='-shared'
  9240. if test yes = "$aix_use_runtimelinking"; then
  9241. shared_flag="$shared_flag "'$wl-G'
  9242. fi
  9243. # Need to ensure runtime linking is disabled for the traditional
  9244. # shared library, or the linker may eventually find shared libraries
  9245. # /with/ Import File - we do not want to mix them.
  9246. shared_flag_aix='-shared'
  9247. shared_flag_svr4='-shared $wl-G'
  9248. else
  9249. # not using gcc
  9250. if test ia64 = "$host_cpu"; then
  9251. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9252. # chokes on -Wl,-G. The following line is correct:
  9253. shared_flag='-G'
  9254. else
  9255. if test yes = "$aix_use_runtimelinking"; then
  9256. shared_flag='$wl-G'
  9257. else
  9258. shared_flag='$wl-bM:SRE'
  9259. fi
  9260. shared_flag_aix='$wl-bM:SRE'
  9261. shared_flag_svr4='$wl-G'
  9262. fi
  9263. fi
  9264. export_dynamic_flag_spec='$wl-bexpall'
  9265. # It seems that -bexpall does not export symbols beginning with
  9266. # underscore (_), so it is better to generate a list of symbols to export.
  9267. always_export_symbols=yes
  9268. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9269. # Warning - without using the other runtime loading flags (-brtl),
  9270. # -berok will link without error, but may produce a broken library.
  9271. allow_undefined_flag='-berok'
  9272. # Determine the default libpath from the value encoded in an
  9273. # empty executable.
  9274. if test set = "${lt_cv_aix_libpath+set}"; then
  9275. aix_libpath=$lt_cv_aix_libpath
  9276. else
  9277. if ${lt_cv_aix_libpath_+:} false; then :
  9278. $as_echo_n "(cached) " >&6
  9279. else
  9280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9281. /* end confdefs.h. */
  9282. int
  9283. main ()
  9284. {
  9285. ;
  9286. return 0;
  9287. }
  9288. _ACEOF
  9289. if ac_fn_c_try_link "$LINENO"; then :
  9290. lt_aix_libpath_sed='
  9291. /Import File Strings/,/^$/ {
  9292. /^0/ {
  9293. s/^0 *\([^ ]*\) *$/\1/
  9294. p
  9295. }
  9296. }'
  9297. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9298. # Check for a 64-bit object if we didn't find anything.
  9299. if test -z "$lt_cv_aix_libpath_"; then
  9300. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9301. fi
  9302. fi
  9303. rm -f core conftest.err conftest.$ac_objext \
  9304. conftest$ac_exeext conftest.$ac_ext
  9305. if test -z "$lt_cv_aix_libpath_"; then
  9306. lt_cv_aix_libpath_=/usr/lib:/lib
  9307. fi
  9308. fi
  9309. aix_libpath=$lt_cv_aix_libpath_
  9310. fi
  9311. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9312. 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
  9313. else
  9314. if test ia64 = "$host_cpu"; then
  9315. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9316. allow_undefined_flag="-z nodefs"
  9317. 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"
  9318. else
  9319. # Determine the default libpath from the value encoded in an
  9320. # empty executable.
  9321. if test set = "${lt_cv_aix_libpath+set}"; then
  9322. aix_libpath=$lt_cv_aix_libpath
  9323. else
  9324. if ${lt_cv_aix_libpath_+:} false; then :
  9325. $as_echo_n "(cached) " >&6
  9326. else
  9327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9328. /* end confdefs.h. */
  9329. int
  9330. main ()
  9331. {
  9332. ;
  9333. return 0;
  9334. }
  9335. _ACEOF
  9336. if ac_fn_c_try_link "$LINENO"; then :
  9337. lt_aix_libpath_sed='
  9338. /Import File Strings/,/^$/ {
  9339. /^0/ {
  9340. s/^0 *\([^ ]*\) *$/\1/
  9341. p
  9342. }
  9343. }'
  9344. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9345. # Check for a 64-bit object if we didn't find anything.
  9346. if test -z "$lt_cv_aix_libpath_"; then
  9347. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9348. fi
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext \
  9351. conftest$ac_exeext conftest.$ac_ext
  9352. if test -z "$lt_cv_aix_libpath_"; then
  9353. lt_cv_aix_libpath_=/usr/lib:/lib
  9354. fi
  9355. fi
  9356. aix_libpath=$lt_cv_aix_libpath_
  9357. fi
  9358. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9359. # Warning - without using the other run time loading flags,
  9360. # -berok will link without error, but may produce a broken library.
  9361. no_undefined_flag=' $wl-bernotok'
  9362. allow_undefined_flag=' $wl-berok'
  9363. if test yes = "$with_gnu_ld"; then
  9364. # We only use this code for GNU lds that support --whole-archive.
  9365. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9366. else
  9367. # Exported symbols can be pulled into shared objects from archives
  9368. whole_archive_flag_spec='$convenience'
  9369. fi
  9370. archive_cmds_need_lc=yes
  9371. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9372. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9373. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9374. if test svr4 != "$with_aix_soname"; then
  9375. # This is similar to how AIX traditionally builds its shared libraries.
  9376. 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'
  9377. fi
  9378. if test aix != "$with_aix_soname"; then
  9379. 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'
  9380. else
  9381. # used by -dlpreopen to get the symbols
  9382. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9383. fi
  9384. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9385. fi
  9386. fi
  9387. ;;
  9388. amigaos*)
  9389. case $host_cpu in
  9390. powerpc)
  9391. # see comment about AmigaOS4 .so support
  9392. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9393. archive_expsym_cmds=''
  9394. ;;
  9395. m68k)
  9396. 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)'
  9397. hardcode_libdir_flag_spec='-L$libdir'
  9398. hardcode_minus_L=yes
  9399. ;;
  9400. esac
  9401. ;;
  9402. bsdi[45]*)
  9403. export_dynamic_flag_spec=-rdynamic
  9404. ;;
  9405. cygwin* | mingw* | pw32* | cegcc*)
  9406. # When not using gcc, we currently assume that we are using
  9407. # Microsoft Visual C++.
  9408. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9409. # no search path for DLLs.
  9410. case $cc_basename in
  9411. cl*)
  9412. # Native MSVC
  9413. hardcode_libdir_flag_spec=' '
  9414. allow_undefined_flag=unsupported
  9415. always_export_symbols=yes
  9416. file_list_spec='@'
  9417. # Tell ltmain to make .lib files, not .a files.
  9418. libext=lib
  9419. # Tell ltmain to make .dll files, not .so files.
  9420. shrext_cmds=.dll
  9421. # FIXME: Setting linknames here is a bad hack.
  9422. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9423. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9424. cp "$export_symbols" "$output_objdir/$soname.def";
  9425. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9426. else
  9427. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9428. fi~
  9429. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9430. linknames='
  9431. # The linker will not automatically build a static lib if we build a DLL.
  9432. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9433. enable_shared_with_static_runtimes=yes
  9434. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9435. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9436. # Don't use ranlib
  9437. old_postinstall_cmds='chmod 644 $oldlib'
  9438. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9439. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9440. case $lt_outputfile in
  9441. *.exe|*.EXE) ;;
  9442. *)
  9443. lt_outputfile=$lt_outputfile.exe
  9444. lt_tool_outputfile=$lt_tool_outputfile.exe
  9445. ;;
  9446. esac~
  9447. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9448. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9449. $RM "$lt_outputfile.manifest";
  9450. fi'
  9451. ;;
  9452. *)
  9453. # Assume MSVC wrapper
  9454. hardcode_libdir_flag_spec=' '
  9455. allow_undefined_flag=unsupported
  9456. # Tell ltmain to make .lib files, not .a files.
  9457. libext=lib
  9458. # Tell ltmain to make .dll files, not .so files.
  9459. shrext_cmds=.dll
  9460. # FIXME: Setting linknames here is a bad hack.
  9461. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9462. # The linker will automatically build a .lib file if we build a DLL.
  9463. old_archive_from_new_cmds='true'
  9464. # FIXME: Should let the user specify the lib program.
  9465. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9466. enable_shared_with_static_runtimes=yes
  9467. ;;
  9468. esac
  9469. ;;
  9470. darwin* | rhapsody*)
  9471. archive_cmds_need_lc=no
  9472. hardcode_direct=no
  9473. hardcode_automatic=yes
  9474. hardcode_shlibpath_var=unsupported
  9475. if test yes = "$lt_cv_ld_force_load"; then
  9476. 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\"`'
  9477. else
  9478. whole_archive_flag_spec=''
  9479. fi
  9480. link_all_deplibs=yes
  9481. allow_undefined_flag=$_lt_dar_allow_undefined
  9482. case $cc_basename in
  9483. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9484. *) _lt_dar_can_shared=$GCC ;;
  9485. esac
  9486. if test yes = "$_lt_dar_can_shared"; then
  9487. output_verbose_link_cmd=func_echo_all
  9488. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9489. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9490. 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"
  9491. 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"
  9492. else
  9493. ld_shlibs=no
  9494. fi
  9495. ;;
  9496. dgux*)
  9497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9498. hardcode_libdir_flag_spec='-L$libdir'
  9499. hardcode_shlibpath_var=no
  9500. ;;
  9501. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9502. # support. Future versions do this automatically, but an explicit c++rt0.o
  9503. # does not break anything, and helps significantly (at the cost of a little
  9504. # extra space).
  9505. freebsd2.2*)
  9506. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9507. hardcode_libdir_flag_spec='-R$libdir'
  9508. hardcode_direct=yes
  9509. hardcode_shlibpath_var=no
  9510. ;;
  9511. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9512. freebsd2.*)
  9513. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9514. hardcode_direct=yes
  9515. hardcode_minus_L=yes
  9516. hardcode_shlibpath_var=no
  9517. ;;
  9518. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9519. freebsd* | dragonfly*)
  9520. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9521. hardcode_libdir_flag_spec='-R$libdir'
  9522. hardcode_direct=yes
  9523. hardcode_shlibpath_var=no
  9524. ;;
  9525. hpux9*)
  9526. if test yes = "$GCC"; then
  9527. 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'
  9528. else
  9529. 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'
  9530. fi
  9531. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9532. hardcode_libdir_separator=:
  9533. hardcode_direct=yes
  9534. # hardcode_minus_L: Not really in the search PATH,
  9535. # but as the default location of the library.
  9536. hardcode_minus_L=yes
  9537. export_dynamic_flag_spec='$wl-E'
  9538. ;;
  9539. hpux10*)
  9540. if test yes,no = "$GCC,$with_gnu_ld"; then
  9541. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9542. else
  9543. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9544. fi
  9545. if test no = "$with_gnu_ld"; then
  9546. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9547. hardcode_libdir_separator=:
  9548. hardcode_direct=yes
  9549. hardcode_direct_absolute=yes
  9550. export_dynamic_flag_spec='$wl-E'
  9551. # hardcode_minus_L: Not really in the search PATH,
  9552. # but as the default location of the library.
  9553. hardcode_minus_L=yes
  9554. fi
  9555. ;;
  9556. hpux11*)
  9557. if test yes,no = "$GCC,$with_gnu_ld"; then
  9558. case $host_cpu in
  9559. hppa*64*)
  9560. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9561. ;;
  9562. ia64*)
  9563. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9564. ;;
  9565. *)
  9566. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9567. ;;
  9568. esac
  9569. else
  9570. case $host_cpu in
  9571. hppa*64*)
  9572. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9573. ;;
  9574. ia64*)
  9575. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9576. ;;
  9577. *)
  9578. # Older versions of the 11.00 compiler do not understand -b yet
  9579. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9581. $as_echo_n "checking if $CC understands -b... " >&6; }
  9582. if ${lt_cv_prog_compiler__b+:} false; then :
  9583. $as_echo_n "(cached) " >&6
  9584. else
  9585. lt_cv_prog_compiler__b=no
  9586. save_LDFLAGS=$LDFLAGS
  9587. LDFLAGS="$LDFLAGS -b"
  9588. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9589. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9590. # The linker can only warn and ignore the option if not recognized
  9591. # So say no if there are warnings
  9592. if test -s conftest.err; then
  9593. # Append any errors to the config.log.
  9594. cat conftest.err 1>&5
  9595. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9596. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9597. if diff conftest.exp conftest.er2 >/dev/null; then
  9598. lt_cv_prog_compiler__b=yes
  9599. fi
  9600. else
  9601. lt_cv_prog_compiler__b=yes
  9602. fi
  9603. fi
  9604. $RM -r conftest*
  9605. LDFLAGS=$save_LDFLAGS
  9606. fi
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9608. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9609. if test yes = "$lt_cv_prog_compiler__b"; then
  9610. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9611. else
  9612. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9613. fi
  9614. ;;
  9615. esac
  9616. fi
  9617. if test no = "$with_gnu_ld"; then
  9618. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9619. hardcode_libdir_separator=:
  9620. case $host_cpu in
  9621. hppa*64*|ia64*)
  9622. hardcode_direct=no
  9623. hardcode_shlibpath_var=no
  9624. ;;
  9625. *)
  9626. hardcode_direct=yes
  9627. hardcode_direct_absolute=yes
  9628. export_dynamic_flag_spec='$wl-E'
  9629. # hardcode_minus_L: Not really in the search PATH,
  9630. # but as the default location of the library.
  9631. hardcode_minus_L=yes
  9632. ;;
  9633. esac
  9634. fi
  9635. ;;
  9636. irix5* | irix6* | nonstopux*)
  9637. if test yes = "$GCC"; then
  9638. 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'
  9639. # Try to use the -exported_symbol ld option, if it does not
  9640. # work, assume that -exports_file does not work either and
  9641. # implicitly export all symbols.
  9642. # This should be the same for all languages, so no per-tag cache variable.
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9644. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9645. if ${lt_cv_irix_exported_symbol+:} false; then :
  9646. $as_echo_n "(cached) " >&6
  9647. else
  9648. save_LDFLAGS=$LDFLAGS
  9649. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9651. /* end confdefs.h. */
  9652. int foo (void) { return 0; }
  9653. _ACEOF
  9654. if ac_fn_c_try_link "$LINENO"; then :
  9655. lt_cv_irix_exported_symbol=yes
  9656. else
  9657. lt_cv_irix_exported_symbol=no
  9658. fi
  9659. rm -f core conftest.err conftest.$ac_objext \
  9660. conftest$ac_exeext conftest.$ac_ext
  9661. LDFLAGS=$save_LDFLAGS
  9662. fi
  9663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9664. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9665. if test yes = "$lt_cv_irix_exported_symbol"; then
  9666. 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'
  9667. fi
  9668. link_all_deplibs=no
  9669. else
  9670. 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'
  9671. 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'
  9672. fi
  9673. archive_cmds_need_lc='no'
  9674. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9675. hardcode_libdir_separator=:
  9676. inherit_rpath=yes
  9677. link_all_deplibs=yes
  9678. ;;
  9679. linux*)
  9680. case $cc_basename in
  9681. tcc*)
  9682. # Fabrice Bellard et al's Tiny C Compiler
  9683. ld_shlibs=yes
  9684. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9685. ;;
  9686. esac
  9687. ;;
  9688. netbsd* | netbsdelf*-gnu)
  9689. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9690. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9691. else
  9692. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9693. fi
  9694. hardcode_libdir_flag_spec='-R$libdir'
  9695. hardcode_direct=yes
  9696. hardcode_shlibpath_var=no
  9697. ;;
  9698. newsos6)
  9699. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9700. hardcode_direct=yes
  9701. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9702. hardcode_libdir_separator=:
  9703. hardcode_shlibpath_var=no
  9704. ;;
  9705. *nto* | *qnx*)
  9706. ;;
  9707. openbsd* | bitrig*)
  9708. if test -f /usr/libexec/ld.so; then
  9709. hardcode_direct=yes
  9710. hardcode_shlibpath_var=no
  9711. hardcode_direct_absolute=yes
  9712. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9713. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9714. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9715. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9716. export_dynamic_flag_spec='$wl-E'
  9717. else
  9718. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9719. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9720. fi
  9721. else
  9722. ld_shlibs=no
  9723. fi
  9724. ;;
  9725. os2*)
  9726. hardcode_libdir_flag_spec='-L$libdir'
  9727. hardcode_minus_L=yes
  9728. allow_undefined_flag=unsupported
  9729. shrext_cmds=.dll
  9730. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9731. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9732. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9733. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9734. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9735. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9736. emximp -o $lib $output_objdir/$libname.def'
  9737. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9738. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9739. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9740. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9741. prefix_cmds="$SED"~
  9742. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9743. prefix_cmds="$prefix_cmds -e 1d";
  9744. fi~
  9745. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9746. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9747. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9748. emximp -o $lib $output_objdir/$libname.def'
  9749. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9750. enable_shared_with_static_runtimes=yes
  9751. ;;
  9752. osf3*)
  9753. if test yes = "$GCC"; then
  9754. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9755. 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'
  9756. else
  9757. allow_undefined_flag=' -expect_unresolved \*'
  9758. 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'
  9759. fi
  9760. archive_cmds_need_lc='no'
  9761. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9762. hardcode_libdir_separator=:
  9763. ;;
  9764. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9765. if test yes = "$GCC"; then
  9766. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9767. 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'
  9768. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9769. else
  9770. allow_undefined_flag=' -expect_unresolved \*'
  9771. 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'
  9772. 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~
  9773. $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'
  9774. # Both c and cxx compiler support -rpath directly
  9775. hardcode_libdir_flag_spec='-rpath $libdir'
  9776. fi
  9777. archive_cmds_need_lc='no'
  9778. hardcode_libdir_separator=:
  9779. ;;
  9780. solaris*)
  9781. no_undefined_flag=' -z defs'
  9782. if test yes = "$GCC"; then
  9783. wlarc='$wl'
  9784. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9785. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9786. $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'
  9787. else
  9788. case `$CC -V 2>&1` in
  9789. *"Compilers 5.0"*)
  9790. wlarc=''
  9791. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9792. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9793. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9794. ;;
  9795. *)
  9796. wlarc='$wl'
  9797. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9798. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9799. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9800. ;;
  9801. esac
  9802. fi
  9803. hardcode_libdir_flag_spec='-R$libdir'
  9804. hardcode_shlibpath_var=no
  9805. case $host_os in
  9806. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9807. *)
  9808. # The compiler driver will combine and reorder linker options,
  9809. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9810. # but is careful enough not to reorder.
  9811. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9812. if test yes = "$GCC"; then
  9813. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9814. else
  9815. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9816. fi
  9817. ;;
  9818. esac
  9819. link_all_deplibs=yes
  9820. ;;
  9821. sunos4*)
  9822. if test sequent = "$host_vendor"; then
  9823. # Use $CC to link under sequent, because it throws in some extra .o
  9824. # files that make .init and .fini sections work.
  9825. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9826. else
  9827. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9828. fi
  9829. hardcode_libdir_flag_spec='-L$libdir'
  9830. hardcode_direct=yes
  9831. hardcode_minus_L=yes
  9832. hardcode_shlibpath_var=no
  9833. ;;
  9834. sysv4)
  9835. case $host_vendor in
  9836. sni)
  9837. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9838. hardcode_direct=yes # is this really true???
  9839. ;;
  9840. siemens)
  9841. ## LD is ld it makes a PLAMLIB
  9842. ## CC just makes a GrossModule.
  9843. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9844. reload_cmds='$CC -r -o $output$reload_objs'
  9845. hardcode_direct=no
  9846. ;;
  9847. motorola)
  9848. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9849. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9850. ;;
  9851. esac
  9852. runpath_var='LD_RUN_PATH'
  9853. hardcode_shlibpath_var=no
  9854. ;;
  9855. sysv4.3*)
  9856. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9857. hardcode_shlibpath_var=no
  9858. export_dynamic_flag_spec='-Bexport'
  9859. ;;
  9860. sysv4*MP*)
  9861. if test -d /usr/nec; then
  9862. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9863. hardcode_shlibpath_var=no
  9864. runpath_var=LD_RUN_PATH
  9865. hardcode_runpath_var=yes
  9866. ld_shlibs=yes
  9867. fi
  9868. ;;
  9869. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9870. no_undefined_flag='$wl-z,text'
  9871. archive_cmds_need_lc=no
  9872. hardcode_shlibpath_var=no
  9873. runpath_var='LD_RUN_PATH'
  9874. if test yes = "$GCC"; then
  9875. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9876. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9877. else
  9878. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9879. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9880. fi
  9881. ;;
  9882. sysv5* | sco3.2v5* | sco5v6*)
  9883. # Note: We CANNOT use -z defs as we might desire, because we do not
  9884. # link with -lc, and that would cause any symbols used from libc to
  9885. # always be unresolved, which means just about no library would
  9886. # ever link correctly. If we're not using GNU ld we use -z text
  9887. # though, which does catch some bad symbols but isn't as heavy-handed
  9888. # as -z defs.
  9889. no_undefined_flag='$wl-z,text'
  9890. allow_undefined_flag='$wl-z,nodefs'
  9891. archive_cmds_need_lc=no
  9892. hardcode_shlibpath_var=no
  9893. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9894. hardcode_libdir_separator=':'
  9895. link_all_deplibs=yes
  9896. export_dynamic_flag_spec='$wl-Bexport'
  9897. runpath_var='LD_RUN_PATH'
  9898. if test yes = "$GCC"; then
  9899. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9900. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9901. else
  9902. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9903. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9904. fi
  9905. ;;
  9906. uts4*)
  9907. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9908. hardcode_libdir_flag_spec='-L$libdir'
  9909. hardcode_shlibpath_var=no
  9910. ;;
  9911. *)
  9912. ld_shlibs=no
  9913. ;;
  9914. esac
  9915. if test sni = "$host_vendor"; then
  9916. case $host in
  9917. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9918. export_dynamic_flag_spec='$wl-Blargedynsym'
  9919. ;;
  9920. esac
  9921. fi
  9922. fi
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9924. $as_echo "$ld_shlibs" >&6; }
  9925. test no = "$ld_shlibs" && can_build_shared=no
  9926. with_gnu_ld=$with_gnu_ld
  9927. #
  9928. # Do we need to explicitly link libc?
  9929. #
  9930. case "x$archive_cmds_need_lc" in
  9931. x|xyes)
  9932. # Assume -lc should be added
  9933. archive_cmds_need_lc=yes
  9934. if test yes,yes = "$GCC,$enable_shared"; then
  9935. case $archive_cmds in
  9936. *'~'*)
  9937. # FIXME: we may have to deal with multi-command sequences.
  9938. ;;
  9939. '$CC '*)
  9940. # Test whether the compiler implicitly links with -lc since on some
  9941. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9942. # to ld, don't add -lc before -lgcc.
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9944. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9945. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. $RM conftest*
  9949. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9950. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9951. (eval $ac_compile) 2>&5
  9952. ac_status=$?
  9953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9954. test $ac_status = 0; } 2>conftest.err; then
  9955. soname=conftest
  9956. lib=conftest
  9957. libobjs=conftest.$ac_objext
  9958. deplibs=
  9959. wl=$lt_prog_compiler_wl
  9960. pic_flag=$lt_prog_compiler_pic
  9961. compiler_flags=-v
  9962. linker_flags=-v
  9963. verstring=
  9964. output_objdir=.
  9965. libname=conftest
  9966. lt_save_allow_undefined_flag=$allow_undefined_flag
  9967. allow_undefined_flag=
  9968. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9969. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9970. ac_status=$?
  9971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9972. test $ac_status = 0; }
  9973. then
  9974. lt_cv_archive_cmds_need_lc=no
  9975. else
  9976. lt_cv_archive_cmds_need_lc=yes
  9977. fi
  9978. allow_undefined_flag=$lt_save_allow_undefined_flag
  9979. else
  9980. cat conftest.err 1>&5
  9981. fi
  9982. $RM conftest*
  9983. fi
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9985. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9986. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9987. ;;
  9988. esac
  9989. fi
  9990. ;;
  9991. esac
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9993. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9994. if test yes = "$GCC"; then
  9995. case $host_os in
  9996. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9997. *) lt_awk_arg='/^libraries:/' ;;
  9998. esac
  9999. case $host_os in
  10000. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10001. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10002. esac
  10003. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10004. case $lt_search_path_spec in
  10005. *\;*)
  10006. # if the path contains ";" then we assume it to be the separator
  10007. # otherwise default to the standard path separator (i.e. ":") - it is
  10008. # assumed that no part of a normal pathname contains ";" but that should
  10009. # okay in the real world where ";" in dirpaths is itself problematic.
  10010. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10011. ;;
  10012. *)
  10013. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10014. ;;
  10015. esac
  10016. # Ok, now we have the path, separated by spaces, we can step through it
  10017. # and add multilib dir if necessary...
  10018. lt_tmp_lt_search_path_spec=
  10019. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10020. # ...but if some path component already ends with the multilib dir we assume
  10021. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10022. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10023. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10024. lt_multi_os_dir=
  10025. ;;
  10026. esac
  10027. for lt_sys_path in $lt_search_path_spec; do
  10028. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10029. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10030. elif test -n "$lt_multi_os_dir"; then
  10031. test -d "$lt_sys_path" && \
  10032. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10033. fi
  10034. done
  10035. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10036. BEGIN {RS = " "; FS = "/|\n";} {
  10037. lt_foo = "";
  10038. lt_count = 0;
  10039. for (lt_i = NF; lt_i > 0; lt_i--) {
  10040. if ($lt_i != "" && $lt_i != ".") {
  10041. if ($lt_i == "..") {
  10042. lt_count++;
  10043. } else {
  10044. if (lt_count == 0) {
  10045. lt_foo = "/" $lt_i lt_foo;
  10046. } else {
  10047. lt_count--;
  10048. }
  10049. }
  10050. }
  10051. }
  10052. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10053. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10054. }'`
  10055. # AWK program above erroneously prepends '/' to C:/dos/paths
  10056. # for these hosts.
  10057. case $host_os in
  10058. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10059. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10060. esac
  10061. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10062. else
  10063. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10064. fi
  10065. library_names_spec=
  10066. libname_spec='lib$name'
  10067. soname_spec=
  10068. shrext_cmds=.so
  10069. postinstall_cmds=
  10070. postuninstall_cmds=
  10071. finish_cmds=
  10072. finish_eval=
  10073. shlibpath_var=
  10074. shlibpath_overrides_runpath=unknown
  10075. version_type=none
  10076. dynamic_linker="$host_os ld.so"
  10077. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10078. need_lib_prefix=unknown
  10079. hardcode_into_libs=no
  10080. # when you set need_version to no, make sure it does not cause -set_version
  10081. # flags to be left without arguments
  10082. need_version=unknown
  10083. case $host_os in
  10084. aix3*)
  10085. version_type=linux # correct to gnu/linux during the next big refactor
  10086. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10087. shlibpath_var=LIBPATH
  10088. # AIX 3 has no versioning support, so we append a major version to the name.
  10089. soname_spec='$libname$release$shared_ext$major'
  10090. ;;
  10091. aix[4-9]*)
  10092. version_type=linux # correct to gnu/linux during the next big refactor
  10093. need_lib_prefix=no
  10094. need_version=no
  10095. hardcode_into_libs=yes
  10096. if test ia64 = "$host_cpu"; then
  10097. # AIX 5 supports IA64
  10098. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10099. shlibpath_var=LD_LIBRARY_PATH
  10100. else
  10101. # With GCC up to 2.95.x, collect2 would create an import file
  10102. # for dependence libraries. The import file would start with
  10103. # the line '#! .'. This would cause the generated library to
  10104. # depend on '.', always an invalid library. This was fixed in
  10105. # development snapshots of GCC prior to 3.0.
  10106. case $host_os in
  10107. aix4 | aix4.[01] | aix4.[01].*)
  10108. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10109. echo ' yes '
  10110. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10111. :
  10112. else
  10113. can_build_shared=no
  10114. fi
  10115. ;;
  10116. esac
  10117. # Using Import Files as archive members, it is possible to support
  10118. # filename-based versioning of shared library archives on AIX. While
  10119. # this would work for both with and without runtime linking, it will
  10120. # prevent static linking of such archives. So we do filename-based
  10121. # shared library versioning with .so extension only, which is used
  10122. # when both runtime linking and shared linking is enabled.
  10123. # Unfortunately, runtime linking may impact performance, so we do
  10124. # not want this to be the default eventually. Also, we use the
  10125. # versioned .so libs for executables only if there is the -brtl
  10126. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10127. # To allow for filename-based versioning support, we need to create
  10128. # libNAME.so.V as an archive file, containing:
  10129. # *) an Import File, referring to the versioned filename of the
  10130. # archive as well as the shared archive member, telling the
  10131. # bitwidth (32 or 64) of that shared object, and providing the
  10132. # list of exported symbols of that shared object, eventually
  10133. # decorated with the 'weak' keyword
  10134. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10135. # it being seen by the linker.
  10136. # At run time we better use the real file rather than another symlink,
  10137. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10138. case $with_aix_soname,$aix_use_runtimelinking in
  10139. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10140. # soname into executable. Probably we can add versioning support to
  10141. # collect2, so additional links can be useful in future.
  10142. aix,yes) # traditional libtool
  10143. dynamic_linker='AIX unversionable lib.so'
  10144. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10145. # instead of lib<name>.a to let people know that these are not
  10146. # typical AIX shared libraries.
  10147. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10148. ;;
  10149. aix,no) # traditional AIX only
  10150. dynamic_linker='AIX lib.a(lib.so.V)'
  10151. # We preserve .a as extension for shared libraries through AIX4.2
  10152. # and later when we are not doing run time linking.
  10153. library_names_spec='$libname$release.a $libname.a'
  10154. soname_spec='$libname$release$shared_ext$major'
  10155. ;;
  10156. svr4,*) # full svr4 only
  10157. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10158. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10159. # We do not specify a path in Import Files, so LIBPATH fires.
  10160. shlibpath_overrides_runpath=yes
  10161. ;;
  10162. *,yes) # both, prefer svr4
  10163. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10164. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10165. # unpreferred sharedlib libNAME.a needs extra handling
  10166. 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"'
  10167. 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"'
  10168. # We do not specify a path in Import Files, so LIBPATH fires.
  10169. shlibpath_overrides_runpath=yes
  10170. ;;
  10171. *,no) # both, prefer aix
  10172. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10173. library_names_spec='$libname$release.a $libname.a'
  10174. soname_spec='$libname$release$shared_ext$major'
  10175. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10176. 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)'
  10177. 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"'
  10178. ;;
  10179. esac
  10180. shlibpath_var=LIBPATH
  10181. fi
  10182. ;;
  10183. amigaos*)
  10184. case $host_cpu in
  10185. powerpc)
  10186. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10187. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10189. ;;
  10190. m68k)
  10191. library_names_spec='$libname.ixlibrary $libname.a'
  10192. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10193. 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'
  10194. ;;
  10195. esac
  10196. ;;
  10197. beos*)
  10198. library_names_spec='$libname$shared_ext'
  10199. dynamic_linker="$host_os ld.so"
  10200. shlibpath_var=LIBRARY_PATH
  10201. ;;
  10202. bsdi[45]*)
  10203. version_type=linux # correct to gnu/linux during the next big refactor
  10204. need_version=no
  10205. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10206. soname_spec='$libname$release$shared_ext$major'
  10207. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10208. shlibpath_var=LD_LIBRARY_PATH
  10209. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10210. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10211. # the default ld.so.conf also contains /usr/contrib/lib and
  10212. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10213. # libtool to hard-code these into programs
  10214. ;;
  10215. cygwin* | mingw* | pw32* | cegcc*)
  10216. version_type=windows
  10217. shrext_cmds=.dll
  10218. need_version=no
  10219. need_lib_prefix=no
  10220. case $GCC,$cc_basename in
  10221. yes,*)
  10222. # gcc
  10223. library_names_spec='$libname.dll.a'
  10224. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10225. postinstall_cmds='base_file=`basename \$file`~
  10226. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10227. dldir=$destdir/`dirname \$dlpath`~
  10228. test -d \$dldir || mkdir -p \$dldir~
  10229. $install_prog $dir/$dlname \$dldir/$dlname~
  10230. chmod a+x \$dldir/$dlname~
  10231. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10232. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10233. fi'
  10234. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10235. dlpath=$dir/\$dldll~
  10236. $RM \$dlpath'
  10237. shlibpath_overrides_runpath=yes
  10238. case $host_os in
  10239. cygwin*)
  10240. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10241. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10242. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10243. ;;
  10244. mingw* | cegcc*)
  10245. # MinGW DLLs use traditional 'lib' prefix
  10246. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10247. ;;
  10248. pw32*)
  10249. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10250. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10251. ;;
  10252. esac
  10253. dynamic_linker='Win32 ld.exe'
  10254. ;;
  10255. *,cl*)
  10256. # Native MSVC
  10257. libname_spec='$name'
  10258. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10259. library_names_spec='$libname.dll.lib'
  10260. case $build_os in
  10261. mingw*)
  10262. sys_lib_search_path_spec=
  10263. lt_save_ifs=$IFS
  10264. IFS=';'
  10265. for lt_path in $LIB
  10266. do
  10267. IFS=$lt_save_ifs
  10268. # Let DOS variable expansion print the short 8.3 style file name.
  10269. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10270. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10271. done
  10272. IFS=$lt_save_ifs
  10273. # Convert to MSYS style.
  10274. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10275. ;;
  10276. cygwin*)
  10277. # Convert to unix form, then to dos form, then back to unix form
  10278. # but this time dos style (no spaces!) so that the unix form looks
  10279. # like /cygdrive/c/PROGRA~1:/cygdr...
  10280. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10281. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10282. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10283. ;;
  10284. *)
  10285. sys_lib_search_path_spec=$LIB
  10286. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10287. # It is most probably a Windows format PATH.
  10288. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10289. else
  10290. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10291. fi
  10292. # FIXME: find the short name or the path components, as spaces are
  10293. # common. (e.g. "Program Files" -> "PROGRA~1")
  10294. ;;
  10295. esac
  10296. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10297. postinstall_cmds='base_file=`basename \$file`~
  10298. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10299. dldir=$destdir/`dirname \$dlpath`~
  10300. test -d \$dldir || mkdir -p \$dldir~
  10301. $install_prog $dir/$dlname \$dldir/$dlname'
  10302. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10303. dlpath=$dir/\$dldll~
  10304. $RM \$dlpath'
  10305. shlibpath_overrides_runpath=yes
  10306. dynamic_linker='Win32 link.exe'
  10307. ;;
  10308. *)
  10309. # Assume MSVC wrapper
  10310. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10311. dynamic_linker='Win32 ld.exe'
  10312. ;;
  10313. esac
  10314. # FIXME: first we should search . and the directory the executable is in
  10315. shlibpath_var=PATH
  10316. ;;
  10317. darwin* | rhapsody*)
  10318. dynamic_linker="$host_os dyld"
  10319. version_type=darwin
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10323. soname_spec='$libname$release$major$shared_ext'
  10324. shlibpath_overrides_runpath=yes
  10325. shlibpath_var=DYLD_LIBRARY_PATH
  10326. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10327. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10328. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10329. ;;
  10330. dgux*)
  10331. version_type=linux # correct to gnu/linux during the next big refactor
  10332. need_lib_prefix=no
  10333. need_version=no
  10334. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10335. soname_spec='$libname$release$shared_ext$major'
  10336. shlibpath_var=LD_LIBRARY_PATH
  10337. ;;
  10338. freebsd* | dragonfly*)
  10339. # DragonFly does not have aout. When/if they implement a new
  10340. # versioning mechanism, adjust this.
  10341. if test -x /usr/bin/objformat; then
  10342. objformat=`/usr/bin/objformat`
  10343. else
  10344. case $host_os in
  10345. freebsd[23].*) objformat=aout ;;
  10346. *) objformat=elf ;;
  10347. esac
  10348. fi
  10349. version_type=freebsd-$objformat
  10350. case $version_type in
  10351. freebsd-elf*)
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10353. soname_spec='$libname$release$shared_ext$major'
  10354. need_version=no
  10355. need_lib_prefix=no
  10356. ;;
  10357. freebsd-*)
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10359. need_version=yes
  10360. ;;
  10361. esac
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. case $host_os in
  10364. freebsd2.*)
  10365. shlibpath_overrides_runpath=yes
  10366. ;;
  10367. freebsd3.[01]* | freebsdelf3.[01]*)
  10368. shlibpath_overrides_runpath=yes
  10369. hardcode_into_libs=yes
  10370. ;;
  10371. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10372. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10373. shlibpath_overrides_runpath=no
  10374. hardcode_into_libs=yes
  10375. ;;
  10376. *) # from 4.6 on, and DragonFly
  10377. shlibpath_overrides_runpath=yes
  10378. hardcode_into_libs=yes
  10379. ;;
  10380. esac
  10381. ;;
  10382. haiku*)
  10383. version_type=linux # correct to gnu/linux during the next big refactor
  10384. need_lib_prefix=no
  10385. need_version=no
  10386. dynamic_linker="$host_os runtime_loader"
  10387. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10388. soname_spec='$libname$release$shared_ext$major'
  10389. shlibpath_var=LIBRARY_PATH
  10390. shlibpath_overrides_runpath=no
  10391. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10392. hardcode_into_libs=yes
  10393. ;;
  10394. hpux9* | hpux10* | hpux11*)
  10395. # Give a soname corresponding to the major version so that dld.sl refuses to
  10396. # link against other versions.
  10397. version_type=sunos
  10398. need_lib_prefix=no
  10399. need_version=no
  10400. case $host_cpu in
  10401. ia64*)
  10402. shrext_cmds='.so'
  10403. hardcode_into_libs=yes
  10404. dynamic_linker="$host_os dld.so"
  10405. shlibpath_var=LD_LIBRARY_PATH
  10406. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10407. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10408. soname_spec='$libname$release$shared_ext$major'
  10409. if test 32 = "$HPUX_IA64_MODE"; then
  10410. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10411. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10412. else
  10413. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10414. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10415. fi
  10416. ;;
  10417. hppa*64*)
  10418. shrext_cmds='.sl'
  10419. hardcode_into_libs=yes
  10420. dynamic_linker="$host_os dld.sl"
  10421. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10422. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10423. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10424. soname_spec='$libname$release$shared_ext$major'
  10425. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10426. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10427. ;;
  10428. *)
  10429. shrext_cmds='.sl'
  10430. dynamic_linker="$host_os dld.sl"
  10431. shlibpath_var=SHLIB_PATH
  10432. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10434. soname_spec='$libname$release$shared_ext$major'
  10435. ;;
  10436. esac
  10437. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10438. postinstall_cmds='chmod 555 $lib'
  10439. # or fails outright, so override atomically:
  10440. install_override_mode=555
  10441. ;;
  10442. interix[3-9]*)
  10443. version_type=linux # correct to gnu/linux during the next big refactor
  10444. need_lib_prefix=no
  10445. need_version=no
  10446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10447. soname_spec='$libname$release$shared_ext$major'
  10448. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10449. shlibpath_var=LD_LIBRARY_PATH
  10450. shlibpath_overrides_runpath=no
  10451. hardcode_into_libs=yes
  10452. ;;
  10453. irix5* | irix6* | nonstopux*)
  10454. case $host_os in
  10455. nonstopux*) version_type=nonstopux ;;
  10456. *)
  10457. if test yes = "$lt_cv_prog_gnu_ld"; then
  10458. version_type=linux # correct to gnu/linux during the next big refactor
  10459. else
  10460. version_type=irix
  10461. fi ;;
  10462. esac
  10463. need_lib_prefix=no
  10464. need_version=no
  10465. soname_spec='$libname$release$shared_ext$major'
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10467. case $host_os in
  10468. irix5* | nonstopux*)
  10469. libsuff= shlibsuff=
  10470. ;;
  10471. *)
  10472. case $LD in # libtool.m4 will add one of these switches to LD
  10473. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10474. libsuff= shlibsuff= libmagic=32-bit;;
  10475. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10476. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10477. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10478. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10479. *) libsuff= shlibsuff= libmagic=never-match;;
  10480. esac
  10481. ;;
  10482. esac
  10483. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10484. shlibpath_overrides_runpath=no
  10485. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10486. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10487. hardcode_into_libs=yes
  10488. ;;
  10489. # No shared lib support for Linux oldld, aout, or coff.
  10490. linux*oldld* | linux*aout* | linux*coff*)
  10491. dynamic_linker=no
  10492. ;;
  10493. linux*android*)
  10494. version_type=none # Android doesn't support versioned libraries.
  10495. need_lib_prefix=no
  10496. need_version=no
  10497. library_names_spec='$libname$release$shared_ext'
  10498. soname_spec='$libname$release$shared_ext'
  10499. finish_cmds=
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. # This implies no fast_install, which is unacceptable.
  10503. # Some rework will be needed to allow for fast_install
  10504. # before this can be enabled.
  10505. hardcode_into_libs=yes
  10506. dynamic_linker='Android linker'
  10507. # Don't embed -rpath directories since the linker doesn't support them.
  10508. hardcode_libdir_flag_spec='-L$libdir'
  10509. ;;
  10510. # This must be glibc/ELF.
  10511. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10512. version_type=linux # correct to gnu/linux during the next big refactor
  10513. need_lib_prefix=no
  10514. need_version=no
  10515. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10516. soname_spec='$libname$release$shared_ext$major'
  10517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10518. shlibpath_var=LD_LIBRARY_PATH
  10519. shlibpath_overrides_runpath=no
  10520. # Some binutils ld are patched to set DT_RUNPATH
  10521. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. lt_cv_shlibpath_overrides_runpath=no
  10525. save_LDFLAGS=$LDFLAGS
  10526. save_libdir=$libdir
  10527. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10528. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10530. /* end confdefs.h. */
  10531. int
  10532. main ()
  10533. {
  10534. ;
  10535. return 0;
  10536. }
  10537. _ACEOF
  10538. if ac_fn_c_try_link "$LINENO"; then :
  10539. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10540. lt_cv_shlibpath_overrides_runpath=yes
  10541. fi
  10542. fi
  10543. rm -f core conftest.err conftest.$ac_objext \
  10544. conftest$ac_exeext conftest.$ac_ext
  10545. LDFLAGS=$save_LDFLAGS
  10546. libdir=$save_libdir
  10547. fi
  10548. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10549. # This implies no fast_install, which is unacceptable.
  10550. # Some rework will be needed to allow for fast_install
  10551. # before this can be enabled.
  10552. hardcode_into_libs=yes
  10553. # Ideally, we could use ldconfig to report *all* directores which are
  10554. # searched for libraries, however this is still not possible. Aside from not
  10555. # being certain /sbin/ldconfig is available, command
  10556. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10557. # even though it is searched at run-time. Try to do the best guess by
  10558. # appending ld.so.conf contents (and includes) to the search path.
  10559. if test -f /etc/ld.so.conf; then
  10560. 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' ' '`
  10561. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10562. fi
  10563. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10564. # powerpc, because MkLinux only supported shared libraries with the
  10565. # GNU dynamic linker. Since this was broken with cross compilers,
  10566. # most powerpc-linux boxes support dynamic linking these days and
  10567. # people can always --disable-shared, the test was removed, and we
  10568. # assume the GNU/Linux dynamic linker is in use.
  10569. dynamic_linker='GNU/Linux ld.so'
  10570. ;;
  10571. netbsdelf*-gnu)
  10572. version_type=linux
  10573. need_lib_prefix=no
  10574. need_version=no
  10575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10576. soname_spec='${libname}${release}${shared_ext}$major'
  10577. shlibpath_var=LD_LIBRARY_PATH
  10578. shlibpath_overrides_runpath=no
  10579. hardcode_into_libs=yes
  10580. dynamic_linker='NetBSD ld.elf_so'
  10581. ;;
  10582. netbsd*)
  10583. version_type=sunos
  10584. need_lib_prefix=no
  10585. need_version=no
  10586. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10587. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10588. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10589. dynamic_linker='NetBSD (a.out) ld.so'
  10590. else
  10591. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10592. soname_spec='$libname$release$shared_ext$major'
  10593. dynamic_linker='NetBSD ld.elf_so'
  10594. fi
  10595. shlibpath_var=LD_LIBRARY_PATH
  10596. shlibpath_overrides_runpath=yes
  10597. hardcode_into_libs=yes
  10598. ;;
  10599. newsos6)
  10600. version_type=linux # correct to gnu/linux during the next big refactor
  10601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10602. shlibpath_var=LD_LIBRARY_PATH
  10603. shlibpath_overrides_runpath=yes
  10604. ;;
  10605. *nto* | *qnx*)
  10606. version_type=qnx
  10607. need_lib_prefix=no
  10608. need_version=no
  10609. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10610. soname_spec='$libname$release$shared_ext$major'
  10611. shlibpath_var=LD_LIBRARY_PATH
  10612. shlibpath_overrides_runpath=no
  10613. hardcode_into_libs=yes
  10614. dynamic_linker='ldqnx.so'
  10615. ;;
  10616. openbsd* | bitrig*)
  10617. version_type=sunos
  10618. sys_lib_dlsearch_path_spec=/usr/lib
  10619. need_lib_prefix=no
  10620. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10621. need_version=no
  10622. else
  10623. need_version=yes
  10624. fi
  10625. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10626. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10627. shlibpath_var=LD_LIBRARY_PATH
  10628. shlibpath_overrides_runpath=yes
  10629. ;;
  10630. os2*)
  10631. libname_spec='$name'
  10632. version_type=windows
  10633. shrext_cmds=.dll
  10634. need_version=no
  10635. need_lib_prefix=no
  10636. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10637. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10638. v=$($ECHO $release$versuffix | tr -d .-);
  10639. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10640. $ECHO $n$v`$shared_ext'
  10641. library_names_spec='${libname}_dll.$libext'
  10642. dynamic_linker='OS/2 ld.exe'
  10643. shlibpath_var=BEGINLIBPATH
  10644. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10645. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10646. postinstall_cmds='base_file=`basename \$file`~
  10647. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10648. dldir=$destdir/`dirname \$dlpath`~
  10649. test -d \$dldir || mkdir -p \$dldir~
  10650. $install_prog $dir/$dlname \$dldir/$dlname~
  10651. chmod a+x \$dldir/$dlname~
  10652. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10653. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10654. fi'
  10655. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10656. dlpath=$dir/\$dldll~
  10657. $RM \$dlpath'
  10658. ;;
  10659. osf3* | osf4* | osf5*)
  10660. version_type=osf
  10661. need_lib_prefix=no
  10662. need_version=no
  10663. soname_spec='$libname$release$shared_ext$major'
  10664. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10665. shlibpath_var=LD_LIBRARY_PATH
  10666. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10667. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10668. ;;
  10669. rdos*)
  10670. dynamic_linker=no
  10671. ;;
  10672. solaris*)
  10673. version_type=linux # correct to gnu/linux during the next big refactor
  10674. need_lib_prefix=no
  10675. need_version=no
  10676. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10677. soname_spec='$libname$release$shared_ext$major'
  10678. shlibpath_var=LD_LIBRARY_PATH
  10679. shlibpath_overrides_runpath=yes
  10680. hardcode_into_libs=yes
  10681. # ldd complains unless libraries are executable
  10682. postinstall_cmds='chmod +x $lib'
  10683. ;;
  10684. sunos4*)
  10685. version_type=sunos
  10686. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10687. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10688. shlibpath_var=LD_LIBRARY_PATH
  10689. shlibpath_overrides_runpath=yes
  10690. if test yes = "$with_gnu_ld"; then
  10691. need_lib_prefix=no
  10692. fi
  10693. need_version=yes
  10694. ;;
  10695. sysv4 | sysv4.3*)
  10696. version_type=linux # correct to gnu/linux during the next big refactor
  10697. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10698. soname_spec='$libname$release$shared_ext$major'
  10699. shlibpath_var=LD_LIBRARY_PATH
  10700. case $host_vendor in
  10701. sni)
  10702. shlibpath_overrides_runpath=no
  10703. need_lib_prefix=no
  10704. runpath_var=LD_RUN_PATH
  10705. ;;
  10706. siemens)
  10707. need_lib_prefix=no
  10708. ;;
  10709. motorola)
  10710. need_lib_prefix=no
  10711. need_version=no
  10712. shlibpath_overrides_runpath=no
  10713. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10714. ;;
  10715. esac
  10716. ;;
  10717. sysv4*MP*)
  10718. if test -d /usr/nec; then
  10719. version_type=linux # correct to gnu/linux during the next big refactor
  10720. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10721. soname_spec='$libname$shared_ext.$major'
  10722. shlibpath_var=LD_LIBRARY_PATH
  10723. fi
  10724. ;;
  10725. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10726. version_type=sco
  10727. need_lib_prefix=no
  10728. need_version=no
  10729. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10730. soname_spec='$libname$release$shared_ext$major'
  10731. shlibpath_var=LD_LIBRARY_PATH
  10732. shlibpath_overrides_runpath=yes
  10733. hardcode_into_libs=yes
  10734. if test yes = "$with_gnu_ld"; then
  10735. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10736. else
  10737. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10738. case $host_os in
  10739. sco3.2v5*)
  10740. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10741. ;;
  10742. esac
  10743. fi
  10744. sys_lib_dlsearch_path_spec='/usr/lib'
  10745. ;;
  10746. tpf*)
  10747. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10748. version_type=linux # correct to gnu/linux during the next big refactor
  10749. need_lib_prefix=no
  10750. need_version=no
  10751. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10752. shlibpath_var=LD_LIBRARY_PATH
  10753. shlibpath_overrides_runpath=no
  10754. hardcode_into_libs=yes
  10755. ;;
  10756. uts4*)
  10757. version_type=linux # correct to gnu/linux during the next big refactor
  10758. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10759. soname_spec='$libname$release$shared_ext$major'
  10760. shlibpath_var=LD_LIBRARY_PATH
  10761. ;;
  10762. *)
  10763. dynamic_linker=no
  10764. ;;
  10765. esac
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10767. $as_echo "$dynamic_linker" >&6; }
  10768. test no = "$dynamic_linker" && can_build_shared=no
  10769. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10770. if test yes = "$GCC"; then
  10771. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10772. fi
  10773. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10774. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10775. fi
  10776. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10777. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10778. fi
  10779. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10780. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10781. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10782. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10783. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10784. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10786. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10787. hardcode_action=
  10788. if test -n "$hardcode_libdir_flag_spec" ||
  10789. test -n "$runpath_var" ||
  10790. test yes = "$hardcode_automatic"; then
  10791. # We can hardcode non-existent directories.
  10792. if test no != "$hardcode_direct" &&
  10793. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10794. # have to relink, otherwise we might link with an installed library
  10795. # when we should be linking with a yet-to-be-installed one
  10796. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10797. test no != "$hardcode_minus_L"; then
  10798. # Linking always hardcodes the temporary library directory.
  10799. hardcode_action=relink
  10800. else
  10801. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10802. hardcode_action=immediate
  10803. fi
  10804. else
  10805. # We cannot hardcode anything, or else we can only hardcode existing
  10806. # directories.
  10807. hardcode_action=unsupported
  10808. fi
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10810. $as_echo "$hardcode_action" >&6; }
  10811. if test relink = "$hardcode_action" ||
  10812. test yes = "$inherit_rpath"; then
  10813. # Fast installation is not supported
  10814. enable_fast_install=no
  10815. elif test yes = "$shlibpath_overrides_runpath" ||
  10816. test no = "$enable_shared"; then
  10817. # Fast installation is not necessary
  10818. enable_fast_install=needless
  10819. fi
  10820. if test yes != "$enable_dlopen"; then
  10821. enable_dlopen=unknown
  10822. enable_dlopen_self=unknown
  10823. enable_dlopen_self_static=unknown
  10824. else
  10825. lt_cv_dlopen=no
  10826. lt_cv_dlopen_libs=
  10827. case $host_os in
  10828. beos*)
  10829. lt_cv_dlopen=load_add_on
  10830. lt_cv_dlopen_libs=
  10831. lt_cv_dlopen_self=yes
  10832. ;;
  10833. mingw* | pw32* | cegcc*)
  10834. lt_cv_dlopen=LoadLibrary
  10835. lt_cv_dlopen_libs=
  10836. ;;
  10837. cygwin*)
  10838. lt_cv_dlopen=dlopen
  10839. lt_cv_dlopen_libs=
  10840. ;;
  10841. darwin*)
  10842. # if libdl is installed we need to link against it
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10844. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10845. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10846. $as_echo_n "(cached) " >&6
  10847. else
  10848. ac_check_lib_save_LIBS=$LIBS
  10849. LIBS="-ldl $LIBS"
  10850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10851. /* end confdefs.h. */
  10852. /* Override any GCC internal prototype to avoid an error.
  10853. Use char because int might match the return type of a GCC
  10854. builtin and then its argument prototype would still apply. */
  10855. #ifdef __cplusplus
  10856. extern "C"
  10857. #endif
  10858. char dlopen ();
  10859. int
  10860. main ()
  10861. {
  10862. return dlopen ();
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_c_try_link "$LINENO"; then :
  10868. ac_cv_lib_dl_dlopen=yes
  10869. else
  10870. ac_cv_lib_dl_dlopen=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext \
  10873. conftest$ac_exeext conftest.$ac_ext
  10874. LIBS=$ac_check_lib_save_LIBS
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10877. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10878. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10879. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10880. else
  10881. lt_cv_dlopen=dyld
  10882. lt_cv_dlopen_libs=
  10883. lt_cv_dlopen_self=yes
  10884. fi
  10885. ;;
  10886. tpf*)
  10887. # Don't try to run any link tests for TPF. We know it's impossible
  10888. # because TPF is a cross-compiler, and we know how we open DSOs.
  10889. lt_cv_dlopen=dlopen
  10890. lt_cv_dlopen_libs=
  10891. lt_cv_dlopen_self=no
  10892. ;;
  10893. *)
  10894. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10895. if test "x$ac_cv_func_shl_load" = xyes; then :
  10896. lt_cv_dlopen=shl_load
  10897. else
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10899. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10900. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10901. $as_echo_n "(cached) " >&6
  10902. else
  10903. ac_check_lib_save_LIBS=$LIBS
  10904. LIBS="-ldld $LIBS"
  10905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10906. /* end confdefs.h. */
  10907. /* Override any GCC internal prototype to avoid an error.
  10908. Use char because int might match the return type of a GCC
  10909. builtin and then its argument prototype would still apply. */
  10910. #ifdef __cplusplus
  10911. extern "C"
  10912. #endif
  10913. char shl_load ();
  10914. int
  10915. main ()
  10916. {
  10917. return shl_load ();
  10918. ;
  10919. return 0;
  10920. }
  10921. _ACEOF
  10922. if ac_fn_c_try_link "$LINENO"; then :
  10923. ac_cv_lib_dld_shl_load=yes
  10924. else
  10925. ac_cv_lib_dld_shl_load=no
  10926. fi
  10927. rm -f core conftest.err conftest.$ac_objext \
  10928. conftest$ac_exeext conftest.$ac_ext
  10929. LIBS=$ac_check_lib_save_LIBS
  10930. fi
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10932. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10933. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10934. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10935. else
  10936. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10937. if test "x$ac_cv_func_dlopen" = xyes; then :
  10938. lt_cv_dlopen=dlopen
  10939. else
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10941. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10942. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10943. $as_echo_n "(cached) " >&6
  10944. else
  10945. ac_check_lib_save_LIBS=$LIBS
  10946. LIBS="-ldl $LIBS"
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. /* Override any GCC internal prototype to avoid an error.
  10950. Use char because int might match the return type of a GCC
  10951. builtin and then its argument prototype would still apply. */
  10952. #ifdef __cplusplus
  10953. extern "C"
  10954. #endif
  10955. char dlopen ();
  10956. int
  10957. main ()
  10958. {
  10959. return dlopen ();
  10960. ;
  10961. return 0;
  10962. }
  10963. _ACEOF
  10964. if ac_fn_c_try_link "$LINENO"; then :
  10965. ac_cv_lib_dl_dlopen=yes
  10966. else
  10967. ac_cv_lib_dl_dlopen=no
  10968. fi
  10969. rm -f core conftest.err conftest.$ac_objext \
  10970. conftest$ac_exeext conftest.$ac_ext
  10971. LIBS=$ac_check_lib_save_LIBS
  10972. fi
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10974. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10975. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10976. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10977. else
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10979. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10980. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. ac_check_lib_save_LIBS=$LIBS
  10984. LIBS="-lsvld $LIBS"
  10985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10986. /* end confdefs.h. */
  10987. /* Override any GCC internal prototype to avoid an error.
  10988. Use char because int might match the return type of a GCC
  10989. builtin and then its argument prototype would still apply. */
  10990. #ifdef __cplusplus
  10991. extern "C"
  10992. #endif
  10993. char dlopen ();
  10994. int
  10995. main ()
  10996. {
  10997. return dlopen ();
  10998. ;
  10999. return 0;
  11000. }
  11001. _ACEOF
  11002. if ac_fn_c_try_link "$LINENO"; then :
  11003. ac_cv_lib_svld_dlopen=yes
  11004. else
  11005. ac_cv_lib_svld_dlopen=no
  11006. fi
  11007. rm -f core conftest.err conftest.$ac_objext \
  11008. conftest$ac_exeext conftest.$ac_ext
  11009. LIBS=$ac_check_lib_save_LIBS
  11010. fi
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11012. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11013. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11014. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11015. else
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11017. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11018. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11019. $as_echo_n "(cached) " >&6
  11020. else
  11021. ac_check_lib_save_LIBS=$LIBS
  11022. LIBS="-ldld $LIBS"
  11023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11024. /* end confdefs.h. */
  11025. /* Override any GCC internal prototype to avoid an error.
  11026. Use char because int might match the return type of a GCC
  11027. builtin and then its argument prototype would still apply. */
  11028. #ifdef __cplusplus
  11029. extern "C"
  11030. #endif
  11031. char dld_link ();
  11032. int
  11033. main ()
  11034. {
  11035. return dld_link ();
  11036. ;
  11037. return 0;
  11038. }
  11039. _ACEOF
  11040. if ac_fn_c_try_link "$LINENO"; then :
  11041. ac_cv_lib_dld_dld_link=yes
  11042. else
  11043. ac_cv_lib_dld_dld_link=no
  11044. fi
  11045. rm -f core conftest.err conftest.$ac_objext \
  11046. conftest$ac_exeext conftest.$ac_ext
  11047. LIBS=$ac_check_lib_save_LIBS
  11048. fi
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11050. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11051. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11052. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11053. fi
  11054. fi
  11055. fi
  11056. fi
  11057. fi
  11058. fi
  11059. ;;
  11060. esac
  11061. if test no = "$lt_cv_dlopen"; then
  11062. enable_dlopen=no
  11063. else
  11064. enable_dlopen=yes
  11065. fi
  11066. case $lt_cv_dlopen in
  11067. dlopen)
  11068. save_CPPFLAGS=$CPPFLAGS
  11069. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11070. save_LDFLAGS=$LDFLAGS
  11071. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11072. save_LIBS=$LIBS
  11073. LIBS="$lt_cv_dlopen_libs $LIBS"
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11075. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11076. if ${lt_cv_dlopen_self+:} false; then :
  11077. $as_echo_n "(cached) " >&6
  11078. else
  11079. if test yes = "$cross_compiling"; then :
  11080. lt_cv_dlopen_self=cross
  11081. else
  11082. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11083. lt_status=$lt_dlunknown
  11084. cat > conftest.$ac_ext <<_LT_EOF
  11085. #line $LINENO "configure"
  11086. #include "confdefs.h"
  11087. #if HAVE_DLFCN_H
  11088. #include <dlfcn.h>
  11089. #endif
  11090. #include <stdio.h>
  11091. #ifdef RTLD_GLOBAL
  11092. # define LT_DLGLOBAL RTLD_GLOBAL
  11093. #else
  11094. # ifdef DL_GLOBAL
  11095. # define LT_DLGLOBAL DL_GLOBAL
  11096. # else
  11097. # define LT_DLGLOBAL 0
  11098. # endif
  11099. #endif
  11100. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11101. find out it does not work in some platform. */
  11102. #ifndef LT_DLLAZY_OR_NOW
  11103. # ifdef RTLD_LAZY
  11104. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11105. # else
  11106. # ifdef DL_LAZY
  11107. # define LT_DLLAZY_OR_NOW DL_LAZY
  11108. # else
  11109. # ifdef RTLD_NOW
  11110. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11111. # else
  11112. # ifdef DL_NOW
  11113. # define LT_DLLAZY_OR_NOW DL_NOW
  11114. # else
  11115. # define LT_DLLAZY_OR_NOW 0
  11116. # endif
  11117. # endif
  11118. # endif
  11119. # endif
  11120. #endif
  11121. /* When -fvisibility=hidden is used, assume the code has been annotated
  11122. correspondingly for the symbols needed. */
  11123. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11124. int fnord () __attribute__((visibility("default")));
  11125. #endif
  11126. int fnord () { return 42; }
  11127. int main ()
  11128. {
  11129. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11130. int status = $lt_dlunknown;
  11131. if (self)
  11132. {
  11133. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11134. else
  11135. {
  11136. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11137. else puts (dlerror ());
  11138. }
  11139. /* dlclose (self); */
  11140. }
  11141. else
  11142. puts (dlerror ());
  11143. return status;
  11144. }
  11145. _LT_EOF
  11146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11147. (eval $ac_link) 2>&5
  11148. ac_status=$?
  11149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11150. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11151. (./conftest; exit; ) >&5 2>/dev/null
  11152. lt_status=$?
  11153. case x$lt_status in
  11154. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11155. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11156. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11157. esac
  11158. else :
  11159. # compilation failed
  11160. lt_cv_dlopen_self=no
  11161. fi
  11162. fi
  11163. rm -fr conftest*
  11164. fi
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11166. $as_echo "$lt_cv_dlopen_self" >&6; }
  11167. if test yes = "$lt_cv_dlopen_self"; then
  11168. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11170. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11171. if ${lt_cv_dlopen_self_static+:} false; then :
  11172. $as_echo_n "(cached) " >&6
  11173. else
  11174. if test yes = "$cross_compiling"; then :
  11175. lt_cv_dlopen_self_static=cross
  11176. else
  11177. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11178. lt_status=$lt_dlunknown
  11179. cat > conftest.$ac_ext <<_LT_EOF
  11180. #line $LINENO "configure"
  11181. #include "confdefs.h"
  11182. #if HAVE_DLFCN_H
  11183. #include <dlfcn.h>
  11184. #endif
  11185. #include <stdio.h>
  11186. #ifdef RTLD_GLOBAL
  11187. # define LT_DLGLOBAL RTLD_GLOBAL
  11188. #else
  11189. # ifdef DL_GLOBAL
  11190. # define LT_DLGLOBAL DL_GLOBAL
  11191. # else
  11192. # define LT_DLGLOBAL 0
  11193. # endif
  11194. #endif
  11195. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11196. find out it does not work in some platform. */
  11197. #ifndef LT_DLLAZY_OR_NOW
  11198. # ifdef RTLD_LAZY
  11199. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11200. # else
  11201. # ifdef DL_LAZY
  11202. # define LT_DLLAZY_OR_NOW DL_LAZY
  11203. # else
  11204. # ifdef RTLD_NOW
  11205. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11206. # else
  11207. # ifdef DL_NOW
  11208. # define LT_DLLAZY_OR_NOW DL_NOW
  11209. # else
  11210. # define LT_DLLAZY_OR_NOW 0
  11211. # endif
  11212. # endif
  11213. # endif
  11214. # endif
  11215. #endif
  11216. /* When -fvisibility=hidden is used, assume the code has been annotated
  11217. correspondingly for the symbols needed. */
  11218. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11219. int fnord () __attribute__((visibility("default")));
  11220. #endif
  11221. int fnord () { return 42; }
  11222. int main ()
  11223. {
  11224. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11225. int status = $lt_dlunknown;
  11226. if (self)
  11227. {
  11228. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11229. else
  11230. {
  11231. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11232. else puts (dlerror ());
  11233. }
  11234. /* dlclose (self); */
  11235. }
  11236. else
  11237. puts (dlerror ());
  11238. return status;
  11239. }
  11240. _LT_EOF
  11241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11242. (eval $ac_link) 2>&5
  11243. ac_status=$?
  11244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11245. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11246. (./conftest; exit; ) >&5 2>/dev/null
  11247. lt_status=$?
  11248. case x$lt_status in
  11249. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11250. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11251. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11252. esac
  11253. else :
  11254. # compilation failed
  11255. lt_cv_dlopen_self_static=no
  11256. fi
  11257. fi
  11258. rm -fr conftest*
  11259. fi
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11261. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11262. fi
  11263. CPPFLAGS=$save_CPPFLAGS
  11264. LDFLAGS=$save_LDFLAGS
  11265. LIBS=$save_LIBS
  11266. ;;
  11267. esac
  11268. case $lt_cv_dlopen_self in
  11269. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11270. *) enable_dlopen_self=unknown ;;
  11271. esac
  11272. case $lt_cv_dlopen_self_static in
  11273. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11274. *) enable_dlopen_self_static=unknown ;;
  11275. esac
  11276. fi
  11277. striplib=
  11278. old_striplib=
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11280. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11281. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11282. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11283. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11285. $as_echo "yes" >&6; }
  11286. else
  11287. # FIXME - insert some real tests, host_os isn't really good enough
  11288. case $host_os in
  11289. darwin*)
  11290. if test -n "$STRIP"; then
  11291. striplib="$STRIP -x"
  11292. old_striplib="$STRIP -S"
  11293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11294. $as_echo "yes" >&6; }
  11295. else
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11297. $as_echo "no" >&6; }
  11298. fi
  11299. ;;
  11300. *)
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11302. $as_echo "no" >&6; }
  11303. ;;
  11304. esac
  11305. fi
  11306. # Report what library types will actually be built
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11308. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11310. $as_echo "$can_build_shared" >&6; }
  11311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11312. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11313. test no = "$can_build_shared" && enable_shared=no
  11314. # On AIX, shared libraries and static libraries use the same namespace, and
  11315. # are all built from PIC.
  11316. case $host_os in
  11317. aix3*)
  11318. test yes = "$enable_shared" && enable_static=no
  11319. if test -n "$RANLIB"; then
  11320. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11321. postinstall_cmds='$RANLIB $lib'
  11322. fi
  11323. ;;
  11324. aix[4-9]*)
  11325. if test ia64 != "$host_cpu"; then
  11326. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11327. yes,aix,yes) ;; # shared object as lib.so file only
  11328. yes,svr4,*) ;; # shared object as lib.so archive member only
  11329. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11330. esac
  11331. fi
  11332. ;;
  11333. esac
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11335. $as_echo "$enable_shared" >&6; }
  11336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11337. $as_echo_n "checking whether to build static libraries... " >&6; }
  11338. # Make sure either enable_shared or enable_static is yes.
  11339. test yes = "$enable_shared" || enable_static=yes
  11340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11341. $as_echo "$enable_static" >&6; }
  11342. fi
  11343. ac_ext=c
  11344. ac_cpp='$CPP $CPPFLAGS'
  11345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11348. CC=$lt_save_CC
  11349. ac_config_commands="$ac_config_commands libtool"
  11350. # Only expand once:
  11351. ac_ext=c
  11352. ac_cpp='$CPP $CPPFLAGS'
  11353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11356. if test -n "$ac_tool_prefix"; then
  11357. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11358. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11360. $as_echo_n "checking for $ac_word... " >&6; }
  11361. if ${ac_cv_prog_CC+:} false; then :
  11362. $as_echo_n "(cached) " >&6
  11363. else
  11364. if test -n "$CC"; then
  11365. ac_cv_prog_CC="$CC" # Let the user override the test.
  11366. else
  11367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11368. for as_dir in $PATH
  11369. do
  11370. IFS=$as_save_IFS
  11371. test -z "$as_dir" && as_dir=.
  11372. for ac_exec_ext in '' $ac_executable_extensions; do
  11373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11374. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11376. break 2
  11377. fi
  11378. done
  11379. done
  11380. IFS=$as_save_IFS
  11381. fi
  11382. fi
  11383. CC=$ac_cv_prog_CC
  11384. if test -n "$CC"; then
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11386. $as_echo "$CC" >&6; }
  11387. else
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11389. $as_echo "no" >&6; }
  11390. fi
  11391. fi
  11392. if test -z "$ac_cv_prog_CC"; then
  11393. ac_ct_CC=$CC
  11394. # Extract the first word of "gcc", so it can be a program name with args.
  11395. set dummy gcc; ac_word=$2
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11397. $as_echo_n "checking for $ac_word... " >&6; }
  11398. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. if test -n "$ac_ct_CC"; then
  11402. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11403. else
  11404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11405. for as_dir in $PATH
  11406. do
  11407. IFS=$as_save_IFS
  11408. test -z "$as_dir" && as_dir=.
  11409. for ac_exec_ext in '' $ac_executable_extensions; do
  11410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11411. ac_cv_prog_ac_ct_CC="gcc"
  11412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11413. break 2
  11414. fi
  11415. done
  11416. done
  11417. IFS=$as_save_IFS
  11418. fi
  11419. fi
  11420. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11421. if test -n "$ac_ct_CC"; then
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11423. $as_echo "$ac_ct_CC" >&6; }
  11424. else
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11426. $as_echo "no" >&6; }
  11427. fi
  11428. if test "x$ac_ct_CC" = x; then
  11429. CC=""
  11430. else
  11431. case $cross_compiling:$ac_tool_warned in
  11432. yes:)
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11434. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11435. ac_tool_warned=yes ;;
  11436. esac
  11437. CC=$ac_ct_CC
  11438. fi
  11439. else
  11440. CC="$ac_cv_prog_CC"
  11441. fi
  11442. if test -z "$CC"; then
  11443. if test -n "$ac_tool_prefix"; then
  11444. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11445. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11447. $as_echo_n "checking for $ac_word... " >&6; }
  11448. if ${ac_cv_prog_CC+:} false; then :
  11449. $as_echo_n "(cached) " >&6
  11450. else
  11451. if test -n "$CC"; then
  11452. ac_cv_prog_CC="$CC" # Let the user override the test.
  11453. else
  11454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11455. for as_dir in $PATH
  11456. do
  11457. IFS=$as_save_IFS
  11458. test -z "$as_dir" && as_dir=.
  11459. for ac_exec_ext in '' $ac_executable_extensions; do
  11460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11461. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11463. break 2
  11464. fi
  11465. done
  11466. done
  11467. IFS=$as_save_IFS
  11468. fi
  11469. fi
  11470. CC=$ac_cv_prog_CC
  11471. if test -n "$CC"; then
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11473. $as_echo "$CC" >&6; }
  11474. else
  11475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11476. $as_echo "no" >&6; }
  11477. fi
  11478. fi
  11479. fi
  11480. if test -z "$CC"; then
  11481. # Extract the first word of "cc", so it can be a program name with args.
  11482. set dummy cc; ac_word=$2
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11484. $as_echo_n "checking for $ac_word... " >&6; }
  11485. if ${ac_cv_prog_CC+:} false; then :
  11486. $as_echo_n "(cached) " >&6
  11487. else
  11488. if test -n "$CC"; then
  11489. ac_cv_prog_CC="$CC" # Let the user override the test.
  11490. else
  11491. ac_prog_rejected=no
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. test -z "$as_dir" && as_dir=.
  11497. for ac_exec_ext in '' $ac_executable_extensions; do
  11498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11499. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11500. ac_prog_rejected=yes
  11501. continue
  11502. fi
  11503. ac_cv_prog_CC="cc"
  11504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11505. break 2
  11506. fi
  11507. done
  11508. done
  11509. IFS=$as_save_IFS
  11510. if test $ac_prog_rejected = yes; then
  11511. # We found a bogon in the path, so make sure we never use it.
  11512. set dummy $ac_cv_prog_CC
  11513. shift
  11514. if test $# != 0; then
  11515. # We chose a different compiler from the bogus one.
  11516. # However, it has the same basename, so the bogon will be chosen
  11517. # first if we set CC to just the basename; use the full file name.
  11518. shift
  11519. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11520. fi
  11521. fi
  11522. fi
  11523. fi
  11524. CC=$ac_cv_prog_CC
  11525. if test -n "$CC"; then
  11526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11527. $as_echo "$CC" >&6; }
  11528. else
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11530. $as_echo "no" >&6; }
  11531. fi
  11532. fi
  11533. if test -z "$CC"; then
  11534. if test -n "$ac_tool_prefix"; then
  11535. for ac_prog in cl.exe
  11536. do
  11537. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11538. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11540. $as_echo_n "checking for $ac_word... " >&6; }
  11541. if ${ac_cv_prog_CC+:} false; then :
  11542. $as_echo_n "(cached) " >&6
  11543. else
  11544. if test -n "$CC"; then
  11545. ac_cv_prog_CC="$CC" # Let the user override the test.
  11546. else
  11547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11548. for as_dir in $PATH
  11549. do
  11550. IFS=$as_save_IFS
  11551. test -z "$as_dir" && as_dir=.
  11552. for ac_exec_ext in '' $ac_executable_extensions; do
  11553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11554. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11556. break 2
  11557. fi
  11558. done
  11559. done
  11560. IFS=$as_save_IFS
  11561. fi
  11562. fi
  11563. CC=$ac_cv_prog_CC
  11564. if test -n "$CC"; then
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11566. $as_echo "$CC" >&6; }
  11567. else
  11568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11569. $as_echo "no" >&6; }
  11570. fi
  11571. test -n "$CC" && break
  11572. done
  11573. fi
  11574. if test -z "$CC"; then
  11575. ac_ct_CC=$CC
  11576. for ac_prog in cl.exe
  11577. do
  11578. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11579. set dummy $ac_prog; ac_word=$2
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11581. $as_echo_n "checking for $ac_word... " >&6; }
  11582. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11583. $as_echo_n "(cached) " >&6
  11584. else
  11585. if test -n "$ac_ct_CC"; then
  11586. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11587. else
  11588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11589. for as_dir in $PATH
  11590. do
  11591. IFS=$as_save_IFS
  11592. test -z "$as_dir" && as_dir=.
  11593. for ac_exec_ext in '' $ac_executable_extensions; do
  11594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11595. ac_cv_prog_ac_ct_CC="$ac_prog"
  11596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11597. break 2
  11598. fi
  11599. done
  11600. done
  11601. IFS=$as_save_IFS
  11602. fi
  11603. fi
  11604. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11605. if test -n "$ac_ct_CC"; then
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11607. $as_echo "$ac_ct_CC" >&6; }
  11608. else
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11610. $as_echo "no" >&6; }
  11611. fi
  11612. test -n "$ac_ct_CC" && break
  11613. done
  11614. if test "x$ac_ct_CC" = x; then
  11615. CC=""
  11616. else
  11617. case $cross_compiling:$ac_tool_warned in
  11618. yes:)
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11621. ac_tool_warned=yes ;;
  11622. esac
  11623. CC=$ac_ct_CC
  11624. fi
  11625. fi
  11626. fi
  11627. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11628. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11629. as_fn_error $? "no acceptable C compiler found in \$PATH
  11630. See \`config.log' for more details" "$LINENO" 5; }
  11631. # Provide some information about the compiler.
  11632. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11633. set X $ac_compile
  11634. ac_compiler=$2
  11635. for ac_option in --version -v -V -qversion; do
  11636. { { ac_try="$ac_compiler $ac_option >&5"
  11637. case "(($ac_try" in
  11638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11639. *) ac_try_echo=$ac_try;;
  11640. esac
  11641. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11642. $as_echo "$ac_try_echo"; } >&5
  11643. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11644. ac_status=$?
  11645. if test -s conftest.err; then
  11646. sed '10a\
  11647. ... rest of stderr output deleted ...
  11648. 10q' conftest.err >conftest.er1
  11649. cat conftest.er1 >&5
  11650. fi
  11651. rm -f conftest.er1 conftest.err
  11652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11653. test $ac_status = 0; }
  11654. done
  11655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11656. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11657. if ${ac_cv_c_compiler_gnu+:} false; then :
  11658. $as_echo_n "(cached) " >&6
  11659. else
  11660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11661. /* end confdefs.h. */
  11662. int
  11663. main ()
  11664. {
  11665. #ifndef __GNUC__
  11666. choke me
  11667. #endif
  11668. ;
  11669. return 0;
  11670. }
  11671. _ACEOF
  11672. if ac_fn_c_try_compile "$LINENO"; then :
  11673. ac_compiler_gnu=yes
  11674. else
  11675. ac_compiler_gnu=no
  11676. fi
  11677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11678. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11679. fi
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11681. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11682. if test $ac_compiler_gnu = yes; then
  11683. GCC=yes
  11684. else
  11685. GCC=
  11686. fi
  11687. ac_test_CFLAGS=${CFLAGS+set}
  11688. ac_save_CFLAGS=$CFLAGS
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11690. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11691. if ${ac_cv_prog_cc_g+:} false; then :
  11692. $as_echo_n "(cached) " >&6
  11693. else
  11694. ac_save_c_werror_flag=$ac_c_werror_flag
  11695. ac_c_werror_flag=yes
  11696. ac_cv_prog_cc_g=no
  11697. CFLAGS="-g"
  11698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11699. /* end confdefs.h. */
  11700. int
  11701. main ()
  11702. {
  11703. ;
  11704. return 0;
  11705. }
  11706. _ACEOF
  11707. if ac_fn_c_try_compile "$LINENO"; then :
  11708. ac_cv_prog_cc_g=yes
  11709. else
  11710. CFLAGS=""
  11711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11712. /* end confdefs.h. */
  11713. int
  11714. main ()
  11715. {
  11716. ;
  11717. return 0;
  11718. }
  11719. _ACEOF
  11720. if ac_fn_c_try_compile "$LINENO"; then :
  11721. else
  11722. ac_c_werror_flag=$ac_save_c_werror_flag
  11723. CFLAGS="-g"
  11724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11725. /* end confdefs.h. */
  11726. int
  11727. main ()
  11728. {
  11729. ;
  11730. return 0;
  11731. }
  11732. _ACEOF
  11733. if ac_fn_c_try_compile "$LINENO"; then :
  11734. ac_cv_prog_cc_g=yes
  11735. fi
  11736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11737. fi
  11738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11739. fi
  11740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11741. ac_c_werror_flag=$ac_save_c_werror_flag
  11742. fi
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11744. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11745. if test "$ac_test_CFLAGS" = set; then
  11746. CFLAGS=$ac_save_CFLAGS
  11747. elif test $ac_cv_prog_cc_g = yes; then
  11748. if test "$GCC" = yes; then
  11749. CFLAGS="-g -O2"
  11750. else
  11751. CFLAGS="-g"
  11752. fi
  11753. else
  11754. if test "$GCC" = yes; then
  11755. CFLAGS="-O2"
  11756. else
  11757. CFLAGS=
  11758. fi
  11759. fi
  11760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11761. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11762. if ${ac_cv_prog_cc_c89+:} false; then :
  11763. $as_echo_n "(cached) " >&6
  11764. else
  11765. ac_cv_prog_cc_c89=no
  11766. ac_save_CC=$CC
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. #include <stdarg.h>
  11770. #include <stdio.h>
  11771. struct stat;
  11772. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11773. struct buf { int x; };
  11774. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11775. static char *e (p, i)
  11776. char **p;
  11777. int i;
  11778. {
  11779. return p[i];
  11780. }
  11781. static char *f (char * (*g) (char **, int), char **p, ...)
  11782. {
  11783. char *s;
  11784. va_list v;
  11785. va_start (v,p);
  11786. s = g (p, va_arg (v,int));
  11787. va_end (v);
  11788. return s;
  11789. }
  11790. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11791. function prototypes and stuff, but not '\xHH' hex character constants.
  11792. These don't provoke an error unfortunately, instead are silently treated
  11793. as 'x'. The following induces an error, until -std is added to get
  11794. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11795. array size at least. It's necessary to write '\x00'==0 to get something
  11796. that's true only with -std. */
  11797. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11798. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11799. inside strings and character constants. */
  11800. #define FOO(x) 'x'
  11801. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11802. int test (int i, double x);
  11803. struct s1 {int (*f) (int a);};
  11804. struct s2 {int (*f) (double a);};
  11805. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11806. int argc;
  11807. char **argv;
  11808. int
  11809. main ()
  11810. {
  11811. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11812. ;
  11813. return 0;
  11814. }
  11815. _ACEOF
  11816. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11817. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11818. do
  11819. CC="$ac_save_CC $ac_arg"
  11820. if ac_fn_c_try_compile "$LINENO"; then :
  11821. ac_cv_prog_cc_c89=$ac_arg
  11822. fi
  11823. rm -f core conftest.err conftest.$ac_objext
  11824. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11825. done
  11826. rm -f conftest.$ac_ext
  11827. CC=$ac_save_CC
  11828. fi
  11829. # AC_CACHE_VAL
  11830. case "x$ac_cv_prog_cc_c89" in
  11831. x)
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11833. $as_echo "none needed" >&6; } ;;
  11834. xno)
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11836. $as_echo "unsupported" >&6; } ;;
  11837. *)
  11838. CC="$CC $ac_cv_prog_cc_c89"
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11840. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11841. esac
  11842. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11843. fi
  11844. ac_ext=c
  11845. ac_cpp='$CPP $CPPFLAGS'
  11846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11849. ac_ext=c
  11850. ac_cpp='$CPP $CPPFLAGS'
  11851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11855. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11856. if ${am_cv_prog_cc_c_o+:} false; then :
  11857. $as_echo_n "(cached) " >&6
  11858. else
  11859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11860. /* end confdefs.h. */
  11861. int
  11862. main ()
  11863. {
  11864. ;
  11865. return 0;
  11866. }
  11867. _ACEOF
  11868. # Make sure it works both with $CC and with simple cc.
  11869. # Following AC_PROG_CC_C_O, we do the test twice because some
  11870. # compilers refuse to overwrite an existing .o file with -o,
  11871. # though they will create one.
  11872. am_cv_prog_cc_c_o=yes
  11873. for am_i in 1 2; do
  11874. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11875. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11876. ac_status=$?
  11877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11878. (exit $ac_status); } \
  11879. && test -f conftest2.$ac_objext; then
  11880. : OK
  11881. else
  11882. am_cv_prog_cc_c_o=no
  11883. break
  11884. fi
  11885. done
  11886. rm -f core conftest*
  11887. unset am_i
  11888. fi
  11889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11890. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11891. if test "$am_cv_prog_cc_c_o" != yes; then
  11892. # Losing compiler, so override with the script.
  11893. # FIXME: It is wrong to rewrite CC.
  11894. # But if we don't then we get into trouble of one sort or another.
  11895. # A longer-term fix would be to have automake use am__CC in this case,
  11896. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11897. CC="$am_aux_dir/compile $CC"
  11898. fi
  11899. ac_ext=c
  11900. ac_cpp='$CPP $CPPFLAGS'
  11901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11904. depcc="$CC" am_compiler_list=
  11905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11906. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11907. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11908. $as_echo_n "(cached) " >&6
  11909. else
  11910. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11911. # We make a subdir and do the tests there. Otherwise we can end up
  11912. # making bogus files that we don't know about and never remove. For
  11913. # instance it was reported that on HP-UX the gcc test will end up
  11914. # making a dummy file named 'D' -- because '-MD' means "put the output
  11915. # in D".
  11916. rm -rf conftest.dir
  11917. mkdir conftest.dir
  11918. # Copy depcomp to subdir because otherwise we won't find it if we're
  11919. # using a relative directory.
  11920. cp "$am_depcomp" conftest.dir
  11921. cd conftest.dir
  11922. # We will build objects and dependencies in a subdirectory because
  11923. # it helps to detect inapplicable dependency modes. For instance
  11924. # both Tru64's cc and ICC support -MD to output dependencies as a
  11925. # side effect of compilation, but ICC will put the dependencies in
  11926. # the current directory while Tru64 will put them in the object
  11927. # directory.
  11928. mkdir sub
  11929. am_cv_CC_dependencies_compiler_type=none
  11930. if test "$am_compiler_list" = ""; then
  11931. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11932. fi
  11933. am__universal=false
  11934. case " $depcc " in #(
  11935. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11936. esac
  11937. for depmode in $am_compiler_list; do
  11938. # Setup a source with many dependencies, because some compilers
  11939. # like to wrap large dependency lists on column 80 (with \), and
  11940. # we should not choose a depcomp mode which is confused by this.
  11941. #
  11942. # We need to recreate these files for each test, as the compiler may
  11943. # overwrite some of them when testing with obscure command lines.
  11944. # This happens at least with the AIX C compiler.
  11945. : > sub/conftest.c
  11946. for i in 1 2 3 4 5 6; do
  11947. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11948. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11949. # Solaris 10 /bin/sh.
  11950. echo '/* dummy */' > sub/conftst$i.h
  11951. done
  11952. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11953. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11954. # mode. It turns out that the SunPro C++ compiler does not properly
  11955. # handle '-M -o', and we need to detect this. Also, some Intel
  11956. # versions had trouble with output in subdirs.
  11957. am__obj=sub/conftest.${OBJEXT-o}
  11958. am__minus_obj="-o $am__obj"
  11959. case $depmode in
  11960. gcc)
  11961. # This depmode causes a compiler race in universal mode.
  11962. test "$am__universal" = false || continue
  11963. ;;
  11964. nosideeffect)
  11965. # After this tag, mechanisms are not by side-effect, so they'll
  11966. # only be used when explicitly requested.
  11967. if test "x$enable_dependency_tracking" = xyes; then
  11968. continue
  11969. else
  11970. break
  11971. fi
  11972. ;;
  11973. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11974. # This compiler won't grok '-c -o', but also, the minuso test has
  11975. # not run yet. These depmodes are late enough in the game, and
  11976. # so weak that their functioning should not be impacted.
  11977. am__obj=conftest.${OBJEXT-o}
  11978. am__minus_obj=
  11979. ;;
  11980. none) break ;;
  11981. esac
  11982. if depmode=$depmode \
  11983. source=sub/conftest.c object=$am__obj \
  11984. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11985. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11986. >/dev/null 2>conftest.err &&
  11987. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11988. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11989. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11990. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11991. # icc doesn't choke on unknown options, it will just issue warnings
  11992. # or remarks (even with -Werror). So we grep stderr for any message
  11993. # that says an option was ignored or not supported.
  11994. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11995. # icc: Command line warning: ignoring option '-M'; no argument required
  11996. # The diagnosis changed in icc 8.0:
  11997. # icc: Command line remark: option '-MP' not supported
  11998. if (grep 'ignoring option' conftest.err ||
  11999. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12000. am_cv_CC_dependencies_compiler_type=$depmode
  12001. break
  12002. fi
  12003. fi
  12004. done
  12005. cd ..
  12006. rm -rf conftest.dir
  12007. else
  12008. am_cv_CC_dependencies_compiler_type=none
  12009. fi
  12010. fi
  12011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12012. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12013. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12014. if
  12015. test "x$enable_dependency_tracking" != xno \
  12016. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12017. am__fastdepCC_TRUE=
  12018. am__fastdepCC_FALSE='#'
  12019. else
  12020. am__fastdepCC_TRUE='#'
  12021. am__fastdepCC_FALSE=
  12022. fi
  12023. ac_ext=cpp
  12024. ac_cpp='$CXXCPP $CPPFLAGS'
  12025. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12026. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12027. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12028. if test -z "$CXX"; then
  12029. if test -n "$CCC"; then
  12030. CXX=$CCC
  12031. else
  12032. if test -n "$ac_tool_prefix"; then
  12033. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12034. do
  12035. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12036. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12038. $as_echo_n "checking for $ac_word... " >&6; }
  12039. if ${ac_cv_prog_CXX+:} false; then :
  12040. $as_echo_n "(cached) " >&6
  12041. else
  12042. if test -n "$CXX"; then
  12043. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12044. else
  12045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12046. for as_dir in $PATH
  12047. do
  12048. IFS=$as_save_IFS
  12049. test -z "$as_dir" && as_dir=.
  12050. for ac_exec_ext in '' $ac_executable_extensions; do
  12051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12052. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12054. break 2
  12055. fi
  12056. done
  12057. done
  12058. IFS=$as_save_IFS
  12059. fi
  12060. fi
  12061. CXX=$ac_cv_prog_CXX
  12062. if test -n "$CXX"; then
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12064. $as_echo "$CXX" >&6; }
  12065. else
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12067. $as_echo "no" >&6; }
  12068. fi
  12069. test -n "$CXX" && break
  12070. done
  12071. fi
  12072. if test -z "$CXX"; then
  12073. ac_ct_CXX=$CXX
  12074. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12075. do
  12076. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12077. set dummy $ac_prog; ac_word=$2
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12079. $as_echo_n "checking for $ac_word... " >&6; }
  12080. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12081. $as_echo_n "(cached) " >&6
  12082. else
  12083. if test -n "$ac_ct_CXX"; then
  12084. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12085. else
  12086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12087. for as_dir in $PATH
  12088. do
  12089. IFS=$as_save_IFS
  12090. test -z "$as_dir" && as_dir=.
  12091. for ac_exec_ext in '' $ac_executable_extensions; do
  12092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12093. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12095. break 2
  12096. fi
  12097. done
  12098. done
  12099. IFS=$as_save_IFS
  12100. fi
  12101. fi
  12102. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12103. if test -n "$ac_ct_CXX"; then
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12105. $as_echo "$ac_ct_CXX" >&6; }
  12106. else
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12108. $as_echo "no" >&6; }
  12109. fi
  12110. test -n "$ac_ct_CXX" && break
  12111. done
  12112. if test "x$ac_ct_CXX" = x; then
  12113. CXX="g++"
  12114. else
  12115. case $cross_compiling:$ac_tool_warned in
  12116. yes:)
  12117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12118. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12119. ac_tool_warned=yes ;;
  12120. esac
  12121. CXX=$ac_ct_CXX
  12122. fi
  12123. fi
  12124. fi
  12125. fi
  12126. # Provide some information about the compiler.
  12127. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12128. set X $ac_compile
  12129. ac_compiler=$2
  12130. for ac_option in --version -v -V -qversion; do
  12131. { { ac_try="$ac_compiler $ac_option >&5"
  12132. case "(($ac_try" in
  12133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12134. *) ac_try_echo=$ac_try;;
  12135. esac
  12136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12137. $as_echo "$ac_try_echo"; } >&5
  12138. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12139. ac_status=$?
  12140. if test -s conftest.err; then
  12141. sed '10a\
  12142. ... rest of stderr output deleted ...
  12143. 10q' conftest.err >conftest.er1
  12144. cat conftest.er1 >&5
  12145. fi
  12146. rm -f conftest.er1 conftest.err
  12147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12148. test $ac_status = 0; }
  12149. done
  12150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12151. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12152. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12153. $as_echo_n "(cached) " >&6
  12154. else
  12155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12156. /* end confdefs.h. */
  12157. int
  12158. main ()
  12159. {
  12160. #ifndef __GNUC__
  12161. choke me
  12162. #endif
  12163. ;
  12164. return 0;
  12165. }
  12166. _ACEOF
  12167. if ac_fn_cxx_try_compile "$LINENO"; then :
  12168. ac_compiler_gnu=yes
  12169. else
  12170. ac_compiler_gnu=no
  12171. fi
  12172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12173. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12174. fi
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12176. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12177. if test $ac_compiler_gnu = yes; then
  12178. GXX=yes
  12179. else
  12180. GXX=
  12181. fi
  12182. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12183. ac_save_CXXFLAGS=$CXXFLAGS
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12185. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12186. if ${ac_cv_prog_cxx_g+:} false; then :
  12187. $as_echo_n "(cached) " >&6
  12188. else
  12189. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12190. ac_cxx_werror_flag=yes
  12191. ac_cv_prog_cxx_g=no
  12192. CXXFLAGS="-g"
  12193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12194. /* end confdefs.h. */
  12195. int
  12196. main ()
  12197. {
  12198. ;
  12199. return 0;
  12200. }
  12201. _ACEOF
  12202. if ac_fn_cxx_try_compile "$LINENO"; then :
  12203. ac_cv_prog_cxx_g=yes
  12204. else
  12205. CXXFLAGS=""
  12206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12207. /* end confdefs.h. */
  12208. int
  12209. main ()
  12210. {
  12211. ;
  12212. return 0;
  12213. }
  12214. _ACEOF
  12215. if ac_fn_cxx_try_compile "$LINENO"; then :
  12216. else
  12217. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12218. CXXFLAGS="-g"
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. int
  12222. main ()
  12223. {
  12224. ;
  12225. return 0;
  12226. }
  12227. _ACEOF
  12228. if ac_fn_cxx_try_compile "$LINENO"; then :
  12229. ac_cv_prog_cxx_g=yes
  12230. fi
  12231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12232. fi
  12233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12234. fi
  12235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12236. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12237. fi
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12239. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12240. if test "$ac_test_CXXFLAGS" = set; then
  12241. CXXFLAGS=$ac_save_CXXFLAGS
  12242. elif test $ac_cv_prog_cxx_g = yes; then
  12243. if test "$GXX" = yes; then
  12244. CXXFLAGS="-g -O2"
  12245. else
  12246. CXXFLAGS="-g"
  12247. fi
  12248. else
  12249. if test "$GXX" = yes; then
  12250. CXXFLAGS="-O2"
  12251. else
  12252. CXXFLAGS=
  12253. fi
  12254. fi
  12255. ac_ext=c
  12256. ac_cpp='$CPP $CPPFLAGS'
  12257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12260. depcc="$CXX" am_compiler_list=
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12262. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12263. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12264. $as_echo_n "(cached) " >&6
  12265. else
  12266. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12267. # We make a subdir and do the tests there. Otherwise we can end up
  12268. # making bogus files that we don't know about and never remove. For
  12269. # instance it was reported that on HP-UX the gcc test will end up
  12270. # making a dummy file named 'D' -- because '-MD' means "put the output
  12271. # in D".
  12272. rm -rf conftest.dir
  12273. mkdir conftest.dir
  12274. # Copy depcomp to subdir because otherwise we won't find it if we're
  12275. # using a relative directory.
  12276. cp "$am_depcomp" conftest.dir
  12277. cd conftest.dir
  12278. # We will build objects and dependencies in a subdirectory because
  12279. # it helps to detect inapplicable dependency modes. For instance
  12280. # both Tru64's cc and ICC support -MD to output dependencies as a
  12281. # side effect of compilation, but ICC will put the dependencies in
  12282. # the current directory while Tru64 will put them in the object
  12283. # directory.
  12284. mkdir sub
  12285. am_cv_CXX_dependencies_compiler_type=none
  12286. if test "$am_compiler_list" = ""; then
  12287. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12288. fi
  12289. am__universal=false
  12290. case " $depcc " in #(
  12291. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12292. esac
  12293. for depmode in $am_compiler_list; do
  12294. # Setup a source with many dependencies, because some compilers
  12295. # like to wrap large dependency lists on column 80 (with \), and
  12296. # we should not choose a depcomp mode which is confused by this.
  12297. #
  12298. # We need to recreate these files for each test, as the compiler may
  12299. # overwrite some of them when testing with obscure command lines.
  12300. # This happens at least with the AIX C compiler.
  12301. : > sub/conftest.c
  12302. for i in 1 2 3 4 5 6; do
  12303. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12304. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12305. # Solaris 10 /bin/sh.
  12306. echo '/* dummy */' > sub/conftst$i.h
  12307. done
  12308. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12309. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12310. # mode. It turns out that the SunPro C++ compiler does not properly
  12311. # handle '-M -o', and we need to detect this. Also, some Intel
  12312. # versions had trouble with output in subdirs.
  12313. am__obj=sub/conftest.${OBJEXT-o}
  12314. am__minus_obj="-o $am__obj"
  12315. case $depmode in
  12316. gcc)
  12317. # This depmode causes a compiler race in universal mode.
  12318. test "$am__universal" = false || continue
  12319. ;;
  12320. nosideeffect)
  12321. # After this tag, mechanisms are not by side-effect, so they'll
  12322. # only be used when explicitly requested.
  12323. if test "x$enable_dependency_tracking" = xyes; then
  12324. continue
  12325. else
  12326. break
  12327. fi
  12328. ;;
  12329. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12330. # This compiler won't grok '-c -o', but also, the minuso test has
  12331. # not run yet. These depmodes are late enough in the game, and
  12332. # so weak that their functioning should not be impacted.
  12333. am__obj=conftest.${OBJEXT-o}
  12334. am__minus_obj=
  12335. ;;
  12336. none) break ;;
  12337. esac
  12338. if depmode=$depmode \
  12339. source=sub/conftest.c object=$am__obj \
  12340. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12341. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12342. >/dev/null 2>conftest.err &&
  12343. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12344. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12345. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12346. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12347. # icc doesn't choke on unknown options, it will just issue warnings
  12348. # or remarks (even with -Werror). So we grep stderr for any message
  12349. # that says an option was ignored or not supported.
  12350. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12351. # icc: Command line warning: ignoring option '-M'; no argument required
  12352. # The diagnosis changed in icc 8.0:
  12353. # icc: Command line remark: option '-MP' not supported
  12354. if (grep 'ignoring option' conftest.err ||
  12355. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12356. am_cv_CXX_dependencies_compiler_type=$depmode
  12357. break
  12358. fi
  12359. fi
  12360. done
  12361. cd ..
  12362. rm -rf conftest.dir
  12363. else
  12364. am_cv_CXX_dependencies_compiler_type=none
  12365. fi
  12366. fi
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12368. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12369. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12370. if
  12371. test "x$enable_dependency_tracking" != xno \
  12372. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12373. am__fastdepCXX_TRUE=
  12374. am__fastdepCXX_FALSE='#'
  12375. else
  12376. am__fastdepCXX_TRUE='#'
  12377. am__fastdepCXX_FALSE=
  12378. fi
  12379. func_stripname_cnf ()
  12380. {
  12381. case $2 in
  12382. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12383. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12384. esac
  12385. } # func_stripname_cnf
  12386. if test -n "$CXX" && ( test no != "$CXX" &&
  12387. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12388. (test g++ != "$CXX"))); then
  12389. ac_ext=cpp
  12390. ac_cpp='$CXXCPP $CPPFLAGS'
  12391. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12392. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12393. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12395. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12396. if test -z "$CXXCPP"; then
  12397. if ${ac_cv_prog_CXXCPP+:} false; then :
  12398. $as_echo_n "(cached) " >&6
  12399. else
  12400. # Double quotes because CXXCPP needs to be expanded
  12401. for CXXCPP in "$CXX -E" "/lib/cpp"
  12402. do
  12403. ac_preproc_ok=false
  12404. for ac_cxx_preproc_warn_flag in '' yes
  12405. do
  12406. # Use a header file that comes with gcc, so configuring glibc
  12407. # with a fresh cross-compiler works.
  12408. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12409. # <limits.h> exists even on freestanding compilers.
  12410. # On the NeXT, cc -E runs the code through the compiler's parser,
  12411. # not just through cpp. "Syntax error" is here to catch this case.
  12412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12413. /* end confdefs.h. */
  12414. #ifdef __STDC__
  12415. # include <limits.h>
  12416. #else
  12417. # include <assert.h>
  12418. #endif
  12419. Syntax error
  12420. _ACEOF
  12421. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12422. else
  12423. # Broken: fails on valid input.
  12424. continue
  12425. fi
  12426. rm -f conftest.err conftest.i conftest.$ac_ext
  12427. # OK, works on sane cases. Now check whether nonexistent headers
  12428. # can be detected and how.
  12429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12430. /* end confdefs.h. */
  12431. #include <ac_nonexistent.h>
  12432. _ACEOF
  12433. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12434. # Broken: success on invalid input.
  12435. continue
  12436. else
  12437. # Passes both tests.
  12438. ac_preproc_ok=:
  12439. break
  12440. fi
  12441. rm -f conftest.err conftest.i conftest.$ac_ext
  12442. done
  12443. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12444. rm -f conftest.i conftest.err conftest.$ac_ext
  12445. if $ac_preproc_ok; then :
  12446. break
  12447. fi
  12448. done
  12449. ac_cv_prog_CXXCPP=$CXXCPP
  12450. fi
  12451. CXXCPP=$ac_cv_prog_CXXCPP
  12452. else
  12453. ac_cv_prog_CXXCPP=$CXXCPP
  12454. fi
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12456. $as_echo "$CXXCPP" >&6; }
  12457. ac_preproc_ok=false
  12458. for ac_cxx_preproc_warn_flag in '' yes
  12459. do
  12460. # Use a header file that comes with gcc, so configuring glibc
  12461. # with a fresh cross-compiler works.
  12462. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12463. # <limits.h> exists even on freestanding compilers.
  12464. # On the NeXT, cc -E runs the code through the compiler's parser,
  12465. # not just through cpp. "Syntax error" is here to catch this case.
  12466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12467. /* end confdefs.h. */
  12468. #ifdef __STDC__
  12469. # include <limits.h>
  12470. #else
  12471. # include <assert.h>
  12472. #endif
  12473. Syntax error
  12474. _ACEOF
  12475. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12476. else
  12477. # Broken: fails on valid input.
  12478. continue
  12479. fi
  12480. rm -f conftest.err conftest.i conftest.$ac_ext
  12481. # OK, works on sane cases. Now check whether nonexistent headers
  12482. # can be detected and how.
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. #include <ac_nonexistent.h>
  12486. _ACEOF
  12487. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12488. # Broken: success on invalid input.
  12489. continue
  12490. else
  12491. # Passes both tests.
  12492. ac_preproc_ok=:
  12493. break
  12494. fi
  12495. rm -f conftest.err conftest.i conftest.$ac_ext
  12496. done
  12497. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12498. rm -f conftest.i conftest.err conftest.$ac_ext
  12499. if $ac_preproc_ok; then :
  12500. else
  12501. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12502. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12503. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12504. See \`config.log' for more details" "$LINENO" 5; }
  12505. fi
  12506. ac_ext=c
  12507. ac_cpp='$CPP $CPPFLAGS'
  12508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12511. else
  12512. _lt_caught_CXX_error=yes
  12513. fi
  12514. ac_ext=cpp
  12515. ac_cpp='$CXXCPP $CPPFLAGS'
  12516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12519. archive_cmds_need_lc_CXX=no
  12520. allow_undefined_flag_CXX=
  12521. always_export_symbols_CXX=no
  12522. archive_expsym_cmds_CXX=
  12523. compiler_needs_object_CXX=no
  12524. export_dynamic_flag_spec_CXX=
  12525. hardcode_direct_CXX=no
  12526. hardcode_direct_absolute_CXX=no
  12527. hardcode_libdir_flag_spec_CXX=
  12528. hardcode_libdir_separator_CXX=
  12529. hardcode_minus_L_CXX=no
  12530. hardcode_shlibpath_var_CXX=unsupported
  12531. hardcode_automatic_CXX=no
  12532. inherit_rpath_CXX=no
  12533. module_cmds_CXX=
  12534. module_expsym_cmds_CXX=
  12535. link_all_deplibs_CXX=unknown
  12536. old_archive_cmds_CXX=$old_archive_cmds
  12537. reload_flag_CXX=$reload_flag
  12538. reload_cmds_CXX=$reload_cmds
  12539. no_undefined_flag_CXX=
  12540. whole_archive_flag_spec_CXX=
  12541. enable_shared_with_static_runtimes_CXX=no
  12542. # Source file extension for C++ test sources.
  12543. ac_ext=cpp
  12544. # Object file extension for compiled C++ test sources.
  12545. objext=o
  12546. objext_CXX=$objext
  12547. # No sense in running all these tests if we already determined that
  12548. # the CXX compiler isn't working. Some variables (like enable_shared)
  12549. # are currently assumed to apply to all compilers on this platform,
  12550. # and will be corrupted by setting them based on a non-working compiler.
  12551. if test yes != "$_lt_caught_CXX_error"; then
  12552. # Code to be used in simple compile tests
  12553. lt_simple_compile_test_code="int some_variable = 0;"
  12554. # Code to be used in simple link tests
  12555. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12556. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12557. # If no C compiler was specified, use CC.
  12558. LTCC=${LTCC-"$CC"}
  12559. # If no C compiler flags were specified, use CFLAGS.
  12560. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12561. # Allow CC to be a program name with arguments.
  12562. compiler=$CC
  12563. # save warnings/boilerplate of simple test code
  12564. ac_outfile=conftest.$ac_objext
  12565. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12566. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12567. _lt_compiler_boilerplate=`cat conftest.err`
  12568. $RM conftest*
  12569. ac_outfile=conftest.$ac_objext
  12570. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12571. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12572. _lt_linker_boilerplate=`cat conftest.err`
  12573. $RM -r conftest*
  12574. # Allow CC to be a program name with arguments.
  12575. lt_save_CC=$CC
  12576. lt_save_CFLAGS=$CFLAGS
  12577. lt_save_LD=$LD
  12578. lt_save_GCC=$GCC
  12579. GCC=$GXX
  12580. lt_save_with_gnu_ld=$with_gnu_ld
  12581. lt_save_path_LD=$lt_cv_path_LD
  12582. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12583. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12584. else
  12585. $as_unset lt_cv_prog_gnu_ld
  12586. fi
  12587. if test -n "${lt_cv_path_LDCXX+set}"; then
  12588. lt_cv_path_LD=$lt_cv_path_LDCXX
  12589. else
  12590. $as_unset lt_cv_path_LD
  12591. fi
  12592. test -z "${LDCXX+set}" || LD=$LDCXX
  12593. CC=${CXX-"c++"}
  12594. CFLAGS=$CXXFLAGS
  12595. compiler=$CC
  12596. compiler_CXX=$CC
  12597. func_cc_basename $compiler
  12598. cc_basename=$func_cc_basename_result
  12599. if test -n "$compiler"; then
  12600. # We don't want -fno-exception when compiling C++ code, so set the
  12601. # no_builtin_flag separately
  12602. if test yes = "$GXX"; then
  12603. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12604. else
  12605. lt_prog_compiler_no_builtin_flag_CXX=
  12606. fi
  12607. if test yes = "$GXX"; then
  12608. # Set up default GNU C++ configuration
  12609. # Check whether --with-gnu-ld was given.
  12610. if test "${with_gnu_ld+set}" = set; then :
  12611. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12612. else
  12613. with_gnu_ld=no
  12614. fi
  12615. ac_prog=ld
  12616. if test yes = "$GCC"; then
  12617. # Check if gcc -print-prog-name=ld gives a path.
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12619. $as_echo_n "checking for ld used by $CC... " >&6; }
  12620. case $host in
  12621. *-*-mingw*)
  12622. # gcc leaves a trailing carriage return, which upsets mingw
  12623. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12624. *)
  12625. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12626. esac
  12627. case $ac_prog in
  12628. # Accept absolute paths.
  12629. [\\/]* | ?:[\\/]*)
  12630. re_direlt='/[^/][^/]*/\.\./'
  12631. # Canonicalize the pathname of ld
  12632. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12633. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12634. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12635. done
  12636. test -z "$LD" && LD=$ac_prog
  12637. ;;
  12638. "")
  12639. # If it fails, then pretend we aren't using GCC.
  12640. ac_prog=ld
  12641. ;;
  12642. *)
  12643. # If it is relative, then search for the first ld in PATH.
  12644. with_gnu_ld=unknown
  12645. ;;
  12646. esac
  12647. elif test yes = "$with_gnu_ld"; then
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12649. $as_echo_n "checking for GNU ld... " >&6; }
  12650. else
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12652. $as_echo_n "checking for non-GNU ld... " >&6; }
  12653. fi
  12654. if ${lt_cv_path_LD+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. if test -z "$LD"; then
  12658. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12659. for ac_dir in $PATH; do
  12660. IFS=$lt_save_ifs
  12661. test -z "$ac_dir" && ac_dir=.
  12662. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12663. lt_cv_path_LD=$ac_dir/$ac_prog
  12664. # Check to see if the program is GNU ld. I'd rather use --version,
  12665. # but apparently some variants of GNU ld only accept -v.
  12666. # Break only if it was the GNU/non-GNU ld that we prefer.
  12667. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12668. *GNU* | *'with BFD'*)
  12669. test no != "$with_gnu_ld" && break
  12670. ;;
  12671. *)
  12672. test yes != "$with_gnu_ld" && break
  12673. ;;
  12674. esac
  12675. fi
  12676. done
  12677. IFS=$lt_save_ifs
  12678. else
  12679. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12680. fi
  12681. fi
  12682. LD=$lt_cv_path_LD
  12683. if test -n "$LD"; then
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12685. $as_echo "$LD" >&6; }
  12686. else
  12687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12688. $as_echo "no" >&6; }
  12689. fi
  12690. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12692. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12693. if ${lt_cv_prog_gnu_ld+:} false; then :
  12694. $as_echo_n "(cached) " >&6
  12695. else
  12696. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12697. case `$LD -v 2>&1 </dev/null` in
  12698. *GNU* | *'with BFD'*)
  12699. lt_cv_prog_gnu_ld=yes
  12700. ;;
  12701. *)
  12702. lt_cv_prog_gnu_ld=no
  12703. ;;
  12704. esac
  12705. fi
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12707. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12708. with_gnu_ld=$lt_cv_prog_gnu_ld
  12709. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12710. # archiving commands below assume that GNU ld is being used.
  12711. if test yes = "$with_gnu_ld"; then
  12712. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12713. 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'
  12714. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12715. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12716. # If archive_cmds runs LD, not CC, wlarc should be empty
  12717. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12718. # investigate it a little bit more. (MM)
  12719. wlarc='$wl'
  12720. # ancient GNU ld didn't support --whole-archive et. al.
  12721. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12722. $GREP 'no-whole-archive' > /dev/null; then
  12723. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12724. else
  12725. whole_archive_flag_spec_CXX=
  12726. fi
  12727. else
  12728. with_gnu_ld=no
  12729. wlarc=
  12730. # A generic and very simple default shared library creation
  12731. # command for GNU C++ for the case where it uses the native
  12732. # linker, instead of GNU ld. If possible, this setting should
  12733. # overridden to take advantage of the native linker features on
  12734. # the platform it is being used on.
  12735. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12736. fi
  12737. # Commands to make compiler produce verbose output that lists
  12738. # what "hidden" libraries, object files and flags are used when
  12739. # linking a shared library.
  12740. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12741. else
  12742. GXX=no
  12743. with_gnu_ld=no
  12744. wlarc=
  12745. fi
  12746. # PORTME: fill in a description of your system's C++ link characteristics
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12748. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12749. ld_shlibs_CXX=yes
  12750. case $host_os in
  12751. aix3*)
  12752. # FIXME: insert proper C++ library support
  12753. ld_shlibs_CXX=no
  12754. ;;
  12755. aix[4-9]*)
  12756. if test ia64 = "$host_cpu"; then
  12757. # On IA64, the linker does run time linking by default, so we don't
  12758. # have to do anything special.
  12759. aix_use_runtimelinking=no
  12760. exp_sym_flag='-Bexport'
  12761. no_entry_flag=
  12762. else
  12763. aix_use_runtimelinking=no
  12764. # Test if we are trying to use run time linking or normal
  12765. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12766. # have runtime linking enabled, and use it for executables.
  12767. # For shared libraries, we enable/disable runtime linking
  12768. # depending on the kind of the shared library created -
  12769. # when "with_aix_soname,aix_use_runtimelinking" is:
  12770. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12771. # "aix,yes" lib.so shared, rtl:yes, for executables
  12772. # lib.a static archive
  12773. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12774. # lib.a(lib.so.V) shared, rtl:no, for executables
  12775. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12776. # lib.a(lib.so.V) shared, rtl:no
  12777. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12778. # lib.a static archive
  12779. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12780. for ld_flag in $LDFLAGS; do
  12781. case $ld_flag in
  12782. *-brtl*)
  12783. aix_use_runtimelinking=yes
  12784. break
  12785. ;;
  12786. esac
  12787. done
  12788. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12789. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12790. # so we don't have lib.a shared libs to link our executables.
  12791. # We have to force runtime linking in this case.
  12792. aix_use_runtimelinking=yes
  12793. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12794. fi
  12795. ;;
  12796. esac
  12797. exp_sym_flag='-bexport'
  12798. no_entry_flag='-bnoentry'
  12799. fi
  12800. # When large executables or shared objects are built, AIX ld can
  12801. # have problems creating the table of contents. If linking a library
  12802. # or program results in "error TOC overflow" add -mminimal-toc to
  12803. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12804. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12805. archive_cmds_CXX=''
  12806. hardcode_direct_CXX=yes
  12807. hardcode_direct_absolute_CXX=yes
  12808. hardcode_libdir_separator_CXX=':'
  12809. link_all_deplibs_CXX=yes
  12810. file_list_spec_CXX='$wl-f,'
  12811. case $with_aix_soname,$aix_use_runtimelinking in
  12812. aix,*) ;; # no import file
  12813. svr4,* | *,yes) # use import file
  12814. # The Import File defines what to hardcode.
  12815. hardcode_direct_CXX=no
  12816. hardcode_direct_absolute_CXX=no
  12817. ;;
  12818. esac
  12819. if test yes = "$GXX"; then
  12820. case $host_os in aix4.[012]|aix4.[012].*)
  12821. # We only want to do this on AIX 4.2 and lower, the check
  12822. # below for broken collect2 doesn't work under 4.3+
  12823. collect2name=`$CC -print-prog-name=collect2`
  12824. if test -f "$collect2name" &&
  12825. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12826. then
  12827. # We have reworked collect2
  12828. :
  12829. else
  12830. # We have old collect2
  12831. hardcode_direct_CXX=unsupported
  12832. # It fails to find uninstalled libraries when the uninstalled
  12833. # path is not listed in the libpath. Setting hardcode_minus_L
  12834. # to unsupported forces relinking
  12835. hardcode_minus_L_CXX=yes
  12836. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12837. hardcode_libdir_separator_CXX=
  12838. fi
  12839. esac
  12840. shared_flag='-shared'
  12841. if test yes = "$aix_use_runtimelinking"; then
  12842. shared_flag=$shared_flag' $wl-G'
  12843. fi
  12844. # Need to ensure runtime linking is disabled for the traditional
  12845. # shared library, or the linker may eventually find shared libraries
  12846. # /with/ Import File - we do not want to mix them.
  12847. shared_flag_aix='-shared'
  12848. shared_flag_svr4='-shared $wl-G'
  12849. else
  12850. # not using gcc
  12851. if test ia64 = "$host_cpu"; then
  12852. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12853. # chokes on -Wl,-G. The following line is correct:
  12854. shared_flag='-G'
  12855. else
  12856. if test yes = "$aix_use_runtimelinking"; then
  12857. shared_flag='$wl-G'
  12858. else
  12859. shared_flag='$wl-bM:SRE'
  12860. fi
  12861. shared_flag_aix='$wl-bM:SRE'
  12862. shared_flag_svr4='$wl-G'
  12863. fi
  12864. fi
  12865. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12866. # It seems that -bexpall does not export symbols beginning with
  12867. # underscore (_), so it is better to generate a list of symbols to
  12868. # export.
  12869. always_export_symbols_CXX=yes
  12870. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12871. # Warning - without using the other runtime loading flags (-brtl),
  12872. # -berok will link without error, but may produce a broken library.
  12873. # The "-G" linker flag allows undefined symbols.
  12874. no_undefined_flag_CXX='-bernotok'
  12875. # Determine the default libpath from the value encoded in an empty
  12876. # executable.
  12877. if test set = "${lt_cv_aix_libpath+set}"; then
  12878. aix_libpath=$lt_cv_aix_libpath
  12879. else
  12880. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12881. $as_echo_n "(cached) " >&6
  12882. else
  12883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12884. /* end confdefs.h. */
  12885. int
  12886. main ()
  12887. {
  12888. ;
  12889. return 0;
  12890. }
  12891. _ACEOF
  12892. if ac_fn_cxx_try_link "$LINENO"; then :
  12893. lt_aix_libpath_sed='
  12894. /Import File Strings/,/^$/ {
  12895. /^0/ {
  12896. s/^0 *\([^ ]*\) *$/\1/
  12897. p
  12898. }
  12899. }'
  12900. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12901. # Check for a 64-bit object if we didn't find anything.
  12902. if test -z "$lt_cv_aix_libpath__CXX"; then
  12903. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12904. fi
  12905. fi
  12906. rm -f core conftest.err conftest.$ac_objext \
  12907. conftest$ac_exeext conftest.$ac_ext
  12908. if test -z "$lt_cv_aix_libpath__CXX"; then
  12909. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12910. fi
  12911. fi
  12912. aix_libpath=$lt_cv_aix_libpath__CXX
  12913. fi
  12914. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12915. 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
  12916. else
  12917. if test ia64 = "$host_cpu"; then
  12918. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12919. allow_undefined_flag_CXX="-z nodefs"
  12920. 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"
  12921. else
  12922. # Determine the default libpath from the value encoded in an
  12923. # empty executable.
  12924. if test set = "${lt_cv_aix_libpath+set}"; then
  12925. aix_libpath=$lt_cv_aix_libpath
  12926. else
  12927. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12928. $as_echo_n "(cached) " >&6
  12929. else
  12930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12931. /* end confdefs.h. */
  12932. int
  12933. main ()
  12934. {
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. if ac_fn_cxx_try_link "$LINENO"; then :
  12940. lt_aix_libpath_sed='
  12941. /Import File Strings/,/^$/ {
  12942. /^0/ {
  12943. s/^0 *\([^ ]*\) *$/\1/
  12944. p
  12945. }
  12946. }'
  12947. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12948. # Check for a 64-bit object if we didn't find anything.
  12949. if test -z "$lt_cv_aix_libpath__CXX"; then
  12950. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12951. fi
  12952. fi
  12953. rm -f core conftest.err conftest.$ac_objext \
  12954. conftest$ac_exeext conftest.$ac_ext
  12955. if test -z "$lt_cv_aix_libpath__CXX"; then
  12956. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12957. fi
  12958. fi
  12959. aix_libpath=$lt_cv_aix_libpath__CXX
  12960. fi
  12961. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12962. # Warning - without using the other run time loading flags,
  12963. # -berok will link without error, but may produce a broken library.
  12964. no_undefined_flag_CXX=' $wl-bernotok'
  12965. allow_undefined_flag_CXX=' $wl-berok'
  12966. if test yes = "$with_gnu_ld"; then
  12967. # We only use this code for GNU lds that support --whole-archive.
  12968. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12969. else
  12970. # Exported symbols can be pulled into shared objects from archives
  12971. whole_archive_flag_spec_CXX='$convenience'
  12972. fi
  12973. archive_cmds_need_lc_CXX=yes
  12974. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12975. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12976. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12977. if test svr4 != "$with_aix_soname"; then
  12978. # This is similar to how AIX traditionally builds its shared
  12979. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12980. 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'
  12981. fi
  12982. if test aix != "$with_aix_soname"; then
  12983. 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'
  12984. else
  12985. # used by -dlpreopen to get the symbols
  12986. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12987. fi
  12988. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12989. fi
  12990. fi
  12991. ;;
  12992. beos*)
  12993. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12994. allow_undefined_flag_CXX=unsupported
  12995. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12996. # support --undefined. This deserves some investigation. FIXME
  12997. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12998. else
  12999. ld_shlibs_CXX=no
  13000. fi
  13001. ;;
  13002. chorus*)
  13003. case $cc_basename in
  13004. *)
  13005. # FIXME: insert proper C++ library support
  13006. ld_shlibs_CXX=no
  13007. ;;
  13008. esac
  13009. ;;
  13010. cygwin* | mingw* | pw32* | cegcc*)
  13011. case $GXX,$cc_basename in
  13012. ,cl* | no,cl*)
  13013. # Native MSVC
  13014. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13015. # no search path for DLLs.
  13016. hardcode_libdir_flag_spec_CXX=' '
  13017. allow_undefined_flag_CXX=unsupported
  13018. always_export_symbols_CXX=yes
  13019. file_list_spec_CXX='@'
  13020. # Tell ltmain to make .lib files, not .a files.
  13021. libext=lib
  13022. # Tell ltmain to make .dll files, not .so files.
  13023. shrext_cmds=.dll
  13024. # FIXME: Setting linknames here is a bad hack.
  13025. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13026. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13027. cp "$export_symbols" "$output_objdir/$soname.def";
  13028. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13029. else
  13030. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13031. fi~
  13032. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13033. linknames='
  13034. # The linker will not automatically build a static lib if we build a DLL.
  13035. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13036. enable_shared_with_static_runtimes_CXX=yes
  13037. # Don't use ranlib
  13038. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13039. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13040. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13041. case $lt_outputfile in
  13042. *.exe|*.EXE) ;;
  13043. *)
  13044. lt_outputfile=$lt_outputfile.exe
  13045. lt_tool_outputfile=$lt_tool_outputfile.exe
  13046. ;;
  13047. esac~
  13048. func_to_tool_file "$lt_outputfile"~
  13049. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13050. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13051. $RM "$lt_outputfile.manifest";
  13052. fi'
  13053. ;;
  13054. *)
  13055. # g++
  13056. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13057. # as there is no search path for DLLs.
  13058. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13059. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13060. allow_undefined_flag_CXX=unsupported
  13061. always_export_symbols_CXX=no
  13062. enable_shared_with_static_runtimes_CXX=yes
  13063. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13064. 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'
  13065. # If the export-symbols file already is a .def file, use it as
  13066. # is; otherwise, prepend EXPORTS...
  13067. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13068. cp $export_symbols $output_objdir/$soname.def;
  13069. else
  13070. echo EXPORTS > $output_objdir/$soname.def;
  13071. cat $export_symbols >> $output_objdir/$soname.def;
  13072. fi~
  13073. $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'
  13074. else
  13075. ld_shlibs_CXX=no
  13076. fi
  13077. ;;
  13078. esac
  13079. ;;
  13080. darwin* | rhapsody*)
  13081. archive_cmds_need_lc_CXX=no
  13082. hardcode_direct_CXX=no
  13083. hardcode_automatic_CXX=yes
  13084. hardcode_shlibpath_var_CXX=unsupported
  13085. if test yes = "$lt_cv_ld_force_load"; then
  13086. 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\"`'
  13087. else
  13088. whole_archive_flag_spec_CXX=''
  13089. fi
  13090. link_all_deplibs_CXX=yes
  13091. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13092. case $cc_basename in
  13093. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13094. *) _lt_dar_can_shared=$GCC ;;
  13095. esac
  13096. if test yes = "$_lt_dar_can_shared"; then
  13097. output_verbose_link_cmd=func_echo_all
  13098. 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"
  13099. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13100. 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"
  13101. 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"
  13102. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13103. 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"
  13104. 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"
  13105. fi
  13106. else
  13107. ld_shlibs_CXX=no
  13108. fi
  13109. ;;
  13110. os2*)
  13111. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13112. hardcode_minus_L_CXX=yes
  13113. allow_undefined_flag_CXX=unsupported
  13114. shrext_cmds=.dll
  13115. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13116. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13117. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13118. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13119. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13120. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13121. emximp -o $lib $output_objdir/$libname.def'
  13122. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13123. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13124. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13125. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13126. prefix_cmds="$SED"~
  13127. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13128. prefix_cmds="$prefix_cmds -e 1d";
  13129. fi~
  13130. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13131. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13132. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13133. emximp -o $lib $output_objdir/$libname.def'
  13134. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13135. enable_shared_with_static_runtimes_CXX=yes
  13136. ;;
  13137. dgux*)
  13138. case $cc_basename in
  13139. ec++*)
  13140. # FIXME: insert proper C++ library support
  13141. ld_shlibs_CXX=no
  13142. ;;
  13143. ghcx*)
  13144. # Green Hills C++ Compiler
  13145. # FIXME: insert proper C++ library support
  13146. ld_shlibs_CXX=no
  13147. ;;
  13148. *)
  13149. # FIXME: insert proper C++ library support
  13150. ld_shlibs_CXX=no
  13151. ;;
  13152. esac
  13153. ;;
  13154. freebsd2.*)
  13155. # C++ shared libraries reported to be fairly broken before
  13156. # switch to ELF
  13157. ld_shlibs_CXX=no
  13158. ;;
  13159. freebsd-elf*)
  13160. archive_cmds_need_lc_CXX=no
  13161. ;;
  13162. freebsd* | dragonfly*)
  13163. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13164. # conventions
  13165. ld_shlibs_CXX=yes
  13166. ;;
  13167. haiku*)
  13168. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13169. link_all_deplibs_CXX=yes
  13170. ;;
  13171. hpux9*)
  13172. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13173. hardcode_libdir_separator_CXX=:
  13174. export_dynamic_flag_spec_CXX='$wl-E'
  13175. hardcode_direct_CXX=yes
  13176. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13177. # but as the default
  13178. # location of the library.
  13179. case $cc_basename in
  13180. CC*)
  13181. # FIXME: insert proper C++ library support
  13182. ld_shlibs_CXX=no
  13183. ;;
  13184. aCC*)
  13185. 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'
  13186. # Commands to make compiler produce verbose output that lists
  13187. # what "hidden" libraries, object files and flags are used when
  13188. # linking a shared library.
  13189. #
  13190. # There doesn't appear to be a way to prevent this compiler from
  13191. # explicitly linking system object files so we need to strip them
  13192. # from the output so that they don't get included in the library
  13193. # dependencies.
  13194. 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"'
  13195. ;;
  13196. *)
  13197. if test yes = "$GXX"; then
  13198. 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'
  13199. else
  13200. # FIXME: insert proper C++ library support
  13201. ld_shlibs_CXX=no
  13202. fi
  13203. ;;
  13204. esac
  13205. ;;
  13206. hpux10*|hpux11*)
  13207. if test no = "$with_gnu_ld"; then
  13208. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13209. hardcode_libdir_separator_CXX=:
  13210. case $host_cpu in
  13211. hppa*64*|ia64*)
  13212. ;;
  13213. *)
  13214. export_dynamic_flag_spec_CXX='$wl-E'
  13215. ;;
  13216. esac
  13217. fi
  13218. case $host_cpu in
  13219. hppa*64*|ia64*)
  13220. hardcode_direct_CXX=no
  13221. hardcode_shlibpath_var_CXX=no
  13222. ;;
  13223. *)
  13224. hardcode_direct_CXX=yes
  13225. hardcode_direct_absolute_CXX=yes
  13226. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13227. # but as the default
  13228. # location of the library.
  13229. ;;
  13230. esac
  13231. case $cc_basename in
  13232. CC*)
  13233. # FIXME: insert proper C++ library support
  13234. ld_shlibs_CXX=no
  13235. ;;
  13236. aCC*)
  13237. case $host_cpu in
  13238. hppa*64*)
  13239. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13240. ;;
  13241. ia64*)
  13242. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13243. ;;
  13244. *)
  13245. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13246. ;;
  13247. esac
  13248. # Commands to make compiler produce verbose output that lists
  13249. # what "hidden" libraries, object files and flags are used when
  13250. # linking a shared library.
  13251. #
  13252. # There doesn't appear to be a way to prevent this compiler from
  13253. # explicitly linking system object files so we need to strip them
  13254. # from the output so that they don't get included in the library
  13255. # dependencies.
  13256. 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"'
  13257. ;;
  13258. *)
  13259. if test yes = "$GXX"; then
  13260. if test no = "$with_gnu_ld"; then
  13261. case $host_cpu in
  13262. hppa*64*)
  13263. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13264. ;;
  13265. ia64*)
  13266. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13267. ;;
  13268. *)
  13269. 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'
  13270. ;;
  13271. esac
  13272. fi
  13273. else
  13274. # FIXME: insert proper C++ library support
  13275. ld_shlibs_CXX=no
  13276. fi
  13277. ;;
  13278. esac
  13279. ;;
  13280. interix[3-9]*)
  13281. hardcode_direct_CXX=no
  13282. hardcode_shlibpath_var_CXX=no
  13283. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13284. export_dynamic_flag_spec_CXX='$wl-E'
  13285. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13286. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13287. # default) and relocated if they conflict, which is a slow very memory
  13288. # consuming and fragmenting process. To avoid this, we pick a random,
  13289. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13290. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13291. 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'
  13292. 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'
  13293. ;;
  13294. irix5* | irix6*)
  13295. case $cc_basename in
  13296. CC*)
  13297. # SGI C++
  13298. 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'
  13299. # Archives containing C++ object files must be created using
  13300. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13301. # necessary to make sure instantiated templates are included
  13302. # in the archive.
  13303. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13304. ;;
  13305. *)
  13306. if test yes = "$GXX"; then
  13307. if test no = "$with_gnu_ld"; then
  13308. 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'
  13309. else
  13310. 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'
  13311. fi
  13312. fi
  13313. link_all_deplibs_CXX=yes
  13314. ;;
  13315. esac
  13316. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13317. hardcode_libdir_separator_CXX=:
  13318. inherit_rpath_CXX=yes
  13319. ;;
  13320. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13321. case $cc_basename in
  13322. KCC*)
  13323. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13324. # KCC will only create a shared library if the output file
  13325. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13326. # to its proper name (with version) after linking.
  13327. 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'
  13328. 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'
  13329. # Commands to make compiler produce verbose output that lists
  13330. # what "hidden" libraries, object files and flags are used when
  13331. # linking a shared library.
  13332. #
  13333. # There doesn't appear to be a way to prevent this compiler from
  13334. # explicitly linking system object files so we need to strip them
  13335. # from the output so that they don't get included in the library
  13336. # dependencies.
  13337. 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"'
  13338. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13339. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13340. # Archives containing C++ object files must be created using
  13341. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13342. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13343. ;;
  13344. icpc* | ecpc* )
  13345. # Intel C++
  13346. with_gnu_ld=yes
  13347. # version 8.0 and above of icpc choke on multiply defined symbols
  13348. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13349. # earlier do not add the objects themselves.
  13350. case `$CC -V 2>&1` in
  13351. *"Version 7."*)
  13352. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13353. 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'
  13354. ;;
  13355. *) # Version 8.0 or newer
  13356. tmp_idyn=
  13357. case $host_cpu in
  13358. ia64*) tmp_idyn=' -i_dynamic';;
  13359. esac
  13360. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13361. 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'
  13362. ;;
  13363. esac
  13364. archive_cmds_need_lc_CXX=no
  13365. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13366. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13367. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13368. ;;
  13369. pgCC* | pgcpp*)
  13370. # Portland Group C++ compiler
  13371. case `$CC -V` in
  13372. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13373. prelink_cmds_CXX='tpldir=Template.dir~
  13374. rm -rf $tpldir~
  13375. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13376. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13377. old_archive_cmds_CXX='tpldir=Template.dir~
  13378. rm -rf $tpldir~
  13379. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13380. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13381. $RANLIB $oldlib'
  13382. archive_cmds_CXX='tpldir=Template.dir~
  13383. rm -rf $tpldir~
  13384. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13385. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13386. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13387. rm -rf $tpldir~
  13388. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13389. $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'
  13390. ;;
  13391. *) # Version 6 and above use weak symbols
  13392. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13393. 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'
  13394. ;;
  13395. esac
  13396. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13397. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13398. 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'
  13399. ;;
  13400. cxx*)
  13401. # Compaq C++
  13402. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13403. 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'
  13404. runpath_var=LD_RUN_PATH
  13405. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13406. hardcode_libdir_separator_CXX=:
  13407. # Commands to make compiler produce verbose output that lists
  13408. # what "hidden" libraries, object files and flags are used when
  13409. # linking a shared library.
  13410. #
  13411. # There doesn't appear to be a way to prevent this compiler from
  13412. # explicitly linking system object files so we need to strip them
  13413. # from the output so that they don't get included in the library
  13414. # dependencies.
  13415. 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'
  13416. ;;
  13417. xl* | mpixl* | bgxl*)
  13418. # IBM XL 8.0 on PPC, with GNU ld
  13419. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13420. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13421. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13422. if test yes = "$supports_anon_versioning"; then
  13423. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13424. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13425. echo "local: *; };" >> $output_objdir/$libname.ver~
  13426. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13427. fi
  13428. ;;
  13429. *)
  13430. case `$CC -V 2>&1 | sed 5q` in
  13431. *Sun\ C*)
  13432. # Sun C++ 5.9
  13433. no_undefined_flag_CXX=' -zdefs'
  13434. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13435. 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'
  13436. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13437. 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'
  13438. compiler_needs_object_CXX=yes
  13439. # Not sure whether something based on
  13440. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13441. # would be better.
  13442. output_verbose_link_cmd='func_echo_all'
  13443. # Archives containing C++ object files must be created using
  13444. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13445. # necessary to make sure instantiated templates are included
  13446. # in the archive.
  13447. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13448. ;;
  13449. esac
  13450. ;;
  13451. esac
  13452. ;;
  13453. lynxos*)
  13454. # FIXME: insert proper C++ library support
  13455. ld_shlibs_CXX=no
  13456. ;;
  13457. m88k*)
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. mvs*)
  13462. case $cc_basename in
  13463. cxx*)
  13464. # FIXME: insert proper C++ library support
  13465. ld_shlibs_CXX=no
  13466. ;;
  13467. *)
  13468. # FIXME: insert proper C++ library support
  13469. ld_shlibs_CXX=no
  13470. ;;
  13471. esac
  13472. ;;
  13473. netbsd*)
  13474. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13475. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13476. wlarc=
  13477. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13478. hardcode_direct_CXX=yes
  13479. hardcode_shlibpath_var_CXX=no
  13480. fi
  13481. # Workaround some broken pre-1.5 toolchains
  13482. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13483. ;;
  13484. *nto* | *qnx*)
  13485. ld_shlibs_CXX=yes
  13486. ;;
  13487. openbsd* | bitrig*)
  13488. if test -f /usr/libexec/ld.so; then
  13489. hardcode_direct_CXX=yes
  13490. hardcode_shlibpath_var_CXX=no
  13491. hardcode_direct_absolute_CXX=yes
  13492. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13493. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13494. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13495. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13496. export_dynamic_flag_spec_CXX='$wl-E'
  13497. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13498. fi
  13499. output_verbose_link_cmd=func_echo_all
  13500. else
  13501. ld_shlibs_CXX=no
  13502. fi
  13503. ;;
  13504. osf3* | osf4* | osf5*)
  13505. case $cc_basename in
  13506. KCC*)
  13507. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13508. # KCC will only create a shared library if the output file
  13509. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13510. # to its proper name (with version) after linking.
  13511. 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'
  13512. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13513. hardcode_libdir_separator_CXX=:
  13514. # Archives containing C++ object files must be created using
  13515. # the KAI C++ compiler.
  13516. case $host in
  13517. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13518. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13519. esac
  13520. ;;
  13521. RCC*)
  13522. # Rational C++ 2.4.1
  13523. # FIXME: insert proper C++ library support
  13524. ld_shlibs_CXX=no
  13525. ;;
  13526. cxx*)
  13527. case $host in
  13528. osf3*)
  13529. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13530. 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'
  13531. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13532. ;;
  13533. *)
  13534. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13535. 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'
  13536. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13537. echo "-hidden">> $lib.exp~
  13538. $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~
  13539. $RM $lib.exp'
  13540. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13541. ;;
  13542. esac
  13543. hardcode_libdir_separator_CXX=:
  13544. # Commands to make compiler produce verbose output that lists
  13545. # what "hidden" libraries, object files and flags are used when
  13546. # linking a shared library.
  13547. #
  13548. # There doesn't appear to be a way to prevent this compiler from
  13549. # explicitly linking system object files so we need to strip them
  13550. # from the output so that they don't get included in the library
  13551. # dependencies.
  13552. 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"'
  13553. ;;
  13554. *)
  13555. if test yes,no = "$GXX,$with_gnu_ld"; then
  13556. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13557. case $host in
  13558. osf3*)
  13559. 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'
  13560. ;;
  13561. *)
  13562. 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'
  13563. ;;
  13564. esac
  13565. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13566. hardcode_libdir_separator_CXX=:
  13567. # Commands to make compiler produce verbose output that lists
  13568. # what "hidden" libraries, object files and flags are used when
  13569. # linking a shared library.
  13570. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13571. else
  13572. # FIXME: insert proper C++ library support
  13573. ld_shlibs_CXX=no
  13574. fi
  13575. ;;
  13576. esac
  13577. ;;
  13578. psos*)
  13579. # FIXME: insert proper C++ library support
  13580. ld_shlibs_CXX=no
  13581. ;;
  13582. sunos4*)
  13583. case $cc_basename in
  13584. CC*)
  13585. # Sun C++ 4.x
  13586. # FIXME: insert proper C++ library support
  13587. ld_shlibs_CXX=no
  13588. ;;
  13589. lcc*)
  13590. # Lucid
  13591. # FIXME: insert proper C++ library support
  13592. ld_shlibs_CXX=no
  13593. ;;
  13594. *)
  13595. # FIXME: insert proper C++ library support
  13596. ld_shlibs_CXX=no
  13597. ;;
  13598. esac
  13599. ;;
  13600. solaris*)
  13601. case $cc_basename in
  13602. CC* | sunCC*)
  13603. # Sun C++ 4.2, 5.x and Centerline C++
  13604. archive_cmds_need_lc_CXX=yes
  13605. no_undefined_flag_CXX=' -zdefs'
  13606. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13607. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13608. $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'
  13609. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13610. hardcode_shlibpath_var_CXX=no
  13611. case $host_os in
  13612. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13613. *)
  13614. # The compiler driver will combine and reorder linker options,
  13615. # but understands '-z linker_flag'.
  13616. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13617. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13618. ;;
  13619. esac
  13620. link_all_deplibs_CXX=yes
  13621. output_verbose_link_cmd='func_echo_all'
  13622. # Archives containing C++ object files must be created using
  13623. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13624. # necessary to make sure instantiated templates are included
  13625. # in the archive.
  13626. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13627. ;;
  13628. gcx*)
  13629. # Green Hills C++ Compiler
  13630. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13631. # The C++ compiler must be used to create the archive.
  13632. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13633. ;;
  13634. *)
  13635. # GNU C++ compiler with Solaris linker
  13636. if test yes,no = "$GXX,$with_gnu_ld"; then
  13637. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13638. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13639. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13640. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13641. $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'
  13642. # Commands to make compiler produce verbose output that lists
  13643. # what "hidden" libraries, object files and flags are used when
  13644. # linking a shared library.
  13645. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13646. else
  13647. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13648. # platform.
  13649. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13650. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13651. $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'
  13652. # Commands to make compiler produce verbose output that lists
  13653. # what "hidden" libraries, object files and flags are used when
  13654. # linking a shared library.
  13655. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13656. fi
  13657. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13658. case $host_os in
  13659. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13660. *)
  13661. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13662. ;;
  13663. esac
  13664. fi
  13665. ;;
  13666. esac
  13667. ;;
  13668. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13669. no_undefined_flag_CXX='$wl-z,text'
  13670. archive_cmds_need_lc_CXX=no
  13671. hardcode_shlibpath_var_CXX=no
  13672. runpath_var='LD_RUN_PATH'
  13673. case $cc_basename in
  13674. CC*)
  13675. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13676. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13677. ;;
  13678. *)
  13679. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13681. ;;
  13682. esac
  13683. ;;
  13684. sysv5* | sco3.2v5* | sco5v6*)
  13685. # Note: We CANNOT use -z defs as we might desire, because we do not
  13686. # link with -lc, and that would cause any symbols used from libc to
  13687. # always be unresolved, which means just about no library would
  13688. # ever link correctly. If we're not using GNU ld we use -z text
  13689. # though, which does catch some bad symbols but isn't as heavy-handed
  13690. # as -z defs.
  13691. no_undefined_flag_CXX='$wl-z,text'
  13692. allow_undefined_flag_CXX='$wl-z,nodefs'
  13693. archive_cmds_need_lc_CXX=no
  13694. hardcode_shlibpath_var_CXX=no
  13695. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13696. hardcode_libdir_separator_CXX=':'
  13697. link_all_deplibs_CXX=yes
  13698. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13699. runpath_var='LD_RUN_PATH'
  13700. case $cc_basename in
  13701. CC*)
  13702. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13703. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13704. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13705. '"$old_archive_cmds_CXX"
  13706. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13707. '"$reload_cmds_CXX"
  13708. ;;
  13709. *)
  13710. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13711. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13712. ;;
  13713. esac
  13714. ;;
  13715. tandem*)
  13716. case $cc_basename in
  13717. NCC*)
  13718. # NonStop-UX NCC 3.20
  13719. # FIXME: insert proper C++ library support
  13720. ld_shlibs_CXX=no
  13721. ;;
  13722. *)
  13723. # FIXME: insert proper C++ library support
  13724. ld_shlibs_CXX=no
  13725. ;;
  13726. esac
  13727. ;;
  13728. vxworks*)
  13729. # FIXME: insert proper C++ library support
  13730. ld_shlibs_CXX=no
  13731. ;;
  13732. *)
  13733. # FIXME: insert proper C++ library support
  13734. ld_shlibs_CXX=no
  13735. ;;
  13736. esac
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13738. $as_echo "$ld_shlibs_CXX" >&6; }
  13739. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13740. GCC_CXX=$GXX
  13741. LD_CXX=$LD
  13742. ## CAVEAT EMPTOR:
  13743. ## There is no encapsulation within the following macros, do not change
  13744. ## the running order or otherwise move them around unless you know exactly
  13745. ## what you are doing...
  13746. # Dependencies to place before and after the object being linked:
  13747. predep_objects_CXX=
  13748. postdep_objects_CXX=
  13749. predeps_CXX=
  13750. postdeps_CXX=
  13751. compiler_lib_search_path_CXX=
  13752. cat > conftest.$ac_ext <<_LT_EOF
  13753. class Foo
  13754. {
  13755. public:
  13756. Foo (void) { a = 0; }
  13757. private:
  13758. int a;
  13759. };
  13760. _LT_EOF
  13761. _lt_libdeps_save_CFLAGS=$CFLAGS
  13762. case "$CC $CFLAGS " in #(
  13763. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13764. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13765. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13766. esac
  13767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13768. (eval $ac_compile) 2>&5
  13769. ac_status=$?
  13770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13771. test $ac_status = 0; }; then
  13772. # Parse the compiler output and extract the necessary
  13773. # objects, libraries and library flags.
  13774. # Sentinel used to keep track of whether or not we are before
  13775. # the conftest object file.
  13776. pre_test_object_deps_done=no
  13777. for p in `eval "$output_verbose_link_cmd"`; do
  13778. case $prev$p in
  13779. -L* | -R* | -l*)
  13780. # Some compilers place space between "-{L,R}" and the path.
  13781. # Remove the space.
  13782. if test x-L = "$p" ||
  13783. test x-R = "$p"; then
  13784. prev=$p
  13785. continue
  13786. fi
  13787. # Expand the sysroot to ease extracting the directories later.
  13788. if test -z "$prev"; then
  13789. case $p in
  13790. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13791. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13792. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13793. esac
  13794. fi
  13795. case $p in
  13796. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13797. esac
  13798. if test no = "$pre_test_object_deps_done"; then
  13799. case $prev in
  13800. -L | -R)
  13801. # Internal compiler library paths should come after those
  13802. # provided the user. The postdeps already come after the
  13803. # user supplied libs so there is no need to process them.
  13804. if test -z "$compiler_lib_search_path_CXX"; then
  13805. compiler_lib_search_path_CXX=$prev$p
  13806. else
  13807. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13808. fi
  13809. ;;
  13810. # The "-l" case would never come before the object being
  13811. # linked, so don't bother handling this case.
  13812. esac
  13813. else
  13814. if test -z "$postdeps_CXX"; then
  13815. postdeps_CXX=$prev$p
  13816. else
  13817. postdeps_CXX="${postdeps_CXX} $prev$p"
  13818. fi
  13819. fi
  13820. prev=
  13821. ;;
  13822. *.lto.$objext) ;; # Ignore GCC LTO objects
  13823. *.$objext)
  13824. # This assumes that the test object file only shows up
  13825. # once in the compiler output.
  13826. if test "$p" = "conftest.$objext"; then
  13827. pre_test_object_deps_done=yes
  13828. continue
  13829. fi
  13830. if test no = "$pre_test_object_deps_done"; then
  13831. if test -z "$predep_objects_CXX"; then
  13832. predep_objects_CXX=$p
  13833. else
  13834. predep_objects_CXX="$predep_objects_CXX $p"
  13835. fi
  13836. else
  13837. if test -z "$postdep_objects_CXX"; then
  13838. postdep_objects_CXX=$p
  13839. else
  13840. postdep_objects_CXX="$postdep_objects_CXX $p"
  13841. fi
  13842. fi
  13843. ;;
  13844. *) ;; # Ignore the rest.
  13845. esac
  13846. done
  13847. # Clean up.
  13848. rm -f a.out a.exe
  13849. else
  13850. echo "libtool.m4: error: problem compiling CXX test program"
  13851. fi
  13852. $RM -f confest.$objext
  13853. CFLAGS=$_lt_libdeps_save_CFLAGS
  13854. # PORTME: override above test on systems where it is broken
  13855. case $host_os in
  13856. interix[3-9]*)
  13857. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13858. # hack all around it, let's just trust "g++" to DTRT.
  13859. predep_objects_CXX=
  13860. postdep_objects_CXX=
  13861. postdeps_CXX=
  13862. ;;
  13863. esac
  13864. case " $postdeps_CXX " in
  13865. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13866. esac
  13867. compiler_lib_search_dirs_CXX=
  13868. if test -n "${compiler_lib_search_path_CXX}"; then
  13869. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13870. fi
  13871. lt_prog_compiler_wl_CXX=
  13872. lt_prog_compiler_pic_CXX=
  13873. lt_prog_compiler_static_CXX=
  13874. # C++ specific cases for pic, static, wl, etc.
  13875. if test yes = "$GXX"; then
  13876. lt_prog_compiler_wl_CXX='-Wl,'
  13877. lt_prog_compiler_static_CXX='-static'
  13878. case $host_os in
  13879. aix*)
  13880. # All AIX code is PIC.
  13881. if test ia64 = "$host_cpu"; then
  13882. # AIX 5 now supports IA64 processor
  13883. lt_prog_compiler_static_CXX='-Bstatic'
  13884. fi
  13885. lt_prog_compiler_pic_CXX='-fPIC'
  13886. ;;
  13887. amigaos*)
  13888. case $host_cpu in
  13889. powerpc)
  13890. # see comment about AmigaOS4 .so support
  13891. lt_prog_compiler_pic_CXX='-fPIC'
  13892. ;;
  13893. m68k)
  13894. # FIXME: we need at least 68020 code to build shared libraries, but
  13895. # adding the '-m68020' flag to GCC prevents building anything better,
  13896. # like '-m68040'.
  13897. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13898. ;;
  13899. esac
  13900. ;;
  13901. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13902. # PIC is the default for these OSes.
  13903. ;;
  13904. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13905. # This hack is so that the source file can tell whether it is being
  13906. # built for inclusion in a dll (and should export symbols for example).
  13907. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13908. # (--disable-auto-import) libraries
  13909. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13910. case $host_os in
  13911. os2*)
  13912. lt_prog_compiler_static_CXX='$wl-static'
  13913. ;;
  13914. esac
  13915. ;;
  13916. darwin* | rhapsody*)
  13917. # PIC is the default on this platform
  13918. # Common symbols not allowed in MH_DYLIB files
  13919. lt_prog_compiler_pic_CXX='-fno-common'
  13920. ;;
  13921. *djgpp*)
  13922. # DJGPP does not support shared libraries at all
  13923. lt_prog_compiler_pic_CXX=
  13924. ;;
  13925. haiku*)
  13926. # PIC is the default for Haiku.
  13927. # The "-static" flag exists, but is broken.
  13928. lt_prog_compiler_static_CXX=
  13929. ;;
  13930. interix[3-9]*)
  13931. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13932. # Instead, we relocate shared libraries at runtime.
  13933. ;;
  13934. sysv4*MP*)
  13935. if test -d /usr/nec; then
  13936. lt_prog_compiler_pic_CXX=-Kconform_pic
  13937. fi
  13938. ;;
  13939. hpux*)
  13940. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13941. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13942. # sets the default TLS model and affects inlining.
  13943. case $host_cpu in
  13944. hppa*64*)
  13945. ;;
  13946. *)
  13947. lt_prog_compiler_pic_CXX='-fPIC'
  13948. ;;
  13949. esac
  13950. ;;
  13951. *qnx* | *nto*)
  13952. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13953. # it will coredump.
  13954. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13955. ;;
  13956. *)
  13957. lt_prog_compiler_pic_CXX='-fPIC'
  13958. ;;
  13959. esac
  13960. else
  13961. case $host_os in
  13962. aix[4-9]*)
  13963. # All AIX code is PIC.
  13964. if test ia64 = "$host_cpu"; then
  13965. # AIX 5 now supports IA64 processor
  13966. lt_prog_compiler_static_CXX='-Bstatic'
  13967. else
  13968. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13969. fi
  13970. ;;
  13971. chorus*)
  13972. case $cc_basename in
  13973. cxch68*)
  13974. # Green Hills C++ Compiler
  13975. # _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"
  13976. ;;
  13977. esac
  13978. ;;
  13979. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13980. # This hack is so that the source file can tell whether it is being
  13981. # built for inclusion in a dll (and should export symbols for example).
  13982. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13983. ;;
  13984. dgux*)
  13985. case $cc_basename in
  13986. ec++*)
  13987. lt_prog_compiler_pic_CXX='-KPIC'
  13988. ;;
  13989. ghcx*)
  13990. # Green Hills C++ Compiler
  13991. lt_prog_compiler_pic_CXX='-pic'
  13992. ;;
  13993. *)
  13994. ;;
  13995. esac
  13996. ;;
  13997. freebsd* | dragonfly*)
  13998. # FreeBSD uses GNU C++
  13999. ;;
  14000. hpux9* | hpux10* | hpux11*)
  14001. case $cc_basename in
  14002. CC*)
  14003. lt_prog_compiler_wl_CXX='-Wl,'
  14004. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14005. if test ia64 != "$host_cpu"; then
  14006. lt_prog_compiler_pic_CXX='+Z'
  14007. fi
  14008. ;;
  14009. aCC*)
  14010. lt_prog_compiler_wl_CXX='-Wl,'
  14011. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14012. case $host_cpu in
  14013. hppa*64*|ia64*)
  14014. # +Z the default
  14015. ;;
  14016. *)
  14017. lt_prog_compiler_pic_CXX='+Z'
  14018. ;;
  14019. esac
  14020. ;;
  14021. *)
  14022. ;;
  14023. esac
  14024. ;;
  14025. interix*)
  14026. # This is c89, which is MS Visual C++ (no shared libs)
  14027. # Anyone wants to do a port?
  14028. ;;
  14029. irix5* | irix6* | nonstopux*)
  14030. case $cc_basename in
  14031. CC*)
  14032. lt_prog_compiler_wl_CXX='-Wl,'
  14033. lt_prog_compiler_static_CXX='-non_shared'
  14034. # CC pic flag -KPIC is the default.
  14035. ;;
  14036. *)
  14037. ;;
  14038. esac
  14039. ;;
  14040. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14041. case $cc_basename in
  14042. KCC*)
  14043. # KAI C++ Compiler
  14044. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14045. lt_prog_compiler_pic_CXX='-fPIC'
  14046. ;;
  14047. ecpc* )
  14048. # old Intel C++ for x86_64, which still supported -KPIC.
  14049. lt_prog_compiler_wl_CXX='-Wl,'
  14050. lt_prog_compiler_pic_CXX='-KPIC'
  14051. lt_prog_compiler_static_CXX='-static'
  14052. ;;
  14053. icpc* )
  14054. # Intel C++, used to be incompatible with GCC.
  14055. # ICC 10 doesn't accept -KPIC any more.
  14056. lt_prog_compiler_wl_CXX='-Wl,'
  14057. lt_prog_compiler_pic_CXX='-fPIC'
  14058. lt_prog_compiler_static_CXX='-static'
  14059. ;;
  14060. pgCC* | pgcpp*)
  14061. # Portland Group C++ compiler
  14062. lt_prog_compiler_wl_CXX='-Wl,'
  14063. lt_prog_compiler_pic_CXX='-fpic'
  14064. lt_prog_compiler_static_CXX='-Bstatic'
  14065. ;;
  14066. cxx*)
  14067. # Compaq C++
  14068. # Make sure the PIC flag is empty. It appears that all Alpha
  14069. # Linux and Compaq Tru64 Unix objects are PIC.
  14070. lt_prog_compiler_pic_CXX=
  14071. lt_prog_compiler_static_CXX='-non_shared'
  14072. ;;
  14073. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14074. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14075. lt_prog_compiler_wl_CXX='-Wl,'
  14076. lt_prog_compiler_pic_CXX='-qpic'
  14077. lt_prog_compiler_static_CXX='-qstaticlink'
  14078. ;;
  14079. *)
  14080. case `$CC -V 2>&1 | sed 5q` in
  14081. *Sun\ C*)
  14082. # Sun C++ 5.9
  14083. lt_prog_compiler_pic_CXX='-KPIC'
  14084. lt_prog_compiler_static_CXX='-Bstatic'
  14085. lt_prog_compiler_wl_CXX='-Qoption ld '
  14086. ;;
  14087. esac
  14088. ;;
  14089. esac
  14090. ;;
  14091. lynxos*)
  14092. ;;
  14093. m88k*)
  14094. ;;
  14095. mvs*)
  14096. case $cc_basename in
  14097. cxx*)
  14098. lt_prog_compiler_pic_CXX='-W c,exportall'
  14099. ;;
  14100. *)
  14101. ;;
  14102. esac
  14103. ;;
  14104. netbsd* | netbsdelf*-gnu)
  14105. ;;
  14106. *qnx* | *nto*)
  14107. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14108. # it will coredump.
  14109. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14110. ;;
  14111. osf3* | osf4* | osf5*)
  14112. case $cc_basename in
  14113. KCC*)
  14114. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14115. ;;
  14116. RCC*)
  14117. # Rational C++ 2.4.1
  14118. lt_prog_compiler_pic_CXX='-pic'
  14119. ;;
  14120. cxx*)
  14121. # Digital/Compaq C++
  14122. lt_prog_compiler_wl_CXX='-Wl,'
  14123. # Make sure the PIC flag is empty. It appears that all Alpha
  14124. # Linux and Compaq Tru64 Unix objects are PIC.
  14125. lt_prog_compiler_pic_CXX=
  14126. lt_prog_compiler_static_CXX='-non_shared'
  14127. ;;
  14128. *)
  14129. ;;
  14130. esac
  14131. ;;
  14132. psos*)
  14133. ;;
  14134. solaris*)
  14135. case $cc_basename in
  14136. CC* | sunCC*)
  14137. # Sun C++ 4.2, 5.x and Centerline C++
  14138. lt_prog_compiler_pic_CXX='-KPIC'
  14139. lt_prog_compiler_static_CXX='-Bstatic'
  14140. lt_prog_compiler_wl_CXX='-Qoption ld '
  14141. ;;
  14142. gcx*)
  14143. # Green Hills C++ Compiler
  14144. lt_prog_compiler_pic_CXX='-PIC'
  14145. ;;
  14146. *)
  14147. ;;
  14148. esac
  14149. ;;
  14150. sunos4*)
  14151. case $cc_basename in
  14152. CC*)
  14153. # Sun C++ 4.x
  14154. lt_prog_compiler_pic_CXX='-pic'
  14155. lt_prog_compiler_static_CXX='-Bstatic'
  14156. ;;
  14157. lcc*)
  14158. # Lucid
  14159. lt_prog_compiler_pic_CXX='-pic'
  14160. ;;
  14161. *)
  14162. ;;
  14163. esac
  14164. ;;
  14165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14166. case $cc_basename in
  14167. CC*)
  14168. lt_prog_compiler_wl_CXX='-Wl,'
  14169. lt_prog_compiler_pic_CXX='-KPIC'
  14170. lt_prog_compiler_static_CXX='-Bstatic'
  14171. ;;
  14172. esac
  14173. ;;
  14174. tandem*)
  14175. case $cc_basename in
  14176. NCC*)
  14177. # NonStop-UX NCC 3.20
  14178. lt_prog_compiler_pic_CXX='-KPIC'
  14179. ;;
  14180. *)
  14181. ;;
  14182. esac
  14183. ;;
  14184. vxworks*)
  14185. ;;
  14186. *)
  14187. lt_prog_compiler_can_build_shared_CXX=no
  14188. ;;
  14189. esac
  14190. fi
  14191. case $host_os in
  14192. # For platforms that do not support PIC, -DPIC is meaningless:
  14193. *djgpp*)
  14194. lt_prog_compiler_pic_CXX=
  14195. ;;
  14196. *)
  14197. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14198. ;;
  14199. esac
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14201. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14202. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14203. $as_echo_n "(cached) " >&6
  14204. else
  14205. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14206. fi
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14208. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14209. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14210. #
  14211. # Check to make sure the PIC flag actually works.
  14212. #
  14213. if test -n "$lt_prog_compiler_pic_CXX"; then
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14215. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14216. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14217. $as_echo_n "(cached) " >&6
  14218. else
  14219. lt_cv_prog_compiler_pic_works_CXX=no
  14220. ac_outfile=conftest.$ac_objext
  14221. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14222. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14223. # Insert the option either (1) after the last *FLAGS variable, or
  14224. # (2) before a word containing "conftest.", or (3) at the end.
  14225. # Note that $ac_compile itself does not contain backslashes and begins
  14226. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14227. # The option is referenced via a variable to avoid confusing sed.
  14228. lt_compile=`echo "$ac_compile" | $SED \
  14229. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14230. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14231. -e 's:$: $lt_compiler_flag:'`
  14232. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14233. (eval "$lt_compile" 2>conftest.err)
  14234. ac_status=$?
  14235. cat conftest.err >&5
  14236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14237. if (exit $ac_status) && test -s "$ac_outfile"; then
  14238. # The compiler can only warn and ignore the option if not recognized
  14239. # So say no if there are warnings other than the usual output.
  14240. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14241. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14242. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14243. lt_cv_prog_compiler_pic_works_CXX=yes
  14244. fi
  14245. fi
  14246. $RM conftest*
  14247. fi
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14249. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14250. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14251. case $lt_prog_compiler_pic_CXX in
  14252. "" | " "*) ;;
  14253. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14254. esac
  14255. else
  14256. lt_prog_compiler_pic_CXX=
  14257. lt_prog_compiler_can_build_shared_CXX=no
  14258. fi
  14259. fi
  14260. #
  14261. # Check to make sure the static flag actually works.
  14262. #
  14263. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14265. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14266. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14267. $as_echo_n "(cached) " >&6
  14268. else
  14269. lt_cv_prog_compiler_static_works_CXX=no
  14270. save_LDFLAGS=$LDFLAGS
  14271. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14272. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14273. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14274. # The linker can only warn and ignore the option if not recognized
  14275. # So say no if there are warnings
  14276. if test -s conftest.err; then
  14277. # Append any errors to the config.log.
  14278. cat conftest.err 1>&5
  14279. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14280. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14281. if diff conftest.exp conftest.er2 >/dev/null; then
  14282. lt_cv_prog_compiler_static_works_CXX=yes
  14283. fi
  14284. else
  14285. lt_cv_prog_compiler_static_works_CXX=yes
  14286. fi
  14287. fi
  14288. $RM -r conftest*
  14289. LDFLAGS=$save_LDFLAGS
  14290. fi
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14292. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14293. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14294. :
  14295. else
  14296. lt_prog_compiler_static_CXX=
  14297. fi
  14298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14299. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14300. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14301. $as_echo_n "(cached) " >&6
  14302. else
  14303. lt_cv_prog_compiler_c_o_CXX=no
  14304. $RM -r conftest 2>/dev/null
  14305. mkdir conftest
  14306. cd conftest
  14307. mkdir out
  14308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14309. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14310. # Insert the option either (1) after the last *FLAGS variable, or
  14311. # (2) before a word containing "conftest.", or (3) at the end.
  14312. # Note that $ac_compile itself does not contain backslashes and begins
  14313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14314. lt_compile=`echo "$ac_compile" | $SED \
  14315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14317. -e 's:$: $lt_compiler_flag:'`
  14318. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14319. (eval "$lt_compile" 2>out/conftest.err)
  14320. ac_status=$?
  14321. cat out/conftest.err >&5
  14322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14323. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14324. then
  14325. # The compiler can only warn and ignore the option if not recognized
  14326. # So say no if there are warnings
  14327. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14328. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14329. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14330. lt_cv_prog_compiler_c_o_CXX=yes
  14331. fi
  14332. fi
  14333. chmod u+w . 2>&5
  14334. $RM conftest*
  14335. # SGI C++ compiler will create directory out/ii_files/ for
  14336. # template instantiation
  14337. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14338. $RM out/* && rmdir out
  14339. cd ..
  14340. $RM -r conftest
  14341. $RM conftest*
  14342. fi
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14344. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14346. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14347. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14348. $as_echo_n "(cached) " >&6
  14349. else
  14350. lt_cv_prog_compiler_c_o_CXX=no
  14351. $RM -r conftest 2>/dev/null
  14352. mkdir conftest
  14353. cd conftest
  14354. mkdir out
  14355. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14356. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14357. # Insert the option either (1) after the last *FLAGS variable, or
  14358. # (2) before a word containing "conftest.", or (3) at the end.
  14359. # Note that $ac_compile itself does not contain backslashes and begins
  14360. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14361. lt_compile=`echo "$ac_compile" | $SED \
  14362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14364. -e 's:$: $lt_compiler_flag:'`
  14365. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14366. (eval "$lt_compile" 2>out/conftest.err)
  14367. ac_status=$?
  14368. cat out/conftest.err >&5
  14369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14370. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14371. then
  14372. # The compiler can only warn and ignore the option if not recognized
  14373. # So say no if there are warnings
  14374. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14375. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14376. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14377. lt_cv_prog_compiler_c_o_CXX=yes
  14378. fi
  14379. fi
  14380. chmod u+w . 2>&5
  14381. $RM conftest*
  14382. # SGI C++ compiler will create directory out/ii_files/ for
  14383. # template instantiation
  14384. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14385. $RM out/* && rmdir out
  14386. cd ..
  14387. $RM -r conftest
  14388. $RM conftest*
  14389. fi
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14391. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14392. hard_links=nottested
  14393. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14394. # do not overwrite the value of need_locks provided by the user
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14396. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14397. hard_links=yes
  14398. $RM conftest*
  14399. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14400. touch conftest.a
  14401. ln conftest.a conftest.b 2>&5 || hard_links=no
  14402. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14404. $as_echo "$hard_links" >&6; }
  14405. if test no = "$hard_links"; then
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14407. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14408. need_locks=warn
  14409. fi
  14410. else
  14411. need_locks=no
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14414. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14415. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14416. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14417. case $host_os in
  14418. aix[4-9]*)
  14419. # If we're using GNU nm, then we don't want the "-C" option.
  14420. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14421. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14422. # weak defined symbols like other global defined symbols, whereas
  14423. # GNU nm marks them as "W".
  14424. # While the 'weak' keyword is ignored in the Export File, we need
  14425. # it in the Import File for the 'aix-soname' feature, so we have
  14426. # to replace the "-B" option with "-P" for AIX nm.
  14427. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14428. 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'
  14429. else
  14430. 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'
  14431. fi
  14432. ;;
  14433. pw32*)
  14434. export_symbols_cmds_CXX=$ltdll_cmds
  14435. ;;
  14436. cygwin* | mingw* | cegcc*)
  14437. case $cc_basename in
  14438. cl*)
  14439. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14440. ;;
  14441. *)
  14442. 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'
  14443. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14444. ;;
  14445. esac
  14446. ;;
  14447. linux* | k*bsd*-gnu | gnu*)
  14448. link_all_deplibs_CXX=no
  14449. ;;
  14450. *)
  14451. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14452. ;;
  14453. esac
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14455. $as_echo "$ld_shlibs_CXX" >&6; }
  14456. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14457. with_gnu_ld_CXX=$with_gnu_ld
  14458. #
  14459. # Do we need to explicitly link libc?
  14460. #
  14461. case "x$archive_cmds_need_lc_CXX" in
  14462. x|xyes)
  14463. # Assume -lc should be added
  14464. archive_cmds_need_lc_CXX=yes
  14465. if test yes,yes = "$GCC,$enable_shared"; then
  14466. case $archive_cmds_CXX in
  14467. *'~'*)
  14468. # FIXME: we may have to deal with multi-command sequences.
  14469. ;;
  14470. '$CC '*)
  14471. # Test whether the compiler implicitly links with -lc since on some
  14472. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14473. # to ld, don't add -lc before -lgcc.
  14474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14475. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14476. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14477. $as_echo_n "(cached) " >&6
  14478. else
  14479. $RM conftest*
  14480. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14482. (eval $ac_compile) 2>&5
  14483. ac_status=$?
  14484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14485. test $ac_status = 0; } 2>conftest.err; then
  14486. soname=conftest
  14487. lib=conftest
  14488. libobjs=conftest.$ac_objext
  14489. deplibs=
  14490. wl=$lt_prog_compiler_wl_CXX
  14491. pic_flag=$lt_prog_compiler_pic_CXX
  14492. compiler_flags=-v
  14493. linker_flags=-v
  14494. verstring=
  14495. output_objdir=.
  14496. libname=conftest
  14497. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14498. allow_undefined_flag_CXX=
  14499. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14500. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14501. ac_status=$?
  14502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14503. test $ac_status = 0; }
  14504. then
  14505. lt_cv_archive_cmds_need_lc_CXX=no
  14506. else
  14507. lt_cv_archive_cmds_need_lc_CXX=yes
  14508. fi
  14509. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14510. else
  14511. cat conftest.err 1>&5
  14512. fi
  14513. $RM conftest*
  14514. fi
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14516. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14517. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14518. ;;
  14519. esac
  14520. fi
  14521. ;;
  14522. esac
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14524. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14525. library_names_spec=
  14526. libname_spec='lib$name'
  14527. soname_spec=
  14528. shrext_cmds=.so
  14529. postinstall_cmds=
  14530. postuninstall_cmds=
  14531. finish_cmds=
  14532. finish_eval=
  14533. shlibpath_var=
  14534. shlibpath_overrides_runpath=unknown
  14535. version_type=none
  14536. dynamic_linker="$host_os ld.so"
  14537. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14538. need_lib_prefix=unknown
  14539. hardcode_into_libs=no
  14540. # when you set need_version to no, make sure it does not cause -set_version
  14541. # flags to be left without arguments
  14542. need_version=unknown
  14543. case $host_os in
  14544. aix3*)
  14545. version_type=linux # correct to gnu/linux during the next big refactor
  14546. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14547. shlibpath_var=LIBPATH
  14548. # AIX 3 has no versioning support, so we append a major version to the name.
  14549. soname_spec='$libname$release$shared_ext$major'
  14550. ;;
  14551. aix[4-9]*)
  14552. version_type=linux # correct to gnu/linux during the next big refactor
  14553. need_lib_prefix=no
  14554. need_version=no
  14555. hardcode_into_libs=yes
  14556. if test ia64 = "$host_cpu"; then
  14557. # AIX 5 supports IA64
  14558. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14559. shlibpath_var=LD_LIBRARY_PATH
  14560. else
  14561. # With GCC up to 2.95.x, collect2 would create an import file
  14562. # for dependence libraries. The import file would start with
  14563. # the line '#! .'. This would cause the generated library to
  14564. # depend on '.', always an invalid library. This was fixed in
  14565. # development snapshots of GCC prior to 3.0.
  14566. case $host_os in
  14567. aix4 | aix4.[01] | aix4.[01].*)
  14568. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14569. echo ' yes '
  14570. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14571. :
  14572. else
  14573. can_build_shared=no
  14574. fi
  14575. ;;
  14576. esac
  14577. # Using Import Files as archive members, it is possible to support
  14578. # filename-based versioning of shared library archives on AIX. While
  14579. # this would work for both with and without runtime linking, it will
  14580. # prevent static linking of such archives. So we do filename-based
  14581. # shared library versioning with .so extension only, which is used
  14582. # when both runtime linking and shared linking is enabled.
  14583. # Unfortunately, runtime linking may impact performance, so we do
  14584. # not want this to be the default eventually. Also, we use the
  14585. # versioned .so libs for executables only if there is the -brtl
  14586. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14587. # To allow for filename-based versioning support, we need to create
  14588. # libNAME.so.V as an archive file, containing:
  14589. # *) an Import File, referring to the versioned filename of the
  14590. # archive as well as the shared archive member, telling the
  14591. # bitwidth (32 or 64) of that shared object, and providing the
  14592. # list of exported symbols of that shared object, eventually
  14593. # decorated with the 'weak' keyword
  14594. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14595. # it being seen by the linker.
  14596. # At run time we better use the real file rather than another symlink,
  14597. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14598. case $with_aix_soname,$aix_use_runtimelinking in
  14599. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14600. # soname into executable. Probably we can add versioning support to
  14601. # collect2, so additional links can be useful in future.
  14602. aix,yes) # traditional libtool
  14603. dynamic_linker='AIX unversionable lib.so'
  14604. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14605. # instead of lib<name>.a to let people know that these are not
  14606. # typical AIX shared libraries.
  14607. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14608. ;;
  14609. aix,no) # traditional AIX only
  14610. dynamic_linker='AIX lib.a(lib.so.V)'
  14611. # We preserve .a as extension for shared libraries through AIX4.2
  14612. # and later when we are not doing run time linking.
  14613. library_names_spec='$libname$release.a $libname.a'
  14614. soname_spec='$libname$release$shared_ext$major'
  14615. ;;
  14616. svr4,*) # full svr4 only
  14617. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14618. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14619. # We do not specify a path in Import Files, so LIBPATH fires.
  14620. shlibpath_overrides_runpath=yes
  14621. ;;
  14622. *,yes) # both, prefer svr4
  14623. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14624. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14625. # unpreferred sharedlib libNAME.a needs extra handling
  14626. 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"'
  14627. 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"'
  14628. # We do not specify a path in Import Files, so LIBPATH fires.
  14629. shlibpath_overrides_runpath=yes
  14630. ;;
  14631. *,no) # both, prefer aix
  14632. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14633. library_names_spec='$libname$release.a $libname.a'
  14634. soname_spec='$libname$release$shared_ext$major'
  14635. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14636. 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)'
  14637. 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"'
  14638. ;;
  14639. esac
  14640. shlibpath_var=LIBPATH
  14641. fi
  14642. ;;
  14643. amigaos*)
  14644. case $host_cpu in
  14645. powerpc)
  14646. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14647. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14648. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14649. ;;
  14650. m68k)
  14651. library_names_spec='$libname.ixlibrary $libname.a'
  14652. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14653. 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'
  14654. ;;
  14655. esac
  14656. ;;
  14657. beos*)
  14658. library_names_spec='$libname$shared_ext'
  14659. dynamic_linker="$host_os ld.so"
  14660. shlibpath_var=LIBRARY_PATH
  14661. ;;
  14662. bsdi[45]*)
  14663. version_type=linux # correct to gnu/linux during the next big refactor
  14664. need_version=no
  14665. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14666. soname_spec='$libname$release$shared_ext$major'
  14667. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14668. shlibpath_var=LD_LIBRARY_PATH
  14669. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14670. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14671. # the default ld.so.conf also contains /usr/contrib/lib and
  14672. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14673. # libtool to hard-code these into programs
  14674. ;;
  14675. cygwin* | mingw* | pw32* | cegcc*)
  14676. version_type=windows
  14677. shrext_cmds=.dll
  14678. need_version=no
  14679. need_lib_prefix=no
  14680. case $GCC,$cc_basename in
  14681. yes,*)
  14682. # gcc
  14683. library_names_spec='$libname.dll.a'
  14684. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14685. postinstall_cmds='base_file=`basename \$file`~
  14686. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14687. dldir=$destdir/`dirname \$dlpath`~
  14688. test -d \$dldir || mkdir -p \$dldir~
  14689. $install_prog $dir/$dlname \$dldir/$dlname~
  14690. chmod a+x \$dldir/$dlname~
  14691. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14692. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14693. fi'
  14694. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14695. dlpath=$dir/\$dldll~
  14696. $RM \$dlpath'
  14697. shlibpath_overrides_runpath=yes
  14698. case $host_os in
  14699. cygwin*)
  14700. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14701. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14702. ;;
  14703. mingw* | cegcc*)
  14704. # MinGW DLLs use traditional 'lib' prefix
  14705. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14706. ;;
  14707. pw32*)
  14708. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14709. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14710. ;;
  14711. esac
  14712. dynamic_linker='Win32 ld.exe'
  14713. ;;
  14714. *,cl*)
  14715. # Native MSVC
  14716. libname_spec='$name'
  14717. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14718. library_names_spec='$libname.dll.lib'
  14719. case $build_os in
  14720. mingw*)
  14721. sys_lib_search_path_spec=
  14722. lt_save_ifs=$IFS
  14723. IFS=';'
  14724. for lt_path in $LIB
  14725. do
  14726. IFS=$lt_save_ifs
  14727. # Let DOS variable expansion print the short 8.3 style file name.
  14728. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14729. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14730. done
  14731. IFS=$lt_save_ifs
  14732. # Convert to MSYS style.
  14733. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14734. ;;
  14735. cygwin*)
  14736. # Convert to unix form, then to dos form, then back to unix form
  14737. # but this time dos style (no spaces!) so that the unix form looks
  14738. # like /cygdrive/c/PROGRA~1:/cygdr...
  14739. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14740. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14741. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14742. ;;
  14743. *)
  14744. sys_lib_search_path_spec=$LIB
  14745. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14746. # It is most probably a Windows format PATH.
  14747. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14748. else
  14749. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14750. fi
  14751. # FIXME: find the short name or the path components, as spaces are
  14752. # common. (e.g. "Program Files" -> "PROGRA~1")
  14753. ;;
  14754. esac
  14755. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14756. postinstall_cmds='base_file=`basename \$file`~
  14757. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14758. dldir=$destdir/`dirname \$dlpath`~
  14759. test -d \$dldir || mkdir -p \$dldir~
  14760. $install_prog $dir/$dlname \$dldir/$dlname'
  14761. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14762. dlpath=$dir/\$dldll~
  14763. $RM \$dlpath'
  14764. shlibpath_overrides_runpath=yes
  14765. dynamic_linker='Win32 link.exe'
  14766. ;;
  14767. *)
  14768. # Assume MSVC wrapper
  14769. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14770. dynamic_linker='Win32 ld.exe'
  14771. ;;
  14772. esac
  14773. # FIXME: first we should search . and the directory the executable is in
  14774. shlibpath_var=PATH
  14775. ;;
  14776. darwin* | rhapsody*)
  14777. dynamic_linker="$host_os dyld"
  14778. version_type=darwin
  14779. need_lib_prefix=no
  14780. need_version=no
  14781. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14782. soname_spec='$libname$release$major$shared_ext'
  14783. shlibpath_overrides_runpath=yes
  14784. shlibpath_var=DYLD_LIBRARY_PATH
  14785. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14786. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14787. ;;
  14788. dgux*)
  14789. version_type=linux # correct to gnu/linux during the next big refactor
  14790. need_lib_prefix=no
  14791. need_version=no
  14792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14793. soname_spec='$libname$release$shared_ext$major'
  14794. shlibpath_var=LD_LIBRARY_PATH
  14795. ;;
  14796. freebsd* | dragonfly*)
  14797. # DragonFly does not have aout. When/if they implement a new
  14798. # versioning mechanism, adjust this.
  14799. if test -x /usr/bin/objformat; then
  14800. objformat=`/usr/bin/objformat`
  14801. else
  14802. case $host_os in
  14803. freebsd[23].*) objformat=aout ;;
  14804. *) objformat=elf ;;
  14805. esac
  14806. fi
  14807. version_type=freebsd-$objformat
  14808. case $version_type in
  14809. freebsd-elf*)
  14810. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14811. soname_spec='$libname$release$shared_ext$major'
  14812. need_version=no
  14813. need_lib_prefix=no
  14814. ;;
  14815. freebsd-*)
  14816. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14817. need_version=yes
  14818. ;;
  14819. esac
  14820. shlibpath_var=LD_LIBRARY_PATH
  14821. case $host_os in
  14822. freebsd2.*)
  14823. shlibpath_overrides_runpath=yes
  14824. ;;
  14825. freebsd3.[01]* | freebsdelf3.[01]*)
  14826. shlibpath_overrides_runpath=yes
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14830. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14831. shlibpath_overrides_runpath=no
  14832. hardcode_into_libs=yes
  14833. ;;
  14834. *) # from 4.6 on, and DragonFly
  14835. shlibpath_overrides_runpath=yes
  14836. hardcode_into_libs=yes
  14837. ;;
  14838. esac
  14839. ;;
  14840. haiku*)
  14841. version_type=linux # correct to gnu/linux during the next big refactor
  14842. need_lib_prefix=no
  14843. need_version=no
  14844. dynamic_linker="$host_os runtime_loader"
  14845. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14846. soname_spec='$libname$release$shared_ext$major'
  14847. shlibpath_var=LIBRARY_PATH
  14848. shlibpath_overrides_runpath=no
  14849. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14850. hardcode_into_libs=yes
  14851. ;;
  14852. hpux9* | hpux10* | hpux11*)
  14853. # Give a soname corresponding to the major version so that dld.sl refuses to
  14854. # link against other versions.
  14855. version_type=sunos
  14856. need_lib_prefix=no
  14857. need_version=no
  14858. case $host_cpu in
  14859. ia64*)
  14860. shrext_cmds='.so'
  14861. hardcode_into_libs=yes
  14862. dynamic_linker="$host_os dld.so"
  14863. shlibpath_var=LD_LIBRARY_PATH
  14864. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14866. soname_spec='$libname$release$shared_ext$major'
  14867. if test 32 = "$HPUX_IA64_MODE"; then
  14868. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14869. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14870. else
  14871. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14872. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14873. fi
  14874. ;;
  14875. hppa*64*)
  14876. shrext_cmds='.sl'
  14877. hardcode_into_libs=yes
  14878. dynamic_linker="$host_os dld.sl"
  14879. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14880. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14881. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14882. soname_spec='$libname$release$shared_ext$major'
  14883. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14884. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14885. ;;
  14886. *)
  14887. shrext_cmds='.sl'
  14888. dynamic_linker="$host_os dld.sl"
  14889. shlibpath_var=SHLIB_PATH
  14890. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14891. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14892. soname_spec='$libname$release$shared_ext$major'
  14893. ;;
  14894. esac
  14895. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14896. postinstall_cmds='chmod 555 $lib'
  14897. # or fails outright, so override atomically:
  14898. install_override_mode=555
  14899. ;;
  14900. interix[3-9]*)
  14901. version_type=linux # correct to gnu/linux during the next big refactor
  14902. need_lib_prefix=no
  14903. need_version=no
  14904. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14905. soname_spec='$libname$release$shared_ext$major'
  14906. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14907. shlibpath_var=LD_LIBRARY_PATH
  14908. shlibpath_overrides_runpath=no
  14909. hardcode_into_libs=yes
  14910. ;;
  14911. irix5* | irix6* | nonstopux*)
  14912. case $host_os in
  14913. nonstopux*) version_type=nonstopux ;;
  14914. *)
  14915. if test yes = "$lt_cv_prog_gnu_ld"; then
  14916. version_type=linux # correct to gnu/linux during the next big refactor
  14917. else
  14918. version_type=irix
  14919. fi ;;
  14920. esac
  14921. need_lib_prefix=no
  14922. need_version=no
  14923. soname_spec='$libname$release$shared_ext$major'
  14924. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14925. case $host_os in
  14926. irix5* | nonstopux*)
  14927. libsuff= shlibsuff=
  14928. ;;
  14929. *)
  14930. case $LD in # libtool.m4 will add one of these switches to LD
  14931. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14932. libsuff= shlibsuff= libmagic=32-bit;;
  14933. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14934. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14935. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14936. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14937. *) libsuff= shlibsuff= libmagic=never-match;;
  14938. esac
  14939. ;;
  14940. esac
  14941. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14942. shlibpath_overrides_runpath=no
  14943. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14944. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14945. hardcode_into_libs=yes
  14946. ;;
  14947. # No shared lib support for Linux oldld, aout, or coff.
  14948. linux*oldld* | linux*aout* | linux*coff*)
  14949. dynamic_linker=no
  14950. ;;
  14951. linux*android*)
  14952. version_type=none # Android doesn't support versioned libraries.
  14953. need_lib_prefix=no
  14954. need_version=no
  14955. library_names_spec='$libname$release$shared_ext'
  14956. soname_spec='$libname$release$shared_ext'
  14957. finish_cmds=
  14958. shlibpath_var=LD_LIBRARY_PATH
  14959. shlibpath_overrides_runpath=yes
  14960. # This implies no fast_install, which is unacceptable.
  14961. # Some rework will be needed to allow for fast_install
  14962. # before this can be enabled.
  14963. hardcode_into_libs=yes
  14964. dynamic_linker='Android linker'
  14965. # Don't embed -rpath directories since the linker doesn't support them.
  14966. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14967. ;;
  14968. # This must be glibc/ELF.
  14969. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14970. version_type=linux # correct to gnu/linux during the next big refactor
  14971. need_lib_prefix=no
  14972. need_version=no
  14973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14974. soname_spec='$libname$release$shared_ext$major'
  14975. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14976. shlibpath_var=LD_LIBRARY_PATH
  14977. shlibpath_overrides_runpath=no
  14978. # Some binutils ld are patched to set DT_RUNPATH
  14979. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14980. $as_echo_n "(cached) " >&6
  14981. else
  14982. lt_cv_shlibpath_overrides_runpath=no
  14983. save_LDFLAGS=$LDFLAGS
  14984. save_libdir=$libdir
  14985. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14986. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14988. /* end confdefs.h. */
  14989. int
  14990. main ()
  14991. {
  14992. ;
  14993. return 0;
  14994. }
  14995. _ACEOF
  14996. if ac_fn_cxx_try_link "$LINENO"; then :
  14997. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14998. lt_cv_shlibpath_overrides_runpath=yes
  14999. fi
  15000. fi
  15001. rm -f core conftest.err conftest.$ac_objext \
  15002. conftest$ac_exeext conftest.$ac_ext
  15003. LDFLAGS=$save_LDFLAGS
  15004. libdir=$save_libdir
  15005. fi
  15006. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15007. # This implies no fast_install, which is unacceptable.
  15008. # Some rework will be needed to allow for fast_install
  15009. # before this can be enabled.
  15010. hardcode_into_libs=yes
  15011. # Ideally, we could use ldconfig to report *all* directores which are
  15012. # searched for libraries, however this is still not possible. Aside from not
  15013. # being certain /sbin/ldconfig is available, command
  15014. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15015. # even though it is searched at run-time. Try to do the best guess by
  15016. # appending ld.so.conf contents (and includes) to the search path.
  15017. if test -f /etc/ld.so.conf; then
  15018. 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' ' '`
  15019. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15020. fi
  15021. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15022. # powerpc, because MkLinux only supported shared libraries with the
  15023. # GNU dynamic linker. Since this was broken with cross compilers,
  15024. # most powerpc-linux boxes support dynamic linking these days and
  15025. # people can always --disable-shared, the test was removed, and we
  15026. # assume the GNU/Linux dynamic linker is in use.
  15027. dynamic_linker='GNU/Linux ld.so'
  15028. ;;
  15029. netbsdelf*-gnu)
  15030. version_type=linux
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15034. soname_spec='${libname}${release}${shared_ext}$major'
  15035. shlibpath_var=LD_LIBRARY_PATH
  15036. shlibpath_overrides_runpath=no
  15037. hardcode_into_libs=yes
  15038. dynamic_linker='NetBSD ld.elf_so'
  15039. ;;
  15040. netbsd*)
  15041. version_type=sunos
  15042. need_lib_prefix=no
  15043. need_version=no
  15044. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15045. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15046. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15047. dynamic_linker='NetBSD (a.out) ld.so'
  15048. else
  15049. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15050. soname_spec='$libname$release$shared_ext$major'
  15051. dynamic_linker='NetBSD ld.elf_so'
  15052. fi
  15053. shlibpath_var=LD_LIBRARY_PATH
  15054. shlibpath_overrides_runpath=yes
  15055. hardcode_into_libs=yes
  15056. ;;
  15057. newsos6)
  15058. version_type=linux # correct to gnu/linux during the next big refactor
  15059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15060. shlibpath_var=LD_LIBRARY_PATH
  15061. shlibpath_overrides_runpath=yes
  15062. ;;
  15063. *nto* | *qnx*)
  15064. version_type=qnx
  15065. need_lib_prefix=no
  15066. need_version=no
  15067. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15068. soname_spec='$libname$release$shared_ext$major'
  15069. shlibpath_var=LD_LIBRARY_PATH
  15070. shlibpath_overrides_runpath=no
  15071. hardcode_into_libs=yes
  15072. dynamic_linker='ldqnx.so'
  15073. ;;
  15074. openbsd* | bitrig*)
  15075. version_type=sunos
  15076. sys_lib_dlsearch_path_spec=/usr/lib
  15077. need_lib_prefix=no
  15078. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15079. need_version=no
  15080. else
  15081. need_version=yes
  15082. fi
  15083. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15085. shlibpath_var=LD_LIBRARY_PATH
  15086. shlibpath_overrides_runpath=yes
  15087. ;;
  15088. os2*)
  15089. libname_spec='$name'
  15090. version_type=windows
  15091. shrext_cmds=.dll
  15092. need_version=no
  15093. need_lib_prefix=no
  15094. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15095. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15096. v=$($ECHO $release$versuffix | tr -d .-);
  15097. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15098. $ECHO $n$v`$shared_ext'
  15099. library_names_spec='${libname}_dll.$libext'
  15100. dynamic_linker='OS/2 ld.exe'
  15101. shlibpath_var=BEGINLIBPATH
  15102. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15103. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15104. postinstall_cmds='base_file=`basename \$file`~
  15105. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15106. dldir=$destdir/`dirname \$dlpath`~
  15107. test -d \$dldir || mkdir -p \$dldir~
  15108. $install_prog $dir/$dlname \$dldir/$dlname~
  15109. chmod a+x \$dldir/$dlname~
  15110. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15111. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15112. fi'
  15113. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15114. dlpath=$dir/\$dldll~
  15115. $RM \$dlpath'
  15116. ;;
  15117. osf3* | osf4* | osf5*)
  15118. version_type=osf
  15119. need_lib_prefix=no
  15120. need_version=no
  15121. soname_spec='$libname$release$shared_ext$major'
  15122. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15125. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15126. ;;
  15127. rdos*)
  15128. dynamic_linker=no
  15129. ;;
  15130. solaris*)
  15131. version_type=linux # correct to gnu/linux during the next big refactor
  15132. need_lib_prefix=no
  15133. need_version=no
  15134. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15135. soname_spec='$libname$release$shared_ext$major'
  15136. shlibpath_var=LD_LIBRARY_PATH
  15137. shlibpath_overrides_runpath=yes
  15138. hardcode_into_libs=yes
  15139. # ldd complains unless libraries are executable
  15140. postinstall_cmds='chmod +x $lib'
  15141. ;;
  15142. sunos4*)
  15143. version_type=sunos
  15144. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15145. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15146. shlibpath_var=LD_LIBRARY_PATH
  15147. shlibpath_overrides_runpath=yes
  15148. if test yes = "$with_gnu_ld"; then
  15149. need_lib_prefix=no
  15150. fi
  15151. need_version=yes
  15152. ;;
  15153. sysv4 | sysv4.3*)
  15154. version_type=linux # correct to gnu/linux during the next big refactor
  15155. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15156. soname_spec='$libname$release$shared_ext$major'
  15157. shlibpath_var=LD_LIBRARY_PATH
  15158. case $host_vendor in
  15159. sni)
  15160. shlibpath_overrides_runpath=no
  15161. need_lib_prefix=no
  15162. runpath_var=LD_RUN_PATH
  15163. ;;
  15164. siemens)
  15165. need_lib_prefix=no
  15166. ;;
  15167. motorola)
  15168. need_lib_prefix=no
  15169. need_version=no
  15170. shlibpath_overrides_runpath=no
  15171. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15172. ;;
  15173. esac
  15174. ;;
  15175. sysv4*MP*)
  15176. if test -d /usr/nec; then
  15177. version_type=linux # correct to gnu/linux during the next big refactor
  15178. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15179. soname_spec='$libname$shared_ext.$major'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. fi
  15182. ;;
  15183. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15184. version_type=sco
  15185. need_lib_prefix=no
  15186. need_version=no
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15188. soname_spec='$libname$release$shared_ext$major'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. shlibpath_overrides_runpath=yes
  15191. hardcode_into_libs=yes
  15192. if test yes = "$with_gnu_ld"; then
  15193. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15194. else
  15195. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15196. case $host_os in
  15197. sco3.2v5*)
  15198. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15199. ;;
  15200. esac
  15201. fi
  15202. sys_lib_dlsearch_path_spec='/usr/lib'
  15203. ;;
  15204. tpf*)
  15205. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15206. version_type=linux # correct to gnu/linux during the next big refactor
  15207. need_lib_prefix=no
  15208. need_version=no
  15209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15210. shlibpath_var=LD_LIBRARY_PATH
  15211. shlibpath_overrides_runpath=no
  15212. hardcode_into_libs=yes
  15213. ;;
  15214. uts4*)
  15215. version_type=linux # correct to gnu/linux during the next big refactor
  15216. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15217. soname_spec='$libname$release$shared_ext$major'
  15218. shlibpath_var=LD_LIBRARY_PATH
  15219. ;;
  15220. *)
  15221. dynamic_linker=no
  15222. ;;
  15223. esac
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15225. $as_echo "$dynamic_linker" >&6; }
  15226. test no = "$dynamic_linker" && can_build_shared=no
  15227. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15228. if test yes = "$GCC"; then
  15229. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15230. fi
  15231. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15232. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15233. fi
  15234. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15235. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15236. fi
  15237. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15238. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15239. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15240. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15241. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15242. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15244. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15245. hardcode_action_CXX=
  15246. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15247. test -n "$runpath_var_CXX" ||
  15248. test yes = "$hardcode_automatic_CXX"; then
  15249. # We can hardcode non-existent directories.
  15250. if test no != "$hardcode_direct_CXX" &&
  15251. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15252. # have to relink, otherwise we might link with an installed library
  15253. # when we should be linking with a yet-to-be-installed one
  15254. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15255. test no != "$hardcode_minus_L_CXX"; then
  15256. # Linking always hardcodes the temporary library directory.
  15257. hardcode_action_CXX=relink
  15258. else
  15259. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15260. hardcode_action_CXX=immediate
  15261. fi
  15262. else
  15263. # We cannot hardcode anything, or else we can only hardcode existing
  15264. # directories.
  15265. hardcode_action_CXX=unsupported
  15266. fi
  15267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15268. $as_echo "$hardcode_action_CXX" >&6; }
  15269. if test relink = "$hardcode_action_CXX" ||
  15270. test yes = "$inherit_rpath_CXX"; then
  15271. # Fast installation is not supported
  15272. enable_fast_install=no
  15273. elif test yes = "$shlibpath_overrides_runpath" ||
  15274. test no = "$enable_shared"; then
  15275. # Fast installation is not necessary
  15276. enable_fast_install=needless
  15277. fi
  15278. fi # test -n "$compiler"
  15279. CC=$lt_save_CC
  15280. CFLAGS=$lt_save_CFLAGS
  15281. LDCXX=$LD
  15282. LD=$lt_save_LD
  15283. GCC=$lt_save_GCC
  15284. with_gnu_ld=$lt_save_with_gnu_ld
  15285. lt_cv_path_LDCXX=$lt_cv_path_LD
  15286. lt_cv_path_LD=$lt_save_path_LD
  15287. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15288. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15289. fi # test yes != "$_lt_caught_CXX_error"
  15290. ac_ext=c
  15291. ac_cpp='$CPP $CPPFLAGS'
  15292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15295. ac_ext=c
  15296. ac_cpp='$CPP $CPPFLAGS'
  15297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15301. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15302. # On Suns, sometimes $CPP names a directory.
  15303. if test -n "$CPP" && test -d "$CPP"; then
  15304. CPP=
  15305. fi
  15306. if test -z "$CPP"; then
  15307. if ${ac_cv_prog_CPP+:} false; then :
  15308. $as_echo_n "(cached) " >&6
  15309. else
  15310. # Double quotes because CPP needs to be expanded
  15311. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15312. do
  15313. ac_preproc_ok=false
  15314. for ac_c_preproc_warn_flag in '' yes
  15315. do
  15316. # Use a header file that comes with gcc, so configuring glibc
  15317. # with a fresh cross-compiler works.
  15318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15319. # <limits.h> exists even on freestanding compilers.
  15320. # On the NeXT, cc -E runs the code through the compiler's parser,
  15321. # not just through cpp. "Syntax error" is here to catch this case.
  15322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15323. /* end confdefs.h. */
  15324. #ifdef __STDC__
  15325. # include <limits.h>
  15326. #else
  15327. # include <assert.h>
  15328. #endif
  15329. Syntax error
  15330. _ACEOF
  15331. if ac_fn_c_try_cpp "$LINENO"; then :
  15332. else
  15333. # Broken: fails on valid input.
  15334. continue
  15335. fi
  15336. rm -f conftest.err conftest.i conftest.$ac_ext
  15337. # OK, works on sane cases. Now check whether nonexistent headers
  15338. # can be detected and how.
  15339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15340. /* end confdefs.h. */
  15341. #include <ac_nonexistent.h>
  15342. _ACEOF
  15343. if ac_fn_c_try_cpp "$LINENO"; then :
  15344. # Broken: success on invalid input.
  15345. continue
  15346. else
  15347. # Passes both tests.
  15348. ac_preproc_ok=:
  15349. break
  15350. fi
  15351. rm -f conftest.err conftest.i conftest.$ac_ext
  15352. done
  15353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15354. rm -f conftest.i conftest.err conftest.$ac_ext
  15355. if $ac_preproc_ok; then :
  15356. break
  15357. fi
  15358. done
  15359. ac_cv_prog_CPP=$CPP
  15360. fi
  15361. CPP=$ac_cv_prog_CPP
  15362. else
  15363. ac_cv_prog_CPP=$CPP
  15364. fi
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15366. $as_echo "$CPP" >&6; }
  15367. ac_preproc_ok=false
  15368. for ac_c_preproc_warn_flag in '' yes
  15369. do
  15370. # Use a header file that comes with gcc, so configuring glibc
  15371. # with a fresh cross-compiler works.
  15372. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15373. # <limits.h> exists even on freestanding compilers.
  15374. # On the NeXT, cc -E runs the code through the compiler's parser,
  15375. # not just through cpp. "Syntax error" is here to catch this case.
  15376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15377. /* end confdefs.h. */
  15378. #ifdef __STDC__
  15379. # include <limits.h>
  15380. #else
  15381. # include <assert.h>
  15382. #endif
  15383. Syntax error
  15384. _ACEOF
  15385. if ac_fn_c_try_cpp "$LINENO"; then :
  15386. else
  15387. # Broken: fails on valid input.
  15388. continue
  15389. fi
  15390. rm -f conftest.err conftest.i conftest.$ac_ext
  15391. # OK, works on sane cases. Now check whether nonexistent headers
  15392. # can be detected and how.
  15393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15394. /* end confdefs.h. */
  15395. #include <ac_nonexistent.h>
  15396. _ACEOF
  15397. if ac_fn_c_try_cpp "$LINENO"; then :
  15398. # Broken: success on invalid input.
  15399. continue
  15400. else
  15401. # Passes both tests.
  15402. ac_preproc_ok=:
  15403. break
  15404. fi
  15405. rm -f conftest.err conftest.i conftest.$ac_ext
  15406. done
  15407. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15408. rm -f conftest.i conftest.err conftest.$ac_ext
  15409. if $ac_preproc_ok; then :
  15410. else
  15411. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15412. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15413. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15414. See \`config.log' for more details" "$LINENO" 5; }
  15415. fi
  15416. ac_ext=c
  15417. ac_cpp='$CPP $CPPFLAGS'
  15418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15422. $as_echo_n "checking whether ln -s works... " >&6; }
  15423. LN_S=$as_ln_s
  15424. if test "$LN_S" = "ln -s"; then
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15426. $as_echo "yes" >&6; }
  15427. else
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15429. $as_echo "no, using $LN_S" >&6; }
  15430. fi
  15431. for ac_prog in gawk mawk nawk awk
  15432. do
  15433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15434. set dummy $ac_prog; ac_word=$2
  15435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15436. $as_echo_n "checking for $ac_word... " >&6; }
  15437. if ${ac_cv_prog_AWK+:} false; then :
  15438. $as_echo_n "(cached) " >&6
  15439. else
  15440. if test -n "$AWK"; then
  15441. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15442. else
  15443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15444. for as_dir in $PATH
  15445. do
  15446. IFS=$as_save_IFS
  15447. test -z "$as_dir" && as_dir=.
  15448. for ac_exec_ext in '' $ac_executable_extensions; do
  15449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15450. ac_cv_prog_AWK="$ac_prog"
  15451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15452. break 2
  15453. fi
  15454. done
  15455. done
  15456. IFS=$as_save_IFS
  15457. fi
  15458. fi
  15459. AWK=$ac_cv_prog_AWK
  15460. if test -n "$AWK"; then
  15461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15462. $as_echo "$AWK" >&6; }
  15463. else
  15464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15465. $as_echo "no" >&6; }
  15466. fi
  15467. test -n "$AWK" && break
  15468. done
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15470. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15471. if ${ac_cv_path_SED+:} false; then :
  15472. $as_echo_n "(cached) " >&6
  15473. else
  15474. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15475. for ac_i in 1 2 3 4 5 6 7; do
  15476. ac_script="$ac_script$as_nl$ac_script"
  15477. done
  15478. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15479. { ac_script=; unset ac_script;}
  15480. if test -z "$SED"; then
  15481. ac_path_SED_found=false
  15482. # Loop through the user's path and test for each of PROGNAME-LIST
  15483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15484. for as_dir in $PATH
  15485. do
  15486. IFS=$as_save_IFS
  15487. test -z "$as_dir" && as_dir=.
  15488. for ac_prog in sed gsed; do
  15489. for ac_exec_ext in '' $ac_executable_extensions; do
  15490. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15491. as_fn_executable_p "$ac_path_SED" || continue
  15492. # Check for GNU ac_path_SED and select it if it is found.
  15493. # Check for GNU $ac_path_SED
  15494. case `"$ac_path_SED" --version 2>&1` in
  15495. *GNU*)
  15496. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15497. *)
  15498. ac_count=0
  15499. $as_echo_n 0123456789 >"conftest.in"
  15500. while :
  15501. do
  15502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15503. mv "conftest.tmp" "conftest.in"
  15504. cp "conftest.in" "conftest.nl"
  15505. $as_echo '' >> "conftest.nl"
  15506. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15509. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15510. # Best one so far, save it but keep looking for a better one
  15511. ac_cv_path_SED="$ac_path_SED"
  15512. ac_path_SED_max=$ac_count
  15513. fi
  15514. # 10*(2^10) chars as input seems more than enough
  15515. test $ac_count -gt 10 && break
  15516. done
  15517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15518. esac
  15519. $ac_path_SED_found && break 3
  15520. done
  15521. done
  15522. done
  15523. IFS=$as_save_IFS
  15524. if test -z "$ac_cv_path_SED"; then
  15525. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15526. fi
  15527. else
  15528. ac_cv_path_SED=$SED
  15529. fi
  15530. fi
  15531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15532. $as_echo "$ac_cv_path_SED" >&6; }
  15533. SED="$ac_cv_path_SED"
  15534. rm -f conftest.sed
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15536. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15537. set x ${MAKE-make}
  15538. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15539. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15540. $as_echo_n "(cached) " >&6
  15541. else
  15542. cat >conftest.make <<\_ACEOF
  15543. SHELL = /bin/sh
  15544. all:
  15545. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15546. _ACEOF
  15547. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15548. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15549. *@@@%%%=?*=@@@%%%*)
  15550. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15551. *)
  15552. eval ac_cv_prog_make_${ac_make}_set=no;;
  15553. esac
  15554. rm -f conftest.make
  15555. fi
  15556. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15558. $as_echo "yes" >&6; }
  15559. SET_MAKE=
  15560. else
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15562. $as_echo "no" >&6; }
  15563. SET_MAKE="MAKE=${MAKE-make}"
  15564. fi
  15565. # Extract the first word of "printf", so it can be a program name with args.
  15566. set dummy printf; ac_word=$2
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15568. $as_echo_n "checking for $ac_word... " >&6; }
  15569. if ${ac_cv_path_PRINTF+:} false; then :
  15570. $as_echo_n "(cached) " >&6
  15571. else
  15572. case $PRINTF in
  15573. [\\/]* | ?:[\\/]*)
  15574. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15575. ;;
  15576. *)
  15577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15578. for as_dir in $PATH
  15579. do
  15580. IFS=$as_save_IFS
  15581. test -z "$as_dir" && as_dir=.
  15582. for ac_exec_ext in '' $ac_executable_extensions; do
  15583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15584. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15586. break 2
  15587. fi
  15588. done
  15589. done
  15590. IFS=$as_save_IFS
  15591. ;;
  15592. esac
  15593. fi
  15594. PRINTF=$ac_cv_path_PRINTF
  15595. if test -n "$PRINTF"; then
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15597. $as_echo "$PRINTF" >&6; }
  15598. else
  15599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15600. $as_echo "no" >&6; }
  15601. fi
  15602. # Extract the first word of "echo", so it can be a program name with args.
  15603. set dummy echo; ac_word=$2
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15605. $as_echo_n "checking for $ac_word... " >&6; }
  15606. if ${ac_cv_path_ECHO+:} false; then :
  15607. $as_echo_n "(cached) " >&6
  15608. else
  15609. case $ECHO in
  15610. [\\/]* | ?:[\\/]*)
  15611. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15612. ;;
  15613. *)
  15614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15615. for as_dir in $PATH
  15616. do
  15617. IFS=$as_save_IFS
  15618. test -z "$as_dir" && as_dir=.
  15619. for ac_exec_ext in '' $ac_executable_extensions; do
  15620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15621. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15623. break 2
  15624. fi
  15625. done
  15626. done
  15627. IFS=$as_save_IFS
  15628. ;;
  15629. esac
  15630. fi
  15631. ECHO=$ac_cv_path_ECHO
  15632. if test -n "$ECHO"; then
  15633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15634. $as_echo "$ECHO" >&6; }
  15635. else
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15637. $as_echo "no" >&6; }
  15638. fi
  15639. # Extract the first word of "cut", so it can be a program name with args.
  15640. set dummy cut; ac_word=$2
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15642. $as_echo_n "checking for $ac_word... " >&6; }
  15643. if ${ac_cv_path_CUT+:} false; then :
  15644. $as_echo_n "(cached) " >&6
  15645. else
  15646. case $CUT in
  15647. [\\/]* | ?:[\\/]*)
  15648. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15649. ;;
  15650. *)
  15651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15652. for as_dir in $PATH
  15653. do
  15654. IFS=$as_save_IFS
  15655. test -z "$as_dir" && as_dir=.
  15656. for ac_exec_ext in '' $ac_executable_extensions; do
  15657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15658. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15660. break 2
  15661. fi
  15662. done
  15663. done
  15664. IFS=$as_save_IFS
  15665. ;;
  15666. esac
  15667. fi
  15668. CUT=$ac_cv_path_CUT
  15669. if test -n "$CUT"; then
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15671. $as_echo "$CUT" >&6; }
  15672. else
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. $as_echo "no" >&6; }
  15675. fi
  15676. # Extract the first word of "autogen", so it can be a program name with args.
  15677. set dummy autogen; ac_word=$2
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15679. $as_echo_n "checking for $ac_word... " >&6; }
  15680. if ${ac_cv_path_AUTOGEN+:} false; then :
  15681. $as_echo_n "(cached) " >&6
  15682. else
  15683. case $AUTOGEN in
  15684. [\\/]* | ?:[\\/]*)
  15685. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15686. ;;
  15687. *)
  15688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15689. for as_dir in $PATH
  15690. do
  15691. IFS=$as_save_IFS
  15692. test -z "$as_dir" && as_dir=.
  15693. for ac_exec_ext in '' $ac_executable_extensions; do
  15694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15695. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15697. break 2
  15698. fi
  15699. done
  15700. done
  15701. IFS=$as_save_IFS
  15702. ;;
  15703. esac
  15704. fi
  15705. AUTOGEN=$ac_cv_path_AUTOGEN
  15706. if test -n "$AUTOGEN"; then
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15708. $as_echo "$AUTOGEN" >&6; }
  15709. else
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15711. $as_echo "no" >&6; }
  15712. fi
  15713. # Extract the first word of "groff", so it can be a program name with args.
  15714. set dummy groff; ac_word=$2
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15716. $as_echo_n "checking for $ac_word... " >&6; }
  15717. if ${ac_cv_path_GROFF+:} false; then :
  15718. $as_echo_n "(cached) " >&6
  15719. else
  15720. case $GROFF in
  15721. [\\/]* | ?:[\\/]*)
  15722. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15723. ;;
  15724. *)
  15725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15726. for as_dir in $PATH
  15727. do
  15728. IFS=$as_save_IFS
  15729. test -z "$as_dir" && as_dir=.
  15730. for ac_exec_ext in '' $ac_executable_extensions; do
  15731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15732. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15734. break 2
  15735. fi
  15736. done
  15737. done
  15738. IFS=$as_save_IFS
  15739. ;;
  15740. esac
  15741. fi
  15742. GROFF=$ac_cv_path_GROFF
  15743. if test -n "$GROFF"; then
  15744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15745. $as_echo "$GROFF" >&6; }
  15746. else
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15748. $as_echo "no" >&6; }
  15749. fi
  15750. # Extract the first word of "depmod", so it can be a program name with args.
  15751. set dummy depmod; ac_word=$2
  15752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15753. $as_echo_n "checking for $ac_word... " >&6; }
  15754. if ${ac_cv_path_depmod+:} false; then :
  15755. $as_echo_n "(cached) " >&6
  15756. else
  15757. case $depmod in
  15758. [\\/]* | ?:[\\/]*)
  15759. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15760. ;;
  15761. *)
  15762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15763. as_dummy="$PATH:/sbin"
  15764. for as_dir in $as_dummy
  15765. do
  15766. IFS=$as_save_IFS
  15767. test -z "$as_dir" && as_dir=.
  15768. for ac_exec_ext in '' $ac_executable_extensions; do
  15769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15770. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15772. break 2
  15773. fi
  15774. done
  15775. done
  15776. IFS=$as_save_IFS
  15777. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15778. ;;
  15779. esac
  15780. fi
  15781. depmod=$ac_cv_path_depmod
  15782. if test -n "$depmod"; then
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15784. $as_echo "$depmod" >&6; }
  15785. else
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15787. $as_echo "no" >&6; }
  15788. fi
  15789. # Extract the first word of "insmod", so it can be a program name with args.
  15790. set dummy insmod; ac_word=$2
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15792. $as_echo_n "checking for $ac_word... " >&6; }
  15793. if ${ac_cv_path_insmod+:} false; then :
  15794. $as_echo_n "(cached) " >&6
  15795. else
  15796. case $insmod in
  15797. [\\/]* | ?:[\\/]*)
  15798. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15799. ;;
  15800. *)
  15801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15802. as_dummy="$PATH:/sbin"
  15803. for as_dir in $as_dummy
  15804. do
  15805. IFS=$as_save_IFS
  15806. test -z "$as_dir" && as_dir=.
  15807. for ac_exec_ext in '' $ac_executable_extensions; do
  15808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15809. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15811. break 2
  15812. fi
  15813. done
  15814. done
  15815. IFS=$as_save_IFS
  15816. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15817. ;;
  15818. esac
  15819. fi
  15820. insmod=$ac_cv_path_insmod
  15821. if test -n "$insmod"; then
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15823. $as_echo "$insmod" >&6; }
  15824. else
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15826. $as_echo "no" >&6; }
  15827. fi
  15828. # Extract the first word of "rmmod", so it can be a program name with args.
  15829. set dummy rmmod; ac_word=$2
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15831. $as_echo_n "checking for $ac_word... " >&6; }
  15832. if ${ac_cv_path_rmmod+:} false; then :
  15833. $as_echo_n "(cached) " >&6
  15834. else
  15835. case $rmmod in
  15836. [\\/]* | ?:[\\/]*)
  15837. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15838. ;;
  15839. *)
  15840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15841. as_dummy="$PATH:/sbin"
  15842. for as_dir in $as_dummy
  15843. do
  15844. IFS=$as_save_IFS
  15845. test -z "$as_dir" && as_dir=.
  15846. for ac_exec_ext in '' $ac_executable_extensions; do
  15847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15848. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15850. break 2
  15851. fi
  15852. done
  15853. done
  15854. IFS=$as_save_IFS
  15855. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15856. ;;
  15857. esac
  15858. fi
  15859. rmmod=$ac_cv_path_rmmod
  15860. if test -n "$rmmod"; then
  15861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15862. $as_echo "$rmmod" >&6; }
  15863. else
  15864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15865. $as_echo "no" >&6; }
  15866. fi
  15867. case "${enable_local_libopts+set}" in
  15868. set) ;;
  15869. *) enable_local_libopts=yes ;;
  15870. esac
  15871. case "${enable_libopts_install+set}" in
  15872. set) ;;
  15873. *) enable_libopts_install=no ;;
  15874. esac
  15875. AUTOGEN_VERSION="unknown - man pages will not be built"
  15876. if test -n "${AUTOGEN}" ; then
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15878. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15879. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15880. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15881. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15882. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15883. if test -z "$AUTOGEN_BUILD"; then
  15884. AUTOGEN_BUILD=0
  15885. fi
  15886. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15887. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15888. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15890. $as_echo "no" >&6; }
  15891. if test ! "x$enable_local_libopts" = "xyes"; then
  15892. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15893. fi
  15894. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15895. else
  15896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15897. $as_echo "yes" >&6; }
  15898. fi
  15899. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15900. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15901. 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
  15902. fi
  15903. fi
  15904. else
  15905. if test ! -f src/tcpreplay_opts.c ; then
  15906. 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
  15907. fi
  15908. fi
  15909. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15910. if test "x$enable_local_libopts" = "xyes" ; then
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15912. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15913. else
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15915. $as_echo "$as_me: Using system libopts" >&6;}
  15916. fi
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15918. $as_echo_n "checking for egrep... " >&6; }
  15919. if ${ac_cv_path_EGREP+:} false; then :
  15920. $as_echo_n "(cached) " >&6
  15921. else
  15922. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15923. then ac_cv_path_EGREP="$GREP -E"
  15924. else
  15925. if test -z "$EGREP"; then
  15926. ac_path_EGREP_found=false
  15927. # Loop through the user's path and test for each of PROGNAME-LIST
  15928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15929. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15930. do
  15931. IFS=$as_save_IFS
  15932. test -z "$as_dir" && as_dir=.
  15933. for ac_prog in egrep; do
  15934. for ac_exec_ext in '' $ac_executable_extensions; do
  15935. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15936. as_fn_executable_p "$ac_path_EGREP" || continue
  15937. # Check for GNU ac_path_EGREP and select it if it is found.
  15938. # Check for GNU $ac_path_EGREP
  15939. case `"$ac_path_EGREP" --version 2>&1` in
  15940. *GNU*)
  15941. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15942. *)
  15943. ac_count=0
  15944. $as_echo_n 0123456789 >"conftest.in"
  15945. while :
  15946. do
  15947. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15948. mv "conftest.tmp" "conftest.in"
  15949. cp "conftest.in" "conftest.nl"
  15950. $as_echo 'EGREP' >> "conftest.nl"
  15951. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15952. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15953. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15954. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15955. # Best one so far, save it but keep looking for a better one
  15956. ac_cv_path_EGREP="$ac_path_EGREP"
  15957. ac_path_EGREP_max=$ac_count
  15958. fi
  15959. # 10*(2^10) chars as input seems more than enough
  15960. test $ac_count -gt 10 && break
  15961. done
  15962. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15963. esac
  15964. $ac_path_EGREP_found && break 3
  15965. done
  15966. done
  15967. done
  15968. IFS=$as_save_IFS
  15969. if test -z "$ac_cv_path_EGREP"; then
  15970. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15971. fi
  15972. else
  15973. ac_cv_path_EGREP=$EGREP
  15974. fi
  15975. fi
  15976. fi
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15978. $as_echo "$ac_cv_path_EGREP" >&6; }
  15979. EGREP="$ac_cv_path_EGREP"
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15981. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15982. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15983. $as_echo_n "(cached) " >&6
  15984. else
  15985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15986. /* end confdefs.h. */
  15987. #include <sys/types.h>
  15988. int
  15989. main ()
  15990. {
  15991. return makedev(0, 0);
  15992. ;
  15993. return 0;
  15994. }
  15995. _ACEOF
  15996. if ac_fn_c_try_link "$LINENO"; then :
  15997. ac_cv_header_sys_types_h_makedev=yes
  15998. else
  15999. ac_cv_header_sys_types_h_makedev=no
  16000. fi
  16001. rm -f core conftest.err conftest.$ac_objext \
  16002. conftest$ac_exeext conftest.$ac_ext
  16003. fi
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  16005. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16006. if test $ac_cv_header_sys_types_h_makedev = no; then
  16007. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16008. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16009. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16010. fi
  16011. if test $ac_cv_header_sys_mkdev_h = no; then
  16012. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16013. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16014. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16015. fi
  16016. fi
  16017. fi
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16019. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16020. if ${ac_cv_header_stdbool_h+:} false; then :
  16021. $as_echo_n "(cached) " >&6
  16022. else
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. #include <stdbool.h>
  16026. #ifndef bool
  16027. "error: bool is not defined"
  16028. #endif
  16029. #ifndef false
  16030. "error: false is not defined"
  16031. #endif
  16032. #if false
  16033. "error: false is not 0"
  16034. #endif
  16035. #ifndef true
  16036. "error: true is not defined"
  16037. #endif
  16038. #if true != 1
  16039. "error: true is not 1"
  16040. #endif
  16041. #ifndef __bool_true_false_are_defined
  16042. "error: __bool_true_false_are_defined is not defined"
  16043. #endif
  16044. struct s { _Bool s: 1; _Bool t; } s;
  16045. char a[true == 1 ? 1 : -1];
  16046. char b[false == 0 ? 1 : -1];
  16047. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16048. char d[(bool) 0.5 == true ? 1 : -1];
  16049. /* See body of main program for 'e'. */
  16050. char f[(_Bool) 0.0 == false ? 1 : -1];
  16051. char g[true];
  16052. char h[sizeof (_Bool)];
  16053. char i[sizeof s.t];
  16054. enum { j = false, k = true, l = false * true, m = true * 256 };
  16055. /* The following fails for
  16056. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16057. _Bool n[m];
  16058. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16059. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16060. /* Catch a bug in an HP-UX C compiler. See
  16061. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16062. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16063. */
  16064. _Bool q = true;
  16065. _Bool *pq = &q;
  16066. int
  16067. main ()
  16068. {
  16069. bool e = &s;
  16070. *pq |= q;
  16071. *pq |= ! q;
  16072. /* Refer to every declared value, to avoid compiler optimizations. */
  16073. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16074. + !m + !n + !o + !p + !q + !pq);
  16075. ;
  16076. return 0;
  16077. }
  16078. _ACEOF
  16079. if ac_fn_c_try_compile "$LINENO"; then :
  16080. ac_cv_header_stdbool_h=yes
  16081. else
  16082. ac_cv_header_stdbool_h=no
  16083. fi
  16084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16085. fi
  16086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16087. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16088. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16089. if test "x$ac_cv_type__Bool" = xyes; then :
  16090. cat >>confdefs.h <<_ACEOF
  16091. #define HAVE__BOOL 1
  16092. _ACEOF
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16095. $as_echo_n "checking for inline... " >&6; }
  16096. if ${ac_cv_c_inline+:} false; then :
  16097. $as_echo_n "(cached) " >&6
  16098. else
  16099. ac_cv_c_inline=no
  16100. for ac_kw in inline __inline__ __inline; do
  16101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16102. /* end confdefs.h. */
  16103. #ifndef __cplusplus
  16104. typedef int foo_t;
  16105. static $ac_kw foo_t static_foo () {return 0; }
  16106. $ac_kw foo_t foo () {return 0; }
  16107. #endif
  16108. _ACEOF
  16109. if ac_fn_c_try_compile "$LINENO"; then :
  16110. ac_cv_c_inline=$ac_kw
  16111. fi
  16112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16113. test "$ac_cv_c_inline" != no && break
  16114. done
  16115. fi
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16117. $as_echo "$ac_cv_c_inline" >&6; }
  16118. case $ac_cv_c_inline in
  16119. inline | yes) ;;
  16120. *)
  16121. case $ac_cv_c_inline in
  16122. no) ac_val=;;
  16123. *) ac_val=$ac_cv_c_inline;;
  16124. esac
  16125. cat >>confdefs.h <<_ACEOF
  16126. #ifndef __cplusplus
  16127. #define inline $ac_val
  16128. #endif
  16129. _ACEOF
  16130. ;;
  16131. esac
  16132. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16133. case $ac_cv_c_int16_t in #(
  16134. no|yes) ;; #(
  16135. *)
  16136. cat >>confdefs.h <<_ACEOF
  16137. #define int16_t $ac_cv_c_int16_t
  16138. _ACEOF
  16139. ;;
  16140. esac
  16141. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16142. case $ac_cv_c_int32_t in #(
  16143. no|yes) ;; #(
  16144. *)
  16145. cat >>confdefs.h <<_ACEOF
  16146. #define int32_t $ac_cv_c_int32_t
  16147. _ACEOF
  16148. ;;
  16149. esac
  16150. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16151. case $ac_cv_c_int64_t in #(
  16152. no|yes) ;; #(
  16153. *)
  16154. cat >>confdefs.h <<_ACEOF
  16155. #define int64_t $ac_cv_c_int64_t
  16156. _ACEOF
  16157. ;;
  16158. esac
  16159. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16160. case $ac_cv_c_int8_t in #(
  16161. no|yes) ;; #(
  16162. *)
  16163. cat >>confdefs.h <<_ACEOF
  16164. #define int8_t $ac_cv_c_int8_t
  16165. _ACEOF
  16166. ;;
  16167. esac
  16168. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16169. if test "x$ac_cv_type_off_t" = xyes; then :
  16170. else
  16171. cat >>confdefs.h <<_ACEOF
  16172. #define off_t long int
  16173. _ACEOF
  16174. fi
  16175. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16176. if test "x$ac_cv_type_pid_t" = xyes; then :
  16177. else
  16178. cat >>confdefs.h <<_ACEOF
  16179. #define pid_t int
  16180. _ACEOF
  16181. fi
  16182. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16183. if test "x$ac_cv_type_size_t" = xyes; then :
  16184. else
  16185. cat >>confdefs.h <<_ACEOF
  16186. #define size_t unsigned int
  16187. _ACEOF
  16188. fi
  16189. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16190. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16191. else
  16192. cat >>confdefs.h <<_ACEOF
  16193. #define ssize_t int
  16194. _ACEOF
  16195. fi
  16196. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16197. case $ac_cv_c_uint16_t in #(
  16198. no|yes) ;; #(
  16199. *)
  16200. cat >>confdefs.h <<_ACEOF
  16201. #define uint16_t $ac_cv_c_uint16_t
  16202. _ACEOF
  16203. ;;
  16204. esac
  16205. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16206. case $ac_cv_c_uint32_t in #(
  16207. no|yes) ;; #(
  16208. *)
  16209. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16210. cat >>confdefs.h <<_ACEOF
  16211. #define uint32_t $ac_cv_c_uint32_t
  16212. _ACEOF
  16213. ;;
  16214. esac
  16215. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16216. case $ac_cv_c_uint64_t in #(
  16217. no|yes) ;; #(
  16218. *)
  16219. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16220. cat >>confdefs.h <<_ACEOF
  16221. #define uint64_t $ac_cv_c_uint64_t
  16222. _ACEOF
  16223. ;;
  16224. esac
  16225. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16226. case $ac_cv_c_uint8_t in #(
  16227. no|yes) ;; #(
  16228. *)
  16229. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16230. cat >>confdefs.h <<_ACEOF
  16231. #define uint8_t $ac_cv_c_uint8_t
  16232. _ACEOF
  16233. ;;
  16234. esac
  16235. for ac_header in $ac_header_list
  16236. do :
  16237. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16238. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16239. "
  16240. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16241. cat >>confdefs.h <<_ACEOF
  16242. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16243. _ACEOF
  16244. fi
  16245. done
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16247. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16248. if ${ac_cv_c_const+:} false; then :
  16249. $as_echo_n "(cached) " >&6
  16250. else
  16251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16252. /* end confdefs.h. */
  16253. int
  16254. main ()
  16255. {
  16256. #ifndef __cplusplus
  16257. /* Ultrix mips cc rejects this sort of thing. */
  16258. typedef int charset[2];
  16259. const charset cs = { 0, 0 };
  16260. /* SunOS 4.1.1 cc rejects this. */
  16261. char const *const *pcpcc;
  16262. char **ppc;
  16263. /* NEC SVR4.0.2 mips cc rejects this. */
  16264. struct point {int x, y;};
  16265. static struct point const zero = {0,0};
  16266. /* AIX XL C 1.02.0.0 rejects this.
  16267. It does not let you subtract one const X* pointer from another in
  16268. an arm of an if-expression whose if-part is not a constant
  16269. expression */
  16270. const char *g = "string";
  16271. pcpcc = &g + (g ? g-g : 0);
  16272. /* HPUX 7.0 cc rejects these. */
  16273. ++pcpcc;
  16274. ppc = (char**) pcpcc;
  16275. pcpcc = (char const *const *) ppc;
  16276. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16277. char tx;
  16278. char *t = &tx;
  16279. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16280. *t++ = 0;
  16281. if (s) return 0;
  16282. }
  16283. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16284. int x[] = {25, 17};
  16285. const int *foo = &x[0];
  16286. ++foo;
  16287. }
  16288. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16289. typedef const int *iptr;
  16290. iptr p = 0;
  16291. ++p;
  16292. }
  16293. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16294. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16295. struct s { int j; const int *ap[3]; } bx;
  16296. struct s *b = &bx; b->j = 5;
  16297. }
  16298. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16299. const int foo = 10;
  16300. if (!foo) return 0;
  16301. }
  16302. return !cs[0] && !zero.x;
  16303. #endif
  16304. ;
  16305. return 0;
  16306. }
  16307. _ACEOF
  16308. if ac_fn_c_try_compile "$LINENO"; then :
  16309. ac_cv_c_const=yes
  16310. else
  16311. ac_cv_c_const=no
  16312. fi
  16313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16314. fi
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16316. $as_echo "$ac_cv_c_const" >&6; }
  16317. if test $ac_cv_c_const = no; then
  16318. $as_echo "#define const /**/" >>confdefs.h
  16319. fi
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16321. $as_echo_n "checking for inline... " >&6; }
  16322. if ${ac_cv_c_inline+:} false; then :
  16323. $as_echo_n "(cached) " >&6
  16324. else
  16325. ac_cv_c_inline=no
  16326. for ac_kw in inline __inline__ __inline; do
  16327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16328. /* end confdefs.h. */
  16329. #ifndef __cplusplus
  16330. typedef int foo_t;
  16331. static $ac_kw foo_t static_foo () {return 0; }
  16332. $ac_kw foo_t foo () {return 0; }
  16333. #endif
  16334. _ACEOF
  16335. if ac_fn_c_try_compile "$LINENO"; then :
  16336. ac_cv_c_inline=$ac_kw
  16337. fi
  16338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16339. test "$ac_cv_c_inline" != no && break
  16340. done
  16341. fi
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16343. $as_echo "$ac_cv_c_inline" >&6; }
  16344. case $ac_cv_c_inline in
  16345. inline | yes) ;;
  16346. *)
  16347. case $ac_cv_c_inline in
  16348. no) ac_val=;;
  16349. *) ac_val=$ac_cv_c_inline;;
  16350. esac
  16351. cat >>confdefs.h <<_ACEOF
  16352. #ifndef __cplusplus
  16353. #define inline $ac_val
  16354. #endif
  16355. _ACEOF
  16356. ;;
  16357. esac
  16358. # Check whether --enable-largefile was given.
  16359. if test "${enable_largefile+set}" = set; then :
  16360. enableval=$enable_largefile;
  16361. fi
  16362. if test "$enable_largefile" != no; then
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16364. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16365. if ${ac_cv_sys_largefile_CC+:} false; then :
  16366. $as_echo_n "(cached) " >&6
  16367. else
  16368. ac_cv_sys_largefile_CC=no
  16369. if test "$GCC" != yes; then
  16370. ac_save_CC=$CC
  16371. while :; do
  16372. # IRIX 6.2 and later do not support large files by default,
  16373. # so use the C compiler's -n32 option if that helps.
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. #include <sys/types.h>
  16377. /* Check that off_t can represent 2**63 - 1 correctly.
  16378. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16379. since some C++ compilers masquerading as C compilers
  16380. incorrectly reject 9223372036854775807. */
  16381. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16382. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16383. && LARGE_OFF_T % 2147483647 == 1)
  16384. ? 1 : -1];
  16385. int
  16386. main ()
  16387. {
  16388. ;
  16389. return 0;
  16390. }
  16391. _ACEOF
  16392. if ac_fn_c_try_compile "$LINENO"; then :
  16393. break
  16394. fi
  16395. rm -f core conftest.err conftest.$ac_objext
  16396. CC="$CC -n32"
  16397. if ac_fn_c_try_compile "$LINENO"; then :
  16398. ac_cv_sys_largefile_CC=' -n32'; break
  16399. fi
  16400. rm -f core conftest.err conftest.$ac_objext
  16401. break
  16402. done
  16403. CC=$ac_save_CC
  16404. rm -f conftest.$ac_ext
  16405. fi
  16406. fi
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16408. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16409. if test "$ac_cv_sys_largefile_CC" != no; then
  16410. CC=$CC$ac_cv_sys_largefile_CC
  16411. fi
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16413. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16414. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16415. $as_echo_n "(cached) " >&6
  16416. else
  16417. while :; do
  16418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16419. /* end confdefs.h. */
  16420. #include <sys/types.h>
  16421. /* Check that off_t can represent 2**63 - 1 correctly.
  16422. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16423. since some C++ compilers masquerading as C compilers
  16424. incorrectly reject 9223372036854775807. */
  16425. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16426. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16427. && LARGE_OFF_T % 2147483647 == 1)
  16428. ? 1 : -1];
  16429. int
  16430. main ()
  16431. {
  16432. ;
  16433. return 0;
  16434. }
  16435. _ACEOF
  16436. if ac_fn_c_try_compile "$LINENO"; then :
  16437. ac_cv_sys_file_offset_bits=no; break
  16438. fi
  16439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16441. /* end confdefs.h. */
  16442. #define _FILE_OFFSET_BITS 64
  16443. #include <sys/types.h>
  16444. /* Check that off_t can represent 2**63 - 1 correctly.
  16445. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16446. since some C++ compilers masquerading as C compilers
  16447. incorrectly reject 9223372036854775807. */
  16448. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16449. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16450. && LARGE_OFF_T % 2147483647 == 1)
  16451. ? 1 : -1];
  16452. int
  16453. main ()
  16454. {
  16455. ;
  16456. return 0;
  16457. }
  16458. _ACEOF
  16459. if ac_fn_c_try_compile "$LINENO"; then :
  16460. ac_cv_sys_file_offset_bits=64; break
  16461. fi
  16462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16463. ac_cv_sys_file_offset_bits=unknown
  16464. break
  16465. done
  16466. fi
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16468. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16469. case $ac_cv_sys_file_offset_bits in #(
  16470. no | unknown) ;;
  16471. *)
  16472. cat >>confdefs.h <<_ACEOF
  16473. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16474. _ACEOF
  16475. ;;
  16476. esac
  16477. rm -rf conftest*
  16478. if test $ac_cv_sys_file_offset_bits = unknown; then
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16480. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16481. if ${ac_cv_sys_large_files+:} false; then :
  16482. $as_echo_n "(cached) " >&6
  16483. else
  16484. while :; do
  16485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16486. /* end confdefs.h. */
  16487. #include <sys/types.h>
  16488. /* Check that off_t can represent 2**63 - 1 correctly.
  16489. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16490. since some C++ compilers masquerading as C compilers
  16491. incorrectly reject 9223372036854775807. */
  16492. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16493. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16494. && LARGE_OFF_T % 2147483647 == 1)
  16495. ? 1 : -1];
  16496. int
  16497. main ()
  16498. {
  16499. ;
  16500. return 0;
  16501. }
  16502. _ACEOF
  16503. if ac_fn_c_try_compile "$LINENO"; then :
  16504. ac_cv_sys_large_files=no; break
  16505. fi
  16506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16508. /* end confdefs.h. */
  16509. #define _LARGE_FILES 1
  16510. #include <sys/types.h>
  16511. /* Check that off_t can represent 2**63 - 1 correctly.
  16512. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16513. since some C++ compilers masquerading as C compilers
  16514. incorrectly reject 9223372036854775807. */
  16515. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16516. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16517. && LARGE_OFF_T % 2147483647 == 1)
  16518. ? 1 : -1];
  16519. int
  16520. main ()
  16521. {
  16522. ;
  16523. return 0;
  16524. }
  16525. _ACEOF
  16526. if ac_fn_c_try_compile "$LINENO"; then :
  16527. ac_cv_sys_large_files=1; break
  16528. fi
  16529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16530. ac_cv_sys_large_files=unknown
  16531. break
  16532. done
  16533. fi
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16535. $as_echo "$ac_cv_sys_large_files" >&6; }
  16536. case $ac_cv_sys_large_files in #(
  16537. no | unknown) ;;
  16538. *)
  16539. cat >>confdefs.h <<_ACEOF
  16540. #define _LARGE_FILES $ac_cv_sys_large_files
  16541. _ACEOF
  16542. ;;
  16543. esac
  16544. rm -rf conftest*
  16545. fi
  16546. fi
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16548. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16549. if ${ac_cv_sys_largefile_source+:} false; then :
  16550. $as_echo_n "(cached) " >&6
  16551. else
  16552. while :; do
  16553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16554. /* end confdefs.h. */
  16555. #include <sys/types.h> /* for off_t */
  16556. #include <stdio.h>
  16557. int
  16558. main ()
  16559. {
  16560. int (*fp) (FILE *, off_t, int) = fseeko;
  16561. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16562. ;
  16563. return 0;
  16564. }
  16565. _ACEOF
  16566. if ac_fn_c_try_link "$LINENO"; then :
  16567. ac_cv_sys_largefile_source=no; break
  16568. fi
  16569. rm -f core conftest.err conftest.$ac_objext \
  16570. conftest$ac_exeext conftest.$ac_ext
  16571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16572. /* end confdefs.h. */
  16573. #define _LARGEFILE_SOURCE 1
  16574. #include <sys/types.h> /* for off_t */
  16575. #include <stdio.h>
  16576. int
  16577. main ()
  16578. {
  16579. int (*fp) (FILE *, off_t, int) = fseeko;
  16580. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16581. ;
  16582. return 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_link "$LINENO"; then :
  16586. ac_cv_sys_largefile_source=1; break
  16587. fi
  16588. rm -f core conftest.err conftest.$ac_objext \
  16589. conftest$ac_exeext conftest.$ac_ext
  16590. ac_cv_sys_largefile_source=unknown
  16591. break
  16592. done
  16593. fi
  16594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16595. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16596. case $ac_cv_sys_largefile_source in #(
  16597. no | unknown) ;;
  16598. *)
  16599. cat >>confdefs.h <<_ACEOF
  16600. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16601. _ACEOF
  16602. ;;
  16603. esac
  16604. rm -rf conftest*
  16605. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16606. # in glibc 2.1.3, but that breaks too many other things.
  16607. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16608. if test $ac_cv_sys_largefile_source != unknown; then
  16609. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16610. fi
  16611. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16612. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16613. else
  16614. cat >>confdefs.h <<_ACEOF
  16615. #define u_int8_t uint8_t
  16616. _ACEOF
  16617. fi
  16618. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16619. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16620. else
  16621. cat >>confdefs.h <<_ACEOF
  16622. #define u_int16_t uint16_t
  16623. _ACEOF
  16624. fi
  16625. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16626. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16627. else
  16628. cat >>confdefs.h <<_ACEOF
  16629. #define u_int32_t uint32_t
  16630. _ACEOF
  16631. fi
  16632. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16633. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16634. else
  16635. cat >>confdefs.h <<_ACEOF
  16636. #define u_int64_t uint64_t
  16637. _ACEOF
  16638. fi
  16639. wno_format=""
  16640. wno_macro_redefined=""
  16641. case $host in
  16642. *-apple-darwin*)
  16643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16644. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16645. OLD_CFLAGS=$CFLAGS
  16646. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. #include <stdlib.h>
  16650. int main(int argc, char *argv[]) { return(0); }
  16651. _ACEOF
  16652. if ac_fn_c_try_compile "$LINENO"; then :
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16654. $as_echo "yes" >&6; }
  16655. wno_macro_redefined="-Wno-macro-redefined"
  16656. else
  16657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16658. $as_echo "no" >&6; }
  16659. fi
  16660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16662. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16663. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16664. CFLAGS="$CFLAGS -Wno-format -Werror"
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. #include <stdlib.h>
  16668. int main(int argc, char *argv[]) { return(0); }
  16669. _ACEOF
  16670. if ac_fn_c_try_compile "$LINENO"; then :
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16672. $as_echo "yes" >&6; }
  16673. wno_format="-Wno-format"
  16674. else
  16675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16676. $as_echo "no" >&6; }
  16677. fi
  16678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16679. CFLAGS="$OLD_CFLAGS $wno_format"
  16680. ;;
  16681. esac
  16682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16683. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16684. OLD_CFLAGS=$CFLAGS
  16685. CFLAGS="$CFLAGS -Wextra -Werror"
  16686. wextra=""
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. #include <stdlib.h>
  16690. int main(int argc, char *argv[]) { return(0); }
  16691. _ACEOF
  16692. if ac_fn_c_try_compile "$LINENO"; then :
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16694. $as_echo "yes" >&6; }
  16695. wextra="-Wextra"
  16696. else
  16697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16698. $as_echo "no" >&6; }
  16699. fi
  16700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16701. CFLAGS="$OLD_CFLAGS $wextra"
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16703. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16704. OLD_CFLAGS=$CFLAGS
  16705. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16706. wno_variadic_macros=""
  16707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16708. /* end confdefs.h. */
  16709. #include <stdlib.h>
  16710. int main(int argc, char *argv[]) { return(0); }
  16711. _ACEOF
  16712. if ac_fn_c_try_compile "$LINENO"; then :
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16714. $as_echo "yes" >&6; }
  16715. wno_variadic_macros="-Wno-variadic-macros"
  16716. else
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16718. $as_echo "no" >&6; }
  16719. fi
  16720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16721. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16723. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16724. OLD_CFLAGS=$CFLAGS
  16725. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16726. wfatal_errors=""
  16727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16728. /* end confdefs.h. */
  16729. #include <stdlib.h>
  16730. int main(int argc, char *argv[]) { return(0); }
  16731. _ACEOF
  16732. if ac_fn_c_try_compile "$LINENO"; then :
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16734. $as_echo "yes" >&6; }
  16735. wfatal_errors="-Wfatal-errors"
  16736. else
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16738. $as_echo "no" >&6; }
  16739. fi
  16740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16741. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16743. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16744. OLD_CFLAGS=$CFLAGS
  16745. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16746. wno_format_contains_nul=""
  16747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16748. /* end confdefs.h. */
  16749. #include <stdlib.h>
  16750. int main(int argc, char *argv[]) { return(0); }
  16751. _ACEOF
  16752. if ac_fn_c_try_compile "$LINENO"; then :
  16753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16754. $as_echo "yes" >&6; }
  16755. wno_format_contains_nul="-Wno-format-contains-nul"
  16756. else
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16758. $as_echo "no" >&6; }
  16759. fi
  16760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16761. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16762. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.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 signal.h string.h strings.h sys/types.h stdint.h sys/select.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. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16783. do :
  16784. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16785. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16786. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16787. cat >>confdefs.h <<_ACEOF
  16788. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16789. _ACEOF
  16790. fi
  16791. done
  16792. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16793. do :
  16794. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16795. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16796. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16797. cat >>confdefs.h <<_ACEOF
  16798. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16799. _ACEOF
  16800. fi
  16801. done
  16802. for ac_header in sys/io.h architecture/i386/pio.h sched.h fts.h
  16803. do :
  16804. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16805. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16806. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16807. cat >>confdefs.h <<_ACEOF
  16808. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16809. _ACEOF
  16810. fi
  16811. done
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16813. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16814. if ${ac_cv_header_stdbool_h+:} false; then :
  16815. $as_echo_n "(cached) " >&6
  16816. else
  16817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16818. /* end confdefs.h. */
  16819. #include <stdbool.h>
  16820. #ifndef bool
  16821. "error: bool is not defined"
  16822. #endif
  16823. #ifndef false
  16824. "error: false is not defined"
  16825. #endif
  16826. #if false
  16827. "error: false is not 0"
  16828. #endif
  16829. #ifndef true
  16830. "error: true is not defined"
  16831. #endif
  16832. #if true != 1
  16833. "error: true is not 1"
  16834. #endif
  16835. #ifndef __bool_true_false_are_defined
  16836. "error: __bool_true_false_are_defined is not defined"
  16837. #endif
  16838. struct s { _Bool s: 1; _Bool t; } s;
  16839. char a[true == 1 ? 1 : -1];
  16840. char b[false == 0 ? 1 : -1];
  16841. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16842. char d[(bool) 0.5 == true ? 1 : -1];
  16843. /* See body of main program for 'e'. */
  16844. char f[(_Bool) 0.0 == false ? 1 : -1];
  16845. char g[true];
  16846. char h[sizeof (_Bool)];
  16847. char i[sizeof s.t];
  16848. enum { j = false, k = true, l = false * true, m = true * 256 };
  16849. /* The following fails for
  16850. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16851. _Bool n[m];
  16852. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16853. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16854. /* Catch a bug in an HP-UX C compiler. See
  16855. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16856. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16857. */
  16858. _Bool q = true;
  16859. _Bool *pq = &q;
  16860. int
  16861. main ()
  16862. {
  16863. bool e = &s;
  16864. *pq |= q;
  16865. *pq |= ! q;
  16866. /* Refer to every declared value, to avoid compiler optimizations. */
  16867. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16868. + !m + !n + !o + !p + !q + !pq);
  16869. ;
  16870. return 0;
  16871. }
  16872. _ACEOF
  16873. if ac_fn_c_try_compile "$LINENO"; then :
  16874. ac_cv_header_stdbool_h=yes
  16875. else
  16876. ac_cv_header_stdbool_h=no
  16877. fi
  16878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16879. fi
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16881. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16882. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16883. if test "x$ac_cv_type__Bool" = xyes; then :
  16884. cat >>confdefs.h <<_ACEOF
  16885. #define HAVE__BOOL 1
  16886. _ACEOF
  16887. fi
  16888. if test $ac_cv_header_stdbool_h = yes; then
  16889. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16890. fi
  16891. for ac_header in sys/sysctl.h net/route.h
  16892. do :
  16893. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16894. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16895. #if HAVE_SYS_PARAM_H
  16896. #include <sys/param.h>
  16897. #endif
  16898. #if HAVE_SYS_TYPES_H
  16899. #include <sys/types.h>
  16900. #endif
  16901. #if HAVE_SYS_SOCKET_H
  16902. #include <sys/socket.h>
  16903. #endif
  16904. "
  16905. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16906. cat >>confdefs.h <<_ACEOF
  16907. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16908. _ACEOF
  16909. fi
  16910. done
  16911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16912. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16913. if ${ac_cv_lib_socket_socket+:} false; then :
  16914. $as_echo_n "(cached) " >&6
  16915. else
  16916. ac_check_lib_save_LIBS=$LIBS
  16917. LIBS="-lsocket $LIBS"
  16918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16919. /* end confdefs.h. */
  16920. /* Override any GCC internal prototype to avoid an error.
  16921. Use char because int might match the return type of a GCC
  16922. builtin and then its argument prototype would still apply. */
  16923. #ifdef __cplusplus
  16924. extern "C"
  16925. #endif
  16926. char socket ();
  16927. int
  16928. main ()
  16929. {
  16930. return socket ();
  16931. ;
  16932. return 0;
  16933. }
  16934. _ACEOF
  16935. if ac_fn_c_try_link "$LINENO"; then :
  16936. ac_cv_lib_socket_socket=yes
  16937. else
  16938. ac_cv_lib_socket_socket=no
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext \
  16941. conftest$ac_exeext conftest.$ac_ext
  16942. LIBS=$ac_check_lib_save_LIBS
  16943. fi
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16945. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16946. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16947. cat >>confdefs.h <<_ACEOF
  16948. #define HAVE_LIBSOCKET 1
  16949. _ACEOF
  16950. LIBS="-lsocket $LIBS"
  16951. fi
  16952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16953. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16954. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16955. $as_echo_n "(cached) " >&6
  16956. else
  16957. ac_check_lib_save_LIBS=$LIBS
  16958. LIBS="-lnsl $LIBS"
  16959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16960. /* end confdefs.h. */
  16961. /* Override any GCC internal prototype to avoid an error.
  16962. Use char because int might match the return type of a GCC
  16963. builtin and then its argument prototype would still apply. */
  16964. #ifdef __cplusplus
  16965. extern "C"
  16966. #endif
  16967. char gethostbyname ();
  16968. int
  16969. main ()
  16970. {
  16971. return gethostbyname ();
  16972. ;
  16973. return 0;
  16974. }
  16975. _ACEOF
  16976. if ac_fn_c_try_link "$LINENO"; then :
  16977. ac_cv_lib_nsl_gethostbyname=yes
  16978. else
  16979. ac_cv_lib_nsl_gethostbyname=no
  16980. fi
  16981. rm -f core conftest.err conftest.$ac_objext \
  16982. conftest$ac_exeext conftest.$ac_ext
  16983. LIBS=$ac_check_lib_save_LIBS
  16984. fi
  16985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16986. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16987. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16988. cat >>confdefs.h <<_ACEOF
  16989. #define HAVE_LIBNSL 1
  16990. _ACEOF
  16991. LIBS="-lnsl $LIBS"
  16992. fi
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16994. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16995. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16996. $as_echo_n "(cached) " >&6
  16997. else
  16998. ac_check_lib_save_LIBS=$LIBS
  16999. LIBS="-lrt $LIBS"
  17000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17001. /* end confdefs.h. */
  17002. /* Override any GCC internal prototype to avoid an error.
  17003. Use char because int might match the return type of a GCC
  17004. builtin and then its argument prototype would still apply. */
  17005. #ifdef __cplusplus
  17006. extern "C"
  17007. #endif
  17008. char nanosleep ();
  17009. int
  17010. main ()
  17011. {
  17012. return nanosleep ();
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_c_try_link "$LINENO"; then :
  17018. ac_cv_lib_rt_nanosleep=yes
  17019. else
  17020. ac_cv_lib_rt_nanosleep=no
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext \
  17023. conftest$ac_exeext conftest.$ac_ext
  17024. LIBS=$ac_check_lib_save_LIBS
  17025. fi
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17027. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17028. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17029. cat >>confdefs.h <<_ACEOF
  17030. #define HAVE_LIBRT 1
  17031. _ACEOF
  17032. LIBS="-lrt $LIBS"
  17033. fi
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17035. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17036. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17037. $as_echo_n "(cached) " >&6
  17038. else
  17039. ac_check_lib_save_LIBS=$LIBS
  17040. LIBS="-lresolv $LIBS"
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. /* Override any GCC internal prototype to avoid an error.
  17044. Use char because int might match the return type of a GCC
  17045. builtin and then its argument prototype would still apply. */
  17046. #ifdef __cplusplus
  17047. extern "C"
  17048. #endif
  17049. char resolv ();
  17050. int
  17051. main ()
  17052. {
  17053. return resolv ();
  17054. ;
  17055. return 0;
  17056. }
  17057. _ACEOF
  17058. if ac_fn_c_try_link "$LINENO"; then :
  17059. ac_cv_lib_resolv_resolv=yes
  17060. else
  17061. ac_cv_lib_resolv_resolv=no
  17062. fi
  17063. rm -f core conftest.err conftest.$ac_objext \
  17064. conftest$ac_exeext conftest.$ac_ext
  17065. LIBS=$ac_check_lib_save_LIBS
  17066. fi
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17068. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17069. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17070. cat >>confdefs.h <<_ACEOF
  17071. #define HAVE_LIBRESOLV 1
  17072. _ACEOF
  17073. LIBS="-lresolv $LIBS"
  17074. fi
  17075. for ac_header in vfork.h
  17076. do :
  17077. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17078. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17079. cat >>confdefs.h <<_ACEOF
  17080. #define HAVE_VFORK_H 1
  17081. _ACEOF
  17082. fi
  17083. done
  17084. for ac_func in fork vfork
  17085. do :
  17086. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17087. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17088. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17089. cat >>confdefs.h <<_ACEOF
  17090. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17091. _ACEOF
  17092. fi
  17093. done
  17094. if test "x$ac_cv_func_fork" = xyes; then
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17096. $as_echo_n "checking for working fork... " >&6; }
  17097. if ${ac_cv_func_fork_works+:} false; then :
  17098. $as_echo_n "(cached) " >&6
  17099. else
  17100. if test "$cross_compiling" = yes; then :
  17101. ac_cv_func_fork_works=cross
  17102. else
  17103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17104. /* end confdefs.h. */
  17105. $ac_includes_default
  17106. int
  17107. main ()
  17108. {
  17109. /* By Ruediger Kuhlmann. */
  17110. return fork () < 0;
  17111. ;
  17112. return 0;
  17113. }
  17114. _ACEOF
  17115. if ac_fn_c_try_run "$LINENO"; then :
  17116. ac_cv_func_fork_works=yes
  17117. else
  17118. ac_cv_func_fork_works=no
  17119. fi
  17120. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17121. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17122. fi
  17123. fi
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17125. $as_echo "$ac_cv_func_fork_works" >&6; }
  17126. else
  17127. ac_cv_func_fork_works=$ac_cv_func_fork
  17128. fi
  17129. if test "x$ac_cv_func_fork_works" = xcross; then
  17130. case $host in
  17131. *-*-amigaos* | *-*-msdosdjgpp*)
  17132. # Override, as these systems have only a dummy fork() stub
  17133. ac_cv_func_fork_works=no
  17134. ;;
  17135. *)
  17136. ac_cv_func_fork_works=yes
  17137. ;;
  17138. esac
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17140. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17141. fi
  17142. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17143. if test "x$ac_cv_func_vfork" = xyes; then
  17144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17145. $as_echo_n "checking for working vfork... " >&6; }
  17146. if ${ac_cv_func_vfork_works+:} false; then :
  17147. $as_echo_n "(cached) " >&6
  17148. else
  17149. if test "$cross_compiling" = yes; then :
  17150. ac_cv_func_vfork_works=cross
  17151. else
  17152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17153. /* end confdefs.h. */
  17154. /* Thanks to Paul Eggert for this test. */
  17155. $ac_includes_default
  17156. #include <sys/wait.h>
  17157. #ifdef HAVE_VFORK_H
  17158. # include <vfork.h>
  17159. #endif
  17160. /* On some sparc systems, changes by the child to local and incoming
  17161. argument registers are propagated back to the parent. The compiler
  17162. is told about this with #include <vfork.h>, but some compilers
  17163. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17164. static variable whose address is put into a register that is
  17165. clobbered by the vfork. */
  17166. static void
  17167. #ifdef __cplusplus
  17168. sparc_address_test (int arg)
  17169. # else
  17170. sparc_address_test (arg) int arg;
  17171. #endif
  17172. {
  17173. static pid_t child;
  17174. if (!child) {
  17175. child = vfork ();
  17176. if (child < 0) {
  17177. perror ("vfork");
  17178. _exit(2);
  17179. }
  17180. if (!child) {
  17181. arg = getpid();
  17182. write(-1, "", 0);
  17183. _exit (arg);
  17184. }
  17185. }
  17186. }
  17187. int
  17188. main ()
  17189. {
  17190. pid_t parent = getpid ();
  17191. pid_t child;
  17192. sparc_address_test (0);
  17193. child = vfork ();
  17194. if (child == 0) {
  17195. /* Here is another test for sparc vfork register problems. This
  17196. test uses lots of local variables, at least as many local
  17197. variables as main has allocated so far including compiler
  17198. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17199. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17200. reuse the register of parent for one of the local variables,
  17201. since it will think that parent can't possibly be used any more
  17202. in this routine. Assigning to the local variable will thus
  17203. munge parent in the parent process. */
  17204. pid_t
  17205. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17206. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17207. /* Convince the compiler that p..p7 are live; otherwise, it might
  17208. use the same hardware register for all 8 local variables. */
  17209. if (p != p1 || p != p2 || p != p3 || p != p4
  17210. || p != p5 || p != p6 || p != p7)
  17211. _exit(1);
  17212. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17213. from child file descriptors. If the child closes a descriptor
  17214. before it execs or exits, this munges the parent's descriptor
  17215. as well. Test for this by closing stdout in the child. */
  17216. _exit(close(fileno(stdout)) != 0);
  17217. } else {
  17218. int status;
  17219. struct stat st;
  17220. while (wait(&status) != child)
  17221. ;
  17222. return (
  17223. /* Was there some problem with vforking? */
  17224. child < 0
  17225. /* Did the child fail? (This shouldn't happen.) */
  17226. || status
  17227. /* Did the vfork/compiler bug occur? */
  17228. || parent != getpid()
  17229. /* Did the file descriptor bug occur? */
  17230. || fstat(fileno(stdout), &st) != 0
  17231. );
  17232. }
  17233. }
  17234. _ACEOF
  17235. if ac_fn_c_try_run "$LINENO"; then :
  17236. ac_cv_func_vfork_works=yes
  17237. else
  17238. ac_cv_func_vfork_works=no
  17239. fi
  17240. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17241. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17242. fi
  17243. fi
  17244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17245. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17246. fi;
  17247. if test "x$ac_cv_func_fork_works" = xcross; then
  17248. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17250. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17251. fi
  17252. if test "x$ac_cv_func_vfork_works" = xyes; then
  17253. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17254. else
  17255. $as_echo "#define vfork fork" >>confdefs.h
  17256. fi
  17257. if test "x$ac_cv_func_fork_works" = xyes; then
  17258. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17259. fi
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17261. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17262. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17263. $as_echo_n "(cached) " >&6
  17264. else
  17265. rm -f conftest.sym conftest.file
  17266. echo >conftest.file
  17267. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17268. if test "$cross_compiling" = yes; then :
  17269. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17270. else
  17271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17272. /* end confdefs.h. */
  17273. $ac_includes_default
  17274. int
  17275. main ()
  17276. {
  17277. struct stat sbuf;
  17278. /* Linux will dereference the symlink and fail, as required by POSIX.
  17279. That is better in the sense that it means we will not
  17280. have to compile and use the lstat wrapper. */
  17281. return lstat ("conftest.sym/", &sbuf) == 0;
  17282. ;
  17283. return 0;
  17284. }
  17285. _ACEOF
  17286. if ac_fn_c_try_run "$LINENO"; then :
  17287. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17288. else
  17289. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17290. fi
  17291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17292. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17293. fi
  17294. else
  17295. # If the `ln -s' command failed, then we probably don't even
  17296. # have an lstat function.
  17297. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17298. fi
  17299. rm -f conftest.sym conftest.file
  17300. fi
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17302. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17303. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17304. cat >>confdefs.h <<_ACEOF
  17305. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17306. _ACEOF
  17307. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17308. case " $LIBOBJS " in
  17309. *" lstat.$ac_objext "* ) ;;
  17310. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17311. ;;
  17312. esac
  17313. fi
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17315. $as_echo_n "checking for working memcmp... " >&6; }
  17316. if ${ac_cv_func_memcmp_working+:} false; then :
  17317. $as_echo_n "(cached) " >&6
  17318. else
  17319. if test "$cross_compiling" = yes; then :
  17320. ac_cv_func_memcmp_working=no
  17321. else
  17322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17323. /* end confdefs.h. */
  17324. $ac_includes_default
  17325. int
  17326. main ()
  17327. {
  17328. /* Some versions of memcmp are not 8-bit clean. */
  17329. char c0 = '\100', c1 = '\200', c2 = '\201';
  17330. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17331. return 1;
  17332. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17333. or more and with at least one buffer not starting on a 4-byte boundary.
  17334. William Lewis provided this test program. */
  17335. {
  17336. char foo[21];
  17337. char bar[21];
  17338. int i;
  17339. for (i = 0; i < 4; i++)
  17340. {
  17341. char *a = foo + i;
  17342. char *b = bar + i;
  17343. strcpy (a, "--------01111111");
  17344. strcpy (b, "--------10000000");
  17345. if (memcmp (a, b, 16) >= 0)
  17346. return 1;
  17347. }
  17348. return 0;
  17349. }
  17350. ;
  17351. return 0;
  17352. }
  17353. _ACEOF
  17354. if ac_fn_c_try_run "$LINENO"; then :
  17355. ac_cv_func_memcmp_working=yes
  17356. else
  17357. ac_cv_func_memcmp_working=no
  17358. fi
  17359. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17360. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17361. fi
  17362. fi
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17364. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17365. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17366. *" memcmp.$ac_objext "* ) ;;
  17367. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17368. ;;
  17369. esac
  17370. for ac_func in vprintf
  17371. do :
  17372. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17373. if test "x$ac_cv_func_vprintf" = xyes; then :
  17374. cat >>confdefs.h <<_ACEOF
  17375. #define HAVE_VPRINTF 1
  17376. _ACEOF
  17377. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17378. if test "x$ac_cv_func__doprnt" = xyes; then :
  17379. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17380. fi
  17381. fi
  17382. done
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17384. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17385. if ${ac_cv_header_time+:} false; then :
  17386. $as_echo_n "(cached) " >&6
  17387. else
  17388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17389. /* end confdefs.h. */
  17390. #include <sys/types.h>
  17391. #include <sys/time.h>
  17392. #include <time.h>
  17393. int
  17394. main ()
  17395. {
  17396. if ((struct tm *) 0)
  17397. return 0;
  17398. ;
  17399. return 0;
  17400. }
  17401. _ACEOF
  17402. if ac_fn_c_try_compile "$LINENO"; then :
  17403. ac_cv_header_time=yes
  17404. else
  17405. ac_cv_header_time=no
  17406. fi
  17407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17408. fi
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17410. $as_echo "$ac_cv_header_time" >&6; }
  17411. if test $ac_cv_header_time = yes; then
  17412. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17413. fi
  17414. for ac_func in $ac_func_list
  17415. do :
  17416. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17417. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17418. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17419. cat >>confdefs.h <<_ACEOF
  17420. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17421. _ACEOF
  17422. fi
  17423. done
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17425. $as_echo_n "checking for working mktime... " >&6; }
  17426. if ${ac_cv_func_working_mktime+:} false; then :
  17427. $as_echo_n "(cached) " >&6
  17428. else
  17429. if test "$cross_compiling" = yes; then :
  17430. ac_cv_func_working_mktime=no
  17431. else
  17432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17433. /* end confdefs.h. */
  17434. /* Test program from Paul Eggert and Tony Leneis. */
  17435. #ifdef TIME_WITH_SYS_TIME
  17436. # include <sys/time.h>
  17437. # include <time.h>
  17438. #else
  17439. # ifdef HAVE_SYS_TIME_H
  17440. # include <sys/time.h>
  17441. # else
  17442. # include <time.h>
  17443. # endif
  17444. #endif
  17445. #include <limits.h>
  17446. #include <stdlib.h>
  17447. #ifdef HAVE_UNISTD_H
  17448. # include <unistd.h>
  17449. #endif
  17450. #ifndef HAVE_ALARM
  17451. # define alarm(X) /* empty */
  17452. #endif
  17453. /* Work around redefinition to rpl_putenv by other config tests. */
  17454. #undef putenv
  17455. static time_t time_t_max;
  17456. static time_t time_t_min;
  17457. /* Values we'll use to set the TZ environment variable. */
  17458. static const char *tz_strings[] = {
  17459. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17460. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17461. };
  17462. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17463. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17464. Based on a problem report from Andreas Jaeger. */
  17465. static int
  17466. spring_forward_gap ()
  17467. {
  17468. /* glibc (up to about 1998-10-07) failed this test. */
  17469. struct tm tm;
  17470. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17471. instead of "TZ=America/Vancouver" in order to detect the bug even
  17472. on systems that don't support the Olson extension, or don't have the
  17473. full zoneinfo tables installed. */
  17474. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17475. tm.tm_year = 98;
  17476. tm.tm_mon = 3;
  17477. tm.tm_mday = 5;
  17478. tm.tm_hour = 2;
  17479. tm.tm_min = 0;
  17480. tm.tm_sec = 0;
  17481. tm.tm_isdst = -1;
  17482. return mktime (&tm) != (time_t) -1;
  17483. }
  17484. static int
  17485. mktime_test1 (time_t now)
  17486. {
  17487. struct tm *lt;
  17488. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17489. }
  17490. static int
  17491. mktime_test (time_t now)
  17492. {
  17493. return (mktime_test1 (now)
  17494. && mktime_test1 ((time_t) (time_t_max - now))
  17495. && mktime_test1 ((time_t) (time_t_min + now)));
  17496. }
  17497. static int
  17498. irix_6_4_bug ()
  17499. {
  17500. /* Based on code from Ariel Faigon. */
  17501. struct tm tm;
  17502. tm.tm_year = 96;
  17503. tm.tm_mon = 3;
  17504. tm.tm_mday = 0;
  17505. tm.tm_hour = 0;
  17506. tm.tm_min = 0;
  17507. tm.tm_sec = 0;
  17508. tm.tm_isdst = -1;
  17509. mktime (&tm);
  17510. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17511. }
  17512. static int
  17513. bigtime_test (int j)
  17514. {
  17515. struct tm tm;
  17516. time_t now;
  17517. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17518. now = mktime (&tm);
  17519. if (now != (time_t) -1)
  17520. {
  17521. struct tm *lt = localtime (&now);
  17522. if (! (lt
  17523. && lt->tm_year == tm.tm_year
  17524. && lt->tm_mon == tm.tm_mon
  17525. && lt->tm_mday == tm.tm_mday
  17526. && lt->tm_hour == tm.tm_hour
  17527. && lt->tm_min == tm.tm_min
  17528. && lt->tm_sec == tm.tm_sec
  17529. && lt->tm_yday == tm.tm_yday
  17530. && lt->tm_wday == tm.tm_wday
  17531. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17532. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17533. return 0;
  17534. }
  17535. return 1;
  17536. }
  17537. static int
  17538. year_2050_test ()
  17539. {
  17540. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17541. ignoring leap seconds. */
  17542. unsigned long int answer = 2527315200UL;
  17543. struct tm tm;
  17544. time_t t;
  17545. tm.tm_year = 2050 - 1900;
  17546. tm.tm_mon = 2 - 1;
  17547. tm.tm_mday = 1;
  17548. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17549. tm.tm_isdst = -1;
  17550. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17551. instead of "TZ=America/Vancouver" in order to detect the bug even
  17552. on systems that don't support the Olson extension, or don't have the
  17553. full zoneinfo tables installed. */
  17554. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17555. t = mktime (&tm);
  17556. /* Check that the result is either a failure, or close enough
  17557. to the correct answer that we can assume the discrepancy is
  17558. due to leap seconds. */
  17559. return (t == (time_t) -1
  17560. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17561. }
  17562. int
  17563. main ()
  17564. {
  17565. time_t t, delta;
  17566. int i, j;
  17567. /* This test makes some buggy mktime implementations loop.
  17568. Give up after 60 seconds; a mktime slower than that
  17569. isn't worth using anyway. */
  17570. alarm (60);
  17571. for (;;)
  17572. {
  17573. t = (time_t_max << 1) + 1;
  17574. if (t <= time_t_max)
  17575. break;
  17576. time_t_max = t;
  17577. }
  17578. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17579. delta = time_t_max / 997; /* a suitable prime number */
  17580. for (i = 0; i < N_STRINGS; i++)
  17581. {
  17582. if (tz_strings[i])
  17583. putenv ((char*) tz_strings[i]);
  17584. for (t = 0; t <= time_t_max - delta; t += delta)
  17585. if (! mktime_test (t))
  17586. return 1;
  17587. if (! (mktime_test ((time_t) 1)
  17588. && mktime_test ((time_t) (60 * 60))
  17589. && mktime_test ((time_t) (60 * 60 * 24))))
  17590. return 1;
  17591. for (j = 1; ; j <<= 1)
  17592. if (! bigtime_test (j))
  17593. return 1;
  17594. else if (INT_MAX / 2 < j)
  17595. break;
  17596. if (! bigtime_test (INT_MAX))
  17597. return 1;
  17598. }
  17599. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17600. }
  17601. _ACEOF
  17602. if ac_fn_c_try_run "$LINENO"; then :
  17603. ac_cv_func_working_mktime=yes
  17604. else
  17605. ac_cv_func_working_mktime=no
  17606. fi
  17607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17609. fi
  17610. fi
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17612. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17613. if test $ac_cv_func_working_mktime = no; then
  17614. case " $LIBOBJS " in
  17615. *" mktime.$ac_objext "* ) ;;
  17616. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17617. ;;
  17618. esac
  17619. fi
  17620. for ac_func in getpagesize
  17621. do :
  17622. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17623. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17624. cat >>confdefs.h <<_ACEOF
  17625. #define HAVE_GETPAGESIZE 1
  17626. _ACEOF
  17627. fi
  17628. done
  17629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17630. $as_echo_n "checking for working mmap... " >&6; }
  17631. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17632. $as_echo_n "(cached) " >&6
  17633. else
  17634. if test "$cross_compiling" = yes; then :
  17635. ac_cv_func_mmap_fixed_mapped=no
  17636. else
  17637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17638. /* end confdefs.h. */
  17639. $ac_includes_default
  17640. /* malloc might have been renamed as rpl_malloc. */
  17641. #undef malloc
  17642. /* Thanks to Mike Haertel and Jim Avera for this test.
  17643. Here is a matrix of mmap possibilities:
  17644. mmap private not fixed
  17645. mmap private fixed at somewhere currently unmapped
  17646. mmap private fixed at somewhere already mapped
  17647. mmap shared not fixed
  17648. mmap shared fixed at somewhere currently unmapped
  17649. mmap shared fixed at somewhere already mapped
  17650. For private mappings, we should verify that changes cannot be read()
  17651. back from the file, nor mmap's back from the file at a different
  17652. address. (There have been systems where private was not correctly
  17653. implemented like the infamous i386 svr4.0, and systems where the
  17654. VM page cache was not coherent with the file system buffer cache
  17655. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17656. For shared mappings, we should conversely verify that changes get
  17657. propagated back to all the places they're supposed to be.
  17658. Grep wants private fixed already mapped.
  17659. The main things grep needs to know about mmap are:
  17660. * does it exist and is it safe to write into the mmap'd area
  17661. * how to use it (BSD variants) */
  17662. #include <fcntl.h>
  17663. #include <sys/mman.h>
  17664. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17665. char *malloc ();
  17666. #endif
  17667. /* This mess was copied from the GNU getpagesize.h. */
  17668. #ifndef HAVE_GETPAGESIZE
  17669. # ifdef _SC_PAGESIZE
  17670. # define getpagesize() sysconf(_SC_PAGESIZE)
  17671. # else /* no _SC_PAGESIZE */
  17672. # ifdef HAVE_SYS_PARAM_H
  17673. # include <sys/param.h>
  17674. # ifdef EXEC_PAGESIZE
  17675. # define getpagesize() EXEC_PAGESIZE
  17676. # else /* no EXEC_PAGESIZE */
  17677. # ifdef NBPG
  17678. # define getpagesize() NBPG * CLSIZE
  17679. # ifndef CLSIZE
  17680. # define CLSIZE 1
  17681. # endif /* no CLSIZE */
  17682. # else /* no NBPG */
  17683. # ifdef NBPC
  17684. # define getpagesize() NBPC
  17685. # else /* no NBPC */
  17686. # ifdef PAGESIZE
  17687. # define getpagesize() PAGESIZE
  17688. # endif /* PAGESIZE */
  17689. # endif /* no NBPC */
  17690. # endif /* no NBPG */
  17691. # endif /* no EXEC_PAGESIZE */
  17692. # else /* no HAVE_SYS_PARAM_H */
  17693. # define getpagesize() 8192 /* punt totally */
  17694. # endif /* no HAVE_SYS_PARAM_H */
  17695. # endif /* no _SC_PAGESIZE */
  17696. #endif /* no HAVE_GETPAGESIZE */
  17697. int
  17698. main ()
  17699. {
  17700. char *data, *data2, *data3;
  17701. const char *cdata2;
  17702. int i, pagesize;
  17703. int fd, fd2;
  17704. pagesize = getpagesize ();
  17705. /* First, make a file with some known garbage in it. */
  17706. data = (char *) malloc (pagesize);
  17707. if (!data)
  17708. return 1;
  17709. for (i = 0; i < pagesize; ++i)
  17710. *(data + i) = rand ();
  17711. umask (0);
  17712. fd = creat ("conftest.mmap", 0600);
  17713. if (fd < 0)
  17714. return 2;
  17715. if (write (fd, data, pagesize) != pagesize)
  17716. return 3;
  17717. close (fd);
  17718. /* Next, check that the tail of a page is zero-filled. File must have
  17719. non-zero length, otherwise we risk SIGBUS for entire page. */
  17720. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17721. if (fd2 < 0)
  17722. return 4;
  17723. cdata2 = "";
  17724. if (write (fd2, cdata2, 1) != 1)
  17725. return 5;
  17726. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17727. if (data2 == MAP_FAILED)
  17728. return 6;
  17729. for (i = 0; i < pagesize; ++i)
  17730. if (*(data2 + i))
  17731. return 7;
  17732. close (fd2);
  17733. if (munmap (data2, pagesize))
  17734. return 8;
  17735. /* Next, try to mmap the file at a fixed address which already has
  17736. something else allocated at it. If we can, also make sure that
  17737. we see the same garbage. */
  17738. fd = open ("conftest.mmap", O_RDWR);
  17739. if (fd < 0)
  17740. return 9;
  17741. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17742. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17743. return 10;
  17744. for (i = 0; i < pagesize; ++i)
  17745. if (*(data + i) != *(data2 + i))
  17746. return 11;
  17747. /* Finally, make sure that changes to the mapped area do not
  17748. percolate back to the file as seen by read(). (This is a bug on
  17749. some variants of i386 svr4.0.) */
  17750. for (i = 0; i < pagesize; ++i)
  17751. *(data2 + i) = *(data2 + i) + 1;
  17752. data3 = (char *) malloc (pagesize);
  17753. if (!data3)
  17754. return 12;
  17755. if (read (fd, data3, pagesize) != pagesize)
  17756. return 13;
  17757. for (i = 0; i < pagesize; ++i)
  17758. if (*(data + i) != *(data3 + i))
  17759. return 14;
  17760. close (fd);
  17761. free (data);
  17762. free (data3);
  17763. return 0;
  17764. }
  17765. _ACEOF
  17766. if ac_fn_c_try_run "$LINENO"; then :
  17767. ac_cv_func_mmap_fixed_mapped=yes
  17768. else
  17769. ac_cv_func_mmap_fixed_mapped=no
  17770. fi
  17771. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17772. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17773. fi
  17774. fi
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17776. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17777. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17778. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17779. fi
  17780. rm -f conftest.mmap conftest.txt
  17781. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17782. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17783. cat >>confdefs.h <<_ACEOF
  17784. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17785. _ACEOF
  17786. fi
  17787. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  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 ctime inet_ntoa memmove memset munmap pow putenv realpath
  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 regcomp strdup select socket strcasecmp strchr strcspn strdup
  17808. do :
  17809. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17810. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17811. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17812. cat >>confdefs.h <<_ACEOF
  17813. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17814. _ACEOF
  17815. fi
  17816. done
  17817. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17818. do :
  17819. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17820. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17821. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17822. cat >>confdefs.h <<_ACEOF
  17823. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17824. _ACEOF
  17825. fi
  17826. done
  17827. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17828. do :
  17829. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17830. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17831. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17832. cat >>confdefs.h <<_ACEOF
  17833. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17834. _ACEOF
  17835. fi
  17836. done
  17837. for ac_func in ioperm
  17838. do :
  17839. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17840. if test "x$ac_cv_func_ioperm" = xyes; then :
  17841. cat >>confdefs.h <<_ACEOF
  17842. #define HAVE_IOPERM 1
  17843. _ACEOF
  17844. fi
  17845. done
  17846. for ac_func in strlcpy
  17847. do :
  17848. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17849. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17850. cat >>confdefs.h <<_ACEOF
  17851. #define HAVE_STRLCPY 1
  17852. _ACEOF
  17853. have_strlcpy=true
  17854. else
  17855. have_strlcpy=false
  17856. fi
  17857. done
  17858. if test x$have_strlcpy = xtrue; then
  17859. SYSTEM_STRLCPY_TRUE=
  17860. SYSTEM_STRLCPY_FALSE='#'
  17861. else
  17862. SYSTEM_STRLCPY_TRUE='#'
  17863. SYSTEM_STRLCPY_FALSE=
  17864. fi
  17865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17866. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17867. if ${ac_cv_c_bigendian+:} false; then :
  17868. $as_echo_n "(cached) " >&6
  17869. else
  17870. ac_cv_c_bigendian=unknown
  17871. # See if we're dealing with a universal compiler.
  17872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17873. /* end confdefs.h. */
  17874. #ifndef __APPLE_CC__
  17875. not a universal capable compiler
  17876. #endif
  17877. typedef int dummy;
  17878. _ACEOF
  17879. if ac_fn_c_try_compile "$LINENO"; then :
  17880. # Check for potential -arch flags. It is not universal unless
  17881. # there are at least two -arch flags with different values.
  17882. ac_arch=
  17883. ac_prev=
  17884. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17885. if test -n "$ac_prev"; then
  17886. case $ac_word in
  17887. i?86 | x86_64 | ppc | ppc64)
  17888. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17889. ac_arch=$ac_word
  17890. else
  17891. ac_cv_c_bigendian=universal
  17892. break
  17893. fi
  17894. ;;
  17895. esac
  17896. ac_prev=
  17897. elif test "x$ac_word" = "x-arch"; then
  17898. ac_prev=arch
  17899. fi
  17900. done
  17901. fi
  17902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17903. if test $ac_cv_c_bigendian = unknown; then
  17904. # See if sys/param.h defines the BYTE_ORDER macro.
  17905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17906. /* end confdefs.h. */
  17907. #include <sys/types.h>
  17908. #include <sys/param.h>
  17909. int
  17910. main ()
  17911. {
  17912. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17913. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17914. && LITTLE_ENDIAN)
  17915. bogus endian macros
  17916. #endif
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_compile "$LINENO"; then :
  17922. # It does; now see whether it defined to BIG_ENDIAN or not.
  17923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17924. /* end confdefs.h. */
  17925. #include <sys/types.h>
  17926. #include <sys/param.h>
  17927. int
  17928. main ()
  17929. {
  17930. #if BYTE_ORDER != BIG_ENDIAN
  17931. not big endian
  17932. #endif
  17933. ;
  17934. return 0;
  17935. }
  17936. _ACEOF
  17937. if ac_fn_c_try_compile "$LINENO"; then :
  17938. ac_cv_c_bigendian=yes
  17939. else
  17940. ac_cv_c_bigendian=no
  17941. fi
  17942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17943. fi
  17944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17945. fi
  17946. if test $ac_cv_c_bigendian = unknown; then
  17947. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. #include <limits.h>
  17951. int
  17952. main ()
  17953. {
  17954. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17955. bogus endian macros
  17956. #endif
  17957. ;
  17958. return 0;
  17959. }
  17960. _ACEOF
  17961. if ac_fn_c_try_compile "$LINENO"; then :
  17962. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17964. /* end confdefs.h. */
  17965. #include <limits.h>
  17966. int
  17967. main ()
  17968. {
  17969. #ifndef _BIG_ENDIAN
  17970. not big endian
  17971. #endif
  17972. ;
  17973. return 0;
  17974. }
  17975. _ACEOF
  17976. if ac_fn_c_try_compile "$LINENO"; then :
  17977. ac_cv_c_bigendian=yes
  17978. else
  17979. ac_cv_c_bigendian=no
  17980. fi
  17981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17982. fi
  17983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17984. fi
  17985. if test $ac_cv_c_bigendian = unknown; then
  17986. # Compile a test program.
  17987. if test "$cross_compiling" = yes; then :
  17988. # Try to guess by grepping values from an object file.
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. short int ascii_mm[] =
  17992. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17993. short int ascii_ii[] =
  17994. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17995. int use_ascii (int i) {
  17996. return ascii_mm[i] + ascii_ii[i];
  17997. }
  17998. short int ebcdic_ii[] =
  17999. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  18000. short int ebcdic_mm[] =
  18001. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18002. int use_ebcdic (int i) {
  18003. return ebcdic_mm[i] + ebcdic_ii[i];
  18004. }
  18005. extern int foo;
  18006. int
  18007. main ()
  18008. {
  18009. return use_ascii (foo) == use_ebcdic (foo);
  18010. ;
  18011. return 0;
  18012. }
  18013. _ACEOF
  18014. if ac_fn_c_try_compile "$LINENO"; then :
  18015. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18016. ac_cv_c_bigendian=yes
  18017. fi
  18018. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18019. if test "$ac_cv_c_bigendian" = unknown; then
  18020. ac_cv_c_bigendian=no
  18021. else
  18022. # finding both strings is unlikely to happen, but who knows?
  18023. ac_cv_c_bigendian=unknown
  18024. fi
  18025. fi
  18026. fi
  18027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18028. else
  18029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18030. /* end confdefs.h. */
  18031. $ac_includes_default
  18032. int
  18033. main ()
  18034. {
  18035. /* Are we little or big endian? From Harbison&Steele. */
  18036. union
  18037. {
  18038. long int l;
  18039. char c[sizeof (long int)];
  18040. } u;
  18041. u.l = 1;
  18042. return u.c[sizeof (long int) - 1] == 1;
  18043. ;
  18044. return 0;
  18045. }
  18046. _ACEOF
  18047. if ac_fn_c_try_run "$LINENO"; then :
  18048. ac_cv_c_bigendian=no
  18049. else
  18050. ac_cv_c_bigendian=yes
  18051. fi
  18052. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18053. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18054. fi
  18055. fi
  18056. fi
  18057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18058. $as_echo "$ac_cv_c_bigendian" >&6; }
  18059. case $ac_cv_c_bigendian in #(
  18060. yes)
  18061. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18062. ;; #(
  18063. no)
  18064. ;; #(
  18065. universal)
  18066. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18067. ;; #(
  18068. *)
  18069. as_fn_error $? "unknown endianness
  18070. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18071. esac
  18072. if test x$ac_cv_c_bigendian = xyes ; then
  18073. WORDS_BIGENDIAN_TRUE=
  18074. WORDS_BIGENDIAN_FALSE='#'
  18075. else
  18076. WORDS_BIGENDIAN_TRUE='#'
  18077. WORDS_BIGENDIAN_FALSE=
  18078. fi
  18079. # Check whether --enable-asan was given.
  18080. if test "${enable_asan+set}" = set; then :
  18081. enableval=$enable_asan;
  18082. fi
  18083. if test "x$enable_asan" = "xyes"; then
  18084. build_asan=yes
  18085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18086. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18087. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18088. $as_echo_n "(cached) " >&6
  18089. else
  18090. ac_check_lib_save_LIBS=$LIBS
  18091. LIBS="-lasan $LIBS"
  18092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18093. /* end confdefs.h. */
  18094. /* Override any GCC internal prototype to avoid an error.
  18095. Use char because int might match the return type of a GCC
  18096. builtin and then its argument prototype would still apply. */
  18097. #ifdef __cplusplus
  18098. extern "C"
  18099. #endif
  18100. char __asan_report_error ();
  18101. int
  18102. main ()
  18103. {
  18104. return __asan_report_error ();
  18105. ;
  18106. return 0;
  18107. }
  18108. _ACEOF
  18109. if ac_fn_c_try_link "$LINENO"; then :
  18110. ac_cv_lib_asan___asan_report_error=yes
  18111. else
  18112. ac_cv_lib_asan___asan_report_error=no
  18113. fi
  18114. rm -f core conftest.err conftest.$ac_objext \
  18115. conftest$ac_exeext conftest.$ac_ext
  18116. LIBS=$ac_check_lib_save_LIBS
  18117. fi
  18118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18119. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18120. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18121. cat >>confdefs.h <<_ACEOF
  18122. #define HAVE_LIBASAN 1
  18123. _ACEOF
  18124. LIBS="-lasan $LIBS"
  18125. else
  18126. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18127. fi
  18128. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18129. LDFLAGS="-fsanitize=address ${LDFLAGS}"
  18130. else
  18131. build_asan=no
  18132. fi
  18133. # Check whether --enable-tsan was given.
  18134. if test "${enable_tsan+set}" = set; then :
  18135. enableval=$enable_tsan;
  18136. fi
  18137. if test "x$enable_tsan" = "xyes"; then
  18138. build_tsan=yes
  18139. CFLAGS="${CFLAGS} -O1 -g -fsanitize=thread -fno-omit-frame-pointer"
  18140. LDFLAGS="-fsanitize=thread ${LDFLAGS}"
  18141. else
  18142. build_tsan=no
  18143. fi
  18144. if test "$build_asan" = "yes" -a "$build_tsan" = "yes" ; then
  18145. as_fn_error $? "--enable-asan and --eanble-tsan are mutually exclusive" "$LINENO" 5
  18146. fi
  18147. debug=no
  18148. debug_flag=NDEBUG
  18149. debug_run_time_flag=
  18150. # Check whether --enable-debug was given.
  18151. if test "${enable_debug+set}" = set; then :
  18152. enableval=$enable_debug; if test x$enableval = xyes; then
  18153. debug=yes
  18154. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18155. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18156. # We may also want to add:
  18157. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18158. debug_flag=DEBUG
  18159. debug_run_time_flag=--dbug=1
  18160. $as_echo "#define DEBUG 1" >>confdefs.h
  18161. fi
  18162. fi
  18163. extra_debug=no
  18164. extra_debug_flag=NEXTRA_DBUG
  18165. # Check whether --enable-extra-debug was given.
  18166. if test "${enable_extra_debug+set}" = set; then :
  18167. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18168. extra_debug=yes
  18169. extra_debug_flag=EXTRA_DEBUG
  18170. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18171. fi
  18172. fi
  18173. timestamp_trace=no
  18174. # Check whether --enable-timestamp-trace was given.
  18175. if test "${enable_timestamp_trace+set}" = set; then :
  18176. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18177. timestamp_trace=yes
  18178. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18179. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18180. fi
  18181. fi
  18182. # Check whether --enable-dmalloc was given.
  18183. if test "${enable_dmalloc+set}" = set; then :
  18184. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18185. dmalloc=yes
  18186. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18187. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18188. CFLAGS="${CFLAGS} -I/opt/local/include"
  18189. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18190. fi
  18191. fi
  18192. # Check whether --enable-pedantic was given.
  18193. if test "${enable_pedantic+set}" = set; then :
  18194. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18195. CFLAGS="$CFLAGS -pedantic"
  18196. fi
  18197. fi
  18198. # Check whether --enable-efence was given.
  18199. if test "${enable_efence+set}" = set; then :
  18200. enableval=$enable_efence; if test x$enableval = xyes; then
  18201. CFLAGS="$CFLAGS -lefence"
  18202. $as_echo "#define EFENCE 1" >>confdefs.h
  18203. fi
  18204. fi
  18205. # Check whether --enable-gprof was given.
  18206. if test "${enable_gprof+set}" = set; then :
  18207. enableval=$enable_gprof; if test x$enableval = xyes; then
  18208. if test $debug = yes; then
  18209. CFLAGS="$CFLAGS -pg"
  18210. else
  18211. # GPROF requires gdb
  18212. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18213. fi
  18214. $as_echo "#define GPROF 1" >>confdefs.h
  18215. fi
  18216. fi
  18217. enable_pcap_config=no
  18218. # Check whether --enable-pcapconfig was given.
  18219. if test "${enable_pcapconfig+set}" = set; then :
  18220. enableval=$enable_pcapconfig;
  18221. if test $enableval = yes; then
  18222. enable_pcap_config=yes
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18224. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18225. else
  18226. enable_pcap_config=no
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18228. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18229. fi
  18230. else
  18231. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18232. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18233. fi
  18234. use64bit_counters=yes
  18235. # Check whether --enable-64bits was given.
  18236. if test "${enable_64bits+set}" = set; then :
  18237. enableval=$enable_64bits;
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18239. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18240. else
  18241. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18243. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18244. fi
  18245. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18246. # so we can use _U_ to flag unused function arguments and not get warnings
  18247. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18248. # function argument will compile with non-GCC compilers.
  18249. #
  18250. if test "x$GCC" = "xyes" ; then
  18251. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18252. else
  18253. CFLAGS="-D_U_=\"\" $CFLAGS"
  18254. fi
  18255. # Check whether --enable-force-bpf was given.
  18256. if test "${enable_force_bpf+set}" = set; then :
  18257. enableval=$enable_force_bpf;
  18258. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18259. fi
  18260. # Check whether --enable-force-pf was given.
  18261. if test "${enable_force_pf+set}" = set; then :
  18262. enableval=$enable_force_pf;
  18263. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18264. fi
  18265. # Check whether --enable-force-libdnet was given.
  18266. if test "${enable_force_libdnet+set}" = set; then :
  18267. enableval=$enable_force_libdnet;
  18268. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18269. fi
  18270. # Check whether --enable-force-libxdp was given.
  18271. if test "${enable_force_libxdp+set}" = set; then :
  18272. enableval=$enable_force_libxdp;
  18273. $as_echo "#define FORCE_INJECT_LIBXDP 1" >>confdefs.h
  18274. fi
  18275. # Check whether --enable-force-inject was given.
  18276. if test "${enable_force_inject+set}" = set; then :
  18277. enableval=$enable_force_inject;
  18278. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18279. fi
  18280. # Check whether --enable-force-sendpacket was given.
  18281. if test "${enable_force_sendpacket+set}" = set; then :
  18282. enableval=$enable_force_sendpacket;
  18283. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18284. fi
  18285. static_link=no
  18286. dynamic_link=yes
  18287. # Check whether --enable-static-link was given.
  18288. if test "${enable_static_link+set}" = set; then :
  18289. enableval=$enable_static_link;
  18290. if test $enableval = yes; then
  18291. static_link=yes
  18292. dynamic_link=no
  18293. fi
  18294. fi
  18295. # Check whether --enable-dynamic-link was given.
  18296. if test "${enable_dynamic_link+set}" = set; then :
  18297. enableval=$enable_dynamic_link;
  18298. if test $enableval = no; then
  18299. dynamic_link=no
  18300. static_link=yes
  18301. elif test $static_link = yes; then
  18302. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18303. fi
  18304. fi
  18305. if test $static_link = yes; then
  18306. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18307. else
  18308. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18309. fi
  18310. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18311. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18312. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18313. inet_aton=yes
  18314. else
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lnetwork" >&5
  18316. $as_echo_n "checking for inet_aton in -lnetwork... " >&6; }
  18317. if ${ac_cv_lib_network_inet_aton+:} false; then :
  18318. $as_echo_n "(cached) " >&6
  18319. else
  18320. ac_check_lib_save_LIBS=$LIBS
  18321. LIBS="-lnetwork $LIBS"
  18322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18323. /* end confdefs.h. */
  18324. /* Override any GCC internal prototype to avoid an error.
  18325. Use char because int might match the return type of a GCC
  18326. builtin and then its argument prototype would still apply. */
  18327. #ifdef __cplusplus
  18328. extern "C"
  18329. #endif
  18330. char inet_aton ();
  18331. int
  18332. main ()
  18333. {
  18334. return inet_aton ();
  18335. ;
  18336. return 0;
  18337. }
  18338. _ACEOF
  18339. if ac_fn_c_try_link "$LINENO"; then :
  18340. ac_cv_lib_network_inet_aton=yes
  18341. else
  18342. ac_cv_lib_network_inet_aton=no
  18343. fi
  18344. rm -f core conftest.err conftest.$ac_objext \
  18345. conftest$ac_exeext conftest.$ac_ext
  18346. LIBS=$ac_check_lib_save_LIBS
  18347. fi
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_aton" >&5
  18349. $as_echo "$ac_cv_lib_network_inet_aton" >&6; }
  18350. if test "x$ac_cv_lib_network_inet_aton" = xyes; then :
  18351. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18352. use_libnetwork=yes
  18353. else
  18354. inet_aton=no
  18355. fi
  18356. fi
  18357. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18358. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18359. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18360. inet_pton=yes
  18361. else
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lnetwork" >&5
  18363. $as_echo_n "checking for inet_pton in -lnetwork... " >&6; }
  18364. if ${ac_cv_lib_network_inet_pton+:} false; then :
  18365. $as_echo_n "(cached) " >&6
  18366. else
  18367. ac_check_lib_save_LIBS=$LIBS
  18368. LIBS="-lnetwork $LIBS"
  18369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18370. /* end confdefs.h. */
  18371. /* Override any GCC internal prototype to avoid an error.
  18372. Use char because int might match the return type of a GCC
  18373. builtin and then its argument prototype would still apply. */
  18374. #ifdef __cplusplus
  18375. extern "C"
  18376. #endif
  18377. char inet_pton ();
  18378. int
  18379. main ()
  18380. {
  18381. return inet_pton ();
  18382. ;
  18383. return 0;
  18384. }
  18385. _ACEOF
  18386. if ac_fn_c_try_link "$LINENO"; then :
  18387. ac_cv_lib_network_inet_pton=yes
  18388. else
  18389. ac_cv_lib_network_inet_pton=no
  18390. fi
  18391. rm -f core conftest.err conftest.$ac_objext \
  18392. conftest$ac_exeext conftest.$ac_ext
  18393. LIBS=$ac_check_lib_save_LIBS
  18394. fi
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_pton" >&5
  18396. $as_echo "$ac_cv_lib_network_inet_pton" >&6; }
  18397. if test "x$ac_cv_lib_network_inet_pton" = xyes; then :
  18398. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18399. use_libnetwork=yes
  18400. else
  18401. inet_pton=no
  18402. fi
  18403. fi
  18404. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18405. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18406. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18407. inet_ntop=yes
  18408. else
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnetwork" >&5
  18410. $as_echo_n "checking for inet_ntop in -lnetwork... " >&6; }
  18411. if ${ac_cv_lib_network_inet_ntop+:} false; then :
  18412. $as_echo_n "(cached) " >&6
  18413. else
  18414. ac_check_lib_save_LIBS=$LIBS
  18415. LIBS="-lnetwork $LIBS"
  18416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18417. /* end confdefs.h. */
  18418. /* Override any GCC internal prototype to avoid an error.
  18419. Use char because int might match the return type of a GCC
  18420. builtin and then its argument prototype would still apply. */
  18421. #ifdef __cplusplus
  18422. extern "C"
  18423. #endif
  18424. char inet_ntop ();
  18425. int
  18426. main ()
  18427. {
  18428. return inet_ntop ();
  18429. ;
  18430. return 0;
  18431. }
  18432. _ACEOF
  18433. if ac_fn_c_try_link "$LINENO"; then :
  18434. ac_cv_lib_network_inet_ntop=yes
  18435. else
  18436. ac_cv_lib_network_inet_ntop=no
  18437. fi
  18438. rm -f core conftest.err conftest.$ac_objext \
  18439. conftest$ac_exeext conftest.$ac_ext
  18440. LIBS=$ac_check_lib_save_LIBS
  18441. fi
  18442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntop" >&5
  18443. $as_echo "$ac_cv_lib_network_inet_ntop" >&6; }
  18444. if test "x$ac_cv_lib_network_inet_ntop" = xyes; then :
  18445. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18446. use_libnetwork=yes
  18447. else
  18448. inet_ntop=no
  18449. fi
  18450. fi
  18451. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18452. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18453. fi
  18454. if test "$use_libnetwork" = "yes" ; then
  18455. LIBS="-lnetwork $LIBS"
  18456. fi
  18457. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18458. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18459. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18460. inet_addr=yes
  18461. else
  18462. inet_addr=no
  18463. fi
  18464. if test x$inet_addr = xno ; then
  18465. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18466. fi
  18467. ac_fn_c_check_func "$LINENO" "fts_read" "ac_cv_func_fts_read"
  18468. if test "x$ac_cv_func_fts_read" = xyes; then :
  18469. else
  18470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fts_read in -lbsd" >&5
  18471. $as_echo_n "checking for fts_read in -lbsd... " >&6; }
  18472. if ${ac_cv_lib_bsd_fts_read+:} false; then :
  18473. $as_echo_n "(cached) " >&6
  18474. else
  18475. ac_check_lib_save_LIBS=$LIBS
  18476. LIBS="-lbsd $LIBS"
  18477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18478. /* end confdefs.h. */
  18479. /* Override any GCC internal prototype to avoid an error.
  18480. Use char because int might match the return type of a GCC
  18481. builtin and then its argument prototype would still apply. */
  18482. #ifdef __cplusplus
  18483. extern "C"
  18484. #endif
  18485. char fts_read ();
  18486. int
  18487. main ()
  18488. {
  18489. return fts_read ();
  18490. ;
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. if ac_fn_c_try_link "$LINENO"; then :
  18495. ac_cv_lib_bsd_fts_read=yes
  18496. else
  18497. ac_cv_lib_bsd_fts_read=no
  18498. fi
  18499. rm -f core conftest.err conftest.$ac_objext \
  18500. conftest$ac_exeext conftest.$ac_ext
  18501. LIBS=$ac_check_lib_save_LIBS
  18502. fi
  18503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_fts_read" >&5
  18504. $as_echo "$ac_cv_lib_bsd_fts_read" >&6; }
  18505. if test "x$ac_cv_lib_bsd_fts_read" = xyes; then :
  18506. cat >>confdefs.h <<_ACEOF
  18507. #define HAVE_LIBBSD 1
  18508. _ACEOF
  18509. LIBS="-lbsd $LIBS"
  18510. fi
  18511. fi
  18512. have_tuntap=no
  18513. # Check whether --enable-tuntap was given.
  18514. if test "${enable_tuntap+set}" = set; then :
  18515. enableval=$enable_tuntap; :
  18516. else
  18517. case "$build_os" in
  18518. linux*)
  18519. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18520. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18521. have_tuntap=yes
  18522. fi
  18523. ;;
  18524. *)
  18525. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18526. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18527. have_tuntap=yes
  18528. fi
  18529. ;;
  18530. esac
  18531. fi
  18532. if test $have_tuntap = yes ; then
  18533. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18534. fi
  18535. foundpcap=no
  18536. pf_ring_found=no
  18537. pf_ring_lib=${with_pfring_lib}
  18538. using_pcap_config=no
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18540. $as_echo_n "checking for libpcap... " >&6; }
  18541. # Check whether --with-libpcap was given.
  18542. if test "${with_libpcap+set}" = set; then :
  18543. withval=$with_libpcap;
  18544. testdir=$withval
  18545. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18546. if ! test -f "${incl}"; then
  18547. continue
  18548. fi
  18549. LPCAPINC=${incl}
  18550. LPCAPINCDIR=${testdir}
  18551. if test $dynamic_link = yes; then
  18552. for ext in .dylib .so .tbd ; do
  18553. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18554. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18555. if test -n "${sharefile}"; then
  18556. LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
  18557. LPCAPLIB="-L$LPCAP_LD_LIBRARY_PATH -lpcap"
  18558. foundpcap=$testdir
  18559. break
  18560. fi
  18561. done
  18562. if ! test $foundpcap = no; then
  18563. break
  18564. fi
  18565. done
  18566. else
  18567. for ext in ${libext} .a .A.tbd ; do
  18568. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18569. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18570. if test -n "${staticfile}"; then
  18571. LPCAPLIB="${staticfile}"
  18572. foundpcap=${testdir}
  18573. break
  18574. fi
  18575. done
  18576. done
  18577. fi
  18578. if test $foundpcap = no; then
  18579. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18580. fi
  18581. break
  18582. done
  18583. else
  18584. #
  18585. # Look for pcap-config.
  18586. #
  18587. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18588. #
  18589. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18590. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18591. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18592. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18593. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18594. # 'pcap-config' script that only occasionally works for dynamic definitions, and definitely
  18595. # does not work for static.
  18596. #
  18597. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18598. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18599. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18600. # libpcap functional. In the future, there may be more.
  18601. #
  18602. # (sigh)
  18603. #
  18604. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18605. # it may work for you.
  18606. if test $enable_pcap_config = yes; then
  18607. if test -n "$ac_tool_prefix"; then
  18608. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18609. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18611. $as_echo_n "checking for $ac_word... " >&6; }
  18612. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18613. $as_echo_n "(cached) " >&6
  18614. else
  18615. case $PCAP_CONFIG in
  18616. [\\/]* | ?:[\\/]*)
  18617. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18618. ;;
  18619. *)
  18620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18621. for as_dir in $PATH
  18622. do
  18623. IFS=$as_save_IFS
  18624. test -z "$as_dir" && as_dir=.
  18625. for ac_exec_ext in '' $ac_executable_extensions; do
  18626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18627. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18629. break 2
  18630. fi
  18631. done
  18632. done
  18633. IFS=$as_save_IFS
  18634. ;;
  18635. esac
  18636. fi
  18637. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18638. if test -n "$PCAP_CONFIG"; then
  18639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18640. $as_echo "$PCAP_CONFIG" >&6; }
  18641. else
  18642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18643. $as_echo "no" >&6; }
  18644. fi
  18645. fi
  18646. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18647. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18648. # Extract the first word of "pcap-config", so it can be a program name with args.
  18649. set dummy pcap-config; ac_word=$2
  18650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18651. $as_echo_n "checking for $ac_word... " >&6; }
  18652. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18653. $as_echo_n "(cached) " >&6
  18654. else
  18655. case $ac_pt_PCAP_CONFIG in
  18656. [\\/]* | ?:[\\/]*)
  18657. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18658. ;;
  18659. *)
  18660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18661. for as_dir in $PATH
  18662. do
  18663. IFS=$as_save_IFS
  18664. test -z "$as_dir" && as_dir=.
  18665. for ac_exec_ext in '' $ac_executable_extensions; do
  18666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18667. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18669. break 2
  18670. fi
  18671. done
  18672. done
  18673. IFS=$as_save_IFS
  18674. ;;
  18675. esac
  18676. fi
  18677. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18678. if test -n "$ac_pt_PCAP_CONFIG"; then
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18680. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18681. else
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18683. $as_echo "no" >&6; }
  18684. fi
  18685. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18686. PCAP_CONFIG=""
  18687. else
  18688. case $cross_compiling:$ac_tool_warned in
  18689. yes:)
  18690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18692. ac_tool_warned=yes ;;
  18693. esac
  18694. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18695. fi
  18696. else
  18697. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18698. fi
  18699. if test -n "$PCAP_CONFIG"; then
  18700. #
  18701. # Found - use it to get the include flags for
  18702. # libpcap and the flags to link with libpcap.
  18703. #
  18704. # Please read section 11.6 "Shell Substitutions"
  18705. # in the autoconf manual before doing anything
  18706. # to this that involves quoting. Especially note
  18707. # the statement "There is just no portable way to use
  18708. # double-quoted strings inside double-quoted back-quoted
  18709. # expressions (pfew!)."
  18710. #
  18711. if test $dynamic_link = yes; then
  18712. LPCAPLIB=$($PCAP_CONFIG --libs)
  18713. else
  18714. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18715. fi
  18716. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18717. if test -n "$LPCAPLIB"; then
  18718. foundpcap=yes
  18719. using_pcap_config=yes
  18720. else
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18722. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18723. fi
  18724. fi
  18725. fi
  18726. if test ! $foundpcap = yes; then
  18727. #
  18728. # Not found; look for pcap.
  18729. #
  18730. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18731. if test -f "${testdir}/include/pcap.h"; then
  18732. LPCAPINC="${testdir}/include/pcap.h"
  18733. LPCAPINCDIR="${testdir}/include"
  18734. if test $dynamic_link = yes; then
  18735. for ext in .dylib .so .tbd; do
  18736. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18737. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18738. if test -n "${sharefile}"; then
  18739. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18740. foundpcap=$testdir
  18741. break
  18742. fi
  18743. done
  18744. if ! test $foundpcap = no; then
  18745. break
  18746. fi
  18747. done
  18748. fi
  18749. if test $foundpcap = no ; then
  18750. for ext in ${libext} .a .A.tbd ; do
  18751. for dir in . lib lib64 lib32 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18752. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18753. if test -n "${staticfile}"; then
  18754. LPCAPLIB="${staticfile}"
  18755. foundpcap=$testdir
  18756. break
  18757. fi
  18758. done
  18759. if ! test $foundpcap = no; then
  18760. break
  18761. fi
  18762. done
  18763. fi
  18764. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18765. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18766. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18767. foundpcap=$testdir
  18768. fi
  18769. fi
  18770. if ! test $foundpcap = no; then
  18771. break
  18772. fi
  18773. done
  18774. fi
  18775. fi
  18776. if test $foundpcap = no ; then
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18778. $as_echo "no" >&6; }
  18779. as_fn_error $? "libpcap not found" "$LINENO" 5
  18780. else
  18781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18782. $as_echo "$foundpcap" >&6; }
  18783. fi
  18784. ## could be PF_RING
  18785. #
  18786. # library is static and in PF_RING build tree
  18787. #
  18788. # Need access to libpfring library
  18789. # and must find an associated libpfring.a
  18790. if test -n "${with_pfring_lib}"; then
  18791. if test -f ${with_pfring_lib}; then
  18792. pf_ring_lib=${with_pfring_lib}
  18793. pf_ring_found=yes
  18794. else
  18795. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18796. fi
  18797. fi
  18798. # libpcap can require libnl
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18800. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18801. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18802. $as_echo_n "(cached) " >&6
  18803. else
  18804. ac_func_search_save_LIBS=$LIBS
  18805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18806. /* end confdefs.h. */
  18807. /* Override any GCC internal prototype to avoid an error.
  18808. Use char because int might match the return type of a GCC
  18809. builtin and then its argument prototype would still apply. */
  18810. #ifdef __cplusplus
  18811. extern "C"
  18812. #endif
  18813. char nl_handle_alloc ();
  18814. int
  18815. main ()
  18816. {
  18817. return nl_handle_alloc ();
  18818. ;
  18819. return 0;
  18820. }
  18821. _ACEOF
  18822. for ac_lib in '' nl; do
  18823. if test -z "$ac_lib"; then
  18824. ac_res="none required"
  18825. else
  18826. ac_res=-l$ac_lib
  18827. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18828. fi
  18829. if ac_fn_c_try_link "$LINENO"; then :
  18830. ac_cv_search_nl_handle_alloc=$ac_res
  18831. fi
  18832. rm -f core conftest.err conftest.$ac_objext \
  18833. conftest$ac_exeext
  18834. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18835. break
  18836. fi
  18837. done
  18838. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18839. else
  18840. ac_cv_search_nl_handle_alloc=no
  18841. fi
  18842. rm conftest.$ac_ext
  18843. LIBS=$ac_func_search_save_LIBS
  18844. fi
  18845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18846. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18847. ac_res=$ac_cv_search_nl_handle_alloc
  18848. if test "$ac_res" != no; then :
  18849. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18850. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18851. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18852. fi
  18853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bpf_object__open_file in -lbpf" >&5
  18854. $as_echo_n "checking for bpf_object__open_file in -lbpf... " >&6; }
  18855. if ${ac_cv_lib_bpf_bpf_object__open_file+:} false; then :
  18856. $as_echo_n "(cached) " >&6
  18857. else
  18858. ac_check_lib_save_LIBS=$LIBS
  18859. LIBS="-lbpf $LIBS"
  18860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18861. /* end confdefs.h. */
  18862. /* Override any GCC internal prototype to avoid an error.
  18863. Use char because int might match the return type of a GCC
  18864. builtin and then its argument prototype would still apply. */
  18865. #ifdef __cplusplus
  18866. extern "C"
  18867. #endif
  18868. char bpf_object__open_file ();
  18869. int
  18870. main ()
  18871. {
  18872. return bpf_object__open_file ();
  18873. ;
  18874. return 0;
  18875. }
  18876. _ACEOF
  18877. if ac_fn_c_try_link "$LINENO"; then :
  18878. ac_cv_lib_bpf_bpf_object__open_file=yes
  18879. else
  18880. ac_cv_lib_bpf_bpf_object__open_file=no
  18881. fi
  18882. rm -f core conftest.err conftest.$ac_objext \
  18883. conftest$ac_exeext conftest.$ac_ext
  18884. LIBS=$ac_check_lib_save_LIBS
  18885. fi
  18886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bpf_bpf_object__open_file" >&5
  18887. $as_echo "$ac_cv_lib_bpf_bpf_object__open_file" >&6; }
  18888. if test "x$ac_cv_lib_bpf_bpf_object__open_file" = xyes; then :
  18889. cat >>confdefs.h <<_ACEOF
  18890. #define HAVE_LIBBPF 1
  18891. _ACEOF
  18892. LIBS="-lbpf $LIBS"
  18893. else
  18894. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find libbpf library " >&5
  18895. $as_echo "$as_me: Unable to find libbpf library " >&6;}
  18896. fi
  18897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsk_umem__delete in -lxdp" >&5
  18898. $as_echo_n "checking for xsk_umem__delete in -lxdp... " >&6; }
  18899. if ${ac_cv_lib_xdp_xsk_umem__delete+:} false; then :
  18900. $as_echo_n "(cached) " >&6
  18901. else
  18902. ac_check_lib_save_LIBS=$LIBS
  18903. LIBS="-lxdp $LIBS"
  18904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18905. /* end confdefs.h. */
  18906. /* Override any GCC internal prototype to avoid an error.
  18907. Use char because int might match the return type of a GCC
  18908. builtin and then its argument prototype would still apply. */
  18909. #ifdef __cplusplus
  18910. extern "C"
  18911. #endif
  18912. char xsk_umem__delete ();
  18913. int
  18914. main ()
  18915. {
  18916. return xsk_umem__delete ();
  18917. ;
  18918. return 0;
  18919. }
  18920. _ACEOF
  18921. if ac_fn_c_try_link "$LINENO"; then :
  18922. ac_cv_lib_xdp_xsk_umem__delete=yes
  18923. else
  18924. ac_cv_lib_xdp_xsk_umem__delete=no
  18925. fi
  18926. rm -f core conftest.err conftest.$ac_objext \
  18927. conftest$ac_exeext conftest.$ac_ext
  18928. LIBS=$ac_check_lib_save_LIBS
  18929. fi
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xdp_xsk_umem__delete" >&5
  18931. $as_echo "$ac_cv_lib_xdp_xsk_umem__delete" >&6; }
  18932. if test "x$ac_cv_lib_xdp_xsk_umem__delete" = xyes; then :
  18933. cat >>confdefs.h <<_ACEOF
  18934. #define HAVE_LIBXDP 1
  18935. _ACEOF
  18936. LIBS="-lxdp $LIBS"
  18937. else
  18938. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find libxdp library " >&5
  18939. $as_echo "$as_me: Unable to find libxdp library " >&6;}
  18940. fi
  18941. ##
  18942. ## If not automatically configured,
  18943. ## check for newer and full-featured libpcap's
  18944. ##
  18945. if ! test $using_pcap_config = yes; then
  18946. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18948. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18949. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18950. $as_echo_n "(cached) " >&6
  18951. else
  18952. ac_check_lib_save_LIBS=$LIBS
  18953. LIBS="-lnl $LIBS"
  18954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18955. /* end confdefs.h. */
  18956. /* Override any GCC internal prototype to avoid an error.
  18957. Use char because int might match the return type of a GCC
  18958. builtin and then its argument prototype would still apply. */
  18959. #ifdef __cplusplus
  18960. extern "C"
  18961. #endif
  18962. char nl_cache_alloc ();
  18963. int
  18964. main ()
  18965. {
  18966. return nl_cache_alloc ();
  18967. ;
  18968. return 0;
  18969. }
  18970. _ACEOF
  18971. if ac_fn_c_try_link "$LINENO"; then :
  18972. ac_cv_lib_nl_nl_cache_alloc=yes
  18973. else
  18974. ac_cv_lib_nl_nl_cache_alloc=no
  18975. fi
  18976. rm -f core conftest.err conftest.$ac_objext \
  18977. conftest$ac_exeext conftest.$ac_ext
  18978. LIBS=$ac_check_lib_save_LIBS
  18979. fi
  18980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18981. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18982. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18983. nl_found=yes
  18984. fi
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18986. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18987. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18988. $as_echo_n "(cached) " >&6
  18989. else
  18990. ac_check_lib_save_LIBS=$LIBS
  18991. LIBS="-lnl-genl-3 $LIBS"
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. /* Override any GCC internal prototype to avoid an error.
  18995. Use char because int might match the return type of a GCC
  18996. builtin and then its argument prototype would still apply. */
  18997. #ifdef __cplusplus
  18998. extern "C"
  18999. #endif
  19000. char genl_connect ();
  19001. int
  19002. main ()
  19003. {
  19004. return genl_connect ();
  19005. ;
  19006. return 0;
  19007. }
  19008. _ACEOF
  19009. if ac_fn_c_try_link "$LINENO"; then :
  19010. ac_cv_lib_nl_genl_3_genl_connect=yes
  19011. else
  19012. ac_cv_lib_nl_genl_3_genl_connect=no
  19013. fi
  19014. rm -f core conftest.err conftest.$ac_objext \
  19015. conftest$ac_exeext conftest.$ac_ext
  19016. LIBS=$ac_check_lib_save_LIBS
  19017. fi
  19018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  19019. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  19020. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  19021. nl_genl_3_found=yes
  19022. fi
  19023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  19024. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  19025. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  19026. $as_echo_n "(cached) " >&6
  19027. else
  19028. ac_check_lib_save_LIBS=$LIBS
  19029. LIBS="-lnl-3 $LIBS"
  19030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19031. /* end confdefs.h. */
  19032. /* Override any GCC internal prototype to avoid an error.
  19033. Use char because int might match the return type of a GCC
  19034. builtin and then its argument prototype would still apply. */
  19035. #ifdef __cplusplus
  19036. extern "C"
  19037. #endif
  19038. char nl_cache_alloc ();
  19039. int
  19040. main ()
  19041. {
  19042. return nl_cache_alloc ();
  19043. ;
  19044. return 0;
  19045. }
  19046. _ACEOF
  19047. if ac_fn_c_try_link "$LINENO"; then :
  19048. ac_cv_lib_nl_3_nl_cache_alloc=yes
  19049. else
  19050. ac_cv_lib_nl_3_nl_cache_alloc=no
  19051. fi
  19052. rm -f core conftest.err conftest.$ac_objext \
  19053. conftest$ac_exeext conftest.$ac_ext
  19054. LIBS=$ac_check_lib_save_LIBS
  19055. fi
  19056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  19057. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  19058. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  19059. nl_3_found=yes
  19060. fi
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  19062. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  19063. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  19064. $as_echo_n "(cached) " >&6
  19065. else
  19066. ac_check_lib_save_LIBS=$LIBS
  19067. LIBS="-ldbus-1 $LIBS"
  19068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19069. /* end confdefs.h. */
  19070. /* Override any GCC internal prototype to avoid an error.
  19071. Use char because int might match the return type of a GCC
  19072. builtin and then its argument prototype would still apply. */
  19073. #ifdef __cplusplus
  19074. extern "C"
  19075. #endif
  19076. char dbus_malloc ();
  19077. int
  19078. main ()
  19079. {
  19080. return dbus_malloc ();
  19081. ;
  19082. return 0;
  19083. }
  19084. _ACEOF
  19085. if ac_fn_c_try_link "$LINENO"; then :
  19086. ac_cv_lib_dbus_1_dbus_malloc=yes
  19087. else
  19088. ac_cv_lib_dbus_1_dbus_malloc=no
  19089. fi
  19090. rm -f core conftest.err conftest.$ac_objext \
  19091. conftest$ac_exeext conftest.$ac_ext
  19092. LIBS=$ac_check_lib_save_LIBS
  19093. fi
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  19095. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  19096. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  19097. dbus_1_found=yes
  19098. fi
  19099. if test "$nl_found" = "yes"; then
  19100. LPCAPLIB="$LPCAPLIB -lnl"
  19101. fi
  19102. if test "$nl_genl_3_found" = "yes"; then
  19103. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  19104. fi
  19105. if test "$nl_3_found" = "yes"; then
  19106. LPCAPLIB="$LPCAPLIB -lnl-3"
  19107. fi
  19108. if test "$dbus_1_found" = "yes"; then
  19109. LPCAPLIB="$LPCAPLIB -ldbus-1"
  19110. fi
  19111. ## See if prereqs for PF_RING exist
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  19113. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  19114. if ${ac_cv_lib_numa_numa_available+:} false; then :
  19115. $as_echo_n "(cached) " >&6
  19116. else
  19117. ac_check_lib_save_LIBS=$LIBS
  19118. LIBS="-lnuma $LIBS"
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. /* Override any GCC internal prototype to avoid an error.
  19122. Use char because int might match the return type of a GCC
  19123. builtin and then its argument prototype would still apply. */
  19124. #ifdef __cplusplus
  19125. extern "C"
  19126. #endif
  19127. char numa_available ();
  19128. int
  19129. main ()
  19130. {
  19131. return numa_available ();
  19132. ;
  19133. return 0;
  19134. }
  19135. _ACEOF
  19136. if ac_fn_c_try_link "$LINENO"; then :
  19137. ac_cv_lib_numa_numa_available=yes
  19138. else
  19139. ac_cv_lib_numa_numa_available=no
  19140. fi
  19141. rm -f core conftest.err conftest.$ac_objext \
  19142. conftest$ac_exeext conftest.$ac_ext
  19143. LIBS=$ac_check_lib_save_LIBS
  19144. fi
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  19146. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  19147. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  19148. numa_found=yes
  19149. fi
  19150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  19151. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  19152. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  19153. $as_echo_n "(cached) " >&6
  19154. else
  19155. ac_check_lib_save_LIBS=$LIBS
  19156. LIBS="-lpthread $LIBS"
  19157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19158. /* end confdefs.h. */
  19159. /* Override any GCC internal prototype to avoid an error.
  19160. Use char because int might match the return type of a GCC
  19161. builtin and then its argument prototype would still apply. */
  19162. #ifdef __cplusplus
  19163. extern "C"
  19164. #endif
  19165. char pthread_create ();
  19166. int
  19167. main ()
  19168. {
  19169. return pthread_create ();
  19170. ;
  19171. return 0;
  19172. }
  19173. _ACEOF
  19174. if ac_fn_c_try_link "$LINENO"; then :
  19175. ac_cv_lib_pthread_pthread_create=yes
  19176. else
  19177. ac_cv_lib_pthread_pthread_create=no
  19178. fi
  19179. rm -f core conftest.err conftest.$ac_objext \
  19180. conftest$ac_exeext conftest.$ac_ext
  19181. LIBS=$ac_check_lib_save_LIBS
  19182. fi
  19183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  19184. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  19185. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  19186. pthread_found=yes
  19187. fi
  19188. if test $pf_ring_found = yes; then
  19189. if ! test "${numa_found}" = "yes"; then
  19190. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  19191. fi
  19192. if ! test "${pthread_found}" = "yes"; then
  19193. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  19194. fi
  19195. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  19196. fi
  19197. fi
  19198. OLDLIBS="$LIBS"
  19199. if test -n "$LPCAPINCDIR"; then
  19200. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19201. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  19202. else
  19203. OLDCFLAGS="$CFLAGS"
  19204. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  19205. if test -d "$LPCAPINCDIR/pcap"; then
  19206. LPCAPINC="$LPCAPINCDIR/pcap/pcap.h"
  19207. else
  19208. LPCAPINC="$LPCAPINCDIR/pcap.h"
  19209. fi
  19210. fi
  19211. LIBS="$LPCAPLIB"
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  19213. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  19214. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19215. $as_echo_n "(cached) " >&6
  19216. else
  19217. ac_func_search_save_LIBS=$LIBS
  19218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19219. /* end confdefs.h. */
  19220. /* Override any GCC internal prototype to avoid an error.
  19221. Use char because int might match the return type of a GCC
  19222. builtin and then its argument prototype would still apply. */
  19223. #ifdef __cplusplus
  19224. extern "C"
  19225. #endif
  19226. char pcap_get_pfring_id ();
  19227. int
  19228. main ()
  19229. {
  19230. return pcap_get_pfring_id ();
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. for ac_lib in '' pcap; do
  19236. if test -z "$ac_lib"; then
  19237. ac_res="none required"
  19238. else
  19239. ac_res=-l$ac_lib
  19240. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19241. fi
  19242. if ac_fn_c_try_link "$LINENO"; then :
  19243. ac_cv_search_pcap_get_pfring_id=$ac_res
  19244. fi
  19245. rm -f core conftest.err conftest.$ac_objext \
  19246. conftest$ac_exeext
  19247. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19248. break
  19249. fi
  19250. done
  19251. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  19252. else
  19253. ac_cv_search_pcap_get_pfring_id=no
  19254. fi
  19255. rm conftest.$ac_ext
  19256. LIBS=$ac_func_search_save_LIBS
  19257. fi
  19258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  19259. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  19260. ac_res=$ac_cv_search_pcap_get_pfring_id
  19261. if test "$ac_res" != no; then :
  19262. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19263. $as_echo "#define HAVE_PF_RING_PCAP /**/" >>confdefs.h
  19264. fi
  19265. ## Does libpcap work with selected libraries?
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  19267. $as_echo_n "checking for library containing pcap_close... " >&6; }
  19268. if ${ac_cv_search_pcap_close+:} false; then :
  19269. $as_echo_n "(cached) " >&6
  19270. else
  19271. ac_func_search_save_LIBS=$LIBS
  19272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19273. /* end confdefs.h. */
  19274. /* Override any GCC internal prototype to avoid an error.
  19275. Use char because int might match the return type of a GCC
  19276. builtin and then its argument prototype would still apply. */
  19277. #ifdef __cplusplus
  19278. extern "C"
  19279. #endif
  19280. char pcap_close ();
  19281. int
  19282. main ()
  19283. {
  19284. return pcap_close ();
  19285. ;
  19286. return 0;
  19287. }
  19288. _ACEOF
  19289. for ac_lib in '' pcap; do
  19290. if test -z "$ac_lib"; then
  19291. ac_res="none required"
  19292. else
  19293. ac_res=-l$ac_lib
  19294. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19295. fi
  19296. if ac_fn_c_try_link "$LINENO"; then :
  19297. ac_cv_search_pcap_close=$ac_res
  19298. fi
  19299. rm -f core conftest.err conftest.$ac_objext \
  19300. conftest$ac_exeext
  19301. if ${ac_cv_search_pcap_close+:} false; then :
  19302. break
  19303. fi
  19304. done
  19305. if ${ac_cv_search_pcap_close+:} false; then :
  19306. else
  19307. ac_cv_search_pcap_close=no
  19308. fi
  19309. rm conftest.$ac_ext
  19310. LIBS=$ac_func_search_save_LIBS
  19311. fi
  19312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19313. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19314. ac_res=$ac_cv_search_pcap_close
  19315. if test "$ac_res" != no; then :
  19316. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19317. else
  19318. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19319. fi
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpcap version" >&5
  19321. $as_echo_n "checking libpcap version... " >&6; }
  19322. libpcap_version=unknown
  19323. libpcap_version_096=no
  19324. cat >conftest.c <<EOF
  19325. #include <string.h>
  19326. #include <stdio.h>
  19327. #include "$LPCAPINC"
  19328. /*
  19329. * simple proggy to get the version of libpcap
  19330. */
  19331. int main() {
  19332. printf("%s\n", pcap_lib_version());
  19333. return 0;
  19334. }
  19335. EOF
  19336. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
  19337. conftest.c $LIBS >/dev/null 2>&1
  19338. if test -x conftest -a "$cross_compiling" != "yes"; then
  19339. full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
  19340. libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
  19341. pcap_version_ok=yes
  19342. fi
  19343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap_version" >&5
  19344. $as_echo "$libpcap_version" >&6; }
  19345. rm -rf conftest.* core core.conftest 2>&1 > /dev/null
  19346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid libpcap version" >&5
  19347. $as_echo_n "checking for valid libpcap version... " >&6; }
  19348. if test x$libpcap_version != xunknown; then
  19349. libpcap_major=$(echo ${libpcap_version} | ${CUT} -d '.' -f1)
  19350. libpcap_minor=$(echo ${libpcap_version} | ${CUT} -d '.' -f2)
  19351. libpcap_build=$(echo ${libpcap_version} | ${CUT} -d '.' -f3)
  19352. if test $libpcap_major -eq 0 && \
  19353. (test $libpcap_minor -lt 7 || \
  19354. (test $libpcap_minor -eq 7 && test $libpcap_build -lt 2))
  19355. then
  19356. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19357. Please upgrade to version 0.7.2 or better. Your version is $libpcap_version" "$LINENO" 5
  19358. fi
  19359. if test $libpcap_major -gt 0 || \
  19360. (test $libpcap_minor -eq 9 && test $libpcap_build -ge 6)
  19361. then
  19362. libpcap_version_096=yes
  19363. fi
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19365. $as_echo "yes" >&6; }
  19366. else
  19367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  19368. $as_echo "unknown" >&6; }
  19369. fi
  19370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19371. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19373. /* end confdefs.h. */
  19374. #include <stdio.h>
  19375. #include <stdlib.h>
  19376. #include <string.h>
  19377. #include "$LPCAPINC"
  19378. int
  19379. main ()
  19380. {
  19381. pcap_t *p;
  19382. char *errbuf;
  19383. pcap_setnonblock(p, 1, errbuf);
  19384. exit(0);
  19385. ;
  19386. return 0;
  19387. }
  19388. _ACEOF
  19389. if ac_fn_c_try_link "$LINENO"; then :
  19390. have_pcap_setnonblock=yes
  19391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19392. $as_echo "yes" >&6; }
  19393. else
  19394. have_pcap_setnonblock=no
  19395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19396. $as_echo "no" >&6; }
  19397. fi
  19398. rm -f core conftest.err conftest.$ac_objext \
  19399. conftest$ac_exeext conftest.$ac_ext
  19400. if test $have_pcap_setnonblock = yes ; then
  19401. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19402. fi
  19403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19404. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19406. /* end confdefs.h. */
  19407. #include <stdio.h>
  19408. #include <stdlib.h>
  19409. #include <string.h>
  19410. #include "$LPCAPINC"
  19411. int
  19412. main ()
  19413. {
  19414. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19415. exit(0);
  19416. exit(1);
  19417. ;
  19418. return 0;
  19419. }
  19420. _ACEOF
  19421. if ac_fn_c_try_link "$LINENO"; then :
  19422. have_dlt_to_desc=yes
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19424. $as_echo "yes" >&6; }
  19425. else
  19426. have_dlt_to_desc=no
  19427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19428. $as_echo "no" >&6; }
  19429. fi
  19430. rm -f core conftest.err conftest.$ac_objext \
  19431. conftest$ac_exeext conftest.$ac_ext
  19432. if test $have_dlt_to_desc = yes ; then
  19433. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19434. fi
  19435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19436. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19438. /* end confdefs.h. */
  19439. #include <stdio.h>
  19440. #include <stdlib.h>
  19441. #include <string.h>
  19442. #include "$LPCAPINC"
  19443. int
  19444. main ()
  19445. {
  19446. int f;
  19447. pcap_t *p;
  19448. f = pcap_get_selectable_fd(p);
  19449. exit(0);
  19450. ;
  19451. return 0;
  19452. }
  19453. _ACEOF
  19454. if ac_fn_c_try_link "$LINENO"; then :
  19455. have_pcap_get_selectable_fd=yes
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19457. $as_echo "yes" >&6; }
  19458. else
  19459. have_pcap_get_selectable_fd=no
  19460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19461. $as_echo "no" >&6; }
  19462. fi
  19463. rm -f core conftest.err conftest.$ac_objext \
  19464. conftest$ac_exeext conftest.$ac_ext
  19465. if test x$have_pcap_get_selectable_fd = xyes ; then
  19466. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19467. fi
  19468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19469. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19471. /* end confdefs.h. */
  19472. #include <stdio.h>
  19473. #include <stdlib.h>
  19474. #include <string.h>
  19475. #include "$LPCAPINC"
  19476. int
  19477. main ()
  19478. {
  19479. pcap_dumper_t *dump;
  19480. pcap_t *pcap;
  19481. FILE *foo;
  19482. dump = pcap_dump_fopen(pcap, foo);
  19483. ;
  19484. return 0;
  19485. }
  19486. _ACEOF
  19487. if ac_fn_c_try_link "$LINENO"; then :
  19488. have_pcap_dump_fopen=yes
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19490. $as_echo "yes" >&6; }
  19491. else
  19492. have_pcap_dump_fopen=no
  19493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19494. $as_echo "no" >&6; }
  19495. fi
  19496. rm -f core conftest.err conftest.$ac_objext \
  19497. conftest$ac_exeext conftest.$ac_ext
  19498. if test $have_pcap_dump_fopen = yes ; then
  19499. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19500. else
  19501. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19502. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19503. fi
  19504. have_pcap_inject=no
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19506. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19508. /* end confdefs.h. */
  19509. #include <stdio.h>
  19510. #include <stdlib.h>
  19511. #include <string.h>
  19512. #include "$LPCAPINC"
  19513. int
  19514. main ()
  19515. {
  19516. pcap_t *pcap;
  19517. char *buf;
  19518. pcap_inject(pcap, (void *)buf, 0);
  19519. ;
  19520. return 0;
  19521. }
  19522. _ACEOF
  19523. if ac_fn_c_try_link "$LINENO"; then :
  19524. have_pcap_inject=yes
  19525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19526. $as_echo "yes" >&6; }
  19527. else
  19528. have_pcap_inject=no
  19529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19530. $as_echo "no" >&6; }
  19531. fi
  19532. rm -f core conftest.err conftest.$ac_objext \
  19533. conftest$ac_exeext conftest.$ac_ext
  19534. if test $have_pcap_inject = yes ; then
  19535. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19536. fi
  19537. have_pcap_sendpacket=no
  19538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19539. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19541. /* end confdefs.h. */
  19542. #include <stdio.h>
  19543. #include <stdlib.h>
  19544. #include <string.h>
  19545. #include "$LPCAPINC"
  19546. int
  19547. main ()
  19548. {
  19549. pcap_t *pcap;
  19550. u_char *buf;
  19551. pcap_sendpacket(pcap, buf, 0);
  19552. ;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. if ac_fn_c_try_link "$LINENO"; then :
  19557. have_pcap_sendpacket=yes
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19559. $as_echo "yes" >&6; }
  19560. else
  19561. have_pcap_sendpacket=no
  19562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19563. $as_echo "no" >&6; }
  19564. fi
  19565. rm -f core conftest.err conftest.$ac_objext \
  19566. conftest$ac_exeext conftest.$ac_ext
  19567. if test $have_pcap_sendpacket = yes ; then
  19568. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19569. fi
  19570. have_pcap_breakloop=no
  19571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19572. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19574. /* end confdefs.h. */
  19575. #include <stdio.h>
  19576. #include <stdlib.h>
  19577. #include <string.h>
  19578. #include "$LPCAPINC"
  19579. int
  19580. main ()
  19581. {
  19582. pcap_t *pcap;
  19583. pcap_sendpacket(pcap);
  19584. ;
  19585. return 0;
  19586. }
  19587. _ACEOF
  19588. if ac_fn_c_try_link "$LINENO"; then :
  19589. have_pcap_breakloop=yes
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19591. $as_echo "yes" >&6; }
  19592. else
  19593. have_pcap_breakloop=no
  19594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19595. $as_echo "no" >&6; }
  19596. fi
  19597. rm -f core conftest.err conftest.$ac_objext \
  19598. conftest$ac_exeext conftest.$ac_ext
  19599. if test $have_pcap_breakloop = yes ; then
  19600. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19601. fi
  19602. have_pcap_version=no
  19603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19604. $as_echo_n "checking for pcap_version... " >&6; }
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. #include <stdio.h>
  19608. #include <stdlib.h>
  19609. #include <string.h>
  19610. #include "$LPCAPINC"
  19611. extern char pcap_version[];
  19612. int
  19613. main ()
  19614. {
  19615. printf("%s", pcap_version);
  19616. ;
  19617. return 0;
  19618. }
  19619. _ACEOF
  19620. if ac_fn_c_try_link "$LINENO"; then :
  19621. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19623. $as_echo "yes" >&6; }
  19624. else
  19625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19626. $as_echo "no" >&6; }
  19627. fi
  19628. rm -f core conftest.err conftest.$ac_objext \
  19629. conftest$ac_exeext conftest.$ac_ext
  19630. have_pcap_snapshot=no
  19631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19632. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19634. /* end confdefs.h. */
  19635. #include <stdio.h>
  19636. #include <stdlib.h>
  19637. #include <string.h>
  19638. #include "$LPCAPINC"
  19639. int
  19640. main ()
  19641. {
  19642. pcap_t *p;
  19643. int len;
  19644. len = pcap_snapshot(p);
  19645. exit(0);
  19646. ;
  19647. return 0;
  19648. }
  19649. _ACEOF
  19650. if ac_fn_c_try_link "$LINENO"; then :
  19651. have_pcap_snapshot=yes
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19653. $as_echo "yes" >&6; }
  19654. else
  19655. have_pcap_snapshot=no
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19657. $as_echo "no" >&6; }
  19658. fi
  19659. rm -f core conftest.err conftest.$ac_objext \
  19660. conftest$ac_exeext conftest.$ac_ext
  19661. if test $have_pcap_snapshot = yes ; then
  19662. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19663. fi
  19664. have_pcap_open_offline_with_tstamp_precision=no
  19665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline_with_tstamp_precision support" >&5
  19666. $as_echo_n "checking for pcap_open_offline_with_tstamp_precision support... " >&6; }
  19667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19668. /* end confdefs.h. */
  19669. #include <stdio.h>
  19670. #include <stdlib.h>
  19671. #include <string.h>
  19672. #include "$LPCAPINC"
  19673. int
  19674. main ()
  19675. {
  19676. pcap_t *pcap;
  19677. char ebuf[PCAP_ERRBUF_SIZE];
  19678. pcap = pcap_open_offline_with_tstamp_precision("fake.pcap", PCAP_TSTAMP_PRECISION_NANO, &ebuf[0]);
  19679. ;
  19680. return 0;
  19681. }
  19682. _ACEOF
  19683. if ac_fn_c_try_link "$LINENO"; then :
  19684. have_pcap_open_offline_with_tstamp_precision=yes
  19685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19686. $as_echo "yes" >&6; }
  19687. else
  19688. have_pcap_open_offline_with_tstamp_precision=no
  19689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19690. $as_echo "no" >&6; }
  19691. fi
  19692. rm -f core conftest.err conftest.$ac_objext \
  19693. conftest$ac_exeext conftest.$ac_ext
  19694. if test $have_pcap_open_offline_with_tstamp_precision = yes ; then
  19695. $as_echo "#define HAVE_PCAP_OPEN_OFFLINE_WITH_TSTAMP_PRECISION 1" >>confdefs.h
  19696. $as_echo "#define PCAP_TSTAMP_US_TO_NS_MULTIPLIER 1" >>confdefs.h
  19697. $as_echo "#define PCAP_TSTAMP_US_TO_US_DIVISOR 1000" >>confdefs.h
  19698. else
  19699. $as_echo "#define PCAP_TSTAMP_US_TO_NS_MULTIPLIER 1000" >>confdefs.h
  19700. $as_echo "#define PCAP_TSTAMP_US_TO_US_DIVISOR 1" >>confdefs.h
  19701. fi
  19702. # Tcpbridge requires libpcap and pcap_sendpacket()
  19703. enable_tcpbridge=no
  19704. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19705. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19706. if test x$have_bpf = xno; then
  19707. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19708. enable_tcpbridge=yes
  19709. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19710. $as_echo "$as_me: Building tcpbridge" >&6;}
  19711. # BPF systems need to also have pcap_setnonblock()
  19712. elif test x$have_pcap_setnonblock = xyes ; then
  19713. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19714. enable_tcpbridge=yes
  19715. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19716. $as_echo "$as_me: Building tcpbridge" >&6;}
  19717. else
  19718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19719. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19720. fi
  19721. fi
  19722. if test x$enable_tcpbridge = xyes ; then
  19723. COMPILE_TCPBRIDGE_TRUE=
  19724. COMPILE_TCPBRIDGE_FALSE='#'
  19725. else
  19726. COMPILE_TCPBRIDGE_TRUE='#'
  19727. COMPILE_TCPBRIDGE_FALSE=
  19728. fi
  19729. # tcpliveplay requires linux OS to function properly
  19730. enable_tcpliveplay=no
  19731. case $host in
  19732. *-*-linux*)
  19733. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19734. enable_tcpliveplay=yes
  19735. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19736. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19737. ;;
  19738. *)
  19739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19740. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19741. ;;
  19742. esac
  19743. if test x$enable_tcpliveplay = xyes ; then
  19744. COMPILE_TCPLIVEPLAY_TRUE=
  19745. COMPILE_TCPLIVEPLAY_FALSE='#'
  19746. else
  19747. COMPILE_TCPLIVEPLAY_TRUE='#'
  19748. COMPILE_TCPLIVEPLAY_FALSE=
  19749. fi
  19750. have_netmap=no
  19751. enable_netmap=no
  19752. trynetmapdir=
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19754. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19755. # Check whether --with-netmap was given.
  19756. if test "${with_netmap+set}" = set; then :
  19757. withval=$with_netmap; trynetmapdir=$withval
  19758. fi
  19759. NETMAP_SEARCH_DIRS=
  19760. if test "$cross_compiling" = yes; then
  19761. if test "x$trynetmapdir" != "x"; then
  19762. NETMAP_SEARCH_DIRS=$trynetmapdir
  19763. fi
  19764. else
  19765. NETMAP_SEARCH_DIRS="$trynetmapdir /opt/netmap /usr/src/netmap-release /usr/src/netmap /usr/local/src/netmap-release /usr/local/src/netmap /usr/include /usr/local/include"
  19766. fi
  19767. for testdir in $NETMAP_SEARCH_DIRS; do
  19768. if test -f "${testdir}/sys/net/netmap.h" ; then
  19769. NETMAPINC="${testdir}/sys/net/netmap.h"
  19770. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19771. NETMAPINCDIR="${testdir}/sys"
  19772. have_netmap="yes $testdir"
  19773. enable_netmap=yes
  19774. else
  19775. if test -f "${testdir}/net/netmap.h" ; then
  19776. NETMAPINC="${testdir}/net/netmap.h"
  19777. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19778. NETMAPINCDIR="${testdir}"
  19779. have_netmap="yes $testdir"
  19780. enable_netmap=yes
  19781. fi
  19782. fi
  19783. if test "$have_netmap" != no ; then
  19784. NETMAPFLAGS="-DHAVE_NETMAP"
  19785. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19786. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19787. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19788. have_netmap="yes $testdir"
  19789. enable_netmap=yes
  19790. break;
  19791. fi
  19792. done
  19793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19794. $as_echo "$have_netmap" >&6; }
  19795. if test x$enable_netmap = xyes ; then
  19796. COMPILE_NETMAP_TRUE=
  19797. COMPILE_NETMAP_FALSE='#'
  19798. else
  19799. COMPILE_NETMAP_TRUE='#'
  19800. COMPILE_NETMAP_FALSE=
  19801. fi
  19802. if test "x$NETMAPINCDIR" != "x"; then
  19803. OLDCPPFLAGS="$CPPFLAGS"
  19804. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19805. have_nm_open=no
  19806. have_nm_nr_reg_mask=no
  19807. have_nm_nr_flags=no
  19808. have_nmring_head_tail=no
  19809. if test "$have_netmap" != no ; then
  19810. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19811. #include <stdio.h>
  19812. #include \"${NETMAPUSERINC}\"
  19813. "
  19814. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19815. have_nm_open=yes
  19816. fi
  19817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19818. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19820. /* end confdefs.h. */
  19821. #include <stdint.h>
  19822. #include <sys/socket.h>
  19823. #include <net/if.h>
  19824. #include <net/netmap.h>
  19825. int
  19826. main ()
  19827. {
  19828. #ifdef NR_REG_MASK
  19829. /* OK */
  19830. #else
  19831. # error NR_REG_MASK not found
  19832. #endif
  19833. ;
  19834. return 0;
  19835. }
  19836. _ACEOF
  19837. if ac_fn_c_try_compile "$LINENO"; then :
  19838. have_nm_nr_reg_mask=yes
  19839. fi
  19840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19842. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19844. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19846. /* end confdefs.h. */
  19847. #include <stdint.h>
  19848. #include <sys/socket.h>
  19849. #include <net/if.h>
  19850. #include <net/netmap.h>
  19851. int
  19852. main ()
  19853. {
  19854. struct nmreq nmr;
  19855. nmr.nr_flags = 0;
  19856. ;
  19857. return 0;
  19858. }
  19859. _ACEOF
  19860. if ac_fn_c_try_compile "$LINENO"; then :
  19861. have_nm_nr_flags=yes
  19862. fi
  19863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19865. $as_echo "$have_nm_nr_flags" >&6; }
  19866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19867. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19869. /* end confdefs.h. */
  19870. #include <stdint.h>
  19871. #include <sys/socket.h>
  19872. #include <net/if.h>
  19873. #include <net/netmap.h>
  19874. int
  19875. main ()
  19876. {
  19877. struct netmap_ring r;
  19878. r.head = r.tail = 0;
  19879. ;
  19880. return 0;
  19881. }
  19882. _ACEOF
  19883. if ac_fn_c_try_compile "$LINENO"; then :
  19884. have_nmring_head_tail=yes
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19888. $as_echo "$have_nmring_head_tail" >&6; }
  19889. fi
  19890. if test "$have_nm_open" = yes ; then
  19891. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19892. fi
  19893. if test "$have_nm_nr_reg_mask" = yes ; then
  19894. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19895. fi
  19896. if test "$have_nm_nr_flags" = yes ; then
  19897. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19898. fi
  19899. if test "$have_nmring_head_tail" = yes ; then
  19900. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19901. fi
  19902. CPPFLAGS="$OLDCPPFLAGS"
  19903. fi
  19904. have_pf=no
  19905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19906. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. #include <sys/socket.h>
  19910. #include <netpacket/packet.h>
  19911. #include <net/ethernet.h> /* the L2 protocols */
  19912. #include <netinet/in.h> /* htons */
  19913. int
  19914. main ()
  19915. {
  19916. int pf_socket;
  19917. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19918. ;
  19919. return 0;
  19920. }
  19921. _ACEOF
  19922. if ac_fn_c_try_compile "$LINENO"; then :
  19923. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19925. $as_echo "yes" >&6; }
  19926. have_pf=yes
  19927. else
  19928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19929. $as_echo "no" >&6; }
  19930. fi
  19931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19932. have_libxdp=no
  19933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXDP XDP packet sending support" >&5
  19934. $as_echo_n "checking for LIBXDP XDP packet sending support... " >&6; }
  19935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19936. /* end confdefs.h. */
  19937. #include <stdlib.h>
  19938. #include <xdp/xsk.h>
  19939. #include <sys/socket.h>
  19940. int
  19941. main ()
  19942. {
  19943. struct xsk_socket {
  19944. struct xsk_ring_cons *rx;
  19945. struct xsk_ring_prod *tx;
  19946. struct xsk_ctx *ctx;
  19947. struct xsk_socket_config config;
  19948. int fd;
  19949. };
  19950. struct xsk_socket xsk;
  19951. struct xsk_ring_cons *rxr = NULL;
  19952. struct xsk_ring_prod *txr = NULL;
  19953. int queue_id = 0;
  19954. xsk_socket__create(&xsk, "lo", queue_id, NULL, rxr, txr, NULL);
  19955. socket(AF_XDP, SOCK_RAW, 0);
  19956. ;
  19957. return 0;
  19958. }
  19959. _ACEOF
  19960. if ac_fn_c_try_compile "$LINENO"; then :
  19961. $as_echo "#define HAVE_LIBXDP 1" >>confdefs.h
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19963. $as_echo "yes" >&6; }
  19964. have_libxdp=yes
  19965. else
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19967. $as_echo "no" >&6; }
  19968. fi
  19969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19970. have_tx_ring=no
  19971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19972. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19974. /* end confdefs.h. */
  19975. #include <sys/socket.h>
  19976. #include <netpacket/packet.h>
  19977. #include <net/ethernet.h> /* the L2 protocols */
  19978. #include <netinet/in.h> /* htons */
  19979. #include <linux/if_packet.h>
  19980. int
  19981. main ()
  19982. {
  19983. int test;
  19984. test = TP_STATUS_WRONG_FORMAT
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. if ac_fn_c_try_compile "$LINENO"; then :
  19990. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19992. $as_echo "yes" >&6; }
  19993. have_tx_ring=yes
  19994. else
  19995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19996. $as_echo "no" >&6; }
  19997. fi
  19998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19999. for ac_header in bpf/libbpf.h
  20000. do :
  20001. ac_fn_c_check_header_mongrel "$LINENO" "bpf/libbpf.h" "ac_cv_header_bpf_libbpf_h" "$ac_includes_default"
  20002. if test "x$ac_cv_header_bpf_libbpf_h" = xyes; then :
  20003. cat >>confdefs.h <<_ACEOF
  20004. #define HAVE_BPF_LIBBPF_H 1
  20005. _ACEOF
  20006. fi
  20007. done
  20008. for ac_header in bpf/bpf.h
  20009. do :
  20010. ac_fn_c_check_header_mongrel "$LINENO" "bpf/bpf.h" "ac_cv_header_bpf_bpf_h" "$ac_includes_default"
  20011. if test "x$ac_cv_header_bpf_bpf_h" = xyes; then :
  20012. cat >>confdefs.h <<_ACEOF
  20013. #define HAVE_BPF_BPF_H 1
  20014. _ACEOF
  20015. fi
  20016. done
  20017. for ac_header in xdp/libxdp.h
  20018. do :
  20019. ac_fn_c_check_header_mongrel "$LINENO" "xdp/libxdp.h" "ac_cv_header_xdp_libxdp_h" "$ac_includes_default"
  20020. if test "x$ac_cv_header_xdp_libxdp_h" = xyes; then :
  20021. cat >>confdefs.h <<_ACEOF
  20022. #define HAVE_XDP_LIBXDP_H 1
  20023. _ACEOF
  20024. fi
  20025. done
  20026. for ac_header in net/bpf.h
  20027. do :
  20028. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  20029. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  20030. cat >>confdefs.h <<_ACEOF
  20031. #define HAVE_NET_BPF_H 1
  20032. _ACEOF
  20033. have_bpf=yes
  20034. else
  20035. have_bpf=no
  20036. fi
  20037. done
  20038. if test $have_bpf = yes ; then
  20039. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  20040. fi
  20041. founddnet=no
  20042. have_libdnet=no
  20043. libdnet_version=
  20044. enable_fragroute=no
  20045. trydnetdir=/usr/local
  20046. if test $have_cygwin = no ; then
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  20048. $as_echo_n "checking for libdnet... " >&6; }
  20049. # Check whether --with-libdnet was given.
  20050. if test "${with_libdnet+set}" = set; then :
  20051. withval=$with_libdnet; trydnetdir=$withval
  20052. fi
  20053. if test $trydnetdir != no; then
  20054. case "$build_os" in
  20055. linux*)
  20056. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  20057. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  20058. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  20059. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  20060. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  20061. founddnet=$testdir
  20062. fi
  20063. done
  20064. ;;
  20065. esac
  20066. if test $founddnet = no ; then
  20067. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  20068. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  20069. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  20070. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  20071. libdnet_version="$($testdir/bin/dnet-config --version)"
  20072. founddnet=$testdir
  20073. fi
  20074. done
  20075. fi
  20076. fi
  20077. if test $founddnet = no ; then
  20078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20079. $as_echo "no" >&6; }
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  20081. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  20082. else
  20083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  20084. $as_echo "$founddnet" >&6; }
  20085. enable_fragroute=yes
  20086. have_libdnet=yes
  20087. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  20088. old_cflags=$CFLAGS
  20089. CFLAGS=$LDNETINC
  20090. for ac_header in dumbnet.h dnet.h
  20091. do :
  20092. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20093. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20094. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20095. cat >>confdefs.h <<_ACEOF
  20096. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20097. _ACEOF
  20098. fi
  20099. done
  20100. CFLAGS=$old_cflags
  20101. fi
  20102. else
  20103. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  20104. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  20105. fi
  20106. cat >>confdefs.h <<_ACEOF
  20107. #define LIBDNET_VERSION "$libdnet_version"
  20108. _ACEOF
  20109. if test x$founddnet != xno; then
  20110. COMPILE_FRAGROUTE_TRUE=
  20111. COMPILE_FRAGROUTE_FALSE='#'
  20112. else
  20113. COMPILE_FRAGROUTE_TRUE='#'
  20114. COMPILE_FRAGROUTE_FALSE=
  20115. fi
  20116. if test x$founddnet != xno ; then
  20117. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  20118. fi
  20119. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  20120. -a $have_libdnet = no -a $have_pf = no ; then
  20121. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  20122. fi
  20123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  20124. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  20125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20126. /* end confdefs.h. */
  20127. #include "$LPCAPINC"
  20128. int
  20129. main ()
  20130. {
  20131. int foo;
  20132. foo = DLT_LINUX_SLL
  20133. ;
  20134. return 0;
  20135. }
  20136. _ACEOF
  20137. if ac_fn_c_try_compile "$LINENO"; then :
  20138. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  20139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20140. $as_echo "yes" >&6; }
  20141. else
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20143. $as_echo "no" >&6; }
  20144. fi
  20145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL2 in libpcap" >&5
  20147. $as_echo_n "checking for DLT_LINUX_SLL2 in libpcap... " >&6; }
  20148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20149. /* end confdefs.h. */
  20150. #include "$LPCAPINC"
  20151. int
  20152. main ()
  20153. {
  20154. int foo;
  20155. foo = DLT_LINUX_SLL2
  20156. ;
  20157. return 0;
  20158. }
  20159. _ACEOF
  20160. if ac_fn_c_try_compile "$LINENO"; then :
  20161. $as_echo "#define HAVE_DLT_LINUX_SLL2 1" >>confdefs.h
  20162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20163. $as_echo "yes" >&6; }
  20164. else
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20166. $as_echo "no" >&6; }
  20167. fi
  20168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  20170. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  20171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20172. /* end confdefs.h. */
  20173. #include "$LPCAPINC"
  20174. int
  20175. main ()
  20176. {
  20177. int foo;
  20178. foo = DLT_C_HDLC
  20179. ;
  20180. return 0;
  20181. }
  20182. _ACEOF
  20183. if ac_fn_c_try_compile "$LINENO"; then :
  20184. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  20185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20186. $as_echo "yes" >&6; }
  20187. else
  20188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20189. $as_echo "no" >&6; }
  20190. fi
  20191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20192. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  20193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  20194. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  20195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20196. /* end confdefs.h. */
  20197. #include <sys/types.h>
  20198. #include <sys/time.h>
  20199. #include <stdint.h>
  20200. #include "$PCAP_BPF_H_FILE"
  20201. int
  20202. main ()
  20203. {
  20204. int foo;
  20205. foo = BPF_MAJOR_VERSION;
  20206. ;
  20207. return 0;
  20208. }
  20209. _ACEOF
  20210. if ac_fn_c_try_compile "$LINENO"; then :
  20211. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20213. $as_echo "yes" >&6; }
  20214. else
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20216. $as_echo "no" >&6; }
  20217. fi
  20218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20219. foundbpfheader=no
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  20221. $as_echo_n "checking for libpcap bpf header... " >&6; }
  20222. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  20223. if test -f "${testfile}" -a $foundbpfheader = no ; then
  20224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20225. /* end confdefs.h. */
  20226. #include <sys/types.h>
  20227. #include <sys/time.h>
  20228. #include <stdint.h>
  20229. #include "$testfile"
  20230. int
  20231. main ()
  20232. {
  20233. int foo;
  20234. foo = BPF_MAJOR_VERSION;
  20235. ;
  20236. return 0;
  20237. }
  20238. _ACEOF
  20239. if ac_fn_c_try_compile "$LINENO"; then :
  20240. foundbpfheader=yes
  20241. PCAP_BPF_H_FILE=$testfile
  20242. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  20243. fi
  20244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20245. fi
  20246. done
  20247. if test $foundbpfheader != no; then
  20248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  20249. $as_echo "$testfile" >&6; }
  20250. else
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20252. $as_echo "no" >&6; }
  20253. fi
  20254. have_pcap_netmap=no
  20255. if test $foundpcap != no ; then
  20256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  20257. $as_echo_n "checking for netmap libpcap... " >&6; }
  20258. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  20259. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  20260. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  20261. have_pcap_netmap=yes
  20262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20263. $as_echo "yes" >&6; }
  20264. else
  20265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20266. $as_echo "no" >&6; }
  20267. fi
  20268. fi
  20269. LIBS="$OLDLIBS"
  20270. CFLAGS="$OLDCFLAGS"
  20271. pcapnav_ver=no
  20272. pcncfg=no
  20273. # Check whether --with-pcapnav-config was given.
  20274. if test "${with_pcapnav_config+set}" = set; then :
  20275. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  20276. $as_echo_n "checking for pcapnav-config... " >&6; }
  20277. if test -x $withval ; then
  20278. pcncfg=$withval
  20279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20280. $as_echo "$pcncfg" >&6; }
  20281. elif test x$withval = xno ; then
  20282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20283. $as_echo "no" >&6; }
  20284. else
  20285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  20286. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  20287. fi
  20288. else
  20289. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  20290. set dummy pcapnav-config; ac_word=$2
  20291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20292. $as_echo_n "checking for $ac_word... " >&6; }
  20293. if ${ac_cv_path_pcncfg+:} false; then :
  20294. $as_echo_n "(cached) " >&6
  20295. else
  20296. case $pcncfg in
  20297. [\\/]* | ?:[\\/]*)
  20298. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  20299. ;;
  20300. *)
  20301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20302. for as_dir in $PATH
  20303. do
  20304. IFS=$as_save_IFS
  20305. test -z "$as_dir" && as_dir=.
  20306. for ac_exec_ext in '' $ac_executable_extensions; do
  20307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20308. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  20309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20310. break 2
  20311. fi
  20312. done
  20313. done
  20314. IFS=$as_save_IFS
  20315. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  20316. ;;
  20317. esac
  20318. fi
  20319. pcncfg=$ac_cv_path_pcncfg
  20320. if test -n "$pcncfg"; then
  20321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  20322. $as_echo "$pcncfg" >&6; }
  20323. else
  20324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20325. $as_echo "no" >&6; }
  20326. fi
  20327. fi
  20328. if test $pcncfg != no ; then
  20329. LNAVLIB=$($pcncfg --libs)
  20330. LNAV_CFLAGS=$($pcncfg --cflags)
  20331. PCAPNAV_VERSION=$($pcncfg --version)
  20332. cat >>confdefs.h <<_ACEOF
  20333. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  20334. _ACEOF
  20335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  20336. $as_echo_n "checking for libpcapnav version... " >&6; }
  20337. if test "$cross_compiling" = yes; then :
  20338. libpcapnav_ver=no
  20339. else
  20340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20341. /* end confdefs.h. */
  20342. #include <string.h>
  20343. #define PCAPNAV_TEST "0.4"
  20344. /*
  20345. * simple proggy to test the version of libpcapnav
  20346. * returns zero if version >= 0.4
  20347. * or one otherwise
  20348. */
  20349. int
  20350. main (int argc, char *argv[])
  20351. {
  20352. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  20353. return 0;
  20354. return 1;
  20355. }
  20356. _ACEOF
  20357. if ac_fn_c_try_run "$LINENO"; then :
  20358. libpcapnav_ver=yes
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  20360. $as_echo ">= 0.4" >&6; }
  20361. else
  20362. libpcapnav_ver=no
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  20364. $as_echo "< 0.4" >&6; }
  20365. fi
  20366. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20367. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20368. fi
  20369. if test x$libpcapnav_ver = xno ; then
  20370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  20371. Please upgrade to version 0.4 or better.
  20372. Disabling offset jump feature." >&5
  20373. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  20374. Please upgrade to version 0.4 or better.
  20375. Disabling offset jump feature." >&2;}
  20376. else
  20377. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  20378. fi
  20379. fi # checking pcapnav version
  20380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  20381. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  20382. if ${unaligned_cv_fail+:} false; then :
  20383. $as_echo_n "(cached) " >&6
  20384. else
  20385. case "$host_os" in
  20386. darwin*)
  20387. # macOS M1 test fails due to lack of fork() so just hard code it
  20388. unaligned_cv_fail=no
  20389. ;;
  20390. *)
  20391. case "$host_cpu" in
  20392. # XXX: should also check that they don't do weird things
  20393. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20394. unaligned_cv_fail=yes
  20395. ;;
  20396. *)
  20397. cat >conftest.c <<EOF
  20398. #include <sys/types.h>
  20399. #include <sys/wait.h>
  20400. #include <stdio.h>
  20401. #include <unistd.h>
  20402. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20403. int main() {
  20404. unsigned int i;
  20405. pid_t pid;
  20406. int status;
  20407. /* avoid "core dumped" message */
  20408. pid = fork();
  20409. if (pid < 0)
  20410. return 2;
  20411. if (pid > 0) {
  20412. /* parent */
  20413. pid = waitpid(pid, &status, 0);
  20414. if (pid < 0)
  20415. return 3;
  20416. return !WIFEXITED(status);
  20417. }
  20418. /* child */
  20419. i = *(unsigned int *)&a[1];
  20420. printf("%d\n", i);
  20421. return 0;
  20422. }
  20423. EOF
  20424. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20425. conftest.c $LIBS >/dev/null 2>&1
  20426. if test ! -x conftest -o "$cross_compiling" = "yes" ; then
  20427. unaligned_cv_fail=yes
  20428. else
  20429. ./conftest >conftest.out
  20430. if test ! -s conftest.out ; then
  20431. unaligned_cv_fail=yes
  20432. else
  20433. unaligned_cv_fail=no
  20434. fi
  20435. fi
  20436. rm -f conftest* core core.conftest
  20437. ;;
  20438. esac
  20439. ;;
  20440. esac
  20441. fi
  20442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20443. $as_echo "$unaligned_cv_fail" >&6; }
  20444. if test $unaligned_cv_fail = yes ; then
  20445. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20446. fi
  20447. tcpdump_path=no
  20448. # Check whether --with-tcpdump was given.
  20449. if test "${with_tcpdump+set}" = set; then :
  20450. withval=$with_tcpdump; if test -x $withval ; then
  20451. tcpdump_path=$withval
  20452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20453. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20454. else
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20456. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20457. fi
  20458. else
  20459. # Extract the first word of "tcpdump", so it can be a program name with args.
  20460. set dummy tcpdump; ac_word=$2
  20461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20462. $as_echo_n "checking for $ac_word... " >&6; }
  20463. if ${ac_cv_path_tcpdump_path+:} false; then :
  20464. $as_echo_n "(cached) " >&6
  20465. else
  20466. case $tcpdump_path in
  20467. [\\/]* | ?:[\\/]*)
  20468. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20469. ;;
  20470. *)
  20471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20472. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20473. for as_dir in $as_dummy
  20474. do
  20475. IFS=$as_save_IFS
  20476. test -z "$as_dir" && as_dir=.
  20477. for ac_exec_ext in '' $ac_executable_extensions; do
  20478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20479. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20481. break 2
  20482. fi
  20483. done
  20484. done
  20485. IFS=$as_save_IFS
  20486. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20487. ;;
  20488. esac
  20489. fi
  20490. tcpdump_path=$ac_cv_path_tcpdump_path
  20491. if test -n "$tcpdump_path"; then
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20493. $as_echo "$tcpdump_path" >&6; }
  20494. else
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20496. $as_echo "no" >&6; }
  20497. fi
  20498. fi
  20499. if test "$tcpdump_path" = "no"; then
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20501. Disabling --verbose" >&5
  20502. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20503. Disabling --verbose" >&2;}
  20504. else
  20505. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20506. cat >>confdefs.h <<_ACEOF
  20507. #define TCPDUMP_BINARY "$tcpdump_path"
  20508. _ACEOF
  20509. fi
  20510. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20511. ENABLE_TCPDUMP_TRUE=
  20512. ENABLE_TCPDUMP_FALSE='#'
  20513. else
  20514. ENABLE_TCPDUMP_TRUE='#'
  20515. ENABLE_TCPDUMP_FALSE=
  20516. fi
  20517. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20518. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20519. else
  20520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20521. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20522. fi
  20523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20524. $as_echo_n "checking for 'make test' profile... " >&6; }
  20525. if test "$host" = "$build" ; then
  20526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20527. $as_echo "yes" >&6; }
  20528. else
  20529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20530. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20532. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20533. fi
  20534. # Check whether --with-testnic was given.
  20535. if test "${with_testnic+set}" = set; then :
  20536. withval=$with_testnic; nic1=$withval
  20537. nic2=$withval
  20538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20539. $as_echo "Using --with-testnic=$withval" >&6; }
  20540. else
  20541. case $host in
  20542. *-*-linux*)
  20543. nic1=eth0
  20544. nic2=eth0
  20545. ;;
  20546. *-*-solaris*)
  20547. nic1=hme0
  20548. nic2=hme0
  20549. ;;
  20550. *-*-sunos*)
  20551. nic1=hme0
  20552. nic2=hme0
  20553. ;;
  20554. *-apple-darwin*)
  20555. nic1=en0
  20556. nic2=en0
  20557. ;;
  20558. *-*-openbsd*)
  20559. nic1=xl0
  20560. nic2=xl0
  20561. ;;
  20562. *-*-freebsd*)
  20563. nic1=em0
  20564. nic2=em0
  20565. ;;
  20566. *-*-cygwin)
  20567. nic1=%0
  20568. nic2=%0
  20569. ;;
  20570. *)
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20572. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20573. nic1=%0
  20574. nic2=%0
  20575. ;;
  20576. esac
  20577. fi
  20578. disable_pcap_findalldevs=no
  20579. osx_frameworks=no
  20580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20581. $as_echo_n "checking for OS version... " >&6; }
  20582. case $host in
  20583. *-*-linux*)
  20584. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20586. $as_echo "Linux" >&6; }
  20587. ;;
  20588. *-*-solaris*)
  20589. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20591. $as_echo "Solaris" >&6; }
  20592. ;;
  20593. *-*-sunos*)
  20594. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20596. $as_echo "SunOS" >&6; }
  20597. ;;
  20598. *-apple-darwin*)
  20599. if test x$libpcap_version_096 = xno ; then
  20600. disable_pcap_findalldevs=yes
  20601. fi
  20602. osx_frameworks=yes
  20603. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20605. $as_echo "Apple macOS" >&6; }
  20606. ;;
  20607. *-*-openbsd*)
  20608. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20610. $as_echo "OpenBSD" >&6; }
  20611. ;;
  20612. *-*-freebsd*)
  20613. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20615. $as_echo "FreeBSD" >&6; }
  20616. ;;
  20617. *-*-cygwin)
  20618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20619. $as_echo "Win32/Cygwin" >&6; }
  20620. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20621. ;;
  20622. *)
  20623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20624. $as_echo "$host is unknown!" >&6; }
  20625. ;;
  20626. esac
  20627. if test "$osx_frameworks" = "yes"; then
  20628. ENABLE_OSX_FRAMEWORKS_TRUE=
  20629. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20630. else
  20631. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20632. ENABLE_OSX_FRAMEWORKS_FALSE=
  20633. fi
  20634. # Check whether --with-testnic2 was given.
  20635. if test "${with_testnic2+set}" = set; then :
  20636. withval=$with_testnic2; nic2=$withval
  20637. fi
  20638. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20639. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20640. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20641. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20643. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20644. if test x$disable_pcap_findalldevs = xno ; then
  20645. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20647. $as_echo "yes" >&6; }
  20648. else
  20649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20650. $as_echo "no" >&6; }
  20651. fi
  20652. ac_header_dirent=no
  20653. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20654. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20656. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20657. if eval \${$as_ac_Header+:} false; then :
  20658. $as_echo_n "(cached) " >&6
  20659. else
  20660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20661. /* end confdefs.h. */
  20662. #include <sys/types.h>
  20663. #include <$ac_hdr>
  20664. int
  20665. main ()
  20666. {
  20667. if ((DIR *) 0)
  20668. return 0;
  20669. ;
  20670. return 0;
  20671. }
  20672. _ACEOF
  20673. if ac_fn_c_try_compile "$LINENO"; then :
  20674. eval "$as_ac_Header=yes"
  20675. else
  20676. eval "$as_ac_Header=no"
  20677. fi
  20678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20679. fi
  20680. eval ac_res=\$$as_ac_Header
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20682. $as_echo "$ac_res" >&6; }
  20683. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20684. cat >>confdefs.h <<_ACEOF
  20685. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20686. _ACEOF
  20687. ac_header_dirent=$ac_hdr; break
  20688. fi
  20689. done
  20690. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20691. if test $ac_header_dirent = dirent.h; then
  20692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20693. $as_echo_n "checking for library containing opendir... " >&6; }
  20694. if ${ac_cv_search_opendir+:} false; then :
  20695. $as_echo_n "(cached) " >&6
  20696. else
  20697. ac_func_search_save_LIBS=$LIBS
  20698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20699. /* end confdefs.h. */
  20700. /* Override any GCC internal prototype to avoid an error.
  20701. Use char because int might match the return type of a GCC
  20702. builtin and then its argument prototype would still apply. */
  20703. #ifdef __cplusplus
  20704. extern "C"
  20705. #endif
  20706. char opendir ();
  20707. int
  20708. main ()
  20709. {
  20710. return opendir ();
  20711. ;
  20712. return 0;
  20713. }
  20714. _ACEOF
  20715. for ac_lib in '' dir; do
  20716. if test -z "$ac_lib"; then
  20717. ac_res="none required"
  20718. else
  20719. ac_res=-l$ac_lib
  20720. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20721. fi
  20722. if ac_fn_c_try_link "$LINENO"; then :
  20723. ac_cv_search_opendir=$ac_res
  20724. fi
  20725. rm -f core conftest.err conftest.$ac_objext \
  20726. conftest$ac_exeext
  20727. if ${ac_cv_search_opendir+:} false; then :
  20728. break
  20729. fi
  20730. done
  20731. if ${ac_cv_search_opendir+:} false; then :
  20732. else
  20733. ac_cv_search_opendir=no
  20734. fi
  20735. rm conftest.$ac_ext
  20736. LIBS=$ac_func_search_save_LIBS
  20737. fi
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20739. $as_echo "$ac_cv_search_opendir" >&6; }
  20740. ac_res=$ac_cv_search_opendir
  20741. if test "$ac_res" != no; then :
  20742. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20743. fi
  20744. else
  20745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20746. $as_echo_n "checking for library containing opendir... " >&6; }
  20747. if ${ac_cv_search_opendir+:} false; then :
  20748. $as_echo_n "(cached) " >&6
  20749. else
  20750. ac_func_search_save_LIBS=$LIBS
  20751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20752. /* end confdefs.h. */
  20753. /* Override any GCC internal prototype to avoid an error.
  20754. Use char because int might match the return type of a GCC
  20755. builtin and then its argument prototype would still apply. */
  20756. #ifdef __cplusplus
  20757. extern "C"
  20758. #endif
  20759. char opendir ();
  20760. int
  20761. main ()
  20762. {
  20763. return opendir ();
  20764. ;
  20765. return 0;
  20766. }
  20767. _ACEOF
  20768. for ac_lib in '' x; do
  20769. if test -z "$ac_lib"; then
  20770. ac_res="none required"
  20771. else
  20772. ac_res=-l$ac_lib
  20773. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20774. fi
  20775. if ac_fn_c_try_link "$LINENO"; then :
  20776. ac_cv_search_opendir=$ac_res
  20777. fi
  20778. rm -f core conftest.err conftest.$ac_objext \
  20779. conftest$ac_exeext
  20780. if ${ac_cv_search_opendir+:} false; then :
  20781. break
  20782. fi
  20783. done
  20784. if ${ac_cv_search_opendir+:} false; then :
  20785. else
  20786. ac_cv_search_opendir=no
  20787. fi
  20788. rm conftest.$ac_ext
  20789. LIBS=$ac_func_search_save_LIBS
  20790. fi
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20792. $as_echo "$ac_cv_search_opendir" >&6; }
  20793. ac_res=$ac_cv_search_opendir
  20794. if test "$ac_res" != no; then :
  20795. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20796. fi
  20797. fi
  20798. # =================
  20799. # AC_CHECK_HEADERS
  20800. # =================
  20801. for ac_header in \
  20802. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20803. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20804. sys/un.h sys/wait.h dlfcn.h errno.h \
  20805. fcntl.h libgen.h libintl.h memory.h \
  20806. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20807. unistd.h utime.h
  20808. do :
  20809. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20810. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20811. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20812. cat >>confdefs.h <<_ACEOF
  20813. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20814. _ACEOF
  20815. fi
  20816. done
  20817. for ac_header in stdarg.h varargs.h
  20818. do :
  20819. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20820. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20821. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20822. cat >>confdefs.h <<_ACEOF
  20823. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20824. _ACEOF
  20825. lo_have_arg_hdr=true;break
  20826. else
  20827. lo_have_arg_hdr=false
  20828. fi
  20829. done
  20830. for ac_header in string.h strings.h
  20831. do :
  20832. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20833. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20834. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20835. cat >>confdefs.h <<_ACEOF
  20836. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20837. _ACEOF
  20838. lo_have_str_hdr=true;break
  20839. else
  20840. lo_have_str_hdr=false
  20841. fi
  20842. done
  20843. for ac_header in limits.h sys/limits.h values.h
  20844. do :
  20845. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20846. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20847. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20848. cat >>confdefs.h <<_ACEOF
  20849. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20850. _ACEOF
  20851. lo_have_lim_hdr=true;break
  20852. else
  20853. lo_have_lim_hdr=false
  20854. fi
  20855. done
  20856. for ac_header in inttypes.h stdint.h
  20857. do :
  20858. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20859. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20860. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20861. cat >>confdefs.h <<_ACEOF
  20862. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20863. _ACEOF
  20864. lo_have_typ_hdr=true;break
  20865. else
  20866. lo_have_typ_hdr=false
  20867. fi
  20868. done
  20869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20870. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20871. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20872. $as_echo_n "(cached) " >&6
  20873. else
  20874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20875. /* end confdefs.h. */
  20876. #include <stdlib.h>
  20877. #include <stdnoreturn.h>
  20878. /* Do not check for 'noreturn' after the return type.
  20879. C11 allows it, but it's rarely done that way
  20880. and circa-2012 bleeding-edge GCC rejects it when given
  20881. -Werror=old-style-declaration. */
  20882. noreturn void foo1 (void) { exit (0); }
  20883. _Noreturn void foo2 (void) { exit (0); }
  20884. int testit (int argc, char **argv) {
  20885. if (argc & 1)
  20886. return 0;
  20887. (argv[0][0] ? foo1 : foo2) ();
  20888. }
  20889. int
  20890. main ()
  20891. {
  20892. ;
  20893. return 0;
  20894. }
  20895. _ACEOF
  20896. if ac_fn_c_try_compile "$LINENO"; then :
  20897. gl_cv_header_working_stdnoreturn_h=yes
  20898. else
  20899. gl_cv_header_working_stdnoreturn_h=no
  20900. fi
  20901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20902. fi
  20903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20904. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20905. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20906. STDNORETURN_H=''
  20907. else
  20908. STDNORETURN_H='stdnoreturn.h'
  20909. fi
  20910. if test -n "$STDNORETURN_H"; then
  20911. GL_GENERATE_STDNORETURN_H_TRUE=
  20912. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20913. else
  20914. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20915. GL_GENERATE_STDNORETURN_H_FALSE=
  20916. fi
  20917. # ----------------------------------------------------------------------
  20918. # check for various programs used during the build.
  20919. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20920. # ----------------------------------------------------------------------
  20921. for ac_header in runetype.h wchar.h
  20922. do :
  20923. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20924. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20925. $ac_includes_default
  20926. #if HAVE_RUNETYPE_H
  20927. # include <runetype.h>
  20928. #endif
  20929. "
  20930. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20931. cat >>confdefs.h <<_ACEOF
  20932. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20933. _ACEOF
  20934. fi
  20935. done
  20936. # Check whether --enable-nls was given.
  20937. if test "${enable_nls+set}" = set; then :
  20938. enableval=$enable_nls;
  20939. fi
  20940. if test "x$enable_nls" != "xno" && \
  20941. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20942. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20943. fi
  20944. # --------------------------------------------
  20945. # Verify certain entries from AC_CHECK_HEADERS
  20946. # --------------------------------------------
  20947. ${lo_have_arg_hdr} || \
  20948. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20949. ${lo_have_str_hdr} || \
  20950. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20951. ${lo_have_lim_hdr} || \
  20952. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20953. ${lo_have_typ_hdr} || \
  20954. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20955. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20956. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20957. test "X${as_ac_var}" = Xyes || {
  20958. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20959. }
  20960. done
  20961. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20962. echo '#include <stdint.h>' > inttypes.h
  20963. # ----------------------------------------------------------------------
  20964. # Checks for typedefs
  20965. # ----------------------------------------------------------------------
  20966. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20967. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20968. cat >>confdefs.h <<_ACEOF
  20969. #define HAVE_WCHAR_T 1
  20970. _ACEOF
  20971. fi
  20972. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20973. $ac_includes_default
  20974. #if HAVE_RUNETYPE_H
  20975. # include <runetype.h>
  20976. #endif
  20977. #if HAVE_WCHAR_H
  20978. # include <wchar.h>
  20979. #endif
  20980. "
  20981. if test "x$ac_cv_type_wint_t" = xyes; then :
  20982. cat >>confdefs.h <<_ACEOF
  20983. #define HAVE_WINT_T 1
  20984. _ACEOF
  20985. fi
  20986. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20987. if test "x$ac_cv_type_int8_t" = xyes; then :
  20988. cat >>confdefs.h <<_ACEOF
  20989. #define HAVE_INT8_T 1
  20990. _ACEOF
  20991. fi
  20992. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20993. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20994. cat >>confdefs.h <<_ACEOF
  20995. #define HAVE_UINT8_T 1
  20996. _ACEOF
  20997. fi
  20998. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20999. if test "x$ac_cv_type_int16_t" = xyes; then :
  21000. cat >>confdefs.h <<_ACEOF
  21001. #define HAVE_INT16_T 1
  21002. _ACEOF
  21003. fi
  21004. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  21005. if test "x$ac_cv_type_uint16_t" = xyes; then :
  21006. cat >>confdefs.h <<_ACEOF
  21007. #define HAVE_UINT16_T 1
  21008. _ACEOF
  21009. fi
  21010. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  21011. if test "x$ac_cv_type_int32_t" = xyes; then :
  21012. cat >>confdefs.h <<_ACEOF
  21013. #define HAVE_INT32_T 1
  21014. _ACEOF
  21015. fi
  21016. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  21017. if test "x$ac_cv_type_uint32_t" = xyes; then :
  21018. cat >>confdefs.h <<_ACEOF
  21019. #define HAVE_UINT32_T 1
  21020. _ACEOF
  21021. fi
  21022. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  21023. if test "x$ac_cv_type_intptr_t" = xyes; then :
  21024. cat >>confdefs.h <<_ACEOF
  21025. #define HAVE_INTPTR_T 1
  21026. _ACEOF
  21027. fi
  21028. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  21029. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  21030. cat >>confdefs.h <<_ACEOF
  21031. #define HAVE_UINTPTR_T 1
  21032. _ACEOF
  21033. fi
  21034. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  21035. if test "x$ac_cv_type_uint_t" = xyes; then :
  21036. cat >>confdefs.h <<_ACEOF
  21037. #define HAVE_UINT_T 1
  21038. _ACEOF
  21039. fi
  21040. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  21041. if test "x$ac_cv_type_pid_t" = xyes; then :
  21042. cat >>confdefs.h <<_ACEOF
  21043. #define HAVE_PID_T 1
  21044. _ACEOF
  21045. fi
  21046. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21047. if test "x$ac_cv_type_size_t" = xyes; then :
  21048. cat >>confdefs.h <<_ACEOF
  21049. #define HAVE_SIZE_T 1
  21050. _ACEOF
  21051. fi
  21052. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  21053. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  21054. cat >>confdefs.h <<_ACEOF
  21055. #define HAVE_PTRDIFF_T 1
  21056. _ACEOF
  21057. fi
  21058. # The cast to long int works around a bug in the HP C Compiler
  21059. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21060. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21061. # This bug is HP SR number 8606223364.
  21062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  21063. $as_echo_n "checking size of char *... " >&6; }
  21064. if ${ac_cv_sizeof_char_p+:} false; then :
  21065. $as_echo_n "(cached) " >&6
  21066. else
  21067. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  21068. else
  21069. if test "$ac_cv_type_char_p" = yes; then
  21070. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21071. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21072. as_fn_error 77 "cannot compute sizeof (char *)
  21073. See \`config.log' for more details" "$LINENO" 5; }
  21074. else
  21075. ac_cv_sizeof_char_p=0
  21076. fi
  21077. fi
  21078. fi
  21079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  21080. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  21081. cat >>confdefs.h <<_ACEOF
  21082. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  21083. _ACEOF
  21084. # The cast to long int works around a bug in the HP C Compiler
  21085. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21086. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21087. # This bug is HP SR number 8606223364.
  21088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  21089. $as_echo_n "checking size of int... " >&6; }
  21090. if ${ac_cv_sizeof_int+:} false; then :
  21091. $as_echo_n "(cached) " >&6
  21092. else
  21093. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  21094. else
  21095. if test "$ac_cv_type_int" = yes; then
  21096. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21098. as_fn_error 77 "cannot compute sizeof (int)
  21099. See \`config.log' for more details" "$LINENO" 5; }
  21100. else
  21101. ac_cv_sizeof_int=0
  21102. fi
  21103. fi
  21104. fi
  21105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  21106. $as_echo "$ac_cv_sizeof_int" >&6; }
  21107. cat >>confdefs.h <<_ACEOF
  21108. #define SIZEOF_INT $ac_cv_sizeof_int
  21109. _ACEOF
  21110. # The cast to long int works around a bug in the HP C Compiler
  21111. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21112. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21113. # This bug is HP SR number 8606223364.
  21114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  21115. $as_echo_n "checking size of long... " >&6; }
  21116. if ${ac_cv_sizeof_long+:} false; then :
  21117. $as_echo_n "(cached) " >&6
  21118. else
  21119. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  21120. else
  21121. if test "$ac_cv_type_long" = yes; then
  21122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21124. as_fn_error 77 "cannot compute sizeof (long)
  21125. See \`config.log' for more details" "$LINENO" 5; }
  21126. else
  21127. ac_cv_sizeof_long=0
  21128. fi
  21129. fi
  21130. fi
  21131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  21132. $as_echo "$ac_cv_sizeof_long" >&6; }
  21133. cat >>confdefs.h <<_ACEOF
  21134. #define SIZEOF_LONG $ac_cv_sizeof_long
  21135. _ACEOF
  21136. # The cast to long int works around a bug in the HP C Compiler
  21137. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  21138. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  21139. # This bug is HP SR number 8606223364.
  21140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  21141. $as_echo_n "checking size of short... " >&6; }
  21142. if ${ac_cv_sizeof_short+:} false; then :
  21143. $as_echo_n "(cached) " >&6
  21144. else
  21145. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  21146. else
  21147. if test "$ac_cv_type_short" = yes; then
  21148. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21149. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21150. as_fn_error 77 "cannot compute sizeof (short)
  21151. See \`config.log' for more details" "$LINENO" 5; }
  21152. else
  21153. ac_cv_sizeof_short=0
  21154. fi
  21155. fi
  21156. fi
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  21158. $as_echo "$ac_cv_sizeof_short" >&6; }
  21159. cat >>confdefs.h <<_ACEOF
  21160. #define SIZEOF_SHORT $ac_cv_sizeof_short
  21161. _ACEOF
  21162. # ------------
  21163. # AC_CHECK_LIB
  21164. # ------------
  21165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  21166. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  21167. if ${ac_cv_lib_gen_pathfind+:} false; then :
  21168. $as_echo_n "(cached) " >&6
  21169. else
  21170. ac_check_lib_save_LIBS=$LIBS
  21171. LIBS="-lgen $LIBS"
  21172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21173. /* end confdefs.h. */
  21174. /* Override any GCC internal prototype to avoid an error.
  21175. Use char because int might match the return type of a GCC
  21176. builtin and then its argument prototype would still apply. */
  21177. #ifdef __cplusplus
  21178. extern "C"
  21179. #endif
  21180. char pathfind ();
  21181. int
  21182. main ()
  21183. {
  21184. return pathfind ();
  21185. ;
  21186. return 0;
  21187. }
  21188. _ACEOF
  21189. if ac_fn_c_try_link "$LINENO"; then :
  21190. ac_cv_lib_gen_pathfind=yes
  21191. else
  21192. ac_cv_lib_gen_pathfind=no
  21193. fi
  21194. rm -f core conftest.err conftest.$ac_objext \
  21195. conftest$ac_exeext conftest.$ac_ext
  21196. LIBS=$ac_check_lib_save_LIBS
  21197. fi
  21198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  21199. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  21200. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  21201. cat >>confdefs.h <<_ACEOF
  21202. #define HAVE_LIBGEN 1
  21203. _ACEOF
  21204. LIBS="-lgen $LIBS"
  21205. fi
  21206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  21207. $as_echo_n "checking for gettext in -lintl... " >&6; }
  21208. if ${ac_cv_lib_intl_gettext+:} false; then :
  21209. $as_echo_n "(cached) " >&6
  21210. else
  21211. ac_check_lib_save_LIBS=$LIBS
  21212. LIBS="-lintl $LIBS"
  21213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21214. /* end confdefs.h. */
  21215. /* Override any GCC internal prototype to avoid an error.
  21216. Use char because int might match the return type of a GCC
  21217. builtin and then its argument prototype would still apply. */
  21218. #ifdef __cplusplus
  21219. extern "C"
  21220. #endif
  21221. char gettext ();
  21222. int
  21223. main ()
  21224. {
  21225. return gettext ();
  21226. ;
  21227. return 0;
  21228. }
  21229. _ACEOF
  21230. if ac_fn_c_try_link "$LINENO"; then :
  21231. ac_cv_lib_intl_gettext=yes
  21232. else
  21233. ac_cv_lib_intl_gettext=no
  21234. fi
  21235. rm -f core conftest.err conftest.$ac_objext \
  21236. conftest$ac_exeext conftest.$ac_ext
  21237. LIBS=$ac_check_lib_save_LIBS
  21238. fi
  21239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  21240. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  21241. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  21242. cat >>confdefs.h <<_ACEOF
  21243. #define HAVE_LIBINTL 1
  21244. _ACEOF
  21245. LIBS="-lintl $LIBS"
  21246. fi
  21247. for ac_func in vprintf
  21248. do :
  21249. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  21250. if test "x$ac_cv_func_vprintf" = xyes; then :
  21251. cat >>confdefs.h <<_ACEOF
  21252. #define HAVE_VPRINTF 1
  21253. _ACEOF
  21254. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  21255. if test "x$ac_cv_func__doprnt" = xyes; then :
  21256. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  21257. fi
  21258. fi
  21259. done
  21260. for ac_header in vfork.h
  21261. do :
  21262. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  21263. if test "x$ac_cv_header_vfork_h" = xyes; then :
  21264. cat >>confdefs.h <<_ACEOF
  21265. #define HAVE_VFORK_H 1
  21266. _ACEOF
  21267. fi
  21268. done
  21269. for ac_func in fork vfork
  21270. do :
  21271. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21272. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21273. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21274. cat >>confdefs.h <<_ACEOF
  21275. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21276. _ACEOF
  21277. fi
  21278. done
  21279. if test "x$ac_cv_func_fork" = xyes; then
  21280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  21281. $as_echo_n "checking for working fork... " >&6; }
  21282. if ${ac_cv_func_fork_works+:} false; then :
  21283. $as_echo_n "(cached) " >&6
  21284. else
  21285. if test "$cross_compiling" = yes; then :
  21286. ac_cv_func_fork_works=cross
  21287. else
  21288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21289. /* end confdefs.h. */
  21290. $ac_includes_default
  21291. int
  21292. main ()
  21293. {
  21294. /* By Ruediger Kuhlmann. */
  21295. return fork () < 0;
  21296. ;
  21297. return 0;
  21298. }
  21299. _ACEOF
  21300. if ac_fn_c_try_run "$LINENO"; then :
  21301. ac_cv_func_fork_works=yes
  21302. else
  21303. ac_cv_func_fork_works=no
  21304. fi
  21305. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21306. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21307. fi
  21308. fi
  21309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  21310. $as_echo "$ac_cv_func_fork_works" >&6; }
  21311. else
  21312. ac_cv_func_fork_works=$ac_cv_func_fork
  21313. fi
  21314. if test "x$ac_cv_func_fork_works" = xcross; then
  21315. case $host in
  21316. *-*-amigaos* | *-*-msdosdjgpp*)
  21317. # Override, as these systems have only a dummy fork() stub
  21318. ac_cv_func_fork_works=no
  21319. ;;
  21320. *)
  21321. ac_cv_func_fork_works=yes
  21322. ;;
  21323. esac
  21324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  21325. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  21326. fi
  21327. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21328. if test "x$ac_cv_func_vfork" = xyes; then
  21329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  21330. $as_echo_n "checking for working vfork... " >&6; }
  21331. if ${ac_cv_func_vfork_works+:} false; then :
  21332. $as_echo_n "(cached) " >&6
  21333. else
  21334. if test "$cross_compiling" = yes; then :
  21335. ac_cv_func_vfork_works=cross
  21336. else
  21337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21338. /* end confdefs.h. */
  21339. /* Thanks to Paul Eggert for this test. */
  21340. $ac_includes_default
  21341. #include <sys/wait.h>
  21342. #ifdef HAVE_VFORK_H
  21343. # include <vfork.h>
  21344. #endif
  21345. /* On some sparc systems, changes by the child to local and incoming
  21346. argument registers are propagated back to the parent. The compiler
  21347. is told about this with #include <vfork.h>, but some compilers
  21348. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  21349. static variable whose address is put into a register that is
  21350. clobbered by the vfork. */
  21351. static void
  21352. #ifdef __cplusplus
  21353. sparc_address_test (int arg)
  21354. # else
  21355. sparc_address_test (arg) int arg;
  21356. #endif
  21357. {
  21358. static pid_t child;
  21359. if (!child) {
  21360. child = vfork ();
  21361. if (child < 0) {
  21362. perror ("vfork");
  21363. _exit(2);
  21364. }
  21365. if (!child) {
  21366. arg = getpid();
  21367. write(-1, "", 0);
  21368. _exit (arg);
  21369. }
  21370. }
  21371. }
  21372. int
  21373. main ()
  21374. {
  21375. pid_t parent = getpid ();
  21376. pid_t child;
  21377. sparc_address_test (0);
  21378. child = vfork ();
  21379. if (child == 0) {
  21380. /* Here is another test for sparc vfork register problems. This
  21381. test uses lots of local variables, at least as many local
  21382. variables as main has allocated so far including compiler
  21383. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  21384. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  21385. reuse the register of parent for one of the local variables,
  21386. since it will think that parent can't possibly be used any more
  21387. in this routine. Assigning to the local variable will thus
  21388. munge parent in the parent process. */
  21389. pid_t
  21390. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21391. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21392. /* Convince the compiler that p..p7 are live; otherwise, it might
  21393. use the same hardware register for all 8 local variables. */
  21394. if (p != p1 || p != p2 || p != p3 || p != p4
  21395. || p != p5 || p != p6 || p != p7)
  21396. _exit(1);
  21397. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21398. from child file descriptors. If the child closes a descriptor
  21399. before it execs or exits, this munges the parent's descriptor
  21400. as well. Test for this by closing stdout in the child. */
  21401. _exit(close(fileno(stdout)) != 0);
  21402. } else {
  21403. int status;
  21404. struct stat st;
  21405. while (wait(&status) != child)
  21406. ;
  21407. return (
  21408. /* Was there some problem with vforking? */
  21409. child < 0
  21410. /* Did the child fail? (This shouldn't happen.) */
  21411. || status
  21412. /* Did the vfork/compiler bug occur? */
  21413. || parent != getpid()
  21414. /* Did the file descriptor bug occur? */
  21415. || fstat(fileno(stdout), &st) != 0
  21416. );
  21417. }
  21418. }
  21419. _ACEOF
  21420. if ac_fn_c_try_run "$LINENO"; then :
  21421. ac_cv_func_vfork_works=yes
  21422. else
  21423. ac_cv_func_vfork_works=no
  21424. fi
  21425. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21426. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21427. fi
  21428. fi
  21429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21430. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21431. fi;
  21432. if test "x$ac_cv_func_fork_works" = xcross; then
  21433. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21435. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21436. fi
  21437. if test "x$ac_cv_func_vfork_works" = xyes; then
  21438. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21439. else
  21440. $as_echo "#define vfork fork" >>confdefs.h
  21441. fi
  21442. if test "x$ac_cv_func_fork_works" = xyes; then
  21443. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21444. fi
  21445. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21446. strrchr strsignal fchmod fstat chmod
  21447. do :
  21448. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21449. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21450. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21451. cat >>confdefs.h <<_ACEOF
  21452. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21453. _ACEOF
  21454. fi
  21455. done
  21456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21457. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21458. if ${ac_cv_path_SED+:} false; then :
  21459. $as_echo_n "(cached) " >&6
  21460. else
  21461. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21462. for ac_i in 1 2 3 4 5 6 7; do
  21463. ac_script="$ac_script$as_nl$ac_script"
  21464. done
  21465. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21466. { ac_script=; unset ac_script;}
  21467. if test -z "$SED"; then
  21468. ac_path_SED_found=false
  21469. # Loop through the user's path and test for each of PROGNAME-LIST
  21470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21471. for as_dir in $PATH
  21472. do
  21473. IFS=$as_save_IFS
  21474. test -z "$as_dir" && as_dir=.
  21475. for ac_prog in sed gsed; do
  21476. for ac_exec_ext in '' $ac_executable_extensions; do
  21477. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21478. as_fn_executable_p "$ac_path_SED" || continue
  21479. # Check for GNU ac_path_SED and select it if it is found.
  21480. # Check for GNU $ac_path_SED
  21481. case `"$ac_path_SED" --version 2>&1` in
  21482. *GNU*)
  21483. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21484. *)
  21485. ac_count=0
  21486. $as_echo_n 0123456789 >"conftest.in"
  21487. while :
  21488. do
  21489. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21490. mv "conftest.tmp" "conftest.in"
  21491. cp "conftest.in" "conftest.nl"
  21492. $as_echo '' >> "conftest.nl"
  21493. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21494. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21495. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21496. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21497. # Best one so far, save it but keep looking for a better one
  21498. ac_cv_path_SED="$ac_path_SED"
  21499. ac_path_SED_max=$ac_count
  21500. fi
  21501. # 10*(2^10) chars as input seems more than enough
  21502. test $ac_count -gt 10 && break
  21503. done
  21504. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21505. esac
  21506. $ac_path_SED_found && break 3
  21507. done
  21508. done
  21509. done
  21510. IFS=$as_save_IFS
  21511. if test -z "$ac_cv_path_SED"; then
  21512. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21513. fi
  21514. else
  21515. ac_cv_path_SED=$SED
  21516. fi
  21517. fi
  21518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21519. $as_echo "$ac_cv_path_SED" >&6; }
  21520. SED="$ac_cv_path_SED"
  21521. rm -f conftest.sed
  21522. while :
  21523. do
  21524. POSIX_SHELL=`which bash`
  21525. test -x "$POSIX_SHELL" && break
  21526. POSIX_SHELL=`which dash`
  21527. test -x "$POSIX_SHELL" && break
  21528. POSIX_SHELL=/usr/xpg4/bin/sh
  21529. test -x "$POSIX_SHELL" && break
  21530. POSIX_SHELL=`/bin/sh -c '
  21531. exec 2>/dev/null
  21532. if ! true ; then exit 1 ; fi
  21533. echo /bin/sh'`
  21534. test -x "$POSIX_SHELL" && break
  21535. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21536. done
  21537. cat >>confdefs.h <<_ACEOF
  21538. #define POSIX_SHELL "${POSIX_SHELL}"
  21539. _ACEOF
  21540. LIBOPTS_BUILD_BLOCKED=''
  21541. NEED_LIBOPTS_DIR=''
  21542. # Check whether --enable-local-libopts was given.
  21543. if test "${enable_local_libopts+set}" = set; then :
  21544. enableval=$enable_local_libopts;
  21545. if test x$enableval = xyes ; then
  21546. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21547. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21548. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21549. NEED_LIBOPTS_DIR=true
  21550. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21551. fi
  21552. fi
  21553. # Check whether --enable-libopts-install was given.
  21554. if test "${enable_libopts_install+set}" = set; then :
  21555. enableval=$enable_libopts_install;
  21556. fi
  21557. if test "X${enable_libopts_install}" = Xyes; then
  21558. INSTALL_LIBOPTS_TRUE=
  21559. INSTALL_LIBOPTS_FALSE='#'
  21560. else
  21561. INSTALL_LIBOPTS_TRUE='#'
  21562. INSTALL_LIBOPTS_FALSE=
  21563. fi
  21564. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21566. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21567. # Check whether --with-autoopts-config was given.
  21568. if test "${with_autoopts_config+set}" = set; then :
  21569. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21570. else
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21572. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21573. if ${lo_cv_with_autoopts_config+:} false; then :
  21574. $as_echo_n "(cached) " >&6
  21575. else
  21576. if autoopts-config --help 2>/dev/null 1>&2
  21577. then lo_cv_with_autoopts_config=autoopts-config
  21578. elif libopts-config --help 2>/dev/null 1>&2
  21579. then lo_cv_with_autoopts_config=libopts-config
  21580. else lo_cv_with_autoopts_config=no ; fi
  21581. fi
  21582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21583. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21584. fi
  21585. # end of AC_ARG_WITH
  21586. if ${lo_cv_test_autoopts+:} false; then :
  21587. $as_echo_n "(cached) " >&6
  21588. else
  21589. if test -z "${lo_cv_with_autoopts_config}" \
  21590. -o X"${lo_cv_with_autoopts_config}" = Xno
  21591. then
  21592. if autoopts-config --help 2>/dev/null 1>&2
  21593. then lo_cv_with_autoopts_config=autoopts-config
  21594. elif libopts-config --help 2>/dev/null 1>&2
  21595. then lo_cv_with_autoopts_config=libopts-config
  21596. else lo_cv_with_autoopts_config=false ; fi
  21597. fi
  21598. lo_cv_test_autoopts=`
  21599. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21600. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21601. then lo_cv_test_autoopts=no ; fi
  21602. fi
  21603. # end of CACHE_VAL
  21604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21605. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21606. if test "X${lo_cv_test_autoopts}" != Xno
  21607. then
  21608. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21609. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21610. else
  21611. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21612. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21613. NEED_LIBOPTS_DIR=true
  21614. fi
  21615. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21616. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21617. NEED_LIBOPTS_DIR=''
  21618. fi
  21619. if test -n "${NEED_LIBOPTS_DIR}"; then
  21620. NEED_LIBOPTS_TRUE=
  21621. NEED_LIBOPTS_FALSE='#'
  21622. else
  21623. NEED_LIBOPTS_TRUE='#'
  21624. NEED_LIBOPTS_FALSE=
  21625. fi
  21626. LIBOPTS_DIR=libopts
  21627. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21628. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21629. # Check to see if a reg expr header is specified.
  21630. # Check whether --with-regex-header was given.
  21631. if test "${with_regex_header+set}" = set; then :
  21632. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21633. else
  21634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21635. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21636. if ${libopts_cv_with_regex_header+:} false; then :
  21637. $as_echo_n "(cached) " >&6
  21638. else
  21639. libopts_cv_with_regex_header=no
  21640. fi
  21641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21642. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21643. fi
  21644. # end of AC_ARG_WITH
  21645. if test "X${libopts_cv_with_regex_header}" != Xno
  21646. then
  21647. cat >>confdefs.h <<_ACEOF
  21648. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21649. _ACEOF
  21650. else
  21651. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21652. fi
  21653. # Check to see if a working libregex can be found.
  21654. # Check whether --with-libregex was given.
  21655. if test "${with_libregex+set}" = set; then :
  21656. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21657. else
  21658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21659. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21660. if ${libopts_cv_with_libregex_root+:} false; then :
  21661. $as_echo_n "(cached) " >&6
  21662. else
  21663. libopts_cv_with_libregex_root=no
  21664. fi
  21665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21666. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21667. fi
  21668. # end of AC_ARG_WITH libregex
  21669. if test "${with_libregex+set}" = set && \
  21670. test "X${withval}" = Xno
  21671. then ## disabled by request
  21672. libopts_cv_with_libregex_root=no
  21673. libopts_cv_with_libregex_cflags=no
  21674. libopts_cv_with_libregex_libs=no
  21675. else
  21676. # Check whether --with-libregex-cflags was given.
  21677. if test "${with_libregex_cflags+set}" = set; then :
  21678. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21679. else
  21680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21681. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21682. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21683. $as_echo_n "(cached) " >&6
  21684. else
  21685. libopts_cv_with_libregex_cflags=no
  21686. fi
  21687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21688. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21689. fi
  21690. # end of AC_ARG_WITH libregex-cflags
  21691. # Check whether --with-libregex-libs was given.
  21692. if test "${with_libregex_libs+set}" = set; then :
  21693. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21694. else
  21695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21696. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21697. if ${libopts_cv_with_libregex_libs+:} false; then :
  21698. $as_echo_n "(cached) " >&6
  21699. else
  21700. libopts_cv_with_libregex_libs=no
  21701. fi
  21702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21703. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21704. fi
  21705. # end of AC_ARG_WITH libregex-libs
  21706. case "X${libopts_cv_with_libregex_cflags}" in
  21707. Xyes|Xno|X )
  21708. case "X${libopts_cv_with_libregex_root}" in
  21709. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21710. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21711. esac
  21712. esac
  21713. case "X${libopts_cv_with_libregex_libs}" in
  21714. Xyes|Xno|X )
  21715. case "X${libopts_cv_with_libregex_root}" in
  21716. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21717. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21718. esac
  21719. esac
  21720. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21721. libopts_save_LIBS="${LIBS}"
  21722. case "X${libopts_cv_with_libregex_cflags}" in
  21723. Xyes|Xno|X )
  21724. libopts_cv_with_libregex_cflags="" ;;
  21725. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21726. esac
  21727. case "X${libopts_cv_with_libregex_libs}" in
  21728. Xyes|Xno|X )
  21729. libopts_cv_with_libregex_libs="" ;;
  21730. * )
  21731. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21732. esac
  21733. LIBREGEX_CFLAGS=""
  21734. LIBREGEX_LIBS=""
  21735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21736. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21737. if ${libopts_cv_with_libregex+:} false; then :
  21738. $as_echo_n "(cached) " >&6
  21739. else
  21740. if test "$cross_compiling" = yes; then :
  21741. libopts_cv_with_libregex=no
  21742. else
  21743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21744. /* end confdefs.h. */
  21745. #include <stdio.h>
  21746. #include <stdlib.h>
  21747. #include <sys/types.h>
  21748. #include REGEX_HEADER
  21749. static regex_t re;
  21750. void comp_re(char const * pzPat) {
  21751. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21752. if (res == 0) return;
  21753. exit( res ); }
  21754. int main() {
  21755. regmatch_t m[2];
  21756. comp_re( "^.*\$" );
  21757. comp_re( "()|no.*" );
  21758. comp_re( "." );
  21759. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21760. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21761. fputs( "error: regex -->.<-- did not match\n", stderr );
  21762. return 1;
  21763. }
  21764. return 0; }
  21765. _ACEOF
  21766. if ac_fn_c_try_run "$LINENO"; then :
  21767. libopts_cv_with_libregex=yes
  21768. else
  21769. libopts_cv_with_libregex=no
  21770. fi
  21771. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21772. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21773. fi
  21774. # end of AC_RUN_IFELSE
  21775. fi
  21776. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21777. fi ## disabled by request
  21778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21779. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21780. if test "X${libopts_cv_with_libregex}" != Xno
  21781. then
  21782. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21783. else
  21784. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21785. LIBS="${libopts_save_LIBS}"
  21786. libopts_cv_with_libregex_root=no
  21787. libopts_cv_with_libregex_cflags=no
  21788. libopts_cv_with_libregex_libs=no
  21789. libopts_cv_with_libregex=no
  21790. fi
  21791. # Check to see if pathfind(3) works.
  21792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21793. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21794. if ${libopts_cv_run_pathfind+:} false; then :
  21795. $as_echo_n "(cached) " >&6
  21796. else
  21797. if test "$cross_compiling" = yes; then :
  21798. libopts_cv_run_pathfind=no
  21799. else
  21800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21801. /* end confdefs.h. */
  21802. #include <string.h>
  21803. #include <stdlib.h>
  21804. int main (int argc, char ** argv) {
  21805. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21806. return (pz == 0) ? 1 : 0;
  21807. }
  21808. _ACEOF
  21809. if ac_fn_c_try_run "$LINENO"; then :
  21810. libopts_cv_run_pathfind=yes
  21811. else
  21812. libopts_cv_run_pathfind=no
  21813. fi
  21814. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21815. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21816. fi
  21817. # end of RUN_IFELSE
  21818. fi
  21819. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21821. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21822. if test "X${libopts_cv_run_pathfind}" != Xno
  21823. then
  21824. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21825. fi
  21826. # Check to see if /dev/zero is readable device.
  21827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21828. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21829. if ${libopts_cv_test_dev_zero+:} false; then :
  21830. $as_echo_n "(cached) " >&6
  21831. else
  21832. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21833. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21834. test -z "${dzero}" && exit 1
  21835. echo ${dzero}`
  21836. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21837. then libopts_cv_test_dev_zero=no
  21838. fi
  21839. fi
  21840. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21842. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21843. if test "X${libopts_cv_test_dev_zero}" != Xno
  21844. then
  21845. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21846. fi
  21847. # Check to see if we have a functional realpath(3C).
  21848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21849. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21850. if ${libopts_cv_run_realpath+:} false; then :
  21851. $as_echo_n "(cached) " >&6
  21852. else
  21853. if test "$cross_compiling" = yes; then :
  21854. libopts_cv_run_realpath=no
  21855. else
  21856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21857. /* end confdefs.h. */
  21858. #include <limits.h>
  21859. #include <stdlib.h>
  21860. int main (int argc, char ** argv) {
  21861. #ifndef PATH_MAX
  21862. choke me!!
  21863. #else
  21864. char zPath[PATH_MAX+1];
  21865. #endif
  21866. char *pz = realpath(argv[0], zPath);
  21867. return (pz == zPath) ? 0 : 1;
  21868. }
  21869. _ACEOF
  21870. if ac_fn_c_try_run "$LINENO"; then :
  21871. libopts_cv_run_realpath=yes
  21872. else
  21873. libopts_cv_run_realpath=no
  21874. fi
  21875. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21876. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21877. fi
  21878. # end of RUN_IFELSE
  21879. fi
  21880. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21882. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21883. if test "X${libopts_cv_run_realpath}" != Xno
  21884. then
  21885. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21886. fi
  21887. # Check to see if strftime() works.
  21888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21889. $as_echo_n "checking whether strftime() works... " >&6; }
  21890. if ${libopts_cv_run_strftime+:} false; then :
  21891. $as_echo_n "(cached) " >&6
  21892. else
  21893. if test "$cross_compiling" = yes; then :
  21894. libopts_cv_run_strftime=no
  21895. else
  21896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21897. /* end confdefs.h. */
  21898. #include <time.h>
  21899. #include <string.h>
  21900. char t_buf[ 64 ];
  21901. int main() {
  21902. static char const z[] = "Thursday Aug 28 240";
  21903. struct tm tm;
  21904. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21905. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21906. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21907. tm.tm_mday = 28; /* day of the month [1, 31] */
  21908. tm.tm_mon = 7; /* months since January [0, 11] */
  21909. tm.tm_year = 86; /* years since 1900 */
  21910. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21911. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21912. tm.tm_isdst = 1; /* flag for daylight savings time */
  21913. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21914. return (strcmp( t_buf, z ) != 0); }
  21915. _ACEOF
  21916. if ac_fn_c_try_run "$LINENO"; then :
  21917. libopts_cv_run_strftime=yes
  21918. else
  21919. libopts_cv_run_strftime=no
  21920. fi
  21921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21923. fi
  21924. # end of RUN_IFELSE
  21925. fi
  21926. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21928. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21929. if test "X${libopts_cv_run_strftime}" != Xno
  21930. then
  21931. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21932. fi
  21933. # Check to see if fopen accepts "b" mode.
  21934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21935. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21936. if ${libopts_cv_run_fopen_binary+:} false; then :
  21937. $as_echo_n "(cached) " >&6
  21938. else
  21939. if test "$cross_compiling" = yes; then :
  21940. libopts_cv_run_fopen_binary=no
  21941. else
  21942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21943. /* end confdefs.h. */
  21944. #include <stdio.h>
  21945. int main (int argc, char ** argv) {
  21946. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21947. return (fp == NULL) ? 1 : fclose(fp); }
  21948. _ACEOF
  21949. if ac_fn_c_try_run "$LINENO"; then :
  21950. libopts_cv_run_fopen_binary=yes
  21951. else
  21952. libopts_cv_run_fopen_binary=no
  21953. fi
  21954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21956. fi
  21957. # end of RUN_IFELSE
  21958. fi
  21959. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21961. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21962. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21963. then
  21964. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21965. else
  21966. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21967. fi
  21968. # Check to see if fopen accepts "t" mode.
  21969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21970. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21971. if ${libopts_cv_run_fopen_text+:} false; then :
  21972. $as_echo_n "(cached) " >&6
  21973. else
  21974. if test "$cross_compiling" = yes; then :
  21975. libopts_cv_run_fopen_text=no
  21976. else
  21977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21978. /* end confdefs.h. */
  21979. #include <stdio.h>
  21980. int main (int argc, char ** argv) {
  21981. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21982. return (fp == NULL) ? 1 : fclose(fp); }
  21983. _ACEOF
  21984. if ac_fn_c_try_run "$LINENO"; then :
  21985. libopts_cv_run_fopen_text=yes
  21986. else
  21987. libopts_cv_run_fopen_text=no
  21988. fi
  21989. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21990. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21991. fi
  21992. # end of RUN_IFELSE
  21993. fi
  21994. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21996. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21997. if test "X${libopts_cv_run_fopen_text}" != Xno
  21998. then
  21999. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  22000. else
  22001. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  22002. fi
  22003. # Check to see if not wanting optional option args.
  22004. # Check whether --enable-optional-args was given.
  22005. if test "${enable_optional_args+set}" = set; then :
  22006. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  22007. else
  22008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  22009. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  22010. if ${libopts_cv_enable_optional_args+:} false; then :
  22011. $as_echo_n "(cached) " >&6
  22012. else
  22013. libopts_cv_enable_optional_args=yes
  22014. fi
  22015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  22016. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  22017. fi
  22018. # end of AC_ARG_ENABLE
  22019. if test "X${libopts_cv_enable_optional_args}" = Xno
  22020. then
  22021. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  22022. fi
  22023. fi
  22024. ac_config_files="$ac_config_files libopts/Makefile"
  22025. # end of AC_DEFUN of LIBOPTS_CHECK
  22026. 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"
  22027. cat >confcache <<\_ACEOF
  22028. # This file is a shell script that caches the results of configure
  22029. # tests run on this system so they can be shared between configure
  22030. # scripts and configure runs, see configure's option --config-cache.
  22031. # It is not useful on other systems. If it contains results you don't
  22032. # want to keep, you may remove or edit it.
  22033. #
  22034. # config.status only pays attention to the cache file if you give it
  22035. # the --recheck option to rerun configure.
  22036. #
  22037. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22038. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22039. # following values.
  22040. _ACEOF
  22041. # The following way of writing the cache mishandles newlines in values,
  22042. # but we know of no workaround that is simple, portable, and efficient.
  22043. # So, we kill variables containing newlines.
  22044. # Ultrix sh set writes to stderr and can't be redirected directly,
  22045. # and sets the high bit in the cache file unless we assign to the vars.
  22046. (
  22047. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22048. eval ac_val=\$$ac_var
  22049. case $ac_val in #(
  22050. *${as_nl}*)
  22051. case $ac_var in #(
  22052. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22053. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22054. esac
  22055. case $ac_var in #(
  22056. _ | IFS | as_nl) ;; #(
  22057. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22058. *) { eval $ac_var=; unset $ac_var;} ;;
  22059. esac ;;
  22060. esac
  22061. done
  22062. (set) 2>&1 |
  22063. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22064. *${as_nl}ac_space=\ *)
  22065. # `set' does not quote correctly, so add quotes: double-quote
  22066. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22067. sed -n \
  22068. "s/'/'\\\\''/g;
  22069. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22070. ;; #(
  22071. *)
  22072. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22073. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22074. ;;
  22075. esac |
  22076. sort
  22077. ) |
  22078. sed '
  22079. /^ac_cv_env_/b end
  22080. t clear
  22081. :clear
  22082. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22083. t end
  22084. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22085. :end' >>confcache
  22086. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22087. if test -w "$cache_file"; then
  22088. if test "x$cache_file" != "x/dev/null"; then
  22089. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22090. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22091. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22092. cat confcache >"$cache_file"
  22093. else
  22094. case $cache_file in #(
  22095. */* | ?:*)
  22096. mv -f confcache "$cache_file"$$ &&
  22097. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22098. *)
  22099. mv -f confcache "$cache_file" ;;
  22100. esac
  22101. fi
  22102. fi
  22103. else
  22104. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22105. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22106. fi
  22107. fi
  22108. rm -f confcache
  22109. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22110. # Let make expand exec_prefix.
  22111. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22112. DEFS=-DHAVE_CONFIG_H
  22113. ac_libobjs=
  22114. ac_ltlibobjs=
  22115. U=
  22116. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22117. # 1. Remove the extension, and $U if already installed.
  22118. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22119. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22120. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22121. # will be set to the directory where LIBOBJS objects are built.
  22122. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22123. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22124. done
  22125. LIBOBJS=$ac_libobjs
  22126. LTLIBOBJS=$ac_ltlibobjs
  22127. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22128. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  22129. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22130. fi
  22131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  22132. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  22133. if test -n "$am_sleep_pid"; then
  22134. # Hide warnings about reused PIDs.
  22135. wait $am_sleep_pid 2>/dev/null
  22136. fi
  22137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  22138. $as_echo "done" >&6; }
  22139. if test -n "$EXEEXT"; then
  22140. am__EXEEXT_TRUE=
  22141. am__EXEEXT_FALSE='#'
  22142. else
  22143. am__EXEEXT_TRUE='#'
  22144. am__EXEEXT_FALSE=
  22145. fi
  22146. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22147. as_fn_error $? "conditional \"AMDEP\" was never defined.
  22148. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22149. fi
  22150. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22151. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22152. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22153. fi
  22154. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22155. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  22156. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22157. fi
  22158. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22159. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  22160. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22161. fi
  22162. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  22163. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  22164. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22165. fi
  22166. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  22167. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  22168. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22169. fi
  22170. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  22171. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  22172. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22173. fi
  22174. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  22175. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  22176. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22177. fi
  22178. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  22179. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  22180. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22181. fi
  22182. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  22183. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  22184. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22185. fi
  22186. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  22187. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  22188. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22189. fi
  22190. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  22191. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  22192. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22193. fi
  22194. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  22195. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  22196. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22197. fi
  22198. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  22199. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  22200. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22201. fi
  22202. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  22203. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  22204. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22205. fi
  22206. : "${CONFIG_STATUS=./config.status}"
  22207. ac_write_fail=0
  22208. ac_clean_files_save=$ac_clean_files
  22209. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22210. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22211. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22212. as_write_fail=0
  22213. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22214. #! $SHELL
  22215. # Generated by $as_me.
  22216. # Run this file to recreate the current configuration.
  22217. # Compiler output produced by configure, useful for debugging
  22218. # configure, is in config.log if it exists.
  22219. debug=false
  22220. ac_cs_recheck=false
  22221. ac_cs_silent=false
  22222. SHELL=\${CONFIG_SHELL-$SHELL}
  22223. export SHELL
  22224. _ASEOF
  22225. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22226. ## -------------------- ##
  22227. ## M4sh Initialization. ##
  22228. ## -------------------- ##
  22229. # Be more Bourne compatible
  22230. DUALCASE=1; export DUALCASE # for MKS sh
  22231. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22232. emulate sh
  22233. NULLCMD=:
  22234. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22235. # is contrary to our usage. Disable this feature.
  22236. alias -g '${1+"$@"}'='"$@"'
  22237. setopt NO_GLOB_SUBST
  22238. else
  22239. case `(set -o) 2>/dev/null` in #(
  22240. *posix*) :
  22241. set -o posix ;; #(
  22242. *) :
  22243. ;;
  22244. esac
  22245. fi
  22246. as_nl='
  22247. '
  22248. export as_nl
  22249. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22250. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22251. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22252. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22253. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22254. # but without wasting forks for bash or zsh.
  22255. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22256. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22257. as_echo='print -r --'
  22258. as_echo_n='print -rn --'
  22259. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22260. as_echo='printf %s\n'
  22261. as_echo_n='printf %s'
  22262. else
  22263. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22264. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22265. as_echo_n='/usr/ucb/echo -n'
  22266. else
  22267. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22268. as_echo_n_body='eval
  22269. arg=$1;
  22270. case $arg in #(
  22271. *"$as_nl"*)
  22272. expr "X$arg" : "X\\(.*\\)$as_nl";
  22273. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22274. esac;
  22275. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22276. '
  22277. export as_echo_n_body
  22278. as_echo_n='sh -c $as_echo_n_body as_echo'
  22279. fi
  22280. export as_echo_body
  22281. as_echo='sh -c $as_echo_body as_echo'
  22282. fi
  22283. # The user is always right.
  22284. if test "${PATH_SEPARATOR+set}" != set; then
  22285. PATH_SEPARATOR=:
  22286. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22287. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22288. PATH_SEPARATOR=';'
  22289. }
  22290. fi
  22291. # IFS
  22292. # We need space, tab and new line, in precisely that order. Quoting is
  22293. # there to prevent editors from complaining about space-tab.
  22294. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22295. # splitting by setting IFS to empty value.)
  22296. IFS=" "" $as_nl"
  22297. # Find who we are. Look in the path if we contain no directory separator.
  22298. as_myself=
  22299. case $0 in #((
  22300. *[\\/]* ) as_myself=$0 ;;
  22301. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22302. for as_dir in $PATH
  22303. do
  22304. IFS=$as_save_IFS
  22305. test -z "$as_dir" && as_dir=.
  22306. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22307. done
  22308. IFS=$as_save_IFS
  22309. ;;
  22310. esac
  22311. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22312. # in which case we are not to be found in the path.
  22313. if test "x$as_myself" = x; then
  22314. as_myself=$0
  22315. fi
  22316. if test ! -f "$as_myself"; then
  22317. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22318. exit 1
  22319. fi
  22320. # Unset variables that we do not need and which cause bugs (e.g. in
  22321. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22322. # suppresses any "Segmentation fault" message there. '((' could
  22323. # trigger a bug in pdksh 5.2.14.
  22324. for as_var in BASH_ENV ENV MAIL MAILPATH
  22325. do eval test x\${$as_var+set} = xset \
  22326. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22327. done
  22328. PS1='$ '
  22329. PS2='> '
  22330. PS4='+ '
  22331. # NLS nuisances.
  22332. LC_ALL=C
  22333. export LC_ALL
  22334. LANGUAGE=C
  22335. export LANGUAGE
  22336. # CDPATH.
  22337. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22338. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22339. # ----------------------------------------
  22340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22342. # script with STATUS, using 1 if that was 0.
  22343. as_fn_error ()
  22344. {
  22345. as_status=$1; test $as_status -eq 0 && as_status=1
  22346. if test "$4"; then
  22347. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22349. fi
  22350. $as_echo "$as_me: error: $2" >&2
  22351. as_fn_exit $as_status
  22352. } # as_fn_error
  22353. # as_fn_set_status STATUS
  22354. # -----------------------
  22355. # Set $? to STATUS, without forking.
  22356. as_fn_set_status ()
  22357. {
  22358. return $1
  22359. } # as_fn_set_status
  22360. # as_fn_exit STATUS
  22361. # -----------------
  22362. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22363. as_fn_exit ()
  22364. {
  22365. set +e
  22366. as_fn_set_status $1
  22367. exit $1
  22368. } # as_fn_exit
  22369. # as_fn_unset VAR
  22370. # ---------------
  22371. # Portably unset VAR.
  22372. as_fn_unset ()
  22373. {
  22374. { eval $1=; unset $1;}
  22375. }
  22376. as_unset=as_fn_unset
  22377. # as_fn_append VAR VALUE
  22378. # ----------------------
  22379. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22380. # advantage of any shell optimizations that allow amortized linear growth over
  22381. # repeated appends, instead of the typical quadratic growth present in naive
  22382. # implementations.
  22383. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22384. eval 'as_fn_append ()
  22385. {
  22386. eval $1+=\$2
  22387. }'
  22388. else
  22389. as_fn_append ()
  22390. {
  22391. eval $1=\$$1\$2
  22392. }
  22393. fi # as_fn_append
  22394. # as_fn_arith ARG...
  22395. # ------------------
  22396. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22397. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22398. # must be portable across $(()) and expr.
  22399. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22400. eval 'as_fn_arith ()
  22401. {
  22402. as_val=$(( $* ))
  22403. }'
  22404. else
  22405. as_fn_arith ()
  22406. {
  22407. as_val=`expr "$@" || test $? -eq 1`
  22408. }
  22409. fi # as_fn_arith
  22410. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22411. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22412. as_expr=expr
  22413. else
  22414. as_expr=false
  22415. fi
  22416. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22417. as_basename=basename
  22418. else
  22419. as_basename=false
  22420. fi
  22421. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22422. as_dirname=dirname
  22423. else
  22424. as_dirname=false
  22425. fi
  22426. as_me=`$as_basename -- "$0" ||
  22427. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22428. X"$0" : 'X\(//\)$' \| \
  22429. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22430. $as_echo X/"$0" |
  22431. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22432. s//\1/
  22433. q
  22434. }
  22435. /^X\/\(\/\/\)$/{
  22436. s//\1/
  22437. q
  22438. }
  22439. /^X\/\(\/\).*/{
  22440. s//\1/
  22441. q
  22442. }
  22443. s/.*/./; q'`
  22444. # Avoid depending upon Character Ranges.
  22445. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22446. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22447. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22448. as_cr_digits='0123456789'
  22449. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22450. ECHO_C= ECHO_N= ECHO_T=
  22451. case `echo -n x` in #(((((
  22452. -n*)
  22453. case `echo 'xy\c'` in
  22454. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22455. xy) ECHO_C='\c';;
  22456. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22457. ECHO_T=' ';;
  22458. esac;;
  22459. *)
  22460. ECHO_N='-n';;
  22461. esac
  22462. rm -f conf$$ conf$$.exe conf$$.file
  22463. if test -d conf$$.dir; then
  22464. rm -f conf$$.dir/conf$$.file
  22465. else
  22466. rm -f conf$$.dir
  22467. mkdir conf$$.dir 2>/dev/null
  22468. fi
  22469. if (echo >conf$$.file) 2>/dev/null; then
  22470. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22471. as_ln_s='ln -s'
  22472. # ... but there are two gotchas:
  22473. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22474. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22475. # In both cases, we have to default to `cp -pR'.
  22476. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22477. as_ln_s='cp -pR'
  22478. elif ln conf$$.file conf$$ 2>/dev/null; then
  22479. as_ln_s=ln
  22480. else
  22481. as_ln_s='cp -pR'
  22482. fi
  22483. else
  22484. as_ln_s='cp -pR'
  22485. fi
  22486. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22487. rmdir conf$$.dir 2>/dev/null
  22488. # as_fn_mkdir_p
  22489. # -------------
  22490. # Create "$as_dir" as a directory, including parents if necessary.
  22491. as_fn_mkdir_p ()
  22492. {
  22493. case $as_dir in #(
  22494. -*) as_dir=./$as_dir;;
  22495. esac
  22496. test -d "$as_dir" || eval $as_mkdir_p || {
  22497. as_dirs=
  22498. while :; do
  22499. case $as_dir in #(
  22500. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22501. *) as_qdir=$as_dir;;
  22502. esac
  22503. as_dirs="'$as_qdir' $as_dirs"
  22504. as_dir=`$as_dirname -- "$as_dir" ||
  22505. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22506. X"$as_dir" : 'X\(//\)[^/]' \| \
  22507. X"$as_dir" : 'X\(//\)$' \| \
  22508. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22509. $as_echo X"$as_dir" |
  22510. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22511. s//\1/
  22512. q
  22513. }
  22514. /^X\(\/\/\)[^/].*/{
  22515. s//\1/
  22516. q
  22517. }
  22518. /^X\(\/\/\)$/{
  22519. s//\1/
  22520. q
  22521. }
  22522. /^X\(\/\).*/{
  22523. s//\1/
  22524. q
  22525. }
  22526. s/.*/./; q'`
  22527. test -d "$as_dir" && break
  22528. done
  22529. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22530. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22531. } # as_fn_mkdir_p
  22532. if mkdir -p . 2>/dev/null; then
  22533. as_mkdir_p='mkdir -p "$as_dir"'
  22534. else
  22535. test -d ./-p && rmdir ./-p
  22536. as_mkdir_p=false
  22537. fi
  22538. # as_fn_executable_p FILE
  22539. # -----------------------
  22540. # Test if FILE is an executable regular file.
  22541. as_fn_executable_p ()
  22542. {
  22543. test -f "$1" && test -x "$1"
  22544. } # as_fn_executable_p
  22545. as_test_x='test -x'
  22546. as_executable_p=as_fn_executable_p
  22547. # Sed expression to map a string onto a valid CPP name.
  22548. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22549. # Sed expression to map a string onto a valid variable name.
  22550. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22551. exec 6>&1
  22552. ## ----------------------------------- ##
  22553. ## Main body of $CONFIG_STATUS script. ##
  22554. ## ----------------------------------- ##
  22555. _ASEOF
  22556. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22558. # Save the log message, to keep $0 and so on meaningful, and to
  22559. # report actual input values of CONFIG_FILES etc. instead of their
  22560. # values after options handling.
  22561. ac_log="
  22562. This file was extended by tcpreplay $as_me 4.5.1, which was
  22563. generated by GNU Autoconf 2.69. Invocation command line was
  22564. CONFIG_FILES = $CONFIG_FILES
  22565. CONFIG_HEADERS = $CONFIG_HEADERS
  22566. CONFIG_LINKS = $CONFIG_LINKS
  22567. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22568. $ $0 $@
  22569. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22570. "
  22571. _ACEOF
  22572. case $ac_config_files in *"
  22573. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22574. esac
  22575. case $ac_config_headers in *"
  22576. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22577. esac
  22578. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22579. # Files that config.status was made for.
  22580. config_files="$ac_config_files"
  22581. config_headers="$ac_config_headers"
  22582. config_commands="$ac_config_commands"
  22583. _ACEOF
  22584. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22585. ac_cs_usage="\
  22586. \`$as_me' instantiates files and other configuration actions
  22587. from templates according to the current configuration. Unless the files
  22588. and actions are specified as TAGs, all are instantiated by default.
  22589. Usage: $0 [OPTION]... [TAG]...
  22590. -h, --help print this help, then exit
  22591. -V, --version print version number and configuration settings, then exit
  22592. --config print configuration, then exit
  22593. -q, --quiet, --silent
  22594. do not print progress messages
  22595. -d, --debug don't remove temporary files
  22596. --recheck update $as_me by reconfiguring in the same conditions
  22597. --file=FILE[:TEMPLATE]
  22598. instantiate the configuration file FILE
  22599. --header=FILE[:TEMPLATE]
  22600. instantiate the configuration header FILE
  22601. Configuration files:
  22602. $config_files
  22603. Configuration headers:
  22604. $config_headers
  22605. Configuration commands:
  22606. $config_commands
  22607. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22608. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22609. _ACEOF
  22610. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22611. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22612. ac_cs_version="\\
  22613. tcpreplay config.status 4.5.1
  22614. configured by $0, generated by GNU Autoconf 2.69,
  22615. with options \\"\$ac_cs_config\\"
  22616. Copyright (C) 2012 Free Software Foundation, Inc.
  22617. This config.status script is free software; the Free Software Foundation
  22618. gives unlimited permission to copy, distribute and modify it."
  22619. ac_pwd='$ac_pwd'
  22620. srcdir='$srcdir'
  22621. INSTALL='$INSTALL'
  22622. MKDIR_P='$MKDIR_P'
  22623. AWK='$AWK'
  22624. test -n "\$AWK" || AWK=awk
  22625. _ACEOF
  22626. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22627. # The default lists apply if the user does not specify any file.
  22628. ac_need_defaults=:
  22629. while test $# != 0
  22630. do
  22631. case $1 in
  22632. --*=?*)
  22633. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22634. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22635. ac_shift=:
  22636. ;;
  22637. --*=)
  22638. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22639. ac_optarg=
  22640. ac_shift=:
  22641. ;;
  22642. *)
  22643. ac_option=$1
  22644. ac_optarg=$2
  22645. ac_shift=shift
  22646. ;;
  22647. esac
  22648. case $ac_option in
  22649. # Handling of the options.
  22650. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22651. ac_cs_recheck=: ;;
  22652. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22653. $as_echo "$ac_cs_version"; exit ;;
  22654. --config | --confi | --conf | --con | --co | --c )
  22655. $as_echo "$ac_cs_config"; exit ;;
  22656. --debug | --debu | --deb | --de | --d | -d )
  22657. debug=: ;;
  22658. --file | --fil | --fi | --f )
  22659. $ac_shift
  22660. case $ac_optarg in
  22661. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22662. '') as_fn_error $? "missing file argument" ;;
  22663. esac
  22664. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22665. ac_need_defaults=false;;
  22666. --header | --heade | --head | --hea )
  22667. $ac_shift
  22668. case $ac_optarg in
  22669. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22670. esac
  22671. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22672. ac_need_defaults=false;;
  22673. --he | --h)
  22674. # Conflict between --help and --header
  22675. as_fn_error $? "ambiguous option: \`$1'
  22676. Try \`$0 --help' for more information.";;
  22677. --help | --hel | -h )
  22678. $as_echo "$ac_cs_usage"; exit ;;
  22679. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22680. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22681. ac_cs_silent=: ;;
  22682. # This is an error.
  22683. -*) as_fn_error $? "unrecognized option: \`$1'
  22684. Try \`$0 --help' for more information." ;;
  22685. *) as_fn_append ac_config_targets " $1"
  22686. ac_need_defaults=false ;;
  22687. esac
  22688. shift
  22689. done
  22690. ac_configure_extra_args=
  22691. if $ac_cs_silent; then
  22692. exec 6>/dev/null
  22693. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22694. fi
  22695. _ACEOF
  22696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22697. if \$ac_cs_recheck; then
  22698. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22699. shift
  22700. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22701. CONFIG_SHELL='$SHELL'
  22702. export CONFIG_SHELL
  22703. exec "\$@"
  22704. fi
  22705. _ACEOF
  22706. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22707. exec 5>>config.log
  22708. {
  22709. echo
  22710. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22711. ## Running $as_me. ##
  22712. _ASBOX
  22713. $as_echo "$ac_log"
  22714. } >&5
  22715. _ACEOF
  22716. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22717. #
  22718. # INIT-COMMANDS
  22719. #
  22720. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  22721. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22722. # if CDPATH is set.
  22723. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22724. sed_quote_subst='$sed_quote_subst'
  22725. double_quote_subst='$double_quote_subst'
  22726. delay_variable_subst='$delay_variable_subst'
  22727. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22728. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22729. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22730. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22731. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22732. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22733. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22734. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22735. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22736. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22737. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22738. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22739. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22740. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22741. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22742. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22743. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22744. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22745. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22746. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22747. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22748. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22749. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22750. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22751. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22752. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22753. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22754. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22755. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22756. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22757. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22758. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22759. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22760. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22761. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22762. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22763. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22764. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22765. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22766. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22767. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22768. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22769. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22770. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22771. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22772. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22773. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22774. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22775. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22776. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22777. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22778. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22779. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22780. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22781. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22782. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22783. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22784. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22785. 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"`'
  22786. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22787. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22788. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22789. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22790. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22791. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22792. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22793. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22794. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22795. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22796. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22797. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22798. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22799. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22800. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22801. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22802. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22803. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22804. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22805. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22806. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22807. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22808. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22809. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22810. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22811. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22812. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22813. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22814. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22815. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22816. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22817. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22818. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22819. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22820. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22821. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22822. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22823. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22824. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22825. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22826. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22827. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22828. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22829. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22830. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22831. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22832. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22833. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22834. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22835. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22836. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22837. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22838. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22839. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22840. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22841. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22842. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22843. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22844. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22845. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22846. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22847. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22848. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22849. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22850. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22851. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22852. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22853. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22854. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22855. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22856. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22857. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22858. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22859. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22860. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22861. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22862. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22863. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22864. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22865. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22866. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22867. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22868. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22869. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22870. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22871. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22872. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22873. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22874. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22875. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22876. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22877. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22878. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22879. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22880. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22881. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22882. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22883. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22884. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22885. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22886. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22887. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22888. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22889. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22890. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22891. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22892. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22893. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22894. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22895. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22896. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22897. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22898. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22899. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22900. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22901. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22902. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22903. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22904. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22905. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22906. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22907. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22908. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22909. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22910. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22911. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22912. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22913. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22914. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22915. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22916. LTCC='$LTCC'
  22917. LTCFLAGS='$LTCFLAGS'
  22918. compiler='$compiler_DEFAULT'
  22919. # A function that is used when there is no print builtin or printf.
  22920. func_fallback_echo ()
  22921. {
  22922. eval 'cat <<_LTECHO_EOF
  22923. \$1
  22924. _LTECHO_EOF'
  22925. }
  22926. # Quote evaled strings.
  22927. for var in SHELL \
  22928. ECHO \
  22929. PATH_SEPARATOR \
  22930. SED \
  22931. GREP \
  22932. EGREP \
  22933. FGREP \
  22934. LD \
  22935. NM \
  22936. LN_S \
  22937. lt_SP2NL \
  22938. lt_NL2SP \
  22939. reload_flag \
  22940. OBJDUMP \
  22941. deplibs_check_method \
  22942. file_magic_cmd \
  22943. file_magic_glob \
  22944. want_nocaseglob \
  22945. DLLTOOL \
  22946. sharedlib_from_linklib_cmd \
  22947. AR \
  22948. AR_FLAGS \
  22949. archiver_list_spec \
  22950. STRIP \
  22951. RANLIB \
  22952. CC \
  22953. CFLAGS \
  22954. compiler \
  22955. lt_cv_sys_global_symbol_pipe \
  22956. lt_cv_sys_global_symbol_to_cdecl \
  22957. lt_cv_sys_global_symbol_to_import \
  22958. lt_cv_sys_global_symbol_to_c_name_address \
  22959. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22960. lt_cv_nm_interface \
  22961. nm_file_list_spec \
  22962. lt_cv_truncate_bin \
  22963. lt_prog_compiler_no_builtin_flag \
  22964. lt_prog_compiler_pic \
  22965. lt_prog_compiler_wl \
  22966. lt_prog_compiler_static \
  22967. lt_cv_prog_compiler_c_o \
  22968. need_locks \
  22969. MANIFEST_TOOL \
  22970. DSYMUTIL \
  22971. NMEDIT \
  22972. LIPO \
  22973. OTOOL \
  22974. OTOOL64 \
  22975. shrext_cmds \
  22976. export_dynamic_flag_spec \
  22977. whole_archive_flag_spec \
  22978. compiler_needs_object \
  22979. with_gnu_ld \
  22980. allow_undefined_flag \
  22981. no_undefined_flag \
  22982. hardcode_libdir_flag_spec \
  22983. hardcode_libdir_separator \
  22984. exclude_expsyms \
  22985. include_expsyms \
  22986. file_list_spec \
  22987. variables_saved_for_relink \
  22988. libname_spec \
  22989. library_names_spec \
  22990. soname_spec \
  22991. install_override_mode \
  22992. finish_eval \
  22993. old_striplib \
  22994. striplib \
  22995. compiler_lib_search_dirs \
  22996. predep_objects \
  22997. postdep_objects \
  22998. predeps \
  22999. postdeps \
  23000. compiler_lib_search_path \
  23001. LD_CXX \
  23002. reload_flag_CXX \
  23003. compiler_CXX \
  23004. lt_prog_compiler_no_builtin_flag_CXX \
  23005. lt_prog_compiler_pic_CXX \
  23006. lt_prog_compiler_wl_CXX \
  23007. lt_prog_compiler_static_CXX \
  23008. lt_cv_prog_compiler_c_o_CXX \
  23009. export_dynamic_flag_spec_CXX \
  23010. whole_archive_flag_spec_CXX \
  23011. compiler_needs_object_CXX \
  23012. with_gnu_ld_CXX \
  23013. allow_undefined_flag_CXX \
  23014. no_undefined_flag_CXX \
  23015. hardcode_libdir_flag_spec_CXX \
  23016. hardcode_libdir_separator_CXX \
  23017. exclude_expsyms_CXX \
  23018. include_expsyms_CXX \
  23019. file_list_spec_CXX \
  23020. compiler_lib_search_dirs_CXX \
  23021. predep_objects_CXX \
  23022. postdep_objects_CXX \
  23023. predeps_CXX \
  23024. postdeps_CXX \
  23025. compiler_lib_search_path_CXX; do
  23026. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23027. *[\\\\\\\`\\"\\\$]*)
  23028. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23029. ;;
  23030. *)
  23031. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23032. ;;
  23033. esac
  23034. done
  23035. # Double-quote double-evaled strings.
  23036. for var in reload_cmds \
  23037. old_postinstall_cmds \
  23038. old_postuninstall_cmds \
  23039. old_archive_cmds \
  23040. extract_expsyms_cmds \
  23041. old_archive_from_new_cmds \
  23042. old_archive_from_expsyms_cmds \
  23043. archive_cmds \
  23044. archive_expsym_cmds \
  23045. module_cmds \
  23046. module_expsym_cmds \
  23047. export_symbols_cmds \
  23048. prelink_cmds \
  23049. postlink_cmds \
  23050. postinstall_cmds \
  23051. postuninstall_cmds \
  23052. finish_cmds \
  23053. sys_lib_search_path_spec \
  23054. configure_time_dlsearch_path \
  23055. configure_time_lt_sys_library_path \
  23056. reload_cmds_CXX \
  23057. old_archive_cmds_CXX \
  23058. old_archive_from_new_cmds_CXX \
  23059. old_archive_from_expsyms_cmds_CXX \
  23060. archive_cmds_CXX \
  23061. archive_expsym_cmds_CXX \
  23062. module_cmds_CXX \
  23063. module_expsym_cmds_CXX \
  23064. export_symbols_cmds_CXX \
  23065. prelink_cmds_CXX \
  23066. postlink_cmds_CXX; do
  23067. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23068. *[\\\\\\\`\\"\\\$]*)
  23069. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  23070. ;;
  23071. *)
  23072. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23073. ;;
  23074. esac
  23075. done
  23076. ac_aux_dir='$ac_aux_dir'
  23077. # See if we are running on zsh, and set the options that allow our
  23078. # commands through without removal of \ escapes INIT.
  23079. if test -n "\${ZSH_VERSION+set}"; then
  23080. setopt NO_GLOB_SUBST
  23081. fi
  23082. PACKAGE='$PACKAGE'
  23083. VERSION='$VERSION'
  23084. RM='$RM'
  23085. ofile='$ofile'
  23086. _ACEOF
  23087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23088. # Handling of arguments.
  23089. for ac_config_target in $ac_config_targets
  23090. do
  23091. case $ac_config_target in
  23092. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  23093. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23094. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23095. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  23096. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23097. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  23098. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23099. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  23100. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  23101. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  23102. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  23103. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  23104. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  23105. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  23106. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  23107. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  23108. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23109. esac
  23110. done
  23111. # If the user did not use the arguments to specify the items to instantiate,
  23112. # then the envvar interface is used. Set only those that are not.
  23113. # We use the long form for the default assignment because of an extremely
  23114. # bizarre bug on SunOS 4.1.3.
  23115. if $ac_need_defaults; then
  23116. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23117. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23118. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23119. fi
  23120. # Have a temporary directory for convenience. Make it in the build tree
  23121. # simply because there is no reason against having it here, and in addition,
  23122. # creating and moving files from /tmp can sometimes cause problems.
  23123. # Hook for its removal unless debugging.
  23124. # Note that there is a small window in which the directory will not be cleaned:
  23125. # after its creation but before its name has been assigned to `$tmp'.
  23126. $debug ||
  23127. {
  23128. tmp= ac_tmp=
  23129. trap 'exit_status=$?
  23130. : "${ac_tmp:=$tmp}"
  23131. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23132. ' 0
  23133. trap 'as_fn_exit 1' 1 2 13 15
  23134. }
  23135. # Create a (secure) tmp directory for tmp files.
  23136. {
  23137. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23138. test -d "$tmp"
  23139. } ||
  23140. {
  23141. tmp=./conf$$-$RANDOM
  23142. (umask 077 && mkdir "$tmp")
  23143. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23144. ac_tmp=$tmp
  23145. # Set up the scripts for CONFIG_FILES section.
  23146. # No need to generate them if there are no CONFIG_FILES.
  23147. # This happens for instance with `./config.status config.h'.
  23148. if test -n "$CONFIG_FILES"; then
  23149. ac_cr=`echo X | tr X '\015'`
  23150. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23151. # But we know of no other shell where ac_cr would be empty at this
  23152. # point, so we can use a bashism as a fallback.
  23153. if test "x$ac_cr" = x; then
  23154. eval ac_cr=\$\'\\r\'
  23155. fi
  23156. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23157. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23158. ac_cs_awk_cr='\\r'
  23159. else
  23160. ac_cs_awk_cr=$ac_cr
  23161. fi
  23162. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23163. _ACEOF
  23164. {
  23165. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23166. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23167. echo "_ACEOF"
  23168. } >conf$$subs.sh ||
  23169. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23170. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23171. ac_delim='%!_!# '
  23172. for ac_last_try in false false false false false :; do
  23173. . ./conf$$subs.sh ||
  23174. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23175. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23176. if test $ac_delim_n = $ac_delim_num; then
  23177. break
  23178. elif $ac_last_try; then
  23179. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23180. else
  23181. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23182. fi
  23183. done
  23184. rm -f conf$$subs.sh
  23185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23186. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23187. _ACEOF
  23188. sed -n '
  23189. h
  23190. s/^/S["/; s/!.*/"]=/
  23191. p
  23192. g
  23193. s/^[^!]*!//
  23194. :repl
  23195. t repl
  23196. s/'"$ac_delim"'$//
  23197. t delim
  23198. :nl
  23199. h
  23200. s/\(.\{148\}\)..*/\1/
  23201. t more1
  23202. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23203. p
  23204. n
  23205. b repl
  23206. :more1
  23207. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23208. p
  23209. g
  23210. s/.\{148\}//
  23211. t nl
  23212. :delim
  23213. h
  23214. s/\(.\{148\}\)..*/\1/
  23215. t more2
  23216. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23217. p
  23218. b
  23219. :more2
  23220. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23221. p
  23222. g
  23223. s/.\{148\}//
  23224. t delim
  23225. ' <conf$$subs.awk | sed '
  23226. /^[^""]/{
  23227. N
  23228. s/\n//
  23229. }
  23230. ' >>$CONFIG_STATUS || ac_write_fail=1
  23231. rm -f conf$$subs.awk
  23232. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23233. _ACAWK
  23234. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23235. for (key in S) S_is_set[key] = 1
  23236. FS = ""
  23237. }
  23238. {
  23239. line = $ 0
  23240. nfields = split(line, field, "@")
  23241. substed = 0
  23242. len = length(field[1])
  23243. for (i = 2; i < nfields; i++) {
  23244. key = field[i]
  23245. keylen = length(key)
  23246. if (S_is_set[key]) {
  23247. value = S[key]
  23248. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23249. len += length(value) + length(field[++i])
  23250. substed = 1
  23251. } else
  23252. len += 1 + keylen
  23253. }
  23254. print line
  23255. }
  23256. _ACAWK
  23257. _ACEOF
  23258. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23259. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23260. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23261. else
  23262. cat
  23263. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23264. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23265. _ACEOF
  23266. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23267. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23268. # trailing colons and then remove the whole line if VPATH becomes empty
  23269. # (actually we leave an empty line to preserve line numbers).
  23270. if test "x$srcdir" = x.; then
  23271. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23272. h
  23273. s///
  23274. s/^/:/
  23275. s/[ ]*$/:/
  23276. s/:\$(srcdir):/:/g
  23277. s/:\${srcdir}:/:/g
  23278. s/:@srcdir@:/:/g
  23279. s/^:*//
  23280. s/:*$//
  23281. x
  23282. s/\(=[ ]*\).*/\1/
  23283. G
  23284. s/\n//
  23285. s/^[^=]*=[ ]*$//
  23286. }'
  23287. fi
  23288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23289. fi # test -n "$CONFIG_FILES"
  23290. # Set up the scripts for CONFIG_HEADERS section.
  23291. # No need to generate them if there are no CONFIG_HEADERS.
  23292. # This happens for instance with `./config.status Makefile'.
  23293. if test -n "$CONFIG_HEADERS"; then
  23294. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23295. BEGIN {
  23296. _ACEOF
  23297. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23298. # here-document in config.status, that substitutes the proper values into
  23299. # config.h.in to produce config.h.
  23300. # Create a delimiter string that does not exist in confdefs.h, to ease
  23301. # handling of long lines.
  23302. ac_delim='%!_!# '
  23303. for ac_last_try in false false :; do
  23304. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23305. if test -z "$ac_tt"; then
  23306. break
  23307. elif $ac_last_try; then
  23308. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23309. else
  23310. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23311. fi
  23312. done
  23313. # For the awk script, D is an array of macro values keyed by name,
  23314. # likewise P contains macro parameters if any. Preserve backslash
  23315. # newline sequences.
  23316. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23317. sed -n '
  23318. s/.\{148\}/&'"$ac_delim"'/g
  23319. t rset
  23320. :rset
  23321. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23322. t def
  23323. d
  23324. :def
  23325. s/\\$//
  23326. t bsnl
  23327. s/["\\]/\\&/g
  23328. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23329. D["\1"]=" \3"/p
  23330. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23331. d
  23332. :bsnl
  23333. s/["\\]/\\&/g
  23334. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23335. D["\1"]=" \3\\\\\\n"\\/p
  23336. t cont
  23337. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23338. t cont
  23339. d
  23340. :cont
  23341. n
  23342. s/.\{148\}/&'"$ac_delim"'/g
  23343. t clear
  23344. :clear
  23345. s/\\$//
  23346. t bsnlc
  23347. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23348. d
  23349. :bsnlc
  23350. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23351. b cont
  23352. ' <confdefs.h | sed '
  23353. s/'"$ac_delim"'/"\\\
  23354. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23355. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23356. for (key in D) D_is_set[key] = 1
  23357. FS = ""
  23358. }
  23359. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23360. line = \$ 0
  23361. split(line, arg, " ")
  23362. if (arg[1] == "#") {
  23363. defundef = arg[2]
  23364. mac1 = arg[3]
  23365. } else {
  23366. defundef = substr(arg[1], 2)
  23367. mac1 = arg[2]
  23368. }
  23369. split(mac1, mac2, "(") #)
  23370. macro = mac2[1]
  23371. prefix = substr(line, 1, index(line, defundef) - 1)
  23372. if (D_is_set[macro]) {
  23373. # Preserve the white space surrounding the "#".
  23374. print prefix "define", macro P[macro] D[macro]
  23375. next
  23376. } else {
  23377. # Replace #undef with comments. This is necessary, for example,
  23378. # in the case of _POSIX_SOURCE, which is predefined and required
  23379. # on some systems where configure will not decide to define it.
  23380. if (defundef == "undef") {
  23381. print "/*", prefix defundef, macro, "*/"
  23382. next
  23383. }
  23384. }
  23385. }
  23386. { print }
  23387. _ACAWK
  23388. _ACEOF
  23389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23390. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23391. fi # test -n "$CONFIG_HEADERS"
  23392. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23393. shift
  23394. for ac_tag
  23395. do
  23396. case $ac_tag in
  23397. :[FHLC]) ac_mode=$ac_tag; continue;;
  23398. esac
  23399. case $ac_mode$ac_tag in
  23400. :[FHL]*:*);;
  23401. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23402. :[FH]-) ac_tag=-:-;;
  23403. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23404. esac
  23405. ac_save_IFS=$IFS
  23406. IFS=:
  23407. set x $ac_tag
  23408. IFS=$ac_save_IFS
  23409. shift
  23410. ac_file=$1
  23411. shift
  23412. case $ac_mode in
  23413. :L) ac_source=$1;;
  23414. :[FH])
  23415. ac_file_inputs=
  23416. for ac_f
  23417. do
  23418. case $ac_f in
  23419. -) ac_f="$ac_tmp/stdin";;
  23420. *) # Look for the file first in the build tree, then in the source tree
  23421. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23422. # because $ac_f cannot contain `:'.
  23423. test -f "$ac_f" ||
  23424. case $ac_f in
  23425. [\\/$]*) false;;
  23426. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23427. esac ||
  23428. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23429. esac
  23430. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23431. as_fn_append ac_file_inputs " '$ac_f'"
  23432. done
  23433. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23434. # use $as_me), people would be surprised to read:
  23435. # /* config.h. Generated by config.status. */
  23436. configure_input='Generated from '`
  23437. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23438. `' by configure.'
  23439. if test x"$ac_file" != x-; then
  23440. configure_input="$ac_file. $configure_input"
  23441. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23442. $as_echo "$as_me: creating $ac_file" >&6;}
  23443. fi
  23444. # Neutralize special characters interpreted by sed in replacement strings.
  23445. case $configure_input in #(
  23446. *\&* | *\|* | *\\* )
  23447. ac_sed_conf_input=`$as_echo "$configure_input" |
  23448. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23449. *) ac_sed_conf_input=$configure_input;;
  23450. esac
  23451. case $ac_tag in
  23452. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23453. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23454. esac
  23455. ;;
  23456. esac
  23457. ac_dir=`$as_dirname -- "$ac_file" ||
  23458. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23459. X"$ac_file" : 'X\(//\)[^/]' \| \
  23460. X"$ac_file" : 'X\(//\)$' \| \
  23461. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23462. $as_echo X"$ac_file" |
  23463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23464. s//\1/
  23465. q
  23466. }
  23467. /^X\(\/\/\)[^/].*/{
  23468. s//\1/
  23469. q
  23470. }
  23471. /^X\(\/\/\)$/{
  23472. s//\1/
  23473. q
  23474. }
  23475. /^X\(\/\).*/{
  23476. s//\1/
  23477. q
  23478. }
  23479. s/.*/./; q'`
  23480. as_dir="$ac_dir"; as_fn_mkdir_p
  23481. ac_builddir=.
  23482. case "$ac_dir" in
  23483. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23484. *)
  23485. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23486. # A ".." for each directory in $ac_dir_suffix.
  23487. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23488. case $ac_top_builddir_sub in
  23489. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23490. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23491. esac ;;
  23492. esac
  23493. ac_abs_top_builddir=$ac_pwd
  23494. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23495. # for backward compatibility:
  23496. ac_top_builddir=$ac_top_build_prefix
  23497. case $srcdir in
  23498. .) # We are building in place.
  23499. ac_srcdir=.
  23500. ac_top_srcdir=$ac_top_builddir_sub
  23501. ac_abs_top_srcdir=$ac_pwd ;;
  23502. [\\/]* | ?:[\\/]* ) # Absolute name.
  23503. ac_srcdir=$srcdir$ac_dir_suffix;
  23504. ac_top_srcdir=$srcdir
  23505. ac_abs_top_srcdir=$srcdir ;;
  23506. *) # Relative name.
  23507. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23508. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23509. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23510. esac
  23511. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23512. case $ac_mode in
  23513. :F)
  23514. #
  23515. # CONFIG_FILE
  23516. #
  23517. case $INSTALL in
  23518. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23519. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23520. esac
  23521. ac_MKDIR_P=$MKDIR_P
  23522. case $MKDIR_P in
  23523. [\\/$]* | ?:[\\/]* ) ;;
  23524. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23525. esac
  23526. _ACEOF
  23527. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23528. # If the template does not know about datarootdir, expand it.
  23529. # FIXME: This hack should be removed a few years after 2.60.
  23530. ac_datarootdir_hack=; ac_datarootdir_seen=
  23531. ac_sed_dataroot='
  23532. /datarootdir/ {
  23533. p
  23534. q
  23535. }
  23536. /@datadir@/p
  23537. /@docdir@/p
  23538. /@infodir@/p
  23539. /@localedir@/p
  23540. /@mandir@/p'
  23541. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23542. *datarootdir*) ac_datarootdir_seen=yes;;
  23543. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23545. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23546. _ACEOF
  23547. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23548. ac_datarootdir_hack='
  23549. s&@datadir@&$datadir&g
  23550. s&@docdir@&$docdir&g
  23551. s&@infodir@&$infodir&g
  23552. s&@localedir@&$localedir&g
  23553. s&@mandir@&$mandir&g
  23554. s&\\\${datarootdir}&$datarootdir&g' ;;
  23555. esac
  23556. _ACEOF
  23557. # Neutralize VPATH when `$srcdir' = `.'.
  23558. # Shell code in configure.ac might set extrasub.
  23559. # FIXME: do we really want to maintain this feature?
  23560. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23561. ac_sed_extra="$ac_vpsub
  23562. $extrasub
  23563. _ACEOF
  23564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23565. :t
  23566. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23567. s|@configure_input@|$ac_sed_conf_input|;t t
  23568. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23569. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23570. s&@srcdir@&$ac_srcdir&;t t
  23571. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23572. s&@top_srcdir@&$ac_top_srcdir&;t t
  23573. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23574. s&@builddir@&$ac_builddir&;t t
  23575. s&@abs_builddir@&$ac_abs_builddir&;t t
  23576. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23577. s&@INSTALL@&$ac_INSTALL&;t t
  23578. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23579. $ac_datarootdir_hack
  23580. "
  23581. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23582. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23583. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23584. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23585. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23586. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23588. which seems to be undefined. Please make sure it is defined" >&5
  23589. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23590. which seems to be undefined. Please make sure it is defined" >&2;}
  23591. rm -f "$ac_tmp/stdin"
  23592. case $ac_file in
  23593. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23594. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23595. esac \
  23596. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23597. ;;
  23598. :H)
  23599. #
  23600. # CONFIG_HEADER
  23601. #
  23602. if test x"$ac_file" != x-; then
  23603. {
  23604. $as_echo "/* $configure_input */" \
  23605. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23606. } >"$ac_tmp/config.h" \
  23607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23608. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23609. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23610. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23611. else
  23612. rm -f "$ac_file"
  23613. mv "$ac_tmp/config.h" "$ac_file" \
  23614. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23615. fi
  23616. else
  23617. $as_echo "/* $configure_input */" \
  23618. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23619. || as_fn_error $? "could not create -" "$LINENO" 5
  23620. fi
  23621. # Compute "$ac_file"'s index in $config_headers.
  23622. _am_arg="$ac_file"
  23623. _am_stamp_count=1
  23624. for _am_header in $config_headers :; do
  23625. case $_am_header in
  23626. $_am_arg | $_am_arg:* )
  23627. break ;;
  23628. * )
  23629. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23630. esac
  23631. done
  23632. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23633. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23634. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23635. X"$_am_arg" : 'X\(//\)$' \| \
  23636. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23637. $as_echo X"$_am_arg" |
  23638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23639. s//\1/
  23640. q
  23641. }
  23642. /^X\(\/\/\)[^/].*/{
  23643. s//\1/
  23644. q
  23645. }
  23646. /^X\(\/\/\)$/{
  23647. s//\1/
  23648. q
  23649. }
  23650. /^X\(\/\).*/{
  23651. s//\1/
  23652. q
  23653. }
  23654. s/.*/./; q'`/stamp-h$_am_stamp_count
  23655. ;;
  23656. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23657. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23658. ;;
  23659. esac
  23660. case $ac_file$ac_mode in
  23661. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23662. # Older Autoconf quotes --file arguments for eval, but not when files
  23663. # are listed without --file. Let's play safe and only enable the eval
  23664. # if we detect the quoting.
  23665. # TODO: see whether this extra hack can be removed once we start
  23666. # requiring Autoconf 2.70 or later.
  23667. case $CONFIG_FILES in #(
  23668. *\'*) :
  23669. eval set x "$CONFIG_FILES" ;; #(
  23670. *) :
  23671. set x $CONFIG_FILES ;; #(
  23672. *) :
  23673. ;;
  23674. esac
  23675. shift
  23676. # Used to flag and report bootstrapping failures.
  23677. am_rc=0
  23678. for am_mf
  23679. do
  23680. # Strip MF so we end up with the name of the file.
  23681. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  23682. # Check whether this is an Automake generated Makefile which includes
  23683. # dependency-tracking related rules and includes.
  23684. # Grep'ing the whole file directly is not great: AIX grep has a line
  23685. # limit of 2048, but all sed's we know have understand at least 4000.
  23686. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  23687. || continue
  23688. am_dirpart=`$as_dirname -- "$am_mf" ||
  23689. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23690. X"$am_mf" : 'X\(//\)[^/]' \| \
  23691. X"$am_mf" : 'X\(//\)$' \| \
  23692. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23693. $as_echo X"$am_mf" |
  23694. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23695. s//\1/
  23696. q
  23697. }
  23698. /^X\(\/\/\)[^/].*/{
  23699. s//\1/
  23700. q
  23701. }
  23702. /^X\(\/\/\)$/{
  23703. s//\1/
  23704. q
  23705. }
  23706. /^X\(\/\).*/{
  23707. s//\1/
  23708. q
  23709. }
  23710. s/.*/./; q'`
  23711. am_filepart=`$as_basename -- "$am_mf" ||
  23712. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  23713. X"$am_mf" : 'X\(//\)$' \| \
  23714. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23715. $as_echo X/"$am_mf" |
  23716. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23717. s//\1/
  23718. q
  23719. }
  23720. /^X\/\(\/\/\)$/{
  23721. s//\1/
  23722. q
  23723. }
  23724. /^X\/\(\/\).*/{
  23725. s//\1/
  23726. q
  23727. }
  23728. s/.*/./; q'`
  23729. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  23730. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23731. | $MAKE -f - am--depfiles" >&5
  23732. (cd "$am_dirpart" \
  23733. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23734. | $MAKE -f - am--depfiles) >&5 2>&5
  23735. ac_status=$?
  23736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23737. (exit $ac_status); } || am_rc=$?
  23738. done
  23739. if test $am_rc -ne 0; then
  23740. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23742. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  23743. for automatic dependency tracking. If GNU make was not used, consider
  23744. re-running the configure script with MAKE=\"gmake\" (or whatever is
  23745. necessary). You can also try re-running configure with the
  23746. '--disable-dependency-tracking' option to at least be able to build
  23747. the package (albeit without support for automatic dependency tracking).
  23748. See \`config.log' for more details" "$LINENO" 5; }
  23749. fi
  23750. { am_dirpart=; unset am_dirpart;}
  23751. { am_filepart=; unset am_filepart;}
  23752. { am_mf=; unset am_mf;}
  23753. { am_rc=; unset am_rc;}
  23754. rm -f conftest-deps.mk
  23755. }
  23756. ;;
  23757. "libtool":C)
  23758. # See if we are running on zsh, and set the options that allow our
  23759. # commands through without removal of \ escapes.
  23760. if test -n "${ZSH_VERSION+set}"; then
  23761. setopt NO_GLOB_SUBST
  23762. fi
  23763. cfgfile=${ofile}T
  23764. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23765. $RM "$cfgfile"
  23766. cat <<_LT_EOF >> "$cfgfile"
  23767. #! $SHELL
  23768. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23769. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23770. # Provide generalized library-building support services.
  23771. # Written by Gordon Matzigkeit, 1996
  23772. # Copyright (C) 2014 Free Software Foundation, Inc.
  23773. # This is free software; see the source for copying conditions. There is NO
  23774. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23775. # GNU Libtool is free software; you can redistribute it and/or modify
  23776. # it under the terms of the GNU General Public License as published by
  23777. # the Free Software Foundation; either version 2 of of the License, or
  23778. # (at your option) any later version.
  23779. #
  23780. # As a special exception to the GNU General Public License, if you
  23781. # distribute this file as part of a program or library that is built
  23782. # using GNU Libtool, you may include this file under the same
  23783. # distribution terms that you use for the rest of that program.
  23784. #
  23785. # GNU Libtool is distributed in the hope that it will be useful, but
  23786. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23787. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23788. # GNU General Public License for more details.
  23789. #
  23790. # You should have received a copy of the GNU General Public License
  23791. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23792. # The names of the tagged configurations supported by this script.
  23793. available_tags='CXX '
  23794. # Configured defaults for sys_lib_dlsearch_path munging.
  23795. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23796. # ### BEGIN LIBTOOL CONFIG
  23797. # Which release of libtool.m4 was used?
  23798. macro_version=$macro_version
  23799. macro_revision=$macro_revision
  23800. # Whether or not to build shared libraries.
  23801. build_libtool_libs=$enable_shared
  23802. # Whether or not to build static libraries.
  23803. build_old_libs=$enable_static
  23804. # What type of objects to build.
  23805. pic_mode=$pic_mode
  23806. # Whether or not to optimize for fast installation.
  23807. fast_install=$enable_fast_install
  23808. # Shared archive member basename,for filename based shared library versioning on AIX.
  23809. shared_archive_member_spec=$shared_archive_member_spec
  23810. # Shell to use when invoking shell scripts.
  23811. SHELL=$lt_SHELL
  23812. # An echo program that protects backslashes.
  23813. ECHO=$lt_ECHO
  23814. # The PATH separator for the build system.
  23815. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23816. # The host system.
  23817. host_alias=$host_alias
  23818. host=$host
  23819. host_os=$host_os
  23820. # The build system.
  23821. build_alias=$build_alias
  23822. build=$build
  23823. build_os=$build_os
  23824. # A sed program that does not truncate output.
  23825. SED=$lt_SED
  23826. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23827. Xsed="\$SED -e 1s/^X//"
  23828. # A grep program that handles long lines.
  23829. GREP=$lt_GREP
  23830. # An ERE matcher.
  23831. EGREP=$lt_EGREP
  23832. # A literal string matcher.
  23833. FGREP=$lt_FGREP
  23834. # A BSD- or MS-compatible name lister.
  23835. NM=$lt_NM
  23836. # Whether we need soft or hard links.
  23837. LN_S=$lt_LN_S
  23838. # What is the maximum length of a command?
  23839. max_cmd_len=$max_cmd_len
  23840. # Object file suffix (normally "o").
  23841. objext=$ac_objext
  23842. # Executable file suffix (normally "").
  23843. exeext=$exeext
  23844. # whether the shell understands "unset".
  23845. lt_unset=$lt_unset
  23846. # turn spaces into newlines.
  23847. SP2NL=$lt_lt_SP2NL
  23848. # turn newlines into spaces.
  23849. NL2SP=$lt_lt_NL2SP
  23850. # convert \$build file names to \$host format.
  23851. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23852. # convert \$build files to toolchain format.
  23853. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23854. # An object symbol dumper.
  23855. OBJDUMP=$lt_OBJDUMP
  23856. # Method to check whether dependent libraries are shared objects.
  23857. deplibs_check_method=$lt_deplibs_check_method
  23858. # Command to use when deplibs_check_method = "file_magic".
  23859. file_magic_cmd=$lt_file_magic_cmd
  23860. # How to find potential files when deplibs_check_method = "file_magic".
  23861. file_magic_glob=$lt_file_magic_glob
  23862. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23863. want_nocaseglob=$lt_want_nocaseglob
  23864. # DLL creation program.
  23865. DLLTOOL=$lt_DLLTOOL
  23866. # Command to associate shared and link libraries.
  23867. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23868. # The archiver.
  23869. AR=$lt_AR
  23870. # Flags to create an archive.
  23871. AR_FLAGS=$lt_AR_FLAGS
  23872. # How to feed a file listing to the archiver.
  23873. archiver_list_spec=$lt_archiver_list_spec
  23874. # A symbol stripping program.
  23875. STRIP=$lt_STRIP
  23876. # Commands used to install an old-style archive.
  23877. RANLIB=$lt_RANLIB
  23878. old_postinstall_cmds=$lt_old_postinstall_cmds
  23879. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23880. # Whether to use a lock for old archive extraction.
  23881. lock_old_archive_extraction=$lock_old_archive_extraction
  23882. # A C compiler.
  23883. LTCC=$lt_CC
  23884. # LTCC compiler flags.
  23885. LTCFLAGS=$lt_CFLAGS
  23886. # Take the output of nm and produce a listing of raw symbols and C names.
  23887. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23888. # Transform the output of nm in a proper C declaration.
  23889. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23890. # Transform the output of nm into a list of symbols to manually relocate.
  23891. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23892. # Transform the output of nm in a C name address pair.
  23893. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23894. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23895. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23896. # The name lister interface.
  23897. nm_interface=$lt_lt_cv_nm_interface
  23898. # Specify filename containing input files for \$NM.
  23899. nm_file_list_spec=$lt_nm_file_list_spec
  23900. # The root where to search for dependent libraries,and where our libraries should be installed.
  23901. lt_sysroot=$lt_sysroot
  23902. # Command to truncate a binary pipe.
  23903. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23904. # The name of the directory that contains temporary libtool files.
  23905. objdir=$objdir
  23906. # Used to examine libraries when file_magic_cmd begins with "file".
  23907. MAGIC_CMD=$MAGIC_CMD
  23908. # Must we lock files when doing compilation?
  23909. need_locks=$lt_need_locks
  23910. # Manifest tool.
  23911. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23912. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23913. DSYMUTIL=$lt_DSYMUTIL
  23914. # Tool to change global to local symbols on Mac OS X.
  23915. NMEDIT=$lt_NMEDIT
  23916. # Tool to manipulate fat objects and archives on Mac OS X.
  23917. LIPO=$lt_LIPO
  23918. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23919. OTOOL=$lt_OTOOL
  23920. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23921. OTOOL64=$lt_OTOOL64
  23922. # Old archive suffix (normally "a").
  23923. libext=$libext
  23924. # Shared library suffix (normally ".so").
  23925. shrext_cmds=$lt_shrext_cmds
  23926. # The commands to extract the exported symbol list from a shared archive.
  23927. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23928. # Variables whose values should be saved in libtool wrapper scripts and
  23929. # restored at link time.
  23930. variables_saved_for_relink=$lt_variables_saved_for_relink
  23931. # Do we need the "lib" prefix for modules?
  23932. need_lib_prefix=$need_lib_prefix
  23933. # Do we need a version for libraries?
  23934. need_version=$need_version
  23935. # Library versioning type.
  23936. version_type=$version_type
  23937. # Shared library runtime path variable.
  23938. runpath_var=$runpath_var
  23939. # Shared library path variable.
  23940. shlibpath_var=$shlibpath_var
  23941. # Is shlibpath searched before the hard-coded library search path?
  23942. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23943. # Format of library name prefix.
  23944. libname_spec=$lt_libname_spec
  23945. # List of archive names. First name is the real one, the rest are links.
  23946. # The last name is the one that the linker finds with -lNAME
  23947. library_names_spec=$lt_library_names_spec
  23948. # The coded name of the library, if different from the real name.
  23949. soname_spec=$lt_soname_spec
  23950. # Permission mode override for installation of shared libraries.
  23951. install_override_mode=$lt_install_override_mode
  23952. # Command to use after installation of a shared archive.
  23953. postinstall_cmds=$lt_postinstall_cmds
  23954. # Command to use after uninstallation of a shared archive.
  23955. postuninstall_cmds=$lt_postuninstall_cmds
  23956. # Commands used to finish a libtool library installation in a directory.
  23957. finish_cmds=$lt_finish_cmds
  23958. # As "finish_cmds", except a single script fragment to be evaled but
  23959. # not shown.
  23960. finish_eval=$lt_finish_eval
  23961. # Whether we should hardcode library paths into libraries.
  23962. hardcode_into_libs=$hardcode_into_libs
  23963. # Compile-time system search path for libraries.
  23964. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23965. # Detected run-time system search path for libraries.
  23966. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23967. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23968. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23969. # Whether dlopen is supported.
  23970. dlopen_support=$enable_dlopen
  23971. # Whether dlopen of programs is supported.
  23972. dlopen_self=$enable_dlopen_self
  23973. # Whether dlopen of statically linked programs is supported.
  23974. dlopen_self_static=$enable_dlopen_self_static
  23975. # Commands to strip libraries.
  23976. old_striplib=$lt_old_striplib
  23977. striplib=$lt_striplib
  23978. # The linker used to build libraries.
  23979. LD=$lt_LD
  23980. # How to create reloadable object files.
  23981. reload_flag=$lt_reload_flag
  23982. reload_cmds=$lt_reload_cmds
  23983. # Commands used to build an old-style archive.
  23984. old_archive_cmds=$lt_old_archive_cmds
  23985. # A language specific compiler.
  23986. CC=$lt_compiler
  23987. # Is the compiler the GNU compiler?
  23988. with_gcc=$GCC
  23989. # Compiler flag to turn off builtin functions.
  23990. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23991. # Additional compiler flags for building library objects.
  23992. pic_flag=$lt_lt_prog_compiler_pic
  23993. # How to pass a linker flag through the compiler.
  23994. wl=$lt_lt_prog_compiler_wl
  23995. # Compiler flag to prevent dynamic linking.
  23996. link_static_flag=$lt_lt_prog_compiler_static
  23997. # Does compiler simultaneously support -c and -o options?
  23998. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23999. # Whether or not to add -lc for building shared libraries.
  24000. build_libtool_need_lc=$archive_cmds_need_lc
  24001. # Whether or not to disallow shared libs when runtime libs are static.
  24002. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24003. # Compiler flag to allow reflexive dlopens.
  24004. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24005. # Compiler flag to generate shared objects directly from archives.
  24006. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24007. # Whether the compiler copes with passing no objects directly.
  24008. compiler_needs_object=$lt_compiler_needs_object
  24009. # Create an old-style archive from a shared archive.
  24010. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24011. # Create a temporary old-style archive to link instead of a shared archive.
  24012. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24013. # Commands used to build a shared archive.
  24014. archive_cmds=$lt_archive_cmds
  24015. archive_expsym_cmds=$lt_archive_expsym_cmds
  24016. # Commands used to build a loadable module if different from building
  24017. # a shared archive.
  24018. module_cmds=$lt_module_cmds
  24019. module_expsym_cmds=$lt_module_expsym_cmds
  24020. # Whether we are building with GNU ld or not.
  24021. with_gnu_ld=$lt_with_gnu_ld
  24022. # Flag that allows shared libraries with undefined symbols to be built.
  24023. allow_undefined_flag=$lt_allow_undefined_flag
  24024. # Flag that enforces no undefined symbols.
  24025. no_undefined_flag=$lt_no_undefined_flag
  24026. # Flag to hardcode \$libdir into a binary during linking.
  24027. # This must work even if \$libdir does not exist
  24028. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24029. # Whether we need a single "-rpath" flag with a separated argument.
  24030. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24031. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24032. # DIR into the resulting binary.
  24033. hardcode_direct=$hardcode_direct
  24034. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24035. # DIR into the resulting binary and the resulting library dependency is
  24036. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24037. # library is relocated.
  24038. hardcode_direct_absolute=$hardcode_direct_absolute
  24039. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24040. # into the resulting binary.
  24041. hardcode_minus_L=$hardcode_minus_L
  24042. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24043. # into the resulting binary.
  24044. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24045. # Set to "yes" if building a shared library automatically hardcodes DIR
  24046. # into the library and all subsequent libraries and executables linked
  24047. # against it.
  24048. hardcode_automatic=$hardcode_automatic
  24049. # Set to yes if linker adds runtime paths of dependent libraries
  24050. # to runtime path list.
  24051. inherit_rpath=$inherit_rpath
  24052. # Whether libtool must link a program against all its dependency libraries.
  24053. link_all_deplibs=$link_all_deplibs
  24054. # Set to "yes" if exported symbols are required.
  24055. always_export_symbols=$always_export_symbols
  24056. # The commands to list exported symbols.
  24057. export_symbols_cmds=$lt_export_symbols_cmds
  24058. # Symbols that should not be listed in the preloaded symbols.
  24059. exclude_expsyms=$lt_exclude_expsyms
  24060. # Symbols that must always be exported.
  24061. include_expsyms=$lt_include_expsyms
  24062. # Commands necessary for linking programs (against libraries) with templates.
  24063. prelink_cmds=$lt_prelink_cmds
  24064. # Commands necessary for finishing linking programs.
  24065. postlink_cmds=$lt_postlink_cmds
  24066. # Specify filename containing input files.
  24067. file_list_spec=$lt_file_list_spec
  24068. # How to hardcode a shared library path into an executable.
  24069. hardcode_action=$hardcode_action
  24070. # The directories searched by this compiler when creating a shared library.
  24071. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24072. # Dependencies to place before and after the objects being linked to
  24073. # create a shared library.
  24074. predep_objects=$lt_predep_objects
  24075. postdep_objects=$lt_postdep_objects
  24076. predeps=$lt_predeps
  24077. postdeps=$lt_postdeps
  24078. # The library search path used internally by the compiler when linking
  24079. # a shared library.
  24080. compiler_lib_search_path=$lt_compiler_lib_search_path
  24081. # ### END LIBTOOL CONFIG
  24082. _LT_EOF
  24083. cat <<'_LT_EOF' >> "$cfgfile"
  24084. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  24085. # func_munge_path_list VARIABLE PATH
  24086. # -----------------------------------
  24087. # VARIABLE is name of variable containing _space_ separated list of
  24088. # directories to be munged by the contents of PATH, which is string
  24089. # having a format:
  24090. # "DIR[:DIR]:"
  24091. # string "DIR[ DIR]" will be prepended to VARIABLE
  24092. # ":DIR[:DIR]"
  24093. # string "DIR[ DIR]" will be appended to VARIABLE
  24094. # "DIRP[:DIRP]::[DIRA:]DIRA"
  24095. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  24096. # "DIRA[ DIRA]" will be appended to VARIABLE
  24097. # "DIR[:DIR]"
  24098. # VARIABLE will be replaced by "DIR[ DIR]"
  24099. func_munge_path_list ()
  24100. {
  24101. case x$2 in
  24102. x)
  24103. ;;
  24104. *:)
  24105. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  24106. ;;
  24107. x:*)
  24108. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  24109. ;;
  24110. *::*)
  24111. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  24112. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  24113. ;;
  24114. *)
  24115. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  24116. ;;
  24117. esac
  24118. }
  24119. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  24120. func_cc_basename ()
  24121. {
  24122. for cc_temp in $*""; do
  24123. case $cc_temp in
  24124. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  24125. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  24126. \-*) ;;
  24127. *) break;;
  24128. esac
  24129. done
  24130. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  24131. }
  24132. # ### END FUNCTIONS SHARED WITH CONFIGURE
  24133. _LT_EOF
  24134. case $host_os in
  24135. aix3*)
  24136. cat <<\_LT_EOF >> "$cfgfile"
  24137. # AIX sometimes has problems with the GCC collect2 program. For some
  24138. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24139. # vanish in a puff of smoke.
  24140. if test set != "${COLLECT_NAMES+set}"; then
  24141. COLLECT_NAMES=
  24142. export COLLECT_NAMES
  24143. fi
  24144. _LT_EOF
  24145. ;;
  24146. esac
  24147. ltmain=$ac_aux_dir/ltmain.sh
  24148. # We use sed instead of cat because bash on DJGPP gets confused if
  24149. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24150. # text mode, it properly converts lines to CR/LF. This bash problem
  24151. # is reportedly fixed, but why not run on old versions too?
  24152. sed '$q' "$ltmain" >> "$cfgfile" \
  24153. || (rm -f "$cfgfile"; exit 1)
  24154. mv -f "$cfgfile" "$ofile" ||
  24155. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24156. chmod +x "$ofile"
  24157. cat <<_LT_EOF >> "$ofile"
  24158. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24159. # The linker used to build libraries.
  24160. LD=$lt_LD_CXX
  24161. # How to create reloadable object files.
  24162. reload_flag=$lt_reload_flag_CXX
  24163. reload_cmds=$lt_reload_cmds_CXX
  24164. # Commands used to build an old-style archive.
  24165. old_archive_cmds=$lt_old_archive_cmds_CXX
  24166. # A language specific compiler.
  24167. CC=$lt_compiler_CXX
  24168. # Is the compiler the GNU compiler?
  24169. with_gcc=$GCC_CXX
  24170. # Compiler flag to turn off builtin functions.
  24171. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24172. # Additional compiler flags for building library objects.
  24173. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24174. # How to pass a linker flag through the compiler.
  24175. wl=$lt_lt_prog_compiler_wl_CXX
  24176. # Compiler flag to prevent dynamic linking.
  24177. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24178. # Does compiler simultaneously support -c and -o options?
  24179. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24180. # Whether or not to add -lc for building shared libraries.
  24181. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24182. # Whether or not to disallow shared libs when runtime libs are static.
  24183. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24184. # Compiler flag to allow reflexive dlopens.
  24185. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24186. # Compiler flag to generate shared objects directly from archives.
  24187. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24188. # Whether the compiler copes with passing no objects directly.
  24189. compiler_needs_object=$lt_compiler_needs_object_CXX
  24190. # Create an old-style archive from a shared archive.
  24191. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24192. # Create a temporary old-style archive to link instead of a shared archive.
  24193. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24194. # Commands used to build a shared archive.
  24195. archive_cmds=$lt_archive_cmds_CXX
  24196. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24197. # Commands used to build a loadable module if different from building
  24198. # a shared archive.
  24199. module_cmds=$lt_module_cmds_CXX
  24200. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24201. # Whether we are building with GNU ld or not.
  24202. with_gnu_ld=$lt_with_gnu_ld_CXX
  24203. # Flag that allows shared libraries with undefined symbols to be built.
  24204. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24205. # Flag that enforces no undefined symbols.
  24206. no_undefined_flag=$lt_no_undefined_flag_CXX
  24207. # Flag to hardcode \$libdir into a binary during linking.
  24208. # This must work even if \$libdir does not exist
  24209. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24210. # Whether we need a single "-rpath" flag with a separated argument.
  24211. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24212. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24213. # DIR into the resulting binary.
  24214. hardcode_direct=$hardcode_direct_CXX
  24215. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  24216. # DIR into the resulting binary and the resulting library dependency is
  24217. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  24218. # library is relocated.
  24219. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24220. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24221. # into the resulting binary.
  24222. hardcode_minus_L=$hardcode_minus_L_CXX
  24223. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24224. # into the resulting binary.
  24225. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24226. # Set to "yes" if building a shared library automatically hardcodes DIR
  24227. # into the library and all subsequent libraries and executables linked
  24228. # against it.
  24229. hardcode_automatic=$hardcode_automatic_CXX
  24230. # Set to yes if linker adds runtime paths of dependent libraries
  24231. # to runtime path list.
  24232. inherit_rpath=$inherit_rpath_CXX
  24233. # Whether libtool must link a program against all its dependency libraries.
  24234. link_all_deplibs=$link_all_deplibs_CXX
  24235. # Set to "yes" if exported symbols are required.
  24236. always_export_symbols=$always_export_symbols_CXX
  24237. # The commands to list exported symbols.
  24238. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24239. # Symbols that should not be listed in the preloaded symbols.
  24240. exclude_expsyms=$lt_exclude_expsyms_CXX
  24241. # Symbols that must always be exported.
  24242. include_expsyms=$lt_include_expsyms_CXX
  24243. # Commands necessary for linking programs (against libraries) with templates.
  24244. prelink_cmds=$lt_prelink_cmds_CXX
  24245. # Commands necessary for finishing linking programs.
  24246. postlink_cmds=$lt_postlink_cmds_CXX
  24247. # Specify filename containing input files.
  24248. file_list_spec=$lt_file_list_spec_CXX
  24249. # How to hardcode a shared library path into an executable.
  24250. hardcode_action=$hardcode_action_CXX
  24251. # The directories searched by this compiler when creating a shared library.
  24252. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24253. # Dependencies to place before and after the objects being linked to
  24254. # create a shared library.
  24255. predep_objects=$lt_predep_objects_CXX
  24256. postdep_objects=$lt_postdep_objects_CXX
  24257. predeps=$lt_predeps_CXX
  24258. postdeps=$lt_postdeps_CXX
  24259. # The library search path used internally by the compiler when linking
  24260. # a shared library.
  24261. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24262. # ### END LIBTOOL TAG CONFIG: CXX
  24263. _LT_EOF
  24264. ;;
  24265. esac
  24266. done # for ac_tag
  24267. as_fn_exit 0
  24268. _ACEOF
  24269. ac_clean_files=$ac_clean_files_save
  24270. test $ac_write_fail = 0 ||
  24271. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24272. # configure is writing to config.log, and then calls config.status.
  24273. # config.status does its own redirection, appending to config.log.
  24274. # Unfortunately, on DOS this fails, as config.log is still kept open
  24275. # by configure, so config.status won't be able to write to it; its
  24276. # output is simply discarded. So we exec the FD to /dev/null,
  24277. # effectively closing config.log, so it can be properly (re)opened and
  24278. # appended to by config.status. When coming back to configure, we
  24279. # need to make the FD available again.
  24280. if test "$no_create" != yes; then
  24281. ac_cs_success=:
  24282. ac_config_status_args=
  24283. test "$silent" = yes &&
  24284. ac_config_status_args="$ac_config_status_args --quiet"
  24285. exec 5>/dev/null
  24286. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24287. exec 5>>config.log
  24288. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24289. # would make configure fail if this is the last instruction.
  24290. $ac_cs_success || as_fn_exit 1
  24291. fi
  24292. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24294. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24295. fi
  24296. # Configuration results
  24297. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  24298. ##########################################################################
  24299. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24300. ##########################################################################
  24301. libpcap: ${foundpcap} (${libpcap_version})
  24302. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24303. libdnet: ${founddnet} ${libdnet_version}
  24304. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24305. Use libopts tearoff: ${enable_local_libopts}
  24306. 64bit counter support: ${use64bit_counters}
  24307. tcpdump binary path: ${tcpdump_path}
  24308. fragroute support: ${enable_fragroute}
  24309. tcpbridge support: ${enable_tcpbridge}
  24310. tcpliveplay support: ${enable_tcpliveplay}
  24311. Supported Packet Injection Methods (*):
  24312. Linux TX_RING: ${have_tx_ring}
  24313. Linux PF_PACKET: ${have_pf}
  24314. BSD BPF: ${have_bpf}
  24315. libdnet: ${have_libdnet}
  24316. pcap_inject: ${have_pcap_inject}
  24317. pcap_sendpacket: ${have_pcap_sendpacket} **
  24318. pcap_netmap ${have_pcap_netmap}
  24319. Linux/BSD netmap: ${have_netmap}
  24320. Tuntap device support: ${have_tuntap}
  24321. LIBXDP for AF_XDP socket: ${have_libxdp}
  24322. * In order of preference; see configure --help to override
  24323. ** Required for tcpbridge
  24324. " >&5
  24325. $as_echo "
  24326. ##########################################################################
  24327. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  24328. ##########################################################################
  24329. libpcap: ${foundpcap} (${libpcap_version})
  24330. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  24331. libdnet: ${founddnet} ${libdnet_version}
  24332. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  24333. Use libopts tearoff: ${enable_local_libopts}
  24334. 64bit counter support: ${use64bit_counters}
  24335. tcpdump binary path: ${tcpdump_path}
  24336. fragroute support: ${enable_fragroute}
  24337. tcpbridge support: ${enable_tcpbridge}
  24338. tcpliveplay support: ${enable_tcpliveplay}
  24339. Supported Packet Injection Methods (*):
  24340. Linux TX_RING: ${have_tx_ring}
  24341. Linux PF_PACKET: ${have_pf}
  24342. BSD BPF: ${have_bpf}
  24343. libdnet: ${have_libdnet}
  24344. pcap_inject: ${have_pcap_inject}
  24345. pcap_sendpacket: ${have_pcap_sendpacket} **
  24346. pcap_netmap ${have_pcap_netmap}
  24347. Linux/BSD netmap: ${have_netmap}
  24348. Tuntap device support: ${have_tuntap}
  24349. LIBXDP for AF_XDP socket: ${have_libxdp}
  24350. * In order of preference; see configure --help to override
  24351. ** Required for tcpbridge
  24352. " >&6; }
  24353. case $host in
  24354. *-*-cygwin)
  24355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  24356. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  24357. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  24358. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  24359. ;;
  24360. esac