configure 819 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tcpreplay 4.4.4.
  4. #
  5. # Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/appneta/tcpreplay/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tcpreplay'
  542. PACKAGE_TARNAME='tcpreplay'
  543. PACKAGE_VERSION='4.4.4'
  544. PACKAGE_STRING='tcpreplay 4.4.4'
  545. PACKAGE_BUGREPORT='https://github.com/appneta/tcpreplay/issues'
  546. PACKAGE_URL='http://tcpreplay.sourceforge.net/'
  547. ac_unique_file="src/tcpreplay.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_header_list=
  584. ac_func_list=
  585. ac_subst_vars='am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOPTS_DIR
  589. LIBOPTS_CFLAGS
  590. LIBOPTS_LDADD
  591. NEED_LIBOPTS_FALSE
  592. NEED_LIBOPTS_TRUE
  593. INSTALL_LIBOPTS_FALSE
  594. INSTALL_LIBOPTS_TRUE
  595. POSIX_SHELL
  596. GL_GENERATE_STDNORETURN_H_FALSE
  597. GL_GENERATE_STDNORETURN_H_TRUE
  598. STDNORETURN_H
  599. nic2
  600. nic1
  601. ENABLE_OSX_FRAMEWORKS_FALSE
  602. ENABLE_OSX_FRAMEWORKS_TRUE
  603. ENABLE_TCPDUMP_FALSE
  604. ENABLE_TCPDUMP_TRUE
  605. tcpdump_path
  606. LNAV_CFLAGS
  607. LNAVLIB
  608. pcncfg
  609. PCAP_BPF_H_FILE
  610. COMPILE_FRAGROUTE_FALSE
  611. COMPILE_FRAGROUTE_TRUE
  612. LDNETLIB
  613. LDNETINC
  614. COMPILE_NETMAP_FALSE
  615. COMPILE_NETMAP_TRUE
  616. NETMAPFLAGS
  617. NETMAPINCDIR
  618. NETMAPUSERINC
  619. NETMAPINC
  620. COMPILE_TCPLIVEPLAY_FALSE
  621. COMPILE_TCPLIVEPLAY_TRUE
  622. COMPILE_TCPBRIDGE_FALSE
  623. COMPILE_TCPBRIDGE_TRUE
  624. LPCAPLIB
  625. LPCAPINC
  626. PCAP_CONFIG
  627. DMALLOC_LIB
  628. timestamp_trace_flag
  629. extra_debug_flag
  630. debug_run_time_flag
  631. debug_flag
  632. build_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_inject
  813. enable_force_sendpacket
  814. enable_static_link
  815. enable_dynamic_link
  816. enable_tuntap
  817. with_libpcap
  818. with_netmap
  819. with_libdnet
  820. with_pcapnav_config
  821. with_tcpdump
  822. with_testnic
  823. with_testnic2
  824. enable_nls
  825. enable_local_libopts
  826. enable_libopts_install
  827. with_autoopts_config
  828. with_regex_header
  829. with_libregex
  830. with_libregex_cflags
  831. with_libregex_libs
  832. enable_optional_args
  833. '
  834. ac_precious_vars='build_alias
  835. host_alias
  836. target_alias
  837. CC
  838. CFLAGS
  839. LDFLAGS
  840. LIBS
  841. CPPFLAGS
  842. LT_SYS_LIBRARY_PATH
  843. CPP
  844. CXX
  845. CXXFLAGS
  846. CCC
  847. CXXCPP'
  848. # Initialize some variables set by options.
  849. ac_init_help=
  850. ac_init_version=false
  851. ac_unrecognized_opts=
  852. ac_unrecognized_sep=
  853. # The variables have the same names as the options, with
  854. # dashes changed to underlines.
  855. cache_file=/dev/null
  856. exec_prefix=NONE
  857. no_create=
  858. no_recursion=
  859. prefix=NONE
  860. program_prefix=NONE
  861. program_suffix=NONE
  862. program_transform_name=s,x,x,
  863. silent=
  864. site=
  865. srcdir=
  866. verbose=
  867. x_includes=NONE
  868. x_libraries=NONE
  869. # Installation directory options.
  870. # These are left unexpanded so users can "make install exec_prefix=/foo"
  871. # and all the variables that are supposed to be based on exec_prefix
  872. # by default will actually change.
  873. # Use braces instead of parens because sh, perl, etc. also accept them.
  874. # (The list follows the same order as the GNU Coding Standards.)
  875. bindir='${exec_prefix}/bin'
  876. sbindir='${exec_prefix}/sbin'
  877. libexecdir='${exec_prefix}/libexec'
  878. datarootdir='${prefix}/share'
  879. datadir='${datarootdir}'
  880. sysconfdir='${prefix}/etc'
  881. sharedstatedir='${prefix}/com'
  882. localstatedir='${prefix}/var'
  883. runstatedir='${localstatedir}/run'
  884. includedir='${prefix}/include'
  885. oldincludedir='/usr/include'
  886. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  887. infodir='${datarootdir}/info'
  888. htmldir='${docdir}'
  889. dvidir='${docdir}'
  890. pdfdir='${docdir}'
  891. psdir='${docdir}'
  892. libdir='${exec_prefix}/lib'
  893. localedir='${datarootdir}/locale'
  894. mandir='${datarootdir}/man'
  895. ac_prev=
  896. ac_dashdash=
  897. for ac_option
  898. do
  899. # If the previous option needs an argument, assign it.
  900. if test -n "$ac_prev"; then
  901. eval $ac_prev=\$ac_option
  902. ac_prev=
  903. continue
  904. fi
  905. case $ac_option in
  906. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  907. *=) ac_optarg= ;;
  908. *) ac_optarg=yes ;;
  909. esac
  910. # Accept the important Cygnus configure options, so we can diagnose typos.
  911. case $ac_dashdash$ac_option in
  912. --)
  913. ac_dashdash=yes ;;
  914. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  915. ac_prev=bindir ;;
  916. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  917. bindir=$ac_optarg ;;
  918. -build | --build | --buil | --bui | --bu)
  919. ac_prev=build_alias ;;
  920. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  921. build_alias=$ac_optarg ;;
  922. -cache-file | --cache-file | --cache-fil | --cache-fi \
  923. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  924. ac_prev=cache_file ;;
  925. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  926. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  927. cache_file=$ac_optarg ;;
  928. --config-cache | -C)
  929. cache_file=config.cache ;;
  930. -datadir | --datadir | --datadi | --datad)
  931. ac_prev=datadir ;;
  932. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  933. datadir=$ac_optarg ;;
  934. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  935. | --dataroo | --dataro | --datar)
  936. ac_prev=datarootdir ;;
  937. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  938. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  939. datarootdir=$ac_optarg ;;
  940. -disable-* | --disable-*)
  941. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944. as_fn_error $? "invalid feature name: $ac_useropt"
  945. ac_useropt_orig=$ac_useropt
  946. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  947. case $ac_user_opts in
  948. *"
  949. "enable_$ac_useropt"
  950. "*) ;;
  951. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  952. ac_unrecognized_sep=', ';;
  953. esac
  954. eval enable_$ac_useropt=no ;;
  955. -docdir | --docdir | --docdi | --doc | --do)
  956. ac_prev=docdir ;;
  957. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  958. docdir=$ac_optarg ;;
  959. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  960. ac_prev=dvidir ;;
  961. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  962. dvidir=$ac_optarg ;;
  963. -enable-* | --enable-*)
  964. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  965. # Reject names that are not valid shell variable names.
  966. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  967. as_fn_error $? "invalid feature name: $ac_useropt"
  968. ac_useropt_orig=$ac_useropt
  969. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  970. case $ac_user_opts in
  971. *"
  972. "enable_$ac_useropt"
  973. "*) ;;
  974. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  975. ac_unrecognized_sep=', ';;
  976. esac
  977. eval enable_$ac_useropt=\$ac_optarg ;;
  978. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  979. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  980. | --exec | --exe | --ex)
  981. ac_prev=exec_prefix ;;
  982. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  983. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  984. | --exec=* | --exe=* | --ex=*)
  985. exec_prefix=$ac_optarg ;;
  986. -gas | --gas | --ga | --g)
  987. # Obsolete; use --with-gas.
  988. with_gas=yes ;;
  989. -help | --help | --hel | --he | -h)
  990. ac_init_help=long ;;
  991. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  992. ac_init_help=recursive ;;
  993. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  994. ac_init_help=short ;;
  995. -host | --host | --hos | --ho)
  996. ac_prev=host_alias ;;
  997. -host=* | --host=* | --hos=* | --ho=*)
  998. host_alias=$ac_optarg ;;
  999. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1000. ac_prev=htmldir ;;
  1001. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1002. | --ht=*)
  1003. htmldir=$ac_optarg ;;
  1004. -includedir | --includedir | --includedi | --included | --include \
  1005. | --includ | --inclu | --incl | --inc)
  1006. ac_prev=includedir ;;
  1007. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1008. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1009. includedir=$ac_optarg ;;
  1010. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1011. ac_prev=infodir ;;
  1012. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1013. infodir=$ac_optarg ;;
  1014. -libdir | --libdir | --libdi | --libd)
  1015. ac_prev=libdir ;;
  1016. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1017. libdir=$ac_optarg ;;
  1018. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1019. | --libexe | --libex | --libe)
  1020. ac_prev=libexecdir ;;
  1021. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1022. | --libexe=* | --libex=* | --libe=*)
  1023. libexecdir=$ac_optarg ;;
  1024. -localedir | --localedir | --localedi | --localed | --locale)
  1025. ac_prev=localedir ;;
  1026. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1027. localedir=$ac_optarg ;;
  1028. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1029. | --localstate | --localstat | --localsta | --localst | --locals)
  1030. ac_prev=localstatedir ;;
  1031. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1032. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1033. localstatedir=$ac_optarg ;;
  1034. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1035. ac_prev=mandir ;;
  1036. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1037. mandir=$ac_optarg ;;
  1038. -nfp | --nfp | --nf)
  1039. # Obsolete; use --without-fp.
  1040. with_fp=no ;;
  1041. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1042. | --no-cr | --no-c | -n)
  1043. no_create=yes ;;
  1044. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1045. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1046. no_recursion=yes ;;
  1047. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1048. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1049. | --oldin | --oldi | --old | --ol | --o)
  1050. ac_prev=oldincludedir ;;
  1051. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1052. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1053. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1054. oldincludedir=$ac_optarg ;;
  1055. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1056. ac_prev=prefix ;;
  1057. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1058. prefix=$ac_optarg ;;
  1059. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1060. | --program-pre | --program-pr | --program-p)
  1061. ac_prev=program_prefix ;;
  1062. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1063. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1064. program_prefix=$ac_optarg ;;
  1065. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1066. | --program-suf | --program-su | --program-s)
  1067. ac_prev=program_suffix ;;
  1068. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1069. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1070. program_suffix=$ac_optarg ;;
  1071. -program-transform-name | --program-transform-name \
  1072. | --program-transform-nam | --program-transform-na \
  1073. | --program-transform-n | --program-transform- \
  1074. | --program-transform | --program-transfor \
  1075. | --program-transfo | --program-transf \
  1076. | --program-trans | --program-tran \
  1077. | --progr-tra | --program-tr | --program-t)
  1078. ac_prev=program_transform_name ;;
  1079. -program-transform-name=* | --program-transform-name=* \
  1080. | --program-transform-nam=* | --program-transform-na=* \
  1081. | --program-transform-n=* | --program-transform-=* \
  1082. | --program-transform=* | --program-transfor=* \
  1083. | --program-transfo=* | --program-transf=* \
  1084. | --program-trans=* | --program-tran=* \
  1085. | --progr-tra=* | --program-tr=* | --program-t=*)
  1086. program_transform_name=$ac_optarg ;;
  1087. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1088. ac_prev=pdfdir ;;
  1089. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1090. pdfdir=$ac_optarg ;;
  1091. -psdir | --psdir | --psdi | --psd | --ps)
  1092. ac_prev=psdir ;;
  1093. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1094. psdir=$ac_optarg ;;
  1095. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1096. | -silent | --silent | --silen | --sile | --sil)
  1097. silent=yes ;;
  1098. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1099. | --runstate | --runstat | --runsta | --runst | --runs \
  1100. | --run | --ru | --r)
  1101. ac_prev=runstatedir ;;
  1102. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1103. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1104. | --run=* | --ru=* | --r=*)
  1105. runstatedir=$ac_optarg ;;
  1106. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1107. ac_prev=sbindir ;;
  1108. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1109. | --sbi=* | --sb=*)
  1110. sbindir=$ac_optarg ;;
  1111. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1112. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1113. | --sharedst | --shareds | --shared | --share | --shar \
  1114. | --sha | --sh)
  1115. ac_prev=sharedstatedir ;;
  1116. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1117. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1118. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1119. | --sha=* | --sh=*)
  1120. sharedstatedir=$ac_optarg ;;
  1121. -site | --site | --sit)
  1122. ac_prev=site ;;
  1123. -site=* | --site=* | --sit=*)
  1124. site=$ac_optarg ;;
  1125. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1126. ac_prev=srcdir ;;
  1127. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1128. srcdir=$ac_optarg ;;
  1129. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1130. | --syscon | --sysco | --sysc | --sys | --sy)
  1131. ac_prev=sysconfdir ;;
  1132. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1133. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1134. sysconfdir=$ac_optarg ;;
  1135. -target | --target | --targe | --targ | --tar | --ta | --t)
  1136. ac_prev=target_alias ;;
  1137. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1138. target_alias=$ac_optarg ;;
  1139. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1140. verbose=yes ;;
  1141. -version | --version | --versio | --versi | --vers | -V)
  1142. ac_init_version=: ;;
  1143. -with-* | --with-*)
  1144. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1145. # Reject names that are not valid shell variable names.
  1146. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147. as_fn_error $? "invalid package name: $ac_useropt"
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=\$ac_optarg ;;
  1158. -without-* | --without-*)
  1159. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1160. # Reject names that are not valid shell variable names.
  1161. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1162. as_fn_error $? "invalid package name: $ac_useropt"
  1163. ac_useropt_orig=$ac_useropt
  1164. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1165. case $ac_user_opts in
  1166. *"
  1167. "with_$ac_useropt"
  1168. "*) ;;
  1169. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1170. ac_unrecognized_sep=', ';;
  1171. esac
  1172. eval with_$ac_useropt=no ;;
  1173. --x)
  1174. # Obsolete; use --with-x.
  1175. with_x=yes ;;
  1176. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1177. | --x-incl | --x-inc | --x-in | --x-i)
  1178. ac_prev=x_includes ;;
  1179. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1180. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1181. x_includes=$ac_optarg ;;
  1182. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1183. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1184. ac_prev=x_libraries ;;
  1185. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1186. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1187. x_libraries=$ac_optarg ;;
  1188. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1189. Try \`$0 --help' for more information"
  1190. ;;
  1191. *=*)
  1192. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1193. # Reject names that are not valid shell variable names.
  1194. case $ac_envvar in #(
  1195. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1196. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1197. esac
  1198. eval $ac_envvar=\$ac_optarg
  1199. export $ac_envvar ;;
  1200. *)
  1201. # FIXME: should be removed in autoconf 3.0.
  1202. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1203. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1204. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1205. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1206. ;;
  1207. esac
  1208. done
  1209. if test -n "$ac_prev"; then
  1210. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1211. as_fn_error $? "missing argument to $ac_option"
  1212. fi
  1213. if test -n "$ac_unrecognized_opts"; then
  1214. case $enable_option_checking in
  1215. no) ;;
  1216. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1217. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1218. esac
  1219. fi
  1220. # Check all directory arguments for consistency.
  1221. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1222. datadir sysconfdir sharedstatedir localstatedir includedir \
  1223. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1224. libdir localedir mandir runstatedir
  1225. do
  1226. eval ac_val=\$$ac_var
  1227. # Remove trailing slashes.
  1228. case $ac_val in
  1229. */ )
  1230. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1231. eval $ac_var=\$ac_val;;
  1232. esac
  1233. # Be sure to have absolute directory names.
  1234. case $ac_val in
  1235. [\\/$]* | ?:[\\/]* ) continue;;
  1236. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1237. esac
  1238. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1239. done
  1240. # There might be people who depend on the old broken behavior: `$host'
  1241. # used to hold the argument of --host etc.
  1242. # FIXME: To remove some day.
  1243. build=$build_alias
  1244. host=$host_alias
  1245. target=$target_alias
  1246. # FIXME: To remove some day.
  1247. if test "x$host_alias" != x; then
  1248. if test "x$build_alias" = x; then
  1249. cross_compiling=maybe
  1250. elif test "x$build_alias" != "x$host_alias"; then
  1251. cross_compiling=yes
  1252. fi
  1253. fi
  1254. ac_tool_prefix=
  1255. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1256. test "$silent" = yes && exec 6>/dev/null
  1257. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1258. ac_ls_di=`ls -di .` &&
  1259. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1260. as_fn_error $? "working directory cannot be determined"
  1261. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1262. as_fn_error $? "pwd does not report name of working directory"
  1263. # Find the source files, if location was not specified.
  1264. if test -z "$srcdir"; then
  1265. ac_srcdir_defaulted=yes
  1266. # Try the directory containing this script, then the parent directory.
  1267. ac_confdir=`$as_dirname -- "$as_myself" ||
  1268. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1269. X"$as_myself" : 'X\(//\)[^/]' \| \
  1270. X"$as_myself" : 'X\(//\)$' \| \
  1271. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1272. $as_echo X"$as_myself" |
  1273. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\/\)[^/].*/{
  1278. s//\1/
  1279. q
  1280. }
  1281. /^X\(\/\/\)$/{
  1282. s//\1/
  1283. q
  1284. }
  1285. /^X\(\/\).*/{
  1286. s//\1/
  1287. q
  1288. }
  1289. s/.*/./; q'`
  1290. srcdir=$ac_confdir
  1291. if test ! -r "$srcdir/$ac_unique_file"; then
  1292. srcdir=..
  1293. fi
  1294. else
  1295. ac_srcdir_defaulted=no
  1296. fi
  1297. if test ! -r "$srcdir/$ac_unique_file"; then
  1298. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1299. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1300. fi
  1301. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1302. ac_abs_confdir=`(
  1303. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1304. pwd)`
  1305. # When building in place, set srcdir=.
  1306. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1307. srcdir=.
  1308. fi
  1309. # Remove unnecessary trailing slashes from srcdir.
  1310. # Double slashes in file names in object file debugging info
  1311. # mess up M-x gdb in Emacs.
  1312. case $srcdir in
  1313. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1314. esac
  1315. for ac_var in $ac_precious_vars; do
  1316. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_env_${ac_var}_value=\$${ac_var}
  1318. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1319. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1320. done
  1321. #
  1322. # Report the --help message.
  1323. #
  1324. if test "$ac_init_help" = "long"; then
  1325. # Omit some internal or obsolete options to make the list less imposing.
  1326. # This message is too long to be a string in the A/UX 3.1 sh.
  1327. cat <<_ACEOF
  1328. \`configure' configures tcpreplay 4.4.4 to adapt to many kinds of systems.
  1329. Usage: $0 [OPTION]... [VAR=VALUE]...
  1330. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1331. VAR=VALUE. See below for descriptions of some of the useful variables.
  1332. Defaults for the options are specified in brackets.
  1333. Configuration:
  1334. -h, --help display this help and exit
  1335. --help=short display options specific to this package
  1336. --help=recursive display the short help of all the included packages
  1337. -V, --version display version information and exit
  1338. -q, --quiet, --silent do not print \`checking ...' messages
  1339. --cache-file=FILE cache test results in FILE [disabled]
  1340. -C, --config-cache alias for \`--cache-file=config.cache'
  1341. -n, --no-create do not create output files
  1342. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1343. Installation directories:
  1344. --prefix=PREFIX install architecture-independent files in PREFIX
  1345. [$ac_default_prefix]
  1346. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1347. [PREFIX]
  1348. By default, \`make install' will install all the files in
  1349. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1350. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1351. for instance \`--prefix=\$HOME'.
  1352. For better control, use the options below.
  1353. Fine tuning of the installation directories:
  1354. --bindir=DIR user executables [EPREFIX/bin]
  1355. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1356. --libexecdir=DIR program executables [EPREFIX/libexec]
  1357. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1358. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1359. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1360. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1361. --libdir=DIR object code libraries [EPREFIX/lib]
  1362. --includedir=DIR C header files [PREFIX/include]
  1363. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1364. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1365. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1366. --infodir=DIR info documentation [DATAROOTDIR/info]
  1367. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1368. --mandir=DIR man documentation [DATAROOTDIR/man]
  1369. --docdir=DIR documentation root [DATAROOTDIR/doc/tcpreplay]
  1370. --htmldir=DIR html documentation [DOCDIR]
  1371. --dvidir=DIR dvi documentation [DOCDIR]
  1372. --pdfdir=DIR pdf documentation [DOCDIR]
  1373. --psdir=DIR ps documentation [DOCDIR]
  1374. _ACEOF
  1375. cat <<\_ACEOF
  1376. Program names:
  1377. --program-prefix=PREFIX prepend PREFIX to installed program names
  1378. --program-suffix=SUFFIX append SUFFIX to installed program names
  1379. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1380. System types:
  1381. --build=BUILD configure for building on BUILD [guessed]
  1382. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1383. --target=TARGET configure for building compilers for TARGET [HOST]
  1384. _ACEOF
  1385. fi
  1386. if test -n "$ac_init_help"; then
  1387. case $ac_init_help in
  1388. short | recursive ) echo "Configuration of tcpreplay 4.4.4:";;
  1389. esac
  1390. cat <<\_ACEOF
  1391. Optional Features:
  1392. --disable-option-checking ignore unrecognized --enable/--with options
  1393. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1394. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1395. --disable-maintainer-mode
  1396. disable make rules and dependencies not useful (and
  1397. sometimes confusing) to the casual installer
  1398. --enable-silent-rules less verbose build output (undo: "make V=1")
  1399. --disable-silent-rules verbose build output (undo: "make V=0")
  1400. --enable-dependency-tracking
  1401. do not reject slow dependency extractors
  1402. --disable-dependency-tracking
  1403. speeds up one-time build
  1404. --enable-shared[=PKGS] build shared libraries [default=yes]
  1405. --enable-static[=PKGS] build static libraries [default=yes]
  1406. --enable-fast-install[=PKGS]
  1407. optimize for fast installation [default=yes]
  1408. --disable-libtool-lock avoid locking (might break parallel builds)
  1409. --disable-largefile omit support for large files
  1410. --enable-asan Enable Address Sanitizer support
  1411. --enable-tsan Enable Thread Sanitizer support
  1412. --enable-debug Enable debugging code and support for the -d option
  1413. --enable-extra-debug Enable additional debugging code (may affect
  1414. performance)
  1415. --timestamp-trace Enable dumping of trace timestamps at the end of a
  1416. test
  1417. --enable-dmalloc Enable linking to dmalloc for better memory
  1418. debugging
  1419. --enable-pedantic Enable gcc's -pedantic option
  1420. --enable-efence Enable Electric Fence memory debugger
  1421. --enable-gprof Enable GNU Profiler
  1422. --enable-pcapconfig Enable automatic libpcap config, reverting to system
  1423. scanning
  1424. --disable-64bits Do not use 64bit packet counters
  1425. --enable-force-bpf Force using BPF for sending packets
  1426. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1427. --enable-force-libdnet Force using libdnet for sending packets
  1428. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1429. packets
  1430. --enable-force-sendpacket
  1431. Force using libpcap's pcap_sendpacket() for sending
  1432. packets
  1433. --enable-static-link Use static libraries ( .a or .A.tbd ) - default no
  1434. --enable-dynamic-link Use shared libraries ( .so .dylib or .tbd ) -
  1435. default yes
  1436. --disable-tuntap Disable tuntap support
  1437. --disable-nls disable nls support in libopts
  1438. --enable-local-libopts Use the supplied libopts tearoff code
  1439. --enable-libopts-install
  1440. Install libopts with client installation
  1441. --disable-optional-args not wanting optional option args
  1442. Optional Packages:
  1443. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1444. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1445. --with-dmalloc use dmalloc, as in http://www.dmalloc.com
  1446. --with-macos-sdk=VER Specify the macOS SDK version to use.
  1447. --with-pfring-lib Use a specific PF_RING static library when using
  1448. PF_RING libpcap.
  1449. Usage: --with-pfring-lib=<library>
  1450. e. g.: --with-pfring-lib=/usr/lib/libpfring_zc_x86_64.a
  1451. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1452. both]
  1453. --with-aix-soname=aix|svr4|both
  1454. shared library versioning (aka "SONAME") variant to
  1455. provide on AIX, [default=aix].
  1456. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1457. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1458. compiler's sysroot if not specified).
  1459. --with-libpcap=DIR Use libpcap in DIR
  1460. --with-netmap=DIR Use netmap in DIR
  1461. --with-libdnet=DIR Use libdnet in DIR
  1462. --with-pcapnav-config=FILE
  1463. Use given pcapnav-config
  1464. --with-tcpdump=FILE Path to tcpdump binary
  1465. --with-testnic=NIC Select which network card to use for testing
  1466. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1467. testing
  1468. --with-autoopts-config specify the config-info script
  1469. --with-regex-header a reg expr header is specified
  1470. --with-libregex libregex installation prefix
  1471. --with-libregex-cflags libregex compile flags
  1472. --with-libregex-libs libregex link command arguments
  1473. Some influential environment variables:
  1474. CC C compiler command
  1475. CFLAGS C compiler flags
  1476. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1477. nonstandard directory <lib dir>
  1478. LIBS libraries to pass to the linker, e.g. -l<library>
  1479. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1480. you have headers in a nonstandard directory <include dir>
  1481. LT_SYS_LIBRARY_PATH
  1482. User-defined run-time library search path.
  1483. CPP C preprocessor
  1484. CXX C++ compiler command
  1485. CXXFLAGS C++ compiler flags
  1486. CXXCPP C++ preprocessor
  1487. Use these variables to override the choices made by `configure' or to help
  1488. it to find libraries and programs with nonstandard names/locations.
  1489. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  1490. tcpreplay home page: <http://tcpreplay.sourceforge.net/>.
  1491. _ACEOF
  1492. ac_status=$?
  1493. fi
  1494. if test "$ac_init_help" = "recursive"; then
  1495. # If there are subdirs, report their specific --help.
  1496. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1497. test -d "$ac_dir" ||
  1498. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1499. continue
  1500. ac_builddir=.
  1501. case "$ac_dir" in
  1502. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1503. *)
  1504. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1505. # A ".." for each directory in $ac_dir_suffix.
  1506. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1507. case $ac_top_builddir_sub in
  1508. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1509. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1510. esac ;;
  1511. esac
  1512. ac_abs_top_builddir=$ac_pwd
  1513. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1514. # for backward compatibility:
  1515. ac_top_builddir=$ac_top_build_prefix
  1516. case $srcdir in
  1517. .) # We are building in place.
  1518. ac_srcdir=.
  1519. ac_top_srcdir=$ac_top_builddir_sub
  1520. ac_abs_top_srcdir=$ac_pwd ;;
  1521. [\\/]* | ?:[\\/]* ) # Absolute name.
  1522. ac_srcdir=$srcdir$ac_dir_suffix;
  1523. ac_top_srcdir=$srcdir
  1524. ac_abs_top_srcdir=$srcdir ;;
  1525. *) # Relative name.
  1526. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1527. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1528. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1529. esac
  1530. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1531. cd "$ac_dir" || { ac_status=$?; continue; }
  1532. # Check for guested configure.
  1533. if test -f "$ac_srcdir/configure.gnu"; then
  1534. echo &&
  1535. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1536. elif test -f "$ac_srcdir/configure"; then
  1537. echo &&
  1538. $SHELL "$ac_srcdir/configure" --help=recursive
  1539. else
  1540. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1541. fi || ac_status=$?
  1542. cd "$ac_pwd" || { ac_status=$?; break; }
  1543. done
  1544. fi
  1545. test -n "$ac_init_help" && exit $ac_status
  1546. if $ac_init_version; then
  1547. cat <<\_ACEOF
  1548. tcpreplay configure 4.4.4
  1549. generated by GNU Autoconf 2.69
  1550. Copyright (C) 2012 Free Software Foundation, Inc.
  1551. This configure script is free software; the Free Software Foundation
  1552. gives unlimited permission to copy, distribute and modify it.
  1553. _ACEOF
  1554. exit
  1555. fi
  1556. ## ------------------------ ##
  1557. ## Autoconf initialization. ##
  1558. ## ------------------------ ##
  1559. # ac_fn_c_try_compile LINENO
  1560. # --------------------------
  1561. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. rm -f conftest.$ac_objext
  1566. if { { ac_try="$ac_compile"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_compile") 2>conftest.err
  1574. ac_status=$?
  1575. if test -s conftest.err; then
  1576. grep -v '^ *+' conftest.err >conftest.er1
  1577. cat conftest.er1 >&5
  1578. mv -f conftest.er1 conftest.err
  1579. fi
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && {
  1582. test -z "$ac_c_werror_flag" ||
  1583. test ! -s conftest.err
  1584. } && test -s conftest.$ac_objext; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: failed program was:" >&5
  1588. sed 's/^/| /' conftest.$ac_ext >&5
  1589. ac_retval=1
  1590. fi
  1591. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1592. as_fn_set_status $ac_retval
  1593. } # ac_fn_c_try_compile
  1594. # ac_fn_c_try_link LINENO
  1595. # -----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1597. ac_fn_c_try_link ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. rm -f conftest.$ac_objext conftest$ac_exeext
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>conftest.err
  1609. ac_status=$?
  1610. if test -s conftest.err; then
  1611. grep -v '^ *+' conftest.err >conftest.er1
  1612. cat conftest.er1 >&5
  1613. mv -f conftest.er1 conftest.err
  1614. fi
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } && {
  1617. test -z "$ac_c_werror_flag" ||
  1618. test ! -s conftest.err
  1619. } && test -s conftest$ac_exeext && {
  1620. test "$cross_compiling" = yes ||
  1621. test -x conftest$ac_exeext
  1622. }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=1
  1628. fi
  1629. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1630. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1631. # interfere with the next link command; also delete a directory that is
  1632. # left behind by Apple's compiler. We do this before executing the actions.
  1633. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. as_fn_set_status $ac_retval
  1636. } # ac_fn_c_try_link
  1637. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1638. # -------------------------------------------------------
  1639. # Tests whether HEADER exists and can be compiled using the include files in
  1640. # INCLUDES, setting the cache variable VAR accordingly.
  1641. ac_fn_c_check_header_compile ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. $4
  1652. #include <$2>
  1653. _ACEOF
  1654. if ac_fn_c_try_compile "$LINENO"; then :
  1655. eval "$3=yes"
  1656. else
  1657. eval "$3=no"
  1658. fi
  1659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1660. fi
  1661. eval ac_res=\$$3
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1663. $as_echo "$ac_res" >&6; }
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. } # ac_fn_c_check_header_compile
  1666. # ac_fn_c_try_cpp LINENO
  1667. # ----------------------
  1668. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1669. ac_fn_c_try_cpp ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1680. ac_status=$?
  1681. if test -s conftest.err; then
  1682. grep -v '^ *+' conftest.err >conftest.er1
  1683. cat conftest.er1 >&5
  1684. mv -f conftest.er1 conftest.err
  1685. fi
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } > conftest.i && {
  1688. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1689. test ! -s conftest.err
  1690. }; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } # ac_fn_c_try_cpp
  1700. # ac_fn_c_try_run LINENO
  1701. # ----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1703. # that executables *can* be run.
  1704. ac_fn_c_try_run ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>&5
  1715. ac_status=$?
  1716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1717. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1718. { { case "(($ac_try" in
  1719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1720. *) ac_try_echo=$ac_try;;
  1721. esac
  1722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1723. $as_echo "$ac_try_echo"; } >&5
  1724. (eval "$ac_try") 2>&5
  1725. ac_status=$?
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; }; }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: program exited with status $ac_status" >&5
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=$ac_status
  1734. fi
  1735. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1736. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1737. as_fn_set_status $ac_retval
  1738. } # ac_fn_c_try_run
  1739. # ac_fn_c_check_func LINENO FUNC VAR
  1740. # ----------------------------------
  1741. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1742. ac_fn_c_check_func ()
  1743. {
  1744. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1746. $as_echo_n "checking for $2... " >&6; }
  1747. if eval \${$3+:} false; then :
  1748. $as_echo_n "(cached) " >&6
  1749. else
  1750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1751. /* end confdefs.h. */
  1752. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1754. #define $2 innocuous_$2
  1755. /* System header to define __stub macros and hopefully few prototypes,
  1756. which can conflict with char $2 (); below.
  1757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1758. <limits.h> exists even on freestanding compilers. */
  1759. #ifdef __STDC__
  1760. # include <limits.h>
  1761. #else
  1762. # include <assert.h>
  1763. #endif
  1764. #undef $2
  1765. /* Override any GCC internal prototype to avoid an error.
  1766. Use char because int might match the return type of a GCC
  1767. builtin and then its argument prototype would still apply. */
  1768. #ifdef __cplusplus
  1769. extern "C"
  1770. #endif
  1771. char $2 ();
  1772. /* The GNU C library defines this for functions which it implements
  1773. to always fail with ENOSYS. Some functions are actually named
  1774. something starting with __ and the normal name is an alias. */
  1775. #if defined __stub_$2 || defined __stub___$2
  1776. choke me
  1777. #endif
  1778. int
  1779. main ()
  1780. {
  1781. return $2 ();
  1782. ;
  1783. return 0;
  1784. }
  1785. _ACEOF
  1786. if ac_fn_c_try_link "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext \
  1792. conftest$ac_exeext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } # ac_fn_c_check_func
  1799. # ac_fn_cxx_try_compile LINENO
  1800. # ----------------------------
  1801. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_cxx_try_compile ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. rm -f conftest.$ac_objext
  1806. if { { ac_try="$ac_compile"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_compile") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } && {
  1822. test -z "$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. } && test -s conftest.$ac_objext; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_cxx_try_compile
  1834. # ac_fn_cxx_try_cpp LINENO
  1835. # ------------------------
  1836. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_cxx_try_cpp ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } > conftest.i && {
  1856. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. }; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_cxx_try_cpp
  1868. # ac_fn_cxx_try_link LINENO
  1869. # -------------------------
  1870. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_link ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. rm -f conftest.$ac_objext conftest$ac_exeext
  1875. if { { ac_try="$ac_link"
  1876. case "(($ac_try" in
  1877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1878. *) ac_try_echo=$ac_try;;
  1879. esac
  1880. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1881. $as_echo "$ac_try_echo"; } >&5
  1882. (eval "$ac_link") 2>conftest.err
  1883. ac_status=$?
  1884. if test -s conftest.err; then
  1885. grep -v '^ *+' conftest.err >conftest.er1
  1886. cat conftest.er1 >&5
  1887. mv -f conftest.er1 conftest.err
  1888. fi
  1889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1890. test $ac_status = 0; } && {
  1891. test -z "$ac_cxx_werror_flag" ||
  1892. test ! -s conftest.err
  1893. } && test -s conftest$ac_exeext && {
  1894. test "$cross_compiling" = yes ||
  1895. test -x conftest$ac_exeext
  1896. }; then :
  1897. ac_retval=0
  1898. else
  1899. $as_echo "$as_me: failed program was:" >&5
  1900. sed 's/^/| /' conftest.$ac_ext >&5
  1901. ac_retval=1
  1902. fi
  1903. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1904. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1905. # interfere with the next link command; also delete a directory that is
  1906. # left behind by Apple's compiler. We do this before executing the actions.
  1907. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1908. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1909. as_fn_set_status $ac_retval
  1910. } # ac_fn_cxx_try_link
  1911. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1912. # -------------------------------------------------------
  1913. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1914. # the include files in INCLUDES and setting the cache variable VAR
  1915. # accordingly.
  1916. ac_fn_c_check_header_mongrel ()
  1917. {
  1918. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1919. if eval \${$3+:} false; then :
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1921. $as_echo_n "checking for $2... " >&6; }
  1922. if eval \${$3+:} false; then :
  1923. $as_echo_n "(cached) " >&6
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. else
  1929. # Is the header compilable?
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1931. $as_echo_n "checking $2 usability... " >&6; }
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. #include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_compile "$LINENO"; then :
  1938. ac_header_compiler=yes
  1939. else
  1940. ac_header_compiler=no
  1941. fi
  1942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1944. $as_echo "$ac_header_compiler" >&6; }
  1945. # Is the header present?
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1947. $as_echo_n "checking $2 presence... " >&6; }
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. #include <$2>
  1951. _ACEOF
  1952. if ac_fn_c_try_cpp "$LINENO"; then :
  1953. ac_header_preproc=yes
  1954. else
  1955. ac_header_preproc=no
  1956. fi
  1957. rm -f conftest.err conftest.i conftest.$ac_ext
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1959. $as_echo "$ac_header_preproc" >&6; }
  1960. # So? What about this header?
  1961. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1962. yes:no: )
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1964. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. no:yes:* )
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1970. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1972. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1974. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1976. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1978. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1979. ( $as_echo "## ---------------------------------------------------------- ##
  1980. ## Report this to https://github.com/appneta/tcpreplay/issues ##
  1981. ## ---------------------------------------------------------- ##"
  1982. ) | sed "s/^/$as_me: WARNING: /" >&2
  1983. ;;
  1984. esac
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1986. $as_echo_n "checking for $2... " >&6; }
  1987. if eval \${$3+:} false; then :
  1988. $as_echo_n "(cached) " >&6
  1989. else
  1990. eval "$3=\$ac_header_compiler"
  1991. fi
  1992. eval ac_res=\$$3
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1994. $as_echo "$ac_res" >&6; }
  1995. fi
  1996. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1997. } # ac_fn_c_check_header_mongrel
  1998. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1999. # -------------------------------------------
  2000. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2001. # variable VAR accordingly.
  2002. ac_fn_c_check_type ()
  2003. {
  2004. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2006. $as_echo_n "checking for $2... " >&6; }
  2007. if eval \${$3+:} false; then :
  2008. $as_echo_n "(cached) " >&6
  2009. else
  2010. eval "$3=no"
  2011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2012. /* end confdefs.h. */
  2013. $4
  2014. int
  2015. main ()
  2016. {
  2017. if (sizeof ($2))
  2018. return 0;
  2019. ;
  2020. return 0;
  2021. }
  2022. _ACEOF
  2023. if ac_fn_c_try_compile "$LINENO"; then :
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $4
  2027. int
  2028. main ()
  2029. {
  2030. if (sizeof (($2)))
  2031. return 0;
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. if ac_fn_c_try_compile "$LINENO"; then :
  2037. else
  2038. eval "$3=yes"
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. fi
  2044. eval ac_res=\$$3
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. } # ac_fn_c_check_type
  2049. # ac_fn_c_find_intX_t LINENO BITS VAR
  2050. # -----------------------------------
  2051. # Finds a signed integer type with width BITS, setting cache variable VAR
  2052. # accordingly.
  2053. ac_fn_c_find_intX_t ()
  2054. {
  2055. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  2057. $as_echo_n "checking for int$2_t... " >&6; }
  2058. if eval \${$3+:} false; then :
  2059. $as_echo_n "(cached) " >&6
  2060. else
  2061. eval "$3=no"
  2062. # Order is important - never check a type that is potentially smaller
  2063. # than half of the expected target width.
  2064. for ac_type in int$2_t 'int' 'long int' \
  2065. 'long long int' 'short int' 'signed char'; do
  2066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2067. /* end confdefs.h. */
  2068. $ac_includes_default
  2069. enum { N = $2 / 2 - 1 };
  2070. int
  2071. main ()
  2072. {
  2073. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  2074. test_array [0] = 0;
  2075. return test_array [0];
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2082. /* end confdefs.h. */
  2083. $ac_includes_default
  2084. enum { N = $2 / 2 - 1 };
  2085. int
  2086. main ()
  2087. {
  2088. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  2089. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  2090. test_array [0] = 0;
  2091. return test_array [0];
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"; then :
  2097. else
  2098. case $ac_type in #(
  2099. int$2_t) :
  2100. eval "$3=yes" ;; #(
  2101. *) :
  2102. eval "$3=\$ac_type" ;;
  2103. esac
  2104. fi
  2105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2106. fi
  2107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. if eval test \"x\$"$3"\" = x"no"; then :
  2109. else
  2110. break
  2111. fi
  2112. done
  2113. fi
  2114. eval ac_res=\$$3
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2116. $as_echo "$ac_res" >&6; }
  2117. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2118. } # ac_fn_c_find_intX_t
  2119. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2120. # ------------------------------------
  2121. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2122. # accordingly.
  2123. ac_fn_c_find_uintX_t ()
  2124. {
  2125. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2127. $as_echo_n "checking for uint$2_t... " >&6; }
  2128. if eval \${$3+:} false; then :
  2129. $as_echo_n "(cached) " >&6
  2130. else
  2131. eval "$3=no"
  2132. # Order is important - never check a type that is potentially smaller
  2133. # than half of the expected target width.
  2134. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2135. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2137. /* end confdefs.h. */
  2138. $ac_includes_default
  2139. int
  2140. main ()
  2141. {
  2142. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2143. test_array [0] = 0;
  2144. return test_array [0];
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. if ac_fn_c_try_compile "$LINENO"; then :
  2150. case $ac_type in #(
  2151. uint$2_t) :
  2152. eval "$3=yes" ;; #(
  2153. *) :
  2154. eval "$3=\$ac_type" ;;
  2155. esac
  2156. fi
  2157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2158. if eval test \"x\$"$3"\" = x"no"; then :
  2159. else
  2160. break
  2161. fi
  2162. done
  2163. fi
  2164. eval ac_res=\$$3
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2166. $as_echo "$ac_res" >&6; }
  2167. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2168. } # ac_fn_c_find_uintX_t
  2169. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2170. # ----------------------------------------------------
  2171. # Tries to find if the field MEMBER exists in type AGGR, after including
  2172. # INCLUDES, setting cache variable VAR accordingly.
  2173. ac_fn_c_check_member ()
  2174. {
  2175. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2177. $as_echo_n "checking for $2.$3... " >&6; }
  2178. if eval \${$4+:} false; then :
  2179. $as_echo_n "(cached) " >&6
  2180. else
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $5
  2184. int
  2185. main ()
  2186. {
  2187. static $2 ac_aggr;
  2188. if (ac_aggr.$3)
  2189. return 0;
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. if ac_fn_c_try_compile "$LINENO"; then :
  2195. eval "$4=yes"
  2196. else
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $5
  2200. int
  2201. main ()
  2202. {
  2203. static $2 ac_aggr;
  2204. if (sizeof ac_aggr.$3)
  2205. return 0;
  2206. ;
  2207. return 0;
  2208. }
  2209. _ACEOF
  2210. if ac_fn_c_try_compile "$LINENO"; then :
  2211. eval "$4=yes"
  2212. else
  2213. eval "$4=no"
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. eval ac_res=\$$4
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2221. $as_echo "$ac_res" >&6; }
  2222. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2223. } # ac_fn_c_check_member
  2224. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2225. # ---------------------------------------------
  2226. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2227. # accordingly.
  2228. ac_fn_c_check_decl ()
  2229. {
  2230. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2232. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2234. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2235. if eval \${$3+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2239. /* end confdefs.h. */
  2240. $4
  2241. int
  2242. main ()
  2243. {
  2244. #ifndef $as_decl_name
  2245. #ifdef __cplusplus
  2246. (void) $as_decl_use;
  2247. #else
  2248. (void) $as_decl_name;
  2249. #endif
  2250. #endif
  2251. ;
  2252. return 0;
  2253. }
  2254. _ACEOF
  2255. if ac_fn_c_try_compile "$LINENO"; then :
  2256. eval "$3=yes"
  2257. else
  2258. eval "$3=no"
  2259. fi
  2260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2261. fi
  2262. eval ac_res=\$$3
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2264. $as_echo "$ac_res" >&6; }
  2265. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2266. } # ac_fn_c_check_decl
  2267. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2268. # --------------------------------------------
  2269. # Tries to find the compile-time value of EXPR in a program that includes
  2270. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2271. # computed
  2272. ac_fn_c_compute_int ()
  2273. {
  2274. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2275. if test "$cross_compiling" = yes; then
  2276. # Depending upon the size, compute the lo and hi bounds.
  2277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2278. /* end confdefs.h. */
  2279. $4
  2280. int
  2281. main ()
  2282. {
  2283. static int test_array [1 - 2 * !(($2) >= 0)];
  2284. test_array [0] = 0;
  2285. return test_array [0];
  2286. ;
  2287. return 0;
  2288. }
  2289. _ACEOF
  2290. if ac_fn_c_try_compile "$LINENO"; then :
  2291. ac_lo=0 ac_mid=0
  2292. while :; do
  2293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2294. /* end confdefs.h. */
  2295. $4
  2296. int
  2297. main ()
  2298. {
  2299. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2300. test_array [0] = 0;
  2301. return test_array [0];
  2302. ;
  2303. return 0;
  2304. }
  2305. _ACEOF
  2306. if ac_fn_c_try_compile "$LINENO"; then :
  2307. ac_hi=$ac_mid; break
  2308. else
  2309. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2310. if test $ac_lo -le $ac_mid; then
  2311. ac_lo= ac_hi=
  2312. break
  2313. fi
  2314. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2315. fi
  2316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. done
  2318. else
  2319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2320. /* end confdefs.h. */
  2321. $4
  2322. int
  2323. main ()
  2324. {
  2325. static int test_array [1 - 2 * !(($2) < 0)];
  2326. test_array [0] = 0;
  2327. return test_array [0];
  2328. ;
  2329. return 0;
  2330. }
  2331. _ACEOF
  2332. if ac_fn_c_try_compile "$LINENO"; then :
  2333. ac_hi=-1 ac_mid=-1
  2334. while :; do
  2335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2336. /* end confdefs.h. */
  2337. $4
  2338. int
  2339. main ()
  2340. {
  2341. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2342. test_array [0] = 0;
  2343. return test_array [0];
  2344. ;
  2345. return 0;
  2346. }
  2347. _ACEOF
  2348. if ac_fn_c_try_compile "$LINENO"; then :
  2349. ac_lo=$ac_mid; break
  2350. else
  2351. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2352. if test $ac_mid -le $ac_hi; then
  2353. ac_lo= ac_hi=
  2354. break
  2355. fi
  2356. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2357. fi
  2358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2359. done
  2360. else
  2361. ac_lo= ac_hi=
  2362. fi
  2363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2364. fi
  2365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2366. # Binary search between lo and hi bounds.
  2367. while test "x$ac_lo" != "x$ac_hi"; do
  2368. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2370. /* end confdefs.h. */
  2371. $4
  2372. int
  2373. main ()
  2374. {
  2375. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2376. test_array [0] = 0;
  2377. return test_array [0];
  2378. ;
  2379. return 0;
  2380. }
  2381. _ACEOF
  2382. if ac_fn_c_try_compile "$LINENO"; then :
  2383. ac_hi=$ac_mid
  2384. else
  2385. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2386. fi
  2387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2388. done
  2389. case $ac_lo in #((
  2390. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2391. '') ac_retval=1 ;;
  2392. esac
  2393. else
  2394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2395. /* end confdefs.h. */
  2396. $4
  2397. static long int longval () { return $2; }
  2398. static unsigned long int ulongval () { return $2; }
  2399. #include <stdio.h>
  2400. #include <stdlib.h>
  2401. int
  2402. main ()
  2403. {
  2404. FILE *f = fopen ("conftest.val", "w");
  2405. if (! f)
  2406. return 1;
  2407. if (($2) < 0)
  2408. {
  2409. long int i = longval ();
  2410. if (i != ($2))
  2411. return 1;
  2412. fprintf (f, "%ld", i);
  2413. }
  2414. else
  2415. {
  2416. unsigned long int i = ulongval ();
  2417. if (i != ($2))
  2418. return 1;
  2419. fprintf (f, "%lu", i);
  2420. }
  2421. /* Do not output a trailing newline, as this causes \r\n confusion
  2422. on some platforms. */
  2423. return ferror (f) || fclose (f) != 0;
  2424. ;
  2425. return 0;
  2426. }
  2427. _ACEOF
  2428. if ac_fn_c_try_run "$LINENO"; then :
  2429. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2430. else
  2431. ac_retval=1
  2432. fi
  2433. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2434. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2435. rm -f conftest.val
  2436. fi
  2437. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2438. as_fn_set_status $ac_retval
  2439. } # ac_fn_c_compute_int
  2440. cat >config.log <<_ACEOF
  2441. This file contains any messages produced by compilers while
  2442. running configure, to aid debugging if configure makes a mistake.
  2443. It was created by tcpreplay $as_me 4.4.4, which was
  2444. generated by GNU Autoconf 2.69. Invocation command line was
  2445. $ $0 $@
  2446. _ACEOF
  2447. exec 5>>config.log
  2448. {
  2449. cat <<_ASUNAME
  2450. ## --------- ##
  2451. ## Platform. ##
  2452. ## --------- ##
  2453. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2454. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2455. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2456. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2457. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2458. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2459. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2460. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2461. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2462. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2463. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2464. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2465. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2466. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2467. _ASUNAME
  2468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2469. for as_dir in $PATH
  2470. do
  2471. IFS=$as_save_IFS
  2472. test -z "$as_dir" && as_dir=.
  2473. $as_echo "PATH: $as_dir"
  2474. done
  2475. IFS=$as_save_IFS
  2476. } >&5
  2477. cat >&5 <<_ACEOF
  2478. ## ----------- ##
  2479. ## Core tests. ##
  2480. ## ----------- ##
  2481. _ACEOF
  2482. # Keep a trace of the command line.
  2483. # Strip out --no-create and --no-recursion so they do not pile up.
  2484. # Strip out --silent because we don't want to record it for future runs.
  2485. # Also quote any args containing shell meta-characters.
  2486. # Make two passes to allow for proper duplicate-argument suppression.
  2487. ac_configure_args=
  2488. ac_configure_args0=
  2489. ac_configure_args1=
  2490. ac_must_keep_next=false
  2491. for ac_pass in 1 2
  2492. do
  2493. for ac_arg
  2494. do
  2495. case $ac_arg in
  2496. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2497. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2498. | -silent | --silent | --silen | --sile | --sil)
  2499. continue ;;
  2500. *\'*)
  2501. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2502. esac
  2503. case $ac_pass in
  2504. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2505. 2)
  2506. as_fn_append ac_configure_args1 " '$ac_arg'"
  2507. if test $ac_must_keep_next = true; then
  2508. ac_must_keep_next=false # Got value, back to normal.
  2509. else
  2510. case $ac_arg in
  2511. *=* | --config-cache | -C | -disable-* | --disable-* \
  2512. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2513. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2514. | -with-* | --with-* | -without-* | --without-* | --x)
  2515. case "$ac_configure_args0 " in
  2516. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2517. esac
  2518. ;;
  2519. -* ) ac_must_keep_next=true ;;
  2520. esac
  2521. fi
  2522. as_fn_append ac_configure_args " '$ac_arg'"
  2523. ;;
  2524. esac
  2525. done
  2526. done
  2527. { ac_configure_args0=; unset ac_configure_args0;}
  2528. { ac_configure_args1=; unset ac_configure_args1;}
  2529. # When interrupted or exit'd, cleanup temporary files, and complete
  2530. # config.log. We remove comments because anyway the quotes in there
  2531. # would cause problems or look ugly.
  2532. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2533. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2534. trap 'exit_status=$?
  2535. # Save into config.log some information that might help in debugging.
  2536. {
  2537. echo
  2538. $as_echo "## ---------------- ##
  2539. ## Cache variables. ##
  2540. ## ---------------- ##"
  2541. echo
  2542. # The following way of writing the cache mishandles newlines in values,
  2543. (
  2544. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2545. eval ac_val=\$$ac_var
  2546. case $ac_val in #(
  2547. *${as_nl}*)
  2548. case $ac_var in #(
  2549. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2550. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2551. esac
  2552. case $ac_var in #(
  2553. _ | IFS | as_nl) ;; #(
  2554. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2555. *) { eval $ac_var=; unset $ac_var;} ;;
  2556. esac ;;
  2557. esac
  2558. done
  2559. (set) 2>&1 |
  2560. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2561. *${as_nl}ac_space=\ *)
  2562. sed -n \
  2563. "s/'\''/'\''\\\\'\'''\''/g;
  2564. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2565. ;; #(
  2566. *)
  2567. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2568. ;;
  2569. esac |
  2570. sort
  2571. )
  2572. echo
  2573. $as_echo "## ----------------- ##
  2574. ## Output variables. ##
  2575. ## ----------------- ##"
  2576. echo
  2577. for ac_var in $ac_subst_vars
  2578. do
  2579. eval ac_val=\$$ac_var
  2580. case $ac_val in
  2581. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2582. esac
  2583. $as_echo "$ac_var='\''$ac_val'\''"
  2584. done | sort
  2585. echo
  2586. if test -n "$ac_subst_files"; then
  2587. $as_echo "## ------------------- ##
  2588. ## File substitutions. ##
  2589. ## ------------------- ##"
  2590. echo
  2591. for ac_var in $ac_subst_files
  2592. do
  2593. eval ac_val=\$$ac_var
  2594. case $ac_val in
  2595. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2596. esac
  2597. $as_echo "$ac_var='\''$ac_val'\''"
  2598. done | sort
  2599. echo
  2600. fi
  2601. if test -s confdefs.h; then
  2602. $as_echo "## ----------- ##
  2603. ## confdefs.h. ##
  2604. ## ----------- ##"
  2605. echo
  2606. cat confdefs.h
  2607. echo
  2608. fi
  2609. test "$ac_signal" != 0 &&
  2610. $as_echo "$as_me: caught signal $ac_signal"
  2611. $as_echo "$as_me: exit $exit_status"
  2612. } >&5
  2613. rm -f core *.core core.conftest.* &&
  2614. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2615. exit $exit_status
  2616. ' 0
  2617. for ac_signal in 1 2 13 15; do
  2618. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2619. done
  2620. ac_signal=0
  2621. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2622. rm -f -r conftest* confdefs.h
  2623. $as_echo "/* confdefs.h */" > confdefs.h
  2624. # Predefined preprocessor variables.
  2625. cat >>confdefs.h <<_ACEOF
  2626. #define PACKAGE_NAME "$PACKAGE_NAME"
  2627. _ACEOF
  2628. cat >>confdefs.h <<_ACEOF
  2629. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2630. _ACEOF
  2631. cat >>confdefs.h <<_ACEOF
  2632. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2633. _ACEOF
  2634. cat >>confdefs.h <<_ACEOF
  2635. #define PACKAGE_STRING "$PACKAGE_STRING"
  2636. _ACEOF
  2637. cat >>confdefs.h <<_ACEOF
  2638. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2639. _ACEOF
  2640. cat >>confdefs.h <<_ACEOF
  2641. #define PACKAGE_URL "$PACKAGE_URL"
  2642. _ACEOF
  2643. # Let the site file select an alternate cache file if it wants to.
  2644. # Prefer an explicitly selected file to automatically selected ones.
  2645. ac_site_file1=NONE
  2646. ac_site_file2=NONE
  2647. if test -n "$CONFIG_SITE"; then
  2648. # We do not want a PATH search for config.site.
  2649. case $CONFIG_SITE in #((
  2650. -*) ac_site_file1=./$CONFIG_SITE;;
  2651. */*) ac_site_file1=$CONFIG_SITE;;
  2652. *) ac_site_file1=./$CONFIG_SITE;;
  2653. esac
  2654. elif test "x$prefix" != xNONE; then
  2655. ac_site_file1=$prefix/share/config.site
  2656. ac_site_file2=$prefix/etc/config.site
  2657. else
  2658. ac_site_file1=$ac_default_prefix/share/config.site
  2659. ac_site_file2=$ac_default_prefix/etc/config.site
  2660. fi
  2661. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2662. do
  2663. test "x$ac_site_file" = xNONE && continue
  2664. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2666. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2667. sed 's/^/| /' "$ac_site_file" >&5
  2668. . "$ac_site_file" \
  2669. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2671. as_fn_error $? "failed to load site script $ac_site_file
  2672. See \`config.log' for more details" "$LINENO" 5; }
  2673. fi
  2674. done
  2675. if test -r "$cache_file"; then
  2676. # Some versions of bash will fail to source /dev/null (special files
  2677. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2678. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2680. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2681. case $cache_file in
  2682. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2683. *) . "./$cache_file";;
  2684. esac
  2685. fi
  2686. else
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2688. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2689. >$cache_file
  2690. fi
  2691. as_fn_append ac_header_list " sys/time.h"
  2692. as_fn_append ac_header_list " unistd.h"
  2693. as_fn_append ac_func_list " alarm"
  2694. as_fn_append ac_header_list " stdlib.h"
  2695. as_fn_append ac_header_list " sys/param.h"
  2696. # Check that the precious variables saved in the cache have kept the same
  2697. # value.
  2698. ac_cache_corrupted=false
  2699. for ac_var in $ac_precious_vars; do
  2700. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2701. eval ac_new_set=\$ac_env_${ac_var}_set
  2702. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2703. eval ac_new_val=\$ac_env_${ac_var}_value
  2704. case $ac_old_set,$ac_new_set in
  2705. set,)
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2707. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2708. ac_cache_corrupted=: ;;
  2709. ,set)
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2711. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2712. ac_cache_corrupted=: ;;
  2713. ,);;
  2714. *)
  2715. if test "x$ac_old_val" != "x$ac_new_val"; then
  2716. # differences in whitespace do not lead to failure.
  2717. ac_old_val_w=`echo x $ac_old_val`
  2718. ac_new_val_w=`echo x $ac_new_val`
  2719. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2721. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2722. ac_cache_corrupted=:
  2723. else
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2725. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2726. eval $ac_var=\$ac_old_val
  2727. fi
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2729. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2731. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2732. fi;;
  2733. esac
  2734. # Pass precious variables to config.status.
  2735. if test "$ac_new_set" = set; then
  2736. case $ac_new_val in
  2737. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2738. *) ac_arg=$ac_var=$ac_new_val ;;
  2739. esac
  2740. case " $ac_configure_args " in
  2741. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2742. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2743. esac
  2744. fi
  2745. done
  2746. if $ac_cache_corrupted; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2748. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2750. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2751. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2752. fi
  2753. ## -------------------- ##
  2754. ## Main body of script. ##
  2755. ## -------------------- ##
  2756. ac_ext=c
  2757. ac_cpp='$CPP $CPPFLAGS'
  2758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2761. ac_config_headers="$ac_config_headers src/config.h"
  2762. ac_aux_dir=
  2763. for ac_dir in config "$srcdir"/config; do
  2764. if test -f "$ac_dir/install-sh"; then
  2765. ac_aux_dir=$ac_dir
  2766. ac_install_sh="$ac_aux_dir/install-sh -c"
  2767. break
  2768. elif test -f "$ac_dir/install.sh"; then
  2769. ac_aux_dir=$ac_dir
  2770. ac_install_sh="$ac_aux_dir/install.sh -c"
  2771. break
  2772. elif test -f "$ac_dir/shtool"; then
  2773. ac_aux_dir=$ac_dir
  2774. ac_install_sh="$ac_aux_dir/shtool install -c"
  2775. break
  2776. fi
  2777. done
  2778. if test -z "$ac_aux_dir"; then
  2779. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2780. fi
  2781. # These three variables are undocumented and unsupported,
  2782. # and are intended to be withdrawn in a future Autoconf release.
  2783. # They can cause serious problems if a builder's source tree is in a directory
  2784. # whose full name contains unusual characters.
  2785. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2786. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2787. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2789. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2790. # Check whether --enable-maintainer-mode was given.
  2791. if test "${enable_maintainer_mode+set}" = set; then :
  2792. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2793. else
  2794. USE_MAINTAINER_MODE=yes
  2795. fi
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2797. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2798. if test $USE_MAINTAINER_MODE = yes; then
  2799. MAINTAINER_MODE_TRUE=
  2800. MAINTAINER_MODE_FALSE='#'
  2801. else
  2802. MAINTAINER_MODE_TRUE='#'
  2803. MAINTAINER_MODE_FALSE=
  2804. fi
  2805. MAINT=$MAINTAINER_MODE_TRUE
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2807. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2808. # Check whether --with-dmalloc was given.
  2809. if test "${with_dmalloc+set}" = set; then :
  2810. withval=$with_dmalloc; if test "$withval" = yes; then
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2812. $as_echo "yes" >&6; }
  2813. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2814. LIBS="$LIBS -ldmalloc"
  2815. LDFLAGS="$LDFLAGS -g"
  2816. else
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. fi
  2820. else
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2822. $as_echo "no" >&6; }
  2823. fi
  2824. MAINTAINER_AUTOGEN_VERSION=5.18.16
  2825. TCPREPLAY_VERSION=$PACKAGE_VERSION
  2826. TCPREPLAY_RELEASE=1
  2827. # Make sure we can run config.sub.
  2828. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2829. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2831. $as_echo_n "checking build system type... " >&6; }
  2832. if ${ac_cv_build+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. ac_build_alias=$build_alias
  2836. test "x$ac_build_alias" = x &&
  2837. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2838. test "x$ac_build_alias" = x &&
  2839. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2840. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2841. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2844. $as_echo "$ac_cv_build" >&6; }
  2845. case $ac_cv_build in
  2846. *-*-*) ;;
  2847. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2848. esac
  2849. build=$ac_cv_build
  2850. ac_save_IFS=$IFS; IFS='-'
  2851. set x $ac_cv_build
  2852. shift
  2853. build_cpu=$1
  2854. build_vendor=$2
  2855. shift; shift
  2856. # Remember, the first character of IFS is used to create $*,
  2857. # except with old shells:
  2858. build_os=$*
  2859. IFS=$ac_save_IFS
  2860. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2862. $as_echo_n "checking host system type... " >&6; }
  2863. if ${ac_cv_host+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. if test "x$host_alias" = x; then
  2867. ac_cv_host=$ac_cv_build
  2868. else
  2869. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2870. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2871. fi
  2872. fi
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2874. $as_echo "$ac_cv_host" >&6; }
  2875. case $ac_cv_host in
  2876. *-*-*) ;;
  2877. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2878. esac
  2879. host=$ac_cv_host
  2880. ac_save_IFS=$IFS; IFS='-'
  2881. set x $ac_cv_host
  2882. shift
  2883. host_cpu=$1
  2884. host_vendor=$2
  2885. shift; shift
  2886. # Remember, the first character of IFS is used to create $*,
  2887. # except with old shells:
  2888. host_os=$*
  2889. IFS=$ac_save_IFS
  2890. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2892. $as_echo_n "checking target system type... " >&6; }
  2893. if ${ac_cv_target+:} false; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. if test "x$target_alias" = x; then
  2897. ac_cv_target=$ac_cv_host
  2898. else
  2899. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2900. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2901. fi
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2904. $as_echo "$ac_cv_target" >&6; }
  2905. case $ac_cv_target in
  2906. *-*-*) ;;
  2907. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2908. esac
  2909. target=$ac_cv_target
  2910. ac_save_IFS=$IFS; IFS='-'
  2911. set x $ac_cv_target
  2912. shift
  2913. target_cpu=$1
  2914. target_vendor=$2
  2915. shift; shift
  2916. # Remember, the first character of IFS is used to create $*,
  2917. # except with old shells:
  2918. target_os=$*
  2919. IFS=$ac_save_IFS
  2920. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2921. # The aliases save the names the user supplied, while $host etc.
  2922. # will get canonicalized.
  2923. test -n "$target_alias" &&
  2924. test "$program_prefix$program_suffix$program_transform_name" = \
  2925. NONENONEs,x,x, &&
  2926. program_prefix=${target_alias}-
  2927. CROSS_ARCH=
  2928. CROSS_LD=
  2929. build_arch=$(echo $MACHTYPE | cut -d'-' -f1)
  2930. if test "$cross_compiling" = "yes" ; then
  2931. CROSS_ARCH="ARCH=$host_cpu"
  2932. CROSS_LD="LD=$LD"
  2933. fi
  2934. # Check whether --with-macos-sdk was given.
  2935. if test "${with_macos_sdk+set}" = set; then :
  2936. withval=$with_macos_sdk;
  2937. fi
  2938. case "$host_os" in
  2939. darwin*) # Mac OS X or iOS
  2940. # If no --with-macos-sdk option is given, look for the latestq SDK
  2941. # The intent is that for "most" Mac-based developers, a suitable
  2942. # SDK will be found automatically without any configure options.
  2943. # For developers with a current Xcode, the lowest-numbered SDK
  2944. # higher than or equal to the minimum required should be found.
  2945. # To find a list of available version run `xcodebuild -showsdks`
  2946. MULTIARCH=${host_cpu}-${host_os}
  2947. unset MACOSX_SDK_PATH
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what macOS compiler to use" >&5
  2949. $as_echo_n "checking what macOS compiler to use... " >&6; }
  2950. if test -n "$with_macos_sdk"; then
  2951. MACOSX_SDK_PATH=$(xcrun --sdk macosx${with_macos_sdk} --show-sdk-path 2> /dev/null)
  2952. if test -z "$MACOSX_SDK_PATH" ; then
  2953. as_fn_error $? "could not find SDK ${with_macos_sdk} for macos-${MULTIARCH}" "$LINENO" 5
  2954. fi
  2955. else
  2956. MACOSX_SDK_PATH=$(xcrun --show-sdk-path 2> /dev/null)
  2957. if test -z "$MACOSX_SDK_PATH" ; then
  2958. for _macos_sdk_major in $(seq 15 -1 10); do
  2959. for _macos_sdk_minor in $(seq 20 -1 0); do
  2960. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2961. MACOSX_SDK_PATH=$(xcrun --sdk macosx${_macos_sdk_version} --show-sdk-path 2> /dev/null)
  2962. if test -d "$_macos_sdk_path" ; then
  2963. break 2
  2964. fi
  2965. done
  2966. done
  2967. if test -z "$MACOSX_SDK_PATH"; then
  2968. for _macos_sdk_major in $(seq 15 -1 10); do
  2969. for _macos_sdk_minor in $(seq 20 -1 0); do
  2970. _macos_sdk_version=$_macos_sdk_major.$_macos_sdk_minor
  2971. MACOSX_SDK_PATH=$(xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${_macos_sdk_version}.sdk
  2972. if test -d "$MACOSX_SDK_PATH"; then
  2973. break 2
  2974. fi
  2975. MACOSX_SDK_PATH=$(xcode-select -print-path)/SDKs/MacOSX${_macos_sdk_version}.sdk
  2976. if test -d "$MACOSX_SDK_PATH"; then
  2977. break 2
  2978. fi
  2979. done
  2980. done
  2981. fi
  2982. fi
  2983. fi
  2984. if test -d "$MACOSX_SDK_PATH"; then
  2985. CC="$(xcrun -find clang) -m64 -isysroot $MACOSX_SDK_PATH"
  2986. INSTALL_NAME_TOOL=$(xcrun -find install_name_tool)
  2987. AR=$(xcrun -find ar)
  2988. NM=$(xcrun -find nm)
  2989. STRIP=$(xcrun -find strip)
  2990. LIBTOOL=$(xcrun -find libtool)
  2991. RANLIB=$(xcrun -find ranlib)
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MACOSX_SDK_PATH}" >&5
  2993. $as_echo "${MACOSX_SDK_PATH}" >&6; }
  2994. else
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: legacy" >&5
  2996. $as_echo "legacy" >&6; }
  2997. fi
  2998. ;;
  2999. Linux*)
  3000. MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) 2> /dev/null || ${host_cpu}-${host_os}
  3001. ;;
  3002. *)
  3003. MULTIARCH=${host_cpu}-${host_os}
  3004. ;;
  3005. esac
  3006. # Note that the OS X libtool command is unrelated to GNU libtool
  3007. # Check whether --with-pfring-lib was given.
  3008. if test "${with_pfring_lib+set}" = set; then :
  3009. withval=$with_pfring_lib;
  3010. fi
  3011. have_cygwin=no
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  3013. $as_echo_n "checking for cygwin development environment... " >&6; }
  3014. if test $(echo $target | grep -c cygwin) -gt 0 ; then
  3015. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3017. $as_echo "yes" >&6; }
  3018. have_cygwin=yes
  3019. else
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3021. $as_echo "no" >&6; }
  3022. fi
  3023. am__api_version='1.16'
  3024. # Find a good install program. We prefer a C program (faster),
  3025. # so one script is as good as another. But avoid the broken or
  3026. # incompatible versions:
  3027. # SysV /etc/install, /usr/sbin/install
  3028. # SunOS /usr/etc/install
  3029. # IRIX /sbin/install
  3030. # AIX /bin/install
  3031. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3032. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3033. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3034. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3035. # OS/2's system install, which has a completely different semantic
  3036. # ./install, which can be erroneously created by make from ./install.sh.
  3037. # Reject install programs that cannot install multiple files.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3039. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3040. if test -z "$INSTALL"; then
  3041. if ${ac_cv_path_install+:} false; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3045. for as_dir in $PATH
  3046. do
  3047. IFS=$as_save_IFS
  3048. test -z "$as_dir" && as_dir=.
  3049. # Account for people who put trailing slashes in PATH elements.
  3050. case $as_dir/ in #((
  3051. ./ | .// | /[cC]/* | \
  3052. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3053. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3054. /usr/ucb/* ) ;;
  3055. *)
  3056. # OSF1 and SCO ODT 3.0 have their own names for install.
  3057. # Don't use installbsd from OSF since it installs stuff as root
  3058. # by default.
  3059. for ac_prog in ginstall scoinst install; do
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3062. if test $ac_prog = install &&
  3063. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3064. # AIX install. It has an incompatible calling convention.
  3065. :
  3066. elif test $ac_prog = install &&
  3067. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3068. # program-specific install script used by HP pwplus--don't use.
  3069. :
  3070. else
  3071. rm -rf conftest.one conftest.two conftest.dir
  3072. echo one > conftest.one
  3073. echo two > conftest.two
  3074. mkdir conftest.dir
  3075. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3076. test -s conftest.one && test -s conftest.two &&
  3077. test -s conftest.dir/conftest.one &&
  3078. test -s conftest.dir/conftest.two
  3079. then
  3080. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3081. break 3
  3082. fi
  3083. fi
  3084. fi
  3085. done
  3086. done
  3087. ;;
  3088. esac
  3089. done
  3090. IFS=$as_save_IFS
  3091. rm -rf conftest.one conftest.two conftest.dir
  3092. fi
  3093. if test "${ac_cv_path_install+set}" = set; then
  3094. INSTALL=$ac_cv_path_install
  3095. else
  3096. # As a last resort, use the slow shell script. Don't cache a
  3097. # value for INSTALL within a source directory, because that will
  3098. # break other packages using the cache if that directory is
  3099. # removed, or if the value is a relative name.
  3100. INSTALL=$ac_install_sh
  3101. fi
  3102. fi
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3104. $as_echo "$INSTALL" >&6; }
  3105. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3106. # It thinks the first close brace ends the variable substitution.
  3107. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3108. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3109. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3111. $as_echo_n "checking whether build environment is sane... " >&6; }
  3112. # Reject unsafe characters in $srcdir or the absolute working directory
  3113. # name. Accept space and tab only in the latter.
  3114. am_lf='
  3115. '
  3116. case `pwd` in
  3117. *[\\\"\#\$\&\'\`$am_lf]*)
  3118. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3119. esac
  3120. case $srcdir in
  3121. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3122. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3123. esac
  3124. # Do 'set' in a subshell so we don't clobber the current shell's
  3125. # arguments. Must try -L first in case configure is actually a
  3126. # symlink; some systems play weird games with the mod time of symlinks
  3127. # (eg FreeBSD returns the mod time of the symlink's containing
  3128. # directory).
  3129. if (
  3130. am_has_slept=no
  3131. for am_try in 1 2; do
  3132. echo "timestamp, slept: $am_has_slept" > conftest.file
  3133. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3134. if test "$*" = "X"; then
  3135. # -L didn't work.
  3136. set X `ls -t "$srcdir/configure" conftest.file`
  3137. fi
  3138. if test "$*" != "X $srcdir/configure conftest.file" \
  3139. && test "$*" != "X conftest.file $srcdir/configure"; then
  3140. # If neither matched, then we have a broken ls. This can happen
  3141. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3142. # broken ls alias from the environment. This has actually
  3143. # happened. Such a system could not be considered "sane".
  3144. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3145. alias in your environment" "$LINENO" 5
  3146. fi
  3147. if test "$2" = conftest.file || test $am_try -eq 2; then
  3148. break
  3149. fi
  3150. # Just in case.
  3151. sleep 1
  3152. am_has_slept=yes
  3153. done
  3154. test "$2" = conftest.file
  3155. )
  3156. then
  3157. # Ok.
  3158. :
  3159. else
  3160. as_fn_error $? "newly created file is older than distributed files!
  3161. Check your system clock" "$LINENO" 5
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3164. $as_echo "yes" >&6; }
  3165. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3166. # generated files are strictly newer.
  3167. am_sleep_pid=
  3168. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3169. ( sleep 1 ) &
  3170. am_sleep_pid=$!
  3171. fi
  3172. rm -f conftest.file
  3173. test "$program_prefix" != NONE &&
  3174. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3175. # Use a double $ so make ignores it.
  3176. test "$program_suffix" != NONE &&
  3177. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3178. # Double any \ or $.
  3179. # By default was `s,x,x', remove it if useless.
  3180. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3181. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3182. # Expand $ac_aux_dir to an absolute path.
  3183. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3184. if test x"${MISSING+set}" != xset; then
  3185. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3186. fi
  3187. # Use eval to expand $SHELL
  3188. if eval "$MISSING --is-lightweight"; then
  3189. am_missing_run="$MISSING "
  3190. else
  3191. am_missing_run=
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3193. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3194. fi
  3195. if test x"${install_sh+set}" != xset; then
  3196. case $am_aux_dir in
  3197. *\ * | *\ *)
  3198. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3199. *)
  3200. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3201. esac
  3202. fi
  3203. # Installed binaries are usually stripped using 'strip' when the user
  3204. # run "make install-strip". However 'strip' might not be the right
  3205. # tool to use in cross-compilation environments, therefore Automake
  3206. # will honor the 'STRIP' environment variable to overrule this program.
  3207. if test "$cross_compiling" != no; then
  3208. if test -n "$ac_tool_prefix"; then
  3209. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3210. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3212. $as_echo_n "checking for $ac_word... " >&6; }
  3213. if ${ac_cv_prog_STRIP+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. if test -n "$STRIP"; then
  3217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3218. else
  3219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3220. for as_dir in $PATH
  3221. do
  3222. IFS=$as_save_IFS
  3223. test -z "$as_dir" && as_dir=.
  3224. for ac_exec_ext in '' $ac_executable_extensions; do
  3225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3226. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3228. break 2
  3229. fi
  3230. done
  3231. done
  3232. IFS=$as_save_IFS
  3233. fi
  3234. fi
  3235. STRIP=$ac_cv_prog_STRIP
  3236. if test -n "$STRIP"; then
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3238. $as_echo "$STRIP" >&6; }
  3239. else
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3241. $as_echo "no" >&6; }
  3242. fi
  3243. fi
  3244. if test -z "$ac_cv_prog_STRIP"; then
  3245. ac_ct_STRIP=$STRIP
  3246. # Extract the first word of "strip", so it can be a program name with args.
  3247. set dummy strip; ac_word=$2
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3249. $as_echo_n "checking for $ac_word... " >&6; }
  3250. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3251. $as_echo_n "(cached) " >&6
  3252. else
  3253. if test -n "$ac_ct_STRIP"; then
  3254. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3255. else
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3263. ac_cv_prog_ac_ct_STRIP="strip"
  3264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. IFS=$as_save_IFS
  3270. fi
  3271. fi
  3272. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3273. if test -n "$ac_ct_STRIP"; then
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3275. $as_echo "$ac_ct_STRIP" >&6; }
  3276. else
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3278. $as_echo "no" >&6; }
  3279. fi
  3280. if test "x$ac_ct_STRIP" = x; then
  3281. STRIP=":"
  3282. else
  3283. case $cross_compiling:$ac_tool_warned in
  3284. yes:)
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3287. ac_tool_warned=yes ;;
  3288. esac
  3289. STRIP=$ac_ct_STRIP
  3290. fi
  3291. else
  3292. STRIP="$ac_cv_prog_STRIP"
  3293. fi
  3294. fi
  3295. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3297. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3298. if test -z "$MKDIR_P"; then
  3299. if ${ac_cv_path_mkdir+:} false; then :
  3300. $as_echo_n "(cached) " >&6
  3301. else
  3302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3303. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3304. do
  3305. IFS=$as_save_IFS
  3306. test -z "$as_dir" && as_dir=.
  3307. for ac_prog in mkdir gmkdir; do
  3308. for ac_exec_ext in '' $ac_executable_extensions; do
  3309. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3310. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3311. 'mkdir (GNU coreutils) '* | \
  3312. 'mkdir (coreutils) '* | \
  3313. 'mkdir (fileutils) '4.1*)
  3314. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3315. break 3;;
  3316. esac
  3317. done
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. test -d ./--version && rmdir ./--version
  3323. if test "${ac_cv_path_mkdir+set}" = set; then
  3324. MKDIR_P="$ac_cv_path_mkdir -p"
  3325. else
  3326. # As a last resort, use the slow shell script. Don't cache a
  3327. # value for MKDIR_P within a source directory, because that will
  3328. # break other packages using the cache if that directory is
  3329. # removed, or if the value is a relative name.
  3330. MKDIR_P="$ac_install_sh -d"
  3331. fi
  3332. fi
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3334. $as_echo "$MKDIR_P" >&6; }
  3335. for ac_prog in gawk mawk nawk awk
  3336. do
  3337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3338. set dummy $ac_prog; ac_word=$2
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3340. $as_echo_n "checking for $ac_word... " >&6; }
  3341. if ${ac_cv_prog_AWK+:} false; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. if test -n "$AWK"; then
  3345. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3346. else
  3347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3348. for as_dir in $PATH
  3349. do
  3350. IFS=$as_save_IFS
  3351. test -z "$as_dir" && as_dir=.
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3354. ac_cv_prog_AWK="$ac_prog"
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. AWK=$ac_cv_prog_AWK
  3364. if test -n "$AWK"; then
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3366. $as_echo "$AWK" >&6; }
  3367. else
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. $as_echo "no" >&6; }
  3370. fi
  3371. test -n "$AWK" && break
  3372. done
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3374. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3375. set x ${MAKE-make}
  3376. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3377. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3378. $as_echo_n "(cached) " >&6
  3379. else
  3380. cat >conftest.make <<\_ACEOF
  3381. SHELL = /bin/sh
  3382. all:
  3383. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3384. _ACEOF
  3385. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3386. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3387. *@@@%%%=?*=@@@%%%*)
  3388. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3389. *)
  3390. eval ac_cv_prog_make_${ac_make}_set=no;;
  3391. esac
  3392. rm -f conftest.make
  3393. fi
  3394. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3396. $as_echo "yes" >&6; }
  3397. SET_MAKE=
  3398. else
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3400. $as_echo "no" >&6; }
  3401. SET_MAKE="MAKE=${MAKE-make}"
  3402. fi
  3403. rm -rf .tst 2>/dev/null
  3404. mkdir .tst 2>/dev/null
  3405. if test -d .tst; then
  3406. am__leading_dot=.
  3407. else
  3408. am__leading_dot=_
  3409. fi
  3410. rmdir .tst 2>/dev/null
  3411. # Check whether --enable-silent-rules was given.
  3412. if test "${enable_silent_rules+set}" = set; then :
  3413. enableval=$enable_silent_rules;
  3414. fi
  3415. case $enable_silent_rules in # (((
  3416. yes) AM_DEFAULT_VERBOSITY=0;;
  3417. no) AM_DEFAULT_VERBOSITY=1;;
  3418. *) AM_DEFAULT_VERBOSITY=1;;
  3419. esac
  3420. am_make=${MAKE-make}
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3422. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3423. if ${am_cv_make_support_nested_variables+:} false; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. if $as_echo 'TRUE=$(BAR$(V))
  3427. BAR0=false
  3428. BAR1=true
  3429. V=1
  3430. am__doit:
  3431. @$(TRUE)
  3432. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3433. am_cv_make_support_nested_variables=yes
  3434. else
  3435. am_cv_make_support_nested_variables=no
  3436. fi
  3437. fi
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3439. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3440. if test $am_cv_make_support_nested_variables = yes; then
  3441. AM_V='$(V)'
  3442. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3443. else
  3444. AM_V=$AM_DEFAULT_VERBOSITY
  3445. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3446. fi
  3447. AM_BACKSLASH='\'
  3448. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3449. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3450. # is not polluted with repeated "-I."
  3451. am__isrc=' -I$(srcdir)'
  3452. # test to see if srcdir already configured
  3453. if test -f $srcdir/config.status; then
  3454. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3455. fi
  3456. fi
  3457. # test whether we have cygpath
  3458. if test -z "$CYGPATH_W"; then
  3459. if (cygpath --version) >/dev/null 2>/dev/null; then
  3460. CYGPATH_W='cygpath -w'
  3461. else
  3462. CYGPATH_W=echo
  3463. fi
  3464. fi
  3465. # Define the identity of the package.
  3466. PACKAGE='tcpreplay'
  3467. VERSION='4.4.4'
  3468. cat >>confdefs.h <<_ACEOF
  3469. #define PACKAGE "$PACKAGE"
  3470. _ACEOF
  3471. cat >>confdefs.h <<_ACEOF
  3472. #define VERSION "$VERSION"
  3473. _ACEOF
  3474. # Some tools Automake needs.
  3475. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3476. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3477. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3478. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3479. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3480. # For better backward compatibility. To be removed once Automake 1.9.x
  3481. # dies out for good. For more background, see:
  3482. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3483. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3484. mkdir_p='$(MKDIR_P)'
  3485. # We need awk for the "check" target (and possibly the TAP driver). The
  3486. # system "awk" is bad on some platforms.
  3487. # Always define AMTAR for backward compatibility. Yes, it's still used
  3488. # in the wild :-( We should find a proper way to deprecate it ...
  3489. AMTAR='$${TAR-tar}'
  3490. # We'll loop over all known methods to create a tar archive until one works.
  3491. _am_tools='gnutar pax cpio none'
  3492. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3493. # POSIX will say in a future version that running "rm -f" with no argument
  3494. # is OK; and we want to be able to make that assumption in our Makefile
  3495. # recipes. So use an aggressive probe to check that the usage we want is
  3496. # actually supported "in the wild" to an acceptable degree.
  3497. # See automake bug#10828.
  3498. # To make any issue more visible, cause the running configure to be aborted
  3499. # by default if the 'rm' program in use doesn't match our expectations; the
  3500. # user can still override this though.
  3501. if rm -f && rm -fr && rm -rf; then : OK; else
  3502. cat >&2 <<'END'
  3503. Oops!
  3504. Your 'rm' program seems unable to run without file operands specified
  3505. on the command line, even when the '-f' option is present. This is contrary
  3506. to the behaviour of most rm programs out there, and not conforming with
  3507. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3508. Please tell bug-automake@gnu.org about your system, including the value
  3509. of your $PATH and any error possibly output before this message. This
  3510. can help us improve future automake versions.
  3511. END
  3512. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3513. echo 'Configuration will proceed anyway, since you have set the' >&2
  3514. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3515. echo >&2
  3516. else
  3517. cat >&2 <<'END'
  3518. Aborting the configuration process, to ensure you take notice of the issue.
  3519. You can download and install GNU coreutils to get an 'rm' implementation
  3520. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3521. If you want to complete the configuration process using your problematic
  3522. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3523. to "yes", and re-run configure.
  3524. END
  3525. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3526. fi
  3527. fi
  3528. # Check whether --enable-silent-rules was given.
  3529. if test "${enable_silent_rules+set}" = set; then :
  3530. enableval=$enable_silent_rules;
  3531. fi
  3532. case $enable_silent_rules in # (((
  3533. yes) AM_DEFAULT_VERBOSITY=0;;
  3534. no) AM_DEFAULT_VERBOSITY=1;;
  3535. *) AM_DEFAULT_VERBOSITY=0;;
  3536. esac
  3537. am_make=${MAKE-make}
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3539. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3540. if ${am_cv_make_support_nested_variables+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if $as_echo 'TRUE=$(BAR$(V))
  3544. BAR0=false
  3545. BAR1=true
  3546. V=1
  3547. am__doit:
  3548. @$(TRUE)
  3549. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3550. am_cv_make_support_nested_variables=yes
  3551. else
  3552. am_cv_make_support_nested_variables=no
  3553. fi
  3554. fi
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3556. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3557. if test $am_cv_make_support_nested_variables = yes; then
  3558. AM_V='$(V)'
  3559. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3560. else
  3561. AM_V=$AM_DEFAULT_VERBOSITY
  3562. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3563. fi
  3564. AM_BACKSLASH='\'
  3565. DEPDIR="${am__leading_dot}deps"
  3566. ac_config_commands="$ac_config_commands depfiles"
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3568. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3569. cat > confinc.mk << 'END'
  3570. am__doit:
  3571. @echo this is the am__doit target >confinc.out
  3572. .PHONY: am__doit
  3573. END
  3574. am__include="#"
  3575. am__quote=
  3576. # BSD make does it like this.
  3577. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3578. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3579. echo 'include confinc.mk # ignored' > confmf.GNU
  3580. _am_result=no
  3581. for s in GNU BSD; do
  3582. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3583. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }
  3587. case $?:`cat confinc.out 2>/dev/null` in #(
  3588. '0:this is the am__doit target') :
  3589. case $s in #(
  3590. BSD) :
  3591. am__include='.include' am__quote='"' ;; #(
  3592. *) :
  3593. am__include='include' am__quote='' ;;
  3594. esac ;; #(
  3595. *) :
  3596. ;;
  3597. esac
  3598. if test "$am__include" != "#"; then
  3599. _am_result="yes ($s style)"
  3600. break
  3601. fi
  3602. done
  3603. rm -f confinc.* confmf.*
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3605. $as_echo "${_am_result}" >&6; }
  3606. # Check whether --enable-dependency-tracking was given.
  3607. if test "${enable_dependency_tracking+set}" = set; then :
  3608. enableval=$enable_dependency_tracking;
  3609. fi
  3610. if test "x$enable_dependency_tracking" != xno; then
  3611. am_depcomp="$ac_aux_dir/depcomp"
  3612. AMDEPBACKSLASH='\'
  3613. am__nodep='_no'
  3614. fi
  3615. if test "x$enable_dependency_tracking" != xno; then
  3616. AMDEP_TRUE=
  3617. AMDEP_FALSE='#'
  3618. else
  3619. AMDEP_TRUE='#'
  3620. AMDEP_FALSE=
  3621. fi
  3622. ac_ext=c
  3623. ac_cpp='$CPP $CPPFLAGS'
  3624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3627. if test -n "$ac_tool_prefix"; then
  3628. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3629. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3631. $as_echo_n "checking for $ac_word... " >&6; }
  3632. if ${ac_cv_prog_CC+:} false; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. if test -n "$CC"; then
  3636. ac_cv_prog_CC="$CC" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3645. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. fi
  3653. fi
  3654. CC=$ac_cv_prog_CC
  3655. if test -n "$CC"; then
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3657. $as_echo "$CC" >&6; }
  3658. else
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3660. $as_echo "no" >&6; }
  3661. fi
  3662. fi
  3663. if test -z "$ac_cv_prog_CC"; then
  3664. ac_ct_CC=$CC
  3665. # Extract the first word of "gcc", so it can be a program name with args.
  3666. set dummy gcc; ac_word=$2
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3668. $as_echo_n "checking for $ac_word... " >&6; }
  3669. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. if test -n "$ac_ct_CC"; then
  3673. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3674. else
  3675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3676. for as_dir in $PATH
  3677. do
  3678. IFS=$as_save_IFS
  3679. test -z "$as_dir" && as_dir=.
  3680. for ac_exec_ext in '' $ac_executable_extensions; do
  3681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3682. ac_cv_prog_ac_ct_CC="gcc"
  3683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3684. break 2
  3685. fi
  3686. done
  3687. done
  3688. IFS=$as_save_IFS
  3689. fi
  3690. fi
  3691. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3692. if test -n "$ac_ct_CC"; then
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3694. $as_echo "$ac_ct_CC" >&6; }
  3695. else
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3697. $as_echo "no" >&6; }
  3698. fi
  3699. if test "x$ac_ct_CC" = x; then
  3700. CC=""
  3701. else
  3702. case $cross_compiling:$ac_tool_warned in
  3703. yes:)
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3706. ac_tool_warned=yes ;;
  3707. esac
  3708. CC=$ac_ct_CC
  3709. fi
  3710. else
  3711. CC="$ac_cv_prog_CC"
  3712. fi
  3713. if test -z "$CC"; then
  3714. if test -n "$ac_tool_prefix"; then
  3715. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3716. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3718. $as_echo_n "checking for $ac_word... " >&6; }
  3719. if ${ac_cv_prog_CC+:} false; then :
  3720. $as_echo_n "(cached) " >&6
  3721. else
  3722. if test -n "$CC"; then
  3723. ac_cv_prog_CC="$CC" # Let the user override the test.
  3724. else
  3725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3726. for as_dir in $PATH
  3727. do
  3728. IFS=$as_save_IFS
  3729. test -z "$as_dir" && as_dir=.
  3730. for ac_exec_ext in '' $ac_executable_extensions; do
  3731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3732. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3734. break 2
  3735. fi
  3736. done
  3737. done
  3738. IFS=$as_save_IFS
  3739. fi
  3740. fi
  3741. CC=$ac_cv_prog_CC
  3742. if test -n "$CC"; then
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3744. $as_echo "$CC" >&6; }
  3745. else
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3747. $as_echo "no" >&6; }
  3748. fi
  3749. fi
  3750. fi
  3751. if test -z "$CC"; then
  3752. # Extract the first word of "cc", so it can be a program name with args.
  3753. set dummy cc; ac_word=$2
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3755. $as_echo_n "checking for $ac_word... " >&6; }
  3756. if ${ac_cv_prog_CC+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. if test -n "$CC"; then
  3760. ac_cv_prog_CC="$CC" # Let the user override the test.
  3761. else
  3762. ac_prog_rejected=no
  3763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3764. for as_dir in $PATH
  3765. do
  3766. IFS=$as_save_IFS
  3767. test -z "$as_dir" && as_dir=.
  3768. for ac_exec_ext in '' $ac_executable_extensions; do
  3769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3770. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3771. ac_prog_rejected=yes
  3772. continue
  3773. fi
  3774. ac_cv_prog_CC="cc"
  3775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3776. break 2
  3777. fi
  3778. done
  3779. done
  3780. IFS=$as_save_IFS
  3781. if test $ac_prog_rejected = yes; then
  3782. # We found a bogon in the path, so make sure we never use it.
  3783. set dummy $ac_cv_prog_CC
  3784. shift
  3785. if test $# != 0; then
  3786. # We chose a different compiler from the bogus one.
  3787. # However, it has the same basename, so the bogon will be chosen
  3788. # first if we set CC to just the basename; use the full file name.
  3789. shift
  3790. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3791. fi
  3792. fi
  3793. fi
  3794. fi
  3795. CC=$ac_cv_prog_CC
  3796. if test -n "$CC"; then
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3798. $as_echo "$CC" >&6; }
  3799. else
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3801. $as_echo "no" >&6; }
  3802. fi
  3803. fi
  3804. if test -z "$CC"; then
  3805. if test -n "$ac_tool_prefix"; then
  3806. for ac_prog in cl.exe
  3807. do
  3808. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3809. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3811. $as_echo_n "checking for $ac_word... " >&6; }
  3812. if ${ac_cv_prog_CC+:} false; then :
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. if test -n "$CC"; then
  3816. ac_cv_prog_CC="$CC" # Let the user override the test.
  3817. else
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_exec_ext in '' $ac_executable_extensions; do
  3824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3825. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3827. break 2
  3828. fi
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. fi
  3833. fi
  3834. CC=$ac_cv_prog_CC
  3835. if test -n "$CC"; then
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3837. $as_echo "$CC" >&6; }
  3838. else
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. $as_echo "no" >&6; }
  3841. fi
  3842. test -n "$CC" && break
  3843. done
  3844. fi
  3845. if test -z "$CC"; then
  3846. ac_ct_CC=$CC
  3847. for ac_prog in cl.exe
  3848. do
  3849. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3850. set dummy $ac_prog; ac_word=$2
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3852. $as_echo_n "checking for $ac_word... " >&6; }
  3853. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. if test -n "$ac_ct_CC"; then
  3857. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3858. else
  3859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3860. for as_dir in $PATH
  3861. do
  3862. IFS=$as_save_IFS
  3863. test -z "$as_dir" && as_dir=.
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3866. ac_cv_prog_ac_ct_CC="$ac_prog"
  3867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3868. break 2
  3869. fi
  3870. done
  3871. done
  3872. IFS=$as_save_IFS
  3873. fi
  3874. fi
  3875. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3876. if test -n "$ac_ct_CC"; then
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3878. $as_echo "$ac_ct_CC" >&6; }
  3879. else
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3881. $as_echo "no" >&6; }
  3882. fi
  3883. test -n "$ac_ct_CC" && break
  3884. done
  3885. if test "x$ac_ct_CC" = x; then
  3886. CC=""
  3887. else
  3888. case $cross_compiling:$ac_tool_warned in
  3889. yes:)
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3892. ac_tool_warned=yes ;;
  3893. esac
  3894. CC=$ac_ct_CC
  3895. fi
  3896. fi
  3897. fi
  3898. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3900. as_fn_error $? "no acceptable C compiler found in \$PATH
  3901. See \`config.log' for more details" "$LINENO" 5; }
  3902. # Provide some information about the compiler.
  3903. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3904. set X $ac_compile
  3905. ac_compiler=$2
  3906. for ac_option in --version -v -V -qversion; do
  3907. { { ac_try="$ac_compiler $ac_option >&5"
  3908. case "(($ac_try" in
  3909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3910. *) ac_try_echo=$ac_try;;
  3911. esac
  3912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3913. $as_echo "$ac_try_echo"; } >&5
  3914. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3915. ac_status=$?
  3916. if test -s conftest.err; then
  3917. sed '10a\
  3918. ... rest of stderr output deleted ...
  3919. 10q' conftest.err >conftest.er1
  3920. cat conftest.er1 >&5
  3921. fi
  3922. rm -f conftest.er1 conftest.err
  3923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3924. test $ac_status = 0; }
  3925. done
  3926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h. */
  3928. int
  3929. main ()
  3930. {
  3931. ;
  3932. return 0;
  3933. }
  3934. _ACEOF
  3935. ac_clean_files_save=$ac_clean_files
  3936. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3937. # Try to create an executable without -o first, disregard a.out.
  3938. # It will help us diagnose broken compilers, and finding out an intuition
  3939. # of exeext.
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3941. $as_echo_n "checking whether the C compiler works... " >&6; }
  3942. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3943. # The possible output files:
  3944. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3945. ac_rmfiles=
  3946. for ac_file in $ac_files
  3947. do
  3948. case $ac_file in
  3949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3950. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3951. esac
  3952. done
  3953. rm -f $ac_rmfiles
  3954. if { { ac_try="$ac_link_default"
  3955. case "(($ac_try" in
  3956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3957. *) ac_try_echo=$ac_try;;
  3958. esac
  3959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3960. $as_echo "$ac_try_echo"; } >&5
  3961. (eval "$ac_link_default") 2>&5
  3962. ac_status=$?
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3964. test $ac_status = 0; }; then :
  3965. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3966. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3967. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3968. # so that the user can short-circuit this test for compilers unknown to
  3969. # Autoconf.
  3970. for ac_file in $ac_files ''
  3971. do
  3972. test -f "$ac_file" || continue
  3973. case $ac_file in
  3974. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3975. ;;
  3976. [ab].out )
  3977. # We found the default executable, but exeext='' is most
  3978. # certainly right.
  3979. break;;
  3980. *.* )
  3981. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3982. then :; else
  3983. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3984. fi
  3985. # We set ac_cv_exeext here because the later test for it is not
  3986. # safe: cross compilers may not add the suffix if given an `-o'
  3987. # argument, so we may need to know it at that point already.
  3988. # Even if this section looks crufty: it has the advantage of
  3989. # actually working.
  3990. break;;
  3991. * )
  3992. break;;
  3993. esac
  3994. done
  3995. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3996. else
  3997. ac_file=''
  3998. fi
  3999. if test -z "$ac_file"; then :
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4001. $as_echo "no" >&6; }
  4002. $as_echo "$as_me: failed program was:" >&5
  4003. sed 's/^/| /' conftest.$ac_ext >&5
  4004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4006. as_fn_error 77 "C compiler cannot create executables
  4007. See \`config.log' for more details" "$LINENO" 5; }
  4008. else
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4010. $as_echo "yes" >&6; }
  4011. fi
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4013. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4015. $as_echo "$ac_file" >&6; }
  4016. ac_exeext=$ac_cv_exeext
  4017. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4018. ac_clean_files=$ac_clean_files_save
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4020. $as_echo_n "checking for suffix of executables... " >&6; }
  4021. if { { ac_try="$ac_link"
  4022. case "(($ac_try" in
  4023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4024. *) ac_try_echo=$ac_try;;
  4025. esac
  4026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4027. $as_echo "$ac_try_echo"; } >&5
  4028. (eval "$ac_link") 2>&5
  4029. ac_status=$?
  4030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4031. test $ac_status = 0; }; then :
  4032. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4033. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4034. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4035. # `rm'.
  4036. for ac_file in conftest.exe conftest conftest.*; do
  4037. test -f "$ac_file" || continue
  4038. case $ac_file in
  4039. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4040. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4041. break;;
  4042. * ) break;;
  4043. esac
  4044. done
  4045. else
  4046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4048. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4049. See \`config.log' for more details" "$LINENO" 5; }
  4050. fi
  4051. rm -f conftest conftest$ac_cv_exeext
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4053. $as_echo "$ac_cv_exeext" >&6; }
  4054. rm -f conftest.$ac_ext
  4055. EXEEXT=$ac_cv_exeext
  4056. ac_exeext=$EXEEXT
  4057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end confdefs.h. */
  4059. #include <stdio.h>
  4060. int
  4061. main ()
  4062. {
  4063. FILE *f = fopen ("conftest.out", "w");
  4064. return ferror (f) || fclose (f) != 0;
  4065. ;
  4066. return 0;
  4067. }
  4068. _ACEOF
  4069. ac_clean_files="$ac_clean_files conftest.out"
  4070. # Check that the compiler produces executables we can run. If not, either
  4071. # the compiler is broken, or we cross compile.
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4073. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4074. if test "$cross_compiling" != yes; then
  4075. { { ac_try="$ac_link"
  4076. case "(($ac_try" in
  4077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4078. *) ac_try_echo=$ac_try;;
  4079. esac
  4080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4081. $as_echo "$ac_try_echo"; } >&5
  4082. (eval "$ac_link") 2>&5
  4083. ac_status=$?
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4085. test $ac_status = 0; }
  4086. if { ac_try='./conftest$ac_cv_exeext'
  4087. { { case "(($ac_try" in
  4088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4089. *) ac_try_echo=$ac_try;;
  4090. esac
  4091. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4092. $as_echo "$ac_try_echo"; } >&5
  4093. (eval "$ac_try") 2>&5
  4094. ac_status=$?
  4095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4096. test $ac_status = 0; }; }; then
  4097. cross_compiling=no
  4098. else
  4099. if test "$cross_compiling" = maybe; then
  4100. cross_compiling=yes
  4101. else
  4102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4104. as_fn_error $? "cannot run C compiled programs.
  4105. If you meant to cross compile, use \`--host'.
  4106. See \`config.log' for more details" "$LINENO" 5; }
  4107. fi
  4108. fi
  4109. fi
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4111. $as_echo "$cross_compiling" >&6; }
  4112. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4113. ac_clean_files=$ac_clean_files_save
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4115. $as_echo_n "checking for suffix of object files... " >&6; }
  4116. if ${ac_cv_objext+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. int
  4122. main ()
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. rm -f conftest.o conftest.obj
  4129. if { { ac_try="$ac_compile"
  4130. case "(($ac_try" in
  4131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4132. *) ac_try_echo=$ac_try;;
  4133. esac
  4134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4135. $as_echo "$ac_try_echo"; } >&5
  4136. (eval "$ac_compile") 2>&5
  4137. ac_status=$?
  4138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4139. test $ac_status = 0; }; then :
  4140. for ac_file in conftest.o conftest.obj conftest.*; do
  4141. test -f "$ac_file" || continue;
  4142. case $ac_file in
  4143. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4144. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4145. break;;
  4146. esac
  4147. done
  4148. else
  4149. $as_echo "$as_me: failed program was:" >&5
  4150. sed 's/^/| /' conftest.$ac_ext >&5
  4151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4153. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4154. See \`config.log' for more details" "$LINENO" 5; }
  4155. fi
  4156. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4157. fi
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4159. $as_echo "$ac_cv_objext" >&6; }
  4160. OBJEXT=$ac_cv_objext
  4161. ac_objext=$OBJEXT
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4163. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4164. if ${ac_cv_c_compiler_gnu+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4168. /* end confdefs.h. */
  4169. int
  4170. main ()
  4171. {
  4172. #ifndef __GNUC__
  4173. choke me
  4174. #endif
  4175. ;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. if ac_fn_c_try_compile "$LINENO"; then :
  4180. ac_compiler_gnu=yes
  4181. else
  4182. ac_compiler_gnu=no
  4183. fi
  4184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4185. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4188. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4189. if test $ac_compiler_gnu = yes; then
  4190. GCC=yes
  4191. else
  4192. GCC=
  4193. fi
  4194. ac_test_CFLAGS=${CFLAGS+set}
  4195. ac_save_CFLAGS=$CFLAGS
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4197. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4198. if ${ac_cv_prog_cc_g+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. ac_save_c_werror_flag=$ac_c_werror_flag
  4202. ac_c_werror_flag=yes
  4203. ac_cv_prog_cc_g=no
  4204. CFLAGS="-g"
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. int
  4208. main ()
  4209. {
  4210. ;
  4211. return 0;
  4212. }
  4213. _ACEOF
  4214. if ac_fn_c_try_compile "$LINENO"; then :
  4215. ac_cv_prog_cc_g=yes
  4216. else
  4217. CFLAGS=""
  4218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4219. /* end confdefs.h. */
  4220. int
  4221. main ()
  4222. {
  4223. ;
  4224. return 0;
  4225. }
  4226. _ACEOF
  4227. if ac_fn_c_try_compile "$LINENO"; then :
  4228. else
  4229. ac_c_werror_flag=$ac_save_c_werror_flag
  4230. CFLAGS="-g"
  4231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4232. /* end confdefs.h. */
  4233. int
  4234. main ()
  4235. {
  4236. ;
  4237. return 0;
  4238. }
  4239. _ACEOF
  4240. if ac_fn_c_try_compile "$LINENO"; then :
  4241. ac_cv_prog_cc_g=yes
  4242. fi
  4243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4251. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4252. if test "$ac_test_CFLAGS" = set; then
  4253. CFLAGS=$ac_save_CFLAGS
  4254. elif test $ac_cv_prog_cc_g = yes; then
  4255. if test "$GCC" = yes; then
  4256. CFLAGS="-g -O2"
  4257. else
  4258. CFLAGS="-g"
  4259. fi
  4260. else
  4261. if test "$GCC" = yes; then
  4262. CFLAGS="-O2"
  4263. else
  4264. CFLAGS=
  4265. fi
  4266. fi
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4268. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4269. if ${ac_cv_prog_cc_c89+:} false; then :
  4270. $as_echo_n "(cached) " >&6
  4271. else
  4272. ac_cv_prog_cc_c89=no
  4273. ac_save_CC=$CC
  4274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4275. /* end confdefs.h. */
  4276. #include <stdarg.h>
  4277. #include <stdio.h>
  4278. struct stat;
  4279. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4280. struct buf { int x; };
  4281. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4282. static char *e (p, i)
  4283. char **p;
  4284. int i;
  4285. {
  4286. return p[i];
  4287. }
  4288. static char *f (char * (*g) (char **, int), char **p, ...)
  4289. {
  4290. char *s;
  4291. va_list v;
  4292. va_start (v,p);
  4293. s = g (p, va_arg (v,int));
  4294. va_end (v);
  4295. return s;
  4296. }
  4297. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4298. function prototypes and stuff, but not '\xHH' hex character constants.
  4299. These don't provoke an error unfortunately, instead are silently treated
  4300. as 'x'. The following induces an error, until -std is added to get
  4301. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4302. array size at least. It's necessary to write '\x00'==0 to get something
  4303. that's true only with -std. */
  4304. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4305. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4306. inside strings and character constants. */
  4307. #define FOO(x) 'x'
  4308. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4309. int test (int i, double x);
  4310. struct s1 {int (*f) (int a);};
  4311. struct s2 {int (*f) (double a);};
  4312. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4313. int argc;
  4314. char **argv;
  4315. int
  4316. main ()
  4317. {
  4318. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4319. ;
  4320. return 0;
  4321. }
  4322. _ACEOF
  4323. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4324. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4325. do
  4326. CC="$ac_save_CC $ac_arg"
  4327. if ac_fn_c_try_compile "$LINENO"; then :
  4328. ac_cv_prog_cc_c89=$ac_arg
  4329. fi
  4330. rm -f core conftest.err conftest.$ac_objext
  4331. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4332. done
  4333. rm -f conftest.$ac_ext
  4334. CC=$ac_save_CC
  4335. fi
  4336. # AC_CACHE_VAL
  4337. case "x$ac_cv_prog_cc_c89" in
  4338. x)
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4340. $as_echo "none needed" >&6; } ;;
  4341. xno)
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4343. $as_echo "unsupported" >&6; } ;;
  4344. *)
  4345. CC="$CC $ac_cv_prog_cc_c89"
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4347. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4348. esac
  4349. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4350. fi
  4351. ac_ext=c
  4352. ac_cpp='$CPP $CPPFLAGS'
  4353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4356. ac_ext=c
  4357. ac_cpp='$CPP $CPPFLAGS'
  4358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4362. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4363. if ${am_cv_prog_cc_c_o+:} false; then :
  4364. $as_echo_n "(cached) " >&6
  4365. else
  4366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4367. /* end confdefs.h. */
  4368. int
  4369. main ()
  4370. {
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. # Make sure it works both with $CC and with simple cc.
  4376. # Following AC_PROG_CC_C_O, we do the test twice because some
  4377. # compilers refuse to overwrite an existing .o file with -o,
  4378. # though they will create one.
  4379. am_cv_prog_cc_c_o=yes
  4380. for am_i in 1 2; do
  4381. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4382. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4383. ac_status=$?
  4384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4385. (exit $ac_status); } \
  4386. && test -f conftest2.$ac_objext; then
  4387. : OK
  4388. else
  4389. am_cv_prog_cc_c_o=no
  4390. break
  4391. fi
  4392. done
  4393. rm -f core conftest*
  4394. unset am_i
  4395. fi
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4397. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4398. if test "$am_cv_prog_cc_c_o" != yes; then
  4399. # Losing compiler, so override with the script.
  4400. # FIXME: It is wrong to rewrite CC.
  4401. # But if we don't then we get into trouble of one sort or another.
  4402. # A longer-term fix would be to have automake use am__CC in this case,
  4403. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4404. CC="$am_aux_dir/compile $CC"
  4405. fi
  4406. ac_ext=c
  4407. ac_cpp='$CPP $CPPFLAGS'
  4408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4411. depcc="$CC" am_compiler_list=
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4413. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4414. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4418. # We make a subdir and do the tests there. Otherwise we can end up
  4419. # making bogus files that we don't know about and never remove. For
  4420. # instance it was reported that on HP-UX the gcc test will end up
  4421. # making a dummy file named 'D' -- because '-MD' means "put the output
  4422. # in D".
  4423. rm -rf conftest.dir
  4424. mkdir conftest.dir
  4425. # Copy depcomp to subdir because otherwise we won't find it if we're
  4426. # using a relative directory.
  4427. cp "$am_depcomp" conftest.dir
  4428. cd conftest.dir
  4429. # We will build objects and dependencies in a subdirectory because
  4430. # it helps to detect inapplicable dependency modes. For instance
  4431. # both Tru64's cc and ICC support -MD to output dependencies as a
  4432. # side effect of compilation, but ICC will put the dependencies in
  4433. # the current directory while Tru64 will put them in the object
  4434. # directory.
  4435. mkdir sub
  4436. am_cv_CC_dependencies_compiler_type=none
  4437. if test "$am_compiler_list" = ""; then
  4438. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4439. fi
  4440. am__universal=false
  4441. case " $depcc " in #(
  4442. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4443. esac
  4444. for depmode in $am_compiler_list; do
  4445. # Setup a source with many dependencies, because some compilers
  4446. # like to wrap large dependency lists on column 80 (with \), and
  4447. # we should not choose a depcomp mode which is confused by this.
  4448. #
  4449. # We need to recreate these files for each test, as the compiler may
  4450. # overwrite some of them when testing with obscure command lines.
  4451. # This happens at least with the AIX C compiler.
  4452. : > sub/conftest.c
  4453. for i in 1 2 3 4 5 6; do
  4454. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4455. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4456. # Solaris 10 /bin/sh.
  4457. echo '/* dummy */' > sub/conftst$i.h
  4458. done
  4459. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4460. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4461. # mode. It turns out that the SunPro C++ compiler does not properly
  4462. # handle '-M -o', and we need to detect this. Also, some Intel
  4463. # versions had trouble with output in subdirs.
  4464. am__obj=sub/conftest.${OBJEXT-o}
  4465. am__minus_obj="-o $am__obj"
  4466. case $depmode in
  4467. gcc)
  4468. # This depmode causes a compiler race in universal mode.
  4469. test "$am__universal" = false || continue
  4470. ;;
  4471. nosideeffect)
  4472. # After this tag, mechanisms are not by side-effect, so they'll
  4473. # only be used when explicitly requested.
  4474. if test "x$enable_dependency_tracking" = xyes; then
  4475. continue
  4476. else
  4477. break
  4478. fi
  4479. ;;
  4480. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4481. # This compiler won't grok '-c -o', but also, the minuso test has
  4482. # not run yet. These depmodes are late enough in the game, and
  4483. # so weak that their functioning should not be impacted.
  4484. am__obj=conftest.${OBJEXT-o}
  4485. am__minus_obj=
  4486. ;;
  4487. none) break ;;
  4488. esac
  4489. if depmode=$depmode \
  4490. source=sub/conftest.c object=$am__obj \
  4491. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4492. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4493. >/dev/null 2>conftest.err &&
  4494. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4495. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4496. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4497. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4498. # icc doesn't choke on unknown options, it will just issue warnings
  4499. # or remarks (even with -Werror). So we grep stderr for any message
  4500. # that says an option was ignored or not supported.
  4501. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4502. # icc: Command line warning: ignoring option '-M'; no argument required
  4503. # The diagnosis changed in icc 8.0:
  4504. # icc: Command line remark: option '-MP' not supported
  4505. if (grep 'ignoring option' conftest.err ||
  4506. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4507. am_cv_CC_dependencies_compiler_type=$depmode
  4508. break
  4509. fi
  4510. fi
  4511. done
  4512. cd ..
  4513. rm -rf conftest.dir
  4514. else
  4515. am_cv_CC_dependencies_compiler_type=none
  4516. fi
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4519. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4520. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4521. if
  4522. test "x$enable_dependency_tracking" != xno \
  4523. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4524. am__fastdepCC_TRUE=
  4525. am__fastdepCC_FALSE='#'
  4526. else
  4527. am__fastdepCC_TRUE='#'
  4528. am__fastdepCC_FALSE=
  4529. fi
  4530. if test -n "$ac_tool_prefix"; then
  4531. for ac_prog in ar lib "link -lib"
  4532. do
  4533. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4534. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4536. $as_echo_n "checking for $ac_word... " >&6; }
  4537. if ${ac_cv_prog_AR+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. if test -n "$AR"; then
  4541. ac_cv_prog_AR="$AR" # Let the user override the test.
  4542. else
  4543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4544. for as_dir in $PATH
  4545. do
  4546. IFS=$as_save_IFS
  4547. test -z "$as_dir" && as_dir=.
  4548. for ac_exec_ext in '' $ac_executable_extensions; do
  4549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4550. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4552. break 2
  4553. fi
  4554. done
  4555. done
  4556. IFS=$as_save_IFS
  4557. fi
  4558. fi
  4559. AR=$ac_cv_prog_AR
  4560. if test -n "$AR"; then
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4562. $as_echo "$AR" >&6; }
  4563. else
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4565. $as_echo "no" >&6; }
  4566. fi
  4567. test -n "$AR" && break
  4568. done
  4569. fi
  4570. if test -z "$AR"; then
  4571. ac_ct_AR=$AR
  4572. for ac_prog in ar lib "link -lib"
  4573. do
  4574. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4575. set dummy $ac_prog; ac_word=$2
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4577. $as_echo_n "checking for $ac_word... " >&6; }
  4578. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. if test -n "$ac_ct_AR"; then
  4582. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4583. else
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_exec_ext in '' $ac_executable_extensions; do
  4590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4591. ac_cv_prog_ac_ct_AR="$ac_prog"
  4592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4593. break 2
  4594. fi
  4595. done
  4596. done
  4597. IFS=$as_save_IFS
  4598. fi
  4599. fi
  4600. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4601. if test -n "$ac_ct_AR"; then
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4603. $as_echo "$ac_ct_AR" >&6; }
  4604. else
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4606. $as_echo "no" >&6; }
  4607. fi
  4608. test -n "$ac_ct_AR" && break
  4609. done
  4610. if test "x$ac_ct_AR" = x; then
  4611. AR="false"
  4612. else
  4613. case $cross_compiling:$ac_tool_warned in
  4614. yes:)
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4617. ac_tool_warned=yes ;;
  4618. esac
  4619. AR=$ac_ct_AR
  4620. fi
  4621. fi
  4622. : ${AR=ar}
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4624. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4625. if ${am_cv_ar_interface+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. ac_ext=c
  4629. ac_cpp='$CPP $CPPFLAGS'
  4630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4633. am_cv_ar_interface=ar
  4634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4635. /* end confdefs.h. */
  4636. int some_variable = 0;
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"; then :
  4639. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4640. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4641. (eval $am_ar_try) 2>&5
  4642. ac_status=$?
  4643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4644. test $ac_status = 0; }
  4645. if test "$ac_status" -eq 0; then
  4646. am_cv_ar_interface=ar
  4647. else
  4648. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4649. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4650. (eval $am_ar_try) 2>&5
  4651. ac_status=$?
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4653. test $ac_status = 0; }
  4654. if test "$ac_status" -eq 0; then
  4655. am_cv_ar_interface=lib
  4656. else
  4657. am_cv_ar_interface=unknown
  4658. fi
  4659. fi
  4660. rm -f conftest.lib libconftest.a
  4661. fi
  4662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4663. ac_ext=c
  4664. ac_cpp='$CPP $CPPFLAGS'
  4665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4668. fi
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4670. $as_echo "$am_cv_ar_interface" >&6; }
  4671. case $am_cv_ar_interface in
  4672. ar)
  4673. ;;
  4674. lib)
  4675. # Microsoft lib, so override with the ar-lib wrapper script.
  4676. # FIXME: It is wrong to rewrite AR.
  4677. # But if we don't then we get into trouble of one sort or another.
  4678. # A longer-term fix would be to have automake use am__AR in this case,
  4679. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4680. # similar.
  4681. AR="$am_aux_dir/ar-lib $AR"
  4682. ;;
  4683. unknown)
  4684. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4685. ;;
  4686. esac
  4687. case `pwd` in
  4688. *\ * | *\ *)
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4690. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4691. esac
  4692. macro_version='2.4.6'
  4693. macro_revision='2.4.6'
  4694. ltmain=$ac_aux_dir/ltmain.sh
  4695. # Backslashify metacharacters that are still active within
  4696. # double-quoted strings.
  4697. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4698. # Same as above, but do not quote variable references.
  4699. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4700. # Sed substitution to delay expansion of an escaped shell variable in a
  4701. # double_quote_subst'ed string.
  4702. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4703. # Sed substitution to delay expansion of an escaped single quote.
  4704. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4705. # Sed substitution to avoid accidental globbing in evaled expressions
  4706. no_glob_subst='s/\*/\\\*/g'
  4707. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4708. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4709. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4711. $as_echo_n "checking how to print strings... " >&6; }
  4712. # Test print first, because it will be a builtin if present.
  4713. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4714. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4715. ECHO='print -r --'
  4716. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4717. ECHO='printf %s\n'
  4718. else
  4719. # Use this function as a fallback that always works.
  4720. func_fallback_echo ()
  4721. {
  4722. eval 'cat <<_LTECHO_EOF
  4723. $1
  4724. _LTECHO_EOF'
  4725. }
  4726. ECHO='func_fallback_echo'
  4727. fi
  4728. # func_echo_all arg...
  4729. # Invoke $ECHO with all args, space-separated.
  4730. func_echo_all ()
  4731. {
  4732. $ECHO ""
  4733. }
  4734. case $ECHO in
  4735. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4736. $as_echo "printf" >&6; } ;;
  4737. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4738. $as_echo "print -r" >&6; } ;;
  4739. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4740. $as_echo "cat" >&6; } ;;
  4741. esac
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4743. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4744. if ${ac_cv_path_SED+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4748. for ac_i in 1 2 3 4 5 6 7; do
  4749. ac_script="$ac_script$as_nl$ac_script"
  4750. done
  4751. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4752. { ac_script=; unset ac_script;}
  4753. if test -z "$SED"; then
  4754. ac_path_SED_found=false
  4755. # Loop through the user's path and test for each of PROGNAME-LIST
  4756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4757. for as_dir in $PATH
  4758. do
  4759. IFS=$as_save_IFS
  4760. test -z "$as_dir" && as_dir=.
  4761. for ac_prog in sed gsed; do
  4762. for ac_exec_ext in '' $ac_executable_extensions; do
  4763. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4764. as_fn_executable_p "$ac_path_SED" || continue
  4765. # Check for GNU ac_path_SED and select it if it is found.
  4766. # Check for GNU $ac_path_SED
  4767. case `"$ac_path_SED" --version 2>&1` in
  4768. *GNU*)
  4769. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4770. *)
  4771. ac_count=0
  4772. $as_echo_n 0123456789 >"conftest.in"
  4773. while :
  4774. do
  4775. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4776. mv "conftest.tmp" "conftest.in"
  4777. cp "conftest.in" "conftest.nl"
  4778. $as_echo '' >> "conftest.nl"
  4779. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4780. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4781. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4782. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4783. # Best one so far, save it but keep looking for a better one
  4784. ac_cv_path_SED="$ac_path_SED"
  4785. ac_path_SED_max=$ac_count
  4786. fi
  4787. # 10*(2^10) chars as input seems more than enough
  4788. test $ac_count -gt 10 && break
  4789. done
  4790. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4791. esac
  4792. $ac_path_SED_found && break 3
  4793. done
  4794. done
  4795. done
  4796. IFS=$as_save_IFS
  4797. if test -z "$ac_cv_path_SED"; then
  4798. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4799. fi
  4800. else
  4801. ac_cv_path_SED=$SED
  4802. fi
  4803. fi
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4805. $as_echo "$ac_cv_path_SED" >&6; }
  4806. SED="$ac_cv_path_SED"
  4807. rm -f conftest.sed
  4808. test -z "$SED" && SED=sed
  4809. Xsed="$SED -e 1s/^X//"
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4811. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4812. if ${ac_cv_path_GREP+:} false; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. if test -z "$GREP"; then
  4816. ac_path_GREP_found=false
  4817. # Loop through the user's path and test for each of PROGNAME-LIST
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_prog in grep ggrep; do
  4824. for ac_exec_ext in '' $ac_executable_extensions; do
  4825. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4826. as_fn_executable_p "$ac_path_GREP" || continue
  4827. # Check for GNU ac_path_GREP and select it if it is found.
  4828. # Check for GNU $ac_path_GREP
  4829. case `"$ac_path_GREP" --version 2>&1` in
  4830. *GNU*)
  4831. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4832. *)
  4833. ac_count=0
  4834. $as_echo_n 0123456789 >"conftest.in"
  4835. while :
  4836. do
  4837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4838. mv "conftest.tmp" "conftest.in"
  4839. cp "conftest.in" "conftest.nl"
  4840. $as_echo 'GREP' >> "conftest.nl"
  4841. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4844. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4845. # Best one so far, save it but keep looking for a better one
  4846. ac_cv_path_GREP="$ac_path_GREP"
  4847. ac_path_GREP_max=$ac_count
  4848. fi
  4849. # 10*(2^10) chars as input seems more than enough
  4850. test $ac_count -gt 10 && break
  4851. done
  4852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4853. esac
  4854. $ac_path_GREP_found && break 3
  4855. done
  4856. done
  4857. done
  4858. IFS=$as_save_IFS
  4859. if test -z "$ac_cv_path_GREP"; then
  4860. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4861. fi
  4862. else
  4863. ac_cv_path_GREP=$GREP
  4864. fi
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4867. $as_echo "$ac_cv_path_GREP" >&6; }
  4868. GREP="$ac_cv_path_GREP"
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4870. $as_echo_n "checking for egrep... " >&6; }
  4871. if ${ac_cv_path_EGREP+:} false; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4875. then ac_cv_path_EGREP="$GREP -E"
  4876. else
  4877. if test -z "$EGREP"; then
  4878. ac_path_EGREP_found=false
  4879. # Loop through the user's path and test for each of PROGNAME-LIST
  4880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4881. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4882. do
  4883. IFS=$as_save_IFS
  4884. test -z "$as_dir" && as_dir=.
  4885. for ac_prog in egrep; do
  4886. for ac_exec_ext in '' $ac_executable_extensions; do
  4887. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4888. as_fn_executable_p "$ac_path_EGREP" || continue
  4889. # Check for GNU ac_path_EGREP and select it if it is found.
  4890. # Check for GNU $ac_path_EGREP
  4891. case `"$ac_path_EGREP" --version 2>&1` in
  4892. *GNU*)
  4893. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4894. *)
  4895. ac_count=0
  4896. $as_echo_n 0123456789 >"conftest.in"
  4897. while :
  4898. do
  4899. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4900. mv "conftest.tmp" "conftest.in"
  4901. cp "conftest.in" "conftest.nl"
  4902. $as_echo 'EGREP' >> "conftest.nl"
  4903. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4904. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4905. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4906. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4907. # Best one so far, save it but keep looking for a better one
  4908. ac_cv_path_EGREP="$ac_path_EGREP"
  4909. ac_path_EGREP_max=$ac_count
  4910. fi
  4911. # 10*(2^10) chars as input seems more than enough
  4912. test $ac_count -gt 10 && break
  4913. done
  4914. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4915. esac
  4916. $ac_path_EGREP_found && break 3
  4917. done
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. if test -z "$ac_cv_path_EGREP"; then
  4922. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4923. fi
  4924. else
  4925. ac_cv_path_EGREP=$EGREP
  4926. fi
  4927. fi
  4928. fi
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4930. $as_echo "$ac_cv_path_EGREP" >&6; }
  4931. EGREP="$ac_cv_path_EGREP"
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4933. $as_echo_n "checking for fgrep... " >&6; }
  4934. if ${ac_cv_path_FGREP+:} false; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4938. then ac_cv_path_FGREP="$GREP -F"
  4939. else
  4940. if test -z "$FGREP"; then
  4941. ac_path_FGREP_found=false
  4942. # Loop through the user's path and test for each of PROGNAME-LIST
  4943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4944. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4945. do
  4946. IFS=$as_save_IFS
  4947. test -z "$as_dir" && as_dir=.
  4948. for ac_prog in fgrep; do
  4949. for ac_exec_ext in '' $ac_executable_extensions; do
  4950. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4951. as_fn_executable_p "$ac_path_FGREP" || continue
  4952. # Check for GNU ac_path_FGREP and select it if it is found.
  4953. # Check for GNU $ac_path_FGREP
  4954. case `"$ac_path_FGREP" --version 2>&1` in
  4955. *GNU*)
  4956. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4957. *)
  4958. ac_count=0
  4959. $as_echo_n 0123456789 >"conftest.in"
  4960. while :
  4961. do
  4962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4963. mv "conftest.tmp" "conftest.in"
  4964. cp "conftest.in" "conftest.nl"
  4965. $as_echo 'FGREP' >> "conftest.nl"
  4966. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4969. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4970. # Best one so far, save it but keep looking for a better one
  4971. ac_cv_path_FGREP="$ac_path_FGREP"
  4972. ac_path_FGREP_max=$ac_count
  4973. fi
  4974. # 10*(2^10) chars as input seems more than enough
  4975. test $ac_count -gt 10 && break
  4976. done
  4977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4978. esac
  4979. $ac_path_FGREP_found && break 3
  4980. done
  4981. done
  4982. done
  4983. IFS=$as_save_IFS
  4984. if test -z "$ac_cv_path_FGREP"; then
  4985. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4986. fi
  4987. else
  4988. ac_cv_path_FGREP=$FGREP
  4989. fi
  4990. fi
  4991. fi
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4993. $as_echo "$ac_cv_path_FGREP" >&6; }
  4994. FGREP="$ac_cv_path_FGREP"
  4995. test -z "$GREP" && GREP=grep
  4996. # Check whether --with-gnu-ld was given.
  4997. if test "${with_gnu_ld+set}" = set; then :
  4998. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4999. else
  5000. with_gnu_ld=no
  5001. fi
  5002. ac_prog=ld
  5003. if test yes = "$GCC"; then
  5004. # Check if gcc -print-prog-name=ld gives a path.
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5006. $as_echo_n "checking for ld used by $CC... " >&6; }
  5007. case $host in
  5008. *-*-mingw*)
  5009. # gcc leaves a trailing carriage return, which upsets mingw
  5010. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5011. *)
  5012. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5013. esac
  5014. case $ac_prog in
  5015. # Accept absolute paths.
  5016. [\\/]* | ?:[\\/]*)
  5017. re_direlt='/[^/][^/]*/\.\./'
  5018. # Canonicalize the pathname of ld
  5019. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5020. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5021. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5022. done
  5023. test -z "$LD" && LD=$ac_prog
  5024. ;;
  5025. "")
  5026. # If it fails, then pretend we aren't using GCC.
  5027. ac_prog=ld
  5028. ;;
  5029. *)
  5030. # If it is relative, then search for the first ld in PATH.
  5031. with_gnu_ld=unknown
  5032. ;;
  5033. esac
  5034. elif test yes = "$with_gnu_ld"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5036. $as_echo_n "checking for GNU ld... " >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5039. $as_echo_n "checking for non-GNU ld... " >&6; }
  5040. fi
  5041. if ${lt_cv_path_LD+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -z "$LD"; then
  5045. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5046. for ac_dir in $PATH; do
  5047. IFS=$lt_save_ifs
  5048. test -z "$ac_dir" && ac_dir=.
  5049. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5050. lt_cv_path_LD=$ac_dir/$ac_prog
  5051. # Check to see if the program is GNU ld. I'd rather use --version,
  5052. # but apparently some variants of GNU ld only accept -v.
  5053. # Break only if it was the GNU/non-GNU ld that we prefer.
  5054. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5055. *GNU* | *'with BFD'*)
  5056. test no != "$with_gnu_ld" && break
  5057. ;;
  5058. *)
  5059. test yes != "$with_gnu_ld" && break
  5060. ;;
  5061. esac
  5062. fi
  5063. done
  5064. IFS=$lt_save_ifs
  5065. else
  5066. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5067. fi
  5068. fi
  5069. LD=$lt_cv_path_LD
  5070. if test -n "$LD"; then
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5072. $as_echo "$LD" >&6; }
  5073. else
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5075. $as_echo "no" >&6; }
  5076. fi
  5077. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5079. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5080. if ${lt_cv_prog_gnu_ld+:} false; then :
  5081. $as_echo_n "(cached) " >&6
  5082. else
  5083. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5084. case `$LD -v 2>&1 </dev/null` in
  5085. *GNU* | *'with BFD'*)
  5086. lt_cv_prog_gnu_ld=yes
  5087. ;;
  5088. *)
  5089. lt_cv_prog_gnu_ld=no
  5090. ;;
  5091. esac
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5094. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5095. with_gnu_ld=$lt_cv_prog_gnu_ld
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5097. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5098. if ${lt_cv_path_NM+:} false; then :
  5099. $as_echo_n "(cached) " >&6
  5100. else
  5101. if test -n "$NM"; then
  5102. # Let the user override the test.
  5103. lt_cv_path_NM=$NM
  5104. else
  5105. lt_nm_to_check=${ac_tool_prefix}nm
  5106. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5107. lt_nm_to_check="$lt_nm_to_check nm"
  5108. fi
  5109. for lt_tmp_nm in $lt_nm_to_check; do
  5110. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5111. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5112. IFS=$lt_save_ifs
  5113. test -z "$ac_dir" && ac_dir=.
  5114. tmp_nm=$ac_dir/$lt_tmp_nm
  5115. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5116. # Check to see if the nm accepts a BSD-compat flag.
  5117. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5118. # nm: unknown option "B" ignored
  5119. # Tru64's nm complains that /dev/null is an invalid object file
  5120. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5121. case $build_os in
  5122. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5123. *) lt_bad_file=/dev/null ;;
  5124. esac
  5125. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5126. *$lt_bad_file* | *'Invalid file or object type'*)
  5127. lt_cv_path_NM="$tmp_nm -B"
  5128. break 2
  5129. ;;
  5130. *)
  5131. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5132. */dev/null*)
  5133. lt_cv_path_NM="$tmp_nm -p"
  5134. break 2
  5135. ;;
  5136. *)
  5137. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5138. continue # so that we can try to find one that supports BSD flags
  5139. ;;
  5140. esac
  5141. ;;
  5142. esac
  5143. fi
  5144. done
  5145. IFS=$lt_save_ifs
  5146. done
  5147. : ${lt_cv_path_NM=no}
  5148. fi
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5151. $as_echo "$lt_cv_path_NM" >&6; }
  5152. if test no != "$lt_cv_path_NM"; then
  5153. NM=$lt_cv_path_NM
  5154. else
  5155. # Didn't find any BSD compatible name lister, look for dumpbin.
  5156. if test -n "$DUMPBIN"; then :
  5157. # Let the user override the test.
  5158. else
  5159. if test -n "$ac_tool_prefix"; then
  5160. for ac_prog in dumpbin "link -dump"
  5161. do
  5162. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5163. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5165. $as_echo_n "checking for $ac_word... " >&6; }
  5166. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. if test -n "$DUMPBIN"; then
  5170. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5171. else
  5172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5173. for as_dir in $PATH
  5174. do
  5175. IFS=$as_save_IFS
  5176. test -z "$as_dir" && as_dir=.
  5177. for ac_exec_ext in '' $ac_executable_extensions; do
  5178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5179. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5181. break 2
  5182. fi
  5183. done
  5184. done
  5185. IFS=$as_save_IFS
  5186. fi
  5187. fi
  5188. DUMPBIN=$ac_cv_prog_DUMPBIN
  5189. if test -n "$DUMPBIN"; then
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5191. $as_echo "$DUMPBIN" >&6; }
  5192. else
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5194. $as_echo "no" >&6; }
  5195. fi
  5196. test -n "$DUMPBIN" && break
  5197. done
  5198. fi
  5199. if test -z "$DUMPBIN"; then
  5200. ac_ct_DUMPBIN=$DUMPBIN
  5201. for ac_prog in dumpbin "link -dump"
  5202. do
  5203. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5204. set dummy $ac_prog; ac_word=$2
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5206. $as_echo_n "checking for $ac_word... " >&6; }
  5207. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. if test -n "$ac_ct_DUMPBIN"; then
  5211. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5212. else
  5213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5214. for as_dir in $PATH
  5215. do
  5216. IFS=$as_save_IFS
  5217. test -z "$as_dir" && as_dir=.
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5220. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5222. break 2
  5223. fi
  5224. done
  5225. done
  5226. IFS=$as_save_IFS
  5227. fi
  5228. fi
  5229. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5230. if test -n "$ac_ct_DUMPBIN"; then
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5232. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5233. else
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. $as_echo "no" >&6; }
  5236. fi
  5237. test -n "$ac_ct_DUMPBIN" && break
  5238. done
  5239. if test "x$ac_ct_DUMPBIN" = x; then
  5240. DUMPBIN=":"
  5241. else
  5242. case $cross_compiling:$ac_tool_warned in
  5243. yes:)
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5245. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5246. ac_tool_warned=yes ;;
  5247. esac
  5248. DUMPBIN=$ac_ct_DUMPBIN
  5249. fi
  5250. fi
  5251. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5252. *COFF*)
  5253. DUMPBIN="$DUMPBIN -symbols -headers"
  5254. ;;
  5255. *)
  5256. DUMPBIN=:
  5257. ;;
  5258. esac
  5259. fi
  5260. if test : != "$DUMPBIN"; then
  5261. NM=$DUMPBIN
  5262. fi
  5263. fi
  5264. test -z "$NM" && NM=nm
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5266. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5267. if ${lt_cv_nm_interface+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. lt_cv_nm_interface="BSD nm"
  5271. echo "int some_variable = 0;" > conftest.$ac_ext
  5272. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5273. (eval "$ac_compile" 2>conftest.err)
  5274. cat conftest.err >&5
  5275. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5276. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5277. cat conftest.err >&5
  5278. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5279. cat conftest.out >&5
  5280. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5281. lt_cv_nm_interface="MS dumpbin"
  5282. fi
  5283. rm -f conftest*
  5284. fi
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5286. $as_echo "$lt_cv_nm_interface" >&6; }
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5288. $as_echo_n "checking whether ln -s works... " >&6; }
  5289. LN_S=$as_ln_s
  5290. if test "$LN_S" = "ln -s"; then
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5292. $as_echo "yes" >&6; }
  5293. else
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5295. $as_echo "no, using $LN_S" >&6; }
  5296. fi
  5297. # find the maximum length of command line arguments
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5299. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5300. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5301. $as_echo_n "(cached) " >&6
  5302. else
  5303. i=0
  5304. teststring=ABCD
  5305. case $build_os in
  5306. msdosdjgpp*)
  5307. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5308. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5309. # during glob expansion). Even if it were fixed, the result of this
  5310. # check would be larger than it should be.
  5311. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5312. ;;
  5313. gnu*)
  5314. # Under GNU Hurd, this test is not required because there is
  5315. # no limit to the length of command line arguments.
  5316. # Libtool will interpret -1 as no limit whatsoever
  5317. lt_cv_sys_max_cmd_len=-1;
  5318. ;;
  5319. cygwin* | mingw* | cegcc*)
  5320. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5321. # about 5 minutes as the teststring grows exponentially.
  5322. # Worse, since 9x/ME are not pre-emptively multitasking,
  5323. # you end up with a "frozen" computer, even though with patience
  5324. # the test eventually succeeds (with a max line length of 256k).
  5325. # Instead, let's just punt: use the minimum linelength reported by
  5326. # all of the supported platforms: 8192 (on NT/2K/XP).
  5327. lt_cv_sys_max_cmd_len=8192;
  5328. ;;
  5329. mint*)
  5330. # On MiNT this can take a long time and run out of memory.
  5331. lt_cv_sys_max_cmd_len=8192;
  5332. ;;
  5333. amigaos*)
  5334. # On AmigaOS with pdksh, this test takes hours, literally.
  5335. # So we just punt and use a minimum line length of 8192.
  5336. lt_cv_sys_max_cmd_len=8192;
  5337. ;;
  5338. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5339. # This has been around since 386BSD, at least. Likely further.
  5340. if test -x /sbin/sysctl; then
  5341. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5342. elif test -x /usr/sbin/sysctl; then
  5343. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5344. else
  5345. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5346. fi
  5347. # And add a safety zone
  5348. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5349. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5350. ;;
  5351. interix*)
  5352. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5353. lt_cv_sys_max_cmd_len=196608
  5354. ;;
  5355. os2*)
  5356. # The test takes a long time on OS/2.
  5357. lt_cv_sys_max_cmd_len=8192
  5358. ;;
  5359. osf*)
  5360. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5361. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5362. # nice to cause kernel panics so lets avoid the loop below.
  5363. # First set a reasonable default.
  5364. lt_cv_sys_max_cmd_len=16384
  5365. #
  5366. if test -x /sbin/sysconfig; then
  5367. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5368. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5369. esac
  5370. fi
  5371. ;;
  5372. sco3.2v5*)
  5373. lt_cv_sys_max_cmd_len=102400
  5374. ;;
  5375. sysv5* | sco5v6* | sysv4.2uw2*)
  5376. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5377. if test -n "$kargmax"; then
  5378. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5379. else
  5380. lt_cv_sys_max_cmd_len=32768
  5381. fi
  5382. ;;
  5383. *)
  5384. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5385. if test -n "$lt_cv_sys_max_cmd_len" && \
  5386. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5387. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5388. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5389. else
  5390. # Make teststring a little bigger before we do anything with it.
  5391. # a 1K string should be a reasonable start.
  5392. for i in 1 2 3 4 5 6 7 8; do
  5393. teststring=$teststring$teststring
  5394. done
  5395. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5396. # If test is not a shell built-in, we'll probably end up computing a
  5397. # maximum length that is only half of the actual maximum length, but
  5398. # we can't tell.
  5399. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5400. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5401. test 17 != "$i" # 1/2 MB should be enough
  5402. do
  5403. i=`expr $i + 1`
  5404. teststring=$teststring$teststring
  5405. done
  5406. # Only check the string length outside the loop.
  5407. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5408. teststring=
  5409. # Add a significant safety factor because C++ compilers can tack on
  5410. # massive amounts of additional arguments before passing them to the
  5411. # linker. It appears as though 1/2 is a usable value.
  5412. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5413. fi
  5414. ;;
  5415. esac
  5416. fi
  5417. if test -n "$lt_cv_sys_max_cmd_len"; then
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5419. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5420. else
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5422. $as_echo "none" >&6; }
  5423. fi
  5424. max_cmd_len=$lt_cv_sys_max_cmd_len
  5425. : ${CP="cp -f"}
  5426. : ${MV="mv -f"}
  5427. : ${RM="rm -f"}
  5428. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5429. lt_unset=unset
  5430. else
  5431. lt_unset=false
  5432. fi
  5433. # test EBCDIC or ASCII
  5434. case `echo X|tr X '\101'` in
  5435. A) # ASCII based system
  5436. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5437. lt_SP2NL='tr \040 \012'
  5438. lt_NL2SP='tr \015\012 \040\040'
  5439. ;;
  5440. *) # EBCDIC based system
  5441. lt_SP2NL='tr \100 \n'
  5442. lt_NL2SP='tr \r\n \100\100'
  5443. ;;
  5444. esac
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5446. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5447. if ${lt_cv_to_host_file_cmd+:} false; then :
  5448. $as_echo_n "(cached) " >&6
  5449. else
  5450. case $host in
  5451. *-*-mingw* )
  5452. case $build in
  5453. *-*-mingw* ) # actually msys
  5454. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5455. ;;
  5456. *-*-cygwin* )
  5457. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5458. ;;
  5459. * ) # otherwise, assume *nix
  5460. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5461. ;;
  5462. esac
  5463. ;;
  5464. *-*-cygwin* )
  5465. case $build in
  5466. *-*-mingw* ) # actually msys
  5467. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5468. ;;
  5469. *-*-cygwin* )
  5470. lt_cv_to_host_file_cmd=func_convert_file_noop
  5471. ;;
  5472. * ) # otherwise, assume *nix
  5473. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5474. ;;
  5475. esac
  5476. ;;
  5477. * ) # unhandled hosts (and "normal" native builds)
  5478. lt_cv_to_host_file_cmd=func_convert_file_noop
  5479. ;;
  5480. esac
  5481. fi
  5482. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5484. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5486. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5487. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. #assume ordinary cross tools, or native build.
  5491. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5492. case $host in
  5493. *-*-mingw* )
  5494. case $build in
  5495. *-*-mingw* ) # actually msys
  5496. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5497. ;;
  5498. esac
  5499. ;;
  5500. esac
  5501. fi
  5502. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5504. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5506. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5507. if ${lt_cv_ld_reload_flag+:} false; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. lt_cv_ld_reload_flag='-r'
  5511. fi
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5513. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5514. reload_flag=$lt_cv_ld_reload_flag
  5515. case $reload_flag in
  5516. "" | " "*) ;;
  5517. *) reload_flag=" $reload_flag" ;;
  5518. esac
  5519. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5520. case $host_os in
  5521. cygwin* | mingw* | pw32* | cegcc*)
  5522. if test yes != "$GCC"; then
  5523. reload_cmds=false
  5524. fi
  5525. ;;
  5526. darwin*)
  5527. if test yes = "$GCC"; then
  5528. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5529. else
  5530. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5531. fi
  5532. ;;
  5533. esac
  5534. if test -n "$ac_tool_prefix"; then
  5535. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5536. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$OBJDUMP"; then
  5543. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5544. else
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for ac_exec_ext in '' $ac_executable_extensions; do
  5551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5552. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5554. break 2
  5555. fi
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. fi
  5560. fi
  5561. OBJDUMP=$ac_cv_prog_OBJDUMP
  5562. if test -n "$OBJDUMP"; then
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5564. $as_echo "$OBJDUMP" >&6; }
  5565. else
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. fi
  5570. if test -z "$ac_cv_prog_OBJDUMP"; then
  5571. ac_ct_OBJDUMP=$OBJDUMP
  5572. # Extract the first word of "objdump", so it can be a program name with args.
  5573. set dummy objdump; ac_word=$2
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5575. $as_echo_n "checking for $ac_word... " >&6; }
  5576. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$ac_ct_OBJDUMP"; then
  5580. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5589. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. IFS=$as_save_IFS
  5596. fi
  5597. fi
  5598. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5599. if test -n "$ac_ct_OBJDUMP"; then
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5601. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5602. else
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. if test "x$ac_ct_OBJDUMP" = x; then
  5607. OBJDUMP="false"
  5608. else
  5609. case $cross_compiling:$ac_tool_warned in
  5610. yes:)
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5613. ac_tool_warned=yes ;;
  5614. esac
  5615. OBJDUMP=$ac_ct_OBJDUMP
  5616. fi
  5617. else
  5618. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5619. fi
  5620. test -z "$OBJDUMP" && OBJDUMP=objdump
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5622. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5623. if ${lt_cv_deplibs_check_method+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5627. lt_cv_file_magic_test_file=
  5628. lt_cv_deplibs_check_method='unknown'
  5629. # Need to set the preceding variable on all platforms that support
  5630. # interlibrary dependencies.
  5631. # 'none' -- dependencies not supported.
  5632. # 'unknown' -- same as none, but documents that we really don't know.
  5633. # 'pass_all' -- all dependencies passed with no checks.
  5634. # 'test_compile' -- check by making test program.
  5635. # 'file_magic [[regex]]' -- check by looking for files in library path
  5636. # that responds to the $file_magic_cmd with a given extended regex.
  5637. # If you have 'file' or equivalent on your system and you're not sure
  5638. # whether 'pass_all' will *always* work, you probably want this one.
  5639. case $host_os in
  5640. aix[4-9]*)
  5641. lt_cv_deplibs_check_method=pass_all
  5642. ;;
  5643. beos*)
  5644. lt_cv_deplibs_check_method=pass_all
  5645. ;;
  5646. bsdi[45]*)
  5647. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5648. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5649. lt_cv_file_magic_test_file=/shlib/libc.so
  5650. ;;
  5651. cygwin*)
  5652. # func_win32_libid is a shell function defined in ltmain.sh
  5653. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5654. lt_cv_file_magic_cmd='func_win32_libid'
  5655. ;;
  5656. mingw* | pw32*)
  5657. # Base MSYS/MinGW do not provide the 'file' command needed by
  5658. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5659. # unless we find 'file', for example because we are cross-compiling.
  5660. if ( file / ) >/dev/null 2>&1; then
  5661. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5662. lt_cv_file_magic_cmd='func_win32_libid'
  5663. else
  5664. # Keep this pattern in sync with the one in func_win32_libid.
  5665. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5666. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5667. fi
  5668. ;;
  5669. cegcc*)
  5670. # use the weaker test based on 'objdump'. See mingw*.
  5671. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5672. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5673. ;;
  5674. darwin* | rhapsody*)
  5675. lt_cv_deplibs_check_method=pass_all
  5676. ;;
  5677. freebsd* | dragonfly*)
  5678. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5679. case $host_cpu in
  5680. i*86 )
  5681. # Not sure whether the presence of OpenBSD here was a mistake.
  5682. # Let's accept both of them until this is cleared up.
  5683. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5684. lt_cv_file_magic_cmd=/usr/bin/file
  5685. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5686. ;;
  5687. esac
  5688. else
  5689. lt_cv_deplibs_check_method=pass_all
  5690. fi
  5691. ;;
  5692. haiku*)
  5693. lt_cv_deplibs_check_method=pass_all
  5694. ;;
  5695. hpux10.20* | hpux11*)
  5696. lt_cv_file_magic_cmd=/usr/bin/file
  5697. case $host_cpu in
  5698. ia64*)
  5699. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5700. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5701. ;;
  5702. hppa*64*)
  5703. 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]'
  5704. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5705. ;;
  5706. *)
  5707. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5708. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5709. ;;
  5710. esac
  5711. ;;
  5712. interix[3-9]*)
  5713. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5714. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5715. ;;
  5716. irix5* | irix6* | nonstopux*)
  5717. case $LD in
  5718. *-32|*"-32 ") libmagic=32-bit;;
  5719. *-n32|*"-n32 ") libmagic=N32;;
  5720. *-64|*"-64 ") libmagic=64-bit;;
  5721. *) libmagic=never-match;;
  5722. esac
  5723. lt_cv_deplibs_check_method=pass_all
  5724. ;;
  5725. # This must be glibc/ELF.
  5726. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5727. lt_cv_deplibs_check_method=pass_all
  5728. ;;
  5729. netbsd* | netbsdelf*-gnu)
  5730. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5731. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5732. else
  5733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5734. fi
  5735. ;;
  5736. newos6*)
  5737. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5738. lt_cv_file_magic_cmd=/usr/bin/file
  5739. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5740. ;;
  5741. *nto* | *qnx*)
  5742. lt_cv_deplibs_check_method=pass_all
  5743. ;;
  5744. openbsd* | bitrig*)
  5745. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5746. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5747. else
  5748. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5749. fi
  5750. ;;
  5751. osf3* | osf4* | osf5*)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. rdos*)
  5755. lt_cv_deplibs_check_method=pass_all
  5756. ;;
  5757. solaris*)
  5758. lt_cv_deplibs_check_method=pass_all
  5759. ;;
  5760. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5761. lt_cv_deplibs_check_method=pass_all
  5762. ;;
  5763. sysv4 | sysv4.3*)
  5764. case $host_vendor in
  5765. motorola)
  5766. 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]'
  5767. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5768. ;;
  5769. ncr)
  5770. lt_cv_deplibs_check_method=pass_all
  5771. ;;
  5772. sequent)
  5773. lt_cv_file_magic_cmd='/bin/file'
  5774. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5775. ;;
  5776. sni)
  5777. lt_cv_file_magic_cmd='/bin/file'
  5778. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5779. lt_cv_file_magic_test_file=/lib/libc.so
  5780. ;;
  5781. siemens)
  5782. lt_cv_deplibs_check_method=pass_all
  5783. ;;
  5784. pc)
  5785. lt_cv_deplibs_check_method=pass_all
  5786. ;;
  5787. esac
  5788. ;;
  5789. tpf*)
  5790. lt_cv_deplibs_check_method=pass_all
  5791. ;;
  5792. os2*)
  5793. lt_cv_deplibs_check_method=pass_all
  5794. ;;
  5795. esac
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5798. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5799. file_magic_glob=
  5800. want_nocaseglob=no
  5801. if test "$build" = "$host"; then
  5802. case $host_os in
  5803. mingw* | pw32*)
  5804. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5805. want_nocaseglob=yes
  5806. else
  5807. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5808. fi
  5809. ;;
  5810. esac
  5811. fi
  5812. file_magic_cmd=$lt_cv_file_magic_cmd
  5813. deplibs_check_method=$lt_cv_deplibs_check_method
  5814. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5815. if test -n "$ac_tool_prefix"; then
  5816. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5817. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. $as_echo_n "checking for $ac_word... " >&6; }
  5820. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5821. $as_echo_n "(cached) " >&6
  5822. else
  5823. if test -n "$DLLTOOL"; then
  5824. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5825. else
  5826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5827. for as_dir in $PATH
  5828. do
  5829. IFS=$as_save_IFS
  5830. test -z "$as_dir" && as_dir=.
  5831. for ac_exec_ext in '' $ac_executable_extensions; do
  5832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5833. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5835. break 2
  5836. fi
  5837. done
  5838. done
  5839. IFS=$as_save_IFS
  5840. fi
  5841. fi
  5842. DLLTOOL=$ac_cv_prog_DLLTOOL
  5843. if test -n "$DLLTOOL"; then
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5845. $as_echo "$DLLTOOL" >&6; }
  5846. else
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5848. $as_echo "no" >&6; }
  5849. fi
  5850. fi
  5851. if test -z "$ac_cv_prog_DLLTOOL"; then
  5852. ac_ct_DLLTOOL=$DLLTOOL
  5853. # Extract the first word of "dlltool", so it can be a program name with args.
  5854. set dummy dlltool; ac_word=$2
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5856. $as_echo_n "checking for $ac_word... " >&6; }
  5857. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5858. $as_echo_n "(cached) " >&6
  5859. else
  5860. if test -n "$ac_ct_DLLTOOL"; then
  5861. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5862. else
  5863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5864. for as_dir in $PATH
  5865. do
  5866. IFS=$as_save_IFS
  5867. test -z "$as_dir" && as_dir=.
  5868. for ac_exec_ext in '' $ac_executable_extensions; do
  5869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5870. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5872. break 2
  5873. fi
  5874. done
  5875. done
  5876. IFS=$as_save_IFS
  5877. fi
  5878. fi
  5879. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5880. if test -n "$ac_ct_DLLTOOL"; then
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5882. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5883. else
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5885. $as_echo "no" >&6; }
  5886. fi
  5887. if test "x$ac_ct_DLLTOOL" = x; then
  5888. DLLTOOL="false"
  5889. else
  5890. case $cross_compiling:$ac_tool_warned in
  5891. yes:)
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5893. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5894. ac_tool_warned=yes ;;
  5895. esac
  5896. DLLTOOL=$ac_ct_DLLTOOL
  5897. fi
  5898. else
  5899. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5900. fi
  5901. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5903. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5904. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5908. case $host_os in
  5909. cygwin* | mingw* | pw32* | cegcc*)
  5910. # two different shell functions defined in ltmain.sh;
  5911. # decide which one to use based on capabilities of $DLLTOOL
  5912. case `$DLLTOOL --help 2>&1` in
  5913. *--identify-strict*)
  5914. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5915. ;;
  5916. *)
  5917. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5918. ;;
  5919. esac
  5920. ;;
  5921. *)
  5922. # fallback: assume linklib IS sharedlib
  5923. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5924. ;;
  5925. esac
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5928. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5929. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5930. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5931. if test -n "$ac_tool_prefix"; then
  5932. for ac_prog in ar
  5933. do
  5934. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5935. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5937. $as_echo_n "checking for $ac_word... " >&6; }
  5938. if ${ac_cv_prog_AR+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. if test -n "$AR"; then
  5942. ac_cv_prog_AR="$AR" # Let the user override the test.
  5943. else
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5951. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. fi
  5959. fi
  5960. AR=$ac_cv_prog_AR
  5961. if test -n "$AR"; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5963. $as_echo "$AR" >&6; }
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5966. $as_echo "no" >&6; }
  5967. fi
  5968. test -n "$AR" && break
  5969. done
  5970. fi
  5971. if test -z "$AR"; then
  5972. ac_ct_AR=$AR
  5973. for ac_prog in ar
  5974. do
  5975. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5976. set dummy $ac_prog; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$ac_ct_AR"; then
  5983. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5992. ac_cv_prog_ac_ct_AR="$ac_prog"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6002. if test -n "$ac_ct_AR"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6004. $as_echo "$ac_ct_AR" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. test -n "$ac_ct_AR" && break
  6010. done
  6011. if test "x$ac_ct_AR" = x; then
  6012. AR="false"
  6013. else
  6014. case $cross_compiling:$ac_tool_warned in
  6015. yes:)
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6017. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6018. ac_tool_warned=yes ;;
  6019. esac
  6020. AR=$ac_ct_AR
  6021. fi
  6022. fi
  6023. : ${AR=ar}
  6024. : ${AR_FLAGS=cr}
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6026. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6027. if ${lt_cv_ar_at_file+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. lt_cv_ar_at_file=no
  6031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6032. /* end confdefs.h. */
  6033. int
  6034. main ()
  6035. {
  6036. ;
  6037. return 0;
  6038. }
  6039. _ACEOF
  6040. if ac_fn_c_try_compile "$LINENO"; then :
  6041. echo conftest.$ac_objext > conftest.lst
  6042. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6043. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6044. (eval $lt_ar_try) 2>&5
  6045. ac_status=$?
  6046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6047. test $ac_status = 0; }
  6048. if test 0 -eq "$ac_status"; then
  6049. # Ensure the archiver fails upon bogus file names.
  6050. rm -f conftest.$ac_objext libconftest.a
  6051. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6052. (eval $lt_ar_try) 2>&5
  6053. ac_status=$?
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6055. test $ac_status = 0; }
  6056. if test 0 -ne "$ac_status"; then
  6057. lt_cv_ar_at_file=@
  6058. fi
  6059. fi
  6060. rm -f conftest.* libconftest.a
  6061. fi
  6062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6065. $as_echo "$lt_cv_ar_at_file" >&6; }
  6066. if test no = "$lt_cv_ar_at_file"; then
  6067. archiver_list_spec=
  6068. else
  6069. archiver_list_spec=$lt_cv_ar_at_file
  6070. fi
  6071. if test -n "$ac_tool_prefix"; then
  6072. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6073. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6075. $as_echo_n "checking for $ac_word... " >&6; }
  6076. if ${ac_cv_prog_STRIP+:} false; then :
  6077. $as_echo_n "(cached) " >&6
  6078. else
  6079. if test -n "$STRIP"; then
  6080. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6081. else
  6082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6083. for as_dir in $PATH
  6084. do
  6085. IFS=$as_save_IFS
  6086. test -z "$as_dir" && as_dir=.
  6087. for ac_exec_ext in '' $ac_executable_extensions; do
  6088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6089. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6091. break 2
  6092. fi
  6093. done
  6094. done
  6095. IFS=$as_save_IFS
  6096. fi
  6097. fi
  6098. STRIP=$ac_cv_prog_STRIP
  6099. if test -n "$STRIP"; then
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6101. $as_echo "$STRIP" >&6; }
  6102. else
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6104. $as_echo "no" >&6; }
  6105. fi
  6106. fi
  6107. if test -z "$ac_cv_prog_STRIP"; then
  6108. ac_ct_STRIP=$STRIP
  6109. # Extract the first word of "strip", so it can be a program name with args.
  6110. set dummy strip; ac_word=$2
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6112. $as_echo_n "checking for $ac_word... " >&6; }
  6113. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6114. $as_echo_n "(cached) " >&6
  6115. else
  6116. if test -n "$ac_ct_STRIP"; then
  6117. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6118. else
  6119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6120. for as_dir in $PATH
  6121. do
  6122. IFS=$as_save_IFS
  6123. test -z "$as_dir" && as_dir=.
  6124. for ac_exec_ext in '' $ac_executable_extensions; do
  6125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6126. ac_cv_prog_ac_ct_STRIP="strip"
  6127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6128. break 2
  6129. fi
  6130. done
  6131. done
  6132. IFS=$as_save_IFS
  6133. fi
  6134. fi
  6135. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6136. if test -n "$ac_ct_STRIP"; then
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6138. $as_echo "$ac_ct_STRIP" >&6; }
  6139. else
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6141. $as_echo "no" >&6; }
  6142. fi
  6143. if test "x$ac_ct_STRIP" = x; then
  6144. STRIP=":"
  6145. else
  6146. case $cross_compiling:$ac_tool_warned in
  6147. yes:)
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6150. ac_tool_warned=yes ;;
  6151. esac
  6152. STRIP=$ac_ct_STRIP
  6153. fi
  6154. else
  6155. STRIP="$ac_cv_prog_STRIP"
  6156. fi
  6157. test -z "$STRIP" && STRIP=:
  6158. if test -n "$ac_tool_prefix"; then
  6159. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6160. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if ${ac_cv_prog_RANLIB+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$RANLIB"; then
  6167. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6176. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. RANLIB=$ac_cv_prog_RANLIB
  6186. if test -n "$RANLIB"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6188. $as_echo "$RANLIB" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. fi
  6194. if test -z "$ac_cv_prog_RANLIB"; then
  6195. ac_ct_RANLIB=$RANLIB
  6196. # Extract the first word of "ranlib", so it can be a program name with args.
  6197. set dummy ranlib; ac_word=$2
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6199. $as_echo_n "checking for $ac_word... " >&6; }
  6200. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. if test -n "$ac_ct_RANLIB"; then
  6204. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6205. else
  6206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6207. for as_dir in $PATH
  6208. do
  6209. IFS=$as_save_IFS
  6210. test -z "$as_dir" && as_dir=.
  6211. for ac_exec_ext in '' $ac_executable_extensions; do
  6212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6213. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6215. break 2
  6216. fi
  6217. done
  6218. done
  6219. IFS=$as_save_IFS
  6220. fi
  6221. fi
  6222. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6223. if test -n "$ac_ct_RANLIB"; then
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6225. $as_echo "$ac_ct_RANLIB" >&6; }
  6226. else
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6228. $as_echo "no" >&6; }
  6229. fi
  6230. if test "x$ac_ct_RANLIB" = x; then
  6231. RANLIB=":"
  6232. else
  6233. case $cross_compiling:$ac_tool_warned in
  6234. yes:)
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. RANLIB=$ac_ct_RANLIB
  6240. fi
  6241. else
  6242. RANLIB="$ac_cv_prog_RANLIB"
  6243. fi
  6244. test -z "$RANLIB" && RANLIB=:
  6245. # Determine commands to create old-style static archives.
  6246. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6247. old_postinstall_cmds='chmod 644 $oldlib'
  6248. old_postuninstall_cmds=
  6249. if test -n "$RANLIB"; then
  6250. case $host_os in
  6251. bitrig* | openbsd*)
  6252. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6253. ;;
  6254. *)
  6255. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6256. ;;
  6257. esac
  6258. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6259. fi
  6260. case $host_os in
  6261. darwin*)
  6262. lock_old_archive_extraction=yes ;;
  6263. *)
  6264. lock_old_archive_extraction=no ;;
  6265. esac
  6266. # If no C compiler was specified, use CC.
  6267. LTCC=${LTCC-"$CC"}
  6268. # If no C compiler flags were specified, use CFLAGS.
  6269. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6270. # Allow CC to be a program name with arguments.
  6271. compiler=$CC
  6272. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6274. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6275. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. # These are sane defaults that work on at least a few old systems.
  6279. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6280. # Character class describing NM global symbol codes.
  6281. symcode='[BCDEGRST]'
  6282. # Regexp to match symbols that can be accessed directly from C.
  6283. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6284. # Define system-specific variables.
  6285. case $host_os in
  6286. aix*)
  6287. symcode='[BCDT]'
  6288. ;;
  6289. cygwin* | mingw* | pw32* | cegcc*)
  6290. symcode='[ABCDGISTW]'
  6291. ;;
  6292. hpux*)
  6293. if test ia64 = "$host_cpu"; then
  6294. symcode='[ABCDEGRST]'
  6295. fi
  6296. ;;
  6297. irix* | nonstopux*)
  6298. symcode='[BCDEGRST]'
  6299. ;;
  6300. osf*)
  6301. symcode='[BCDEGQRST]'
  6302. ;;
  6303. solaris*)
  6304. symcode='[BDRT]'
  6305. ;;
  6306. sco3.2v5*)
  6307. symcode='[DT]'
  6308. ;;
  6309. sysv4.2uw2*)
  6310. symcode='[DT]'
  6311. ;;
  6312. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6313. symcode='[ABDT]'
  6314. ;;
  6315. sysv4)
  6316. symcode='[DFNSTU]'
  6317. ;;
  6318. esac
  6319. # If we're using GNU nm, then use its standard symbol codes.
  6320. case `$NM -V 2>&1` in
  6321. *GNU* | *'with BFD'*)
  6322. symcode='[ABCDGIRSTW]' ;;
  6323. esac
  6324. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6325. # Gets list of data symbols to import.
  6326. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6327. # Adjust the below global symbol transforms to fixup imported variables.
  6328. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6329. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6330. lt_c_name_lib_hook="\
  6331. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6332. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6333. else
  6334. # Disable hooks by default.
  6335. lt_cv_sys_global_symbol_to_import=
  6336. lt_cdecl_hook=
  6337. lt_c_name_hook=
  6338. lt_c_name_lib_hook=
  6339. fi
  6340. # Transform an extracted symbol line into a proper C declaration.
  6341. # Some systems (esp. on ia64) link data and code symbols differently,
  6342. # so use this general approach.
  6343. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6344. $lt_cdecl_hook\
  6345. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6346. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6347. # Transform an extracted symbol line into symbol name and symbol address
  6348. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6349. $lt_c_name_hook\
  6350. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6351. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6352. # Transform an extracted symbol line into symbol name with lib prefix and
  6353. # symbol address.
  6354. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6355. $lt_c_name_lib_hook\
  6356. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6357. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6358. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6359. # Handle CRLF in mingw tool chain
  6360. opt_cr=
  6361. case $build_os in
  6362. mingw*)
  6363. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6364. ;;
  6365. esac
  6366. # Try without a prefix underscore, then with it.
  6367. for ac_symprfx in "" "_"; do
  6368. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6369. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6370. # Write the raw and C identifiers.
  6371. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6372. # Fake it for dumpbin and say T for any non-static function,
  6373. # D for any global variable and I for any imported variable.
  6374. # Also find C++ and __fastcall symbols from MSVC++,
  6375. # which start with @ or ?.
  6376. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6377. " {last_section=section; section=\$ 3};"\
  6378. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6379. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6380. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6381. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6382. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6383. " \$ 0!~/External *\|/{next};"\
  6384. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6385. " {if(hide[section]) next};"\
  6386. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6387. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6388. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6389. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6390. " ' prfx=^$ac_symprfx"
  6391. else
  6392. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6393. fi
  6394. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6395. # Check to see that the pipe works correctly.
  6396. pipe_works=no
  6397. rm -f conftest*
  6398. cat > conftest.$ac_ext <<_LT_EOF
  6399. #ifdef __cplusplus
  6400. extern "C" {
  6401. #endif
  6402. char nm_test_var;
  6403. void nm_test_func(void);
  6404. void nm_test_func(void){}
  6405. #ifdef __cplusplus
  6406. }
  6407. #endif
  6408. int main(){nm_test_var='a';nm_test_func();return(0);}
  6409. _LT_EOF
  6410. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6411. (eval $ac_compile) 2>&5
  6412. ac_status=$?
  6413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6414. test $ac_status = 0; }; then
  6415. # Now try to grab the symbols.
  6416. nlist=conftest.nm
  6417. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6418. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6419. # Try sorting and uniquifying the output.
  6420. if sort "$nlist" | uniq > "$nlist"T; then
  6421. mv -f "$nlist"T "$nlist"
  6422. else
  6423. rm -f "$nlist"T
  6424. fi
  6425. # Make sure that we snagged all the symbols we need.
  6426. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6427. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6428. cat <<_LT_EOF > conftest.$ac_ext
  6429. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6430. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6431. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6432. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6433. # define LT_DLSYM_CONST
  6434. #elif defined __osf__
  6435. /* This system does not cope well with relocations in const data. */
  6436. # define LT_DLSYM_CONST
  6437. #else
  6438. # define LT_DLSYM_CONST const
  6439. #endif
  6440. #ifdef __cplusplus
  6441. extern "C" {
  6442. #endif
  6443. _LT_EOF
  6444. # Now generate the symbol file.
  6445. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6446. cat <<_LT_EOF >> conftest.$ac_ext
  6447. /* The mapping between symbol names and symbols. */
  6448. LT_DLSYM_CONST struct {
  6449. const char *name;
  6450. void *address;
  6451. }
  6452. lt__PROGRAM__LTX_preloaded_symbols[] =
  6453. {
  6454. { "@PROGRAM@", (void *) 0 },
  6455. _LT_EOF
  6456. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6457. cat <<\_LT_EOF >> conftest.$ac_ext
  6458. {0, (void *) 0}
  6459. };
  6460. /* This works around a problem in FreeBSD linker */
  6461. #ifdef FREEBSD_WORKAROUND
  6462. static const void *lt_preloaded_setup() {
  6463. return lt__PROGRAM__LTX_preloaded_symbols;
  6464. }
  6465. #endif
  6466. #ifdef __cplusplus
  6467. }
  6468. #endif
  6469. _LT_EOF
  6470. # Now try linking the two files.
  6471. mv conftest.$ac_objext conftstm.$ac_objext
  6472. lt_globsym_save_LIBS=$LIBS
  6473. lt_globsym_save_CFLAGS=$CFLAGS
  6474. LIBS=conftstm.$ac_objext
  6475. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6476. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6477. (eval $ac_link) 2>&5
  6478. ac_status=$?
  6479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6480. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6481. pipe_works=yes
  6482. fi
  6483. LIBS=$lt_globsym_save_LIBS
  6484. CFLAGS=$lt_globsym_save_CFLAGS
  6485. else
  6486. echo "cannot find nm_test_func in $nlist" >&5
  6487. fi
  6488. else
  6489. echo "cannot find nm_test_var in $nlist" >&5
  6490. fi
  6491. else
  6492. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6493. fi
  6494. else
  6495. echo "$progname: failed program was:" >&5
  6496. cat conftest.$ac_ext >&5
  6497. fi
  6498. rm -rf conftest* conftst*
  6499. # Do not use the global_symbol_pipe unless it works.
  6500. if test yes = "$pipe_works"; then
  6501. break
  6502. else
  6503. lt_cv_sys_global_symbol_pipe=
  6504. fi
  6505. done
  6506. fi
  6507. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6508. lt_cv_sys_global_symbol_to_cdecl=
  6509. fi
  6510. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6512. $as_echo "failed" >&6; }
  6513. else
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6515. $as_echo "ok" >&6; }
  6516. fi
  6517. # Response file support.
  6518. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6519. nm_file_list_spec='@'
  6520. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6521. nm_file_list_spec='@'
  6522. fi
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6524. $as_echo_n "checking for sysroot... " >&6; }
  6525. # Check whether --with-sysroot was given.
  6526. if test "${with_sysroot+set}" = set; then :
  6527. withval=$with_sysroot;
  6528. else
  6529. with_sysroot=no
  6530. fi
  6531. lt_sysroot=
  6532. case $with_sysroot in #(
  6533. yes)
  6534. if test yes = "$GCC"; then
  6535. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6536. fi
  6537. ;; #(
  6538. /*)
  6539. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6540. ;; #(
  6541. no|'')
  6542. ;; #(
  6543. *)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6545. $as_echo "$with_sysroot" >&6; }
  6546. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6547. ;;
  6548. esac
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6550. $as_echo "${lt_sysroot:-no}" >&6; }
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6552. $as_echo_n "checking for a working dd... " >&6; }
  6553. if ${ac_cv_path_lt_DD+:} false; then :
  6554. $as_echo_n "(cached) " >&6
  6555. else
  6556. printf 0123456789abcdef0123456789abcdef >conftest.i
  6557. cat conftest.i conftest.i >conftest2.i
  6558. : ${lt_DD:=$DD}
  6559. if test -z "$lt_DD"; then
  6560. ac_path_lt_DD_found=false
  6561. # Loop through the user's path and test for each of PROGNAME-LIST
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_prog in dd; do
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6570. as_fn_executable_p "$ac_path_lt_DD" || continue
  6571. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6572. cmp -s conftest.i conftest.out \
  6573. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6574. fi
  6575. $ac_path_lt_DD_found && break 3
  6576. done
  6577. done
  6578. done
  6579. IFS=$as_save_IFS
  6580. if test -z "$ac_cv_path_lt_DD"; then
  6581. :
  6582. fi
  6583. else
  6584. ac_cv_path_lt_DD=$lt_DD
  6585. fi
  6586. rm -f conftest.i conftest2.i conftest.out
  6587. fi
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6589. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6591. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6592. if ${lt_cv_truncate_bin+:} false; then :
  6593. $as_echo_n "(cached) " >&6
  6594. else
  6595. printf 0123456789abcdef0123456789abcdef >conftest.i
  6596. cat conftest.i conftest.i >conftest2.i
  6597. lt_cv_truncate_bin=
  6598. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6599. cmp -s conftest.i conftest.out \
  6600. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6601. fi
  6602. rm -f conftest.i conftest2.i conftest.out
  6603. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6604. fi
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6606. $as_echo "$lt_cv_truncate_bin" >&6; }
  6607. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6608. func_cc_basename ()
  6609. {
  6610. for cc_temp in $*""; do
  6611. case $cc_temp in
  6612. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6613. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6614. \-*) ;;
  6615. *) break;;
  6616. esac
  6617. done
  6618. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6619. }
  6620. # Check whether --enable-libtool-lock was given.
  6621. if test "${enable_libtool_lock+set}" = set; then :
  6622. enableval=$enable_libtool_lock;
  6623. fi
  6624. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6625. # Some flags need to be propagated to the compiler or linker for good
  6626. # libtool support.
  6627. case $host in
  6628. ia64-*-hpux*)
  6629. # Find out what ABI is being produced by ac_compile, and set mode
  6630. # options accordingly.
  6631. echo 'int i;' > conftest.$ac_ext
  6632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6633. (eval $ac_compile) 2>&5
  6634. ac_status=$?
  6635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6636. test $ac_status = 0; }; then
  6637. case `/usr/bin/file conftest.$ac_objext` in
  6638. *ELF-32*)
  6639. HPUX_IA64_MODE=32
  6640. ;;
  6641. *ELF-64*)
  6642. HPUX_IA64_MODE=64
  6643. ;;
  6644. esac
  6645. fi
  6646. rm -rf conftest*
  6647. ;;
  6648. *-*-irix6*)
  6649. # Find out what ABI is being produced by ac_compile, and set linker
  6650. # options accordingly.
  6651. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6652. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6653. (eval $ac_compile) 2>&5
  6654. ac_status=$?
  6655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6656. test $ac_status = 0; }; then
  6657. if test yes = "$lt_cv_prog_gnu_ld"; then
  6658. case `/usr/bin/file conftest.$ac_objext` in
  6659. *32-bit*)
  6660. LD="${LD-ld} -melf32bsmip"
  6661. ;;
  6662. *N32*)
  6663. LD="${LD-ld} -melf32bmipn32"
  6664. ;;
  6665. *64-bit*)
  6666. LD="${LD-ld} -melf64bmip"
  6667. ;;
  6668. esac
  6669. else
  6670. case `/usr/bin/file conftest.$ac_objext` in
  6671. *32-bit*)
  6672. LD="${LD-ld} -32"
  6673. ;;
  6674. *N32*)
  6675. LD="${LD-ld} -n32"
  6676. ;;
  6677. *64-bit*)
  6678. LD="${LD-ld} -64"
  6679. ;;
  6680. esac
  6681. fi
  6682. fi
  6683. rm -rf conftest*
  6684. ;;
  6685. mips64*-*linux*)
  6686. # Find out what ABI is being produced by ac_compile, and set linker
  6687. # options accordingly.
  6688. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6690. (eval $ac_compile) 2>&5
  6691. ac_status=$?
  6692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6693. test $ac_status = 0; }; then
  6694. emul=elf
  6695. case `/usr/bin/file conftest.$ac_objext` in
  6696. *32-bit*)
  6697. emul="${emul}32"
  6698. ;;
  6699. *64-bit*)
  6700. emul="${emul}64"
  6701. ;;
  6702. esac
  6703. case `/usr/bin/file conftest.$ac_objext` in
  6704. *MSB*)
  6705. emul="${emul}btsmip"
  6706. ;;
  6707. *LSB*)
  6708. emul="${emul}ltsmip"
  6709. ;;
  6710. esac
  6711. case `/usr/bin/file conftest.$ac_objext` in
  6712. *N32*)
  6713. emul="${emul}n32"
  6714. ;;
  6715. esac
  6716. LD="${LD-ld} -m $emul"
  6717. fi
  6718. rm -rf conftest*
  6719. ;;
  6720. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6721. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6722. # Find out what ABI is being produced by ac_compile, and set linker
  6723. # options accordingly. Note that the listed cases only cover the
  6724. # situations where additional linker options are needed (such as when
  6725. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6726. # vice versa); the common cases where no linker options are needed do
  6727. # not appear in the list.
  6728. echo 'int i;' > conftest.$ac_ext
  6729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6730. (eval $ac_compile) 2>&5
  6731. ac_status=$?
  6732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6733. test $ac_status = 0; }; then
  6734. case `/usr/bin/file conftest.o` in
  6735. *32-bit*)
  6736. case $host in
  6737. x86_64-*kfreebsd*-gnu)
  6738. LD="${LD-ld} -m elf_i386_fbsd"
  6739. ;;
  6740. x86_64-*linux*)
  6741. case `/usr/bin/file conftest.o` in
  6742. *x86-64*)
  6743. LD="${LD-ld} -m elf32_x86_64"
  6744. ;;
  6745. *)
  6746. LD="${LD-ld} -m elf_i386"
  6747. ;;
  6748. esac
  6749. ;;
  6750. powerpc64le-*linux*)
  6751. LD="${LD-ld} -m elf32lppclinux"
  6752. ;;
  6753. powerpc64-*linux*)
  6754. LD="${LD-ld} -m elf32ppclinux"
  6755. ;;
  6756. s390x-*linux*)
  6757. LD="${LD-ld} -m elf_s390"
  6758. ;;
  6759. sparc64-*linux*)
  6760. LD="${LD-ld} -m elf32_sparc"
  6761. ;;
  6762. esac
  6763. ;;
  6764. *64-bit*)
  6765. case $host in
  6766. x86_64-*kfreebsd*-gnu)
  6767. LD="${LD-ld} -m elf_x86_64_fbsd"
  6768. ;;
  6769. x86_64-*linux*)
  6770. LD="${LD-ld} -m elf_x86_64"
  6771. ;;
  6772. powerpcle-*linux*)
  6773. LD="${LD-ld} -m elf64lppc"
  6774. ;;
  6775. powerpc-*linux*)
  6776. LD="${LD-ld} -m elf64ppc"
  6777. ;;
  6778. s390*-*linux*|s390*-*tpf*)
  6779. LD="${LD-ld} -m elf64_s390"
  6780. ;;
  6781. sparc*-*linux*)
  6782. LD="${LD-ld} -m elf64_sparc"
  6783. ;;
  6784. esac
  6785. ;;
  6786. esac
  6787. fi
  6788. rm -rf conftest*
  6789. ;;
  6790. *-*-sco3.2v5*)
  6791. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6792. SAVE_CFLAGS=$CFLAGS
  6793. CFLAGS="$CFLAGS -belf"
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6795. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6796. if ${lt_cv_cc_needs_belf+:} false; then :
  6797. $as_echo_n "(cached) " >&6
  6798. else
  6799. ac_ext=c
  6800. ac_cpp='$CPP $CPPFLAGS'
  6801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6805. /* end confdefs.h. */
  6806. int
  6807. main ()
  6808. {
  6809. ;
  6810. return 0;
  6811. }
  6812. _ACEOF
  6813. if ac_fn_c_try_link "$LINENO"; then :
  6814. lt_cv_cc_needs_belf=yes
  6815. else
  6816. lt_cv_cc_needs_belf=no
  6817. fi
  6818. rm -f core conftest.err conftest.$ac_objext \
  6819. conftest$ac_exeext conftest.$ac_ext
  6820. ac_ext=c
  6821. ac_cpp='$CPP $CPPFLAGS'
  6822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6825. fi
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6827. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6828. if test yes != "$lt_cv_cc_needs_belf"; then
  6829. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6830. CFLAGS=$SAVE_CFLAGS
  6831. fi
  6832. ;;
  6833. *-*solaris*)
  6834. # Find out what ABI is being produced by ac_compile, and set linker
  6835. # options accordingly.
  6836. echo 'int i;' > conftest.$ac_ext
  6837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6838. (eval $ac_compile) 2>&5
  6839. ac_status=$?
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6841. test $ac_status = 0; }; then
  6842. case `/usr/bin/file conftest.o` in
  6843. *64-bit*)
  6844. case $lt_cv_prog_gnu_ld in
  6845. yes*)
  6846. case $host in
  6847. i?86-*-solaris*|x86_64-*-solaris*)
  6848. LD="${LD-ld} -m elf_x86_64"
  6849. ;;
  6850. sparc*-*-solaris*)
  6851. LD="${LD-ld} -m elf64_sparc"
  6852. ;;
  6853. esac
  6854. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6855. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6856. LD=${LD-ld}_sol2
  6857. fi
  6858. ;;
  6859. *)
  6860. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6861. LD="${LD-ld} -64"
  6862. fi
  6863. ;;
  6864. esac
  6865. ;;
  6866. esac
  6867. fi
  6868. rm -rf conftest*
  6869. ;;
  6870. esac
  6871. need_locks=$enable_libtool_lock
  6872. if test -n "$ac_tool_prefix"; then
  6873. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6874. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$MANIFEST_TOOL"; then
  6881. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6890. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6900. if test -n "$MANIFEST_TOOL"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6902. $as_echo "$MANIFEST_TOOL" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. fi
  6908. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6909. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6910. # Extract the first word of "mt", so it can be a program name with args.
  6911. set dummy mt; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6918. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6927. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6937. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6939. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6945. MANIFEST_TOOL=":"
  6946. else
  6947. case $cross_compiling:$ac_tool_warned in
  6948. yes:)
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6951. ac_tool_warned=yes ;;
  6952. esac
  6953. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6954. fi
  6955. else
  6956. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6957. fi
  6958. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6960. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6961. if ${lt_cv_path_mainfest_tool+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. lt_cv_path_mainfest_tool=no
  6965. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6966. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6967. cat conftest.err >&5
  6968. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6969. lt_cv_path_mainfest_tool=yes
  6970. fi
  6971. rm -f conftest*
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6974. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6975. if test yes != "$lt_cv_path_mainfest_tool"; then
  6976. MANIFEST_TOOL=:
  6977. fi
  6978. case $host_os in
  6979. rhapsody* | darwin*)
  6980. if test -n "$ac_tool_prefix"; then
  6981. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6982. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6984. $as_echo_n "checking for $ac_word... " >&6; }
  6985. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. if test -n "$DSYMUTIL"; then
  6989. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. test -z "$as_dir" && as_dir=.
  6996. for ac_exec_ext in '' $ac_executable_extensions; do
  6997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6998. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7000. break 2
  7001. fi
  7002. done
  7003. done
  7004. IFS=$as_save_IFS
  7005. fi
  7006. fi
  7007. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7008. if test -n "$DSYMUTIL"; then
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7010. $as_echo "$DSYMUTIL" >&6; }
  7011. else
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7013. $as_echo "no" >&6; }
  7014. fi
  7015. fi
  7016. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7017. ac_ct_DSYMUTIL=$DSYMUTIL
  7018. # Extract the first word of "dsymutil", so it can be a program name with args.
  7019. set dummy dsymutil; ac_word=$2
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7021. $as_echo_n "checking for $ac_word... " >&6; }
  7022. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7023. $as_echo_n "(cached) " >&6
  7024. else
  7025. if test -n "$ac_ct_DSYMUTIL"; then
  7026. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7027. else
  7028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7029. for as_dir in $PATH
  7030. do
  7031. IFS=$as_save_IFS
  7032. test -z "$as_dir" && as_dir=.
  7033. for ac_exec_ext in '' $ac_executable_extensions; do
  7034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7035. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7037. break 2
  7038. fi
  7039. done
  7040. done
  7041. IFS=$as_save_IFS
  7042. fi
  7043. fi
  7044. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7045. if test -n "$ac_ct_DSYMUTIL"; then
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7047. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7048. else
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7050. $as_echo "no" >&6; }
  7051. fi
  7052. if test "x$ac_ct_DSYMUTIL" = x; then
  7053. DSYMUTIL=":"
  7054. else
  7055. case $cross_compiling:$ac_tool_warned in
  7056. yes:)
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7059. ac_tool_warned=yes ;;
  7060. esac
  7061. DSYMUTIL=$ac_ct_DSYMUTIL
  7062. fi
  7063. else
  7064. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7065. fi
  7066. if test -n "$ac_tool_prefix"; then
  7067. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7068. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7070. $as_echo_n "checking for $ac_word... " >&6; }
  7071. if ${ac_cv_prog_NMEDIT+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. if test -n "$NMEDIT"; then
  7075. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7076. else
  7077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7078. for as_dir in $PATH
  7079. do
  7080. IFS=$as_save_IFS
  7081. test -z "$as_dir" && as_dir=.
  7082. for ac_exec_ext in '' $ac_executable_extensions; do
  7083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7084. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7086. break 2
  7087. fi
  7088. done
  7089. done
  7090. IFS=$as_save_IFS
  7091. fi
  7092. fi
  7093. NMEDIT=$ac_cv_prog_NMEDIT
  7094. if test -n "$NMEDIT"; then
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7096. $as_echo "$NMEDIT" >&6; }
  7097. else
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7099. $as_echo "no" >&6; }
  7100. fi
  7101. fi
  7102. if test -z "$ac_cv_prog_NMEDIT"; then
  7103. ac_ct_NMEDIT=$NMEDIT
  7104. # Extract the first word of "nmedit", so it can be a program name with args.
  7105. set dummy nmedit; ac_word=$2
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7107. $as_echo_n "checking for $ac_word... " >&6; }
  7108. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$ac_ct_NMEDIT"; then
  7112. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7113. else
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. test -z "$as_dir" && as_dir=.
  7119. for ac_exec_ext in '' $ac_executable_extensions; do
  7120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7121. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123. break 2
  7124. fi
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. fi
  7129. fi
  7130. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7131. if test -n "$ac_ct_NMEDIT"; then
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7133. $as_echo "$ac_ct_NMEDIT" >&6; }
  7134. else
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. $as_echo "no" >&6; }
  7137. fi
  7138. if test "x$ac_ct_NMEDIT" = x; then
  7139. NMEDIT=":"
  7140. else
  7141. case $cross_compiling:$ac_tool_warned in
  7142. yes:)
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7145. ac_tool_warned=yes ;;
  7146. esac
  7147. NMEDIT=$ac_ct_NMEDIT
  7148. fi
  7149. else
  7150. NMEDIT="$ac_cv_prog_NMEDIT"
  7151. fi
  7152. if test -n "$ac_tool_prefix"; then
  7153. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7154. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7156. $as_echo_n "checking for $ac_word... " >&6; }
  7157. if ${ac_cv_prog_LIPO+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. if test -n "$LIPO"; then
  7161. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7162. else
  7163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7164. for as_dir in $PATH
  7165. do
  7166. IFS=$as_save_IFS
  7167. test -z "$as_dir" && as_dir=.
  7168. for ac_exec_ext in '' $ac_executable_extensions; do
  7169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7170. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7172. break 2
  7173. fi
  7174. done
  7175. done
  7176. IFS=$as_save_IFS
  7177. fi
  7178. fi
  7179. LIPO=$ac_cv_prog_LIPO
  7180. if test -n "$LIPO"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7182. $as_echo "$LIPO" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. fi
  7188. if test -z "$ac_cv_prog_LIPO"; then
  7189. ac_ct_LIPO=$LIPO
  7190. # Extract the first word of "lipo", so it can be a program name with args.
  7191. set dummy lipo; ac_word=$2
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$ac_ct_LIPO"; then
  7198. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7207. ac_cv_prog_ac_ct_LIPO="lipo"
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7217. if test -n "$ac_ct_LIPO"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7219. $as_echo "$ac_ct_LIPO" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. if test "x$ac_ct_LIPO" = x; then
  7225. LIPO=":"
  7226. else
  7227. case $cross_compiling:$ac_tool_warned in
  7228. yes:)
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7231. ac_tool_warned=yes ;;
  7232. esac
  7233. LIPO=$ac_ct_LIPO
  7234. fi
  7235. else
  7236. LIPO="$ac_cv_prog_LIPO"
  7237. fi
  7238. if test -n "$ac_tool_prefix"; then
  7239. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7240. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_OTOOL+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test -n "$OTOOL"; then
  7247. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252. IFS=$as_save_IFS
  7253. test -z "$as_dir" && as_dir=.
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. OTOOL=$ac_cv_prog_OTOOL
  7266. if test -n "$OTOOL"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7268. $as_echo "$OTOOL" >&6; }
  7269. else
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. $as_echo "no" >&6; }
  7272. fi
  7273. fi
  7274. if test -z "$ac_cv_prog_OTOOL"; then
  7275. ac_ct_OTOOL=$OTOOL
  7276. # Extract the first word of "otool", so it can be a program name with args.
  7277. set dummy otool; ac_word=$2
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7279. $as_echo_n "checking for $ac_word... " >&6; }
  7280. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. if test -n "$ac_ct_OTOOL"; then
  7284. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7285. else
  7286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7287. for as_dir in $PATH
  7288. do
  7289. IFS=$as_save_IFS
  7290. test -z "$as_dir" && as_dir=.
  7291. for ac_exec_ext in '' $ac_executable_extensions; do
  7292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7293. ac_cv_prog_ac_ct_OTOOL="otool"
  7294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7295. break 2
  7296. fi
  7297. done
  7298. done
  7299. IFS=$as_save_IFS
  7300. fi
  7301. fi
  7302. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7303. if test -n "$ac_ct_OTOOL"; then
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7305. $as_echo "$ac_ct_OTOOL" >&6; }
  7306. else
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. $as_echo "no" >&6; }
  7309. fi
  7310. if test "x$ac_ct_OTOOL" = x; then
  7311. OTOOL=":"
  7312. else
  7313. case $cross_compiling:$ac_tool_warned in
  7314. yes:)
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7317. ac_tool_warned=yes ;;
  7318. esac
  7319. OTOOL=$ac_ct_OTOOL
  7320. fi
  7321. else
  7322. OTOOL="$ac_cv_prog_OTOOL"
  7323. fi
  7324. if test -n "$ac_tool_prefix"; then
  7325. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7326. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7328. $as_echo_n "checking for $ac_word... " >&6; }
  7329. if ${ac_cv_prog_OTOOL64+:} false; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. if test -n "$OTOOL64"; then
  7333. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7334. else
  7335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7336. for as_dir in $PATH
  7337. do
  7338. IFS=$as_save_IFS
  7339. test -z "$as_dir" && as_dir=.
  7340. for ac_exec_ext in '' $ac_executable_extensions; do
  7341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7342. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7344. break 2
  7345. fi
  7346. done
  7347. done
  7348. IFS=$as_save_IFS
  7349. fi
  7350. fi
  7351. OTOOL64=$ac_cv_prog_OTOOL64
  7352. if test -n "$OTOOL64"; then
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7354. $as_echo "$OTOOL64" >&6; }
  7355. else
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7357. $as_echo "no" >&6; }
  7358. fi
  7359. fi
  7360. if test -z "$ac_cv_prog_OTOOL64"; then
  7361. ac_ct_OTOOL64=$OTOOL64
  7362. # Extract the first word of "otool64", so it can be a program name with args.
  7363. set dummy otool64; ac_word=$2
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7365. $as_echo_n "checking for $ac_word... " >&6; }
  7366. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7367. $as_echo_n "(cached) " >&6
  7368. else
  7369. if test -n "$ac_ct_OTOOL64"; then
  7370. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7371. else
  7372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7373. for as_dir in $PATH
  7374. do
  7375. IFS=$as_save_IFS
  7376. test -z "$as_dir" && as_dir=.
  7377. for ac_exec_ext in '' $ac_executable_extensions; do
  7378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7379. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7381. break 2
  7382. fi
  7383. done
  7384. done
  7385. IFS=$as_save_IFS
  7386. fi
  7387. fi
  7388. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7389. if test -n "$ac_ct_OTOOL64"; then
  7390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7391. $as_echo "$ac_ct_OTOOL64" >&6; }
  7392. else
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7394. $as_echo "no" >&6; }
  7395. fi
  7396. if test "x$ac_ct_OTOOL64" = x; then
  7397. OTOOL64=":"
  7398. else
  7399. case $cross_compiling:$ac_tool_warned in
  7400. yes:)
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7403. ac_tool_warned=yes ;;
  7404. esac
  7405. OTOOL64=$ac_ct_OTOOL64
  7406. fi
  7407. else
  7408. OTOOL64="$ac_cv_prog_OTOOL64"
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7411. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7412. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7413. $as_echo_n "(cached) " >&6
  7414. else
  7415. lt_cv_apple_cc_single_mod=no
  7416. if test -z "$LT_MULTI_MODULE"; then
  7417. # By default we will add the -single_module flag. You can override
  7418. # by either setting the environment variable LT_MULTI_MODULE
  7419. # non-empty at configure time, or by adding -multi_module to the
  7420. # link flags.
  7421. rm -rf libconftest.dylib*
  7422. echo "int foo(void){return 1;}" > conftest.c
  7423. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7424. -dynamiclib -Wl,-single_module conftest.c" >&5
  7425. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7426. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7427. _lt_result=$?
  7428. # If there is a non-empty error log, and "single_module"
  7429. # appears in it, assume the flag caused a linker warning
  7430. if test -s conftest.err && $GREP single_module conftest.err; then
  7431. cat conftest.err >&5
  7432. # Otherwise, if the output was created with a 0 exit code from
  7433. # the compiler, it worked.
  7434. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7435. lt_cv_apple_cc_single_mod=yes
  7436. else
  7437. cat conftest.err >&5
  7438. fi
  7439. rm -rf libconftest.dylib*
  7440. rm -f conftest.*
  7441. fi
  7442. fi
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7444. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7446. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7447. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7448. $as_echo_n "(cached) " >&6
  7449. else
  7450. lt_cv_ld_exported_symbols_list=no
  7451. save_LDFLAGS=$LDFLAGS
  7452. echo "_main" > conftest.sym
  7453. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7455. /* end confdefs.h. */
  7456. int
  7457. main ()
  7458. {
  7459. ;
  7460. return 0;
  7461. }
  7462. _ACEOF
  7463. if ac_fn_c_try_link "$LINENO"; then :
  7464. lt_cv_ld_exported_symbols_list=yes
  7465. else
  7466. lt_cv_ld_exported_symbols_list=no
  7467. fi
  7468. rm -f core conftest.err conftest.$ac_objext \
  7469. conftest$ac_exeext conftest.$ac_ext
  7470. LDFLAGS=$save_LDFLAGS
  7471. fi
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7473. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7475. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7476. if ${lt_cv_ld_force_load+:} false; then :
  7477. $as_echo_n "(cached) " >&6
  7478. else
  7479. lt_cv_ld_force_load=no
  7480. cat > conftest.c << _LT_EOF
  7481. int forced_loaded() { return 2;}
  7482. _LT_EOF
  7483. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7484. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7485. echo "$AR cr libconftest.a conftest.o" >&5
  7486. $AR cr libconftest.a conftest.o 2>&5
  7487. echo "$RANLIB libconftest.a" >&5
  7488. $RANLIB libconftest.a 2>&5
  7489. cat > conftest.c << _LT_EOF
  7490. int main() { return 0;}
  7491. _LT_EOF
  7492. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7493. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7494. _lt_result=$?
  7495. if test -s conftest.err && $GREP force_load conftest.err; then
  7496. cat conftest.err >&5
  7497. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7498. lt_cv_ld_force_load=yes
  7499. else
  7500. cat conftest.err >&5
  7501. fi
  7502. rm -f conftest.err libconftest.a conftest conftest.c
  7503. rm -rf conftest.dSYM
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7506. $as_echo "$lt_cv_ld_force_load" >&6; }
  7507. case $host_os in
  7508. rhapsody* | darwin1.[012])
  7509. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7510. darwin1.*)
  7511. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7512. darwin*) # darwin 5.x on
  7513. # if running on 10.5 or later, the deployment target defaults
  7514. # to the OS version, if on x86, and 10.4, the deployment
  7515. # target defaults to 10.4. Don't you love it?
  7516. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7517. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  7518. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7519. 10.[012][,.]*)
  7520. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7521. 10.*|11.*)
  7522. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7523. esac
  7524. ;;
  7525. esac
  7526. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7527. _lt_dar_single_mod='$single_module'
  7528. fi
  7529. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7530. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7531. else
  7532. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7533. fi
  7534. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7535. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7536. else
  7537. _lt_dsymutil=
  7538. fi
  7539. ;;
  7540. esac
  7541. # func_munge_path_list VARIABLE PATH
  7542. # -----------------------------------
  7543. # VARIABLE is name of variable containing _space_ separated list of
  7544. # directories to be munged by the contents of PATH, which is string
  7545. # having a format:
  7546. # "DIR[:DIR]:"
  7547. # string "DIR[ DIR]" will be prepended to VARIABLE
  7548. # ":DIR[:DIR]"
  7549. # string "DIR[ DIR]" will be appended to VARIABLE
  7550. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7551. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7552. # "DIRA[ DIRA]" will be appended to VARIABLE
  7553. # "DIR[:DIR]"
  7554. # VARIABLE will be replaced by "DIR[ DIR]"
  7555. func_munge_path_list ()
  7556. {
  7557. case x$2 in
  7558. x)
  7559. ;;
  7560. *:)
  7561. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7562. ;;
  7563. x:*)
  7564. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7565. ;;
  7566. *::*)
  7567. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7568. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7569. ;;
  7570. *)
  7571. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7572. ;;
  7573. esac
  7574. }
  7575. ac_ext=c
  7576. ac_cpp='$CPP $CPPFLAGS'
  7577. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7578. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7579. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7581. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7582. # On Suns, sometimes $CPP names a directory.
  7583. if test -n "$CPP" && test -d "$CPP"; then
  7584. CPP=
  7585. fi
  7586. if test -z "$CPP"; then
  7587. if ${ac_cv_prog_CPP+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. # Double quotes because CPP needs to be expanded
  7591. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7592. do
  7593. ac_preproc_ok=false
  7594. for ac_c_preproc_warn_flag in '' yes
  7595. do
  7596. # Use a header file that comes with gcc, so configuring glibc
  7597. # with a fresh cross-compiler works.
  7598. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7599. # <limits.h> exists even on freestanding compilers.
  7600. # On the NeXT, cc -E runs the code through the compiler's parser,
  7601. # not just through cpp. "Syntax error" is here to catch this case.
  7602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7603. /* end confdefs.h. */
  7604. #ifdef __STDC__
  7605. # include <limits.h>
  7606. #else
  7607. # include <assert.h>
  7608. #endif
  7609. Syntax error
  7610. _ACEOF
  7611. if ac_fn_c_try_cpp "$LINENO"; then :
  7612. else
  7613. # Broken: fails on valid input.
  7614. continue
  7615. fi
  7616. rm -f conftest.err conftest.i conftest.$ac_ext
  7617. # OK, works on sane cases. Now check whether nonexistent headers
  7618. # can be detected and how.
  7619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7620. /* end confdefs.h. */
  7621. #include <ac_nonexistent.h>
  7622. _ACEOF
  7623. if ac_fn_c_try_cpp "$LINENO"; then :
  7624. # Broken: success on invalid input.
  7625. continue
  7626. else
  7627. # Passes both tests.
  7628. ac_preproc_ok=:
  7629. break
  7630. fi
  7631. rm -f conftest.err conftest.i conftest.$ac_ext
  7632. done
  7633. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7634. rm -f conftest.i conftest.err conftest.$ac_ext
  7635. if $ac_preproc_ok; then :
  7636. break
  7637. fi
  7638. done
  7639. ac_cv_prog_CPP=$CPP
  7640. fi
  7641. CPP=$ac_cv_prog_CPP
  7642. else
  7643. ac_cv_prog_CPP=$CPP
  7644. fi
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7646. $as_echo "$CPP" >&6; }
  7647. ac_preproc_ok=false
  7648. for ac_c_preproc_warn_flag in '' yes
  7649. do
  7650. # Use a header file that comes with gcc, so configuring glibc
  7651. # with a fresh cross-compiler works.
  7652. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7653. # <limits.h> exists even on freestanding compilers.
  7654. # On the NeXT, cc -E runs the code through the compiler's parser,
  7655. # not just through cpp. "Syntax error" is here to catch this case.
  7656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7657. /* end confdefs.h. */
  7658. #ifdef __STDC__
  7659. # include <limits.h>
  7660. #else
  7661. # include <assert.h>
  7662. #endif
  7663. Syntax error
  7664. _ACEOF
  7665. if ac_fn_c_try_cpp "$LINENO"; then :
  7666. else
  7667. # Broken: fails on valid input.
  7668. continue
  7669. fi
  7670. rm -f conftest.err conftest.i conftest.$ac_ext
  7671. # OK, works on sane cases. Now check whether nonexistent headers
  7672. # can be detected and how.
  7673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7674. /* end confdefs.h. */
  7675. #include <ac_nonexistent.h>
  7676. _ACEOF
  7677. if ac_fn_c_try_cpp "$LINENO"; then :
  7678. # Broken: success on invalid input.
  7679. continue
  7680. else
  7681. # Passes both tests.
  7682. ac_preproc_ok=:
  7683. break
  7684. fi
  7685. rm -f conftest.err conftest.i conftest.$ac_ext
  7686. done
  7687. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7688. rm -f conftest.i conftest.err conftest.$ac_ext
  7689. if $ac_preproc_ok; then :
  7690. else
  7691. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7692. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7693. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7694. See \`config.log' for more details" "$LINENO" 5; }
  7695. fi
  7696. ac_ext=c
  7697. ac_cpp='$CPP $CPPFLAGS'
  7698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7702. $as_echo_n "checking for ANSI C header files... " >&6; }
  7703. if ${ac_cv_header_stdc+:} false; then :
  7704. $as_echo_n "(cached) " >&6
  7705. else
  7706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7707. /* end confdefs.h. */
  7708. #include <stdlib.h>
  7709. #include <stdarg.h>
  7710. #include <string.h>
  7711. #include <float.h>
  7712. int
  7713. main ()
  7714. {
  7715. ;
  7716. return 0;
  7717. }
  7718. _ACEOF
  7719. if ac_fn_c_try_compile "$LINENO"; then :
  7720. ac_cv_header_stdc=yes
  7721. else
  7722. ac_cv_header_stdc=no
  7723. fi
  7724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7725. if test $ac_cv_header_stdc = yes; then
  7726. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7728. /* end confdefs.h. */
  7729. #include <string.h>
  7730. _ACEOF
  7731. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7732. $EGREP "memchr" >/dev/null 2>&1; then :
  7733. else
  7734. ac_cv_header_stdc=no
  7735. fi
  7736. rm -f conftest*
  7737. fi
  7738. if test $ac_cv_header_stdc = yes; then
  7739. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7741. /* end confdefs.h. */
  7742. #include <stdlib.h>
  7743. _ACEOF
  7744. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7745. $EGREP "free" >/dev/null 2>&1; then :
  7746. else
  7747. ac_cv_header_stdc=no
  7748. fi
  7749. rm -f conftest*
  7750. fi
  7751. if test $ac_cv_header_stdc = yes; then
  7752. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7753. if test "$cross_compiling" = yes; then :
  7754. :
  7755. else
  7756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7757. /* end confdefs.h. */
  7758. #include <ctype.h>
  7759. #include <stdlib.h>
  7760. #if ((' ' & 0x0FF) == 0x020)
  7761. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7762. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7763. #else
  7764. # define ISLOWER(c) \
  7765. (('a' <= (c) && (c) <= 'i') \
  7766. || ('j' <= (c) && (c) <= 'r') \
  7767. || ('s' <= (c) && (c) <= 'z'))
  7768. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7769. #endif
  7770. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7771. int
  7772. main ()
  7773. {
  7774. int i;
  7775. for (i = 0; i < 256; i++)
  7776. if (XOR (islower (i), ISLOWER (i))
  7777. || toupper (i) != TOUPPER (i))
  7778. return 2;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_c_try_run "$LINENO"; then :
  7783. else
  7784. ac_cv_header_stdc=no
  7785. fi
  7786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7787. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7788. fi
  7789. fi
  7790. fi
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7792. $as_echo "$ac_cv_header_stdc" >&6; }
  7793. if test $ac_cv_header_stdc = yes; then
  7794. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7795. fi
  7796. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7797. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7798. inttypes.h stdint.h unistd.h
  7799. do :
  7800. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7801. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7802. "
  7803. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7804. cat >>confdefs.h <<_ACEOF
  7805. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7806. _ACEOF
  7807. fi
  7808. done
  7809. for ac_header in dlfcn.h
  7810. do :
  7811. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7812. "
  7813. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7814. cat >>confdefs.h <<_ACEOF
  7815. #define HAVE_DLFCN_H 1
  7816. _ACEOF
  7817. fi
  7818. done
  7819. # Set options
  7820. enable_dlopen=no
  7821. enable_win32_dll=no
  7822. # Check whether --enable-shared was given.
  7823. if test "${enable_shared+set}" = set; then :
  7824. enableval=$enable_shared; p=${PACKAGE-default}
  7825. case $enableval in
  7826. yes) enable_shared=yes ;;
  7827. no) enable_shared=no ;;
  7828. *)
  7829. enable_shared=no
  7830. # Look at the argument we got. We use all the common list separators.
  7831. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7832. for pkg in $enableval; do
  7833. IFS=$lt_save_ifs
  7834. if test "X$pkg" = "X$p"; then
  7835. enable_shared=yes
  7836. fi
  7837. done
  7838. IFS=$lt_save_ifs
  7839. ;;
  7840. esac
  7841. else
  7842. enable_shared=yes
  7843. fi
  7844. # Check whether --enable-static was given.
  7845. if test "${enable_static+set}" = set; then :
  7846. enableval=$enable_static; p=${PACKAGE-default}
  7847. case $enableval in
  7848. yes) enable_static=yes ;;
  7849. no) enable_static=no ;;
  7850. *)
  7851. enable_static=no
  7852. # Look at the argument we got. We use all the common list separators.
  7853. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7854. for pkg in $enableval; do
  7855. IFS=$lt_save_ifs
  7856. if test "X$pkg" = "X$p"; then
  7857. enable_static=yes
  7858. fi
  7859. done
  7860. IFS=$lt_save_ifs
  7861. ;;
  7862. esac
  7863. else
  7864. enable_static=yes
  7865. fi
  7866. # Check whether --with-pic was given.
  7867. if test "${with_pic+set}" = set; then :
  7868. withval=$with_pic; lt_p=${PACKAGE-default}
  7869. case $withval in
  7870. yes|no) pic_mode=$withval ;;
  7871. *)
  7872. pic_mode=default
  7873. # Look at the argument we got. We use all the common list separators.
  7874. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7875. for lt_pkg in $withval; do
  7876. IFS=$lt_save_ifs
  7877. if test "X$lt_pkg" = "X$lt_p"; then
  7878. pic_mode=yes
  7879. fi
  7880. done
  7881. IFS=$lt_save_ifs
  7882. ;;
  7883. esac
  7884. else
  7885. pic_mode=default
  7886. fi
  7887. # Check whether --enable-fast-install was given.
  7888. if test "${enable_fast_install+set}" = set; then :
  7889. enableval=$enable_fast_install; p=${PACKAGE-default}
  7890. case $enableval in
  7891. yes) enable_fast_install=yes ;;
  7892. no) enable_fast_install=no ;;
  7893. *)
  7894. enable_fast_install=no
  7895. # Look at the argument we got. We use all the common list separators.
  7896. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7897. for pkg in $enableval; do
  7898. IFS=$lt_save_ifs
  7899. if test "X$pkg" = "X$p"; then
  7900. enable_fast_install=yes
  7901. fi
  7902. done
  7903. IFS=$lt_save_ifs
  7904. ;;
  7905. esac
  7906. else
  7907. enable_fast_install=yes
  7908. fi
  7909. shared_archive_member_spec=
  7910. case $host,$enable_shared in
  7911. power*-*-aix[5-9]*,yes)
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7913. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7914. # Check whether --with-aix-soname was given.
  7915. if test "${with_aix_soname+set}" = set; then :
  7916. withval=$with_aix_soname; case $withval in
  7917. aix|svr4|both)
  7918. ;;
  7919. *)
  7920. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7921. ;;
  7922. esac
  7923. lt_cv_with_aix_soname=$with_aix_soname
  7924. else
  7925. if ${lt_cv_with_aix_soname+:} false; then :
  7926. $as_echo_n "(cached) " >&6
  7927. else
  7928. lt_cv_with_aix_soname=aix
  7929. fi
  7930. with_aix_soname=$lt_cv_with_aix_soname
  7931. fi
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7933. $as_echo "$with_aix_soname" >&6; }
  7934. if test aix != "$with_aix_soname"; then
  7935. # For the AIX way of multilib, we name the shared archive member
  7936. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7937. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7938. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7939. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7940. if test 64 = "${OBJECT_MODE-32}"; then
  7941. shared_archive_member_spec=shr_64
  7942. else
  7943. shared_archive_member_spec=shr
  7944. fi
  7945. fi
  7946. ;;
  7947. *)
  7948. with_aix_soname=aix
  7949. ;;
  7950. esac
  7951. # This can be used to rebuild libtool when needed
  7952. LIBTOOL_DEPS=$ltmain
  7953. # Always use our own libtool.
  7954. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7955. test -z "$LN_S" && LN_S="ln -s"
  7956. if test -n "${ZSH_VERSION+set}"; then
  7957. setopt NO_GLOB_SUBST
  7958. fi
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7960. $as_echo_n "checking for objdir... " >&6; }
  7961. if ${lt_cv_objdir+:} false; then :
  7962. $as_echo_n "(cached) " >&6
  7963. else
  7964. rm -f .libs 2>/dev/null
  7965. mkdir .libs 2>/dev/null
  7966. if test -d .libs; then
  7967. lt_cv_objdir=.libs
  7968. else
  7969. # MS-DOS does not allow filenames that begin with a dot.
  7970. lt_cv_objdir=_libs
  7971. fi
  7972. rmdir .libs 2>/dev/null
  7973. fi
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7975. $as_echo "$lt_cv_objdir" >&6; }
  7976. objdir=$lt_cv_objdir
  7977. cat >>confdefs.h <<_ACEOF
  7978. #define LT_OBJDIR "$lt_cv_objdir/"
  7979. _ACEOF
  7980. case $host_os in
  7981. aix3*)
  7982. # AIX sometimes has problems with the GCC collect2 program. For some
  7983. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7984. # vanish in a puff of smoke.
  7985. if test set != "${COLLECT_NAMES+set}"; then
  7986. COLLECT_NAMES=
  7987. export COLLECT_NAMES
  7988. fi
  7989. ;;
  7990. esac
  7991. # Global variables:
  7992. ofile=libtool
  7993. can_build_shared=yes
  7994. # All known linkers require a '.a' archive for static linking (except MSVC,
  7995. # which needs '.lib').
  7996. libext=a
  7997. with_gnu_ld=$lt_cv_prog_gnu_ld
  7998. old_CC=$CC
  7999. old_CFLAGS=$CFLAGS
  8000. # Set sane defaults for various variables
  8001. test -z "$CC" && CC=cc
  8002. test -z "$LTCC" && LTCC=$CC
  8003. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8004. test -z "$LD" && LD=ld
  8005. test -z "$ac_objext" && ac_objext=o
  8006. func_cc_basename $compiler
  8007. cc_basename=$func_cc_basename_result
  8008. # Only perform the check for file, if the check method requires it
  8009. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8010. case $deplibs_check_method in
  8011. file_magic*)
  8012. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8014. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8015. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8016. $as_echo_n "(cached) " >&6
  8017. else
  8018. case $MAGIC_CMD in
  8019. [\\/*] | ?:[\\/]*)
  8020. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8021. ;;
  8022. *)
  8023. lt_save_MAGIC_CMD=$MAGIC_CMD
  8024. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8025. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8026. for ac_dir in $ac_dummy; do
  8027. IFS=$lt_save_ifs
  8028. test -z "$ac_dir" && ac_dir=.
  8029. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8030. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8031. if test -n "$file_magic_test_file"; then
  8032. case $deplibs_check_method in
  8033. "file_magic "*)
  8034. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8035. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8036. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8037. $EGREP "$file_magic_regex" > /dev/null; then
  8038. :
  8039. else
  8040. cat <<_LT_EOF 1>&2
  8041. *** Warning: the command libtool uses to detect shared libraries,
  8042. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8043. *** The result is that libtool may fail to recognize shared libraries
  8044. *** as such. This will affect the creation of libtool libraries that
  8045. *** depend on shared libraries, but programs linked with such libtool
  8046. *** libraries will work regardless of this problem. Nevertheless, you
  8047. *** may want to report the problem to your system manager and/or to
  8048. *** bug-libtool@gnu.org
  8049. _LT_EOF
  8050. fi ;;
  8051. esac
  8052. fi
  8053. break
  8054. fi
  8055. done
  8056. IFS=$lt_save_ifs
  8057. MAGIC_CMD=$lt_save_MAGIC_CMD
  8058. ;;
  8059. esac
  8060. fi
  8061. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8062. if test -n "$MAGIC_CMD"; then
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8064. $as_echo "$MAGIC_CMD" >&6; }
  8065. else
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8067. $as_echo "no" >&6; }
  8068. fi
  8069. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8070. if test -n "$ac_tool_prefix"; then
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8072. $as_echo_n "checking for file... " >&6; }
  8073. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8074. $as_echo_n "(cached) " >&6
  8075. else
  8076. case $MAGIC_CMD in
  8077. [\\/*] | ?:[\\/]*)
  8078. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8079. ;;
  8080. *)
  8081. lt_save_MAGIC_CMD=$MAGIC_CMD
  8082. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8083. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8084. for ac_dir in $ac_dummy; do
  8085. IFS=$lt_save_ifs
  8086. test -z "$ac_dir" && ac_dir=.
  8087. if test -f "$ac_dir/file"; then
  8088. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8089. if test -n "$file_magic_test_file"; then
  8090. case $deplibs_check_method in
  8091. "file_magic "*)
  8092. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8093. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8094. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8095. $EGREP "$file_magic_regex" > /dev/null; then
  8096. :
  8097. else
  8098. cat <<_LT_EOF 1>&2
  8099. *** Warning: the command libtool uses to detect shared libraries,
  8100. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8101. *** The result is that libtool may fail to recognize shared libraries
  8102. *** as such. This will affect the creation of libtool libraries that
  8103. *** depend on shared libraries, but programs linked with such libtool
  8104. *** libraries will work regardless of this problem. Nevertheless, you
  8105. *** may want to report the problem to your system manager and/or to
  8106. *** bug-libtool@gnu.org
  8107. _LT_EOF
  8108. fi ;;
  8109. esac
  8110. fi
  8111. break
  8112. fi
  8113. done
  8114. IFS=$lt_save_ifs
  8115. MAGIC_CMD=$lt_save_MAGIC_CMD
  8116. ;;
  8117. esac
  8118. fi
  8119. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8120. if test -n "$MAGIC_CMD"; then
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8122. $as_echo "$MAGIC_CMD" >&6; }
  8123. else
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8125. $as_echo "no" >&6; }
  8126. fi
  8127. else
  8128. MAGIC_CMD=:
  8129. fi
  8130. fi
  8131. fi
  8132. ;;
  8133. esac
  8134. # Use C for the default configuration in the libtool script
  8135. lt_save_CC=$CC
  8136. ac_ext=c
  8137. ac_cpp='$CPP $CPPFLAGS'
  8138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8141. # Source file extension for C test sources.
  8142. ac_ext=c
  8143. # Object file extension for compiled C test sources.
  8144. objext=o
  8145. objext=$objext
  8146. # Code to be used in simple compile tests
  8147. lt_simple_compile_test_code="int some_variable = 0;"
  8148. # Code to be used in simple link tests
  8149. lt_simple_link_test_code='int main(){return(0);}'
  8150. # If no C compiler was specified, use CC.
  8151. LTCC=${LTCC-"$CC"}
  8152. # If no C compiler flags were specified, use CFLAGS.
  8153. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8154. # Allow CC to be a program name with arguments.
  8155. compiler=$CC
  8156. # Save the default compiler, since it gets overwritten when the other
  8157. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8158. compiler_DEFAULT=$CC
  8159. # save warnings/boilerplate of simple test code
  8160. ac_outfile=conftest.$ac_objext
  8161. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8162. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8163. _lt_compiler_boilerplate=`cat conftest.err`
  8164. $RM conftest*
  8165. ac_outfile=conftest.$ac_objext
  8166. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8167. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8168. _lt_linker_boilerplate=`cat conftest.err`
  8169. $RM -r conftest*
  8170. ## CAVEAT EMPTOR:
  8171. ## There is no encapsulation within the following macros, do not change
  8172. ## the running order or otherwise move them around unless you know exactly
  8173. ## what you are doing...
  8174. if test -n "$compiler"; then
  8175. lt_prog_compiler_no_builtin_flag=
  8176. if test yes = "$GCC"; then
  8177. case $cc_basename in
  8178. nvcc*)
  8179. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8180. *)
  8181. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8182. esac
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8184. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8185. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8186. $as_echo_n "(cached) " >&6
  8187. else
  8188. lt_cv_prog_compiler_rtti_exceptions=no
  8189. ac_outfile=conftest.$ac_objext
  8190. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8191. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8192. # Insert the option either (1) after the last *FLAGS variable, or
  8193. # (2) before a word containing "conftest.", or (3) at the end.
  8194. # Note that $ac_compile itself does not contain backslashes and begins
  8195. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8196. # The option is referenced via a variable to avoid confusing sed.
  8197. lt_compile=`echo "$ac_compile" | $SED \
  8198. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8199. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8200. -e 's:$: $lt_compiler_flag:'`
  8201. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8202. (eval "$lt_compile" 2>conftest.err)
  8203. ac_status=$?
  8204. cat conftest.err >&5
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. if (exit $ac_status) && test -s "$ac_outfile"; then
  8207. # The compiler can only warn and ignore the option if not recognized
  8208. # So say no if there are warnings other than the usual output.
  8209. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8210. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8211. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8212. lt_cv_prog_compiler_rtti_exceptions=yes
  8213. fi
  8214. fi
  8215. $RM conftest*
  8216. fi
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8218. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8219. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8220. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8221. else
  8222. :
  8223. fi
  8224. fi
  8225. lt_prog_compiler_wl=
  8226. lt_prog_compiler_pic=
  8227. lt_prog_compiler_static=
  8228. if test yes = "$GCC"; then
  8229. lt_prog_compiler_wl='-Wl,'
  8230. lt_prog_compiler_static='-static'
  8231. case $host_os in
  8232. aix*)
  8233. # All AIX code is PIC.
  8234. if test ia64 = "$host_cpu"; then
  8235. # AIX 5 now supports IA64 processor
  8236. lt_prog_compiler_static='-Bstatic'
  8237. fi
  8238. lt_prog_compiler_pic='-fPIC'
  8239. ;;
  8240. amigaos*)
  8241. case $host_cpu in
  8242. powerpc)
  8243. # see comment about AmigaOS4 .so support
  8244. lt_prog_compiler_pic='-fPIC'
  8245. ;;
  8246. m68k)
  8247. # FIXME: we need at least 68020 code to build shared libraries, but
  8248. # adding the '-m68020' flag to GCC prevents building anything better,
  8249. # like '-m68040'.
  8250. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8251. ;;
  8252. esac
  8253. ;;
  8254. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8255. # PIC is the default for these OSes.
  8256. ;;
  8257. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8258. # This hack is so that the source file can tell whether it is being
  8259. # built for inclusion in a dll (and should export symbols for example).
  8260. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8261. # (--disable-auto-import) libraries
  8262. lt_prog_compiler_pic='-DDLL_EXPORT'
  8263. case $host_os in
  8264. os2*)
  8265. lt_prog_compiler_static='$wl-static'
  8266. ;;
  8267. esac
  8268. ;;
  8269. darwin* | rhapsody*)
  8270. # PIC is the default on this platform
  8271. # Common symbols not allowed in MH_DYLIB files
  8272. lt_prog_compiler_pic='-fno-common'
  8273. ;;
  8274. haiku*)
  8275. # PIC is the default for Haiku.
  8276. # The "-static" flag exists, but is broken.
  8277. lt_prog_compiler_static=
  8278. ;;
  8279. hpux*)
  8280. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8281. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8282. # sets the default TLS model and affects inlining.
  8283. case $host_cpu in
  8284. hppa*64*)
  8285. # +Z the default
  8286. ;;
  8287. *)
  8288. lt_prog_compiler_pic='-fPIC'
  8289. ;;
  8290. esac
  8291. ;;
  8292. interix[3-9]*)
  8293. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8294. # Instead, we relocate shared libraries at runtime.
  8295. ;;
  8296. msdosdjgpp*)
  8297. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8298. # on systems that don't support them.
  8299. lt_prog_compiler_can_build_shared=no
  8300. enable_shared=no
  8301. ;;
  8302. *nto* | *qnx*)
  8303. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8304. # it will coredump.
  8305. lt_prog_compiler_pic='-fPIC -shared'
  8306. ;;
  8307. sysv4*MP*)
  8308. if test -d /usr/nec; then
  8309. lt_prog_compiler_pic=-Kconform_pic
  8310. fi
  8311. ;;
  8312. *)
  8313. lt_prog_compiler_pic='-fPIC'
  8314. ;;
  8315. esac
  8316. case $cc_basename in
  8317. nvcc*) # Cuda Compiler Driver 2.2
  8318. lt_prog_compiler_wl='-Xlinker '
  8319. if test -n "$lt_prog_compiler_pic"; then
  8320. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8321. fi
  8322. ;;
  8323. esac
  8324. else
  8325. # PORTME Check for flag to pass linker flags through the system compiler.
  8326. case $host_os in
  8327. aix*)
  8328. lt_prog_compiler_wl='-Wl,'
  8329. if test ia64 = "$host_cpu"; then
  8330. # AIX 5 now supports IA64 processor
  8331. lt_prog_compiler_static='-Bstatic'
  8332. else
  8333. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8334. fi
  8335. ;;
  8336. darwin* | rhapsody*)
  8337. # PIC is the default on this platform
  8338. # Common symbols not allowed in MH_DYLIB files
  8339. lt_prog_compiler_pic='-fno-common'
  8340. case $cc_basename in
  8341. nagfor*)
  8342. # NAG Fortran compiler
  8343. lt_prog_compiler_wl='-Wl,-Wl,,'
  8344. lt_prog_compiler_pic='-PIC'
  8345. lt_prog_compiler_static='-Bstatic'
  8346. ;;
  8347. esac
  8348. ;;
  8349. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8350. # This hack is so that the source file can tell whether it is being
  8351. # built for inclusion in a dll (and should export symbols for example).
  8352. lt_prog_compiler_pic='-DDLL_EXPORT'
  8353. case $host_os in
  8354. os2*)
  8355. lt_prog_compiler_static='$wl-static'
  8356. ;;
  8357. esac
  8358. ;;
  8359. hpux9* | hpux10* | hpux11*)
  8360. lt_prog_compiler_wl='-Wl,'
  8361. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8362. # not for PA HP-UX.
  8363. case $host_cpu in
  8364. hppa*64*|ia64*)
  8365. # +Z the default
  8366. ;;
  8367. *)
  8368. lt_prog_compiler_pic='+Z'
  8369. ;;
  8370. esac
  8371. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8372. lt_prog_compiler_static='$wl-a ${wl}archive'
  8373. ;;
  8374. irix5* | irix6* | nonstopux*)
  8375. lt_prog_compiler_wl='-Wl,'
  8376. # PIC (with -KPIC) is the default.
  8377. lt_prog_compiler_static='-non_shared'
  8378. ;;
  8379. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8380. case $cc_basename in
  8381. # old Intel for x86_64, which still supported -KPIC.
  8382. ecc*)
  8383. lt_prog_compiler_wl='-Wl,'
  8384. lt_prog_compiler_pic='-KPIC'
  8385. lt_prog_compiler_static='-static'
  8386. ;;
  8387. # flang / f18. f95 an alias for gfortran or flang on Debian
  8388. flang* | f18* | f95*)
  8389. lt_prog_compiler_wl='-Wl,'
  8390. lt_prog_compiler_pic='-fPIC'
  8391. lt_prog_compiler_static='-static'
  8392. ;;
  8393. # icc used to be incompatible with GCC.
  8394. # ICC 10 doesn't accept -KPIC any more.
  8395. icc* | ifort*)
  8396. lt_prog_compiler_wl='-Wl,'
  8397. lt_prog_compiler_pic='-fPIC'
  8398. lt_prog_compiler_static='-static'
  8399. ;;
  8400. # Lahey Fortran 8.1.
  8401. lf95*)
  8402. lt_prog_compiler_wl='-Wl,'
  8403. lt_prog_compiler_pic='--shared'
  8404. lt_prog_compiler_static='--static'
  8405. ;;
  8406. nagfor*)
  8407. # NAG Fortran compiler
  8408. lt_prog_compiler_wl='-Wl,-Wl,,'
  8409. lt_prog_compiler_pic='-PIC'
  8410. lt_prog_compiler_static='-Bstatic'
  8411. ;;
  8412. tcc*)
  8413. # Fabrice Bellard et al's Tiny C Compiler
  8414. lt_prog_compiler_wl='-Wl,'
  8415. lt_prog_compiler_pic='-fPIC'
  8416. lt_prog_compiler_static='-static'
  8417. ;;
  8418. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8419. # Portland Group compilers (*not* the Pentium gcc compiler,
  8420. # which looks to be a dead project)
  8421. lt_prog_compiler_wl='-Wl,'
  8422. lt_prog_compiler_pic='-fpic'
  8423. lt_prog_compiler_static='-Bstatic'
  8424. ;;
  8425. ccc*)
  8426. lt_prog_compiler_wl='-Wl,'
  8427. # All Alpha code is PIC.
  8428. lt_prog_compiler_static='-non_shared'
  8429. ;;
  8430. xl* | bgxl* | bgf* | mpixl*)
  8431. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8432. lt_prog_compiler_wl='-Wl,'
  8433. lt_prog_compiler_pic='-qpic'
  8434. lt_prog_compiler_static='-qstaticlink'
  8435. ;;
  8436. *)
  8437. case `$CC -V 2>&1 | sed 5q` in
  8438. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8439. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8440. lt_prog_compiler_pic='-KPIC'
  8441. lt_prog_compiler_static='-Bstatic'
  8442. lt_prog_compiler_wl=''
  8443. ;;
  8444. *Sun\ F* | *Sun*Fortran*)
  8445. lt_prog_compiler_pic='-KPIC'
  8446. lt_prog_compiler_static='-Bstatic'
  8447. lt_prog_compiler_wl='-Qoption ld '
  8448. ;;
  8449. *Sun\ C*)
  8450. # Sun C 5.9
  8451. lt_prog_compiler_pic='-KPIC'
  8452. lt_prog_compiler_static='-Bstatic'
  8453. lt_prog_compiler_wl='-Wl,'
  8454. ;;
  8455. *Intel*\ [CF]*Compiler*)
  8456. lt_prog_compiler_wl='-Wl,'
  8457. lt_prog_compiler_pic='-fPIC'
  8458. lt_prog_compiler_static='-static'
  8459. ;;
  8460. *Portland\ Group*)
  8461. lt_prog_compiler_wl='-Wl,'
  8462. lt_prog_compiler_pic='-fpic'
  8463. lt_prog_compiler_static='-Bstatic'
  8464. ;;
  8465. esac
  8466. ;;
  8467. esac
  8468. ;;
  8469. newsos6)
  8470. lt_prog_compiler_pic='-KPIC'
  8471. lt_prog_compiler_static='-Bstatic'
  8472. ;;
  8473. *nto* | *qnx*)
  8474. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8475. # it will coredump.
  8476. lt_prog_compiler_pic='-fPIC -shared'
  8477. ;;
  8478. osf3* | osf4* | osf5*)
  8479. lt_prog_compiler_wl='-Wl,'
  8480. # All OSF/1 code is PIC.
  8481. lt_prog_compiler_static='-non_shared'
  8482. ;;
  8483. rdos*)
  8484. lt_prog_compiler_static='-non_shared'
  8485. ;;
  8486. solaris*)
  8487. lt_prog_compiler_pic='-KPIC'
  8488. lt_prog_compiler_static='-Bstatic'
  8489. case $cc_basename in
  8490. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8491. lt_prog_compiler_wl='-Qoption ld ';;
  8492. *)
  8493. lt_prog_compiler_wl='-Wl,';;
  8494. esac
  8495. ;;
  8496. sunos4*)
  8497. lt_prog_compiler_wl='-Qoption ld '
  8498. lt_prog_compiler_pic='-PIC'
  8499. lt_prog_compiler_static='-Bstatic'
  8500. ;;
  8501. sysv4 | sysv4.2uw2* | sysv4.3*)
  8502. lt_prog_compiler_wl='-Wl,'
  8503. lt_prog_compiler_pic='-KPIC'
  8504. lt_prog_compiler_static='-Bstatic'
  8505. ;;
  8506. sysv4*MP*)
  8507. if test -d /usr/nec; then
  8508. lt_prog_compiler_pic='-Kconform_pic'
  8509. lt_prog_compiler_static='-Bstatic'
  8510. fi
  8511. ;;
  8512. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8513. lt_prog_compiler_wl='-Wl,'
  8514. lt_prog_compiler_pic='-KPIC'
  8515. lt_prog_compiler_static='-Bstatic'
  8516. ;;
  8517. unicos*)
  8518. lt_prog_compiler_wl='-Wl,'
  8519. lt_prog_compiler_can_build_shared=no
  8520. ;;
  8521. uts4*)
  8522. lt_prog_compiler_pic='-pic'
  8523. lt_prog_compiler_static='-Bstatic'
  8524. ;;
  8525. *)
  8526. lt_prog_compiler_can_build_shared=no
  8527. ;;
  8528. esac
  8529. fi
  8530. case $host_os in
  8531. # For platforms that do not support PIC, -DPIC is meaningless:
  8532. *djgpp*)
  8533. lt_prog_compiler_pic=
  8534. ;;
  8535. *)
  8536. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8537. ;;
  8538. esac
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8540. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8541. if ${lt_cv_prog_compiler_pic+:} false; then :
  8542. $as_echo_n "(cached) " >&6
  8543. else
  8544. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8545. fi
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8547. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8548. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8549. #
  8550. # Check to make sure the PIC flag actually works.
  8551. #
  8552. if test -n "$lt_prog_compiler_pic"; then
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8554. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8555. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8556. $as_echo_n "(cached) " >&6
  8557. else
  8558. lt_cv_prog_compiler_pic_works=no
  8559. ac_outfile=conftest.$ac_objext
  8560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8561. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8562. # Insert the option either (1) after the last *FLAGS variable, or
  8563. # (2) before a word containing "conftest.", or (3) at the end.
  8564. # Note that $ac_compile itself does not contain backslashes and begins
  8565. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8566. # The option is referenced via a variable to avoid confusing sed.
  8567. lt_compile=`echo "$ac_compile" | $SED \
  8568. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8569. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8570. -e 's:$: $lt_compiler_flag:'`
  8571. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8572. (eval "$lt_compile" 2>conftest.err)
  8573. ac_status=$?
  8574. cat conftest.err >&5
  8575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8576. if (exit $ac_status) && test -s "$ac_outfile"; then
  8577. # The compiler can only warn and ignore the option if not recognized
  8578. # So say no if there are warnings other than the usual output.
  8579. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8580. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8581. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8582. lt_cv_prog_compiler_pic_works=yes
  8583. fi
  8584. fi
  8585. $RM conftest*
  8586. fi
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8588. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8589. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8590. case $lt_prog_compiler_pic in
  8591. "" | " "*) ;;
  8592. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8593. esac
  8594. else
  8595. lt_prog_compiler_pic=
  8596. lt_prog_compiler_can_build_shared=no
  8597. fi
  8598. fi
  8599. #
  8600. # Check to make sure the static flag actually works.
  8601. #
  8602. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8604. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8605. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608. lt_cv_prog_compiler_static_works=no
  8609. save_LDFLAGS=$LDFLAGS
  8610. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8611. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8612. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8613. # The linker can only warn and ignore the option if not recognized
  8614. # So say no if there are warnings
  8615. if test -s conftest.err; then
  8616. # Append any errors to the config.log.
  8617. cat conftest.err 1>&5
  8618. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8619. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8620. if diff conftest.exp conftest.er2 >/dev/null; then
  8621. lt_cv_prog_compiler_static_works=yes
  8622. fi
  8623. else
  8624. lt_cv_prog_compiler_static_works=yes
  8625. fi
  8626. fi
  8627. $RM -r conftest*
  8628. LDFLAGS=$save_LDFLAGS
  8629. fi
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8631. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8632. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8633. :
  8634. else
  8635. lt_prog_compiler_static=
  8636. fi
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8638. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8639. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8640. $as_echo_n "(cached) " >&6
  8641. else
  8642. lt_cv_prog_compiler_c_o=no
  8643. $RM -r conftest 2>/dev/null
  8644. mkdir conftest
  8645. cd conftest
  8646. mkdir out
  8647. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8648. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8649. # Insert the option either (1) after the last *FLAGS variable, or
  8650. # (2) before a word containing "conftest.", or (3) at the end.
  8651. # Note that $ac_compile itself does not contain backslashes and begins
  8652. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8653. lt_compile=`echo "$ac_compile" | $SED \
  8654. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8655. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8656. -e 's:$: $lt_compiler_flag:'`
  8657. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8658. (eval "$lt_compile" 2>out/conftest.err)
  8659. ac_status=$?
  8660. cat out/conftest.err >&5
  8661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8662. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8663. then
  8664. # The compiler can only warn and ignore the option if not recognized
  8665. # So say no if there are warnings
  8666. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8667. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8668. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8669. lt_cv_prog_compiler_c_o=yes
  8670. fi
  8671. fi
  8672. chmod u+w . 2>&5
  8673. $RM conftest*
  8674. # SGI C++ compiler will create directory out/ii_files/ for
  8675. # template instantiation
  8676. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8677. $RM out/* && rmdir out
  8678. cd ..
  8679. $RM -r conftest
  8680. $RM conftest*
  8681. fi
  8682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8683. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8685. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8686. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8687. $as_echo_n "(cached) " >&6
  8688. else
  8689. lt_cv_prog_compiler_c_o=no
  8690. $RM -r conftest 2>/dev/null
  8691. mkdir conftest
  8692. cd conftest
  8693. mkdir out
  8694. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8695. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8696. # Insert the option either (1) after the last *FLAGS variable, or
  8697. # (2) before a word containing "conftest.", or (3) at the end.
  8698. # Note that $ac_compile itself does not contain backslashes and begins
  8699. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8700. lt_compile=`echo "$ac_compile" | $SED \
  8701. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8702. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8703. -e 's:$: $lt_compiler_flag:'`
  8704. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8705. (eval "$lt_compile" 2>out/conftest.err)
  8706. ac_status=$?
  8707. cat out/conftest.err >&5
  8708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8709. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8710. then
  8711. # The compiler can only warn and ignore the option if not recognized
  8712. # So say no if there are warnings
  8713. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8714. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8715. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8716. lt_cv_prog_compiler_c_o=yes
  8717. fi
  8718. fi
  8719. chmod u+w . 2>&5
  8720. $RM conftest*
  8721. # SGI C++ compiler will create directory out/ii_files/ for
  8722. # template instantiation
  8723. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8724. $RM out/* && rmdir out
  8725. cd ..
  8726. $RM -r conftest
  8727. $RM conftest*
  8728. fi
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8730. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8731. hard_links=nottested
  8732. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8733. # do not overwrite the value of need_locks provided by the user
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8735. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8736. hard_links=yes
  8737. $RM conftest*
  8738. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8739. touch conftest.a
  8740. ln conftest.a conftest.b 2>&5 || hard_links=no
  8741. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8743. $as_echo "$hard_links" >&6; }
  8744. if test no = "$hard_links"; then
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8746. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8747. need_locks=warn
  8748. fi
  8749. else
  8750. need_locks=no
  8751. fi
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8753. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8754. runpath_var=
  8755. allow_undefined_flag=
  8756. always_export_symbols=no
  8757. archive_cmds=
  8758. archive_expsym_cmds=
  8759. compiler_needs_object=no
  8760. enable_shared_with_static_runtimes=no
  8761. export_dynamic_flag_spec=
  8762. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8763. hardcode_automatic=no
  8764. hardcode_direct=no
  8765. hardcode_direct_absolute=no
  8766. hardcode_libdir_flag_spec=
  8767. hardcode_libdir_separator=
  8768. hardcode_minus_L=no
  8769. hardcode_shlibpath_var=unsupported
  8770. inherit_rpath=no
  8771. link_all_deplibs=unknown
  8772. module_cmds=
  8773. module_expsym_cmds=
  8774. old_archive_from_new_cmds=
  8775. old_archive_from_expsyms_cmds=
  8776. thread_safe_flag_spec=
  8777. whole_archive_flag_spec=
  8778. # include_expsyms should be a list of space-separated symbols to be *always*
  8779. # included in the symbol list
  8780. include_expsyms=
  8781. # exclude_expsyms can be an extended regexp of symbols to exclude
  8782. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8783. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8784. # as well as any symbol that contains 'd'.
  8785. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8786. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8787. # platforms (ab)use it in PIC code, but their linkers get confused if
  8788. # the symbol is explicitly referenced. Since portable code cannot
  8789. # rely on this symbol name, it's probably fine to never include it in
  8790. # preloaded symbol tables.
  8791. # Exclude shared library initialization/finalization symbols.
  8792. extract_expsyms_cmds=
  8793. case $host_os in
  8794. cygwin* | mingw* | pw32* | cegcc*)
  8795. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8796. # When not using gcc, we currently assume that we are using
  8797. # Microsoft Visual C++.
  8798. if test yes != "$GCC"; then
  8799. with_gnu_ld=no
  8800. fi
  8801. ;;
  8802. interix*)
  8803. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8804. with_gnu_ld=yes
  8805. ;;
  8806. openbsd* | bitrig*)
  8807. with_gnu_ld=no
  8808. ;;
  8809. linux* | k*bsd*-gnu | gnu*)
  8810. link_all_deplibs=no
  8811. ;;
  8812. esac
  8813. ld_shlibs=yes
  8814. # On some targets, GNU ld is compatible enough with the native linker
  8815. # that we're better off using the native interface for both.
  8816. lt_use_gnu_ld_interface=no
  8817. if test yes = "$with_gnu_ld"; then
  8818. case $host_os in
  8819. aix*)
  8820. # The AIX port of GNU ld has always aspired to compatibility
  8821. # with the native linker. However, as the warning in the GNU ld
  8822. # block says, versions before 2.19.5* couldn't really create working
  8823. # shared libraries, regardless of the interface used.
  8824. case `$LD -v 2>&1` in
  8825. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8826. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8827. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8828. *)
  8829. lt_use_gnu_ld_interface=yes
  8830. ;;
  8831. esac
  8832. ;;
  8833. *)
  8834. lt_use_gnu_ld_interface=yes
  8835. ;;
  8836. esac
  8837. fi
  8838. if test yes = "$lt_use_gnu_ld_interface"; then
  8839. # If archive_cmds runs LD, not CC, wlarc should be empty
  8840. wlarc='$wl'
  8841. # Set some defaults for GNU ld with shared library support. These
  8842. # are reset later if shared libraries are not supported. Putting them
  8843. # here allows them to be overridden if necessary.
  8844. runpath_var=LD_RUN_PATH
  8845. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8846. export_dynamic_flag_spec='$wl--export-dynamic'
  8847. # ancient GNU ld didn't support --whole-archive et. al.
  8848. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8849. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8850. else
  8851. whole_archive_flag_spec=
  8852. fi
  8853. supports_anon_versioning=no
  8854. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8855. *GNU\ gold*) supports_anon_versioning=yes ;;
  8856. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8857. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8858. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8859. *\ 2.11.*) ;; # other 2.11 versions
  8860. *) supports_anon_versioning=yes ;;
  8861. esac
  8862. # See if GNU ld supports shared libraries.
  8863. case $host_os in
  8864. aix[3-9]*)
  8865. # On AIX/PPC, the GNU linker is very broken
  8866. if test ia64 != "$host_cpu"; then
  8867. ld_shlibs=no
  8868. cat <<_LT_EOF 1>&2
  8869. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8870. *** to be unable to reliably create shared libraries on AIX.
  8871. *** Therefore, libtool is disabling shared libraries support. If you
  8872. *** really care for shared libraries, you may want to install binutils
  8873. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8874. *** You will then need to restart the configuration process.
  8875. _LT_EOF
  8876. fi
  8877. ;;
  8878. amigaos*)
  8879. case $host_cpu in
  8880. powerpc)
  8881. # see comment about AmigaOS4 .so support
  8882. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8883. archive_expsym_cmds=''
  8884. ;;
  8885. m68k)
  8886. 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)'
  8887. hardcode_libdir_flag_spec='-L$libdir'
  8888. hardcode_minus_L=yes
  8889. ;;
  8890. esac
  8891. ;;
  8892. beos*)
  8893. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8894. allow_undefined_flag=unsupported
  8895. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8896. # support --undefined. This deserves some investigation. FIXME
  8897. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. cygwin* | mingw* | pw32* | cegcc*)
  8903. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8904. # as there is no search path for DLLs.
  8905. hardcode_libdir_flag_spec='-L$libdir'
  8906. export_dynamic_flag_spec='$wl--export-all-symbols'
  8907. allow_undefined_flag=unsupported
  8908. always_export_symbols=no
  8909. enable_shared_with_static_runtimes=yes
  8910. 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'
  8911. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8912. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8913. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8914. # If the export-symbols file already is a .def file, use it as
  8915. # is; otherwise, prepend EXPORTS...
  8916. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8917. cp $export_symbols $output_objdir/$soname.def;
  8918. else
  8919. echo EXPORTS > $output_objdir/$soname.def;
  8920. cat $export_symbols >> $output_objdir/$soname.def;
  8921. fi~
  8922. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8923. else
  8924. ld_shlibs=no
  8925. fi
  8926. ;;
  8927. haiku*)
  8928. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8929. link_all_deplibs=yes
  8930. ;;
  8931. os2*)
  8932. hardcode_libdir_flag_spec='-L$libdir'
  8933. hardcode_minus_L=yes
  8934. allow_undefined_flag=unsupported
  8935. shrext_cmds=.dll
  8936. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8937. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8938. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8939. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8940. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8941. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8942. emximp -o $lib $output_objdir/$libname.def'
  8943. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8944. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8945. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8946. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8947. prefix_cmds="$SED"~
  8948. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8949. prefix_cmds="$prefix_cmds -e 1d";
  8950. fi~
  8951. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8952. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8953. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8954. emximp -o $lib $output_objdir/$libname.def'
  8955. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8956. enable_shared_with_static_runtimes=yes
  8957. ;;
  8958. interix[3-9]*)
  8959. hardcode_direct=no
  8960. hardcode_shlibpath_var=no
  8961. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8962. export_dynamic_flag_spec='$wl-E'
  8963. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8964. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8965. # default) and relocated if they conflict, which is a slow very memory
  8966. # consuming and fragmenting process. To avoid this, we pick a random,
  8967. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8968. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8969. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8970. 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'
  8971. ;;
  8972. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8973. tmp_diet=no
  8974. if test linux-dietlibc = "$host_os"; then
  8975. case $cc_basename in
  8976. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8977. esac
  8978. fi
  8979. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8980. && test no = "$tmp_diet"
  8981. then
  8982. tmp_addflag=' $pic_flag'
  8983. tmp_sharedflag='-shared'
  8984. case $cc_basename,$host_cpu in
  8985. pgcc*) # Portland Group C compiler
  8986. 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'
  8987. tmp_addflag=' $pic_flag'
  8988. ;;
  8989. pgf77* | pgf90* | pgf95* | pgfortran*)
  8990. # Portland Group f77 and f90 compilers
  8991. 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'
  8992. tmp_addflag=' $pic_flag -Mnomain' ;;
  8993. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8994. tmp_addflag=' -i_dynamic' ;;
  8995. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8996. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8997. ifc* | ifort*) # Intel Fortran compiler
  8998. tmp_addflag=' -nofor_main' ;;
  8999. lf95*) # Lahey Fortran 8.1
  9000. whole_archive_flag_spec=
  9001. tmp_sharedflag='--shared' ;;
  9002. nagfor*) # NAGFOR 5.3
  9003. tmp_sharedflag='-Wl,-shared' ;;
  9004. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9005. tmp_sharedflag='-qmkshrobj'
  9006. tmp_addflag= ;;
  9007. nvcc*) # Cuda Compiler Driver 2.2
  9008. 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'
  9009. compiler_needs_object=yes
  9010. ;;
  9011. esac
  9012. case `$CC -V 2>&1 | sed 5q` in
  9013. *Sun\ C*) # Sun C 5.9
  9014. 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'
  9015. compiler_needs_object=yes
  9016. tmp_sharedflag='-G' ;;
  9017. *Sun\ F*) # Sun Fortran 8.3
  9018. tmp_sharedflag='-G' ;;
  9019. esac
  9020. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9021. if test yes = "$supports_anon_versioning"; then
  9022. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9023. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9024. echo "local: *; };" >> $output_objdir/$libname.ver~
  9025. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9026. fi
  9027. case $cc_basename in
  9028. tcc*)
  9029. export_dynamic_flag_spec='-rdynamic'
  9030. ;;
  9031. xlf* | bgf* | bgxlf* | mpixlf*)
  9032. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9033. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9034. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9035. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9036. if test yes = "$supports_anon_versioning"; then
  9037. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9038. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9039. echo "local: *; };" >> $output_objdir/$libname.ver~
  9040. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9041. fi
  9042. ;;
  9043. esac
  9044. else
  9045. ld_shlibs=no
  9046. fi
  9047. ;;
  9048. netbsd* | netbsdelf*-gnu)
  9049. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9050. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9051. wlarc=
  9052. else
  9053. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9054. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9055. fi
  9056. ;;
  9057. solaris*)
  9058. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9059. ld_shlibs=no
  9060. cat <<_LT_EOF 1>&2
  9061. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9062. *** create shared libraries on Solaris systems. Therefore, libtool
  9063. *** is disabling shared libraries support. We urge you to upgrade GNU
  9064. *** binutils to release 2.9.1 or newer. Another option is to modify
  9065. *** your PATH or compiler configuration so that the native linker is
  9066. *** used, and then restart.
  9067. _LT_EOF
  9068. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9069. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9070. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9071. else
  9072. ld_shlibs=no
  9073. fi
  9074. ;;
  9075. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9076. case `$LD -v 2>&1` in
  9077. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9078. ld_shlibs=no
  9079. cat <<_LT_EOF 1>&2
  9080. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9081. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9082. *** is disabling shared libraries support. We urge you to upgrade GNU
  9083. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9084. *** your PATH or compiler configuration so that the native linker is
  9085. *** used, and then restart.
  9086. _LT_EOF
  9087. ;;
  9088. *)
  9089. # For security reasons, it is highly recommended that you always
  9090. # use absolute paths for naming shared libraries, and exclude the
  9091. # DT_RUNPATH tag from executables and libraries. But doing so
  9092. # requires that you compile everything twice, which is a pain.
  9093. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9094. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9095. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9096. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9097. else
  9098. ld_shlibs=no
  9099. fi
  9100. ;;
  9101. esac
  9102. ;;
  9103. sunos4*)
  9104. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9105. wlarc=
  9106. hardcode_direct=yes
  9107. hardcode_shlibpath_var=no
  9108. ;;
  9109. *)
  9110. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9111. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9112. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9113. else
  9114. ld_shlibs=no
  9115. fi
  9116. ;;
  9117. esac
  9118. if test no = "$ld_shlibs"; then
  9119. runpath_var=
  9120. hardcode_libdir_flag_spec=
  9121. export_dynamic_flag_spec=
  9122. whole_archive_flag_spec=
  9123. fi
  9124. else
  9125. # PORTME fill in a description of your system's linker (not GNU ld)
  9126. case $host_os in
  9127. aix3*)
  9128. allow_undefined_flag=unsupported
  9129. always_export_symbols=yes
  9130. 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'
  9131. # Note: this linker hardcodes the directories in LIBPATH if there
  9132. # are no directories specified by -L.
  9133. hardcode_minus_L=yes
  9134. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9135. # Neither direct hardcoding nor static linking is supported with a
  9136. # broken collect2.
  9137. hardcode_direct=unsupported
  9138. fi
  9139. ;;
  9140. aix[4-9]*)
  9141. if test ia64 = "$host_cpu"; then
  9142. # On IA64, the linker does run time linking by default, so we don't
  9143. # have to do anything special.
  9144. aix_use_runtimelinking=no
  9145. exp_sym_flag='-Bexport'
  9146. no_entry_flag=
  9147. else
  9148. # If we're using GNU nm, then we don't want the "-C" option.
  9149. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9150. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9151. # weak defined symbols like other global defined symbols, whereas
  9152. # GNU nm marks them as "W".
  9153. # While the 'weak' keyword is ignored in the Export File, we need
  9154. # it in the Import File for the 'aix-soname' feature, so we have
  9155. # to replace the "-B" option with "-P" for AIX nm.
  9156. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9157. 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'
  9158. else
  9159. 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'
  9160. fi
  9161. aix_use_runtimelinking=no
  9162. # Test if we are trying to use run time linking or normal
  9163. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9164. # have runtime linking enabled, and use it for executables.
  9165. # For shared libraries, we enable/disable runtime linking
  9166. # depending on the kind of the shared library created -
  9167. # when "with_aix_soname,aix_use_runtimelinking" is:
  9168. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9169. # "aix,yes" lib.so shared, rtl:yes, for executables
  9170. # lib.a static archive
  9171. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9172. # lib.a(lib.so.V) shared, rtl:no, for executables
  9173. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9174. # lib.a(lib.so.V) shared, rtl:no
  9175. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9176. # lib.a static archive
  9177. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9178. for ld_flag in $LDFLAGS; do
  9179. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9180. aix_use_runtimelinking=yes
  9181. break
  9182. fi
  9183. done
  9184. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9185. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9186. # so we don't have lib.a shared libs to link our executables.
  9187. # We have to force runtime linking in this case.
  9188. aix_use_runtimelinking=yes
  9189. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9190. fi
  9191. ;;
  9192. esac
  9193. exp_sym_flag='-bexport'
  9194. no_entry_flag='-bnoentry'
  9195. fi
  9196. # When large executables or shared objects are built, AIX ld can
  9197. # have problems creating the table of contents. If linking a library
  9198. # or program results in "error TOC overflow" add -mminimal-toc to
  9199. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9200. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9201. archive_cmds=''
  9202. hardcode_direct=yes
  9203. hardcode_direct_absolute=yes
  9204. hardcode_libdir_separator=':'
  9205. link_all_deplibs=yes
  9206. file_list_spec='$wl-f,'
  9207. case $with_aix_soname,$aix_use_runtimelinking in
  9208. aix,*) ;; # traditional, no import file
  9209. svr4,* | *,yes) # use import file
  9210. # The Import File defines what to hardcode.
  9211. hardcode_direct=no
  9212. hardcode_direct_absolute=no
  9213. ;;
  9214. esac
  9215. if test yes = "$GCC"; then
  9216. case $host_os in aix4.[012]|aix4.[012].*)
  9217. # We only want to do this on AIX 4.2 and lower, the check
  9218. # below for broken collect2 doesn't work under 4.3+
  9219. collect2name=`$CC -print-prog-name=collect2`
  9220. if test -f "$collect2name" &&
  9221. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9222. then
  9223. # We have reworked collect2
  9224. :
  9225. else
  9226. # We have old collect2
  9227. hardcode_direct=unsupported
  9228. # It fails to find uninstalled libraries when the uninstalled
  9229. # path is not listed in the libpath. Setting hardcode_minus_L
  9230. # to unsupported forces relinking
  9231. hardcode_minus_L=yes
  9232. hardcode_libdir_flag_spec='-L$libdir'
  9233. hardcode_libdir_separator=
  9234. fi
  9235. ;;
  9236. esac
  9237. shared_flag='-shared'
  9238. if test yes = "$aix_use_runtimelinking"; then
  9239. shared_flag="$shared_flag "'$wl-G'
  9240. fi
  9241. # Need to ensure runtime linking is disabled for the traditional
  9242. # shared library, or the linker may eventually find shared libraries
  9243. # /with/ Import File - we do not want to mix them.
  9244. shared_flag_aix='-shared'
  9245. shared_flag_svr4='-shared $wl-G'
  9246. else
  9247. # not using gcc
  9248. if test ia64 = "$host_cpu"; then
  9249. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9250. # chokes on -Wl,-G. The following line is correct:
  9251. shared_flag='-G'
  9252. else
  9253. if test yes = "$aix_use_runtimelinking"; then
  9254. shared_flag='$wl-G'
  9255. else
  9256. shared_flag='$wl-bM:SRE'
  9257. fi
  9258. shared_flag_aix='$wl-bM:SRE'
  9259. shared_flag_svr4='$wl-G'
  9260. fi
  9261. fi
  9262. export_dynamic_flag_spec='$wl-bexpall'
  9263. # It seems that -bexpall does not export symbols beginning with
  9264. # underscore (_), so it is better to generate a list of symbols to export.
  9265. always_export_symbols=yes
  9266. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9267. # Warning - without using the other runtime loading flags (-brtl),
  9268. # -berok will link without error, but may produce a broken library.
  9269. allow_undefined_flag='-berok'
  9270. # Determine the default libpath from the value encoded in an
  9271. # empty executable.
  9272. if test set = "${lt_cv_aix_libpath+set}"; then
  9273. aix_libpath=$lt_cv_aix_libpath
  9274. else
  9275. if ${lt_cv_aix_libpath_+:} false; then :
  9276. $as_echo_n "(cached) " >&6
  9277. else
  9278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9279. /* end confdefs.h. */
  9280. int
  9281. main ()
  9282. {
  9283. ;
  9284. return 0;
  9285. }
  9286. _ACEOF
  9287. if ac_fn_c_try_link "$LINENO"; then :
  9288. lt_aix_libpath_sed='
  9289. /Import File Strings/,/^$/ {
  9290. /^0/ {
  9291. s/^0 *\([^ ]*\) *$/\1/
  9292. p
  9293. }
  9294. }'
  9295. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9296. # Check for a 64-bit object if we didn't find anything.
  9297. if test -z "$lt_cv_aix_libpath_"; then
  9298. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9299. fi
  9300. fi
  9301. rm -f core conftest.err conftest.$ac_objext \
  9302. conftest$ac_exeext conftest.$ac_ext
  9303. if test -z "$lt_cv_aix_libpath_"; then
  9304. lt_cv_aix_libpath_=/usr/lib:/lib
  9305. fi
  9306. fi
  9307. aix_libpath=$lt_cv_aix_libpath_
  9308. fi
  9309. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9310. 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
  9311. else
  9312. if test ia64 = "$host_cpu"; then
  9313. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9314. allow_undefined_flag="-z nodefs"
  9315. 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"
  9316. else
  9317. # Determine the default libpath from the value encoded in an
  9318. # empty executable.
  9319. if test set = "${lt_cv_aix_libpath+set}"; then
  9320. aix_libpath=$lt_cv_aix_libpath
  9321. else
  9322. if ${lt_cv_aix_libpath_+:} false; then :
  9323. $as_echo_n "(cached) " >&6
  9324. else
  9325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9326. /* end confdefs.h. */
  9327. int
  9328. main ()
  9329. {
  9330. ;
  9331. return 0;
  9332. }
  9333. _ACEOF
  9334. if ac_fn_c_try_link "$LINENO"; then :
  9335. lt_aix_libpath_sed='
  9336. /Import File Strings/,/^$/ {
  9337. /^0/ {
  9338. s/^0 *\([^ ]*\) *$/\1/
  9339. p
  9340. }
  9341. }'
  9342. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9343. # Check for a 64-bit object if we didn't find anything.
  9344. if test -z "$lt_cv_aix_libpath_"; then
  9345. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9346. fi
  9347. fi
  9348. rm -f core conftest.err conftest.$ac_objext \
  9349. conftest$ac_exeext conftest.$ac_ext
  9350. if test -z "$lt_cv_aix_libpath_"; then
  9351. lt_cv_aix_libpath_=/usr/lib:/lib
  9352. fi
  9353. fi
  9354. aix_libpath=$lt_cv_aix_libpath_
  9355. fi
  9356. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9357. # Warning - without using the other run time loading flags,
  9358. # -berok will link without error, but may produce a broken library.
  9359. no_undefined_flag=' $wl-bernotok'
  9360. allow_undefined_flag=' $wl-berok'
  9361. if test yes = "$with_gnu_ld"; then
  9362. # We only use this code for GNU lds that support --whole-archive.
  9363. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9364. else
  9365. # Exported symbols can be pulled into shared objects from archives
  9366. whole_archive_flag_spec='$convenience'
  9367. fi
  9368. archive_cmds_need_lc=yes
  9369. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9370. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9371. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9372. if test svr4 != "$with_aix_soname"; then
  9373. # This is similar to how AIX traditionally builds its shared libraries.
  9374. 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'
  9375. fi
  9376. if test aix != "$with_aix_soname"; then
  9377. 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'
  9378. else
  9379. # used by -dlpreopen to get the symbols
  9380. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9381. fi
  9382. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9383. fi
  9384. fi
  9385. ;;
  9386. amigaos*)
  9387. case $host_cpu in
  9388. powerpc)
  9389. # see comment about AmigaOS4 .so support
  9390. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9391. archive_expsym_cmds=''
  9392. ;;
  9393. m68k)
  9394. 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)'
  9395. hardcode_libdir_flag_spec='-L$libdir'
  9396. hardcode_minus_L=yes
  9397. ;;
  9398. esac
  9399. ;;
  9400. bsdi[45]*)
  9401. export_dynamic_flag_spec=-rdynamic
  9402. ;;
  9403. cygwin* | mingw* | pw32* | cegcc*)
  9404. # When not using gcc, we currently assume that we are using
  9405. # Microsoft Visual C++.
  9406. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9407. # no search path for DLLs.
  9408. case $cc_basename in
  9409. cl*)
  9410. # Native MSVC
  9411. hardcode_libdir_flag_spec=' '
  9412. allow_undefined_flag=unsupported
  9413. always_export_symbols=yes
  9414. file_list_spec='@'
  9415. # Tell ltmain to make .lib files, not .a files.
  9416. libext=lib
  9417. # Tell ltmain to make .dll files, not .so files.
  9418. shrext_cmds=.dll
  9419. # FIXME: Setting linknames here is a bad hack.
  9420. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9421. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9422. cp "$export_symbols" "$output_objdir/$soname.def";
  9423. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9424. else
  9425. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9426. fi~
  9427. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9428. linknames='
  9429. # The linker will not automatically build a static lib if we build a DLL.
  9430. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9431. enable_shared_with_static_runtimes=yes
  9432. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9433. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9434. # Don't use ranlib
  9435. old_postinstall_cmds='chmod 644 $oldlib'
  9436. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9437. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9438. case $lt_outputfile in
  9439. *.exe|*.EXE) ;;
  9440. *)
  9441. lt_outputfile=$lt_outputfile.exe
  9442. lt_tool_outputfile=$lt_tool_outputfile.exe
  9443. ;;
  9444. esac~
  9445. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9446. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9447. $RM "$lt_outputfile.manifest";
  9448. fi'
  9449. ;;
  9450. *)
  9451. # Assume MSVC wrapper
  9452. hardcode_libdir_flag_spec=' '
  9453. allow_undefined_flag=unsupported
  9454. # Tell ltmain to make .lib files, not .a files.
  9455. libext=lib
  9456. # Tell ltmain to make .dll files, not .so files.
  9457. shrext_cmds=.dll
  9458. # FIXME: Setting linknames here is a bad hack.
  9459. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9460. # The linker will automatically build a .lib file if we build a DLL.
  9461. old_archive_from_new_cmds='true'
  9462. # FIXME: Should let the user specify the lib program.
  9463. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9464. enable_shared_with_static_runtimes=yes
  9465. ;;
  9466. esac
  9467. ;;
  9468. darwin* | rhapsody*)
  9469. archive_cmds_need_lc=no
  9470. hardcode_direct=no
  9471. hardcode_automatic=yes
  9472. hardcode_shlibpath_var=unsupported
  9473. if test yes = "$lt_cv_ld_force_load"; then
  9474. 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\"`'
  9475. else
  9476. whole_archive_flag_spec=''
  9477. fi
  9478. link_all_deplibs=yes
  9479. allow_undefined_flag=$_lt_dar_allow_undefined
  9480. case $cc_basename in
  9481. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9482. *) _lt_dar_can_shared=$GCC ;;
  9483. esac
  9484. if test yes = "$_lt_dar_can_shared"; then
  9485. output_verbose_link_cmd=func_echo_all
  9486. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9487. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9488. 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"
  9489. 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"
  9490. else
  9491. ld_shlibs=no
  9492. fi
  9493. ;;
  9494. dgux*)
  9495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9496. hardcode_libdir_flag_spec='-L$libdir'
  9497. hardcode_shlibpath_var=no
  9498. ;;
  9499. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9500. # support. Future versions do this automatically, but an explicit c++rt0.o
  9501. # does not break anything, and helps significantly (at the cost of a little
  9502. # extra space).
  9503. freebsd2.2*)
  9504. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9505. hardcode_libdir_flag_spec='-R$libdir'
  9506. hardcode_direct=yes
  9507. hardcode_shlibpath_var=no
  9508. ;;
  9509. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9510. freebsd2.*)
  9511. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9512. hardcode_direct=yes
  9513. hardcode_minus_L=yes
  9514. hardcode_shlibpath_var=no
  9515. ;;
  9516. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9517. freebsd* | dragonfly*)
  9518. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9519. hardcode_libdir_flag_spec='-R$libdir'
  9520. hardcode_direct=yes
  9521. hardcode_shlibpath_var=no
  9522. ;;
  9523. hpux9*)
  9524. if test yes = "$GCC"; then
  9525. 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'
  9526. else
  9527. 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'
  9528. fi
  9529. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9530. hardcode_libdir_separator=:
  9531. hardcode_direct=yes
  9532. # hardcode_minus_L: Not really in the search PATH,
  9533. # but as the default location of the library.
  9534. hardcode_minus_L=yes
  9535. export_dynamic_flag_spec='$wl-E'
  9536. ;;
  9537. hpux10*)
  9538. if test yes,no = "$GCC,$with_gnu_ld"; then
  9539. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9540. else
  9541. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9542. fi
  9543. if test no = "$with_gnu_ld"; then
  9544. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9545. hardcode_libdir_separator=:
  9546. hardcode_direct=yes
  9547. hardcode_direct_absolute=yes
  9548. export_dynamic_flag_spec='$wl-E'
  9549. # hardcode_minus_L: Not really in the search PATH,
  9550. # but as the default location of the library.
  9551. hardcode_minus_L=yes
  9552. fi
  9553. ;;
  9554. hpux11*)
  9555. if test yes,no = "$GCC,$with_gnu_ld"; then
  9556. case $host_cpu in
  9557. hppa*64*)
  9558. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9559. ;;
  9560. ia64*)
  9561. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9562. ;;
  9563. *)
  9564. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9565. ;;
  9566. esac
  9567. else
  9568. case $host_cpu in
  9569. hppa*64*)
  9570. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. ;;
  9572. ia64*)
  9573. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9574. ;;
  9575. *)
  9576. # Older versions of the 11.00 compiler do not understand -b yet
  9577. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9579. $as_echo_n "checking if $CC understands -b... " >&6; }
  9580. if ${lt_cv_prog_compiler__b+:} false; then :
  9581. $as_echo_n "(cached) " >&6
  9582. else
  9583. lt_cv_prog_compiler__b=no
  9584. save_LDFLAGS=$LDFLAGS
  9585. LDFLAGS="$LDFLAGS -b"
  9586. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9587. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9588. # The linker can only warn and ignore the option if not recognized
  9589. # So say no if there are warnings
  9590. if test -s conftest.err; then
  9591. # Append any errors to the config.log.
  9592. cat conftest.err 1>&5
  9593. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9594. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9595. if diff conftest.exp conftest.er2 >/dev/null; then
  9596. lt_cv_prog_compiler__b=yes
  9597. fi
  9598. else
  9599. lt_cv_prog_compiler__b=yes
  9600. fi
  9601. fi
  9602. $RM -r conftest*
  9603. LDFLAGS=$save_LDFLAGS
  9604. fi
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9606. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9607. if test yes = "$lt_cv_prog_compiler__b"; then
  9608. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9609. else
  9610. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9611. fi
  9612. ;;
  9613. esac
  9614. fi
  9615. if test no = "$with_gnu_ld"; then
  9616. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9617. hardcode_libdir_separator=:
  9618. case $host_cpu in
  9619. hppa*64*|ia64*)
  9620. hardcode_direct=no
  9621. hardcode_shlibpath_var=no
  9622. ;;
  9623. *)
  9624. hardcode_direct=yes
  9625. hardcode_direct_absolute=yes
  9626. export_dynamic_flag_spec='$wl-E'
  9627. # hardcode_minus_L: Not really in the search PATH,
  9628. # but as the default location of the library.
  9629. hardcode_minus_L=yes
  9630. ;;
  9631. esac
  9632. fi
  9633. ;;
  9634. irix5* | irix6* | nonstopux*)
  9635. if test yes = "$GCC"; then
  9636. 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'
  9637. # Try to use the -exported_symbol ld option, if it does not
  9638. # work, assume that -exports_file does not work either and
  9639. # implicitly export all symbols.
  9640. # This should be the same for all languages, so no per-tag cache variable.
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9642. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9643. if ${lt_cv_irix_exported_symbol+:} false; then :
  9644. $as_echo_n "(cached) " >&6
  9645. else
  9646. save_LDFLAGS=$LDFLAGS
  9647. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9649. /* end confdefs.h. */
  9650. int foo (void) { return 0; }
  9651. _ACEOF
  9652. if ac_fn_c_try_link "$LINENO"; then :
  9653. lt_cv_irix_exported_symbol=yes
  9654. else
  9655. lt_cv_irix_exported_symbol=no
  9656. fi
  9657. rm -f core conftest.err conftest.$ac_objext \
  9658. conftest$ac_exeext conftest.$ac_ext
  9659. LDFLAGS=$save_LDFLAGS
  9660. fi
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9662. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9663. if test yes = "$lt_cv_irix_exported_symbol"; then
  9664. 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'
  9665. fi
  9666. link_all_deplibs=no
  9667. else
  9668. 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'
  9669. 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'
  9670. fi
  9671. archive_cmds_need_lc='no'
  9672. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9673. hardcode_libdir_separator=:
  9674. inherit_rpath=yes
  9675. link_all_deplibs=yes
  9676. ;;
  9677. linux*)
  9678. case $cc_basename in
  9679. tcc*)
  9680. # Fabrice Bellard et al's Tiny C Compiler
  9681. ld_shlibs=yes
  9682. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9683. ;;
  9684. esac
  9685. ;;
  9686. netbsd* | netbsdelf*-gnu)
  9687. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9688. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9689. else
  9690. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9691. fi
  9692. hardcode_libdir_flag_spec='-R$libdir'
  9693. hardcode_direct=yes
  9694. hardcode_shlibpath_var=no
  9695. ;;
  9696. newsos6)
  9697. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9698. hardcode_direct=yes
  9699. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9700. hardcode_libdir_separator=:
  9701. hardcode_shlibpath_var=no
  9702. ;;
  9703. *nto* | *qnx*)
  9704. ;;
  9705. openbsd* | bitrig*)
  9706. if test -f /usr/libexec/ld.so; then
  9707. hardcode_direct=yes
  9708. hardcode_shlibpath_var=no
  9709. hardcode_direct_absolute=yes
  9710. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9711. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9712. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9713. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9714. export_dynamic_flag_spec='$wl-E'
  9715. else
  9716. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9717. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9718. fi
  9719. else
  9720. ld_shlibs=no
  9721. fi
  9722. ;;
  9723. os2*)
  9724. hardcode_libdir_flag_spec='-L$libdir'
  9725. hardcode_minus_L=yes
  9726. allow_undefined_flag=unsupported
  9727. shrext_cmds=.dll
  9728. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9729. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9730. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9731. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9732. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9733. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9734. emximp -o $lib $output_objdir/$libname.def'
  9735. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9736. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9737. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9738. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9739. prefix_cmds="$SED"~
  9740. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9741. prefix_cmds="$prefix_cmds -e 1d";
  9742. fi~
  9743. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9744. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9745. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9746. emximp -o $lib $output_objdir/$libname.def'
  9747. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9748. enable_shared_with_static_runtimes=yes
  9749. ;;
  9750. osf3*)
  9751. if test yes = "$GCC"; then
  9752. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9753. 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'
  9754. else
  9755. allow_undefined_flag=' -expect_unresolved \*'
  9756. 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'
  9757. fi
  9758. archive_cmds_need_lc='no'
  9759. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9760. hardcode_libdir_separator=:
  9761. ;;
  9762. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9763. if test yes = "$GCC"; then
  9764. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9765. 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'
  9766. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9767. else
  9768. allow_undefined_flag=' -expect_unresolved \*'
  9769. 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'
  9770. 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~
  9771. $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'
  9772. # Both c and cxx compiler support -rpath directly
  9773. hardcode_libdir_flag_spec='-rpath $libdir'
  9774. fi
  9775. archive_cmds_need_lc='no'
  9776. hardcode_libdir_separator=:
  9777. ;;
  9778. solaris*)
  9779. no_undefined_flag=' -z defs'
  9780. if test yes = "$GCC"; then
  9781. wlarc='$wl'
  9782. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9783. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9784. $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'
  9785. else
  9786. case `$CC -V 2>&1` in
  9787. *"Compilers 5.0"*)
  9788. wlarc=''
  9789. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9790. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9791. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9792. ;;
  9793. *)
  9794. wlarc='$wl'
  9795. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9796. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9797. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9798. ;;
  9799. esac
  9800. fi
  9801. hardcode_libdir_flag_spec='-R$libdir'
  9802. hardcode_shlibpath_var=no
  9803. case $host_os in
  9804. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9805. *)
  9806. # The compiler driver will combine and reorder linker options,
  9807. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9808. # but is careful enough not to reorder.
  9809. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9810. if test yes = "$GCC"; then
  9811. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9812. else
  9813. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9814. fi
  9815. ;;
  9816. esac
  9817. link_all_deplibs=yes
  9818. ;;
  9819. sunos4*)
  9820. if test sequent = "$host_vendor"; then
  9821. # Use $CC to link under sequent, because it throws in some extra .o
  9822. # files that make .init and .fini sections work.
  9823. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9824. else
  9825. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9826. fi
  9827. hardcode_libdir_flag_spec='-L$libdir'
  9828. hardcode_direct=yes
  9829. hardcode_minus_L=yes
  9830. hardcode_shlibpath_var=no
  9831. ;;
  9832. sysv4)
  9833. case $host_vendor in
  9834. sni)
  9835. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9836. hardcode_direct=yes # is this really true???
  9837. ;;
  9838. siemens)
  9839. ## LD is ld it makes a PLAMLIB
  9840. ## CC just makes a GrossModule.
  9841. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9842. reload_cmds='$CC -r -o $output$reload_objs'
  9843. hardcode_direct=no
  9844. ;;
  9845. motorola)
  9846. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9847. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9848. ;;
  9849. esac
  9850. runpath_var='LD_RUN_PATH'
  9851. hardcode_shlibpath_var=no
  9852. ;;
  9853. sysv4.3*)
  9854. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9855. hardcode_shlibpath_var=no
  9856. export_dynamic_flag_spec='-Bexport'
  9857. ;;
  9858. sysv4*MP*)
  9859. if test -d /usr/nec; then
  9860. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9861. hardcode_shlibpath_var=no
  9862. runpath_var=LD_RUN_PATH
  9863. hardcode_runpath_var=yes
  9864. ld_shlibs=yes
  9865. fi
  9866. ;;
  9867. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9868. no_undefined_flag='$wl-z,text'
  9869. archive_cmds_need_lc=no
  9870. hardcode_shlibpath_var=no
  9871. runpath_var='LD_RUN_PATH'
  9872. if test yes = "$GCC"; then
  9873. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9874. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9875. else
  9876. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9877. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9878. fi
  9879. ;;
  9880. sysv5* | sco3.2v5* | sco5v6*)
  9881. # Note: We CANNOT use -z defs as we might desire, because we do not
  9882. # link with -lc, and that would cause any symbols used from libc to
  9883. # always be unresolved, which means just about no library would
  9884. # ever link correctly. If we're not using GNU ld we use -z text
  9885. # though, which does catch some bad symbols but isn't as heavy-handed
  9886. # as -z defs.
  9887. no_undefined_flag='$wl-z,text'
  9888. allow_undefined_flag='$wl-z,nodefs'
  9889. archive_cmds_need_lc=no
  9890. hardcode_shlibpath_var=no
  9891. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9892. hardcode_libdir_separator=':'
  9893. link_all_deplibs=yes
  9894. export_dynamic_flag_spec='$wl-Bexport'
  9895. runpath_var='LD_RUN_PATH'
  9896. if test yes = "$GCC"; then
  9897. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9898. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9899. else
  9900. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9901. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9902. fi
  9903. ;;
  9904. uts4*)
  9905. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9906. hardcode_libdir_flag_spec='-L$libdir'
  9907. hardcode_shlibpath_var=no
  9908. ;;
  9909. *)
  9910. ld_shlibs=no
  9911. ;;
  9912. esac
  9913. if test sni = "$host_vendor"; then
  9914. case $host in
  9915. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9916. export_dynamic_flag_spec='$wl-Blargedynsym'
  9917. ;;
  9918. esac
  9919. fi
  9920. fi
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9922. $as_echo "$ld_shlibs" >&6; }
  9923. test no = "$ld_shlibs" && can_build_shared=no
  9924. with_gnu_ld=$with_gnu_ld
  9925. #
  9926. # Do we need to explicitly link libc?
  9927. #
  9928. case "x$archive_cmds_need_lc" in
  9929. x|xyes)
  9930. # Assume -lc should be added
  9931. archive_cmds_need_lc=yes
  9932. if test yes,yes = "$GCC,$enable_shared"; then
  9933. case $archive_cmds in
  9934. *'~'*)
  9935. # FIXME: we may have to deal with multi-command sequences.
  9936. ;;
  9937. '$CC '*)
  9938. # Test whether the compiler implicitly links with -lc since on some
  9939. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9940. # to ld, don't add -lc before -lgcc.
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9942. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9943. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9944. $as_echo_n "(cached) " >&6
  9945. else
  9946. $RM conftest*
  9947. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9948. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9949. (eval $ac_compile) 2>&5
  9950. ac_status=$?
  9951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9952. test $ac_status = 0; } 2>conftest.err; then
  9953. soname=conftest
  9954. lib=conftest
  9955. libobjs=conftest.$ac_objext
  9956. deplibs=
  9957. wl=$lt_prog_compiler_wl
  9958. pic_flag=$lt_prog_compiler_pic
  9959. compiler_flags=-v
  9960. linker_flags=-v
  9961. verstring=
  9962. output_objdir=.
  9963. libname=conftest
  9964. lt_save_allow_undefined_flag=$allow_undefined_flag
  9965. allow_undefined_flag=
  9966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9967. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9968. ac_status=$?
  9969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9970. test $ac_status = 0; }
  9971. then
  9972. lt_cv_archive_cmds_need_lc=no
  9973. else
  9974. lt_cv_archive_cmds_need_lc=yes
  9975. fi
  9976. allow_undefined_flag=$lt_save_allow_undefined_flag
  9977. else
  9978. cat conftest.err 1>&5
  9979. fi
  9980. $RM conftest*
  9981. fi
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9983. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9984. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9985. ;;
  9986. esac
  9987. fi
  9988. ;;
  9989. esac
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9991. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9992. if test yes = "$GCC"; then
  9993. case $host_os in
  9994. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9995. *) lt_awk_arg='/^libraries:/' ;;
  9996. esac
  9997. case $host_os in
  9998. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9999. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10000. esac
  10001. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10002. case $lt_search_path_spec in
  10003. *\;*)
  10004. # if the path contains ";" then we assume it to be the separator
  10005. # otherwise default to the standard path separator (i.e. ":") - it is
  10006. # assumed that no part of a normal pathname contains ";" but that should
  10007. # okay in the real world where ";" in dirpaths is itself problematic.
  10008. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10009. ;;
  10010. *)
  10011. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10012. ;;
  10013. esac
  10014. # Ok, now we have the path, separated by spaces, we can step through it
  10015. # and add multilib dir if necessary...
  10016. lt_tmp_lt_search_path_spec=
  10017. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10018. # ...but if some path component already ends with the multilib dir we assume
  10019. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10020. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10021. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10022. lt_multi_os_dir=
  10023. ;;
  10024. esac
  10025. for lt_sys_path in $lt_search_path_spec; do
  10026. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10027. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10028. elif test -n "$lt_multi_os_dir"; then
  10029. test -d "$lt_sys_path" && \
  10030. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10031. fi
  10032. done
  10033. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10034. BEGIN {RS = " "; FS = "/|\n";} {
  10035. lt_foo = "";
  10036. lt_count = 0;
  10037. for (lt_i = NF; lt_i > 0; lt_i--) {
  10038. if ($lt_i != "" && $lt_i != ".") {
  10039. if ($lt_i == "..") {
  10040. lt_count++;
  10041. } else {
  10042. if (lt_count == 0) {
  10043. lt_foo = "/" $lt_i lt_foo;
  10044. } else {
  10045. lt_count--;
  10046. }
  10047. }
  10048. }
  10049. }
  10050. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10051. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10052. }'`
  10053. # AWK program above erroneously prepends '/' to C:/dos/paths
  10054. # for these hosts.
  10055. case $host_os in
  10056. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10057. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10058. esac
  10059. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10060. else
  10061. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10062. fi
  10063. library_names_spec=
  10064. libname_spec='lib$name'
  10065. soname_spec=
  10066. shrext_cmds=.so
  10067. postinstall_cmds=
  10068. postuninstall_cmds=
  10069. finish_cmds=
  10070. finish_eval=
  10071. shlibpath_var=
  10072. shlibpath_overrides_runpath=unknown
  10073. version_type=none
  10074. dynamic_linker="$host_os ld.so"
  10075. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10076. need_lib_prefix=unknown
  10077. hardcode_into_libs=no
  10078. # when you set need_version to no, make sure it does not cause -set_version
  10079. # flags to be left without arguments
  10080. need_version=unknown
  10081. case $host_os in
  10082. aix3*)
  10083. version_type=linux # correct to gnu/linux during the next big refactor
  10084. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10085. shlibpath_var=LIBPATH
  10086. # AIX 3 has no versioning support, so we append a major version to the name.
  10087. soname_spec='$libname$release$shared_ext$major'
  10088. ;;
  10089. aix[4-9]*)
  10090. version_type=linux # correct to gnu/linux during the next big refactor
  10091. need_lib_prefix=no
  10092. need_version=no
  10093. hardcode_into_libs=yes
  10094. if test ia64 = "$host_cpu"; then
  10095. # AIX 5 supports IA64
  10096. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10097. shlibpath_var=LD_LIBRARY_PATH
  10098. else
  10099. # With GCC up to 2.95.x, collect2 would create an import file
  10100. # for dependence libraries. The import file would start with
  10101. # the line '#! .'. This would cause the generated library to
  10102. # depend on '.', always an invalid library. This was fixed in
  10103. # development snapshots of GCC prior to 3.0.
  10104. case $host_os in
  10105. aix4 | aix4.[01] | aix4.[01].*)
  10106. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10107. echo ' yes '
  10108. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10109. :
  10110. else
  10111. can_build_shared=no
  10112. fi
  10113. ;;
  10114. esac
  10115. # Using Import Files as archive members, it is possible to support
  10116. # filename-based versioning of shared library archives on AIX. While
  10117. # this would work for both with and without runtime linking, it will
  10118. # prevent static linking of such archives. So we do filename-based
  10119. # shared library versioning with .so extension only, which is used
  10120. # when both runtime linking and shared linking is enabled.
  10121. # Unfortunately, runtime linking may impact performance, so we do
  10122. # not want this to be the default eventually. Also, we use the
  10123. # versioned .so libs for executables only if there is the -brtl
  10124. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10125. # To allow for filename-based versioning support, we need to create
  10126. # libNAME.so.V as an archive file, containing:
  10127. # *) an Import File, referring to the versioned filename of the
  10128. # archive as well as the shared archive member, telling the
  10129. # bitwidth (32 or 64) of that shared object, and providing the
  10130. # list of exported symbols of that shared object, eventually
  10131. # decorated with the 'weak' keyword
  10132. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10133. # it being seen by the linker.
  10134. # At run time we better use the real file rather than another symlink,
  10135. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10136. case $with_aix_soname,$aix_use_runtimelinking in
  10137. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10138. # soname into executable. Probably we can add versioning support to
  10139. # collect2, so additional links can be useful in future.
  10140. aix,yes) # traditional libtool
  10141. dynamic_linker='AIX unversionable lib.so'
  10142. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10143. # instead of lib<name>.a to let people know that these are not
  10144. # typical AIX shared libraries.
  10145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10146. ;;
  10147. aix,no) # traditional AIX only
  10148. dynamic_linker='AIX lib.a(lib.so.V)'
  10149. # We preserve .a as extension for shared libraries through AIX4.2
  10150. # and later when we are not doing run time linking.
  10151. library_names_spec='$libname$release.a $libname.a'
  10152. soname_spec='$libname$release$shared_ext$major'
  10153. ;;
  10154. svr4,*) # full svr4 only
  10155. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10156. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10157. # We do not specify a path in Import Files, so LIBPATH fires.
  10158. shlibpath_overrides_runpath=yes
  10159. ;;
  10160. *,yes) # both, prefer svr4
  10161. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10162. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10163. # unpreferred sharedlib libNAME.a needs extra handling
  10164. 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"'
  10165. 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"'
  10166. # We do not specify a path in Import Files, so LIBPATH fires.
  10167. shlibpath_overrides_runpath=yes
  10168. ;;
  10169. *,no) # both, prefer aix
  10170. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10171. library_names_spec='$libname$release.a $libname.a'
  10172. soname_spec='$libname$release$shared_ext$major'
  10173. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10174. 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)'
  10175. 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"'
  10176. ;;
  10177. esac
  10178. shlibpath_var=LIBPATH
  10179. fi
  10180. ;;
  10181. amigaos*)
  10182. case $host_cpu in
  10183. powerpc)
  10184. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10185. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10186. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10187. ;;
  10188. m68k)
  10189. library_names_spec='$libname.ixlibrary $libname.a'
  10190. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10191. 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'
  10192. ;;
  10193. esac
  10194. ;;
  10195. beos*)
  10196. library_names_spec='$libname$shared_ext'
  10197. dynamic_linker="$host_os ld.so"
  10198. shlibpath_var=LIBRARY_PATH
  10199. ;;
  10200. bsdi[45]*)
  10201. version_type=linux # correct to gnu/linux during the next big refactor
  10202. need_version=no
  10203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10204. soname_spec='$libname$release$shared_ext$major'
  10205. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10208. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10209. # the default ld.so.conf also contains /usr/contrib/lib and
  10210. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10211. # libtool to hard-code these into programs
  10212. ;;
  10213. cygwin* | mingw* | pw32* | cegcc*)
  10214. version_type=windows
  10215. shrext_cmds=.dll
  10216. need_version=no
  10217. need_lib_prefix=no
  10218. case $GCC,$cc_basename in
  10219. yes,*)
  10220. # gcc
  10221. library_names_spec='$libname.dll.a'
  10222. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10223. postinstall_cmds='base_file=`basename \$file`~
  10224. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10225. dldir=$destdir/`dirname \$dlpath`~
  10226. test -d \$dldir || mkdir -p \$dldir~
  10227. $install_prog $dir/$dlname \$dldir/$dlname~
  10228. chmod a+x \$dldir/$dlname~
  10229. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10230. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10231. fi'
  10232. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10233. dlpath=$dir/\$dldll~
  10234. $RM \$dlpath'
  10235. shlibpath_overrides_runpath=yes
  10236. case $host_os in
  10237. cygwin*)
  10238. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10239. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10240. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10241. ;;
  10242. mingw* | cegcc*)
  10243. # MinGW DLLs use traditional 'lib' prefix
  10244. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10245. ;;
  10246. pw32*)
  10247. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10248. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10249. ;;
  10250. esac
  10251. dynamic_linker='Win32 ld.exe'
  10252. ;;
  10253. *,cl*)
  10254. # Native MSVC
  10255. libname_spec='$name'
  10256. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10257. library_names_spec='$libname.dll.lib'
  10258. case $build_os in
  10259. mingw*)
  10260. sys_lib_search_path_spec=
  10261. lt_save_ifs=$IFS
  10262. IFS=';'
  10263. for lt_path in $LIB
  10264. do
  10265. IFS=$lt_save_ifs
  10266. # Let DOS variable expansion print the short 8.3 style file name.
  10267. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10268. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10269. done
  10270. IFS=$lt_save_ifs
  10271. # Convert to MSYS style.
  10272. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10273. ;;
  10274. cygwin*)
  10275. # Convert to unix form, then to dos form, then back to unix form
  10276. # but this time dos style (no spaces!) so that the unix form looks
  10277. # like /cygdrive/c/PROGRA~1:/cygdr...
  10278. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10279. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10280. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10281. ;;
  10282. *)
  10283. sys_lib_search_path_spec=$LIB
  10284. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10285. # It is most probably a Windows format PATH.
  10286. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10287. else
  10288. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10289. fi
  10290. # FIXME: find the short name or the path components, as spaces are
  10291. # common. (e.g. "Program Files" -> "PROGRA~1")
  10292. ;;
  10293. esac
  10294. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10295. postinstall_cmds='base_file=`basename \$file`~
  10296. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10297. dldir=$destdir/`dirname \$dlpath`~
  10298. test -d \$dldir || mkdir -p \$dldir~
  10299. $install_prog $dir/$dlname \$dldir/$dlname'
  10300. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10301. dlpath=$dir/\$dldll~
  10302. $RM \$dlpath'
  10303. shlibpath_overrides_runpath=yes
  10304. dynamic_linker='Win32 link.exe'
  10305. ;;
  10306. *)
  10307. # Assume MSVC wrapper
  10308. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10309. dynamic_linker='Win32 ld.exe'
  10310. ;;
  10311. esac
  10312. # FIXME: first we should search . and the directory the executable is in
  10313. shlibpath_var=PATH
  10314. ;;
  10315. darwin* | rhapsody*)
  10316. dynamic_linker="$host_os dyld"
  10317. version_type=darwin
  10318. need_lib_prefix=no
  10319. need_version=no
  10320. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10321. soname_spec='$libname$release$major$shared_ext'
  10322. shlibpath_overrides_runpath=yes
  10323. shlibpath_var=DYLD_LIBRARY_PATH
  10324. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10325. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10326. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10327. ;;
  10328. dgux*)
  10329. version_type=linux # correct to gnu/linux during the next big refactor
  10330. need_lib_prefix=no
  10331. need_version=no
  10332. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10333. soname_spec='$libname$release$shared_ext$major'
  10334. shlibpath_var=LD_LIBRARY_PATH
  10335. ;;
  10336. freebsd* | dragonfly*)
  10337. # DragonFly does not have aout. When/if they implement a new
  10338. # versioning mechanism, adjust this.
  10339. if test -x /usr/bin/objformat; then
  10340. objformat=`/usr/bin/objformat`
  10341. else
  10342. case $host_os in
  10343. freebsd[23].*) objformat=aout ;;
  10344. *) objformat=elf ;;
  10345. esac
  10346. fi
  10347. version_type=freebsd-$objformat
  10348. case $version_type in
  10349. freebsd-elf*)
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10351. soname_spec='$libname$release$shared_ext$major'
  10352. need_version=no
  10353. need_lib_prefix=no
  10354. ;;
  10355. freebsd-*)
  10356. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10357. need_version=yes
  10358. ;;
  10359. esac
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. case $host_os in
  10362. freebsd2.*)
  10363. shlibpath_overrides_runpath=yes
  10364. ;;
  10365. freebsd3.[01]* | freebsdelf3.[01]*)
  10366. shlibpath_overrides_runpath=yes
  10367. hardcode_into_libs=yes
  10368. ;;
  10369. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10370. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10371. shlibpath_overrides_runpath=no
  10372. hardcode_into_libs=yes
  10373. ;;
  10374. *) # from 4.6 on, and DragonFly
  10375. shlibpath_overrides_runpath=yes
  10376. hardcode_into_libs=yes
  10377. ;;
  10378. esac
  10379. ;;
  10380. haiku*)
  10381. version_type=linux # correct to gnu/linux during the next big refactor
  10382. need_lib_prefix=no
  10383. need_version=no
  10384. dynamic_linker="$host_os runtime_loader"
  10385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10386. soname_spec='$libname$release$shared_ext$major'
  10387. shlibpath_var=LIBRARY_PATH
  10388. shlibpath_overrides_runpath=no
  10389. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10390. hardcode_into_libs=yes
  10391. ;;
  10392. hpux9* | hpux10* | hpux11*)
  10393. # Give a soname corresponding to the major version so that dld.sl refuses to
  10394. # link against other versions.
  10395. version_type=sunos
  10396. need_lib_prefix=no
  10397. need_version=no
  10398. case $host_cpu in
  10399. ia64*)
  10400. shrext_cmds='.so'
  10401. hardcode_into_libs=yes
  10402. dynamic_linker="$host_os dld.so"
  10403. shlibpath_var=LD_LIBRARY_PATH
  10404. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10405. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10406. soname_spec='$libname$release$shared_ext$major'
  10407. if test 32 = "$HPUX_IA64_MODE"; then
  10408. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10409. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10410. else
  10411. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10412. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10413. fi
  10414. ;;
  10415. hppa*64*)
  10416. shrext_cmds='.sl'
  10417. hardcode_into_libs=yes
  10418. dynamic_linker="$host_os dld.sl"
  10419. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10420. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10421. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10422. soname_spec='$libname$release$shared_ext$major'
  10423. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10424. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10425. ;;
  10426. *)
  10427. shrext_cmds='.sl'
  10428. dynamic_linker="$host_os dld.sl"
  10429. shlibpath_var=SHLIB_PATH
  10430. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. ;;
  10434. esac
  10435. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10436. postinstall_cmds='chmod 555 $lib'
  10437. # or fails outright, so override atomically:
  10438. install_override_mode=555
  10439. ;;
  10440. interix[3-9]*)
  10441. version_type=linux # correct to gnu/linux during the next big refactor
  10442. need_lib_prefix=no
  10443. need_version=no
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10445. soname_spec='$libname$release$shared_ext$major'
  10446. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. shlibpath_overrides_runpath=no
  10449. hardcode_into_libs=yes
  10450. ;;
  10451. irix5* | irix6* | nonstopux*)
  10452. case $host_os in
  10453. nonstopux*) version_type=nonstopux ;;
  10454. *)
  10455. if test yes = "$lt_cv_prog_gnu_ld"; then
  10456. version_type=linux # correct to gnu/linux during the next big refactor
  10457. else
  10458. version_type=irix
  10459. fi ;;
  10460. esac
  10461. need_lib_prefix=no
  10462. need_version=no
  10463. soname_spec='$libname$release$shared_ext$major'
  10464. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10465. case $host_os in
  10466. irix5* | nonstopux*)
  10467. libsuff= shlibsuff=
  10468. ;;
  10469. *)
  10470. case $LD in # libtool.m4 will add one of these switches to LD
  10471. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10472. libsuff= shlibsuff= libmagic=32-bit;;
  10473. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10474. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10475. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10476. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10477. *) libsuff= shlibsuff= libmagic=never-match;;
  10478. esac
  10479. ;;
  10480. esac
  10481. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10482. shlibpath_overrides_runpath=no
  10483. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10484. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10485. hardcode_into_libs=yes
  10486. ;;
  10487. # No shared lib support for Linux oldld, aout, or coff.
  10488. linux*oldld* | linux*aout* | linux*coff*)
  10489. dynamic_linker=no
  10490. ;;
  10491. linux*android*)
  10492. version_type=none # Android doesn't support versioned libraries.
  10493. need_lib_prefix=no
  10494. need_version=no
  10495. library_names_spec='$libname$release$shared_ext'
  10496. soname_spec='$libname$release$shared_ext'
  10497. finish_cmds=
  10498. shlibpath_var=LD_LIBRARY_PATH
  10499. shlibpath_overrides_runpath=yes
  10500. # This implies no fast_install, which is unacceptable.
  10501. # Some rework will be needed to allow for fast_install
  10502. # before this can be enabled.
  10503. hardcode_into_libs=yes
  10504. dynamic_linker='Android linker'
  10505. # Don't embed -rpath directories since the linker doesn't support them.
  10506. hardcode_libdir_flag_spec='-L$libdir'
  10507. ;;
  10508. # This must be glibc/ELF.
  10509. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10510. version_type=linux # correct to gnu/linux during the next big refactor
  10511. need_lib_prefix=no
  10512. need_version=no
  10513. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10514. soname_spec='$libname$release$shared_ext$major'
  10515. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10516. shlibpath_var=LD_LIBRARY_PATH
  10517. shlibpath_overrides_runpath=no
  10518. # Some binutils ld are patched to set DT_RUNPATH
  10519. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10520. $as_echo_n "(cached) " >&6
  10521. else
  10522. lt_cv_shlibpath_overrides_runpath=no
  10523. save_LDFLAGS=$LDFLAGS
  10524. save_libdir=$libdir
  10525. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10526. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10528. /* end confdefs.h. */
  10529. int
  10530. main ()
  10531. {
  10532. ;
  10533. return 0;
  10534. }
  10535. _ACEOF
  10536. if ac_fn_c_try_link "$LINENO"; then :
  10537. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10538. lt_cv_shlibpath_overrides_runpath=yes
  10539. fi
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext \
  10542. conftest$ac_exeext conftest.$ac_ext
  10543. LDFLAGS=$save_LDFLAGS
  10544. libdir=$save_libdir
  10545. fi
  10546. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10547. # This implies no fast_install, which is unacceptable.
  10548. # Some rework will be needed to allow for fast_install
  10549. # before this can be enabled.
  10550. hardcode_into_libs=yes
  10551. # Ideally, we could use ldconfig to report *all* directores which are
  10552. # searched for libraries, however this is still not possible. Aside from not
  10553. # being certain /sbin/ldconfig is available, command
  10554. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10555. # even though it is searched at run-time. Try to do the best guess by
  10556. # appending ld.so.conf contents (and includes) to the search path.
  10557. if test -f /etc/ld.so.conf; then
  10558. 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' ' '`
  10559. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10560. fi
  10561. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10562. # powerpc, because MkLinux only supported shared libraries with the
  10563. # GNU dynamic linker. Since this was broken with cross compilers,
  10564. # most powerpc-linux boxes support dynamic linking these days and
  10565. # people can always --disable-shared, the test was removed, and we
  10566. # assume the GNU/Linux dynamic linker is in use.
  10567. dynamic_linker='GNU/Linux ld.so'
  10568. ;;
  10569. netbsdelf*-gnu)
  10570. version_type=linux
  10571. need_lib_prefix=no
  10572. need_version=no
  10573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10574. soname_spec='${libname}${release}${shared_ext}$major'
  10575. shlibpath_var=LD_LIBRARY_PATH
  10576. shlibpath_overrides_runpath=no
  10577. hardcode_into_libs=yes
  10578. dynamic_linker='NetBSD ld.elf_so'
  10579. ;;
  10580. netbsd*)
  10581. version_type=sunos
  10582. need_lib_prefix=no
  10583. need_version=no
  10584. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10585. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10586. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10587. dynamic_linker='NetBSD (a.out) ld.so'
  10588. else
  10589. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10590. soname_spec='$libname$release$shared_ext$major'
  10591. dynamic_linker='NetBSD ld.elf_so'
  10592. fi
  10593. shlibpath_var=LD_LIBRARY_PATH
  10594. shlibpath_overrides_runpath=yes
  10595. hardcode_into_libs=yes
  10596. ;;
  10597. newsos6)
  10598. version_type=linux # correct to gnu/linux during the next big refactor
  10599. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10600. shlibpath_var=LD_LIBRARY_PATH
  10601. shlibpath_overrides_runpath=yes
  10602. ;;
  10603. *nto* | *qnx*)
  10604. version_type=qnx
  10605. need_lib_prefix=no
  10606. need_version=no
  10607. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10608. soname_spec='$libname$release$shared_ext$major'
  10609. shlibpath_var=LD_LIBRARY_PATH
  10610. shlibpath_overrides_runpath=no
  10611. hardcode_into_libs=yes
  10612. dynamic_linker='ldqnx.so'
  10613. ;;
  10614. openbsd* | bitrig*)
  10615. version_type=sunos
  10616. sys_lib_dlsearch_path_spec=/usr/lib
  10617. need_lib_prefix=no
  10618. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10619. need_version=no
  10620. else
  10621. need_version=yes
  10622. fi
  10623. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10625. shlibpath_var=LD_LIBRARY_PATH
  10626. shlibpath_overrides_runpath=yes
  10627. ;;
  10628. os2*)
  10629. libname_spec='$name'
  10630. version_type=windows
  10631. shrext_cmds=.dll
  10632. need_version=no
  10633. need_lib_prefix=no
  10634. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10635. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10636. v=$($ECHO $release$versuffix | tr -d .-);
  10637. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10638. $ECHO $n$v`$shared_ext'
  10639. library_names_spec='${libname}_dll.$libext'
  10640. dynamic_linker='OS/2 ld.exe'
  10641. shlibpath_var=BEGINLIBPATH
  10642. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10643. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10644. postinstall_cmds='base_file=`basename \$file`~
  10645. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10646. dldir=$destdir/`dirname \$dlpath`~
  10647. test -d \$dldir || mkdir -p \$dldir~
  10648. $install_prog $dir/$dlname \$dldir/$dlname~
  10649. chmod a+x \$dldir/$dlname~
  10650. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10651. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10652. fi'
  10653. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10654. dlpath=$dir/\$dldll~
  10655. $RM \$dlpath'
  10656. ;;
  10657. osf3* | osf4* | osf5*)
  10658. version_type=osf
  10659. need_lib_prefix=no
  10660. need_version=no
  10661. soname_spec='$libname$release$shared_ext$major'
  10662. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10663. shlibpath_var=LD_LIBRARY_PATH
  10664. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10665. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10666. ;;
  10667. rdos*)
  10668. dynamic_linker=no
  10669. ;;
  10670. solaris*)
  10671. version_type=linux # correct to gnu/linux during the next big refactor
  10672. need_lib_prefix=no
  10673. need_version=no
  10674. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10675. soname_spec='$libname$release$shared_ext$major'
  10676. shlibpath_var=LD_LIBRARY_PATH
  10677. shlibpath_overrides_runpath=yes
  10678. hardcode_into_libs=yes
  10679. # ldd complains unless libraries are executable
  10680. postinstall_cmds='chmod +x $lib'
  10681. ;;
  10682. sunos4*)
  10683. version_type=sunos
  10684. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10685. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10686. shlibpath_var=LD_LIBRARY_PATH
  10687. shlibpath_overrides_runpath=yes
  10688. if test yes = "$with_gnu_ld"; then
  10689. need_lib_prefix=no
  10690. fi
  10691. need_version=yes
  10692. ;;
  10693. sysv4 | sysv4.3*)
  10694. version_type=linux # correct to gnu/linux during the next big refactor
  10695. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10696. soname_spec='$libname$release$shared_ext$major'
  10697. shlibpath_var=LD_LIBRARY_PATH
  10698. case $host_vendor in
  10699. sni)
  10700. shlibpath_overrides_runpath=no
  10701. need_lib_prefix=no
  10702. runpath_var=LD_RUN_PATH
  10703. ;;
  10704. siemens)
  10705. need_lib_prefix=no
  10706. ;;
  10707. motorola)
  10708. need_lib_prefix=no
  10709. need_version=no
  10710. shlibpath_overrides_runpath=no
  10711. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10712. ;;
  10713. esac
  10714. ;;
  10715. sysv4*MP*)
  10716. if test -d /usr/nec; then
  10717. version_type=linux # correct to gnu/linux during the next big refactor
  10718. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10719. soname_spec='$libname$shared_ext.$major'
  10720. shlibpath_var=LD_LIBRARY_PATH
  10721. fi
  10722. ;;
  10723. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10724. version_type=sco
  10725. need_lib_prefix=no
  10726. need_version=no
  10727. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10728. soname_spec='$libname$release$shared_ext$major'
  10729. shlibpath_var=LD_LIBRARY_PATH
  10730. shlibpath_overrides_runpath=yes
  10731. hardcode_into_libs=yes
  10732. if test yes = "$with_gnu_ld"; then
  10733. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10734. else
  10735. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10736. case $host_os in
  10737. sco3.2v5*)
  10738. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10739. ;;
  10740. esac
  10741. fi
  10742. sys_lib_dlsearch_path_spec='/usr/lib'
  10743. ;;
  10744. tpf*)
  10745. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10746. version_type=linux # correct to gnu/linux during the next big refactor
  10747. need_lib_prefix=no
  10748. need_version=no
  10749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10750. shlibpath_var=LD_LIBRARY_PATH
  10751. shlibpath_overrides_runpath=no
  10752. hardcode_into_libs=yes
  10753. ;;
  10754. uts4*)
  10755. version_type=linux # correct to gnu/linux during the next big refactor
  10756. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10757. soname_spec='$libname$release$shared_ext$major'
  10758. shlibpath_var=LD_LIBRARY_PATH
  10759. ;;
  10760. *)
  10761. dynamic_linker=no
  10762. ;;
  10763. esac
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10765. $as_echo "$dynamic_linker" >&6; }
  10766. test no = "$dynamic_linker" && can_build_shared=no
  10767. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10768. if test yes = "$GCC"; then
  10769. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10770. fi
  10771. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10772. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10773. fi
  10774. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10775. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10776. fi
  10777. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10778. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10779. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10780. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10781. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10782. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10784. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10785. hardcode_action=
  10786. if test -n "$hardcode_libdir_flag_spec" ||
  10787. test -n "$runpath_var" ||
  10788. test yes = "$hardcode_automatic"; then
  10789. # We can hardcode non-existent directories.
  10790. if test no != "$hardcode_direct" &&
  10791. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10792. # have to relink, otherwise we might link with an installed library
  10793. # when we should be linking with a yet-to-be-installed one
  10794. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10795. test no != "$hardcode_minus_L"; then
  10796. # Linking always hardcodes the temporary library directory.
  10797. hardcode_action=relink
  10798. else
  10799. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10800. hardcode_action=immediate
  10801. fi
  10802. else
  10803. # We cannot hardcode anything, or else we can only hardcode existing
  10804. # directories.
  10805. hardcode_action=unsupported
  10806. fi
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10808. $as_echo "$hardcode_action" >&6; }
  10809. if test relink = "$hardcode_action" ||
  10810. test yes = "$inherit_rpath"; then
  10811. # Fast installation is not supported
  10812. enable_fast_install=no
  10813. elif test yes = "$shlibpath_overrides_runpath" ||
  10814. test no = "$enable_shared"; then
  10815. # Fast installation is not necessary
  10816. enable_fast_install=needless
  10817. fi
  10818. if test yes != "$enable_dlopen"; then
  10819. enable_dlopen=unknown
  10820. enable_dlopen_self=unknown
  10821. enable_dlopen_self_static=unknown
  10822. else
  10823. lt_cv_dlopen=no
  10824. lt_cv_dlopen_libs=
  10825. case $host_os in
  10826. beos*)
  10827. lt_cv_dlopen=load_add_on
  10828. lt_cv_dlopen_libs=
  10829. lt_cv_dlopen_self=yes
  10830. ;;
  10831. mingw* | pw32* | cegcc*)
  10832. lt_cv_dlopen=LoadLibrary
  10833. lt_cv_dlopen_libs=
  10834. ;;
  10835. cygwin*)
  10836. lt_cv_dlopen=dlopen
  10837. lt_cv_dlopen_libs=
  10838. ;;
  10839. darwin*)
  10840. # if libdl is installed we need to link against it
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10842. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10843. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. ac_check_lib_save_LIBS=$LIBS
  10847. LIBS="-ldl $LIBS"
  10848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10849. /* end confdefs.h. */
  10850. /* Override any GCC internal prototype to avoid an error.
  10851. Use char because int might match the return type of a GCC
  10852. builtin and then its argument prototype would still apply. */
  10853. #ifdef __cplusplus
  10854. extern "C"
  10855. #endif
  10856. char dlopen ();
  10857. int
  10858. main ()
  10859. {
  10860. return dlopen ();
  10861. ;
  10862. return 0;
  10863. }
  10864. _ACEOF
  10865. if ac_fn_c_try_link "$LINENO"; then :
  10866. ac_cv_lib_dl_dlopen=yes
  10867. else
  10868. ac_cv_lib_dl_dlopen=no
  10869. fi
  10870. rm -f core conftest.err conftest.$ac_objext \
  10871. conftest$ac_exeext conftest.$ac_ext
  10872. LIBS=$ac_check_lib_save_LIBS
  10873. fi
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10875. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10876. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10877. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10878. else
  10879. lt_cv_dlopen=dyld
  10880. lt_cv_dlopen_libs=
  10881. lt_cv_dlopen_self=yes
  10882. fi
  10883. ;;
  10884. tpf*)
  10885. # Don't try to run any link tests for TPF. We know it's impossible
  10886. # because TPF is a cross-compiler, and we know how we open DSOs.
  10887. lt_cv_dlopen=dlopen
  10888. lt_cv_dlopen_libs=
  10889. lt_cv_dlopen_self=no
  10890. ;;
  10891. *)
  10892. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10893. if test "x$ac_cv_func_shl_load" = xyes; then :
  10894. lt_cv_dlopen=shl_load
  10895. else
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10897. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10898. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10899. $as_echo_n "(cached) " >&6
  10900. else
  10901. ac_check_lib_save_LIBS=$LIBS
  10902. LIBS="-ldld $LIBS"
  10903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10904. /* end confdefs.h. */
  10905. /* Override any GCC internal prototype to avoid an error.
  10906. Use char because int might match the return type of a GCC
  10907. builtin and then its argument prototype would still apply. */
  10908. #ifdef __cplusplus
  10909. extern "C"
  10910. #endif
  10911. char shl_load ();
  10912. int
  10913. main ()
  10914. {
  10915. return shl_load ();
  10916. ;
  10917. return 0;
  10918. }
  10919. _ACEOF
  10920. if ac_fn_c_try_link "$LINENO"; then :
  10921. ac_cv_lib_dld_shl_load=yes
  10922. else
  10923. ac_cv_lib_dld_shl_load=no
  10924. fi
  10925. rm -f core conftest.err conftest.$ac_objext \
  10926. conftest$ac_exeext conftest.$ac_ext
  10927. LIBS=$ac_check_lib_save_LIBS
  10928. fi
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10930. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10931. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10932. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10933. else
  10934. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10935. if test "x$ac_cv_func_dlopen" = xyes; then :
  10936. lt_cv_dlopen=dlopen
  10937. else
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10939. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10940. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10941. $as_echo_n "(cached) " >&6
  10942. else
  10943. ac_check_lib_save_LIBS=$LIBS
  10944. LIBS="-ldl $LIBS"
  10945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10946. /* end confdefs.h. */
  10947. /* Override any GCC internal prototype to avoid an error.
  10948. Use char because int might match the return type of a GCC
  10949. builtin and then its argument prototype would still apply. */
  10950. #ifdef __cplusplus
  10951. extern "C"
  10952. #endif
  10953. char dlopen ();
  10954. int
  10955. main ()
  10956. {
  10957. return dlopen ();
  10958. ;
  10959. return 0;
  10960. }
  10961. _ACEOF
  10962. if ac_fn_c_try_link "$LINENO"; then :
  10963. ac_cv_lib_dl_dlopen=yes
  10964. else
  10965. ac_cv_lib_dl_dlopen=no
  10966. fi
  10967. rm -f core conftest.err conftest.$ac_objext \
  10968. conftest$ac_exeext conftest.$ac_ext
  10969. LIBS=$ac_check_lib_save_LIBS
  10970. fi
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10972. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10973. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10974. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10975. else
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10977. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10978. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10979. $as_echo_n "(cached) " >&6
  10980. else
  10981. ac_check_lib_save_LIBS=$LIBS
  10982. LIBS="-lsvld $LIBS"
  10983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10984. /* end confdefs.h. */
  10985. /* Override any GCC internal prototype to avoid an error.
  10986. Use char because int might match the return type of a GCC
  10987. builtin and then its argument prototype would still apply. */
  10988. #ifdef __cplusplus
  10989. extern "C"
  10990. #endif
  10991. char dlopen ();
  10992. int
  10993. main ()
  10994. {
  10995. return dlopen ();
  10996. ;
  10997. return 0;
  10998. }
  10999. _ACEOF
  11000. if ac_fn_c_try_link "$LINENO"; then :
  11001. ac_cv_lib_svld_dlopen=yes
  11002. else
  11003. ac_cv_lib_svld_dlopen=no
  11004. fi
  11005. rm -f core conftest.err conftest.$ac_objext \
  11006. conftest$ac_exeext conftest.$ac_ext
  11007. LIBS=$ac_check_lib_save_LIBS
  11008. fi
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11010. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11011. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11012. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11013. else
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11015. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11016. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11017. $as_echo_n "(cached) " >&6
  11018. else
  11019. ac_check_lib_save_LIBS=$LIBS
  11020. LIBS="-ldld $LIBS"
  11021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11022. /* end confdefs.h. */
  11023. /* Override any GCC internal prototype to avoid an error.
  11024. Use char because int might match the return type of a GCC
  11025. builtin and then its argument prototype would still apply. */
  11026. #ifdef __cplusplus
  11027. extern "C"
  11028. #endif
  11029. char dld_link ();
  11030. int
  11031. main ()
  11032. {
  11033. return dld_link ();
  11034. ;
  11035. return 0;
  11036. }
  11037. _ACEOF
  11038. if ac_fn_c_try_link "$LINENO"; then :
  11039. ac_cv_lib_dld_dld_link=yes
  11040. else
  11041. ac_cv_lib_dld_dld_link=no
  11042. fi
  11043. rm -f core conftest.err conftest.$ac_objext \
  11044. conftest$ac_exeext conftest.$ac_ext
  11045. LIBS=$ac_check_lib_save_LIBS
  11046. fi
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11048. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11049. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11050. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11051. fi
  11052. fi
  11053. fi
  11054. fi
  11055. fi
  11056. fi
  11057. ;;
  11058. esac
  11059. if test no = "$lt_cv_dlopen"; then
  11060. enable_dlopen=no
  11061. else
  11062. enable_dlopen=yes
  11063. fi
  11064. case $lt_cv_dlopen in
  11065. dlopen)
  11066. save_CPPFLAGS=$CPPFLAGS
  11067. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11068. save_LDFLAGS=$LDFLAGS
  11069. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11070. save_LIBS=$LIBS
  11071. LIBS="$lt_cv_dlopen_libs $LIBS"
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11073. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11074. if ${lt_cv_dlopen_self+:} false; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. if test yes = "$cross_compiling"; then :
  11078. lt_cv_dlopen_self=cross
  11079. else
  11080. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11081. lt_status=$lt_dlunknown
  11082. cat > conftest.$ac_ext <<_LT_EOF
  11083. #line $LINENO "configure"
  11084. #include "confdefs.h"
  11085. #if HAVE_DLFCN_H
  11086. #include <dlfcn.h>
  11087. #endif
  11088. #include <stdio.h>
  11089. #ifdef RTLD_GLOBAL
  11090. # define LT_DLGLOBAL RTLD_GLOBAL
  11091. #else
  11092. # ifdef DL_GLOBAL
  11093. # define LT_DLGLOBAL DL_GLOBAL
  11094. # else
  11095. # define LT_DLGLOBAL 0
  11096. # endif
  11097. #endif
  11098. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11099. find out it does not work in some platform. */
  11100. #ifndef LT_DLLAZY_OR_NOW
  11101. # ifdef RTLD_LAZY
  11102. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11103. # else
  11104. # ifdef DL_LAZY
  11105. # define LT_DLLAZY_OR_NOW DL_LAZY
  11106. # else
  11107. # ifdef RTLD_NOW
  11108. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11109. # else
  11110. # ifdef DL_NOW
  11111. # define LT_DLLAZY_OR_NOW DL_NOW
  11112. # else
  11113. # define LT_DLLAZY_OR_NOW 0
  11114. # endif
  11115. # endif
  11116. # endif
  11117. # endif
  11118. #endif
  11119. /* When -fvisibility=hidden is used, assume the code has been annotated
  11120. correspondingly for the symbols needed. */
  11121. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11122. int fnord () __attribute__((visibility("default")));
  11123. #endif
  11124. int fnord () { return 42; }
  11125. int main ()
  11126. {
  11127. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11128. int status = $lt_dlunknown;
  11129. if (self)
  11130. {
  11131. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11132. else
  11133. {
  11134. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11135. else puts (dlerror ());
  11136. }
  11137. /* dlclose (self); */
  11138. }
  11139. else
  11140. puts (dlerror ());
  11141. return status;
  11142. }
  11143. _LT_EOF
  11144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11145. (eval $ac_link) 2>&5
  11146. ac_status=$?
  11147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11148. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11149. (./conftest; exit; ) >&5 2>/dev/null
  11150. lt_status=$?
  11151. case x$lt_status in
  11152. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11153. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11154. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11155. esac
  11156. else :
  11157. # compilation failed
  11158. lt_cv_dlopen_self=no
  11159. fi
  11160. fi
  11161. rm -fr conftest*
  11162. fi
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11164. $as_echo "$lt_cv_dlopen_self" >&6; }
  11165. if test yes = "$lt_cv_dlopen_self"; then
  11166. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11168. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11169. if ${lt_cv_dlopen_self_static+:} false; then :
  11170. $as_echo_n "(cached) " >&6
  11171. else
  11172. if test yes = "$cross_compiling"; then :
  11173. lt_cv_dlopen_self_static=cross
  11174. else
  11175. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11176. lt_status=$lt_dlunknown
  11177. cat > conftest.$ac_ext <<_LT_EOF
  11178. #line $LINENO "configure"
  11179. #include "confdefs.h"
  11180. #if HAVE_DLFCN_H
  11181. #include <dlfcn.h>
  11182. #endif
  11183. #include <stdio.h>
  11184. #ifdef RTLD_GLOBAL
  11185. # define LT_DLGLOBAL RTLD_GLOBAL
  11186. #else
  11187. # ifdef DL_GLOBAL
  11188. # define LT_DLGLOBAL DL_GLOBAL
  11189. # else
  11190. # define LT_DLGLOBAL 0
  11191. # endif
  11192. #endif
  11193. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11194. find out it does not work in some platform. */
  11195. #ifndef LT_DLLAZY_OR_NOW
  11196. # ifdef RTLD_LAZY
  11197. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11198. # else
  11199. # ifdef DL_LAZY
  11200. # define LT_DLLAZY_OR_NOW DL_LAZY
  11201. # else
  11202. # ifdef RTLD_NOW
  11203. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11204. # else
  11205. # ifdef DL_NOW
  11206. # define LT_DLLAZY_OR_NOW DL_NOW
  11207. # else
  11208. # define LT_DLLAZY_OR_NOW 0
  11209. # endif
  11210. # endif
  11211. # endif
  11212. # endif
  11213. #endif
  11214. /* When -fvisibility=hidden is used, assume the code has been annotated
  11215. correspondingly for the symbols needed. */
  11216. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11217. int fnord () __attribute__((visibility("default")));
  11218. #endif
  11219. int fnord () { return 42; }
  11220. int main ()
  11221. {
  11222. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11223. int status = $lt_dlunknown;
  11224. if (self)
  11225. {
  11226. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11227. else
  11228. {
  11229. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11230. else puts (dlerror ());
  11231. }
  11232. /* dlclose (self); */
  11233. }
  11234. else
  11235. puts (dlerror ());
  11236. return status;
  11237. }
  11238. _LT_EOF
  11239. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11240. (eval $ac_link) 2>&5
  11241. ac_status=$?
  11242. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11243. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11244. (./conftest; exit; ) >&5 2>/dev/null
  11245. lt_status=$?
  11246. case x$lt_status in
  11247. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11248. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11249. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11250. esac
  11251. else :
  11252. # compilation failed
  11253. lt_cv_dlopen_self_static=no
  11254. fi
  11255. fi
  11256. rm -fr conftest*
  11257. fi
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11259. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11260. fi
  11261. CPPFLAGS=$save_CPPFLAGS
  11262. LDFLAGS=$save_LDFLAGS
  11263. LIBS=$save_LIBS
  11264. ;;
  11265. esac
  11266. case $lt_cv_dlopen_self in
  11267. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11268. *) enable_dlopen_self=unknown ;;
  11269. esac
  11270. case $lt_cv_dlopen_self_static in
  11271. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11272. *) enable_dlopen_self_static=unknown ;;
  11273. esac
  11274. fi
  11275. striplib=
  11276. old_striplib=
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11278. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11279. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11280. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11281. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11283. $as_echo "yes" >&6; }
  11284. else
  11285. # FIXME - insert some real tests, host_os isn't really good enough
  11286. case $host_os in
  11287. darwin*)
  11288. if test -n "$STRIP"; then
  11289. striplib="$STRIP -x"
  11290. old_striplib="$STRIP -S"
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11292. $as_echo "yes" >&6; }
  11293. else
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11295. $as_echo "no" >&6; }
  11296. fi
  11297. ;;
  11298. *)
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11300. $as_echo "no" >&6; }
  11301. ;;
  11302. esac
  11303. fi
  11304. # Report what library types will actually be built
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11306. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11308. $as_echo "$can_build_shared" >&6; }
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11310. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11311. test no = "$can_build_shared" && enable_shared=no
  11312. # On AIX, shared libraries and static libraries use the same namespace, and
  11313. # are all built from PIC.
  11314. case $host_os in
  11315. aix3*)
  11316. test yes = "$enable_shared" && enable_static=no
  11317. if test -n "$RANLIB"; then
  11318. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11319. postinstall_cmds='$RANLIB $lib'
  11320. fi
  11321. ;;
  11322. aix[4-9]*)
  11323. if test ia64 != "$host_cpu"; then
  11324. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11325. yes,aix,yes) ;; # shared object as lib.so file only
  11326. yes,svr4,*) ;; # shared object as lib.so archive member only
  11327. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11328. esac
  11329. fi
  11330. ;;
  11331. esac
  11332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11333. $as_echo "$enable_shared" >&6; }
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11335. $as_echo_n "checking whether to build static libraries... " >&6; }
  11336. # Make sure either enable_shared or enable_static is yes.
  11337. test yes = "$enable_shared" || enable_static=yes
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11339. $as_echo "$enable_static" >&6; }
  11340. fi
  11341. ac_ext=c
  11342. ac_cpp='$CPP $CPPFLAGS'
  11343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11346. CC=$lt_save_CC
  11347. ac_config_commands="$ac_config_commands libtool"
  11348. # Only expand once:
  11349. ac_ext=c
  11350. ac_cpp='$CPP $CPPFLAGS'
  11351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11354. if test -n "$ac_tool_prefix"; then
  11355. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11356. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11358. $as_echo_n "checking for $ac_word... " >&6; }
  11359. if ${ac_cv_prog_CC+:} false; then :
  11360. $as_echo_n "(cached) " >&6
  11361. else
  11362. if test -n "$CC"; then
  11363. ac_cv_prog_CC="$CC" # Let the user override the test.
  11364. else
  11365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11366. for as_dir in $PATH
  11367. do
  11368. IFS=$as_save_IFS
  11369. test -z "$as_dir" && as_dir=.
  11370. for ac_exec_ext in '' $ac_executable_extensions; do
  11371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11372. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11374. break 2
  11375. fi
  11376. done
  11377. done
  11378. IFS=$as_save_IFS
  11379. fi
  11380. fi
  11381. CC=$ac_cv_prog_CC
  11382. if test -n "$CC"; then
  11383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11384. $as_echo "$CC" >&6; }
  11385. else
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11387. $as_echo "no" >&6; }
  11388. fi
  11389. fi
  11390. if test -z "$ac_cv_prog_CC"; then
  11391. ac_ct_CC=$CC
  11392. # Extract the first word of "gcc", so it can be a program name with args.
  11393. set dummy gcc; ac_word=$2
  11394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11395. $as_echo_n "checking for $ac_word... " >&6; }
  11396. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11397. $as_echo_n "(cached) " >&6
  11398. else
  11399. if test -n "$ac_ct_CC"; then
  11400. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11401. else
  11402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11403. for as_dir in $PATH
  11404. do
  11405. IFS=$as_save_IFS
  11406. test -z "$as_dir" && as_dir=.
  11407. for ac_exec_ext in '' $ac_executable_extensions; do
  11408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11409. ac_cv_prog_ac_ct_CC="gcc"
  11410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11411. break 2
  11412. fi
  11413. done
  11414. done
  11415. IFS=$as_save_IFS
  11416. fi
  11417. fi
  11418. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11419. if test -n "$ac_ct_CC"; then
  11420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11421. $as_echo "$ac_ct_CC" >&6; }
  11422. else
  11423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11424. $as_echo "no" >&6; }
  11425. fi
  11426. if test "x$ac_ct_CC" = x; then
  11427. CC=""
  11428. else
  11429. case $cross_compiling:$ac_tool_warned in
  11430. yes:)
  11431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11433. ac_tool_warned=yes ;;
  11434. esac
  11435. CC=$ac_ct_CC
  11436. fi
  11437. else
  11438. CC="$ac_cv_prog_CC"
  11439. fi
  11440. if test -z "$CC"; then
  11441. if test -n "$ac_tool_prefix"; then
  11442. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11443. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11445. $as_echo_n "checking for $ac_word... " >&6; }
  11446. if ${ac_cv_prog_CC+:} false; then :
  11447. $as_echo_n "(cached) " >&6
  11448. else
  11449. if test -n "$CC"; then
  11450. ac_cv_prog_CC="$CC" # Let the user override the test.
  11451. else
  11452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11453. for as_dir in $PATH
  11454. do
  11455. IFS=$as_save_IFS
  11456. test -z "$as_dir" && as_dir=.
  11457. for ac_exec_ext in '' $ac_executable_extensions; do
  11458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11459. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11461. break 2
  11462. fi
  11463. done
  11464. done
  11465. IFS=$as_save_IFS
  11466. fi
  11467. fi
  11468. CC=$ac_cv_prog_CC
  11469. if test -n "$CC"; then
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11471. $as_echo "$CC" >&6; }
  11472. else
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11474. $as_echo "no" >&6; }
  11475. fi
  11476. fi
  11477. fi
  11478. if test -z "$CC"; then
  11479. # Extract the first word of "cc", so it can be a program name with args.
  11480. set dummy cc; ac_word=$2
  11481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11482. $as_echo_n "checking for $ac_word... " >&6; }
  11483. if ${ac_cv_prog_CC+:} false; then :
  11484. $as_echo_n "(cached) " >&6
  11485. else
  11486. if test -n "$CC"; then
  11487. ac_cv_prog_CC="$CC" # Let the user override the test.
  11488. else
  11489. ac_prog_rejected=no
  11490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11491. for as_dir in $PATH
  11492. do
  11493. IFS=$as_save_IFS
  11494. test -z "$as_dir" && as_dir=.
  11495. for ac_exec_ext in '' $ac_executable_extensions; do
  11496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11497. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11498. ac_prog_rejected=yes
  11499. continue
  11500. fi
  11501. ac_cv_prog_CC="cc"
  11502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11503. break 2
  11504. fi
  11505. done
  11506. done
  11507. IFS=$as_save_IFS
  11508. if test $ac_prog_rejected = yes; then
  11509. # We found a bogon in the path, so make sure we never use it.
  11510. set dummy $ac_cv_prog_CC
  11511. shift
  11512. if test $# != 0; then
  11513. # We chose a different compiler from the bogus one.
  11514. # However, it has the same basename, so the bogon will be chosen
  11515. # first if we set CC to just the basename; use the full file name.
  11516. shift
  11517. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11518. fi
  11519. fi
  11520. fi
  11521. fi
  11522. CC=$ac_cv_prog_CC
  11523. if test -n "$CC"; then
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11525. $as_echo "$CC" >&6; }
  11526. else
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11528. $as_echo "no" >&6; }
  11529. fi
  11530. fi
  11531. if test -z "$CC"; then
  11532. if test -n "$ac_tool_prefix"; then
  11533. for ac_prog in cl.exe
  11534. do
  11535. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11536. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11538. $as_echo_n "checking for $ac_word... " >&6; }
  11539. if ${ac_cv_prog_CC+:} false; then :
  11540. $as_echo_n "(cached) " >&6
  11541. else
  11542. if test -n "$CC"; then
  11543. ac_cv_prog_CC="$CC" # Let the user override the test.
  11544. else
  11545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11546. for as_dir in $PATH
  11547. do
  11548. IFS=$as_save_IFS
  11549. test -z "$as_dir" && as_dir=.
  11550. for ac_exec_ext in '' $ac_executable_extensions; do
  11551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11552. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11554. break 2
  11555. fi
  11556. done
  11557. done
  11558. IFS=$as_save_IFS
  11559. fi
  11560. fi
  11561. CC=$ac_cv_prog_CC
  11562. if test -n "$CC"; then
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11564. $as_echo "$CC" >&6; }
  11565. else
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11567. $as_echo "no" >&6; }
  11568. fi
  11569. test -n "$CC" && break
  11570. done
  11571. fi
  11572. if test -z "$CC"; then
  11573. ac_ct_CC=$CC
  11574. for ac_prog in cl.exe
  11575. do
  11576. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11577. set dummy $ac_prog; ac_word=$2
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11579. $as_echo_n "checking for $ac_word... " >&6; }
  11580. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  11581. $as_echo_n "(cached) " >&6
  11582. else
  11583. if test -n "$ac_ct_CC"; then
  11584. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11585. else
  11586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11587. for as_dir in $PATH
  11588. do
  11589. IFS=$as_save_IFS
  11590. test -z "$as_dir" && as_dir=.
  11591. for ac_exec_ext in '' $ac_executable_extensions; do
  11592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11593. ac_cv_prog_ac_ct_CC="$ac_prog"
  11594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11595. break 2
  11596. fi
  11597. done
  11598. done
  11599. IFS=$as_save_IFS
  11600. fi
  11601. fi
  11602. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11603. if test -n "$ac_ct_CC"; then
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11605. $as_echo "$ac_ct_CC" >&6; }
  11606. else
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11608. $as_echo "no" >&6; }
  11609. fi
  11610. test -n "$ac_ct_CC" && break
  11611. done
  11612. if test "x$ac_ct_CC" = x; then
  11613. CC=""
  11614. else
  11615. case $cross_compiling:$ac_tool_warned in
  11616. yes:)
  11617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11619. ac_tool_warned=yes ;;
  11620. esac
  11621. CC=$ac_ct_CC
  11622. fi
  11623. fi
  11624. fi
  11625. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11627. as_fn_error $? "no acceptable C compiler found in \$PATH
  11628. See \`config.log' for more details" "$LINENO" 5; }
  11629. # Provide some information about the compiler.
  11630. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11631. set X $ac_compile
  11632. ac_compiler=$2
  11633. for ac_option in --version -v -V -qversion; do
  11634. { { ac_try="$ac_compiler $ac_option >&5"
  11635. case "(($ac_try" in
  11636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11637. *) ac_try_echo=$ac_try;;
  11638. esac
  11639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11640. $as_echo "$ac_try_echo"; } >&5
  11641. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11642. ac_status=$?
  11643. if test -s conftest.err; then
  11644. sed '10a\
  11645. ... rest of stderr output deleted ...
  11646. 10q' conftest.err >conftest.er1
  11647. cat conftest.er1 >&5
  11648. fi
  11649. rm -f conftest.er1 conftest.err
  11650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11651. test $ac_status = 0; }
  11652. done
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11654. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11655. if ${ac_cv_c_compiler_gnu+:} false; then :
  11656. $as_echo_n "(cached) " >&6
  11657. else
  11658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11659. /* end confdefs.h. */
  11660. int
  11661. main ()
  11662. {
  11663. #ifndef __GNUC__
  11664. choke me
  11665. #endif
  11666. ;
  11667. return 0;
  11668. }
  11669. _ACEOF
  11670. if ac_fn_c_try_compile "$LINENO"; then :
  11671. ac_compiler_gnu=yes
  11672. else
  11673. ac_compiler_gnu=no
  11674. fi
  11675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11676. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11677. fi
  11678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11679. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11680. if test $ac_compiler_gnu = yes; then
  11681. GCC=yes
  11682. else
  11683. GCC=
  11684. fi
  11685. ac_test_CFLAGS=${CFLAGS+set}
  11686. ac_save_CFLAGS=$CFLAGS
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11688. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11689. if ${ac_cv_prog_cc_g+:} false; then :
  11690. $as_echo_n "(cached) " >&6
  11691. else
  11692. ac_save_c_werror_flag=$ac_c_werror_flag
  11693. ac_c_werror_flag=yes
  11694. ac_cv_prog_cc_g=no
  11695. CFLAGS="-g"
  11696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11697. /* end confdefs.h. */
  11698. int
  11699. main ()
  11700. {
  11701. ;
  11702. return 0;
  11703. }
  11704. _ACEOF
  11705. if ac_fn_c_try_compile "$LINENO"; then :
  11706. ac_cv_prog_cc_g=yes
  11707. else
  11708. CFLAGS=""
  11709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11710. /* end confdefs.h. */
  11711. int
  11712. main ()
  11713. {
  11714. ;
  11715. return 0;
  11716. }
  11717. _ACEOF
  11718. if ac_fn_c_try_compile "$LINENO"; then :
  11719. else
  11720. ac_c_werror_flag=$ac_save_c_werror_flag
  11721. CFLAGS="-g"
  11722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11723. /* end confdefs.h. */
  11724. int
  11725. main ()
  11726. {
  11727. ;
  11728. return 0;
  11729. }
  11730. _ACEOF
  11731. if ac_fn_c_try_compile "$LINENO"; then :
  11732. ac_cv_prog_cc_g=yes
  11733. fi
  11734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  11740. fi
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11742. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11743. if test "$ac_test_CFLAGS" = set; then
  11744. CFLAGS=$ac_save_CFLAGS
  11745. elif test $ac_cv_prog_cc_g = yes; then
  11746. if test "$GCC" = yes; then
  11747. CFLAGS="-g -O2"
  11748. else
  11749. CFLAGS="-g"
  11750. fi
  11751. else
  11752. if test "$GCC" = yes; then
  11753. CFLAGS="-O2"
  11754. else
  11755. CFLAGS=
  11756. fi
  11757. fi
  11758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11759. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11760. if ${ac_cv_prog_cc_c89+:} false; then :
  11761. $as_echo_n "(cached) " >&6
  11762. else
  11763. ac_cv_prog_cc_c89=no
  11764. ac_save_CC=$CC
  11765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11766. /* end confdefs.h. */
  11767. #include <stdarg.h>
  11768. #include <stdio.h>
  11769. struct stat;
  11770. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11771. struct buf { int x; };
  11772. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11773. static char *e (p, i)
  11774. char **p;
  11775. int i;
  11776. {
  11777. return p[i];
  11778. }
  11779. static char *f (char * (*g) (char **, int), char **p, ...)
  11780. {
  11781. char *s;
  11782. va_list v;
  11783. va_start (v,p);
  11784. s = g (p, va_arg (v,int));
  11785. va_end (v);
  11786. return s;
  11787. }
  11788. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11789. function prototypes and stuff, but not '\xHH' hex character constants.
  11790. These don't provoke an error unfortunately, instead are silently treated
  11791. as 'x'. The following induces an error, until -std is added to get
  11792. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11793. array size at least. It's necessary to write '\x00'==0 to get something
  11794. that's true only with -std. */
  11795. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11796. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11797. inside strings and character constants. */
  11798. #define FOO(x) 'x'
  11799. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11800. int test (int i, double x);
  11801. struct s1 {int (*f) (int a);};
  11802. struct s2 {int (*f) (double a);};
  11803. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11804. int argc;
  11805. char **argv;
  11806. int
  11807. main ()
  11808. {
  11809. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11810. ;
  11811. return 0;
  11812. }
  11813. _ACEOF
  11814. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11815. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11816. do
  11817. CC="$ac_save_CC $ac_arg"
  11818. if ac_fn_c_try_compile "$LINENO"; then :
  11819. ac_cv_prog_cc_c89=$ac_arg
  11820. fi
  11821. rm -f core conftest.err conftest.$ac_objext
  11822. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11823. done
  11824. rm -f conftest.$ac_ext
  11825. CC=$ac_save_CC
  11826. fi
  11827. # AC_CACHE_VAL
  11828. case "x$ac_cv_prog_cc_c89" in
  11829. x)
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11831. $as_echo "none needed" >&6; } ;;
  11832. xno)
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11834. $as_echo "unsupported" >&6; } ;;
  11835. *)
  11836. CC="$CC $ac_cv_prog_cc_c89"
  11837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11838. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11839. esac
  11840. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11841. fi
  11842. ac_ext=c
  11843. ac_cpp='$CPP $CPPFLAGS'
  11844. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11845. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11846. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11847. ac_ext=c
  11848. ac_cpp='$CPP $CPPFLAGS'
  11849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11853. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11854. if ${am_cv_prog_cc_c_o+:} false; then :
  11855. $as_echo_n "(cached) " >&6
  11856. else
  11857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11858. /* end confdefs.h. */
  11859. int
  11860. main ()
  11861. {
  11862. ;
  11863. return 0;
  11864. }
  11865. _ACEOF
  11866. # Make sure it works both with $CC and with simple cc.
  11867. # Following AC_PROG_CC_C_O, we do the test twice because some
  11868. # compilers refuse to overwrite an existing .o file with -o,
  11869. # though they will create one.
  11870. am_cv_prog_cc_c_o=yes
  11871. for am_i in 1 2; do
  11872. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11873. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11874. ac_status=$?
  11875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11876. (exit $ac_status); } \
  11877. && test -f conftest2.$ac_objext; then
  11878. : OK
  11879. else
  11880. am_cv_prog_cc_c_o=no
  11881. break
  11882. fi
  11883. done
  11884. rm -f core conftest*
  11885. unset am_i
  11886. fi
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11888. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11889. if test "$am_cv_prog_cc_c_o" != yes; then
  11890. # Losing compiler, so override with the script.
  11891. # FIXME: It is wrong to rewrite CC.
  11892. # But if we don't then we get into trouble of one sort or another.
  11893. # A longer-term fix would be to have automake use am__CC in this case,
  11894. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11895. CC="$am_aux_dir/compile $CC"
  11896. fi
  11897. ac_ext=c
  11898. ac_cpp='$CPP $CPPFLAGS'
  11899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11902. depcc="$CC" am_compiler_list=
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11904. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11905. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11906. $as_echo_n "(cached) " >&6
  11907. else
  11908. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11909. # We make a subdir and do the tests there. Otherwise we can end up
  11910. # making bogus files that we don't know about and never remove. For
  11911. # instance it was reported that on HP-UX the gcc test will end up
  11912. # making a dummy file named 'D' -- because '-MD' means "put the output
  11913. # in D".
  11914. rm -rf conftest.dir
  11915. mkdir conftest.dir
  11916. # Copy depcomp to subdir because otherwise we won't find it if we're
  11917. # using a relative directory.
  11918. cp "$am_depcomp" conftest.dir
  11919. cd conftest.dir
  11920. # We will build objects and dependencies in a subdirectory because
  11921. # it helps to detect inapplicable dependency modes. For instance
  11922. # both Tru64's cc and ICC support -MD to output dependencies as a
  11923. # side effect of compilation, but ICC will put the dependencies in
  11924. # the current directory while Tru64 will put them in the object
  11925. # directory.
  11926. mkdir sub
  11927. am_cv_CC_dependencies_compiler_type=none
  11928. if test "$am_compiler_list" = ""; then
  11929. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11930. fi
  11931. am__universal=false
  11932. case " $depcc " in #(
  11933. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11934. esac
  11935. for depmode in $am_compiler_list; do
  11936. # Setup a source with many dependencies, because some compilers
  11937. # like to wrap large dependency lists on column 80 (with \), and
  11938. # we should not choose a depcomp mode which is confused by this.
  11939. #
  11940. # We need to recreate these files for each test, as the compiler may
  11941. # overwrite some of them when testing with obscure command lines.
  11942. # This happens at least with the AIX C compiler.
  11943. : > sub/conftest.c
  11944. for i in 1 2 3 4 5 6; do
  11945. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11946. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11947. # Solaris 10 /bin/sh.
  11948. echo '/* dummy */' > sub/conftst$i.h
  11949. done
  11950. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11951. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11952. # mode. It turns out that the SunPro C++ compiler does not properly
  11953. # handle '-M -o', and we need to detect this. Also, some Intel
  11954. # versions had trouble with output in subdirs.
  11955. am__obj=sub/conftest.${OBJEXT-o}
  11956. am__minus_obj="-o $am__obj"
  11957. case $depmode in
  11958. gcc)
  11959. # This depmode causes a compiler race in universal mode.
  11960. test "$am__universal" = false || continue
  11961. ;;
  11962. nosideeffect)
  11963. # After this tag, mechanisms are not by side-effect, so they'll
  11964. # only be used when explicitly requested.
  11965. if test "x$enable_dependency_tracking" = xyes; then
  11966. continue
  11967. else
  11968. break
  11969. fi
  11970. ;;
  11971. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11972. # This compiler won't grok '-c -o', but also, the minuso test has
  11973. # not run yet. These depmodes are late enough in the game, and
  11974. # so weak that their functioning should not be impacted.
  11975. am__obj=conftest.${OBJEXT-o}
  11976. am__minus_obj=
  11977. ;;
  11978. none) break ;;
  11979. esac
  11980. if depmode=$depmode \
  11981. source=sub/conftest.c object=$am__obj \
  11982. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11983. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11984. >/dev/null 2>conftest.err &&
  11985. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11986. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11987. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11988. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11989. # icc doesn't choke on unknown options, it will just issue warnings
  11990. # or remarks (even with -Werror). So we grep stderr for any message
  11991. # that says an option was ignored or not supported.
  11992. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11993. # icc: Command line warning: ignoring option '-M'; no argument required
  11994. # The diagnosis changed in icc 8.0:
  11995. # icc: Command line remark: option '-MP' not supported
  11996. if (grep 'ignoring option' conftest.err ||
  11997. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11998. am_cv_CC_dependencies_compiler_type=$depmode
  11999. break
  12000. fi
  12001. fi
  12002. done
  12003. cd ..
  12004. rm -rf conftest.dir
  12005. else
  12006. am_cv_CC_dependencies_compiler_type=none
  12007. fi
  12008. fi
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  12010. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  12011. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12012. if
  12013. test "x$enable_dependency_tracking" != xno \
  12014. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12015. am__fastdepCC_TRUE=
  12016. am__fastdepCC_FALSE='#'
  12017. else
  12018. am__fastdepCC_TRUE='#'
  12019. am__fastdepCC_FALSE=
  12020. fi
  12021. ac_ext=cpp
  12022. ac_cpp='$CXXCPP $CPPFLAGS'
  12023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12026. if test -z "$CXX"; then
  12027. if test -n "$CCC"; then
  12028. CXX=$CCC
  12029. else
  12030. if test -n "$ac_tool_prefix"; then
  12031. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12032. do
  12033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12036. $as_echo_n "checking for $ac_word... " >&6; }
  12037. if ${ac_cv_prog_CXX+:} false; then :
  12038. $as_echo_n "(cached) " >&6
  12039. else
  12040. if test -n "$CXX"; then
  12041. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12042. else
  12043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12044. for as_dir in $PATH
  12045. do
  12046. IFS=$as_save_IFS
  12047. test -z "$as_dir" && as_dir=.
  12048. for ac_exec_ext in '' $ac_executable_extensions; do
  12049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12050. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12052. break 2
  12053. fi
  12054. done
  12055. done
  12056. IFS=$as_save_IFS
  12057. fi
  12058. fi
  12059. CXX=$ac_cv_prog_CXX
  12060. if test -n "$CXX"; then
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12062. $as_echo "$CXX" >&6; }
  12063. else
  12064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12065. $as_echo "no" >&6; }
  12066. fi
  12067. test -n "$CXX" && break
  12068. done
  12069. fi
  12070. if test -z "$CXX"; then
  12071. ac_ct_CXX=$CXX
  12072. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12073. do
  12074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12075. set dummy $ac_prog; ac_word=$2
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12077. $as_echo_n "checking for $ac_word... " >&6; }
  12078. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  12079. $as_echo_n "(cached) " >&6
  12080. else
  12081. if test -n "$ac_ct_CXX"; then
  12082. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12083. else
  12084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12085. for as_dir in $PATH
  12086. do
  12087. IFS=$as_save_IFS
  12088. test -z "$as_dir" && as_dir=.
  12089. for ac_exec_ext in '' $ac_executable_extensions; do
  12090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12091. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12093. break 2
  12094. fi
  12095. done
  12096. done
  12097. IFS=$as_save_IFS
  12098. fi
  12099. fi
  12100. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12101. if test -n "$ac_ct_CXX"; then
  12102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12103. $as_echo "$ac_ct_CXX" >&6; }
  12104. else
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12106. $as_echo "no" >&6; }
  12107. fi
  12108. test -n "$ac_ct_CXX" && break
  12109. done
  12110. if test "x$ac_ct_CXX" = x; then
  12111. CXX="g++"
  12112. else
  12113. case $cross_compiling:$ac_tool_warned in
  12114. yes:)
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12117. ac_tool_warned=yes ;;
  12118. esac
  12119. CXX=$ac_ct_CXX
  12120. fi
  12121. fi
  12122. fi
  12123. fi
  12124. # Provide some information about the compiler.
  12125. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12126. set X $ac_compile
  12127. ac_compiler=$2
  12128. for ac_option in --version -v -V -qversion; do
  12129. { { ac_try="$ac_compiler $ac_option >&5"
  12130. case "(($ac_try" in
  12131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12132. *) ac_try_echo=$ac_try;;
  12133. esac
  12134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12135. $as_echo "$ac_try_echo"; } >&5
  12136. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12137. ac_status=$?
  12138. if test -s conftest.err; then
  12139. sed '10a\
  12140. ... rest of stderr output deleted ...
  12141. 10q' conftest.err >conftest.er1
  12142. cat conftest.er1 >&5
  12143. fi
  12144. rm -f conftest.er1 conftest.err
  12145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12146. test $ac_status = 0; }
  12147. done
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  12149. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  12150. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12154. /* end confdefs.h. */
  12155. int
  12156. main ()
  12157. {
  12158. #ifndef __GNUC__
  12159. choke me
  12160. #endif
  12161. ;
  12162. return 0;
  12163. }
  12164. _ACEOF
  12165. if ac_fn_cxx_try_compile "$LINENO"; then :
  12166. ac_compiler_gnu=yes
  12167. else
  12168. ac_compiler_gnu=no
  12169. fi
  12170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12171. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12172. fi
  12173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12174. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  12175. if test $ac_compiler_gnu = yes; then
  12176. GXX=yes
  12177. else
  12178. GXX=
  12179. fi
  12180. ac_test_CXXFLAGS=${CXXFLAGS+set}
  12181. ac_save_CXXFLAGS=$CXXFLAGS
  12182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12183. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  12184. if ${ac_cv_prog_cxx_g+:} false; then :
  12185. $as_echo_n "(cached) " >&6
  12186. else
  12187. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12188. ac_cxx_werror_flag=yes
  12189. ac_cv_prog_cxx_g=no
  12190. CXXFLAGS="-g"
  12191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12192. /* end confdefs.h. */
  12193. int
  12194. main ()
  12195. {
  12196. ;
  12197. return 0;
  12198. }
  12199. _ACEOF
  12200. if ac_fn_cxx_try_compile "$LINENO"; then :
  12201. ac_cv_prog_cxx_g=yes
  12202. else
  12203. CXXFLAGS=""
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h. */
  12206. int
  12207. main ()
  12208. {
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_cxx_try_compile "$LINENO"; then :
  12214. else
  12215. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12216. CXXFLAGS="-g"
  12217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12218. /* end confdefs.h. */
  12219. int
  12220. main ()
  12221. {
  12222. ;
  12223. return 0;
  12224. }
  12225. _ACEOF
  12226. if ac_fn_cxx_try_compile "$LINENO"; then :
  12227. ac_cv_prog_cxx_g=yes
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12235. fi
  12236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12237. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  12238. if test "$ac_test_CXXFLAGS" = set; then
  12239. CXXFLAGS=$ac_save_CXXFLAGS
  12240. elif test $ac_cv_prog_cxx_g = yes; then
  12241. if test "$GXX" = yes; then
  12242. CXXFLAGS="-g -O2"
  12243. else
  12244. CXXFLAGS="-g"
  12245. fi
  12246. else
  12247. if test "$GXX" = yes; then
  12248. CXXFLAGS="-O2"
  12249. else
  12250. CXXFLAGS=
  12251. fi
  12252. fi
  12253. ac_ext=c
  12254. ac_cpp='$CPP $CPPFLAGS'
  12255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12258. depcc="$CXX" am_compiler_list=
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  12260. $as_echo_n "checking dependency style of $depcc... " >&6; }
  12261. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  12262. $as_echo_n "(cached) " >&6
  12263. else
  12264. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12265. # We make a subdir and do the tests there. Otherwise we can end up
  12266. # making bogus files that we don't know about and never remove. For
  12267. # instance it was reported that on HP-UX the gcc test will end up
  12268. # making a dummy file named 'D' -- because '-MD' means "put the output
  12269. # in D".
  12270. rm -rf conftest.dir
  12271. mkdir conftest.dir
  12272. # Copy depcomp to subdir because otherwise we won't find it if we're
  12273. # using a relative directory.
  12274. cp "$am_depcomp" conftest.dir
  12275. cd conftest.dir
  12276. # We will build objects and dependencies in a subdirectory because
  12277. # it helps to detect inapplicable dependency modes. For instance
  12278. # both Tru64's cc and ICC support -MD to output dependencies as a
  12279. # side effect of compilation, but ICC will put the dependencies in
  12280. # the current directory while Tru64 will put them in the object
  12281. # directory.
  12282. mkdir sub
  12283. am_cv_CXX_dependencies_compiler_type=none
  12284. if test "$am_compiler_list" = ""; then
  12285. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12286. fi
  12287. am__universal=false
  12288. case " $depcc " in #(
  12289. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12290. esac
  12291. for depmode in $am_compiler_list; do
  12292. # Setup a source with many dependencies, because some compilers
  12293. # like to wrap large dependency lists on column 80 (with \), and
  12294. # we should not choose a depcomp mode which is confused by this.
  12295. #
  12296. # We need to recreate these files for each test, as the compiler may
  12297. # overwrite some of them when testing with obscure command lines.
  12298. # This happens at least with the AIX C compiler.
  12299. : > sub/conftest.c
  12300. for i in 1 2 3 4 5 6; do
  12301. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12302. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  12303. # Solaris 10 /bin/sh.
  12304. echo '/* dummy */' > sub/conftst$i.h
  12305. done
  12306. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12307. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  12308. # mode. It turns out that the SunPro C++ compiler does not properly
  12309. # handle '-M -o', and we need to detect this. Also, some Intel
  12310. # versions had trouble with output in subdirs.
  12311. am__obj=sub/conftest.${OBJEXT-o}
  12312. am__minus_obj="-o $am__obj"
  12313. case $depmode in
  12314. gcc)
  12315. # This depmode causes a compiler race in universal mode.
  12316. test "$am__universal" = false || continue
  12317. ;;
  12318. nosideeffect)
  12319. # After this tag, mechanisms are not by side-effect, so they'll
  12320. # only be used when explicitly requested.
  12321. if test "x$enable_dependency_tracking" = xyes; then
  12322. continue
  12323. else
  12324. break
  12325. fi
  12326. ;;
  12327. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  12328. # This compiler won't grok '-c -o', but also, the minuso test has
  12329. # not run yet. These depmodes are late enough in the game, and
  12330. # so weak that their functioning should not be impacted.
  12331. am__obj=conftest.${OBJEXT-o}
  12332. am__minus_obj=
  12333. ;;
  12334. none) break ;;
  12335. esac
  12336. if depmode=$depmode \
  12337. source=sub/conftest.c object=$am__obj \
  12338. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12339. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12340. >/dev/null 2>conftest.err &&
  12341. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12342. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12343. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12344. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12345. # icc doesn't choke on unknown options, it will just issue warnings
  12346. # or remarks (even with -Werror). So we grep stderr for any message
  12347. # that says an option was ignored or not supported.
  12348. # When given -MP, icc 7.0 and 7.1 complain thusly:
  12349. # icc: Command line warning: ignoring option '-M'; no argument required
  12350. # The diagnosis changed in icc 8.0:
  12351. # icc: Command line remark: option '-MP' not supported
  12352. if (grep 'ignoring option' conftest.err ||
  12353. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12354. am_cv_CXX_dependencies_compiler_type=$depmode
  12355. break
  12356. fi
  12357. fi
  12358. done
  12359. cd ..
  12360. rm -rf conftest.dir
  12361. else
  12362. am_cv_CXX_dependencies_compiler_type=none
  12363. fi
  12364. fi
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  12366. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  12367. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  12368. if
  12369. test "x$enable_dependency_tracking" != xno \
  12370. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  12371. am__fastdepCXX_TRUE=
  12372. am__fastdepCXX_FALSE='#'
  12373. else
  12374. am__fastdepCXX_TRUE='#'
  12375. am__fastdepCXX_FALSE=
  12376. fi
  12377. func_stripname_cnf ()
  12378. {
  12379. case $2 in
  12380. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12381. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12382. esac
  12383. } # func_stripname_cnf
  12384. if test -n "$CXX" && ( test no != "$CXX" &&
  12385. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12386. (test g++ != "$CXX"))); then
  12387. ac_ext=cpp
  12388. ac_cpp='$CXXCPP $CPPFLAGS'
  12389. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12390. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12391. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12393. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12394. if test -z "$CXXCPP"; then
  12395. if ${ac_cv_prog_CXXCPP+:} false; then :
  12396. $as_echo_n "(cached) " >&6
  12397. else
  12398. # Double quotes because CXXCPP needs to be expanded
  12399. for CXXCPP in "$CXX -E" "/lib/cpp"
  12400. do
  12401. ac_preproc_ok=false
  12402. for ac_cxx_preproc_warn_flag in '' yes
  12403. do
  12404. # Use a header file that comes with gcc, so configuring glibc
  12405. # with a fresh cross-compiler works.
  12406. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12407. # <limits.h> exists even on freestanding compilers.
  12408. # On the NeXT, cc -E runs the code through the compiler's parser,
  12409. # not just through cpp. "Syntax error" is here to catch this case.
  12410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12411. /* end confdefs.h. */
  12412. #ifdef __STDC__
  12413. # include <limits.h>
  12414. #else
  12415. # include <assert.h>
  12416. #endif
  12417. Syntax error
  12418. _ACEOF
  12419. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12420. else
  12421. # Broken: fails on valid input.
  12422. continue
  12423. fi
  12424. rm -f conftest.err conftest.i conftest.$ac_ext
  12425. # OK, works on sane cases. Now check whether nonexistent headers
  12426. # can be detected and how.
  12427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12428. /* end confdefs.h. */
  12429. #include <ac_nonexistent.h>
  12430. _ACEOF
  12431. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12432. # Broken: success on invalid input.
  12433. continue
  12434. else
  12435. # Passes both tests.
  12436. ac_preproc_ok=:
  12437. break
  12438. fi
  12439. rm -f conftest.err conftest.i conftest.$ac_ext
  12440. done
  12441. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12442. rm -f conftest.i conftest.err conftest.$ac_ext
  12443. if $ac_preproc_ok; then :
  12444. break
  12445. fi
  12446. done
  12447. ac_cv_prog_CXXCPP=$CXXCPP
  12448. fi
  12449. CXXCPP=$ac_cv_prog_CXXCPP
  12450. else
  12451. ac_cv_prog_CXXCPP=$CXXCPP
  12452. fi
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12454. $as_echo "$CXXCPP" >&6; }
  12455. ac_preproc_ok=false
  12456. for ac_cxx_preproc_warn_flag in '' yes
  12457. do
  12458. # Use a header file that comes with gcc, so configuring glibc
  12459. # with a fresh cross-compiler works.
  12460. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12461. # <limits.h> exists even on freestanding compilers.
  12462. # On the NeXT, cc -E runs the code through the compiler's parser,
  12463. # not just through cpp. "Syntax error" is here to catch this case.
  12464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12465. /* end confdefs.h. */
  12466. #ifdef __STDC__
  12467. # include <limits.h>
  12468. #else
  12469. # include <assert.h>
  12470. #endif
  12471. Syntax error
  12472. _ACEOF
  12473. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12474. else
  12475. # Broken: fails on valid input.
  12476. continue
  12477. fi
  12478. rm -f conftest.err conftest.i conftest.$ac_ext
  12479. # OK, works on sane cases. Now check whether nonexistent headers
  12480. # can be detected and how.
  12481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12482. /* end confdefs.h. */
  12483. #include <ac_nonexistent.h>
  12484. _ACEOF
  12485. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12486. # Broken: success on invalid input.
  12487. continue
  12488. else
  12489. # Passes both tests.
  12490. ac_preproc_ok=:
  12491. break
  12492. fi
  12493. rm -f conftest.err conftest.i conftest.$ac_ext
  12494. done
  12495. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12496. rm -f conftest.i conftest.err conftest.$ac_ext
  12497. if $ac_preproc_ok; then :
  12498. else
  12499. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12501. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12502. See \`config.log' for more details" "$LINENO" 5; }
  12503. fi
  12504. ac_ext=c
  12505. ac_cpp='$CPP $CPPFLAGS'
  12506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12509. else
  12510. _lt_caught_CXX_error=yes
  12511. fi
  12512. ac_ext=cpp
  12513. ac_cpp='$CXXCPP $CPPFLAGS'
  12514. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12515. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12516. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12517. archive_cmds_need_lc_CXX=no
  12518. allow_undefined_flag_CXX=
  12519. always_export_symbols_CXX=no
  12520. archive_expsym_cmds_CXX=
  12521. compiler_needs_object_CXX=no
  12522. export_dynamic_flag_spec_CXX=
  12523. hardcode_direct_CXX=no
  12524. hardcode_direct_absolute_CXX=no
  12525. hardcode_libdir_flag_spec_CXX=
  12526. hardcode_libdir_separator_CXX=
  12527. hardcode_minus_L_CXX=no
  12528. hardcode_shlibpath_var_CXX=unsupported
  12529. hardcode_automatic_CXX=no
  12530. inherit_rpath_CXX=no
  12531. module_cmds_CXX=
  12532. module_expsym_cmds_CXX=
  12533. link_all_deplibs_CXX=unknown
  12534. old_archive_cmds_CXX=$old_archive_cmds
  12535. reload_flag_CXX=$reload_flag
  12536. reload_cmds_CXX=$reload_cmds
  12537. no_undefined_flag_CXX=
  12538. whole_archive_flag_spec_CXX=
  12539. enable_shared_with_static_runtimes_CXX=no
  12540. # Source file extension for C++ test sources.
  12541. ac_ext=cpp
  12542. # Object file extension for compiled C++ test sources.
  12543. objext=o
  12544. objext_CXX=$objext
  12545. # No sense in running all these tests if we already determined that
  12546. # the CXX compiler isn't working. Some variables (like enable_shared)
  12547. # are currently assumed to apply to all compilers on this platform,
  12548. # and will be corrupted by setting them based on a non-working compiler.
  12549. if test yes != "$_lt_caught_CXX_error"; then
  12550. # Code to be used in simple compile tests
  12551. lt_simple_compile_test_code="int some_variable = 0;"
  12552. # Code to be used in simple link tests
  12553. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12554. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12555. # If no C compiler was specified, use CC.
  12556. LTCC=${LTCC-"$CC"}
  12557. # If no C compiler flags were specified, use CFLAGS.
  12558. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12559. # Allow CC to be a program name with arguments.
  12560. compiler=$CC
  12561. # save warnings/boilerplate of simple test code
  12562. ac_outfile=conftest.$ac_objext
  12563. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12564. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12565. _lt_compiler_boilerplate=`cat conftest.err`
  12566. $RM conftest*
  12567. ac_outfile=conftest.$ac_objext
  12568. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12569. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12570. _lt_linker_boilerplate=`cat conftest.err`
  12571. $RM -r conftest*
  12572. # Allow CC to be a program name with arguments.
  12573. lt_save_CC=$CC
  12574. lt_save_CFLAGS=$CFLAGS
  12575. lt_save_LD=$LD
  12576. lt_save_GCC=$GCC
  12577. GCC=$GXX
  12578. lt_save_with_gnu_ld=$with_gnu_ld
  12579. lt_save_path_LD=$lt_cv_path_LD
  12580. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12581. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12582. else
  12583. $as_unset lt_cv_prog_gnu_ld
  12584. fi
  12585. if test -n "${lt_cv_path_LDCXX+set}"; then
  12586. lt_cv_path_LD=$lt_cv_path_LDCXX
  12587. else
  12588. $as_unset lt_cv_path_LD
  12589. fi
  12590. test -z "${LDCXX+set}" || LD=$LDCXX
  12591. CC=${CXX-"c++"}
  12592. CFLAGS=$CXXFLAGS
  12593. compiler=$CC
  12594. compiler_CXX=$CC
  12595. func_cc_basename $compiler
  12596. cc_basename=$func_cc_basename_result
  12597. if test -n "$compiler"; then
  12598. # We don't want -fno-exception when compiling C++ code, so set the
  12599. # no_builtin_flag separately
  12600. if test yes = "$GXX"; then
  12601. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12602. else
  12603. lt_prog_compiler_no_builtin_flag_CXX=
  12604. fi
  12605. if test yes = "$GXX"; then
  12606. # Set up default GNU C++ configuration
  12607. # Check whether --with-gnu-ld was given.
  12608. if test "${with_gnu_ld+set}" = set; then :
  12609. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12610. else
  12611. with_gnu_ld=no
  12612. fi
  12613. ac_prog=ld
  12614. if test yes = "$GCC"; then
  12615. # Check if gcc -print-prog-name=ld gives a path.
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12617. $as_echo_n "checking for ld used by $CC... " >&6; }
  12618. case $host in
  12619. *-*-mingw*)
  12620. # gcc leaves a trailing carriage return, which upsets mingw
  12621. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12622. *)
  12623. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12624. esac
  12625. case $ac_prog in
  12626. # Accept absolute paths.
  12627. [\\/]* | ?:[\\/]*)
  12628. re_direlt='/[^/][^/]*/\.\./'
  12629. # Canonicalize the pathname of ld
  12630. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12631. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12632. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12633. done
  12634. test -z "$LD" && LD=$ac_prog
  12635. ;;
  12636. "")
  12637. # If it fails, then pretend we aren't using GCC.
  12638. ac_prog=ld
  12639. ;;
  12640. *)
  12641. # If it is relative, then search for the first ld in PATH.
  12642. with_gnu_ld=unknown
  12643. ;;
  12644. esac
  12645. elif test yes = "$with_gnu_ld"; then
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12647. $as_echo_n "checking for GNU ld... " >&6; }
  12648. else
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12650. $as_echo_n "checking for non-GNU ld... " >&6; }
  12651. fi
  12652. if ${lt_cv_path_LD+:} false; then :
  12653. $as_echo_n "(cached) " >&6
  12654. else
  12655. if test -z "$LD"; then
  12656. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12657. for ac_dir in $PATH; do
  12658. IFS=$lt_save_ifs
  12659. test -z "$ac_dir" && ac_dir=.
  12660. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12661. lt_cv_path_LD=$ac_dir/$ac_prog
  12662. # Check to see if the program is GNU ld. I'd rather use --version,
  12663. # but apparently some variants of GNU ld only accept -v.
  12664. # Break only if it was the GNU/non-GNU ld that we prefer.
  12665. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12666. *GNU* | *'with BFD'*)
  12667. test no != "$with_gnu_ld" && break
  12668. ;;
  12669. *)
  12670. test yes != "$with_gnu_ld" && break
  12671. ;;
  12672. esac
  12673. fi
  12674. done
  12675. IFS=$lt_save_ifs
  12676. else
  12677. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12678. fi
  12679. fi
  12680. LD=$lt_cv_path_LD
  12681. if test -n "$LD"; then
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12683. $as_echo "$LD" >&6; }
  12684. else
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12686. $as_echo "no" >&6; }
  12687. fi
  12688. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12690. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12691. if ${lt_cv_prog_gnu_ld+:} false; then :
  12692. $as_echo_n "(cached) " >&6
  12693. else
  12694. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12695. case `$LD -v 2>&1 </dev/null` in
  12696. *GNU* | *'with BFD'*)
  12697. lt_cv_prog_gnu_ld=yes
  12698. ;;
  12699. *)
  12700. lt_cv_prog_gnu_ld=no
  12701. ;;
  12702. esac
  12703. fi
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12705. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12706. with_gnu_ld=$lt_cv_prog_gnu_ld
  12707. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12708. # archiving commands below assume that GNU ld is being used.
  12709. if test yes = "$with_gnu_ld"; then
  12710. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12711. 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'
  12712. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12713. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12714. # If archive_cmds runs LD, not CC, wlarc should be empty
  12715. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12716. # investigate it a little bit more. (MM)
  12717. wlarc='$wl'
  12718. # ancient GNU ld didn't support --whole-archive et. al.
  12719. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12720. $GREP 'no-whole-archive' > /dev/null; then
  12721. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12722. else
  12723. whole_archive_flag_spec_CXX=
  12724. fi
  12725. else
  12726. with_gnu_ld=no
  12727. wlarc=
  12728. # A generic and very simple default shared library creation
  12729. # command for GNU C++ for the case where it uses the native
  12730. # linker, instead of GNU ld. If possible, this setting should
  12731. # overridden to take advantage of the native linker features on
  12732. # the platform it is being used on.
  12733. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12734. fi
  12735. # Commands to make compiler produce verbose output that lists
  12736. # what "hidden" libraries, object files and flags are used when
  12737. # linking a shared library.
  12738. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12739. else
  12740. GXX=no
  12741. with_gnu_ld=no
  12742. wlarc=
  12743. fi
  12744. # PORTME: fill in a description of your system's C++ link characteristics
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12746. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12747. ld_shlibs_CXX=yes
  12748. case $host_os in
  12749. aix3*)
  12750. # FIXME: insert proper C++ library support
  12751. ld_shlibs_CXX=no
  12752. ;;
  12753. aix[4-9]*)
  12754. if test ia64 = "$host_cpu"; then
  12755. # On IA64, the linker does run time linking by default, so we don't
  12756. # have to do anything special.
  12757. aix_use_runtimelinking=no
  12758. exp_sym_flag='-Bexport'
  12759. no_entry_flag=
  12760. else
  12761. aix_use_runtimelinking=no
  12762. # Test if we are trying to use run time linking or normal
  12763. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12764. # have runtime linking enabled, and use it for executables.
  12765. # For shared libraries, we enable/disable runtime linking
  12766. # depending on the kind of the shared library created -
  12767. # when "with_aix_soname,aix_use_runtimelinking" is:
  12768. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12769. # "aix,yes" lib.so shared, rtl:yes, for executables
  12770. # lib.a static archive
  12771. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12772. # lib.a(lib.so.V) shared, rtl:no, for executables
  12773. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12774. # lib.a(lib.so.V) shared, rtl:no
  12775. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12776. # lib.a static archive
  12777. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12778. for ld_flag in $LDFLAGS; do
  12779. case $ld_flag in
  12780. *-brtl*)
  12781. aix_use_runtimelinking=yes
  12782. break
  12783. ;;
  12784. esac
  12785. done
  12786. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12787. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12788. # so we don't have lib.a shared libs to link our executables.
  12789. # We have to force runtime linking in this case.
  12790. aix_use_runtimelinking=yes
  12791. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12792. fi
  12793. ;;
  12794. esac
  12795. exp_sym_flag='-bexport'
  12796. no_entry_flag='-bnoentry'
  12797. fi
  12798. # When large executables or shared objects are built, AIX ld can
  12799. # have problems creating the table of contents. If linking a library
  12800. # or program results in "error TOC overflow" add -mminimal-toc to
  12801. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12802. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12803. archive_cmds_CXX=''
  12804. hardcode_direct_CXX=yes
  12805. hardcode_direct_absolute_CXX=yes
  12806. hardcode_libdir_separator_CXX=':'
  12807. link_all_deplibs_CXX=yes
  12808. file_list_spec_CXX='$wl-f,'
  12809. case $with_aix_soname,$aix_use_runtimelinking in
  12810. aix,*) ;; # no import file
  12811. svr4,* | *,yes) # use import file
  12812. # The Import File defines what to hardcode.
  12813. hardcode_direct_CXX=no
  12814. hardcode_direct_absolute_CXX=no
  12815. ;;
  12816. esac
  12817. if test yes = "$GXX"; then
  12818. case $host_os in aix4.[012]|aix4.[012].*)
  12819. # We only want to do this on AIX 4.2 and lower, the check
  12820. # below for broken collect2 doesn't work under 4.3+
  12821. collect2name=`$CC -print-prog-name=collect2`
  12822. if test -f "$collect2name" &&
  12823. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12824. then
  12825. # We have reworked collect2
  12826. :
  12827. else
  12828. # We have old collect2
  12829. hardcode_direct_CXX=unsupported
  12830. # It fails to find uninstalled libraries when the uninstalled
  12831. # path is not listed in the libpath. Setting hardcode_minus_L
  12832. # to unsupported forces relinking
  12833. hardcode_minus_L_CXX=yes
  12834. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12835. hardcode_libdir_separator_CXX=
  12836. fi
  12837. esac
  12838. shared_flag='-shared'
  12839. if test yes = "$aix_use_runtimelinking"; then
  12840. shared_flag=$shared_flag' $wl-G'
  12841. fi
  12842. # Need to ensure runtime linking is disabled for the traditional
  12843. # shared library, or the linker may eventually find shared libraries
  12844. # /with/ Import File - we do not want to mix them.
  12845. shared_flag_aix='-shared'
  12846. shared_flag_svr4='-shared $wl-G'
  12847. else
  12848. # not using gcc
  12849. if test ia64 = "$host_cpu"; then
  12850. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12851. # chokes on -Wl,-G. The following line is correct:
  12852. shared_flag='-G'
  12853. else
  12854. if test yes = "$aix_use_runtimelinking"; then
  12855. shared_flag='$wl-G'
  12856. else
  12857. shared_flag='$wl-bM:SRE'
  12858. fi
  12859. shared_flag_aix='$wl-bM:SRE'
  12860. shared_flag_svr4='$wl-G'
  12861. fi
  12862. fi
  12863. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12864. # It seems that -bexpall does not export symbols beginning with
  12865. # underscore (_), so it is better to generate a list of symbols to
  12866. # export.
  12867. always_export_symbols_CXX=yes
  12868. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12869. # Warning - without using the other runtime loading flags (-brtl),
  12870. # -berok will link without error, but may produce a broken library.
  12871. # The "-G" linker flag allows undefined symbols.
  12872. no_undefined_flag_CXX='-bernotok'
  12873. # Determine the default libpath from the value encoded in an empty
  12874. # executable.
  12875. if test set = "${lt_cv_aix_libpath+set}"; then
  12876. aix_libpath=$lt_cv_aix_libpath
  12877. else
  12878. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12879. $as_echo_n "(cached) " >&6
  12880. else
  12881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12882. /* end confdefs.h. */
  12883. int
  12884. main ()
  12885. {
  12886. ;
  12887. return 0;
  12888. }
  12889. _ACEOF
  12890. if ac_fn_cxx_try_link "$LINENO"; then :
  12891. lt_aix_libpath_sed='
  12892. /Import File Strings/,/^$/ {
  12893. /^0/ {
  12894. s/^0 *\([^ ]*\) *$/\1/
  12895. p
  12896. }
  12897. }'
  12898. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12899. # Check for a 64-bit object if we didn't find anything.
  12900. if test -z "$lt_cv_aix_libpath__CXX"; then
  12901. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12902. fi
  12903. fi
  12904. rm -f core conftest.err conftest.$ac_objext \
  12905. conftest$ac_exeext conftest.$ac_ext
  12906. if test -z "$lt_cv_aix_libpath__CXX"; then
  12907. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12908. fi
  12909. fi
  12910. aix_libpath=$lt_cv_aix_libpath__CXX
  12911. fi
  12912. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12913. 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
  12914. else
  12915. if test ia64 = "$host_cpu"; then
  12916. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12917. allow_undefined_flag_CXX="-z nodefs"
  12918. 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"
  12919. else
  12920. # Determine the default libpath from the value encoded in an
  12921. # empty executable.
  12922. if test set = "${lt_cv_aix_libpath+set}"; then
  12923. aix_libpath=$lt_cv_aix_libpath
  12924. else
  12925. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12926. $as_echo_n "(cached) " >&6
  12927. else
  12928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12929. /* end confdefs.h. */
  12930. int
  12931. main ()
  12932. {
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. if ac_fn_cxx_try_link "$LINENO"; then :
  12938. lt_aix_libpath_sed='
  12939. /Import File Strings/,/^$/ {
  12940. /^0/ {
  12941. s/^0 *\([^ ]*\) *$/\1/
  12942. p
  12943. }
  12944. }'
  12945. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12946. # Check for a 64-bit object if we didn't find anything.
  12947. if test -z "$lt_cv_aix_libpath__CXX"; then
  12948. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12949. fi
  12950. fi
  12951. rm -f core conftest.err conftest.$ac_objext \
  12952. conftest$ac_exeext conftest.$ac_ext
  12953. if test -z "$lt_cv_aix_libpath__CXX"; then
  12954. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12955. fi
  12956. fi
  12957. aix_libpath=$lt_cv_aix_libpath__CXX
  12958. fi
  12959. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12960. # Warning - without using the other run time loading flags,
  12961. # -berok will link without error, but may produce a broken library.
  12962. no_undefined_flag_CXX=' $wl-bernotok'
  12963. allow_undefined_flag_CXX=' $wl-berok'
  12964. if test yes = "$with_gnu_ld"; then
  12965. # We only use this code for GNU lds that support --whole-archive.
  12966. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12967. else
  12968. # Exported symbols can be pulled into shared objects from archives
  12969. whole_archive_flag_spec_CXX='$convenience'
  12970. fi
  12971. archive_cmds_need_lc_CXX=yes
  12972. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12973. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12974. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12975. if test svr4 != "$with_aix_soname"; then
  12976. # This is similar to how AIX traditionally builds its shared
  12977. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12978. 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'
  12979. fi
  12980. if test aix != "$with_aix_soname"; then
  12981. 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'
  12982. else
  12983. # used by -dlpreopen to get the symbols
  12984. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12985. fi
  12986. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12987. fi
  12988. fi
  12989. ;;
  12990. beos*)
  12991. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12992. allow_undefined_flag_CXX=unsupported
  12993. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12994. # support --undefined. This deserves some investigation. FIXME
  12995. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12996. else
  12997. ld_shlibs_CXX=no
  12998. fi
  12999. ;;
  13000. chorus*)
  13001. case $cc_basename in
  13002. *)
  13003. # FIXME: insert proper C++ library support
  13004. ld_shlibs_CXX=no
  13005. ;;
  13006. esac
  13007. ;;
  13008. cygwin* | mingw* | pw32* | cegcc*)
  13009. case $GXX,$cc_basename in
  13010. ,cl* | no,cl*)
  13011. # Native MSVC
  13012. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13013. # no search path for DLLs.
  13014. hardcode_libdir_flag_spec_CXX=' '
  13015. allow_undefined_flag_CXX=unsupported
  13016. always_export_symbols_CXX=yes
  13017. file_list_spec_CXX='@'
  13018. # Tell ltmain to make .lib files, not .a files.
  13019. libext=lib
  13020. # Tell ltmain to make .dll files, not .so files.
  13021. shrext_cmds=.dll
  13022. # FIXME: Setting linknames here is a bad hack.
  13023. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13024. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13025. cp "$export_symbols" "$output_objdir/$soname.def";
  13026. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13027. else
  13028. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13029. fi~
  13030. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13031. linknames='
  13032. # The linker will not automatically build a static lib if we build a DLL.
  13033. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13034. enable_shared_with_static_runtimes_CXX=yes
  13035. # Don't use ranlib
  13036. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13037. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13038. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13039. case $lt_outputfile in
  13040. *.exe|*.EXE) ;;
  13041. *)
  13042. lt_outputfile=$lt_outputfile.exe
  13043. lt_tool_outputfile=$lt_tool_outputfile.exe
  13044. ;;
  13045. esac~
  13046. func_to_tool_file "$lt_outputfile"~
  13047. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13048. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13049. $RM "$lt_outputfile.manifest";
  13050. fi'
  13051. ;;
  13052. *)
  13053. # g++
  13054. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13055. # as there is no search path for DLLs.
  13056. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13057. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13058. allow_undefined_flag_CXX=unsupported
  13059. always_export_symbols_CXX=no
  13060. enable_shared_with_static_runtimes_CXX=yes
  13061. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13062. 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'
  13063. # If the export-symbols file already is a .def file, use it as
  13064. # is; otherwise, prepend EXPORTS...
  13065. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13066. cp $export_symbols $output_objdir/$soname.def;
  13067. else
  13068. echo EXPORTS > $output_objdir/$soname.def;
  13069. cat $export_symbols >> $output_objdir/$soname.def;
  13070. fi~
  13071. $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'
  13072. else
  13073. ld_shlibs_CXX=no
  13074. fi
  13075. ;;
  13076. esac
  13077. ;;
  13078. darwin* | rhapsody*)
  13079. archive_cmds_need_lc_CXX=no
  13080. hardcode_direct_CXX=no
  13081. hardcode_automatic_CXX=yes
  13082. hardcode_shlibpath_var_CXX=unsupported
  13083. if test yes = "$lt_cv_ld_force_load"; then
  13084. 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\"`'
  13085. else
  13086. whole_archive_flag_spec_CXX=''
  13087. fi
  13088. link_all_deplibs_CXX=yes
  13089. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13090. case $cc_basename in
  13091. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13092. *) _lt_dar_can_shared=$GCC ;;
  13093. esac
  13094. if test yes = "$_lt_dar_can_shared"; then
  13095. output_verbose_link_cmd=func_echo_all
  13096. 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"
  13097. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13098. 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"
  13099. 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"
  13100. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13101. 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"
  13102. 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"
  13103. fi
  13104. else
  13105. ld_shlibs_CXX=no
  13106. fi
  13107. ;;
  13108. os2*)
  13109. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13110. hardcode_minus_L_CXX=yes
  13111. allow_undefined_flag_CXX=unsupported
  13112. shrext_cmds=.dll
  13113. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13114. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13115. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13116. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13117. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13118. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13119. emximp -o $lib $output_objdir/$libname.def'
  13120. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13121. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13122. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13123. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13124. prefix_cmds="$SED"~
  13125. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13126. prefix_cmds="$prefix_cmds -e 1d";
  13127. fi~
  13128. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13129. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13130. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13131. emximp -o $lib $output_objdir/$libname.def'
  13132. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13133. enable_shared_with_static_runtimes_CXX=yes
  13134. ;;
  13135. dgux*)
  13136. case $cc_basename in
  13137. ec++*)
  13138. # FIXME: insert proper C++ library support
  13139. ld_shlibs_CXX=no
  13140. ;;
  13141. ghcx*)
  13142. # Green Hills C++ Compiler
  13143. # FIXME: insert proper C++ library support
  13144. ld_shlibs_CXX=no
  13145. ;;
  13146. *)
  13147. # FIXME: insert proper C++ library support
  13148. ld_shlibs_CXX=no
  13149. ;;
  13150. esac
  13151. ;;
  13152. freebsd2.*)
  13153. # C++ shared libraries reported to be fairly broken before
  13154. # switch to ELF
  13155. ld_shlibs_CXX=no
  13156. ;;
  13157. freebsd-elf*)
  13158. archive_cmds_need_lc_CXX=no
  13159. ;;
  13160. freebsd* | dragonfly*)
  13161. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13162. # conventions
  13163. ld_shlibs_CXX=yes
  13164. ;;
  13165. haiku*)
  13166. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13167. link_all_deplibs_CXX=yes
  13168. ;;
  13169. hpux9*)
  13170. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13171. hardcode_libdir_separator_CXX=:
  13172. export_dynamic_flag_spec_CXX='$wl-E'
  13173. hardcode_direct_CXX=yes
  13174. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13175. # but as the default
  13176. # location of the library.
  13177. case $cc_basename in
  13178. CC*)
  13179. # FIXME: insert proper C++ library support
  13180. ld_shlibs_CXX=no
  13181. ;;
  13182. aCC*)
  13183. 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'
  13184. # Commands to make compiler produce verbose output that lists
  13185. # what "hidden" libraries, object files and flags are used when
  13186. # linking a shared library.
  13187. #
  13188. # There doesn't appear to be a way to prevent this compiler from
  13189. # explicitly linking system object files so we need to strip them
  13190. # from the output so that they don't get included in the library
  13191. # dependencies.
  13192. 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"'
  13193. ;;
  13194. *)
  13195. if test yes = "$GXX"; then
  13196. 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'
  13197. else
  13198. # FIXME: insert proper C++ library support
  13199. ld_shlibs_CXX=no
  13200. fi
  13201. ;;
  13202. esac
  13203. ;;
  13204. hpux10*|hpux11*)
  13205. if test no = "$with_gnu_ld"; then
  13206. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13207. hardcode_libdir_separator_CXX=:
  13208. case $host_cpu in
  13209. hppa*64*|ia64*)
  13210. ;;
  13211. *)
  13212. export_dynamic_flag_spec_CXX='$wl-E'
  13213. ;;
  13214. esac
  13215. fi
  13216. case $host_cpu in
  13217. hppa*64*|ia64*)
  13218. hardcode_direct_CXX=no
  13219. hardcode_shlibpath_var_CXX=no
  13220. ;;
  13221. *)
  13222. hardcode_direct_CXX=yes
  13223. hardcode_direct_absolute_CXX=yes
  13224. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13225. # but as the default
  13226. # location of the library.
  13227. ;;
  13228. esac
  13229. case $cc_basename in
  13230. CC*)
  13231. # FIXME: insert proper C++ library support
  13232. ld_shlibs_CXX=no
  13233. ;;
  13234. aCC*)
  13235. case $host_cpu in
  13236. hppa*64*)
  13237. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13238. ;;
  13239. ia64*)
  13240. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13241. ;;
  13242. *)
  13243. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13244. ;;
  13245. esac
  13246. # Commands to make compiler produce verbose output that lists
  13247. # what "hidden" libraries, object files and flags are used when
  13248. # linking a shared library.
  13249. #
  13250. # There doesn't appear to be a way to prevent this compiler from
  13251. # explicitly linking system object files so we need to strip them
  13252. # from the output so that they don't get included in the library
  13253. # dependencies.
  13254. 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"'
  13255. ;;
  13256. *)
  13257. if test yes = "$GXX"; then
  13258. if test no = "$with_gnu_ld"; then
  13259. case $host_cpu in
  13260. hppa*64*)
  13261. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13262. ;;
  13263. ia64*)
  13264. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13265. ;;
  13266. *)
  13267. 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'
  13268. ;;
  13269. esac
  13270. fi
  13271. else
  13272. # FIXME: insert proper C++ library support
  13273. ld_shlibs_CXX=no
  13274. fi
  13275. ;;
  13276. esac
  13277. ;;
  13278. interix[3-9]*)
  13279. hardcode_direct_CXX=no
  13280. hardcode_shlibpath_var_CXX=no
  13281. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13282. export_dynamic_flag_spec_CXX='$wl-E'
  13283. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13284. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13285. # default) and relocated if they conflict, which is a slow very memory
  13286. # consuming and fragmenting process. To avoid this, we pick a random,
  13287. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13288. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13289. 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'
  13290. 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'
  13291. ;;
  13292. irix5* | irix6*)
  13293. case $cc_basename in
  13294. CC*)
  13295. # SGI C++
  13296. 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'
  13297. # Archives containing C++ object files must be created using
  13298. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13299. # necessary to make sure instantiated templates are included
  13300. # in the archive.
  13301. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13302. ;;
  13303. *)
  13304. if test yes = "$GXX"; then
  13305. if test no = "$with_gnu_ld"; then
  13306. 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'
  13307. else
  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"` -o $lib'
  13309. fi
  13310. fi
  13311. link_all_deplibs_CXX=yes
  13312. ;;
  13313. esac
  13314. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13315. hardcode_libdir_separator_CXX=:
  13316. inherit_rpath_CXX=yes
  13317. ;;
  13318. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13319. case $cc_basename in
  13320. KCC*)
  13321. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13322. # KCC will only create a shared library if the output file
  13323. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13324. # to its proper name (with version) after linking.
  13325. 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'
  13326. 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'
  13327. # Commands to make compiler produce verbose output that lists
  13328. # what "hidden" libraries, object files and flags are used when
  13329. # linking a shared library.
  13330. #
  13331. # There doesn't appear to be a way to prevent this compiler from
  13332. # explicitly linking system object files so we need to strip them
  13333. # from the output so that they don't get included in the library
  13334. # dependencies.
  13335. 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"'
  13336. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13337. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13338. # Archives containing C++ object files must be created using
  13339. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13340. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13341. ;;
  13342. icpc* | ecpc* )
  13343. # Intel C++
  13344. with_gnu_ld=yes
  13345. # version 8.0 and above of icpc choke on multiply defined symbols
  13346. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13347. # earlier do not add the objects themselves.
  13348. case `$CC -V 2>&1` in
  13349. *"Version 7."*)
  13350. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13351. 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'
  13352. ;;
  13353. *) # Version 8.0 or newer
  13354. tmp_idyn=
  13355. case $host_cpu in
  13356. ia64*) tmp_idyn=' -i_dynamic';;
  13357. esac
  13358. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13359. 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'
  13360. ;;
  13361. esac
  13362. archive_cmds_need_lc_CXX=no
  13363. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13364. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13365. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13366. ;;
  13367. pgCC* | pgcpp*)
  13368. # Portland Group C++ compiler
  13369. case `$CC -V` in
  13370. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13371. prelink_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13374. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13375. old_archive_cmds_CXX='tpldir=Template.dir~
  13376. rm -rf $tpldir~
  13377. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13378. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13379. $RANLIB $oldlib'
  13380. archive_cmds_CXX='tpldir=Template.dir~
  13381. rm -rf $tpldir~
  13382. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13383. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13384. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13385. rm -rf $tpldir~
  13386. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13387. $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'
  13388. ;;
  13389. *) # Version 6 and above use weak symbols
  13390. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13391. 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'
  13392. ;;
  13393. esac
  13394. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13395. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13396. 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'
  13397. ;;
  13398. cxx*)
  13399. # Compaq C++
  13400. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13401. 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'
  13402. runpath_var=LD_RUN_PATH
  13403. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13404. hardcode_libdir_separator_CXX=:
  13405. # Commands to make compiler produce verbose output that lists
  13406. # what "hidden" libraries, object files and flags are used when
  13407. # linking a shared library.
  13408. #
  13409. # There doesn't appear to be a way to prevent this compiler from
  13410. # explicitly linking system object files so we need to strip them
  13411. # from the output so that they don't get included in the library
  13412. # dependencies.
  13413. 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'
  13414. ;;
  13415. xl* | mpixl* | bgxl*)
  13416. # IBM XL 8.0 on PPC, with GNU ld
  13417. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13418. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13419. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13420. if test yes = "$supports_anon_versioning"; then
  13421. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13422. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13423. echo "local: *; };" >> $output_objdir/$libname.ver~
  13424. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13425. fi
  13426. ;;
  13427. *)
  13428. case `$CC -V 2>&1 | sed 5q` in
  13429. *Sun\ C*)
  13430. # Sun C++ 5.9
  13431. no_undefined_flag_CXX=' -zdefs'
  13432. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13433. 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'
  13434. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13435. 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'
  13436. compiler_needs_object_CXX=yes
  13437. # Not sure whether something based on
  13438. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13439. # would be better.
  13440. output_verbose_link_cmd='func_echo_all'
  13441. # Archives containing C++ object files must be created using
  13442. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13443. # necessary to make sure instantiated templates are included
  13444. # in the archive.
  13445. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13446. ;;
  13447. esac
  13448. ;;
  13449. esac
  13450. ;;
  13451. lynxos*)
  13452. # FIXME: insert proper C++ library support
  13453. ld_shlibs_CXX=no
  13454. ;;
  13455. m88k*)
  13456. # FIXME: insert proper C++ library support
  13457. ld_shlibs_CXX=no
  13458. ;;
  13459. mvs*)
  13460. case $cc_basename in
  13461. cxx*)
  13462. # FIXME: insert proper C++ library support
  13463. ld_shlibs_CXX=no
  13464. ;;
  13465. *)
  13466. # FIXME: insert proper C++ library support
  13467. ld_shlibs_CXX=no
  13468. ;;
  13469. esac
  13470. ;;
  13471. netbsd*)
  13472. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13473. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13474. wlarc=
  13475. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13476. hardcode_direct_CXX=yes
  13477. hardcode_shlibpath_var_CXX=no
  13478. fi
  13479. # Workaround some broken pre-1.5 toolchains
  13480. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13481. ;;
  13482. *nto* | *qnx*)
  13483. ld_shlibs_CXX=yes
  13484. ;;
  13485. openbsd* | bitrig*)
  13486. if test -f /usr/libexec/ld.so; then
  13487. hardcode_direct_CXX=yes
  13488. hardcode_shlibpath_var_CXX=no
  13489. hardcode_direct_absolute_CXX=yes
  13490. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13491. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13492. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13493. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13494. export_dynamic_flag_spec_CXX='$wl-E'
  13495. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13496. fi
  13497. output_verbose_link_cmd=func_echo_all
  13498. else
  13499. ld_shlibs_CXX=no
  13500. fi
  13501. ;;
  13502. osf3* | osf4* | osf5*)
  13503. case $cc_basename in
  13504. KCC*)
  13505. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13506. # KCC will only create a shared library if the output file
  13507. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13508. # to its proper name (with version) after linking.
  13509. 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'
  13510. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13511. hardcode_libdir_separator_CXX=:
  13512. # Archives containing C++ object files must be created using
  13513. # the KAI C++ compiler.
  13514. case $host in
  13515. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13516. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13517. esac
  13518. ;;
  13519. RCC*)
  13520. # Rational C++ 2.4.1
  13521. # FIXME: insert proper C++ library support
  13522. ld_shlibs_CXX=no
  13523. ;;
  13524. cxx*)
  13525. case $host in
  13526. osf3*)
  13527. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13528. 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'
  13529. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13530. ;;
  13531. *)
  13532. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13533. 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'
  13534. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13535. echo "-hidden">> $lib.exp~
  13536. $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~
  13537. $RM $lib.exp'
  13538. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13539. ;;
  13540. esac
  13541. hardcode_libdir_separator_CXX=:
  13542. # Commands to make compiler produce verbose output that lists
  13543. # what "hidden" libraries, object files and flags are used when
  13544. # linking a shared library.
  13545. #
  13546. # There doesn't appear to be a way to prevent this compiler from
  13547. # explicitly linking system object files so we need to strip them
  13548. # from the output so that they don't get included in the library
  13549. # dependencies.
  13550. 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"'
  13551. ;;
  13552. *)
  13553. if test yes,no = "$GXX,$with_gnu_ld"; then
  13554. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13555. case $host in
  13556. osf3*)
  13557. 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'
  13558. ;;
  13559. *)
  13560. 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'
  13561. ;;
  13562. esac
  13563. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13564. hardcode_libdir_separator_CXX=:
  13565. # Commands to make compiler produce verbose output that lists
  13566. # what "hidden" libraries, object files and flags are used when
  13567. # linking a shared library.
  13568. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13569. else
  13570. # FIXME: insert proper C++ library support
  13571. ld_shlibs_CXX=no
  13572. fi
  13573. ;;
  13574. esac
  13575. ;;
  13576. psos*)
  13577. # FIXME: insert proper C++ library support
  13578. ld_shlibs_CXX=no
  13579. ;;
  13580. sunos4*)
  13581. case $cc_basename in
  13582. CC*)
  13583. # Sun C++ 4.x
  13584. # FIXME: insert proper C++ library support
  13585. ld_shlibs_CXX=no
  13586. ;;
  13587. lcc*)
  13588. # Lucid
  13589. # FIXME: insert proper C++ library support
  13590. ld_shlibs_CXX=no
  13591. ;;
  13592. *)
  13593. # FIXME: insert proper C++ library support
  13594. ld_shlibs_CXX=no
  13595. ;;
  13596. esac
  13597. ;;
  13598. solaris*)
  13599. case $cc_basename in
  13600. CC* | sunCC*)
  13601. # Sun C++ 4.2, 5.x and Centerline C++
  13602. archive_cmds_need_lc_CXX=yes
  13603. no_undefined_flag_CXX=' -zdefs'
  13604. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13605. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13606. $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'
  13607. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13608. hardcode_shlibpath_var_CXX=no
  13609. case $host_os in
  13610. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13611. *)
  13612. # The compiler driver will combine and reorder linker options,
  13613. # but understands '-z linker_flag'.
  13614. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13615. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13616. ;;
  13617. esac
  13618. link_all_deplibs_CXX=yes
  13619. output_verbose_link_cmd='func_echo_all'
  13620. # Archives containing C++ object files must be created using
  13621. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13622. # necessary to make sure instantiated templates are included
  13623. # in the archive.
  13624. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13625. ;;
  13626. gcx*)
  13627. # Green Hills C++ Compiler
  13628. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13629. # The C++ compiler must be used to create the archive.
  13630. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13631. ;;
  13632. *)
  13633. # GNU C++ compiler with Solaris linker
  13634. if test yes,no = "$GXX,$with_gnu_ld"; then
  13635. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13636. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13637. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13638. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13639. $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'
  13640. # Commands to make compiler produce verbose output that lists
  13641. # what "hidden" libraries, object files and flags are used when
  13642. # linking a shared library.
  13643. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13644. else
  13645. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13646. # platform.
  13647. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13648. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13649. $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'
  13650. # Commands to make compiler produce verbose output that lists
  13651. # what "hidden" libraries, object files and flags are used when
  13652. # linking a shared library.
  13653. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13654. fi
  13655. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13656. case $host_os in
  13657. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13658. *)
  13659. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13660. ;;
  13661. esac
  13662. fi
  13663. ;;
  13664. esac
  13665. ;;
  13666. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13667. no_undefined_flag_CXX='$wl-z,text'
  13668. archive_cmds_need_lc_CXX=no
  13669. hardcode_shlibpath_var_CXX=no
  13670. runpath_var='LD_RUN_PATH'
  13671. case $cc_basename in
  13672. CC*)
  13673. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13674. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13675. ;;
  13676. *)
  13677. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13678. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13679. ;;
  13680. esac
  13681. ;;
  13682. sysv5* | sco3.2v5* | sco5v6*)
  13683. # Note: We CANNOT use -z defs as we might desire, because we do not
  13684. # link with -lc, and that would cause any symbols used from libc to
  13685. # always be unresolved, which means just about no library would
  13686. # ever link correctly. If we're not using GNU ld we use -z text
  13687. # though, which does catch some bad symbols but isn't as heavy-handed
  13688. # as -z defs.
  13689. no_undefined_flag_CXX='$wl-z,text'
  13690. allow_undefined_flag_CXX='$wl-z,nodefs'
  13691. archive_cmds_need_lc_CXX=no
  13692. hardcode_shlibpath_var_CXX=no
  13693. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13694. hardcode_libdir_separator_CXX=':'
  13695. link_all_deplibs_CXX=yes
  13696. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13697. runpath_var='LD_RUN_PATH'
  13698. case $cc_basename in
  13699. CC*)
  13700. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13701. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13702. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13703. '"$old_archive_cmds_CXX"
  13704. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13705. '"$reload_cmds_CXX"
  13706. ;;
  13707. *)
  13708. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13709. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13710. ;;
  13711. esac
  13712. ;;
  13713. tandem*)
  13714. case $cc_basename in
  13715. NCC*)
  13716. # NonStop-UX NCC 3.20
  13717. # FIXME: insert proper C++ library support
  13718. ld_shlibs_CXX=no
  13719. ;;
  13720. *)
  13721. # FIXME: insert proper C++ library support
  13722. ld_shlibs_CXX=no
  13723. ;;
  13724. esac
  13725. ;;
  13726. vxworks*)
  13727. # FIXME: insert proper C++ library support
  13728. ld_shlibs_CXX=no
  13729. ;;
  13730. *)
  13731. # FIXME: insert proper C++ library support
  13732. ld_shlibs_CXX=no
  13733. ;;
  13734. esac
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13736. $as_echo "$ld_shlibs_CXX" >&6; }
  13737. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13738. GCC_CXX=$GXX
  13739. LD_CXX=$LD
  13740. ## CAVEAT EMPTOR:
  13741. ## There is no encapsulation within the following macros, do not change
  13742. ## the running order or otherwise move them around unless you know exactly
  13743. ## what you are doing...
  13744. # Dependencies to place before and after the object being linked:
  13745. predep_objects_CXX=
  13746. postdep_objects_CXX=
  13747. predeps_CXX=
  13748. postdeps_CXX=
  13749. compiler_lib_search_path_CXX=
  13750. cat > conftest.$ac_ext <<_LT_EOF
  13751. class Foo
  13752. {
  13753. public:
  13754. Foo (void) { a = 0; }
  13755. private:
  13756. int a;
  13757. };
  13758. _LT_EOF
  13759. _lt_libdeps_save_CFLAGS=$CFLAGS
  13760. case "$CC $CFLAGS " in #(
  13761. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13762. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13763. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13764. esac
  13765. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13766. (eval $ac_compile) 2>&5
  13767. ac_status=$?
  13768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13769. test $ac_status = 0; }; then
  13770. # Parse the compiler output and extract the necessary
  13771. # objects, libraries and library flags.
  13772. # Sentinel used to keep track of whether or not we are before
  13773. # the conftest object file.
  13774. pre_test_object_deps_done=no
  13775. for p in `eval "$output_verbose_link_cmd"`; do
  13776. case $prev$p in
  13777. -L* | -R* | -l*)
  13778. # Some compilers place space between "-{L,R}" and the path.
  13779. # Remove the space.
  13780. if test x-L = "$p" ||
  13781. test x-R = "$p"; then
  13782. prev=$p
  13783. continue
  13784. fi
  13785. # Expand the sysroot to ease extracting the directories later.
  13786. if test -z "$prev"; then
  13787. case $p in
  13788. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13789. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13790. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13791. esac
  13792. fi
  13793. case $p in
  13794. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13795. esac
  13796. if test no = "$pre_test_object_deps_done"; then
  13797. case $prev in
  13798. -L | -R)
  13799. # Internal compiler library paths should come after those
  13800. # provided the user. The postdeps already come after the
  13801. # user supplied libs so there is no need to process them.
  13802. if test -z "$compiler_lib_search_path_CXX"; then
  13803. compiler_lib_search_path_CXX=$prev$p
  13804. else
  13805. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13806. fi
  13807. ;;
  13808. # The "-l" case would never come before the object being
  13809. # linked, so don't bother handling this case.
  13810. esac
  13811. else
  13812. if test -z "$postdeps_CXX"; then
  13813. postdeps_CXX=$prev$p
  13814. else
  13815. postdeps_CXX="${postdeps_CXX} $prev$p"
  13816. fi
  13817. fi
  13818. prev=
  13819. ;;
  13820. *.lto.$objext) ;; # Ignore GCC LTO objects
  13821. *.$objext)
  13822. # This assumes that the test object file only shows up
  13823. # once in the compiler output.
  13824. if test "$p" = "conftest.$objext"; then
  13825. pre_test_object_deps_done=yes
  13826. continue
  13827. fi
  13828. if test no = "$pre_test_object_deps_done"; then
  13829. if test -z "$predep_objects_CXX"; then
  13830. predep_objects_CXX=$p
  13831. else
  13832. predep_objects_CXX="$predep_objects_CXX $p"
  13833. fi
  13834. else
  13835. if test -z "$postdep_objects_CXX"; then
  13836. postdep_objects_CXX=$p
  13837. else
  13838. postdep_objects_CXX="$postdep_objects_CXX $p"
  13839. fi
  13840. fi
  13841. ;;
  13842. *) ;; # Ignore the rest.
  13843. esac
  13844. done
  13845. # Clean up.
  13846. rm -f a.out a.exe
  13847. else
  13848. echo "libtool.m4: error: problem compiling CXX test program"
  13849. fi
  13850. $RM -f confest.$objext
  13851. CFLAGS=$_lt_libdeps_save_CFLAGS
  13852. # PORTME: override above test on systems where it is broken
  13853. case $host_os in
  13854. interix[3-9]*)
  13855. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13856. # hack all around it, let's just trust "g++" to DTRT.
  13857. predep_objects_CXX=
  13858. postdep_objects_CXX=
  13859. postdeps_CXX=
  13860. ;;
  13861. esac
  13862. case " $postdeps_CXX " in
  13863. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13864. esac
  13865. compiler_lib_search_dirs_CXX=
  13866. if test -n "${compiler_lib_search_path_CXX}"; then
  13867. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13868. fi
  13869. lt_prog_compiler_wl_CXX=
  13870. lt_prog_compiler_pic_CXX=
  13871. lt_prog_compiler_static_CXX=
  13872. # C++ specific cases for pic, static, wl, etc.
  13873. if test yes = "$GXX"; then
  13874. lt_prog_compiler_wl_CXX='-Wl,'
  13875. lt_prog_compiler_static_CXX='-static'
  13876. case $host_os in
  13877. aix*)
  13878. # All AIX code is PIC.
  13879. if test ia64 = "$host_cpu"; then
  13880. # AIX 5 now supports IA64 processor
  13881. lt_prog_compiler_static_CXX='-Bstatic'
  13882. fi
  13883. lt_prog_compiler_pic_CXX='-fPIC'
  13884. ;;
  13885. amigaos*)
  13886. case $host_cpu in
  13887. powerpc)
  13888. # see comment about AmigaOS4 .so support
  13889. lt_prog_compiler_pic_CXX='-fPIC'
  13890. ;;
  13891. m68k)
  13892. # FIXME: we need at least 68020 code to build shared libraries, but
  13893. # adding the '-m68020' flag to GCC prevents building anything better,
  13894. # like '-m68040'.
  13895. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13896. ;;
  13897. esac
  13898. ;;
  13899. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13900. # PIC is the default for these OSes.
  13901. ;;
  13902. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13903. # This hack is so that the source file can tell whether it is being
  13904. # built for inclusion in a dll (and should export symbols for example).
  13905. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13906. # (--disable-auto-import) libraries
  13907. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13908. case $host_os in
  13909. os2*)
  13910. lt_prog_compiler_static_CXX='$wl-static'
  13911. ;;
  13912. esac
  13913. ;;
  13914. darwin* | rhapsody*)
  13915. # PIC is the default on this platform
  13916. # Common symbols not allowed in MH_DYLIB files
  13917. lt_prog_compiler_pic_CXX='-fno-common'
  13918. ;;
  13919. *djgpp*)
  13920. # DJGPP does not support shared libraries at all
  13921. lt_prog_compiler_pic_CXX=
  13922. ;;
  13923. haiku*)
  13924. # PIC is the default for Haiku.
  13925. # The "-static" flag exists, but is broken.
  13926. lt_prog_compiler_static_CXX=
  13927. ;;
  13928. interix[3-9]*)
  13929. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13930. # Instead, we relocate shared libraries at runtime.
  13931. ;;
  13932. sysv4*MP*)
  13933. if test -d /usr/nec; then
  13934. lt_prog_compiler_pic_CXX=-Kconform_pic
  13935. fi
  13936. ;;
  13937. hpux*)
  13938. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13939. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13940. # sets the default TLS model and affects inlining.
  13941. case $host_cpu in
  13942. hppa*64*)
  13943. ;;
  13944. *)
  13945. lt_prog_compiler_pic_CXX='-fPIC'
  13946. ;;
  13947. esac
  13948. ;;
  13949. *qnx* | *nto*)
  13950. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13951. # it will coredump.
  13952. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13953. ;;
  13954. *)
  13955. lt_prog_compiler_pic_CXX='-fPIC'
  13956. ;;
  13957. esac
  13958. else
  13959. case $host_os in
  13960. aix[4-9]*)
  13961. # All AIX code is PIC.
  13962. if test ia64 = "$host_cpu"; then
  13963. # AIX 5 now supports IA64 processor
  13964. lt_prog_compiler_static_CXX='-Bstatic'
  13965. else
  13966. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13967. fi
  13968. ;;
  13969. chorus*)
  13970. case $cc_basename in
  13971. cxch68*)
  13972. # Green Hills C++ Compiler
  13973. # _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"
  13974. ;;
  13975. esac
  13976. ;;
  13977. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13978. # This hack is so that the source file can tell whether it is being
  13979. # built for inclusion in a dll (and should export symbols for example).
  13980. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13981. ;;
  13982. dgux*)
  13983. case $cc_basename in
  13984. ec++*)
  13985. lt_prog_compiler_pic_CXX='-KPIC'
  13986. ;;
  13987. ghcx*)
  13988. # Green Hills C++ Compiler
  13989. lt_prog_compiler_pic_CXX='-pic'
  13990. ;;
  13991. *)
  13992. ;;
  13993. esac
  13994. ;;
  13995. freebsd* | dragonfly*)
  13996. # FreeBSD uses GNU C++
  13997. ;;
  13998. hpux9* | hpux10* | hpux11*)
  13999. case $cc_basename in
  14000. CC*)
  14001. lt_prog_compiler_wl_CXX='-Wl,'
  14002. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14003. if test ia64 != "$host_cpu"; then
  14004. lt_prog_compiler_pic_CXX='+Z'
  14005. fi
  14006. ;;
  14007. aCC*)
  14008. lt_prog_compiler_wl_CXX='-Wl,'
  14009. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14010. case $host_cpu in
  14011. hppa*64*|ia64*)
  14012. # +Z the default
  14013. ;;
  14014. *)
  14015. lt_prog_compiler_pic_CXX='+Z'
  14016. ;;
  14017. esac
  14018. ;;
  14019. *)
  14020. ;;
  14021. esac
  14022. ;;
  14023. interix*)
  14024. # This is c89, which is MS Visual C++ (no shared libs)
  14025. # Anyone wants to do a port?
  14026. ;;
  14027. irix5* | irix6* | nonstopux*)
  14028. case $cc_basename in
  14029. CC*)
  14030. lt_prog_compiler_wl_CXX='-Wl,'
  14031. lt_prog_compiler_static_CXX='-non_shared'
  14032. # CC pic flag -KPIC is the default.
  14033. ;;
  14034. *)
  14035. ;;
  14036. esac
  14037. ;;
  14038. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14039. case $cc_basename in
  14040. KCC*)
  14041. # KAI C++ Compiler
  14042. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14043. lt_prog_compiler_pic_CXX='-fPIC'
  14044. ;;
  14045. ecpc* )
  14046. # old Intel C++ for x86_64, which still supported -KPIC.
  14047. lt_prog_compiler_wl_CXX='-Wl,'
  14048. lt_prog_compiler_pic_CXX='-KPIC'
  14049. lt_prog_compiler_static_CXX='-static'
  14050. ;;
  14051. icpc* )
  14052. # Intel C++, used to be incompatible with GCC.
  14053. # ICC 10 doesn't accept -KPIC any more.
  14054. lt_prog_compiler_wl_CXX='-Wl,'
  14055. lt_prog_compiler_pic_CXX='-fPIC'
  14056. lt_prog_compiler_static_CXX='-static'
  14057. ;;
  14058. pgCC* | pgcpp*)
  14059. # Portland Group C++ compiler
  14060. lt_prog_compiler_wl_CXX='-Wl,'
  14061. lt_prog_compiler_pic_CXX='-fpic'
  14062. lt_prog_compiler_static_CXX='-Bstatic'
  14063. ;;
  14064. cxx*)
  14065. # Compaq C++
  14066. # Make sure the PIC flag is empty. It appears that all Alpha
  14067. # Linux and Compaq Tru64 Unix objects are PIC.
  14068. lt_prog_compiler_pic_CXX=
  14069. lt_prog_compiler_static_CXX='-non_shared'
  14070. ;;
  14071. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14072. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14073. lt_prog_compiler_wl_CXX='-Wl,'
  14074. lt_prog_compiler_pic_CXX='-qpic'
  14075. lt_prog_compiler_static_CXX='-qstaticlink'
  14076. ;;
  14077. *)
  14078. case `$CC -V 2>&1 | sed 5q` in
  14079. *Sun\ C*)
  14080. # Sun C++ 5.9
  14081. lt_prog_compiler_pic_CXX='-KPIC'
  14082. lt_prog_compiler_static_CXX='-Bstatic'
  14083. lt_prog_compiler_wl_CXX='-Qoption ld '
  14084. ;;
  14085. esac
  14086. ;;
  14087. esac
  14088. ;;
  14089. lynxos*)
  14090. ;;
  14091. m88k*)
  14092. ;;
  14093. mvs*)
  14094. case $cc_basename in
  14095. cxx*)
  14096. lt_prog_compiler_pic_CXX='-W c,exportall'
  14097. ;;
  14098. *)
  14099. ;;
  14100. esac
  14101. ;;
  14102. netbsd* | netbsdelf*-gnu)
  14103. ;;
  14104. *qnx* | *nto*)
  14105. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14106. # it will coredump.
  14107. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14108. ;;
  14109. osf3* | osf4* | osf5*)
  14110. case $cc_basename in
  14111. KCC*)
  14112. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14113. ;;
  14114. RCC*)
  14115. # Rational C++ 2.4.1
  14116. lt_prog_compiler_pic_CXX='-pic'
  14117. ;;
  14118. cxx*)
  14119. # Digital/Compaq C++
  14120. lt_prog_compiler_wl_CXX='-Wl,'
  14121. # Make sure the PIC flag is empty. It appears that all Alpha
  14122. # Linux and Compaq Tru64 Unix objects are PIC.
  14123. lt_prog_compiler_pic_CXX=
  14124. lt_prog_compiler_static_CXX='-non_shared'
  14125. ;;
  14126. *)
  14127. ;;
  14128. esac
  14129. ;;
  14130. psos*)
  14131. ;;
  14132. solaris*)
  14133. case $cc_basename in
  14134. CC* | sunCC*)
  14135. # Sun C++ 4.2, 5.x and Centerline C++
  14136. lt_prog_compiler_pic_CXX='-KPIC'
  14137. lt_prog_compiler_static_CXX='-Bstatic'
  14138. lt_prog_compiler_wl_CXX='-Qoption ld '
  14139. ;;
  14140. gcx*)
  14141. # Green Hills C++ Compiler
  14142. lt_prog_compiler_pic_CXX='-PIC'
  14143. ;;
  14144. *)
  14145. ;;
  14146. esac
  14147. ;;
  14148. sunos4*)
  14149. case $cc_basename in
  14150. CC*)
  14151. # Sun C++ 4.x
  14152. lt_prog_compiler_pic_CXX='-pic'
  14153. lt_prog_compiler_static_CXX='-Bstatic'
  14154. ;;
  14155. lcc*)
  14156. # Lucid
  14157. lt_prog_compiler_pic_CXX='-pic'
  14158. ;;
  14159. *)
  14160. ;;
  14161. esac
  14162. ;;
  14163. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14164. case $cc_basename in
  14165. CC*)
  14166. lt_prog_compiler_wl_CXX='-Wl,'
  14167. lt_prog_compiler_pic_CXX='-KPIC'
  14168. lt_prog_compiler_static_CXX='-Bstatic'
  14169. ;;
  14170. esac
  14171. ;;
  14172. tandem*)
  14173. case $cc_basename in
  14174. NCC*)
  14175. # NonStop-UX NCC 3.20
  14176. lt_prog_compiler_pic_CXX='-KPIC'
  14177. ;;
  14178. *)
  14179. ;;
  14180. esac
  14181. ;;
  14182. vxworks*)
  14183. ;;
  14184. *)
  14185. lt_prog_compiler_can_build_shared_CXX=no
  14186. ;;
  14187. esac
  14188. fi
  14189. case $host_os in
  14190. # For platforms that do not support PIC, -DPIC is meaningless:
  14191. *djgpp*)
  14192. lt_prog_compiler_pic_CXX=
  14193. ;;
  14194. *)
  14195. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14196. ;;
  14197. esac
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14199. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14200. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14201. $as_echo_n "(cached) " >&6
  14202. else
  14203. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14204. fi
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14206. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14207. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14208. #
  14209. # Check to make sure the PIC flag actually works.
  14210. #
  14211. if test -n "$lt_prog_compiler_pic_CXX"; then
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14213. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14214. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14215. $as_echo_n "(cached) " >&6
  14216. else
  14217. lt_cv_prog_compiler_pic_works_CXX=no
  14218. ac_outfile=conftest.$ac_objext
  14219. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14220. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14221. # Insert the option either (1) after the last *FLAGS variable, or
  14222. # (2) before a word containing "conftest.", or (3) at the end.
  14223. # Note that $ac_compile itself does not contain backslashes and begins
  14224. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14225. # The option is referenced via a variable to avoid confusing sed.
  14226. lt_compile=`echo "$ac_compile" | $SED \
  14227. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14228. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14229. -e 's:$: $lt_compiler_flag:'`
  14230. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14231. (eval "$lt_compile" 2>conftest.err)
  14232. ac_status=$?
  14233. cat conftest.err >&5
  14234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14235. if (exit $ac_status) && test -s "$ac_outfile"; then
  14236. # The compiler can only warn and ignore the option if not recognized
  14237. # So say no if there are warnings other than the usual output.
  14238. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14239. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14240. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14241. lt_cv_prog_compiler_pic_works_CXX=yes
  14242. fi
  14243. fi
  14244. $RM conftest*
  14245. fi
  14246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14247. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14248. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14249. case $lt_prog_compiler_pic_CXX in
  14250. "" | " "*) ;;
  14251. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14252. esac
  14253. else
  14254. lt_prog_compiler_pic_CXX=
  14255. lt_prog_compiler_can_build_shared_CXX=no
  14256. fi
  14257. fi
  14258. #
  14259. # Check to make sure the static flag actually works.
  14260. #
  14261. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14263. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14264. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14265. $as_echo_n "(cached) " >&6
  14266. else
  14267. lt_cv_prog_compiler_static_works_CXX=no
  14268. save_LDFLAGS=$LDFLAGS
  14269. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14270. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14271. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14272. # The linker can only warn and ignore the option if not recognized
  14273. # So say no if there are warnings
  14274. if test -s conftest.err; then
  14275. # Append any errors to the config.log.
  14276. cat conftest.err 1>&5
  14277. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14278. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14279. if diff conftest.exp conftest.er2 >/dev/null; then
  14280. lt_cv_prog_compiler_static_works_CXX=yes
  14281. fi
  14282. else
  14283. lt_cv_prog_compiler_static_works_CXX=yes
  14284. fi
  14285. fi
  14286. $RM -r conftest*
  14287. LDFLAGS=$save_LDFLAGS
  14288. fi
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14290. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14291. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14292. :
  14293. else
  14294. lt_prog_compiler_static_CXX=
  14295. fi
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14297. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14298. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14299. $as_echo_n "(cached) " >&6
  14300. else
  14301. lt_cv_prog_compiler_c_o_CXX=no
  14302. $RM -r conftest 2>/dev/null
  14303. mkdir conftest
  14304. cd conftest
  14305. mkdir out
  14306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14307. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14308. # Insert the option either (1) after the last *FLAGS variable, or
  14309. # (2) before a word containing "conftest.", or (3) at the end.
  14310. # Note that $ac_compile itself does not contain backslashes and begins
  14311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14312. lt_compile=`echo "$ac_compile" | $SED \
  14313. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14314. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14315. -e 's:$: $lt_compiler_flag:'`
  14316. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14317. (eval "$lt_compile" 2>out/conftest.err)
  14318. ac_status=$?
  14319. cat out/conftest.err >&5
  14320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14321. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14322. then
  14323. # The compiler can only warn and ignore the option if not recognized
  14324. # So say no if there are warnings
  14325. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14326. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14327. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14328. lt_cv_prog_compiler_c_o_CXX=yes
  14329. fi
  14330. fi
  14331. chmod u+w . 2>&5
  14332. $RM conftest*
  14333. # SGI C++ compiler will create directory out/ii_files/ for
  14334. # template instantiation
  14335. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14336. $RM out/* && rmdir out
  14337. cd ..
  14338. $RM -r conftest
  14339. $RM conftest*
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14342. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14344. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14345. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14346. $as_echo_n "(cached) " >&6
  14347. else
  14348. lt_cv_prog_compiler_c_o_CXX=no
  14349. $RM -r conftest 2>/dev/null
  14350. mkdir conftest
  14351. cd conftest
  14352. mkdir out
  14353. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14354. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14355. # Insert the option either (1) after the last *FLAGS variable, or
  14356. # (2) before a word containing "conftest.", or (3) at the end.
  14357. # Note that $ac_compile itself does not contain backslashes and begins
  14358. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14359. lt_compile=`echo "$ac_compile" | $SED \
  14360. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14361. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14362. -e 's:$: $lt_compiler_flag:'`
  14363. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14364. (eval "$lt_compile" 2>out/conftest.err)
  14365. ac_status=$?
  14366. cat out/conftest.err >&5
  14367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14368. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14369. then
  14370. # The compiler can only warn and ignore the option if not recognized
  14371. # So say no if there are warnings
  14372. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14373. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14374. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14375. lt_cv_prog_compiler_c_o_CXX=yes
  14376. fi
  14377. fi
  14378. chmod u+w . 2>&5
  14379. $RM conftest*
  14380. # SGI C++ compiler will create directory out/ii_files/ for
  14381. # template instantiation
  14382. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14383. $RM out/* && rmdir out
  14384. cd ..
  14385. $RM -r conftest
  14386. $RM conftest*
  14387. fi
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14389. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14390. hard_links=nottested
  14391. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14392. # do not overwrite the value of need_locks provided by the user
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14394. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14395. hard_links=yes
  14396. $RM conftest*
  14397. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14398. touch conftest.a
  14399. ln conftest.a conftest.b 2>&5 || hard_links=no
  14400. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14402. $as_echo "$hard_links" >&6; }
  14403. if test no = "$hard_links"; then
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14405. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14406. need_locks=warn
  14407. fi
  14408. else
  14409. need_locks=no
  14410. fi
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14412. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14413. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14414. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14415. case $host_os in
  14416. aix[4-9]*)
  14417. # If we're using GNU nm, then we don't want the "-C" option.
  14418. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14419. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14420. # weak defined symbols like other global defined symbols, whereas
  14421. # GNU nm marks them as "W".
  14422. # While the 'weak' keyword is ignored in the Export File, we need
  14423. # it in the Import File for the 'aix-soname' feature, so we have
  14424. # to replace the "-B" option with "-P" for AIX nm.
  14425. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14426. 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'
  14427. else
  14428. 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'
  14429. fi
  14430. ;;
  14431. pw32*)
  14432. export_symbols_cmds_CXX=$ltdll_cmds
  14433. ;;
  14434. cygwin* | mingw* | cegcc*)
  14435. case $cc_basename in
  14436. cl*)
  14437. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14438. ;;
  14439. *)
  14440. 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'
  14441. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14442. ;;
  14443. esac
  14444. ;;
  14445. linux* | k*bsd*-gnu | gnu*)
  14446. link_all_deplibs_CXX=no
  14447. ;;
  14448. *)
  14449. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14450. ;;
  14451. esac
  14452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14453. $as_echo "$ld_shlibs_CXX" >&6; }
  14454. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14455. with_gnu_ld_CXX=$with_gnu_ld
  14456. #
  14457. # Do we need to explicitly link libc?
  14458. #
  14459. case "x$archive_cmds_need_lc_CXX" in
  14460. x|xyes)
  14461. # Assume -lc should be added
  14462. archive_cmds_need_lc_CXX=yes
  14463. if test yes,yes = "$GCC,$enable_shared"; then
  14464. case $archive_cmds_CXX in
  14465. *'~'*)
  14466. # FIXME: we may have to deal with multi-command sequences.
  14467. ;;
  14468. '$CC '*)
  14469. # Test whether the compiler implicitly links with -lc since on some
  14470. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14471. # to ld, don't add -lc before -lgcc.
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14473. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14474. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14475. $as_echo_n "(cached) " >&6
  14476. else
  14477. $RM conftest*
  14478. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14480. (eval $ac_compile) 2>&5
  14481. ac_status=$?
  14482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14483. test $ac_status = 0; } 2>conftest.err; then
  14484. soname=conftest
  14485. lib=conftest
  14486. libobjs=conftest.$ac_objext
  14487. deplibs=
  14488. wl=$lt_prog_compiler_wl_CXX
  14489. pic_flag=$lt_prog_compiler_pic_CXX
  14490. compiler_flags=-v
  14491. linker_flags=-v
  14492. verstring=
  14493. output_objdir=.
  14494. libname=conftest
  14495. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14496. allow_undefined_flag_CXX=
  14497. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14498. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14499. ac_status=$?
  14500. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14501. test $ac_status = 0; }
  14502. then
  14503. lt_cv_archive_cmds_need_lc_CXX=no
  14504. else
  14505. lt_cv_archive_cmds_need_lc_CXX=yes
  14506. fi
  14507. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14508. else
  14509. cat conftest.err 1>&5
  14510. fi
  14511. $RM conftest*
  14512. fi
  14513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14514. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14515. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14516. ;;
  14517. esac
  14518. fi
  14519. ;;
  14520. esac
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14522. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14523. library_names_spec=
  14524. libname_spec='lib$name'
  14525. soname_spec=
  14526. shrext_cmds=.so
  14527. postinstall_cmds=
  14528. postuninstall_cmds=
  14529. finish_cmds=
  14530. finish_eval=
  14531. shlibpath_var=
  14532. shlibpath_overrides_runpath=unknown
  14533. version_type=none
  14534. dynamic_linker="$host_os ld.so"
  14535. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14536. need_lib_prefix=unknown
  14537. hardcode_into_libs=no
  14538. # when you set need_version to no, make sure it does not cause -set_version
  14539. # flags to be left without arguments
  14540. need_version=unknown
  14541. case $host_os in
  14542. aix3*)
  14543. version_type=linux # correct to gnu/linux during the next big refactor
  14544. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14545. shlibpath_var=LIBPATH
  14546. # AIX 3 has no versioning support, so we append a major version to the name.
  14547. soname_spec='$libname$release$shared_ext$major'
  14548. ;;
  14549. aix[4-9]*)
  14550. version_type=linux # correct to gnu/linux during the next big refactor
  14551. need_lib_prefix=no
  14552. need_version=no
  14553. hardcode_into_libs=yes
  14554. if test ia64 = "$host_cpu"; then
  14555. # AIX 5 supports IA64
  14556. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14557. shlibpath_var=LD_LIBRARY_PATH
  14558. else
  14559. # With GCC up to 2.95.x, collect2 would create an import file
  14560. # for dependence libraries. The import file would start with
  14561. # the line '#! .'. This would cause the generated library to
  14562. # depend on '.', always an invalid library. This was fixed in
  14563. # development snapshots of GCC prior to 3.0.
  14564. case $host_os in
  14565. aix4 | aix4.[01] | aix4.[01].*)
  14566. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14567. echo ' yes '
  14568. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14569. :
  14570. else
  14571. can_build_shared=no
  14572. fi
  14573. ;;
  14574. esac
  14575. # Using Import Files as archive members, it is possible to support
  14576. # filename-based versioning of shared library archives on AIX. While
  14577. # this would work for both with and without runtime linking, it will
  14578. # prevent static linking of such archives. So we do filename-based
  14579. # shared library versioning with .so extension only, which is used
  14580. # when both runtime linking and shared linking is enabled.
  14581. # Unfortunately, runtime linking may impact performance, so we do
  14582. # not want this to be the default eventually. Also, we use the
  14583. # versioned .so libs for executables only if there is the -brtl
  14584. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14585. # To allow for filename-based versioning support, we need to create
  14586. # libNAME.so.V as an archive file, containing:
  14587. # *) an Import File, referring to the versioned filename of the
  14588. # archive as well as the shared archive member, telling the
  14589. # bitwidth (32 or 64) of that shared object, and providing the
  14590. # list of exported symbols of that shared object, eventually
  14591. # decorated with the 'weak' keyword
  14592. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14593. # it being seen by the linker.
  14594. # At run time we better use the real file rather than another symlink,
  14595. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14596. case $with_aix_soname,$aix_use_runtimelinking in
  14597. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14598. # soname into executable. Probably we can add versioning support to
  14599. # collect2, so additional links can be useful in future.
  14600. aix,yes) # traditional libtool
  14601. dynamic_linker='AIX unversionable lib.so'
  14602. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14603. # instead of lib<name>.a to let people know that these are not
  14604. # typical AIX shared libraries.
  14605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14606. ;;
  14607. aix,no) # traditional AIX only
  14608. dynamic_linker='AIX lib.a(lib.so.V)'
  14609. # We preserve .a as extension for shared libraries through AIX4.2
  14610. # and later when we are not doing run time linking.
  14611. library_names_spec='$libname$release.a $libname.a'
  14612. soname_spec='$libname$release$shared_ext$major'
  14613. ;;
  14614. svr4,*) # full svr4 only
  14615. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14616. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14617. # We do not specify a path in Import Files, so LIBPATH fires.
  14618. shlibpath_overrides_runpath=yes
  14619. ;;
  14620. *,yes) # both, prefer svr4
  14621. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14622. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14623. # unpreferred sharedlib libNAME.a needs extra handling
  14624. 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"'
  14625. 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"'
  14626. # We do not specify a path in Import Files, so LIBPATH fires.
  14627. shlibpath_overrides_runpath=yes
  14628. ;;
  14629. *,no) # both, prefer aix
  14630. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14631. library_names_spec='$libname$release.a $libname.a'
  14632. soname_spec='$libname$release$shared_ext$major'
  14633. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14634. 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)'
  14635. 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"'
  14636. ;;
  14637. esac
  14638. shlibpath_var=LIBPATH
  14639. fi
  14640. ;;
  14641. amigaos*)
  14642. case $host_cpu in
  14643. powerpc)
  14644. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14645. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14646. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14647. ;;
  14648. m68k)
  14649. library_names_spec='$libname.ixlibrary $libname.a'
  14650. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14651. 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'
  14652. ;;
  14653. esac
  14654. ;;
  14655. beos*)
  14656. library_names_spec='$libname$shared_ext'
  14657. dynamic_linker="$host_os ld.so"
  14658. shlibpath_var=LIBRARY_PATH
  14659. ;;
  14660. bsdi[45]*)
  14661. version_type=linux # correct to gnu/linux during the next big refactor
  14662. need_version=no
  14663. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14664. soname_spec='$libname$release$shared_ext$major'
  14665. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14666. shlibpath_var=LD_LIBRARY_PATH
  14667. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14668. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14669. # the default ld.so.conf also contains /usr/contrib/lib and
  14670. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14671. # libtool to hard-code these into programs
  14672. ;;
  14673. cygwin* | mingw* | pw32* | cegcc*)
  14674. version_type=windows
  14675. shrext_cmds=.dll
  14676. need_version=no
  14677. need_lib_prefix=no
  14678. case $GCC,$cc_basename in
  14679. yes,*)
  14680. # gcc
  14681. library_names_spec='$libname.dll.a'
  14682. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14683. postinstall_cmds='base_file=`basename \$file`~
  14684. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14685. dldir=$destdir/`dirname \$dlpath`~
  14686. test -d \$dldir || mkdir -p \$dldir~
  14687. $install_prog $dir/$dlname \$dldir/$dlname~
  14688. chmod a+x \$dldir/$dlname~
  14689. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14690. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14691. fi'
  14692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14693. dlpath=$dir/\$dldll~
  14694. $RM \$dlpath'
  14695. shlibpath_overrides_runpath=yes
  14696. case $host_os in
  14697. cygwin*)
  14698. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14699. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14700. ;;
  14701. mingw* | cegcc*)
  14702. # MinGW DLLs use traditional 'lib' prefix
  14703. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14704. ;;
  14705. pw32*)
  14706. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14707. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14708. ;;
  14709. esac
  14710. dynamic_linker='Win32 ld.exe'
  14711. ;;
  14712. *,cl*)
  14713. # Native MSVC
  14714. libname_spec='$name'
  14715. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14716. library_names_spec='$libname.dll.lib'
  14717. case $build_os in
  14718. mingw*)
  14719. sys_lib_search_path_spec=
  14720. lt_save_ifs=$IFS
  14721. IFS=';'
  14722. for lt_path in $LIB
  14723. do
  14724. IFS=$lt_save_ifs
  14725. # Let DOS variable expansion print the short 8.3 style file name.
  14726. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14727. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14728. done
  14729. IFS=$lt_save_ifs
  14730. # Convert to MSYS style.
  14731. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14732. ;;
  14733. cygwin*)
  14734. # Convert to unix form, then to dos form, then back to unix form
  14735. # but this time dos style (no spaces!) so that the unix form looks
  14736. # like /cygdrive/c/PROGRA~1:/cygdr...
  14737. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14738. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14739. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14740. ;;
  14741. *)
  14742. sys_lib_search_path_spec=$LIB
  14743. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14744. # It is most probably a Windows format PATH.
  14745. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14746. else
  14747. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14748. fi
  14749. # FIXME: find the short name or the path components, as spaces are
  14750. # common. (e.g. "Program Files" -> "PROGRA~1")
  14751. ;;
  14752. esac
  14753. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14754. postinstall_cmds='base_file=`basename \$file`~
  14755. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14756. dldir=$destdir/`dirname \$dlpath`~
  14757. test -d \$dldir || mkdir -p \$dldir~
  14758. $install_prog $dir/$dlname \$dldir/$dlname'
  14759. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14760. dlpath=$dir/\$dldll~
  14761. $RM \$dlpath'
  14762. shlibpath_overrides_runpath=yes
  14763. dynamic_linker='Win32 link.exe'
  14764. ;;
  14765. *)
  14766. # Assume MSVC wrapper
  14767. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14768. dynamic_linker='Win32 ld.exe'
  14769. ;;
  14770. esac
  14771. # FIXME: first we should search . and the directory the executable is in
  14772. shlibpath_var=PATH
  14773. ;;
  14774. darwin* | rhapsody*)
  14775. dynamic_linker="$host_os dyld"
  14776. version_type=darwin
  14777. need_lib_prefix=no
  14778. need_version=no
  14779. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14780. soname_spec='$libname$release$major$shared_ext'
  14781. shlibpath_overrides_runpath=yes
  14782. shlibpath_var=DYLD_LIBRARY_PATH
  14783. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14784. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14785. ;;
  14786. dgux*)
  14787. version_type=linux # correct to gnu/linux during the next big refactor
  14788. need_lib_prefix=no
  14789. need_version=no
  14790. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14791. soname_spec='$libname$release$shared_ext$major'
  14792. shlibpath_var=LD_LIBRARY_PATH
  14793. ;;
  14794. freebsd* | dragonfly*)
  14795. # DragonFly does not have aout. When/if they implement a new
  14796. # versioning mechanism, adjust this.
  14797. if test -x /usr/bin/objformat; then
  14798. objformat=`/usr/bin/objformat`
  14799. else
  14800. case $host_os in
  14801. freebsd[23].*) objformat=aout ;;
  14802. *) objformat=elf ;;
  14803. esac
  14804. fi
  14805. version_type=freebsd-$objformat
  14806. case $version_type in
  14807. freebsd-elf*)
  14808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14809. soname_spec='$libname$release$shared_ext$major'
  14810. need_version=no
  14811. need_lib_prefix=no
  14812. ;;
  14813. freebsd-*)
  14814. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14815. need_version=yes
  14816. ;;
  14817. esac
  14818. shlibpath_var=LD_LIBRARY_PATH
  14819. case $host_os in
  14820. freebsd2.*)
  14821. shlibpath_overrides_runpath=yes
  14822. ;;
  14823. freebsd3.[01]* | freebsdelf3.[01]*)
  14824. shlibpath_overrides_runpath=yes
  14825. hardcode_into_libs=yes
  14826. ;;
  14827. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14828. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14829. shlibpath_overrides_runpath=no
  14830. hardcode_into_libs=yes
  14831. ;;
  14832. *) # from 4.6 on, and DragonFly
  14833. shlibpath_overrides_runpath=yes
  14834. hardcode_into_libs=yes
  14835. ;;
  14836. esac
  14837. ;;
  14838. haiku*)
  14839. version_type=linux # correct to gnu/linux during the next big refactor
  14840. need_lib_prefix=no
  14841. need_version=no
  14842. dynamic_linker="$host_os runtime_loader"
  14843. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14844. soname_spec='$libname$release$shared_ext$major'
  14845. shlibpath_var=LIBRARY_PATH
  14846. shlibpath_overrides_runpath=no
  14847. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14848. hardcode_into_libs=yes
  14849. ;;
  14850. hpux9* | hpux10* | hpux11*)
  14851. # Give a soname corresponding to the major version so that dld.sl refuses to
  14852. # link against other versions.
  14853. version_type=sunos
  14854. need_lib_prefix=no
  14855. need_version=no
  14856. case $host_cpu in
  14857. ia64*)
  14858. shrext_cmds='.so'
  14859. hardcode_into_libs=yes
  14860. dynamic_linker="$host_os dld.so"
  14861. shlibpath_var=LD_LIBRARY_PATH
  14862. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14863. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14864. soname_spec='$libname$release$shared_ext$major'
  14865. if test 32 = "$HPUX_IA64_MODE"; then
  14866. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14867. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14868. else
  14869. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14870. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14871. fi
  14872. ;;
  14873. hppa*64*)
  14874. shrext_cmds='.sl'
  14875. hardcode_into_libs=yes
  14876. dynamic_linker="$host_os dld.sl"
  14877. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14879. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14880. soname_spec='$libname$release$shared_ext$major'
  14881. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14882. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14883. ;;
  14884. *)
  14885. shrext_cmds='.sl'
  14886. dynamic_linker="$host_os dld.sl"
  14887. shlibpath_var=SHLIB_PATH
  14888. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14889. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14890. soname_spec='$libname$release$shared_ext$major'
  14891. ;;
  14892. esac
  14893. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14894. postinstall_cmds='chmod 555 $lib'
  14895. # or fails outright, so override atomically:
  14896. install_override_mode=555
  14897. ;;
  14898. interix[3-9]*)
  14899. version_type=linux # correct to gnu/linux during the next big refactor
  14900. need_lib_prefix=no
  14901. need_version=no
  14902. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14903. soname_spec='$libname$release$shared_ext$major'
  14904. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14905. shlibpath_var=LD_LIBRARY_PATH
  14906. shlibpath_overrides_runpath=no
  14907. hardcode_into_libs=yes
  14908. ;;
  14909. irix5* | irix6* | nonstopux*)
  14910. case $host_os in
  14911. nonstopux*) version_type=nonstopux ;;
  14912. *)
  14913. if test yes = "$lt_cv_prog_gnu_ld"; then
  14914. version_type=linux # correct to gnu/linux during the next big refactor
  14915. else
  14916. version_type=irix
  14917. fi ;;
  14918. esac
  14919. need_lib_prefix=no
  14920. need_version=no
  14921. soname_spec='$libname$release$shared_ext$major'
  14922. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14923. case $host_os in
  14924. irix5* | nonstopux*)
  14925. libsuff= shlibsuff=
  14926. ;;
  14927. *)
  14928. case $LD in # libtool.m4 will add one of these switches to LD
  14929. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14930. libsuff= shlibsuff= libmagic=32-bit;;
  14931. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14932. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14933. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14934. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14935. *) libsuff= shlibsuff= libmagic=never-match;;
  14936. esac
  14937. ;;
  14938. esac
  14939. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14940. shlibpath_overrides_runpath=no
  14941. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14942. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14943. hardcode_into_libs=yes
  14944. ;;
  14945. # No shared lib support for Linux oldld, aout, or coff.
  14946. linux*oldld* | linux*aout* | linux*coff*)
  14947. dynamic_linker=no
  14948. ;;
  14949. linux*android*)
  14950. version_type=none # Android doesn't support versioned libraries.
  14951. need_lib_prefix=no
  14952. need_version=no
  14953. library_names_spec='$libname$release$shared_ext'
  14954. soname_spec='$libname$release$shared_ext'
  14955. finish_cmds=
  14956. shlibpath_var=LD_LIBRARY_PATH
  14957. shlibpath_overrides_runpath=yes
  14958. # This implies no fast_install, which is unacceptable.
  14959. # Some rework will be needed to allow for fast_install
  14960. # before this can be enabled.
  14961. hardcode_into_libs=yes
  14962. dynamic_linker='Android linker'
  14963. # Don't embed -rpath directories since the linker doesn't support them.
  14964. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14965. ;;
  14966. # This must be glibc/ELF.
  14967. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14968. version_type=linux # correct to gnu/linux during the next big refactor
  14969. need_lib_prefix=no
  14970. need_version=no
  14971. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14972. soname_spec='$libname$release$shared_ext$major'
  14973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14974. shlibpath_var=LD_LIBRARY_PATH
  14975. shlibpath_overrides_runpath=no
  14976. # Some binutils ld are patched to set DT_RUNPATH
  14977. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14978. $as_echo_n "(cached) " >&6
  14979. else
  14980. lt_cv_shlibpath_overrides_runpath=no
  14981. save_LDFLAGS=$LDFLAGS
  14982. save_libdir=$libdir
  14983. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14984. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14986. /* end confdefs.h. */
  14987. int
  14988. main ()
  14989. {
  14990. ;
  14991. return 0;
  14992. }
  14993. _ACEOF
  14994. if ac_fn_cxx_try_link "$LINENO"; then :
  14995. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14996. lt_cv_shlibpath_overrides_runpath=yes
  14997. fi
  14998. fi
  14999. rm -f core conftest.err conftest.$ac_objext \
  15000. conftest$ac_exeext conftest.$ac_ext
  15001. LDFLAGS=$save_LDFLAGS
  15002. libdir=$save_libdir
  15003. fi
  15004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15005. # This implies no fast_install, which is unacceptable.
  15006. # Some rework will be needed to allow for fast_install
  15007. # before this can be enabled.
  15008. hardcode_into_libs=yes
  15009. # Ideally, we could use ldconfig to report *all* directores which are
  15010. # searched for libraries, however this is still not possible. Aside from not
  15011. # being certain /sbin/ldconfig is available, command
  15012. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15013. # even though it is searched at run-time. Try to do the best guess by
  15014. # appending ld.so.conf contents (and includes) to the search path.
  15015. if test -f /etc/ld.so.conf; then
  15016. 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' ' '`
  15017. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15018. fi
  15019. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15020. # powerpc, because MkLinux only supported shared libraries with the
  15021. # GNU dynamic linker. Since this was broken with cross compilers,
  15022. # most powerpc-linux boxes support dynamic linking these days and
  15023. # people can always --disable-shared, the test was removed, and we
  15024. # assume the GNU/Linux dynamic linker is in use.
  15025. dynamic_linker='GNU/Linux ld.so'
  15026. ;;
  15027. netbsdelf*-gnu)
  15028. version_type=linux
  15029. need_lib_prefix=no
  15030. need_version=no
  15031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15032. soname_spec='${libname}${release}${shared_ext}$major'
  15033. shlibpath_var=LD_LIBRARY_PATH
  15034. shlibpath_overrides_runpath=no
  15035. hardcode_into_libs=yes
  15036. dynamic_linker='NetBSD ld.elf_so'
  15037. ;;
  15038. netbsd*)
  15039. version_type=sunos
  15040. need_lib_prefix=no
  15041. need_version=no
  15042. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15043. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15044. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15045. dynamic_linker='NetBSD (a.out) ld.so'
  15046. else
  15047. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15048. soname_spec='$libname$release$shared_ext$major'
  15049. dynamic_linker='NetBSD ld.elf_so'
  15050. fi
  15051. shlibpath_var=LD_LIBRARY_PATH
  15052. shlibpath_overrides_runpath=yes
  15053. hardcode_into_libs=yes
  15054. ;;
  15055. newsos6)
  15056. version_type=linux # correct to gnu/linux during the next big refactor
  15057. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=yes
  15060. ;;
  15061. *nto* | *qnx*)
  15062. version_type=qnx
  15063. need_lib_prefix=no
  15064. need_version=no
  15065. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15066. soname_spec='$libname$release$shared_ext$major'
  15067. shlibpath_var=LD_LIBRARY_PATH
  15068. shlibpath_overrides_runpath=no
  15069. hardcode_into_libs=yes
  15070. dynamic_linker='ldqnx.so'
  15071. ;;
  15072. openbsd* | bitrig*)
  15073. version_type=sunos
  15074. sys_lib_dlsearch_path_spec=/usr/lib
  15075. need_lib_prefix=no
  15076. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15077. need_version=no
  15078. else
  15079. need_version=yes
  15080. fi
  15081. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15082. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15083. shlibpath_var=LD_LIBRARY_PATH
  15084. shlibpath_overrides_runpath=yes
  15085. ;;
  15086. os2*)
  15087. libname_spec='$name'
  15088. version_type=windows
  15089. shrext_cmds=.dll
  15090. need_version=no
  15091. need_lib_prefix=no
  15092. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15093. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15094. v=$($ECHO $release$versuffix | tr -d .-);
  15095. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15096. $ECHO $n$v`$shared_ext'
  15097. library_names_spec='${libname}_dll.$libext'
  15098. dynamic_linker='OS/2 ld.exe'
  15099. shlibpath_var=BEGINLIBPATH
  15100. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15101. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15102. postinstall_cmds='base_file=`basename \$file`~
  15103. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15104. dldir=$destdir/`dirname \$dlpath`~
  15105. test -d \$dldir || mkdir -p \$dldir~
  15106. $install_prog $dir/$dlname \$dldir/$dlname~
  15107. chmod a+x \$dldir/$dlname~
  15108. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15109. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15110. fi'
  15111. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15112. dlpath=$dir/\$dldll~
  15113. $RM \$dlpath'
  15114. ;;
  15115. osf3* | osf4* | osf5*)
  15116. version_type=osf
  15117. need_lib_prefix=no
  15118. need_version=no
  15119. soname_spec='$libname$release$shared_ext$major'
  15120. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15121. shlibpath_var=LD_LIBRARY_PATH
  15122. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15123. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15124. ;;
  15125. rdos*)
  15126. dynamic_linker=no
  15127. ;;
  15128. solaris*)
  15129. version_type=linux # correct to gnu/linux during the next big refactor
  15130. need_lib_prefix=no
  15131. need_version=no
  15132. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15133. soname_spec='$libname$release$shared_ext$major'
  15134. shlibpath_var=LD_LIBRARY_PATH
  15135. shlibpath_overrides_runpath=yes
  15136. hardcode_into_libs=yes
  15137. # ldd complains unless libraries are executable
  15138. postinstall_cmds='chmod +x $lib'
  15139. ;;
  15140. sunos4*)
  15141. version_type=sunos
  15142. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15143. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15144. shlibpath_var=LD_LIBRARY_PATH
  15145. shlibpath_overrides_runpath=yes
  15146. if test yes = "$with_gnu_ld"; then
  15147. need_lib_prefix=no
  15148. fi
  15149. need_version=yes
  15150. ;;
  15151. sysv4 | sysv4.3*)
  15152. version_type=linux # correct to gnu/linux during the next big refactor
  15153. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15154. soname_spec='$libname$release$shared_ext$major'
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. case $host_vendor in
  15157. sni)
  15158. shlibpath_overrides_runpath=no
  15159. need_lib_prefix=no
  15160. runpath_var=LD_RUN_PATH
  15161. ;;
  15162. siemens)
  15163. need_lib_prefix=no
  15164. ;;
  15165. motorola)
  15166. need_lib_prefix=no
  15167. need_version=no
  15168. shlibpath_overrides_runpath=no
  15169. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15170. ;;
  15171. esac
  15172. ;;
  15173. sysv4*MP*)
  15174. if test -d /usr/nec; then
  15175. version_type=linux # correct to gnu/linux during the next big refactor
  15176. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15177. soname_spec='$libname$shared_ext.$major'
  15178. shlibpath_var=LD_LIBRARY_PATH
  15179. fi
  15180. ;;
  15181. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15182. version_type=sco
  15183. need_lib_prefix=no
  15184. need_version=no
  15185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15186. soname_spec='$libname$release$shared_ext$major'
  15187. shlibpath_var=LD_LIBRARY_PATH
  15188. shlibpath_overrides_runpath=yes
  15189. hardcode_into_libs=yes
  15190. if test yes = "$with_gnu_ld"; then
  15191. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15192. else
  15193. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15194. case $host_os in
  15195. sco3.2v5*)
  15196. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15197. ;;
  15198. esac
  15199. fi
  15200. sys_lib_dlsearch_path_spec='/usr/lib'
  15201. ;;
  15202. tpf*)
  15203. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15204. version_type=linux # correct to gnu/linux during the next big refactor
  15205. need_lib_prefix=no
  15206. need_version=no
  15207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15208. shlibpath_var=LD_LIBRARY_PATH
  15209. shlibpath_overrides_runpath=no
  15210. hardcode_into_libs=yes
  15211. ;;
  15212. uts4*)
  15213. version_type=linux # correct to gnu/linux during the next big refactor
  15214. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15215. soname_spec='$libname$release$shared_ext$major'
  15216. shlibpath_var=LD_LIBRARY_PATH
  15217. ;;
  15218. *)
  15219. dynamic_linker=no
  15220. ;;
  15221. esac
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15223. $as_echo "$dynamic_linker" >&6; }
  15224. test no = "$dynamic_linker" && can_build_shared=no
  15225. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15226. if test yes = "$GCC"; then
  15227. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15228. fi
  15229. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15230. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15231. fi
  15232. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15233. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15234. fi
  15235. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15236. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15237. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15238. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15239. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15240. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15242. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15243. hardcode_action_CXX=
  15244. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15245. test -n "$runpath_var_CXX" ||
  15246. test yes = "$hardcode_automatic_CXX"; then
  15247. # We can hardcode non-existent directories.
  15248. if test no != "$hardcode_direct_CXX" &&
  15249. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15250. # have to relink, otherwise we might link with an installed library
  15251. # when we should be linking with a yet-to-be-installed one
  15252. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15253. test no != "$hardcode_minus_L_CXX"; then
  15254. # Linking always hardcodes the temporary library directory.
  15255. hardcode_action_CXX=relink
  15256. else
  15257. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15258. hardcode_action_CXX=immediate
  15259. fi
  15260. else
  15261. # We cannot hardcode anything, or else we can only hardcode existing
  15262. # directories.
  15263. hardcode_action_CXX=unsupported
  15264. fi
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15266. $as_echo "$hardcode_action_CXX" >&6; }
  15267. if test relink = "$hardcode_action_CXX" ||
  15268. test yes = "$inherit_rpath_CXX"; then
  15269. # Fast installation is not supported
  15270. enable_fast_install=no
  15271. elif test yes = "$shlibpath_overrides_runpath" ||
  15272. test no = "$enable_shared"; then
  15273. # Fast installation is not necessary
  15274. enable_fast_install=needless
  15275. fi
  15276. fi # test -n "$compiler"
  15277. CC=$lt_save_CC
  15278. CFLAGS=$lt_save_CFLAGS
  15279. LDCXX=$LD
  15280. LD=$lt_save_LD
  15281. GCC=$lt_save_GCC
  15282. with_gnu_ld=$lt_save_with_gnu_ld
  15283. lt_cv_path_LDCXX=$lt_cv_path_LD
  15284. lt_cv_path_LD=$lt_save_path_LD
  15285. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15286. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15287. fi # test yes != "$_lt_caught_CXX_error"
  15288. ac_ext=c
  15289. ac_cpp='$CPP $CPPFLAGS'
  15290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15293. ac_ext=c
  15294. ac_cpp='$CPP $CPPFLAGS'
  15295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15299. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  15300. # On Suns, sometimes $CPP names a directory.
  15301. if test -n "$CPP" && test -d "$CPP"; then
  15302. CPP=
  15303. fi
  15304. if test -z "$CPP"; then
  15305. if ${ac_cv_prog_CPP+:} false; then :
  15306. $as_echo_n "(cached) " >&6
  15307. else
  15308. # Double quotes because CPP needs to be expanded
  15309. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15310. do
  15311. ac_preproc_ok=false
  15312. for ac_c_preproc_warn_flag in '' yes
  15313. do
  15314. # Use a header file that comes with gcc, so configuring glibc
  15315. # with a fresh cross-compiler works.
  15316. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15317. # <limits.h> exists even on freestanding compilers.
  15318. # On the NeXT, cc -E runs the code through the compiler's parser,
  15319. # not just through cpp. "Syntax error" is here to catch this case.
  15320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15321. /* end confdefs.h. */
  15322. #ifdef __STDC__
  15323. # include <limits.h>
  15324. #else
  15325. # include <assert.h>
  15326. #endif
  15327. Syntax error
  15328. _ACEOF
  15329. if ac_fn_c_try_cpp "$LINENO"; then :
  15330. else
  15331. # Broken: fails on valid input.
  15332. continue
  15333. fi
  15334. rm -f conftest.err conftest.i conftest.$ac_ext
  15335. # OK, works on sane cases. Now check whether nonexistent headers
  15336. # can be detected and how.
  15337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15338. /* end confdefs.h. */
  15339. #include <ac_nonexistent.h>
  15340. _ACEOF
  15341. if ac_fn_c_try_cpp "$LINENO"; then :
  15342. # Broken: success on invalid input.
  15343. continue
  15344. else
  15345. # Passes both tests.
  15346. ac_preproc_ok=:
  15347. break
  15348. fi
  15349. rm -f conftest.err conftest.i conftest.$ac_ext
  15350. done
  15351. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15352. rm -f conftest.i conftest.err conftest.$ac_ext
  15353. if $ac_preproc_ok; then :
  15354. break
  15355. fi
  15356. done
  15357. ac_cv_prog_CPP=$CPP
  15358. fi
  15359. CPP=$ac_cv_prog_CPP
  15360. else
  15361. ac_cv_prog_CPP=$CPP
  15362. fi
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15364. $as_echo "$CPP" >&6; }
  15365. ac_preproc_ok=false
  15366. for ac_c_preproc_warn_flag in '' yes
  15367. do
  15368. # Use a header file that comes with gcc, so configuring glibc
  15369. # with a fresh cross-compiler works.
  15370. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15371. # <limits.h> exists even on freestanding compilers.
  15372. # On the NeXT, cc -E runs the code through the compiler's parser,
  15373. # not just through cpp. "Syntax error" is here to catch this case.
  15374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15375. /* end confdefs.h. */
  15376. #ifdef __STDC__
  15377. # include <limits.h>
  15378. #else
  15379. # include <assert.h>
  15380. #endif
  15381. Syntax error
  15382. _ACEOF
  15383. if ac_fn_c_try_cpp "$LINENO"; then :
  15384. else
  15385. # Broken: fails on valid input.
  15386. continue
  15387. fi
  15388. rm -f conftest.err conftest.i conftest.$ac_ext
  15389. # OK, works on sane cases. Now check whether nonexistent headers
  15390. # can be detected and how.
  15391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15392. /* end confdefs.h. */
  15393. #include <ac_nonexistent.h>
  15394. _ACEOF
  15395. if ac_fn_c_try_cpp "$LINENO"; then :
  15396. # Broken: success on invalid input.
  15397. continue
  15398. else
  15399. # Passes both tests.
  15400. ac_preproc_ok=:
  15401. break
  15402. fi
  15403. rm -f conftest.err conftest.i conftest.$ac_ext
  15404. done
  15405. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15406. rm -f conftest.i conftest.err conftest.$ac_ext
  15407. if $ac_preproc_ok; then :
  15408. else
  15409. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15410. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15411. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  15412. See \`config.log' for more details" "$LINENO" 5; }
  15413. fi
  15414. ac_ext=c
  15415. ac_cpp='$CPP $CPPFLAGS'
  15416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15420. $as_echo_n "checking whether ln -s works... " >&6; }
  15421. LN_S=$as_ln_s
  15422. if test "$LN_S" = "ln -s"; then
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15424. $as_echo "yes" >&6; }
  15425. else
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15427. $as_echo "no, using $LN_S" >&6; }
  15428. fi
  15429. for ac_prog in gawk mawk nawk awk
  15430. do
  15431. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15432. set dummy $ac_prog; ac_word=$2
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15434. $as_echo_n "checking for $ac_word... " >&6; }
  15435. if ${ac_cv_prog_AWK+:} false; then :
  15436. $as_echo_n "(cached) " >&6
  15437. else
  15438. if test -n "$AWK"; then
  15439. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  15440. else
  15441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15442. for as_dir in $PATH
  15443. do
  15444. IFS=$as_save_IFS
  15445. test -z "$as_dir" && as_dir=.
  15446. for ac_exec_ext in '' $ac_executable_extensions; do
  15447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15448. ac_cv_prog_AWK="$ac_prog"
  15449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15450. break 2
  15451. fi
  15452. done
  15453. done
  15454. IFS=$as_save_IFS
  15455. fi
  15456. fi
  15457. AWK=$ac_cv_prog_AWK
  15458. if test -n "$AWK"; then
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  15460. $as_echo "$AWK" >&6; }
  15461. else
  15462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15463. $as_echo "no" >&6; }
  15464. fi
  15465. test -n "$AWK" && break
  15466. done
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  15468. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  15469. if ${ac_cv_path_SED+:} false; then :
  15470. $as_echo_n "(cached) " >&6
  15471. else
  15472. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  15473. for ac_i in 1 2 3 4 5 6 7; do
  15474. ac_script="$ac_script$as_nl$ac_script"
  15475. done
  15476. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  15477. { ac_script=; unset ac_script;}
  15478. if test -z "$SED"; then
  15479. ac_path_SED_found=false
  15480. # Loop through the user's path and test for each of PROGNAME-LIST
  15481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15482. for as_dir in $PATH
  15483. do
  15484. IFS=$as_save_IFS
  15485. test -z "$as_dir" && as_dir=.
  15486. for ac_prog in sed gsed; do
  15487. for ac_exec_ext in '' $ac_executable_extensions; do
  15488. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  15489. as_fn_executable_p "$ac_path_SED" || continue
  15490. # Check for GNU ac_path_SED and select it if it is found.
  15491. # Check for GNU $ac_path_SED
  15492. case `"$ac_path_SED" --version 2>&1` in
  15493. *GNU*)
  15494. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  15495. *)
  15496. ac_count=0
  15497. $as_echo_n 0123456789 >"conftest.in"
  15498. while :
  15499. do
  15500. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15501. mv "conftest.tmp" "conftest.in"
  15502. cp "conftest.in" "conftest.nl"
  15503. $as_echo '' >> "conftest.nl"
  15504. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15505. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15506. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15507. if test $ac_count -gt ${ac_path_SED_max-0}; then
  15508. # Best one so far, save it but keep looking for a better one
  15509. ac_cv_path_SED="$ac_path_SED"
  15510. ac_path_SED_max=$ac_count
  15511. fi
  15512. # 10*(2^10) chars as input seems more than enough
  15513. test $ac_count -gt 10 && break
  15514. done
  15515. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15516. esac
  15517. $ac_path_SED_found && break 3
  15518. done
  15519. done
  15520. done
  15521. IFS=$as_save_IFS
  15522. if test -z "$ac_cv_path_SED"; then
  15523. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  15524. fi
  15525. else
  15526. ac_cv_path_SED=$SED
  15527. fi
  15528. fi
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  15530. $as_echo "$ac_cv_path_SED" >&6; }
  15531. SED="$ac_cv_path_SED"
  15532. rm -f conftest.sed
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15534. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15535. set x ${MAKE-make}
  15536. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15537. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  15538. $as_echo_n "(cached) " >&6
  15539. else
  15540. cat >conftest.make <<\_ACEOF
  15541. SHELL = /bin/sh
  15542. all:
  15543. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15544. _ACEOF
  15545. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15546. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15547. *@@@%%%=?*=@@@%%%*)
  15548. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15549. *)
  15550. eval ac_cv_prog_make_${ac_make}_set=no;;
  15551. esac
  15552. rm -f conftest.make
  15553. fi
  15554. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15556. $as_echo "yes" >&6; }
  15557. SET_MAKE=
  15558. else
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15560. $as_echo "no" >&6; }
  15561. SET_MAKE="MAKE=${MAKE-make}"
  15562. fi
  15563. # Extract the first word of "printf", so it can be a program name with args.
  15564. set dummy printf; ac_word=$2
  15565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15566. $as_echo_n "checking for $ac_word... " >&6; }
  15567. if ${ac_cv_path_PRINTF+:} false; then :
  15568. $as_echo_n "(cached) " >&6
  15569. else
  15570. case $PRINTF in
  15571. [\\/]* | ?:[\\/]*)
  15572. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  15573. ;;
  15574. *)
  15575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15576. for as_dir in $PATH
  15577. do
  15578. IFS=$as_save_IFS
  15579. test -z "$as_dir" && as_dir=.
  15580. for ac_exec_ext in '' $ac_executable_extensions; do
  15581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15582. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  15583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15584. break 2
  15585. fi
  15586. done
  15587. done
  15588. IFS=$as_save_IFS
  15589. ;;
  15590. esac
  15591. fi
  15592. PRINTF=$ac_cv_path_PRINTF
  15593. if test -n "$PRINTF"; then
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  15595. $as_echo "$PRINTF" >&6; }
  15596. else
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15598. $as_echo "no" >&6; }
  15599. fi
  15600. # Extract the first word of "echo", so it can be a program name with args.
  15601. set dummy echo; ac_word=$2
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15603. $as_echo_n "checking for $ac_word... " >&6; }
  15604. if ${ac_cv_path_ECHO+:} false; then :
  15605. $as_echo_n "(cached) " >&6
  15606. else
  15607. case $ECHO in
  15608. [\\/]* | ?:[\\/]*)
  15609. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  15610. ;;
  15611. *)
  15612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15613. for as_dir in $PATH
  15614. do
  15615. IFS=$as_save_IFS
  15616. test -z "$as_dir" && as_dir=.
  15617. for ac_exec_ext in '' $ac_executable_extensions; do
  15618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15619. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  15620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15621. break 2
  15622. fi
  15623. done
  15624. done
  15625. IFS=$as_save_IFS
  15626. ;;
  15627. esac
  15628. fi
  15629. ECHO=$ac_cv_path_ECHO
  15630. if test -n "$ECHO"; then
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  15632. $as_echo "$ECHO" >&6; }
  15633. else
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15635. $as_echo "no" >&6; }
  15636. fi
  15637. # Extract the first word of "cut", so it can be a program name with args.
  15638. set dummy cut; ac_word=$2
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15640. $as_echo_n "checking for $ac_word... " >&6; }
  15641. if ${ac_cv_path_CUT+:} false; then :
  15642. $as_echo_n "(cached) " >&6
  15643. else
  15644. case $CUT in
  15645. [\\/]* | ?:[\\/]*)
  15646. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  15647. ;;
  15648. *)
  15649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15650. for as_dir in $PATH
  15651. do
  15652. IFS=$as_save_IFS
  15653. test -z "$as_dir" && as_dir=.
  15654. for ac_exec_ext in '' $ac_executable_extensions; do
  15655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15656. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  15657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15658. break 2
  15659. fi
  15660. done
  15661. done
  15662. IFS=$as_save_IFS
  15663. ;;
  15664. esac
  15665. fi
  15666. CUT=$ac_cv_path_CUT
  15667. if test -n "$CUT"; then
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  15669. $as_echo "$CUT" >&6; }
  15670. else
  15671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15672. $as_echo "no" >&6; }
  15673. fi
  15674. # Extract the first word of "autogen", so it can be a program name with args.
  15675. set dummy autogen; ac_word=$2
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15677. $as_echo_n "checking for $ac_word... " >&6; }
  15678. if ${ac_cv_path_AUTOGEN+:} false; then :
  15679. $as_echo_n "(cached) " >&6
  15680. else
  15681. case $AUTOGEN in
  15682. [\\/]* | ?:[\\/]*)
  15683. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  15684. ;;
  15685. *)
  15686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15687. for as_dir in $PATH
  15688. do
  15689. IFS=$as_save_IFS
  15690. test -z "$as_dir" && as_dir=.
  15691. for ac_exec_ext in '' $ac_executable_extensions; do
  15692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15693. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  15694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15695. break 2
  15696. fi
  15697. done
  15698. done
  15699. IFS=$as_save_IFS
  15700. ;;
  15701. esac
  15702. fi
  15703. AUTOGEN=$ac_cv_path_AUTOGEN
  15704. if test -n "$AUTOGEN"; then
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  15706. $as_echo "$AUTOGEN" >&6; }
  15707. else
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15709. $as_echo "no" >&6; }
  15710. fi
  15711. # Extract the first word of "groff", so it can be a program name with args.
  15712. set dummy groff; ac_word=$2
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15714. $as_echo_n "checking for $ac_word... " >&6; }
  15715. if ${ac_cv_path_GROFF+:} false; then :
  15716. $as_echo_n "(cached) " >&6
  15717. else
  15718. case $GROFF in
  15719. [\\/]* | ?:[\\/]*)
  15720. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  15721. ;;
  15722. *)
  15723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15724. for as_dir in $PATH
  15725. do
  15726. IFS=$as_save_IFS
  15727. test -z "$as_dir" && as_dir=.
  15728. for ac_exec_ext in '' $ac_executable_extensions; do
  15729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15730. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  15731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15732. break 2
  15733. fi
  15734. done
  15735. done
  15736. IFS=$as_save_IFS
  15737. ;;
  15738. esac
  15739. fi
  15740. GROFF=$ac_cv_path_GROFF
  15741. if test -n "$GROFF"; then
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  15743. $as_echo "$GROFF" >&6; }
  15744. else
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15746. $as_echo "no" >&6; }
  15747. fi
  15748. # Extract the first word of "depmod", so it can be a program name with args.
  15749. set dummy depmod; ac_word=$2
  15750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15751. $as_echo_n "checking for $ac_word... " >&6; }
  15752. if ${ac_cv_path_depmod+:} false; then :
  15753. $as_echo_n "(cached) " >&6
  15754. else
  15755. case $depmod in
  15756. [\\/]* | ?:[\\/]*)
  15757. ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
  15758. ;;
  15759. *)
  15760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15761. as_dummy="$PATH:/sbin"
  15762. for as_dir in $as_dummy
  15763. do
  15764. IFS=$as_save_IFS
  15765. test -z "$as_dir" && as_dir=.
  15766. for ac_exec_ext in '' $ac_executable_extensions; do
  15767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15768. ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
  15769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15770. break 2
  15771. fi
  15772. done
  15773. done
  15774. IFS=$as_save_IFS
  15775. test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
  15776. ;;
  15777. esac
  15778. fi
  15779. depmod=$ac_cv_path_depmod
  15780. if test -n "$depmod"; then
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
  15782. $as_echo "$depmod" >&6; }
  15783. else
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15785. $as_echo "no" >&6; }
  15786. fi
  15787. # Extract the first word of "insmod", so it can be a program name with args.
  15788. set dummy insmod; ac_word=$2
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15790. $as_echo_n "checking for $ac_word... " >&6; }
  15791. if ${ac_cv_path_insmod+:} false; then :
  15792. $as_echo_n "(cached) " >&6
  15793. else
  15794. case $insmod in
  15795. [\\/]* | ?:[\\/]*)
  15796. ac_cv_path_insmod="$insmod" # Let the user override the test with a path.
  15797. ;;
  15798. *)
  15799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15800. as_dummy="$PATH:/sbin"
  15801. for as_dir in $as_dummy
  15802. do
  15803. IFS=$as_save_IFS
  15804. test -z "$as_dir" && as_dir=.
  15805. for ac_exec_ext in '' $ac_executable_extensions; do
  15806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15807. ac_cv_path_insmod="$as_dir/$ac_word$ac_exec_ext"
  15808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15809. break 2
  15810. fi
  15811. done
  15812. done
  15813. IFS=$as_save_IFS
  15814. test -z "$ac_cv_path_insmod" && ac_cv_path_insmod="/sbin/insmod"
  15815. ;;
  15816. esac
  15817. fi
  15818. insmod=$ac_cv_path_insmod
  15819. if test -n "$insmod"; then
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $insmod" >&5
  15821. $as_echo "$insmod" >&6; }
  15822. else
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15824. $as_echo "no" >&6; }
  15825. fi
  15826. # Extract the first word of "rmmod", so it can be a program name with args.
  15827. set dummy rmmod; ac_word=$2
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15829. $as_echo_n "checking for $ac_word... " >&6; }
  15830. if ${ac_cv_path_rmmod+:} false; then :
  15831. $as_echo_n "(cached) " >&6
  15832. else
  15833. case $rmmod in
  15834. [\\/]* | ?:[\\/]*)
  15835. ac_cv_path_rmmod="$rmmod" # Let the user override the test with a path.
  15836. ;;
  15837. *)
  15838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15839. as_dummy="$PATH:/sbin"
  15840. for as_dir in $as_dummy
  15841. do
  15842. IFS=$as_save_IFS
  15843. test -z "$as_dir" && as_dir=.
  15844. for ac_exec_ext in '' $ac_executable_extensions; do
  15845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15846. ac_cv_path_rmmod="$as_dir/$ac_word$ac_exec_ext"
  15847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15848. break 2
  15849. fi
  15850. done
  15851. done
  15852. IFS=$as_save_IFS
  15853. test -z "$ac_cv_path_rmmod" && ac_cv_path_rmmod="/sbin/rmmod"
  15854. ;;
  15855. esac
  15856. fi
  15857. rmmod=$ac_cv_path_rmmod
  15858. if test -n "$rmmod"; then
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rmmod" >&5
  15860. $as_echo "$rmmod" >&6; }
  15861. else
  15862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15863. $as_echo "no" >&6; }
  15864. fi
  15865. case "${enable_local_libopts+set}" in
  15866. set) ;;
  15867. *) enable_local_libopts=yes ;;
  15868. esac
  15869. case "${enable_libopts_install+set}" in
  15870. set) ;;
  15871. *) enable_libopts_install=no ;;
  15872. esac
  15873. AUTOGEN_VERSION="unknown - man pages will not be built"
  15874. if test -n "${AUTOGEN}" ; then
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}" >&5
  15876. $as_echo_n "checking for autogen version >= ${MAINTAINER_AUTOGEN_VERSION}... " >&6; }
  15877. AUTOGEN_VERSION=$(${AUTOGEN} -v | ${CUT} -d' ' -f 4)
  15878. AUTOGEN_MAJOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1)
  15879. AUTOGEN_MINOR=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2)
  15880. AUTOGEN_BUILD=$(echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 3)
  15881. if test -z "$AUTOGEN_BUILD"; then
  15882. AUTOGEN_BUILD=0
  15883. fi
  15884. if (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -eq 18 && test ${AUTOGEN_BUILD} -lt 4) ||
  15885. (test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 18) ||
  15886. test ${AUTOGEN_MAJOR} -lt 5 ; then
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15888. $as_echo "no" >&6; }
  15889. if test ! "x$enable_local_libopts" = "xyes"; then
  15890. as_fn_error $? "${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from source code. Upgrade to 5.18.4 or higher" "$LINENO" 5
  15891. fi
  15892. AUTOGEN_VERSION="${AUTOGEN_VERSION} - downlevel"
  15893. else
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15895. $as_echo "yes" >&6; }
  15896. fi
  15897. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  15898. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  15899. 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
  15900. fi
  15901. fi
  15902. else
  15903. if test ! -f src/tcpreplay_opts.c ; then
  15904. 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
  15905. fi
  15906. fi
  15907. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  15908. if test "x$enable_local_libopts" = "xyes" ; then
  15909. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  15910. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  15911. else
  15912. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  15913. $as_echo "$as_me: Using system libopts" >&6;}
  15914. fi
  15915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15916. $as_echo_n "checking for egrep... " >&6; }
  15917. if ${ac_cv_path_EGREP+:} false; then :
  15918. $as_echo_n "(cached) " >&6
  15919. else
  15920. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15921. then ac_cv_path_EGREP="$GREP -E"
  15922. else
  15923. if test -z "$EGREP"; then
  15924. ac_path_EGREP_found=false
  15925. # Loop through the user's path and test for each of PROGNAME-LIST
  15926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15928. do
  15929. IFS=$as_save_IFS
  15930. test -z "$as_dir" && as_dir=.
  15931. for ac_prog in egrep; do
  15932. for ac_exec_ext in '' $ac_executable_extensions; do
  15933. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15934. as_fn_executable_p "$ac_path_EGREP" || continue
  15935. # Check for GNU ac_path_EGREP and select it if it is found.
  15936. # Check for GNU $ac_path_EGREP
  15937. case `"$ac_path_EGREP" --version 2>&1` in
  15938. *GNU*)
  15939. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15940. *)
  15941. ac_count=0
  15942. $as_echo_n 0123456789 >"conftest.in"
  15943. while :
  15944. do
  15945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15946. mv "conftest.tmp" "conftest.in"
  15947. cp "conftest.in" "conftest.nl"
  15948. $as_echo 'EGREP' >> "conftest.nl"
  15949. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15952. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15953. # Best one so far, save it but keep looking for a better one
  15954. ac_cv_path_EGREP="$ac_path_EGREP"
  15955. ac_path_EGREP_max=$ac_count
  15956. fi
  15957. # 10*(2^10) chars as input seems more than enough
  15958. test $ac_count -gt 10 && break
  15959. done
  15960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15961. esac
  15962. $ac_path_EGREP_found && break 3
  15963. done
  15964. done
  15965. done
  15966. IFS=$as_save_IFS
  15967. if test -z "$ac_cv_path_EGREP"; then
  15968. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15969. fi
  15970. else
  15971. ac_cv_path_EGREP=$EGREP
  15972. fi
  15973. fi
  15974. fi
  15975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15976. $as_echo "$ac_cv_path_EGREP" >&6; }
  15977. EGREP="$ac_cv_path_EGREP"
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  15979. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  15980. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  15981. $as_echo_n "(cached) " >&6
  15982. else
  15983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15984. /* end confdefs.h. */
  15985. #include <sys/types.h>
  15986. int
  15987. main ()
  15988. {
  15989. return makedev(0, 0);
  15990. ;
  15991. return 0;
  15992. }
  15993. _ACEOF
  15994. if ac_fn_c_try_link "$LINENO"; then :
  15995. ac_cv_header_sys_types_h_makedev=yes
  15996. else
  15997. ac_cv_header_sys_types_h_makedev=no
  15998. fi
  15999. rm -f core conftest.err conftest.$ac_objext \
  16000. conftest$ac_exeext conftest.$ac_ext
  16001. fi
  16002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  16003. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  16004. if test $ac_cv_header_sys_types_h_makedev = no; then
  16005. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  16006. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  16007. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  16008. fi
  16009. if test $ac_cv_header_sys_mkdev_h = no; then
  16010. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  16011. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  16012. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  16013. fi
  16014. fi
  16015. fi
  16016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16017. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16018. if ${ac_cv_header_stdbool_h+:} false; then :
  16019. $as_echo_n "(cached) " >&6
  16020. else
  16021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16022. /* end confdefs.h. */
  16023. #include <stdbool.h>
  16024. #ifndef bool
  16025. "error: bool is not defined"
  16026. #endif
  16027. #ifndef false
  16028. "error: false is not defined"
  16029. #endif
  16030. #if false
  16031. "error: false is not 0"
  16032. #endif
  16033. #ifndef true
  16034. "error: true is not defined"
  16035. #endif
  16036. #if true != 1
  16037. "error: true is not 1"
  16038. #endif
  16039. #ifndef __bool_true_false_are_defined
  16040. "error: __bool_true_false_are_defined is not defined"
  16041. #endif
  16042. struct s { _Bool s: 1; _Bool t; } s;
  16043. char a[true == 1 ? 1 : -1];
  16044. char b[false == 0 ? 1 : -1];
  16045. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16046. char d[(bool) 0.5 == true ? 1 : -1];
  16047. /* See body of main program for 'e'. */
  16048. char f[(_Bool) 0.0 == false ? 1 : -1];
  16049. char g[true];
  16050. char h[sizeof (_Bool)];
  16051. char i[sizeof s.t];
  16052. enum { j = false, k = true, l = false * true, m = true * 256 };
  16053. /* The following fails for
  16054. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16055. _Bool n[m];
  16056. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16057. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16058. /* Catch a bug in an HP-UX C compiler. See
  16059. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16060. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16061. */
  16062. _Bool q = true;
  16063. _Bool *pq = &q;
  16064. int
  16065. main ()
  16066. {
  16067. bool e = &s;
  16068. *pq |= q;
  16069. *pq |= ! q;
  16070. /* Refer to every declared value, to avoid compiler optimizations. */
  16071. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16072. + !m + !n + !o + !p + !q + !pq);
  16073. ;
  16074. return 0;
  16075. }
  16076. _ACEOF
  16077. if ac_fn_c_try_compile "$LINENO"; then :
  16078. ac_cv_header_stdbool_h=yes
  16079. else
  16080. ac_cv_header_stdbool_h=no
  16081. fi
  16082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16083. fi
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16085. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16086. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16087. if test "x$ac_cv_type__Bool" = xyes; then :
  16088. cat >>confdefs.h <<_ACEOF
  16089. #define HAVE__BOOL 1
  16090. _ACEOF
  16091. fi
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16093. $as_echo_n "checking for inline... " >&6; }
  16094. if ${ac_cv_c_inline+:} false; then :
  16095. $as_echo_n "(cached) " >&6
  16096. else
  16097. ac_cv_c_inline=no
  16098. for ac_kw in inline __inline__ __inline; do
  16099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16100. /* end confdefs.h. */
  16101. #ifndef __cplusplus
  16102. typedef int foo_t;
  16103. static $ac_kw foo_t static_foo () {return 0; }
  16104. $ac_kw foo_t foo () {return 0; }
  16105. #endif
  16106. _ACEOF
  16107. if ac_fn_c_try_compile "$LINENO"; then :
  16108. ac_cv_c_inline=$ac_kw
  16109. fi
  16110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16111. test "$ac_cv_c_inline" != no && break
  16112. done
  16113. fi
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16115. $as_echo "$ac_cv_c_inline" >&6; }
  16116. case $ac_cv_c_inline in
  16117. inline | yes) ;;
  16118. *)
  16119. case $ac_cv_c_inline in
  16120. no) ac_val=;;
  16121. *) ac_val=$ac_cv_c_inline;;
  16122. esac
  16123. cat >>confdefs.h <<_ACEOF
  16124. #ifndef __cplusplus
  16125. #define inline $ac_val
  16126. #endif
  16127. _ACEOF
  16128. ;;
  16129. esac
  16130. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16131. case $ac_cv_c_int16_t in #(
  16132. no|yes) ;; #(
  16133. *)
  16134. cat >>confdefs.h <<_ACEOF
  16135. #define int16_t $ac_cv_c_int16_t
  16136. _ACEOF
  16137. ;;
  16138. esac
  16139. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16140. case $ac_cv_c_int32_t in #(
  16141. no|yes) ;; #(
  16142. *)
  16143. cat >>confdefs.h <<_ACEOF
  16144. #define int32_t $ac_cv_c_int32_t
  16145. _ACEOF
  16146. ;;
  16147. esac
  16148. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16149. case $ac_cv_c_int64_t in #(
  16150. no|yes) ;; #(
  16151. *)
  16152. cat >>confdefs.h <<_ACEOF
  16153. #define int64_t $ac_cv_c_int64_t
  16154. _ACEOF
  16155. ;;
  16156. esac
  16157. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16158. case $ac_cv_c_int8_t in #(
  16159. no|yes) ;; #(
  16160. *)
  16161. cat >>confdefs.h <<_ACEOF
  16162. #define int8_t $ac_cv_c_int8_t
  16163. _ACEOF
  16164. ;;
  16165. esac
  16166. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16167. if test "x$ac_cv_type_off_t" = xyes; then :
  16168. else
  16169. cat >>confdefs.h <<_ACEOF
  16170. #define off_t long int
  16171. _ACEOF
  16172. fi
  16173. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16174. if test "x$ac_cv_type_pid_t" = xyes; then :
  16175. else
  16176. cat >>confdefs.h <<_ACEOF
  16177. #define pid_t int
  16178. _ACEOF
  16179. fi
  16180. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16181. if test "x$ac_cv_type_size_t" = xyes; then :
  16182. else
  16183. cat >>confdefs.h <<_ACEOF
  16184. #define size_t unsigned int
  16185. _ACEOF
  16186. fi
  16187. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  16188. if test "x$ac_cv_type_ssize_t" = xyes; then :
  16189. else
  16190. cat >>confdefs.h <<_ACEOF
  16191. #define ssize_t int
  16192. _ACEOF
  16193. fi
  16194. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16195. case $ac_cv_c_uint16_t in #(
  16196. no|yes) ;; #(
  16197. *)
  16198. cat >>confdefs.h <<_ACEOF
  16199. #define uint16_t $ac_cv_c_uint16_t
  16200. _ACEOF
  16201. ;;
  16202. esac
  16203. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16204. case $ac_cv_c_uint32_t in #(
  16205. no|yes) ;; #(
  16206. *)
  16207. $as_echo "#define _UINT32_T 1" >>confdefs.h
  16208. cat >>confdefs.h <<_ACEOF
  16209. #define uint32_t $ac_cv_c_uint32_t
  16210. _ACEOF
  16211. ;;
  16212. esac
  16213. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16214. case $ac_cv_c_uint64_t in #(
  16215. no|yes) ;; #(
  16216. *)
  16217. $as_echo "#define _UINT64_T 1" >>confdefs.h
  16218. cat >>confdefs.h <<_ACEOF
  16219. #define uint64_t $ac_cv_c_uint64_t
  16220. _ACEOF
  16221. ;;
  16222. esac
  16223. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16224. case $ac_cv_c_uint8_t in #(
  16225. no|yes) ;; #(
  16226. *)
  16227. $as_echo "#define _UINT8_T 1" >>confdefs.h
  16228. cat >>confdefs.h <<_ACEOF
  16229. #define uint8_t $ac_cv_c_uint8_t
  16230. _ACEOF
  16231. ;;
  16232. esac
  16233. for ac_header in $ac_header_list
  16234. do :
  16235. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16236. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16237. "
  16238. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16239. cat >>confdefs.h <<_ACEOF
  16240. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16241. _ACEOF
  16242. fi
  16243. done
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16245. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16246. if ${ac_cv_c_const+:} false; then :
  16247. $as_echo_n "(cached) " >&6
  16248. else
  16249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16250. /* end confdefs.h. */
  16251. int
  16252. main ()
  16253. {
  16254. #ifndef __cplusplus
  16255. /* Ultrix mips cc rejects this sort of thing. */
  16256. typedef int charset[2];
  16257. const charset cs = { 0, 0 };
  16258. /* SunOS 4.1.1 cc rejects this. */
  16259. char const *const *pcpcc;
  16260. char **ppc;
  16261. /* NEC SVR4.0.2 mips cc rejects this. */
  16262. struct point {int x, y;};
  16263. static struct point const zero = {0,0};
  16264. /* AIX XL C 1.02.0.0 rejects this.
  16265. It does not let you subtract one const X* pointer from another in
  16266. an arm of an if-expression whose if-part is not a constant
  16267. expression */
  16268. const char *g = "string";
  16269. pcpcc = &g + (g ? g-g : 0);
  16270. /* HPUX 7.0 cc rejects these. */
  16271. ++pcpcc;
  16272. ppc = (char**) pcpcc;
  16273. pcpcc = (char const *const *) ppc;
  16274. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16275. char tx;
  16276. char *t = &tx;
  16277. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16278. *t++ = 0;
  16279. if (s) return 0;
  16280. }
  16281. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16282. int x[] = {25, 17};
  16283. const int *foo = &x[0];
  16284. ++foo;
  16285. }
  16286. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16287. typedef const int *iptr;
  16288. iptr p = 0;
  16289. ++p;
  16290. }
  16291. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16292. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16293. struct s { int j; const int *ap[3]; } bx;
  16294. struct s *b = &bx; b->j = 5;
  16295. }
  16296. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16297. const int foo = 10;
  16298. if (!foo) return 0;
  16299. }
  16300. return !cs[0] && !zero.x;
  16301. #endif
  16302. ;
  16303. return 0;
  16304. }
  16305. _ACEOF
  16306. if ac_fn_c_try_compile "$LINENO"; then :
  16307. ac_cv_c_const=yes
  16308. else
  16309. ac_cv_c_const=no
  16310. fi
  16311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16312. fi
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16314. $as_echo "$ac_cv_c_const" >&6; }
  16315. if test $ac_cv_c_const = no; then
  16316. $as_echo "#define const /**/" >>confdefs.h
  16317. fi
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16319. $as_echo_n "checking for inline... " >&6; }
  16320. if ${ac_cv_c_inline+:} false; then :
  16321. $as_echo_n "(cached) " >&6
  16322. else
  16323. ac_cv_c_inline=no
  16324. for ac_kw in inline __inline__ __inline; do
  16325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16326. /* end confdefs.h. */
  16327. #ifndef __cplusplus
  16328. typedef int foo_t;
  16329. static $ac_kw foo_t static_foo () {return 0; }
  16330. $ac_kw foo_t foo () {return 0; }
  16331. #endif
  16332. _ACEOF
  16333. if ac_fn_c_try_compile "$LINENO"; then :
  16334. ac_cv_c_inline=$ac_kw
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16337. test "$ac_cv_c_inline" != no && break
  16338. done
  16339. fi
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16341. $as_echo "$ac_cv_c_inline" >&6; }
  16342. case $ac_cv_c_inline in
  16343. inline | yes) ;;
  16344. *)
  16345. case $ac_cv_c_inline in
  16346. no) ac_val=;;
  16347. *) ac_val=$ac_cv_c_inline;;
  16348. esac
  16349. cat >>confdefs.h <<_ACEOF
  16350. #ifndef __cplusplus
  16351. #define inline $ac_val
  16352. #endif
  16353. _ACEOF
  16354. ;;
  16355. esac
  16356. # Check whether --enable-largefile was given.
  16357. if test "${enable_largefile+set}" = set; then :
  16358. enableval=$enable_largefile;
  16359. fi
  16360. if test "$enable_largefile" != no; then
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16362. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  16363. if ${ac_cv_sys_largefile_CC+:} false; then :
  16364. $as_echo_n "(cached) " >&6
  16365. else
  16366. ac_cv_sys_largefile_CC=no
  16367. if test "$GCC" != yes; then
  16368. ac_save_CC=$CC
  16369. while :; do
  16370. # IRIX 6.2 and later do not support large files by default,
  16371. # so use the C compiler's -n32 option if that helps.
  16372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16373. /* end confdefs.h. */
  16374. #include <sys/types.h>
  16375. /* Check that off_t can represent 2**63 - 1 correctly.
  16376. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16377. since some C++ compilers masquerading as C compilers
  16378. incorrectly reject 9223372036854775807. */
  16379. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16380. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16381. && LARGE_OFF_T % 2147483647 == 1)
  16382. ? 1 : -1];
  16383. int
  16384. main ()
  16385. {
  16386. ;
  16387. return 0;
  16388. }
  16389. _ACEOF
  16390. if ac_fn_c_try_compile "$LINENO"; then :
  16391. break
  16392. fi
  16393. rm -f core conftest.err conftest.$ac_objext
  16394. CC="$CC -n32"
  16395. if ac_fn_c_try_compile "$LINENO"; then :
  16396. ac_cv_sys_largefile_CC=' -n32'; break
  16397. fi
  16398. rm -f core conftest.err conftest.$ac_objext
  16399. break
  16400. done
  16401. CC=$ac_save_CC
  16402. rm -f conftest.$ac_ext
  16403. fi
  16404. fi
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16406. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  16407. if test "$ac_cv_sys_largefile_CC" != no; then
  16408. CC=$CC$ac_cv_sys_largefile_CC
  16409. fi
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16411. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16412. if ${ac_cv_sys_file_offset_bits+:} false; then :
  16413. $as_echo_n "(cached) " >&6
  16414. else
  16415. while :; do
  16416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16417. /* end confdefs.h. */
  16418. #include <sys/types.h>
  16419. /* Check that off_t can represent 2**63 - 1 correctly.
  16420. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16421. since some C++ compilers masquerading as C compilers
  16422. incorrectly reject 9223372036854775807. */
  16423. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16424. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16425. && LARGE_OFF_T % 2147483647 == 1)
  16426. ? 1 : -1];
  16427. int
  16428. main ()
  16429. {
  16430. ;
  16431. return 0;
  16432. }
  16433. _ACEOF
  16434. if ac_fn_c_try_compile "$LINENO"; then :
  16435. ac_cv_sys_file_offset_bits=no; break
  16436. fi
  16437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16439. /* end confdefs.h. */
  16440. #define _FILE_OFFSET_BITS 64
  16441. #include <sys/types.h>
  16442. /* Check that off_t can represent 2**63 - 1 correctly.
  16443. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16444. since some C++ compilers masquerading as C compilers
  16445. incorrectly reject 9223372036854775807. */
  16446. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16447. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16448. && LARGE_OFF_T % 2147483647 == 1)
  16449. ? 1 : -1];
  16450. int
  16451. main ()
  16452. {
  16453. ;
  16454. return 0;
  16455. }
  16456. _ACEOF
  16457. if ac_fn_c_try_compile "$LINENO"; then :
  16458. ac_cv_sys_file_offset_bits=64; break
  16459. fi
  16460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16461. ac_cv_sys_file_offset_bits=unknown
  16462. break
  16463. done
  16464. fi
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16466. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16467. case $ac_cv_sys_file_offset_bits in #(
  16468. no | unknown) ;;
  16469. *)
  16470. cat >>confdefs.h <<_ACEOF
  16471. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16472. _ACEOF
  16473. ;;
  16474. esac
  16475. rm -rf conftest*
  16476. if test $ac_cv_sys_file_offset_bits = unknown; then
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16478. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16479. if ${ac_cv_sys_large_files+:} false; then :
  16480. $as_echo_n "(cached) " >&6
  16481. else
  16482. while :; do
  16483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16484. /* end confdefs.h. */
  16485. #include <sys/types.h>
  16486. /* Check that off_t can represent 2**63 - 1 correctly.
  16487. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16488. since some C++ compilers masquerading as C compilers
  16489. incorrectly reject 9223372036854775807. */
  16490. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16491. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16492. && LARGE_OFF_T % 2147483647 == 1)
  16493. ? 1 : -1];
  16494. int
  16495. main ()
  16496. {
  16497. ;
  16498. return 0;
  16499. }
  16500. _ACEOF
  16501. if ac_fn_c_try_compile "$LINENO"; then :
  16502. ac_cv_sys_large_files=no; break
  16503. fi
  16504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16506. /* end confdefs.h. */
  16507. #define _LARGE_FILES 1
  16508. #include <sys/types.h>
  16509. /* Check that off_t can represent 2**63 - 1 correctly.
  16510. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16511. since some C++ compilers masquerading as C compilers
  16512. incorrectly reject 9223372036854775807. */
  16513. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  16514. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16515. && LARGE_OFF_T % 2147483647 == 1)
  16516. ? 1 : -1];
  16517. int
  16518. main ()
  16519. {
  16520. ;
  16521. return 0;
  16522. }
  16523. _ACEOF
  16524. if ac_fn_c_try_compile "$LINENO"; then :
  16525. ac_cv_sys_large_files=1; break
  16526. fi
  16527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16528. ac_cv_sys_large_files=unknown
  16529. break
  16530. done
  16531. fi
  16532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16533. $as_echo "$ac_cv_sys_large_files" >&6; }
  16534. case $ac_cv_sys_large_files in #(
  16535. no | unknown) ;;
  16536. *)
  16537. cat >>confdefs.h <<_ACEOF
  16538. #define _LARGE_FILES $ac_cv_sys_large_files
  16539. _ACEOF
  16540. ;;
  16541. esac
  16542. rm -rf conftest*
  16543. fi
  16544. fi
  16545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  16546. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  16547. if ${ac_cv_sys_largefile_source+:} false; then :
  16548. $as_echo_n "(cached) " >&6
  16549. else
  16550. while :; do
  16551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16552. /* end confdefs.h. */
  16553. #include <sys/types.h> /* for off_t */
  16554. #include <stdio.h>
  16555. int
  16556. main ()
  16557. {
  16558. int (*fp) (FILE *, off_t, int) = fseeko;
  16559. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16560. ;
  16561. return 0;
  16562. }
  16563. _ACEOF
  16564. if ac_fn_c_try_link "$LINENO"; then :
  16565. ac_cv_sys_largefile_source=no; break
  16566. fi
  16567. rm -f core conftest.err conftest.$ac_objext \
  16568. conftest$ac_exeext conftest.$ac_ext
  16569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16570. /* end confdefs.h. */
  16571. #define _LARGEFILE_SOURCE 1
  16572. #include <sys/types.h> /* for off_t */
  16573. #include <stdio.h>
  16574. int
  16575. main ()
  16576. {
  16577. int (*fp) (FILE *, off_t, int) = fseeko;
  16578. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16579. ;
  16580. return 0;
  16581. }
  16582. _ACEOF
  16583. if ac_fn_c_try_link "$LINENO"; then :
  16584. ac_cv_sys_largefile_source=1; break
  16585. fi
  16586. rm -f core conftest.err conftest.$ac_objext \
  16587. conftest$ac_exeext conftest.$ac_ext
  16588. ac_cv_sys_largefile_source=unknown
  16589. break
  16590. done
  16591. fi
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16593. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  16594. case $ac_cv_sys_largefile_source in #(
  16595. no | unknown) ;;
  16596. *)
  16597. cat >>confdefs.h <<_ACEOF
  16598. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  16599. _ACEOF
  16600. ;;
  16601. esac
  16602. rm -rf conftest*
  16603. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16604. # in glibc 2.1.3, but that breaks too many other things.
  16605. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16606. if test $ac_cv_sys_largefile_source != unknown; then
  16607. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  16608. fi
  16609. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  16610. if test "x$ac_cv_type_u_int8_t" = xyes; then :
  16611. else
  16612. cat >>confdefs.h <<_ACEOF
  16613. #define u_int8_t uint8_t
  16614. _ACEOF
  16615. fi
  16616. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  16617. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  16618. else
  16619. cat >>confdefs.h <<_ACEOF
  16620. #define u_int16_t uint16_t
  16621. _ACEOF
  16622. fi
  16623. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  16624. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  16625. else
  16626. cat >>confdefs.h <<_ACEOF
  16627. #define u_int32_t uint32_t
  16628. _ACEOF
  16629. fi
  16630. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  16631. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  16632. else
  16633. cat >>confdefs.h <<_ACEOF
  16634. #define u_int64_t uint64_t
  16635. _ACEOF
  16636. fi
  16637. wno_format=""
  16638. wno_macro_redefined=""
  16639. case $host in
  16640. *-apple-darwin*)
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-macro-redefined" >&5
  16642. $as_echo_n "checking for $CC -Wno-macro-redefined... " >&6; }
  16643. OLD_CFLAGS=$CFLAGS
  16644. CFLAGS="$CFLAGS -Wno-macro-redefined -Werror"
  16645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16646. /* end confdefs.h. */
  16647. #include <stdlib.h>
  16648. int main(int argc, char *argv[]) { return(0); }
  16649. _ACEOF
  16650. if ac_fn_c_try_compile "$LINENO"; then :
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16652. $as_echo "yes" >&6; }
  16653. wno_macro_redefined="-Wno-macro-redefined"
  16654. else
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16656. $as_echo "no" >&6; }
  16657. fi
  16658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format" >&5
  16660. $as_echo_n "checking for $CC -Wno-format... " >&6; }
  16661. CFLAGS="$OLD_CFLAGS $wno_macro_redefined"
  16662. CFLAGS="$CFLAGS -Wno-format -Werror"
  16663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16664. /* end confdefs.h. */
  16665. #include <stdlib.h>
  16666. int main(int argc, char *argv[]) { return(0); }
  16667. _ACEOF
  16668. if ac_fn_c_try_compile "$LINENO"; then :
  16669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16670. $as_echo "yes" >&6; }
  16671. wno_format="-Wno-format"
  16672. else
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16674. $as_echo "no" >&6; }
  16675. fi
  16676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16677. CFLAGS="$OLD_CFLAGS $wno_format"
  16678. ;;
  16679. esac
  16680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  16681. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  16682. OLD_CFLAGS=$CFLAGS
  16683. CFLAGS="$CFLAGS -Wextra -Werror"
  16684. wextra=""
  16685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16686. /* end confdefs.h. */
  16687. #include <stdlib.h>
  16688. int main(int argc, char *argv[]) { return(0); }
  16689. _ACEOF
  16690. if ac_fn_c_try_compile "$LINENO"; then :
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16692. $as_echo "yes" >&6; }
  16693. wextra="-Wextra"
  16694. else
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16696. $as_echo "no" >&6; }
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16699. CFLAGS="$OLD_CFLAGS $wextra"
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  16701. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16702. OLD_CFLAGS=$CFLAGS
  16703. CFLAGS="$CFLAGS -Wno-variadic-macros -Werror"
  16704. wno_variadic_macros=""
  16705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16706. /* end confdefs.h. */
  16707. #include <stdlib.h>
  16708. int main(int argc, char *argv[]) { return(0); }
  16709. _ACEOF
  16710. if ac_fn_c_try_compile "$LINENO"; then :
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16712. $as_echo "yes" >&6; }
  16713. wno_variadic_macros="-Wno-variadic-macros"
  16714. else
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. $as_echo "no" >&6; }
  16717. fi
  16718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16719. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  16721. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16722. OLD_CFLAGS=$CFLAGS
  16723. CFLAGS="$CFLAGS -Wfatal-errors -Werror"
  16724. wfatal_errors=""
  16725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16726. /* end confdefs.h. */
  16727. #include <stdlib.h>
  16728. int main(int argc, char *argv[]) { return(0); }
  16729. _ACEOF
  16730. if ac_fn_c_try_compile "$LINENO"; then :
  16731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16732. $as_echo "yes" >&6; }
  16733. wfatal_errors="-Wfatal-errors"
  16734. else
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16736. $as_echo "no" >&6; }
  16737. fi
  16738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16739. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-format-contains-nul support" >&5
  16741. $as_echo_n "checking for $CC -Wno-format-contains-nul support... " >&6; }
  16742. OLD_CFLAGS=$CFLAGS
  16743. CFLAGS="$CFLAGS -Wno-format-contains-nul -Werror"
  16744. wno_format_contains_nul=""
  16745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16746. /* end confdefs.h. */
  16747. #include <stdlib.h>
  16748. int main(int argc, char *argv[]) { return(0); }
  16749. _ACEOF
  16750. if ac_fn_c_try_compile "$LINENO"; then :
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16752. $as_echo "yes" >&6; }
  16753. wno_format_contains_nul="-Wno-format-contains-nul"
  16754. else
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16756. $as_echo "no" >&6; }
  16757. fi
  16758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16759. CFLAGS="$OLD_CFLAGS $wno_format_contains_nul"
  16760. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h
  16761. do :
  16762. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16763. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16765. cat >>confdefs.h <<_ACEOF
  16766. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16767. _ACEOF
  16768. fi
  16769. done
  16770. for ac_header in signal.h string.h strings.h sys/types.h stdint.h sys/select.h
  16771. do :
  16772. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16773. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16774. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16775. cat >>confdefs.h <<_ACEOF
  16776. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16777. _ACEOF
  16778. fi
  16779. done
  16780. for ac_header in netinet/in.h netinet/in_systm.h poll.h sys/poll.h unistd.h sys/param.h
  16781. do :
  16782. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16783. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16784. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16785. cat >>confdefs.h <<_ACEOF
  16786. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16787. _ACEOF
  16788. fi
  16789. done
  16790. for ac_header in inttypes.h libintl.h sys/file.h sys/ioctl.h sys/systeminfo.h
  16791. do :
  16792. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16793. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16794. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16795. cat >>confdefs.h <<_ACEOF
  16796. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16797. _ACEOF
  16798. fi
  16799. done
  16800. for ac_header in sys/io.h architecture/i386/pio.h sched.h fts.h
  16801. do :
  16802. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16803. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16804. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16805. cat >>confdefs.h <<_ACEOF
  16806. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16807. _ACEOF
  16808. fi
  16809. done
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16811. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16812. if ${ac_cv_header_stdbool_h+:} false; then :
  16813. $as_echo_n "(cached) " >&6
  16814. else
  16815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16816. /* end confdefs.h. */
  16817. #include <stdbool.h>
  16818. #ifndef bool
  16819. "error: bool is not defined"
  16820. #endif
  16821. #ifndef false
  16822. "error: false is not defined"
  16823. #endif
  16824. #if false
  16825. "error: false is not 0"
  16826. #endif
  16827. #ifndef true
  16828. "error: true is not defined"
  16829. #endif
  16830. #if true != 1
  16831. "error: true is not 1"
  16832. #endif
  16833. #ifndef __bool_true_false_are_defined
  16834. "error: __bool_true_false_are_defined is not defined"
  16835. #endif
  16836. struct s { _Bool s: 1; _Bool t; } s;
  16837. char a[true == 1 ? 1 : -1];
  16838. char b[false == 0 ? 1 : -1];
  16839. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16840. char d[(bool) 0.5 == true ? 1 : -1];
  16841. /* See body of main program for 'e'. */
  16842. char f[(_Bool) 0.0 == false ? 1 : -1];
  16843. char g[true];
  16844. char h[sizeof (_Bool)];
  16845. char i[sizeof s.t];
  16846. enum { j = false, k = true, l = false * true, m = true * 256 };
  16847. /* The following fails for
  16848. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16849. _Bool n[m];
  16850. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16851. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16852. /* Catch a bug in an HP-UX C compiler. See
  16853. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16854. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16855. */
  16856. _Bool q = true;
  16857. _Bool *pq = &q;
  16858. int
  16859. main ()
  16860. {
  16861. bool e = &s;
  16862. *pq |= q;
  16863. *pq |= ! q;
  16864. /* Refer to every declared value, to avoid compiler optimizations. */
  16865. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16866. + !m + !n + !o + !p + !q + !pq);
  16867. ;
  16868. return 0;
  16869. }
  16870. _ACEOF
  16871. if ac_fn_c_try_compile "$LINENO"; then :
  16872. ac_cv_header_stdbool_h=yes
  16873. else
  16874. ac_cv_header_stdbool_h=no
  16875. fi
  16876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16877. fi
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16879. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16880. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16881. if test "x$ac_cv_type__Bool" = xyes; then :
  16882. cat >>confdefs.h <<_ACEOF
  16883. #define HAVE__BOOL 1
  16884. _ACEOF
  16885. fi
  16886. if test $ac_cv_header_stdbool_h = yes; then
  16887. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  16888. fi
  16889. for ac_header in sys/sysctl.h net/route.h
  16890. do :
  16891. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16892. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16893. #if HAVE_SYS_PARAM_H
  16894. #include <sys/param.h>
  16895. #endif
  16896. #if HAVE_SYS_TYPES_H
  16897. #include <sys/types.h>
  16898. #endif
  16899. #if HAVE_SYS_SOCKET_H
  16900. #include <sys/socket.h>
  16901. #endif
  16902. "
  16903. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16904. cat >>confdefs.h <<_ACEOF
  16905. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16906. _ACEOF
  16907. fi
  16908. done
  16909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  16910. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16911. if ${ac_cv_lib_socket_socket+:} false; then :
  16912. $as_echo_n "(cached) " >&6
  16913. else
  16914. ac_check_lib_save_LIBS=$LIBS
  16915. LIBS="-lsocket $LIBS"
  16916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16917. /* end confdefs.h. */
  16918. /* Override any GCC internal prototype to avoid an error.
  16919. Use char because int might match the return type of a GCC
  16920. builtin and then its argument prototype would still apply. */
  16921. #ifdef __cplusplus
  16922. extern "C"
  16923. #endif
  16924. char socket ();
  16925. int
  16926. main ()
  16927. {
  16928. return socket ();
  16929. ;
  16930. return 0;
  16931. }
  16932. _ACEOF
  16933. if ac_fn_c_try_link "$LINENO"; then :
  16934. ac_cv_lib_socket_socket=yes
  16935. else
  16936. ac_cv_lib_socket_socket=no
  16937. fi
  16938. rm -f core conftest.err conftest.$ac_objext \
  16939. conftest$ac_exeext conftest.$ac_ext
  16940. LIBS=$ac_check_lib_save_LIBS
  16941. fi
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  16943. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16944. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  16945. cat >>confdefs.h <<_ACEOF
  16946. #define HAVE_LIBSOCKET 1
  16947. _ACEOF
  16948. LIBS="-lsocket $LIBS"
  16949. fi
  16950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16951. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16952. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16953. $as_echo_n "(cached) " >&6
  16954. else
  16955. ac_check_lib_save_LIBS=$LIBS
  16956. LIBS="-lnsl $LIBS"
  16957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16958. /* end confdefs.h. */
  16959. /* Override any GCC internal prototype to avoid an error.
  16960. Use char because int might match the return type of a GCC
  16961. builtin and then its argument prototype would still apply. */
  16962. #ifdef __cplusplus
  16963. extern "C"
  16964. #endif
  16965. char gethostbyname ();
  16966. int
  16967. main ()
  16968. {
  16969. return gethostbyname ();
  16970. ;
  16971. return 0;
  16972. }
  16973. _ACEOF
  16974. if ac_fn_c_try_link "$LINENO"; then :
  16975. ac_cv_lib_nsl_gethostbyname=yes
  16976. else
  16977. ac_cv_lib_nsl_gethostbyname=no
  16978. fi
  16979. rm -f core conftest.err conftest.$ac_objext \
  16980. conftest$ac_exeext conftest.$ac_ext
  16981. LIBS=$ac_check_lib_save_LIBS
  16982. fi
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16984. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16985. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16986. cat >>confdefs.h <<_ACEOF
  16987. #define HAVE_LIBNSL 1
  16988. _ACEOF
  16989. LIBS="-lnsl $LIBS"
  16990. fi
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  16992. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16993. if ${ac_cv_lib_rt_nanosleep+:} false; then :
  16994. $as_echo_n "(cached) " >&6
  16995. else
  16996. ac_check_lib_save_LIBS=$LIBS
  16997. LIBS="-lrt $LIBS"
  16998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16999. /* end confdefs.h. */
  17000. /* Override any GCC internal prototype to avoid an error.
  17001. Use char because int might match the return type of a GCC
  17002. builtin and then its argument prototype would still apply. */
  17003. #ifdef __cplusplus
  17004. extern "C"
  17005. #endif
  17006. char nanosleep ();
  17007. int
  17008. main ()
  17009. {
  17010. return nanosleep ();
  17011. ;
  17012. return 0;
  17013. }
  17014. _ACEOF
  17015. if ac_fn_c_try_link "$LINENO"; then :
  17016. ac_cv_lib_rt_nanosleep=yes
  17017. else
  17018. ac_cv_lib_rt_nanosleep=no
  17019. fi
  17020. rm -f core conftest.err conftest.$ac_objext \
  17021. conftest$ac_exeext conftest.$ac_ext
  17022. LIBS=$ac_check_lib_save_LIBS
  17023. fi
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  17025. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  17026. if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
  17027. cat >>confdefs.h <<_ACEOF
  17028. #define HAVE_LIBRT 1
  17029. _ACEOF
  17030. LIBS="-lrt $LIBS"
  17031. fi
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  17033. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  17034. if ${ac_cv_lib_resolv_resolv+:} false; then :
  17035. $as_echo_n "(cached) " >&6
  17036. else
  17037. ac_check_lib_save_LIBS=$LIBS
  17038. LIBS="-lresolv $LIBS"
  17039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17040. /* end confdefs.h. */
  17041. /* Override any GCC internal prototype to avoid an error.
  17042. Use char because int might match the return type of a GCC
  17043. builtin and then its argument prototype would still apply. */
  17044. #ifdef __cplusplus
  17045. extern "C"
  17046. #endif
  17047. char resolv ();
  17048. int
  17049. main ()
  17050. {
  17051. return resolv ();
  17052. ;
  17053. return 0;
  17054. }
  17055. _ACEOF
  17056. if ac_fn_c_try_link "$LINENO"; then :
  17057. ac_cv_lib_resolv_resolv=yes
  17058. else
  17059. ac_cv_lib_resolv_resolv=no
  17060. fi
  17061. rm -f core conftest.err conftest.$ac_objext \
  17062. conftest$ac_exeext conftest.$ac_ext
  17063. LIBS=$ac_check_lib_save_LIBS
  17064. fi
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  17066. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  17067. if test "x$ac_cv_lib_resolv_resolv" = xyes; then :
  17068. cat >>confdefs.h <<_ACEOF
  17069. #define HAVE_LIBRESOLV 1
  17070. _ACEOF
  17071. LIBS="-lresolv $LIBS"
  17072. fi
  17073. for ac_header in vfork.h
  17074. do :
  17075. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  17076. if test "x$ac_cv_header_vfork_h" = xyes; then :
  17077. cat >>confdefs.h <<_ACEOF
  17078. #define HAVE_VFORK_H 1
  17079. _ACEOF
  17080. fi
  17081. done
  17082. for ac_func in fork vfork
  17083. do :
  17084. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17085. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17086. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17087. cat >>confdefs.h <<_ACEOF
  17088. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17089. _ACEOF
  17090. fi
  17091. done
  17092. if test "x$ac_cv_func_fork" = xyes; then
  17093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  17094. $as_echo_n "checking for working fork... " >&6; }
  17095. if ${ac_cv_func_fork_works+:} false; then :
  17096. $as_echo_n "(cached) " >&6
  17097. else
  17098. if test "$cross_compiling" = yes; then :
  17099. ac_cv_func_fork_works=cross
  17100. else
  17101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17102. /* end confdefs.h. */
  17103. $ac_includes_default
  17104. int
  17105. main ()
  17106. {
  17107. /* By Ruediger Kuhlmann. */
  17108. return fork () < 0;
  17109. ;
  17110. return 0;
  17111. }
  17112. _ACEOF
  17113. if ac_fn_c_try_run "$LINENO"; then :
  17114. ac_cv_func_fork_works=yes
  17115. else
  17116. ac_cv_func_fork_works=no
  17117. fi
  17118. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17119. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17120. fi
  17121. fi
  17122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  17123. $as_echo "$ac_cv_func_fork_works" >&6; }
  17124. else
  17125. ac_cv_func_fork_works=$ac_cv_func_fork
  17126. fi
  17127. if test "x$ac_cv_func_fork_works" = xcross; then
  17128. case $host in
  17129. *-*-amigaos* | *-*-msdosdjgpp*)
  17130. # Override, as these systems have only a dummy fork() stub
  17131. ac_cv_func_fork_works=no
  17132. ;;
  17133. *)
  17134. ac_cv_func_fork_works=yes
  17135. ;;
  17136. esac
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  17138. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  17139. fi
  17140. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17141. if test "x$ac_cv_func_vfork" = xyes; then
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  17143. $as_echo_n "checking for working vfork... " >&6; }
  17144. if ${ac_cv_func_vfork_works+:} false; then :
  17145. $as_echo_n "(cached) " >&6
  17146. else
  17147. if test "$cross_compiling" = yes; then :
  17148. ac_cv_func_vfork_works=cross
  17149. else
  17150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17151. /* end confdefs.h. */
  17152. /* Thanks to Paul Eggert for this test. */
  17153. $ac_includes_default
  17154. #include <sys/wait.h>
  17155. #ifdef HAVE_VFORK_H
  17156. # include <vfork.h>
  17157. #endif
  17158. /* On some sparc systems, changes by the child to local and incoming
  17159. argument registers are propagated back to the parent. The compiler
  17160. is told about this with #include <vfork.h>, but some compilers
  17161. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  17162. static variable whose address is put into a register that is
  17163. clobbered by the vfork. */
  17164. static void
  17165. #ifdef __cplusplus
  17166. sparc_address_test (int arg)
  17167. # else
  17168. sparc_address_test (arg) int arg;
  17169. #endif
  17170. {
  17171. static pid_t child;
  17172. if (!child) {
  17173. child = vfork ();
  17174. if (child < 0) {
  17175. perror ("vfork");
  17176. _exit(2);
  17177. }
  17178. if (!child) {
  17179. arg = getpid();
  17180. write(-1, "", 0);
  17181. _exit (arg);
  17182. }
  17183. }
  17184. }
  17185. int
  17186. main ()
  17187. {
  17188. pid_t parent = getpid ();
  17189. pid_t child;
  17190. sparc_address_test (0);
  17191. child = vfork ();
  17192. if (child == 0) {
  17193. /* Here is another test for sparc vfork register problems. This
  17194. test uses lots of local variables, at least as many local
  17195. variables as main has allocated so far including compiler
  17196. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  17197. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  17198. reuse the register of parent for one of the local variables,
  17199. since it will think that parent can't possibly be used any more
  17200. in this routine. Assigning to the local variable will thus
  17201. munge parent in the parent process. */
  17202. pid_t
  17203. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  17204. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  17205. /* Convince the compiler that p..p7 are live; otherwise, it might
  17206. use the same hardware register for all 8 local variables. */
  17207. if (p != p1 || p != p2 || p != p3 || p != p4
  17208. || p != p5 || p != p6 || p != p7)
  17209. _exit(1);
  17210. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  17211. from child file descriptors. If the child closes a descriptor
  17212. before it execs or exits, this munges the parent's descriptor
  17213. as well. Test for this by closing stdout in the child. */
  17214. _exit(close(fileno(stdout)) != 0);
  17215. } else {
  17216. int status;
  17217. struct stat st;
  17218. while (wait(&status) != child)
  17219. ;
  17220. return (
  17221. /* Was there some problem with vforking? */
  17222. child < 0
  17223. /* Did the child fail? (This shouldn't happen.) */
  17224. || status
  17225. /* Did the vfork/compiler bug occur? */
  17226. || parent != getpid()
  17227. /* Did the file descriptor bug occur? */
  17228. || fstat(fileno(stdout), &st) != 0
  17229. );
  17230. }
  17231. }
  17232. _ACEOF
  17233. if ac_fn_c_try_run "$LINENO"; then :
  17234. ac_cv_func_vfork_works=yes
  17235. else
  17236. ac_cv_func_vfork_works=no
  17237. fi
  17238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17239. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17240. fi
  17241. fi
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  17243. $as_echo "$ac_cv_func_vfork_works" >&6; }
  17244. fi;
  17245. if test "x$ac_cv_func_fork_works" = xcross; then
  17246. ac_cv_func_vfork_works=$ac_cv_func_vfork
  17247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  17248. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  17249. fi
  17250. if test "x$ac_cv_func_vfork_works" = xyes; then
  17251. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  17252. else
  17253. $as_echo "#define vfork fork" >>confdefs.h
  17254. fi
  17255. if test "x$ac_cv_func_fork_works" = xyes; then
  17256. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  17257. fi
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  17259. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  17260. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  17261. $as_echo_n "(cached) " >&6
  17262. else
  17263. rm -f conftest.sym conftest.file
  17264. echo >conftest.file
  17265. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17266. if test "$cross_compiling" = yes; then :
  17267. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17268. else
  17269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17270. /* end confdefs.h. */
  17271. $ac_includes_default
  17272. int
  17273. main ()
  17274. {
  17275. struct stat sbuf;
  17276. /* Linux will dereference the symlink and fail, as required by POSIX.
  17277. That is better in the sense that it means we will not
  17278. have to compile and use the lstat wrapper. */
  17279. return lstat ("conftest.sym/", &sbuf) == 0;
  17280. ;
  17281. return 0;
  17282. }
  17283. _ACEOF
  17284. if ac_fn_c_try_run "$LINENO"; then :
  17285. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17286. else
  17287. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17288. fi
  17289. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17290. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17291. fi
  17292. else
  17293. # If the `ln -s' command failed, then we probably don't even
  17294. # have an lstat function.
  17295. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17296. fi
  17297. rm -f conftest.sym conftest.file
  17298. fi
  17299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17300. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17301. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17302. cat >>confdefs.h <<_ACEOF
  17303. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17304. _ACEOF
  17305. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  17306. case " $LIBOBJS " in
  17307. *" lstat.$ac_objext "* ) ;;
  17308. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17309. ;;
  17310. esac
  17311. fi
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  17313. $as_echo_n "checking for working memcmp... " >&6; }
  17314. if ${ac_cv_func_memcmp_working+:} false; then :
  17315. $as_echo_n "(cached) " >&6
  17316. else
  17317. if test "$cross_compiling" = yes; then :
  17318. ac_cv_func_memcmp_working=no
  17319. else
  17320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17321. /* end confdefs.h. */
  17322. $ac_includes_default
  17323. int
  17324. main ()
  17325. {
  17326. /* Some versions of memcmp are not 8-bit clean. */
  17327. char c0 = '\100', c1 = '\200', c2 = '\201';
  17328. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17329. return 1;
  17330. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17331. or more and with at least one buffer not starting on a 4-byte boundary.
  17332. William Lewis provided this test program. */
  17333. {
  17334. char foo[21];
  17335. char bar[21];
  17336. int i;
  17337. for (i = 0; i < 4; i++)
  17338. {
  17339. char *a = foo + i;
  17340. char *b = bar + i;
  17341. strcpy (a, "--------01111111");
  17342. strcpy (b, "--------10000000");
  17343. if (memcmp (a, b, 16) >= 0)
  17344. return 1;
  17345. }
  17346. return 0;
  17347. }
  17348. ;
  17349. return 0;
  17350. }
  17351. _ACEOF
  17352. if ac_fn_c_try_run "$LINENO"; then :
  17353. ac_cv_func_memcmp_working=yes
  17354. else
  17355. ac_cv_func_memcmp_working=no
  17356. fi
  17357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17358. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17359. fi
  17360. fi
  17361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  17362. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17363. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17364. *" memcmp.$ac_objext "* ) ;;
  17365. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17366. ;;
  17367. esac
  17368. for ac_func in vprintf
  17369. do :
  17370. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17371. if test "x$ac_cv_func_vprintf" = xyes; then :
  17372. cat >>confdefs.h <<_ACEOF
  17373. #define HAVE_VPRINTF 1
  17374. _ACEOF
  17375. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17376. if test "x$ac_cv_func__doprnt" = xyes; then :
  17377. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17378. fi
  17379. fi
  17380. done
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17382. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17383. if ${ac_cv_header_time+:} false; then :
  17384. $as_echo_n "(cached) " >&6
  17385. else
  17386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17387. /* end confdefs.h. */
  17388. #include <sys/types.h>
  17389. #include <sys/time.h>
  17390. #include <time.h>
  17391. int
  17392. main ()
  17393. {
  17394. if ((struct tm *) 0)
  17395. return 0;
  17396. ;
  17397. return 0;
  17398. }
  17399. _ACEOF
  17400. if ac_fn_c_try_compile "$LINENO"; then :
  17401. ac_cv_header_time=yes
  17402. else
  17403. ac_cv_header_time=no
  17404. fi
  17405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17406. fi
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17408. $as_echo "$ac_cv_header_time" >&6; }
  17409. if test $ac_cv_header_time = yes; then
  17410. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17411. fi
  17412. for ac_func in $ac_func_list
  17413. do :
  17414. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17415. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17416. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17417. cat >>confdefs.h <<_ACEOF
  17418. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17419. _ACEOF
  17420. fi
  17421. done
  17422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17423. $as_echo_n "checking for working mktime... " >&6; }
  17424. if ${ac_cv_func_working_mktime+:} false; then :
  17425. $as_echo_n "(cached) " >&6
  17426. else
  17427. if test "$cross_compiling" = yes; then :
  17428. ac_cv_func_working_mktime=no
  17429. else
  17430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17431. /* end confdefs.h. */
  17432. /* Test program from Paul Eggert and Tony Leneis. */
  17433. #ifdef TIME_WITH_SYS_TIME
  17434. # include <sys/time.h>
  17435. # include <time.h>
  17436. #else
  17437. # ifdef HAVE_SYS_TIME_H
  17438. # include <sys/time.h>
  17439. # else
  17440. # include <time.h>
  17441. # endif
  17442. #endif
  17443. #include <limits.h>
  17444. #include <stdlib.h>
  17445. #ifdef HAVE_UNISTD_H
  17446. # include <unistd.h>
  17447. #endif
  17448. #ifndef HAVE_ALARM
  17449. # define alarm(X) /* empty */
  17450. #endif
  17451. /* Work around redefinition to rpl_putenv by other config tests. */
  17452. #undef putenv
  17453. static time_t time_t_max;
  17454. static time_t time_t_min;
  17455. /* Values we'll use to set the TZ environment variable. */
  17456. static const char *tz_strings[] = {
  17457. (const char *) 0, "TZ=GMT0", "TZ=JST-9",
  17458. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17459. };
  17460. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17461. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17462. Based on a problem report from Andreas Jaeger. */
  17463. static int
  17464. spring_forward_gap ()
  17465. {
  17466. /* glibc (up to about 1998-10-07) failed this test. */
  17467. struct tm tm;
  17468. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17469. instead of "TZ=America/Vancouver" in order to detect the bug even
  17470. on systems that don't support the Olson extension, or don't have the
  17471. full zoneinfo tables installed. */
  17472. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17473. tm.tm_year = 98;
  17474. tm.tm_mon = 3;
  17475. tm.tm_mday = 5;
  17476. tm.tm_hour = 2;
  17477. tm.tm_min = 0;
  17478. tm.tm_sec = 0;
  17479. tm.tm_isdst = -1;
  17480. return mktime (&tm) != (time_t) -1;
  17481. }
  17482. static int
  17483. mktime_test1 (time_t now)
  17484. {
  17485. struct tm *lt;
  17486. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17487. }
  17488. static int
  17489. mktime_test (time_t now)
  17490. {
  17491. return (mktime_test1 (now)
  17492. && mktime_test1 ((time_t) (time_t_max - now))
  17493. && mktime_test1 ((time_t) (time_t_min + now)));
  17494. }
  17495. static int
  17496. irix_6_4_bug ()
  17497. {
  17498. /* Based on code from Ariel Faigon. */
  17499. struct tm tm;
  17500. tm.tm_year = 96;
  17501. tm.tm_mon = 3;
  17502. tm.tm_mday = 0;
  17503. tm.tm_hour = 0;
  17504. tm.tm_min = 0;
  17505. tm.tm_sec = 0;
  17506. tm.tm_isdst = -1;
  17507. mktime (&tm);
  17508. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17509. }
  17510. static int
  17511. bigtime_test (int j)
  17512. {
  17513. struct tm tm;
  17514. time_t now;
  17515. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17516. now = mktime (&tm);
  17517. if (now != (time_t) -1)
  17518. {
  17519. struct tm *lt = localtime (&now);
  17520. if (! (lt
  17521. && lt->tm_year == tm.tm_year
  17522. && lt->tm_mon == tm.tm_mon
  17523. && lt->tm_mday == tm.tm_mday
  17524. && lt->tm_hour == tm.tm_hour
  17525. && lt->tm_min == tm.tm_min
  17526. && lt->tm_sec == tm.tm_sec
  17527. && lt->tm_yday == tm.tm_yday
  17528. && lt->tm_wday == tm.tm_wday
  17529. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17530. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17531. return 0;
  17532. }
  17533. return 1;
  17534. }
  17535. static int
  17536. year_2050_test ()
  17537. {
  17538. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17539. ignoring leap seconds. */
  17540. unsigned long int answer = 2527315200UL;
  17541. struct tm tm;
  17542. time_t t;
  17543. tm.tm_year = 2050 - 1900;
  17544. tm.tm_mon = 2 - 1;
  17545. tm.tm_mday = 1;
  17546. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17547. tm.tm_isdst = -1;
  17548. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17549. instead of "TZ=America/Vancouver" in order to detect the bug even
  17550. on systems that don't support the Olson extension, or don't have the
  17551. full zoneinfo tables installed. */
  17552. putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
  17553. t = mktime (&tm);
  17554. /* Check that the result is either a failure, or close enough
  17555. to the correct answer that we can assume the discrepancy is
  17556. due to leap seconds. */
  17557. return (t == (time_t) -1
  17558. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17559. }
  17560. int
  17561. main ()
  17562. {
  17563. time_t t, delta;
  17564. int i, j;
  17565. /* This test makes some buggy mktime implementations loop.
  17566. Give up after 60 seconds; a mktime slower than that
  17567. isn't worth using anyway. */
  17568. alarm (60);
  17569. for (;;)
  17570. {
  17571. t = (time_t_max << 1) + 1;
  17572. if (t <= time_t_max)
  17573. break;
  17574. time_t_max = t;
  17575. }
  17576. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17577. delta = time_t_max / 997; /* a suitable prime number */
  17578. for (i = 0; i < N_STRINGS; i++)
  17579. {
  17580. if (tz_strings[i])
  17581. putenv ((char*) tz_strings[i]);
  17582. for (t = 0; t <= time_t_max - delta; t += delta)
  17583. if (! mktime_test (t))
  17584. return 1;
  17585. if (! (mktime_test ((time_t) 1)
  17586. && mktime_test ((time_t) (60 * 60))
  17587. && mktime_test ((time_t) (60 * 60 * 24))))
  17588. return 1;
  17589. for (j = 1; ; j <<= 1)
  17590. if (! bigtime_test (j))
  17591. return 1;
  17592. else if (INT_MAX / 2 < j)
  17593. break;
  17594. if (! bigtime_test (INT_MAX))
  17595. return 1;
  17596. }
  17597. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17598. }
  17599. _ACEOF
  17600. if ac_fn_c_try_run "$LINENO"; then :
  17601. ac_cv_func_working_mktime=yes
  17602. else
  17603. ac_cv_func_working_mktime=no
  17604. fi
  17605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17606. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17607. fi
  17608. fi
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  17610. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17611. if test $ac_cv_func_working_mktime = no; then
  17612. case " $LIBOBJS " in
  17613. *" mktime.$ac_objext "* ) ;;
  17614. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17615. ;;
  17616. esac
  17617. fi
  17618. for ac_func in getpagesize
  17619. do :
  17620. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  17621. if test "x$ac_cv_func_getpagesize" = xyes; then :
  17622. cat >>confdefs.h <<_ACEOF
  17623. #define HAVE_GETPAGESIZE 1
  17624. _ACEOF
  17625. fi
  17626. done
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  17628. $as_echo_n "checking for working mmap... " >&6; }
  17629. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  17630. $as_echo_n "(cached) " >&6
  17631. else
  17632. if test "$cross_compiling" = yes; then :
  17633. ac_cv_func_mmap_fixed_mapped=no
  17634. else
  17635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17636. /* end confdefs.h. */
  17637. $ac_includes_default
  17638. /* malloc might have been renamed as rpl_malloc. */
  17639. #undef malloc
  17640. /* Thanks to Mike Haertel and Jim Avera for this test.
  17641. Here is a matrix of mmap possibilities:
  17642. mmap private not fixed
  17643. mmap private fixed at somewhere currently unmapped
  17644. mmap private fixed at somewhere already mapped
  17645. mmap shared not fixed
  17646. mmap shared fixed at somewhere currently unmapped
  17647. mmap shared fixed at somewhere already mapped
  17648. For private mappings, we should verify that changes cannot be read()
  17649. back from the file, nor mmap's back from the file at a different
  17650. address. (There have been systems where private was not correctly
  17651. implemented like the infamous i386 svr4.0, and systems where the
  17652. VM page cache was not coherent with the file system buffer cache
  17653. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17654. For shared mappings, we should conversely verify that changes get
  17655. propagated back to all the places they're supposed to be.
  17656. Grep wants private fixed already mapped.
  17657. The main things grep needs to know about mmap are:
  17658. * does it exist and is it safe to write into the mmap'd area
  17659. * how to use it (BSD variants) */
  17660. #include <fcntl.h>
  17661. #include <sys/mman.h>
  17662. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17663. char *malloc ();
  17664. #endif
  17665. /* This mess was copied from the GNU getpagesize.h. */
  17666. #ifndef HAVE_GETPAGESIZE
  17667. # ifdef _SC_PAGESIZE
  17668. # define getpagesize() sysconf(_SC_PAGESIZE)
  17669. # else /* no _SC_PAGESIZE */
  17670. # ifdef HAVE_SYS_PARAM_H
  17671. # include <sys/param.h>
  17672. # ifdef EXEC_PAGESIZE
  17673. # define getpagesize() EXEC_PAGESIZE
  17674. # else /* no EXEC_PAGESIZE */
  17675. # ifdef NBPG
  17676. # define getpagesize() NBPG * CLSIZE
  17677. # ifndef CLSIZE
  17678. # define CLSIZE 1
  17679. # endif /* no CLSIZE */
  17680. # else /* no NBPG */
  17681. # ifdef NBPC
  17682. # define getpagesize() NBPC
  17683. # else /* no NBPC */
  17684. # ifdef PAGESIZE
  17685. # define getpagesize() PAGESIZE
  17686. # endif /* PAGESIZE */
  17687. # endif /* no NBPC */
  17688. # endif /* no NBPG */
  17689. # endif /* no EXEC_PAGESIZE */
  17690. # else /* no HAVE_SYS_PARAM_H */
  17691. # define getpagesize() 8192 /* punt totally */
  17692. # endif /* no HAVE_SYS_PARAM_H */
  17693. # endif /* no _SC_PAGESIZE */
  17694. #endif /* no HAVE_GETPAGESIZE */
  17695. int
  17696. main ()
  17697. {
  17698. char *data, *data2, *data3;
  17699. const char *cdata2;
  17700. int i, pagesize;
  17701. int fd, fd2;
  17702. pagesize = getpagesize ();
  17703. /* First, make a file with some known garbage in it. */
  17704. data = (char *) malloc (pagesize);
  17705. if (!data)
  17706. return 1;
  17707. for (i = 0; i < pagesize; ++i)
  17708. *(data + i) = rand ();
  17709. umask (0);
  17710. fd = creat ("conftest.mmap", 0600);
  17711. if (fd < 0)
  17712. return 2;
  17713. if (write (fd, data, pagesize) != pagesize)
  17714. return 3;
  17715. close (fd);
  17716. /* Next, check that the tail of a page is zero-filled. File must have
  17717. non-zero length, otherwise we risk SIGBUS for entire page. */
  17718. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  17719. if (fd2 < 0)
  17720. return 4;
  17721. cdata2 = "";
  17722. if (write (fd2, cdata2, 1) != 1)
  17723. return 5;
  17724. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  17725. if (data2 == MAP_FAILED)
  17726. return 6;
  17727. for (i = 0; i < pagesize; ++i)
  17728. if (*(data2 + i))
  17729. return 7;
  17730. close (fd2);
  17731. if (munmap (data2, pagesize))
  17732. return 8;
  17733. /* Next, try to mmap the file at a fixed address which already has
  17734. something else allocated at it. If we can, also make sure that
  17735. we see the same garbage. */
  17736. fd = open ("conftest.mmap", O_RDWR);
  17737. if (fd < 0)
  17738. return 9;
  17739. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17740. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17741. return 10;
  17742. for (i = 0; i < pagesize; ++i)
  17743. if (*(data + i) != *(data2 + i))
  17744. return 11;
  17745. /* Finally, make sure that changes to the mapped area do not
  17746. percolate back to the file as seen by read(). (This is a bug on
  17747. some variants of i386 svr4.0.) */
  17748. for (i = 0; i < pagesize; ++i)
  17749. *(data2 + i) = *(data2 + i) + 1;
  17750. data3 = (char *) malloc (pagesize);
  17751. if (!data3)
  17752. return 12;
  17753. if (read (fd, data3, pagesize) != pagesize)
  17754. return 13;
  17755. for (i = 0; i < pagesize; ++i)
  17756. if (*(data + i) != *(data3 + i))
  17757. return 14;
  17758. close (fd);
  17759. free (data);
  17760. free (data3);
  17761. return 0;
  17762. }
  17763. _ACEOF
  17764. if ac_fn_c_try_run "$LINENO"; then :
  17765. ac_cv_func_mmap_fixed_mapped=yes
  17766. else
  17767. ac_cv_func_mmap_fixed_mapped=no
  17768. fi
  17769. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17770. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17771. fi
  17772. fi
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17774. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  17775. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17776. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  17777. fi
  17778. rm -f conftest.mmap conftest.txt
  17779. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  17780. if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :
  17781. cat >>confdefs.h <<_ACEOF
  17782. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17783. _ACEOF
  17784. fi
  17785. for ac_func in alarm atexit bzero dup2 gethostbyname getpagesize gettimeofday
  17786. do :
  17787. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17788. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17789. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17790. cat >>confdefs.h <<_ACEOF
  17791. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17792. _ACEOF
  17793. fi
  17794. done
  17795. for ac_func in ctime inet_ntoa memmove memset munmap pow putenv realpath
  17796. do :
  17797. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17798. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17799. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17800. cat >>confdefs.h <<_ACEOF
  17801. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17802. _ACEOF
  17803. fi
  17804. done
  17805. for ac_func in regcomp strdup select socket strcasecmp strchr strcspn strdup
  17806. do :
  17807. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17808. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17809. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17810. cat >>confdefs.h <<_ACEOF
  17811. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17812. _ACEOF
  17813. fi
  17814. done
  17815. for ac_func in strerror strtol strncpy strtoull poll ntohll mmap snprintf
  17816. do :
  17817. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17818. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17819. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17820. cat >>confdefs.h <<_ACEOF
  17821. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17822. _ACEOF
  17823. fi
  17824. done
  17825. for ac_func in vsnprintf strsignal strpbrk strrchr strspn strstr strtoul
  17826. do :
  17827. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17828. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17829. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17830. cat >>confdefs.h <<_ACEOF
  17831. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17832. _ACEOF
  17833. fi
  17834. done
  17835. for ac_func in ioperm
  17836. do :
  17837. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  17838. if test "x$ac_cv_func_ioperm" = xyes; then :
  17839. cat >>confdefs.h <<_ACEOF
  17840. #define HAVE_IOPERM 1
  17841. _ACEOF
  17842. fi
  17843. done
  17844. for ac_func in strlcpy
  17845. do :
  17846. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  17847. if test "x$ac_cv_func_strlcpy" = xyes; then :
  17848. cat >>confdefs.h <<_ACEOF
  17849. #define HAVE_STRLCPY 1
  17850. _ACEOF
  17851. have_strlcpy=true
  17852. else
  17853. have_strlcpy=false
  17854. fi
  17855. done
  17856. if test x$have_strlcpy = xtrue; then
  17857. SYSTEM_STRLCPY_TRUE=
  17858. SYSTEM_STRLCPY_FALSE='#'
  17859. else
  17860. SYSTEM_STRLCPY_TRUE='#'
  17861. SYSTEM_STRLCPY_FALSE=
  17862. fi
  17863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17864. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17865. if ${ac_cv_c_bigendian+:} false; then :
  17866. $as_echo_n "(cached) " >&6
  17867. else
  17868. ac_cv_c_bigendian=unknown
  17869. # See if we're dealing with a universal compiler.
  17870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17871. /* end confdefs.h. */
  17872. #ifndef __APPLE_CC__
  17873. not a universal capable compiler
  17874. #endif
  17875. typedef int dummy;
  17876. _ACEOF
  17877. if ac_fn_c_try_compile "$LINENO"; then :
  17878. # Check for potential -arch flags. It is not universal unless
  17879. # there are at least two -arch flags with different values.
  17880. ac_arch=
  17881. ac_prev=
  17882. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17883. if test -n "$ac_prev"; then
  17884. case $ac_word in
  17885. i?86 | x86_64 | ppc | ppc64)
  17886. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17887. ac_arch=$ac_word
  17888. else
  17889. ac_cv_c_bigendian=universal
  17890. break
  17891. fi
  17892. ;;
  17893. esac
  17894. ac_prev=
  17895. elif test "x$ac_word" = "x-arch"; then
  17896. ac_prev=arch
  17897. fi
  17898. done
  17899. fi
  17900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17901. if test $ac_cv_c_bigendian = unknown; then
  17902. # See if sys/param.h defines the BYTE_ORDER macro.
  17903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17904. /* end confdefs.h. */
  17905. #include <sys/types.h>
  17906. #include <sys/param.h>
  17907. int
  17908. main ()
  17909. {
  17910. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17911. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17912. && LITTLE_ENDIAN)
  17913. bogus endian macros
  17914. #endif
  17915. ;
  17916. return 0;
  17917. }
  17918. _ACEOF
  17919. if ac_fn_c_try_compile "$LINENO"; then :
  17920. # It does; now see whether it defined to BIG_ENDIAN or not.
  17921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17922. /* end confdefs.h. */
  17923. #include <sys/types.h>
  17924. #include <sys/param.h>
  17925. int
  17926. main ()
  17927. {
  17928. #if BYTE_ORDER != BIG_ENDIAN
  17929. not big endian
  17930. #endif
  17931. ;
  17932. return 0;
  17933. }
  17934. _ACEOF
  17935. if ac_fn_c_try_compile "$LINENO"; then :
  17936. ac_cv_c_bigendian=yes
  17937. else
  17938. ac_cv_c_bigendian=no
  17939. fi
  17940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17941. fi
  17942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17943. fi
  17944. if test $ac_cv_c_bigendian = unknown; then
  17945. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #include <limits.h>
  17949. int
  17950. main ()
  17951. {
  17952. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17953. bogus endian macros
  17954. #endif
  17955. ;
  17956. return 0;
  17957. }
  17958. _ACEOF
  17959. if ac_fn_c_try_compile "$LINENO"; then :
  17960. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17962. /* end confdefs.h. */
  17963. #include <limits.h>
  17964. int
  17965. main ()
  17966. {
  17967. #ifndef _BIG_ENDIAN
  17968. not big endian
  17969. #endif
  17970. ;
  17971. return 0;
  17972. }
  17973. _ACEOF
  17974. if ac_fn_c_try_compile "$LINENO"; then :
  17975. ac_cv_c_bigendian=yes
  17976. else
  17977. ac_cv_c_bigendian=no
  17978. fi
  17979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17980. fi
  17981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17982. fi
  17983. if test $ac_cv_c_bigendian = unknown; then
  17984. # Compile a test program.
  17985. if test "$cross_compiling" = yes; then :
  17986. # Try to guess by grepping values from an object file.
  17987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17988. /* end confdefs.h. */
  17989. short int ascii_mm[] =
  17990. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17991. short int ascii_ii[] =
  17992. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17993. int use_ascii (int i) {
  17994. return ascii_mm[i] + ascii_ii[i];
  17995. }
  17996. short int ebcdic_ii[] =
  17997. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17998. short int ebcdic_mm[] =
  17999. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18000. int use_ebcdic (int i) {
  18001. return ebcdic_mm[i] + ebcdic_ii[i];
  18002. }
  18003. extern int foo;
  18004. int
  18005. main ()
  18006. {
  18007. return use_ascii (foo) == use_ebcdic (foo);
  18008. ;
  18009. return 0;
  18010. }
  18011. _ACEOF
  18012. if ac_fn_c_try_compile "$LINENO"; then :
  18013. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18014. ac_cv_c_bigendian=yes
  18015. fi
  18016. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18017. if test "$ac_cv_c_bigendian" = unknown; then
  18018. ac_cv_c_bigendian=no
  18019. else
  18020. # finding both strings is unlikely to happen, but who knows?
  18021. ac_cv_c_bigendian=unknown
  18022. fi
  18023. fi
  18024. fi
  18025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18026. else
  18027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18028. /* end confdefs.h. */
  18029. $ac_includes_default
  18030. int
  18031. main ()
  18032. {
  18033. /* Are we little or big endian? From Harbison&Steele. */
  18034. union
  18035. {
  18036. long int l;
  18037. char c[sizeof (long int)];
  18038. } u;
  18039. u.l = 1;
  18040. return u.c[sizeof (long int) - 1] == 1;
  18041. ;
  18042. return 0;
  18043. }
  18044. _ACEOF
  18045. if ac_fn_c_try_run "$LINENO"; then :
  18046. ac_cv_c_bigendian=no
  18047. else
  18048. ac_cv_c_bigendian=yes
  18049. fi
  18050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18052. fi
  18053. fi
  18054. fi
  18055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18056. $as_echo "$ac_cv_c_bigendian" >&6; }
  18057. case $ac_cv_c_bigendian in #(
  18058. yes)
  18059. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18060. ;; #(
  18061. no)
  18062. ;; #(
  18063. universal)
  18064. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18065. ;; #(
  18066. *)
  18067. as_fn_error $? "unknown endianness
  18068. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18069. esac
  18070. if test x$ac_cv_c_bigendian = xyes ; then
  18071. WORDS_BIGENDIAN_TRUE=
  18072. WORDS_BIGENDIAN_FALSE='#'
  18073. else
  18074. WORDS_BIGENDIAN_TRUE='#'
  18075. WORDS_BIGENDIAN_FALSE=
  18076. fi
  18077. # Check whether --enable-asan was given.
  18078. if test "${enable_asan+set}" = set; then :
  18079. enableval=$enable_asan;
  18080. fi
  18081. if test "x$enable_asan" = "xyes"; then
  18082. build_asan=yes
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __asan_report_error in -lasan" >&5
  18084. $as_echo_n "checking for __asan_report_error in -lasan... " >&6; }
  18085. if ${ac_cv_lib_asan___asan_report_error+:} false; then :
  18086. $as_echo_n "(cached) " >&6
  18087. else
  18088. ac_check_lib_save_LIBS=$LIBS
  18089. LIBS="-lasan $LIBS"
  18090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18091. /* end confdefs.h. */
  18092. /* Override any GCC internal prototype to avoid an error.
  18093. Use char because int might match the return type of a GCC
  18094. builtin and then its argument prototype would still apply. */
  18095. #ifdef __cplusplus
  18096. extern "C"
  18097. #endif
  18098. char __asan_report_error ();
  18099. int
  18100. main ()
  18101. {
  18102. return __asan_report_error ();
  18103. ;
  18104. return 0;
  18105. }
  18106. _ACEOF
  18107. if ac_fn_c_try_link "$LINENO"; then :
  18108. ac_cv_lib_asan___asan_report_error=yes
  18109. else
  18110. ac_cv_lib_asan___asan_report_error=no
  18111. fi
  18112. rm -f core conftest.err conftest.$ac_objext \
  18113. conftest$ac_exeext conftest.$ac_ext
  18114. LIBS=$ac_check_lib_save_LIBS
  18115. fi
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asan___asan_report_error" >&5
  18117. $as_echo "$ac_cv_lib_asan___asan_report_error" >&6; }
  18118. if test "x$ac_cv_lib_asan___asan_report_error" = xyes; then :
  18119. cat >>confdefs.h <<_ACEOF
  18120. #define HAVE_LIBASAN 1
  18121. _ACEOF
  18122. LIBS="-lasan $LIBS"
  18123. else
  18124. as_fn_error $? "libasan.so not found, this is required for --enable-asan" "$LINENO" 5
  18125. fi
  18126. CFLAGS="${CFLAGS} -O1 -g -fsanitize=address -fno-omit-frame-pointer"
  18127. LDFLAGS="-fsanitize=address ${LDFLAGS}"
  18128. else
  18129. build_asan=no
  18130. fi
  18131. # Check whether --enable-tsan was given.
  18132. if test "${enable_tsan+set}" = set; then :
  18133. enableval=$enable_tsan;
  18134. fi
  18135. if test "x$enable_tsan" = "xyes"; then
  18136. build_tsan=yes
  18137. CFLAGS="${CFLAGS} -O1 -g -fsanitize=thread -fno-omit-frame-pointer"
  18138. LDFLAGS="-fsanitize=thread ${LDFLAGS}"
  18139. else
  18140. build_tsan=no
  18141. fi
  18142. if test "$build_asan" = "yes" -a "$build_tsan" = "yes" ; then
  18143. as_fn_error $? "--enable-asan and --eanble-tsan are mutually exclusive" "$LINENO" 5
  18144. fi
  18145. debug=no
  18146. debug_flag=NDEBUG
  18147. debug_run_time_flag=
  18148. # Check whether --enable-debug was given.
  18149. if test "${enable_debug+set}" = set; then :
  18150. enableval=$enable_debug; if test x$enableval = xyes; then
  18151. debug=yes
  18152. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  18153. CFLAGS="${CFLAGS} -g -O0 -Wall $wextra $wfatal_errors $wno_variadic_macros $wno_format_contains_nul $wno_format"
  18154. # We may also want to add:
  18155. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  18156. debug_flag=DEBUG
  18157. debug_run_time_flag=--dbug=1
  18158. $as_echo "#define DEBUG 1" >>confdefs.h
  18159. fi
  18160. fi
  18161. extra_debug=no
  18162. extra_debug_flag=NEXTRA_DBUG
  18163. # Check whether --enable-extra-debug was given.
  18164. if test "${enable_extra_debug+set}" = set; then :
  18165. enableval=$enable_extra_debug; if test x$enableval = xyes; then
  18166. extra_debug=yes
  18167. extra_debug_flag=EXTRA_DEBUG
  18168. $as_echo "#define EXTRA_DEBUG 1" >>confdefs.h
  18169. fi
  18170. fi
  18171. timestamp_trace=no
  18172. # Check whether --enable-timestamp-trace was given.
  18173. if test "${enable_timestamp_trace+set}" = set; then :
  18174. enableval=$enable_timestamp_trace; if test x$enableval = xyes; then
  18175. timestamp_trace=yes
  18176. CFLAGS="${CFLAGS} -DTIMESTAMP_TRACE"
  18177. $as_echo "#define TIMESTAMP_TRACE 1" >>confdefs.h
  18178. fi
  18179. fi
  18180. # Check whether --enable-dmalloc was given.
  18181. if test "${enable_dmalloc+set}" = set; then :
  18182. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  18183. dmalloc=yes
  18184. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  18185. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  18186. CFLAGS="${CFLAGS} -I/opt/local/include"
  18187. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  18188. fi
  18189. fi
  18190. # Check whether --enable-pedantic was given.
  18191. if test "${enable_pedantic+set}" = set; then :
  18192. enableval=$enable_pedantic; if test x$enableval = xyes; then
  18193. CFLAGS="$CFLAGS -pedantic"
  18194. fi
  18195. fi
  18196. # Check whether --enable-efence was given.
  18197. if test "${enable_efence+set}" = set; then :
  18198. enableval=$enable_efence; if test x$enableval = xyes; then
  18199. CFLAGS="$CFLAGS -lefence"
  18200. $as_echo "#define EFENCE 1" >>confdefs.h
  18201. fi
  18202. fi
  18203. # Check whether --enable-gprof was given.
  18204. if test "${enable_gprof+set}" = set; then :
  18205. enableval=$enable_gprof; if test x$enableval = xyes; then
  18206. if test $debug = yes; then
  18207. CFLAGS="$CFLAGS -pg"
  18208. else
  18209. # GPROF requires gdb
  18210. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  18211. fi
  18212. $as_echo "#define GPROF 1" >>confdefs.h
  18213. fi
  18214. fi
  18215. enable_pcap_config=no
  18216. # Check whether --enable-pcapconfig was given.
  18217. if test "${enable_pcapconfig+set}" = set; then :
  18218. enableval=$enable_pcapconfig;
  18219. if test $enableval = yes; then
  18220. enable_pcap_config=yes
  18221. { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling libpcap discovery via pcap_config" >&5
  18222. $as_echo "$as_me: Enabling libpcap discovery via pcap_config" >&6;}
  18223. else
  18224. enable_pcap_config=no
  18225. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling libpcap discovery via pcap_config" >&5
  18226. $as_echo "$as_me: Disabling libpcap discovery via pcap_config" >&6;}
  18227. fi
  18228. else
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: Bypassing libpcap discovery via pcap_config" >&5
  18230. $as_echo "$as_me: Bypassing libpcap discovery via pcap_config" >&6;}
  18231. fi
  18232. use64bit_counters=yes
  18233. # Check whether --enable-64bits was given.
  18234. if test "${enable_64bits+set}" = set; then :
  18235. enableval=$enable_64bits;
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  18237. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  18238. else
  18239. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  18240. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  18241. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  18242. fi
  18243. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  18244. # so we can use _U_ to flag unused function arguments and not get warnings
  18245. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  18246. # function argument will compile with non-GCC compilers.
  18247. #
  18248. if test "x$GCC" = "xyes" ; then
  18249. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  18250. else
  18251. CFLAGS="-D_U_=\"\" $CFLAGS"
  18252. fi
  18253. # Check whether --enable-force-bpf was given.
  18254. if test "${enable_force_bpf+set}" = set; then :
  18255. enableval=$enable_force_bpf;
  18256. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  18257. fi
  18258. # Check whether --enable-force-pf was given.
  18259. if test "${enable_force_pf+set}" = set; then :
  18260. enableval=$enable_force_pf;
  18261. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  18262. fi
  18263. # Check whether --enable-force-libdnet was given.
  18264. if test "${enable_force_libdnet+set}" = set; then :
  18265. enableval=$enable_force_libdnet;
  18266. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  18267. fi
  18268. # Check whether --enable-force-inject was given.
  18269. if test "${enable_force_inject+set}" = set; then :
  18270. enableval=$enable_force_inject;
  18271. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  18272. fi
  18273. # Check whether --enable-force-sendpacket was given.
  18274. if test "${enable_force_sendpacket+set}" = set; then :
  18275. enableval=$enable_force_sendpacket;
  18276. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  18277. fi
  18278. static_link=no
  18279. dynamic_link=yes
  18280. # Check whether --enable-static-link was given.
  18281. if test "${enable_static_link+set}" = set; then :
  18282. enableval=$enable_static_link;
  18283. if test $enableval = yes; then
  18284. static_link=yes
  18285. dynamic_link=no
  18286. fi
  18287. fi
  18288. # Check whether --enable-dynamic-link was given.
  18289. if test "${enable_dynamic_link+set}" = set; then :
  18290. enableval=$enable_dynamic_link;
  18291. if test $enableval = no; then
  18292. dynamic_link=no
  18293. static_link=yes
  18294. elif test $static_link = yes; then
  18295. as_fn_error $? "Cannot specify both --enable-dynamic-link and --enable-static-link" "$LINENO" 5
  18296. fi
  18297. fi
  18298. if test $static_link = yes; then
  18299. $as_echo "#define ENABLE_STATIC_LINK 1" >>confdefs.h
  18300. else
  18301. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  18302. fi
  18303. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18304. if test "x$ac_cv_func_inet_aton" = xyes; then :
  18305. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  18306. inet_aton=yes
  18307. else
  18308. inet_aton=no
  18309. fi
  18310. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18311. if test "x$ac_cv_func_inet_pton" = xyes; then :
  18312. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  18313. inet_pton=yes
  18314. else
  18315. inet_pton=no
  18316. fi
  18317. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18318. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  18319. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  18320. inet_ntop=yes
  18321. else
  18322. inet_ntop=no
  18323. fi
  18324. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18325. as_fn_error $? "We need either inet_ntop or inet_pton" "$LINENO" 5
  18326. fi
  18327. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  18328. if test "x$ac_cv_func_inet_addr" = xyes; then :
  18329. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  18330. inet_addr=yes
  18331. else
  18332. inet_addr=no
  18333. fi
  18334. if test x$inet_addr = no ; then
  18335. as_fn_error $? "We need inet_addr. See bug 26" "$LINENO" 5
  18336. fi
  18337. have_tuntap=no
  18338. # Check whether --enable-tuntap was given.
  18339. if test "${enable_tuntap+set}" = set; then :
  18340. enableval=$enable_tuntap; :
  18341. else
  18342. case "$build_os" in
  18343. linux*)
  18344. ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
  18345. if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
  18346. have_tuntap=yes
  18347. fi
  18348. ;;
  18349. *)
  18350. ac_fn_c_check_header_mongrel "$LINENO" "net/if_tun.h" "ac_cv_header_net_if_tun_h" "$ac_includes_default"
  18351. if test "x$ac_cv_header_net_if_tun_h" = xyes; then :
  18352. have_tuntap=yes
  18353. fi
  18354. ;;
  18355. esac
  18356. fi
  18357. if test $have_tuntap = yes ; then
  18358. $as_echo "#define HAVE_TUNTAP 1" >>confdefs.h
  18359. fi
  18360. foundpcap=no
  18361. pf_ring_found=no
  18362. pf_ring_lib=${with_pfring_lib}
  18363. using_pcap_config=no
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  18365. $as_echo_n "checking for libpcap... " >&6; }
  18366. # Check whether --with-libpcap was given.
  18367. if test "${with_libpcap+set}" = set; then :
  18368. withval=$with_libpcap;
  18369. testdir=$withval
  18370. for incl in ${testdir}/include/pcap.h ${testdir}/pcap.h ${testdir}/pcap/pcap.h; do
  18371. if ! test -f "${incl}"; then
  18372. continue
  18373. fi
  18374. LPCAPINC=${incl}
  18375. LPCAPINCDIR=${testdir}
  18376. if test $dynamic_link = yes; then
  18377. for ext in .dylib .so .tbd ; do
  18378. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18379. sharefile=$(ls ${testdir}/$dir/libpcap${ext}* 2> /dev/null | sort | head -n1)
  18380. if test -n "${sharefile}"; then
  18381. LPCAP_LD_LIBRARY_PATH="$(dirname ${sharefile})"
  18382. LPCAPLIB="-L$LPCAP_LD_LIBRARY_PATH -lpcap"
  18383. foundpcap=$testdir
  18384. break
  18385. fi
  18386. done
  18387. if ! test $foundpcap = no; then
  18388. break
  18389. fi
  18390. done
  18391. else
  18392. for ext in ${libext} .a .A.tbd ; do
  18393. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18394. staticfile=$(ls ${testdir}/$dir/libpcap${ext} 2> /dev/null | sort | head -n1)
  18395. if test -n "${staticfile}"; then
  18396. LPCAPLIB="${staticfile}"
  18397. foundpcap=${testdir}
  18398. break
  18399. fi
  18400. done
  18401. done
  18402. fi
  18403. if test $foundpcap = no; then
  18404. as_fn_error $? "\"Unable to find matching library for header file in ${testdir}\"" "$LINENO" 5
  18405. fi
  18406. break
  18407. done
  18408. else
  18409. #
  18410. # Look for pcap-config.
  18411. #
  18412. # I wish this option could be the default, but it is only enabled with --enable-pcapconfig
  18413. #
  18414. # The issue is that libpcap is one of those libraries that is nearly impossible to set up
  18415. # properly across all platforms. The 'pcap-config' script is shipped with new versions of libpcap,
  18416. # and was created to address portability issues. Unfortunately, the script is not updated properly
  18417. # outside of the base distribution. Examples: PF_RING requires 'pthreads', 'numa' and 'rt', but
  18418. # this is not reflect that in the script. OS X Xcode 10.11 SDK creates its own very broken
  18419. # 'pcap-config' script that only occasionally works for dynamic definitions, and definitely
  18420. # does not work for static.
  18421. #
  18422. # The ability to enable this script exists for corner cases where libpcap distributions starts
  18423. # using even more libraries than I am currently not aware of. Originally, you only had to worry
  18424. # about 'nl', but now we have to be prepared to add 'nl-3', 'nl-genl-3' and 'dbus-1' to make
  18425. # libpcap functional. In the future, there may be more.
  18426. #
  18427. # (sigh)
  18428. #
  18429. # So, in the future if libpcap changes and stops working, try setting --enable-pcapconfig. It
  18430. # it may work for you.
  18431. if test $enable_pcap_config = yes; then
  18432. if test -n "$ac_tool_prefix"; then
  18433. # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args.
  18434. set dummy ${ac_tool_prefix}pcap-config; ac_word=$2
  18435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18436. $as_echo_n "checking for $ac_word... " >&6; }
  18437. if ${ac_cv_path_PCAP_CONFIG+:} false; then :
  18438. $as_echo_n "(cached) " >&6
  18439. else
  18440. case $PCAP_CONFIG in
  18441. [\\/]* | ?:[\\/]*)
  18442. ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path.
  18443. ;;
  18444. *)
  18445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18446. for as_dir in $PATH
  18447. do
  18448. IFS=$as_save_IFS
  18449. test -z "$as_dir" && as_dir=.
  18450. for ac_exec_ext in '' $ac_executable_extensions; do
  18451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18452. ac_cv_path_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18454. break 2
  18455. fi
  18456. done
  18457. done
  18458. IFS=$as_save_IFS
  18459. ;;
  18460. esac
  18461. fi
  18462. PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG
  18463. if test -n "$PCAP_CONFIG"; then
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5
  18465. $as_echo "$PCAP_CONFIG" >&6; }
  18466. else
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18468. $as_echo "no" >&6; }
  18469. fi
  18470. fi
  18471. if test -z "$ac_cv_path_PCAP_CONFIG"; then
  18472. ac_pt_PCAP_CONFIG=$PCAP_CONFIG
  18473. # Extract the first word of "pcap-config", so it can be a program name with args.
  18474. set dummy pcap-config; ac_word=$2
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18476. $as_echo_n "checking for $ac_word... " >&6; }
  18477. if ${ac_cv_path_ac_pt_PCAP_CONFIG+:} false; then :
  18478. $as_echo_n "(cached) " >&6
  18479. else
  18480. case $ac_pt_PCAP_CONFIG in
  18481. [\\/]* | ?:[\\/]*)
  18482. ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path.
  18483. ;;
  18484. *)
  18485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18486. for as_dir in $PATH
  18487. do
  18488. IFS=$as_save_IFS
  18489. test -z "$as_dir" && as_dir=.
  18490. for ac_exec_ext in '' $ac_executable_extensions; do
  18491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18492. ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18494. break 2
  18495. fi
  18496. done
  18497. done
  18498. IFS=$as_save_IFS
  18499. ;;
  18500. esac
  18501. fi
  18502. ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG
  18503. if test -n "$ac_pt_PCAP_CONFIG"; then
  18504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5
  18505. $as_echo "$ac_pt_PCAP_CONFIG" >&6; }
  18506. else
  18507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18508. $as_echo "no" >&6; }
  18509. fi
  18510. if test "x$ac_pt_PCAP_CONFIG" = x; then
  18511. PCAP_CONFIG=""
  18512. else
  18513. case $cross_compiling:$ac_tool_warned in
  18514. yes:)
  18515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18517. ac_tool_warned=yes ;;
  18518. esac
  18519. PCAP_CONFIG=$ac_pt_PCAP_CONFIG
  18520. fi
  18521. else
  18522. PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG"
  18523. fi
  18524. if test -n "$PCAP_CONFIG"; then
  18525. #
  18526. # Found - use it to get the include flags for
  18527. # libpcap and the flags to link with libpcap.
  18528. #
  18529. # Please read section 11.6 "Shell Substitutions"
  18530. # in the autoconf manual before doing anything
  18531. # to this that involves quoting. Especially note
  18532. # the statement "There is just no portable way to use
  18533. # double-quoted strings inside double-quoted back-quoted
  18534. # expressions (pfew!)."
  18535. #
  18536. if test $dynamic_link = yes; then
  18537. LPCAPLIB=$($PCAP_CONFIG --libs)
  18538. else
  18539. LPCAPLIB=$($PCAP_CONFIG --libs --static)
  18540. fi
  18541. CFLAGS="$CFLAGS $($PCAP_CONFIG --cflags)"
  18542. if test -n "$LPCAPLIB"; then
  18543. foundpcap=yes
  18544. using_pcap_config=yes
  18545. else
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libpcap using pcap-config" >&5
  18547. $as_echo "$as_me: WARNING: Unable to find libpcap using pcap-config" >&2;}
  18548. fi
  18549. fi
  18550. fi
  18551. if test ! $foundpcap = yes; then
  18552. #
  18553. # Not found; look for pcap.
  18554. #
  18555. for testdir in /usr/local /opt/local /usr /wpdpack $MACOSX_SDK_PATH/usr /usr/local/opt/libpcap ; do
  18556. if test -f "${testdir}/include/pcap.h"; then
  18557. LPCAPINC="${testdir}/include/pcap.h"
  18558. LPCAPINCDIR="${testdir}/include"
  18559. if test $dynamic_link = yes; then
  18560. for ext in .dylib .so .tbd; do
  18561. for dir in . lib lib64 ${host_cpu} lib/${host_cpu} ${host_cpu}-${host_os} lib/${host_cpu}-${host_os} ${MULTIARCH} lib/${MULTIARCH}; do
  18562. sharefile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18563. if test -n "${sharefile}"; then
  18564. LPCAPLIB="-L$(dirname ${sharefile}) -lpcap"
  18565. foundpcap=$testdir
  18566. break
  18567. fi
  18568. done
  18569. if ! test $foundpcap = no; then
  18570. break
  18571. fi
  18572. done
  18573. fi
  18574. if test $foundpcap = no ; then
  18575. for ext in ${libext} .a .A.tbd ; do
  18576. for dir in . lib lib64 lib/${host_cpu}-${host_os} ${host_cpu}-${host_os} lib/${MULTIARCH} ${MULTIARCH}; do
  18577. staticfile=$(ls "${testdir}/$dir/libpcap${ext}" 2> /dev/null | sort | head -n1)
  18578. if test -n "${staticfile}"; then
  18579. LPCAPLIB="${staticfile}"
  18580. foundpcap=$testdir
  18581. break
  18582. fi
  18583. done
  18584. if ! test $foundpcap = no; then
  18585. break
  18586. fi
  18587. done
  18588. fi
  18589. if test $foundpcap = no -a -f "${testdir}/lib/libwpcap.${libext}" ; then
  18590. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18591. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  18592. foundpcap=$testdir
  18593. fi
  18594. fi
  18595. if ! test $foundpcap = no; then
  18596. break
  18597. fi
  18598. done
  18599. fi
  18600. fi
  18601. if test $foundpcap = no ; then
  18602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18603. $as_echo "no" >&6; }
  18604. as_fn_error $? "libpcap not found" "$LINENO" 5
  18605. else
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  18607. $as_echo "$foundpcap" >&6; }
  18608. fi
  18609. ## could be PF_RING
  18610. #
  18611. # library is static and in PF_RING build tree
  18612. #
  18613. # Need access to libpfring library
  18614. # and must find an associated libpfring.a
  18615. if test -n "${with_pfring_lib}"; then
  18616. if test -f ${with_pfring_lib}; then
  18617. pf_ring_lib=${with_pfring_lib}
  18618. pf_ring_found=yes
  18619. else
  18620. as_fn_error $? "\"Unable to find PF_RING library ${with_pfring_lib}\"" "$LINENO" 5
  18621. fi
  18622. fi
  18623. # libpcap can require libnl
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nl_handle_alloc" >&5
  18625. $as_echo_n "checking for library containing nl_handle_alloc... " >&6; }
  18626. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18627. $as_echo_n "(cached) " >&6
  18628. else
  18629. ac_func_search_save_LIBS=$LIBS
  18630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18631. /* end confdefs.h. */
  18632. /* Override any GCC internal prototype to avoid an error.
  18633. Use char because int might match the return type of a GCC
  18634. builtin and then its argument prototype would still apply. */
  18635. #ifdef __cplusplus
  18636. extern "C"
  18637. #endif
  18638. char nl_handle_alloc ();
  18639. int
  18640. main ()
  18641. {
  18642. return nl_handle_alloc ();
  18643. ;
  18644. return 0;
  18645. }
  18646. _ACEOF
  18647. for ac_lib in '' nl; do
  18648. if test -z "$ac_lib"; then
  18649. ac_res="none required"
  18650. else
  18651. ac_res=-l$ac_lib
  18652. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18653. fi
  18654. if ac_fn_c_try_link "$LINENO"; then :
  18655. ac_cv_search_nl_handle_alloc=$ac_res
  18656. fi
  18657. rm -f core conftest.err conftest.$ac_objext \
  18658. conftest$ac_exeext
  18659. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18660. break
  18661. fi
  18662. done
  18663. if ${ac_cv_search_nl_handle_alloc+:} false; then :
  18664. else
  18665. ac_cv_search_nl_handle_alloc=no
  18666. fi
  18667. rm conftest.$ac_ext
  18668. LIBS=$ac_func_search_save_LIBS
  18669. fi
  18670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nl_handle_alloc" >&5
  18671. $as_echo "$ac_cv_search_nl_handle_alloc" >&6; }
  18672. ac_res=$ac_cv_search_nl_handle_alloc
  18673. if test "$ac_res" != no; then :
  18674. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18675. { $as_echo "$as_me:${as_lineno-$LINENO}: Unable to find nl library - may be needed by libpcap" >&5
  18676. $as_echo "$as_me: Unable to find nl library - may be needed by libpcap" >&6;}
  18677. fi
  18678. ##
  18679. ## If not automatically configured,
  18680. ## check for newer and full-featured libpcap's
  18681. ##
  18682. if ! test $using_pcap_config = yes; then
  18683. ## newer libpcap requires dbus and latest nl (e.g. -lnl-genl-3 -lnl-3 -ldbus-1)
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl" >&5
  18685. $as_echo_n "checking for nl_cache_alloc in -lnl... " >&6; }
  18686. if ${ac_cv_lib_nl_nl_cache_alloc+:} false; then :
  18687. $as_echo_n "(cached) " >&6
  18688. else
  18689. ac_check_lib_save_LIBS=$LIBS
  18690. LIBS="-lnl $LIBS"
  18691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18692. /* end confdefs.h. */
  18693. /* Override any GCC internal prototype to avoid an error.
  18694. Use char because int might match the return type of a GCC
  18695. builtin and then its argument prototype would still apply. */
  18696. #ifdef __cplusplus
  18697. extern "C"
  18698. #endif
  18699. char nl_cache_alloc ();
  18700. int
  18701. main ()
  18702. {
  18703. return nl_cache_alloc ();
  18704. ;
  18705. return 0;
  18706. }
  18707. _ACEOF
  18708. if ac_fn_c_try_link "$LINENO"; then :
  18709. ac_cv_lib_nl_nl_cache_alloc=yes
  18710. else
  18711. ac_cv_lib_nl_nl_cache_alloc=no
  18712. fi
  18713. rm -f core conftest.err conftest.$ac_objext \
  18714. conftest$ac_exeext conftest.$ac_ext
  18715. LIBS=$ac_check_lib_save_LIBS
  18716. fi
  18717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_nl_cache_alloc" >&5
  18718. $as_echo "$ac_cv_lib_nl_nl_cache_alloc" >&6; }
  18719. if test "x$ac_cv_lib_nl_nl_cache_alloc" = xyes; then :
  18720. nl_found=yes
  18721. fi
  18722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genl_connect in -lnl-genl-3" >&5
  18723. $as_echo_n "checking for genl_connect in -lnl-genl-3... " >&6; }
  18724. if ${ac_cv_lib_nl_genl_3_genl_connect+:} false; then :
  18725. $as_echo_n "(cached) " >&6
  18726. else
  18727. ac_check_lib_save_LIBS=$LIBS
  18728. LIBS="-lnl-genl-3 $LIBS"
  18729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18730. /* end confdefs.h. */
  18731. /* Override any GCC internal prototype to avoid an error.
  18732. Use char because int might match the return type of a GCC
  18733. builtin and then its argument prototype would still apply. */
  18734. #ifdef __cplusplus
  18735. extern "C"
  18736. #endif
  18737. char genl_connect ();
  18738. int
  18739. main ()
  18740. {
  18741. return genl_connect ();
  18742. ;
  18743. return 0;
  18744. }
  18745. _ACEOF
  18746. if ac_fn_c_try_link "$LINENO"; then :
  18747. ac_cv_lib_nl_genl_3_genl_connect=yes
  18748. else
  18749. ac_cv_lib_nl_genl_3_genl_connect=no
  18750. fi
  18751. rm -f core conftest.err conftest.$ac_objext \
  18752. conftest$ac_exeext conftest.$ac_ext
  18753. LIBS=$ac_check_lib_save_LIBS
  18754. fi
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_genl_3_genl_connect" >&5
  18756. $as_echo "$ac_cv_lib_nl_genl_3_genl_connect" >&6; }
  18757. if test "x$ac_cv_lib_nl_genl_3_genl_connect" = xyes; then :
  18758. nl_genl_3_found=yes
  18759. fi
  18760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_cache_alloc in -lnl-3" >&5
  18761. $as_echo_n "checking for nl_cache_alloc in -lnl-3... " >&6; }
  18762. if ${ac_cv_lib_nl_3_nl_cache_alloc+:} false; then :
  18763. $as_echo_n "(cached) " >&6
  18764. else
  18765. ac_check_lib_save_LIBS=$LIBS
  18766. LIBS="-lnl-3 $LIBS"
  18767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18768. /* end confdefs.h. */
  18769. /* Override any GCC internal prototype to avoid an error.
  18770. Use char because int might match the return type of a GCC
  18771. builtin and then its argument prototype would still apply. */
  18772. #ifdef __cplusplus
  18773. extern "C"
  18774. #endif
  18775. char nl_cache_alloc ();
  18776. int
  18777. main ()
  18778. {
  18779. return nl_cache_alloc ();
  18780. ;
  18781. return 0;
  18782. }
  18783. _ACEOF
  18784. if ac_fn_c_try_link "$LINENO"; then :
  18785. ac_cv_lib_nl_3_nl_cache_alloc=yes
  18786. else
  18787. ac_cv_lib_nl_3_nl_cache_alloc=no
  18788. fi
  18789. rm -f core conftest.err conftest.$ac_objext \
  18790. conftest$ac_exeext conftest.$ac_ext
  18791. LIBS=$ac_check_lib_save_LIBS
  18792. fi
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nl_3_nl_cache_alloc" >&5
  18794. $as_echo "$ac_cv_lib_nl_3_nl_cache_alloc" >&6; }
  18795. if test "x$ac_cv_lib_nl_3_nl_cache_alloc" = xyes; then :
  18796. nl_3_found=yes
  18797. fi
  18798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_malloc in -ldbus-1" >&5
  18799. $as_echo_n "checking for dbus_malloc in -ldbus-1... " >&6; }
  18800. if ${ac_cv_lib_dbus_1_dbus_malloc+:} false; then :
  18801. $as_echo_n "(cached) " >&6
  18802. else
  18803. ac_check_lib_save_LIBS=$LIBS
  18804. LIBS="-ldbus-1 $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 dbus_malloc ();
  18814. int
  18815. main ()
  18816. {
  18817. return dbus_malloc ();
  18818. ;
  18819. return 0;
  18820. }
  18821. _ACEOF
  18822. if ac_fn_c_try_link "$LINENO"; then :
  18823. ac_cv_lib_dbus_1_dbus_malloc=yes
  18824. else
  18825. ac_cv_lib_dbus_1_dbus_malloc=no
  18826. fi
  18827. rm -f core conftest.err conftest.$ac_objext \
  18828. conftest$ac_exeext conftest.$ac_ext
  18829. LIBS=$ac_check_lib_save_LIBS
  18830. fi
  18831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_malloc" >&5
  18832. $as_echo "$ac_cv_lib_dbus_1_dbus_malloc" >&6; }
  18833. if test "x$ac_cv_lib_dbus_1_dbus_malloc" = xyes; then :
  18834. dbus_1_found=yes
  18835. fi
  18836. if test "$nl_found" = "yes"; then
  18837. LPCAPLIB="$LPCAPLIB -lnl"
  18838. fi
  18839. if test "$nl_genl_3_found" = "yes"; then
  18840. LPCAPLIB="$LPCAPLIB -lnl-genl-3"
  18841. fi
  18842. if test "$nl_3_found" = "yes"; then
  18843. LPCAPLIB="$LPCAPLIB -lnl-3"
  18844. fi
  18845. if test "$dbus_1_found" = "yes"; then
  18846. LPCAPLIB="$LPCAPLIB -ldbus-1"
  18847. fi
  18848. ## See if prereqs for PF_RING exist
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for numa_available in -lnuma" >&5
  18850. $as_echo_n "checking for numa_available in -lnuma... " >&6; }
  18851. if ${ac_cv_lib_numa_numa_available+:} false; then :
  18852. $as_echo_n "(cached) " >&6
  18853. else
  18854. ac_check_lib_save_LIBS=$LIBS
  18855. LIBS="-lnuma $LIBS"
  18856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18857. /* end confdefs.h. */
  18858. /* Override any GCC internal prototype to avoid an error.
  18859. Use char because int might match the return type of a GCC
  18860. builtin and then its argument prototype would still apply. */
  18861. #ifdef __cplusplus
  18862. extern "C"
  18863. #endif
  18864. char numa_available ();
  18865. int
  18866. main ()
  18867. {
  18868. return numa_available ();
  18869. ;
  18870. return 0;
  18871. }
  18872. _ACEOF
  18873. if ac_fn_c_try_link "$LINENO"; then :
  18874. ac_cv_lib_numa_numa_available=yes
  18875. else
  18876. ac_cv_lib_numa_numa_available=no
  18877. fi
  18878. rm -f core conftest.err conftest.$ac_objext \
  18879. conftest$ac_exeext conftest.$ac_ext
  18880. LIBS=$ac_check_lib_save_LIBS
  18881. fi
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_numa_numa_available" >&5
  18883. $as_echo "$ac_cv_lib_numa_numa_available" >&6; }
  18884. if test "x$ac_cv_lib_numa_numa_available" = xyes; then :
  18885. numa_found=yes
  18886. fi
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  18888. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  18889. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  18890. $as_echo_n "(cached) " >&6
  18891. else
  18892. ac_check_lib_save_LIBS=$LIBS
  18893. LIBS="-lpthread $LIBS"
  18894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18895. /* end confdefs.h. */
  18896. /* Override any GCC internal prototype to avoid an error.
  18897. Use char because int might match the return type of a GCC
  18898. builtin and then its argument prototype would still apply. */
  18899. #ifdef __cplusplus
  18900. extern "C"
  18901. #endif
  18902. char pthread_create ();
  18903. int
  18904. main ()
  18905. {
  18906. return pthread_create ();
  18907. ;
  18908. return 0;
  18909. }
  18910. _ACEOF
  18911. if ac_fn_c_try_link "$LINENO"; then :
  18912. ac_cv_lib_pthread_pthread_create=yes
  18913. else
  18914. ac_cv_lib_pthread_pthread_create=no
  18915. fi
  18916. rm -f core conftest.err conftest.$ac_objext \
  18917. conftest$ac_exeext conftest.$ac_ext
  18918. LIBS=$ac_check_lib_save_LIBS
  18919. fi
  18920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  18921. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  18922. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  18923. pthread_found=yes
  18924. fi
  18925. if test $pf_ring_found = yes; then
  18926. if ! test "${numa_found}" = "yes"; then
  18927. as_fn_error $? "PF_RING requires libnuma and/or libnuma-dev" "$LINENO" 5
  18928. fi
  18929. if ! test "${pthread_found}" = "yes"; then
  18930. as_fn_error $? "PF_RING requires libpthread" "$LINENO" 5
  18931. fi
  18932. LPCAPLIB="$LPCAPLIB ${pf_ring_lib} -lnuma -lpthread -lrt"
  18933. fi
  18934. fi
  18935. OLDLIBS="$LIBS"
  18936. if test -n "$LPCAPINCDIR"; then
  18937. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18938. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18939. else
  18940. OLDCFLAGS="$CFLAGS"
  18941. LPCAPINCDIR=$(echo $CFLAGS | sed -e 's/^\-I//')
  18942. if test -d "$LPCAPINCDIR/pcap"; then
  18943. LPCAPINC="$LPCAPINCDIR/pcap/pcap.h"
  18944. else
  18945. LPCAPINC="$LPCAPINCDIR/pcap.h"
  18946. fi
  18947. fi
  18948. LIBS="$LPCAPLIB"
  18949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_get_pfring_id" >&5
  18950. $as_echo_n "checking for library containing pcap_get_pfring_id... " >&6; }
  18951. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18952. $as_echo_n "(cached) " >&6
  18953. else
  18954. ac_func_search_save_LIBS=$LIBS
  18955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18956. /* end confdefs.h. */
  18957. /* Override any GCC internal prototype to avoid an error.
  18958. Use char because int might match the return type of a GCC
  18959. builtin and then its argument prototype would still apply. */
  18960. #ifdef __cplusplus
  18961. extern "C"
  18962. #endif
  18963. char pcap_get_pfring_id ();
  18964. int
  18965. main ()
  18966. {
  18967. return pcap_get_pfring_id ();
  18968. ;
  18969. return 0;
  18970. }
  18971. _ACEOF
  18972. for ac_lib in '' pcap; do
  18973. if test -z "$ac_lib"; then
  18974. ac_res="none required"
  18975. else
  18976. ac_res=-l$ac_lib
  18977. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18978. fi
  18979. if ac_fn_c_try_link "$LINENO"; then :
  18980. ac_cv_search_pcap_get_pfring_id=$ac_res
  18981. fi
  18982. rm -f core conftest.err conftest.$ac_objext \
  18983. conftest$ac_exeext
  18984. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18985. break
  18986. fi
  18987. done
  18988. if ${ac_cv_search_pcap_get_pfring_id+:} false; then :
  18989. else
  18990. ac_cv_search_pcap_get_pfring_id=no
  18991. fi
  18992. rm conftest.$ac_ext
  18993. LIBS=$ac_func_search_save_LIBS
  18994. fi
  18995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_get_pfring_id" >&5
  18996. $as_echo "$ac_cv_search_pcap_get_pfring_id" >&6; }
  18997. ac_res=$ac_cv_search_pcap_get_pfring_id
  18998. if test "$ac_res" != no; then :
  18999. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19000. $as_echo "#define HAVE_PF_RING_PCAP /**/" >>confdefs.h
  19001. fi
  19002. ## Does libpcap work with selected libraries?
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  19004. $as_echo_n "checking for library containing pcap_close... " >&6; }
  19005. if ${ac_cv_search_pcap_close+:} false; then :
  19006. $as_echo_n "(cached) " >&6
  19007. else
  19008. ac_func_search_save_LIBS=$LIBS
  19009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19010. /* end confdefs.h. */
  19011. /* Override any GCC internal prototype to avoid an error.
  19012. Use char because int might match the return type of a GCC
  19013. builtin and then its argument prototype would still apply. */
  19014. #ifdef __cplusplus
  19015. extern "C"
  19016. #endif
  19017. char pcap_close ();
  19018. int
  19019. main ()
  19020. {
  19021. return pcap_close ();
  19022. ;
  19023. return 0;
  19024. }
  19025. _ACEOF
  19026. for ac_lib in '' pcap; do
  19027. if test -z "$ac_lib"; then
  19028. ac_res="none required"
  19029. else
  19030. ac_res=-l$ac_lib
  19031. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19032. fi
  19033. if ac_fn_c_try_link "$LINENO"; then :
  19034. ac_cv_search_pcap_close=$ac_res
  19035. fi
  19036. rm -f core conftest.err conftest.$ac_objext \
  19037. conftest$ac_exeext
  19038. if ${ac_cv_search_pcap_close+:} false; then :
  19039. break
  19040. fi
  19041. done
  19042. if ${ac_cv_search_pcap_close+:} false; then :
  19043. else
  19044. ac_cv_search_pcap_close=no
  19045. fi
  19046. rm conftest.$ac_ext
  19047. LIBS=$ac_func_search_save_LIBS
  19048. fi
  19049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  19050. $as_echo "$ac_cv_search_pcap_close" >&6; }
  19051. ac_res=$ac_cv_search_pcap_close
  19052. if test "$ac_res" != no; then :
  19053. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19054. else
  19055. as_fn_error $? "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  19056. fi
  19057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libpcap version" >&5
  19058. $as_echo_n "checking libpcap version... " >&6; }
  19059. libpcap_version=unknown
  19060. libpcap_version_096=no
  19061. cat >conftest.c <<EOF
  19062. #include <string.h>
  19063. #include <stdio.h>
  19064. #include "$LPCAPINC"
  19065. /*
  19066. * simple proggy to get the version of libpcap
  19067. */
  19068. int main() {
  19069. printf("%s\n", pcap_lib_version());
  19070. return 0;
  19071. }
  19072. EOF
  19073. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LPCAPLIB \
  19074. conftest.c $LIBS >/dev/null 2>&1
  19075. if test -x conftest ; then
  19076. full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" ./conftest)
  19077. libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
  19078. pcap_version_ok=yes
  19079. fi
  19080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libpcap_version" >&5
  19081. $as_echo "$libpcap_version" >&6; }
  19082. rm -rf conftest.* core core.conftest 2>&1 > /dev/null
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid libpcap version" >&5
  19084. $as_echo_n "checking for valid libpcap version... " >&6; }
  19085. if test x$libpcap_version != xunknown; then
  19086. libpcap_major=$(echo ${libpcap_version} | ${CUT} -d '.' -f1)
  19087. libpcap_minor=$(echo ${libpcap_version} | ${CUT} -d '.' -f2)
  19088. libpcap_build=$(echo ${libpcap_version} | ${CUT} -d '.' -f3)
  19089. if test $libpcap_major -eq 0 && \
  19090. (test $libpcap_minor -lt 7 || \
  19091. (test $libpcap_minor -eq 7 && test $libpcap_build -lt 2))
  19092. then
  19093. as_fn_error $? "Libpcap versions < 0.7.2 are not supported
  19094. Please upgrade to version 0.7.2 or better. Your version is $libpcap_version" "$LINENO" 5
  19095. fi
  19096. if test $libpcap_major -gt 0 || \
  19097. (test $libpcap_minor -eq 9 && test $libpcap_build -ge 6)
  19098. then
  19099. libpcap_version_096=yes
  19100. fi
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19102. $as_echo "yes" >&6; }
  19103. else
  19104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  19105. $as_echo "unknown" >&6; }
  19106. fi
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  19108. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  19109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19110. /* end confdefs.h. */
  19111. #include <stdio.h>
  19112. #include <stdlib.h>
  19113. #include <string.h>
  19114. #include "$LPCAPINC"
  19115. int
  19116. main ()
  19117. {
  19118. pcap_t *p;
  19119. char *errbuf;
  19120. pcap_setnonblock(p, 1, errbuf);
  19121. exit(0);
  19122. ;
  19123. return 0;
  19124. }
  19125. _ACEOF
  19126. if ac_fn_c_try_link "$LINENO"; then :
  19127. have_pcap_setnonblock=yes
  19128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19129. $as_echo "yes" >&6; }
  19130. else
  19131. have_pcap_setnonblock=no
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19133. $as_echo "no" >&6; }
  19134. fi
  19135. rm -f core conftest.err conftest.$ac_objext \
  19136. conftest$ac_exeext conftest.$ac_ext
  19137. if test $have_pcap_setnonblock = yes ; then
  19138. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  19139. fi
  19140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  19141. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. #include <stdio.h>
  19145. #include <stdlib.h>
  19146. #include <string.h>
  19147. #include "$LPCAPINC"
  19148. int
  19149. main ()
  19150. {
  19151. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  19152. exit(0);
  19153. exit(1);
  19154. ;
  19155. return 0;
  19156. }
  19157. _ACEOF
  19158. if ac_fn_c_try_link "$LINENO"; then :
  19159. have_dlt_to_desc=yes
  19160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19161. $as_echo "yes" >&6; }
  19162. else
  19163. have_dlt_to_desc=no
  19164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19165. $as_echo "no" >&6; }
  19166. fi
  19167. rm -f core conftest.err conftest.$ac_objext \
  19168. conftest$ac_exeext conftest.$ac_ext
  19169. if test $have_dlt_to_desc = yes ; then
  19170. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  19171. fi
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  19173. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  19174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19175. /* end confdefs.h. */
  19176. #include <stdio.h>
  19177. #include <stdlib.h>
  19178. #include <string.h>
  19179. #include "$LPCAPINC"
  19180. int
  19181. main ()
  19182. {
  19183. int f;
  19184. pcap_t *p;
  19185. f = pcap_get_selectable_fd(p);
  19186. exit(0);
  19187. ;
  19188. return 0;
  19189. }
  19190. _ACEOF
  19191. if ac_fn_c_try_link "$LINENO"; then :
  19192. have_pcap_get_selectable_fd=yes
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19194. $as_echo "yes" >&6; }
  19195. else
  19196. have_pcap_get_selectable_fd=no
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19198. $as_echo "no" >&6; }
  19199. fi
  19200. rm -f core conftest.err conftest.$ac_objext \
  19201. conftest$ac_exeext conftest.$ac_ext
  19202. if test x$have_pcap_get_selectable_fd = xyes ; then
  19203. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  19204. fi
  19205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  19206. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  19207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19208. /* end confdefs.h. */
  19209. #include <stdio.h>
  19210. #include <stdlib.h>
  19211. #include <string.h>
  19212. #include "$LPCAPINC"
  19213. int
  19214. main ()
  19215. {
  19216. pcap_dumper_t *dump;
  19217. pcap_t *pcap;
  19218. FILE *foo;
  19219. dump = pcap_dump_fopen(pcap, foo);
  19220. ;
  19221. return 0;
  19222. }
  19223. _ACEOF
  19224. if ac_fn_c_try_link "$LINENO"; then :
  19225. have_pcap_dump_fopen=yes
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19227. $as_echo "yes" >&6; }
  19228. else
  19229. have_pcap_dump_fopen=no
  19230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19231. $as_echo "no" >&6; }
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext \
  19234. conftest$ac_exeext conftest.$ac_ext
  19235. if test $have_pcap_dump_fopen = yes ; then
  19236. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  19237. else
  19238. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  19239. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  19240. fi
  19241. have_pcap_inject=no
  19242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  19243. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  19244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19245. /* end confdefs.h. */
  19246. #include <stdio.h>
  19247. #include <stdlib.h>
  19248. #include <string.h>
  19249. #include "$LPCAPINC"
  19250. int
  19251. main ()
  19252. {
  19253. pcap_t *pcap;
  19254. char *buf;
  19255. pcap_inject(pcap, (void *)buf, 0);
  19256. ;
  19257. return 0;
  19258. }
  19259. _ACEOF
  19260. if ac_fn_c_try_link "$LINENO"; then :
  19261. have_pcap_inject=yes
  19262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19263. $as_echo "yes" >&6; }
  19264. else
  19265. have_pcap_inject=no
  19266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19267. $as_echo "no" >&6; }
  19268. fi
  19269. rm -f core conftest.err conftest.$ac_objext \
  19270. conftest$ac_exeext conftest.$ac_ext
  19271. if test $have_pcap_inject = yes ; then
  19272. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  19273. fi
  19274. have_pcap_sendpacket=no
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  19276. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  19277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19278. /* end confdefs.h. */
  19279. #include <stdio.h>
  19280. #include <stdlib.h>
  19281. #include <string.h>
  19282. #include "$LPCAPINC"
  19283. int
  19284. main ()
  19285. {
  19286. pcap_t *pcap;
  19287. u_char *buf;
  19288. pcap_sendpacket(pcap, buf, 0);
  19289. ;
  19290. return 0;
  19291. }
  19292. _ACEOF
  19293. if ac_fn_c_try_link "$LINENO"; then :
  19294. have_pcap_sendpacket=yes
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19296. $as_echo "yes" >&6; }
  19297. else
  19298. have_pcap_sendpacket=no
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19300. $as_echo "no" >&6; }
  19301. fi
  19302. rm -f core conftest.err conftest.$ac_objext \
  19303. conftest$ac_exeext conftest.$ac_ext
  19304. if test $have_pcap_sendpacket = yes ; then
  19305. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  19306. fi
  19307. have_pcap_breakloop=no
  19308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  19309. $as_echo_n "checking for pcap_breakloop... " >&6; }
  19310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19311. /* end confdefs.h. */
  19312. #include <stdio.h>
  19313. #include <stdlib.h>
  19314. #include <string.h>
  19315. #include "$LPCAPINC"
  19316. int
  19317. main ()
  19318. {
  19319. pcap_t *pcap;
  19320. pcap_sendpacket(pcap);
  19321. ;
  19322. return 0;
  19323. }
  19324. _ACEOF
  19325. if ac_fn_c_try_link "$LINENO"; then :
  19326. have_pcap_breakloop=yes
  19327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19328. $as_echo "yes" >&6; }
  19329. else
  19330. have_pcap_breakloop=no
  19331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19332. $as_echo "no" >&6; }
  19333. fi
  19334. rm -f core conftest.err conftest.$ac_objext \
  19335. conftest$ac_exeext conftest.$ac_ext
  19336. if test $have_pcap_breakloop = yes ; then
  19337. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  19338. fi
  19339. have_pcap_version=no
  19340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  19341. $as_echo_n "checking for pcap_version... " >&6; }
  19342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19343. /* end confdefs.h. */
  19344. #include <stdio.h>
  19345. #include <stdlib.h>
  19346. #include <string.h>
  19347. #include "$LPCAPINC"
  19348. extern char pcap_version[];
  19349. int
  19350. main ()
  19351. {
  19352. printf("%s", pcap_version);
  19353. ;
  19354. return 0;
  19355. }
  19356. _ACEOF
  19357. if ac_fn_c_try_link "$LINENO"; then :
  19358. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19360. $as_echo "yes" >&6; }
  19361. else
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19363. $as_echo "no" >&6; }
  19364. fi
  19365. rm -f core conftest.err conftest.$ac_objext \
  19366. conftest$ac_exeext conftest.$ac_ext
  19367. have_pcap_snapshot=no
  19368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  19369. $as_echo_n "checking for pcap_snapshot... " >&6; }
  19370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19371. /* end confdefs.h. */
  19372. #include <stdio.h>
  19373. #include <stdlib.h>
  19374. #include <string.h>
  19375. #include "$LPCAPINC"
  19376. int
  19377. main ()
  19378. {
  19379. pcap_t *p;
  19380. int len;
  19381. len = pcap_snapshot(p);
  19382. exit(0);
  19383. ;
  19384. return 0;
  19385. }
  19386. _ACEOF
  19387. if ac_fn_c_try_link "$LINENO"; then :
  19388. have_pcap_snapshot=yes
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19390. $as_echo "yes" >&6; }
  19391. else
  19392. have_pcap_snapshot=no
  19393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19394. $as_echo "no" >&6; }
  19395. fi
  19396. rm -f core conftest.err conftest.$ac_objext \
  19397. conftest$ac_exeext conftest.$ac_ext
  19398. if test $have_pcap_snapshot = yes ; then
  19399. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  19400. fi
  19401. # Tcpbridge requires libpcap and pcap_sendpacket()
  19402. enable_tcpbridge=no
  19403. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  19404. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  19405. if test x$have_bpf = xno; then
  19406. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19407. enable_tcpbridge=yes
  19408. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19409. $as_echo "$as_me: Building tcpbridge" >&6;}
  19410. # BPF systems need to also have pcap_setnonblock()
  19411. elif test x$have_pcap_setnonblock = xyes ; then
  19412. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  19413. enable_tcpbridge=yes
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  19415. $as_echo "$as_me: Building tcpbridge" >&6;}
  19416. else
  19417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19418. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19419. fi
  19420. fi
  19421. if test x$enable_tcpbridge = xyes ; then
  19422. COMPILE_TCPBRIDGE_TRUE=
  19423. COMPILE_TCPBRIDGE_FALSE='#'
  19424. else
  19425. COMPILE_TCPBRIDGE_TRUE='#'
  19426. COMPILE_TCPBRIDGE_FALSE=
  19427. fi
  19428. # tcpliveplay requires linux OS to function properly
  19429. enable_tcpliveplay=no
  19430. case $host in
  19431. *-*-linux*)
  19432. $as_echo "#define ENABLE_TCPLIVEPLAY 1" >>confdefs.h
  19433. enable_tcpliveplay=yes
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpliveplay" >&5
  19435. $as_echo "$as_me: Building tcpliveplay" >&6;}
  19436. ;;
  19437. *)
  19438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&5
  19439. $as_echo "$as_me: WARNING: Unable to build tcpliveplay. This tool is only enabled on linux environments." >&2;}
  19440. ;;
  19441. esac
  19442. if test x$enable_tcpliveplay = xyes ; then
  19443. COMPILE_TCPLIVEPLAY_TRUE=
  19444. COMPILE_TCPLIVEPLAY_FALSE='#'
  19445. else
  19446. COMPILE_TCPLIVEPLAY_TRUE='#'
  19447. COMPILE_TCPLIVEPLAY_FALSE=
  19448. fi
  19449. have_netmap=no
  19450. enable_netmap=no
  19451. trynetmapdir=
  19452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap socket sending support" >&5
  19453. $as_echo_n "checking for netmap socket sending support... " >&6; }
  19454. # Check whether --with-netmap was given.
  19455. if test "${with_netmap+set}" = set; then :
  19456. withval=$with_netmap; trynetmapdir=$withval
  19457. fi
  19458. NETMAP_SEARCH_DIRS=
  19459. if test "$cross_compiling" = yes; then
  19460. if test "x$trynetmapdir" != "x"; then
  19461. NETMAP_SEARCH_DIRS=$trynetmapdir
  19462. fi
  19463. else
  19464. 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"
  19465. fi
  19466. for testdir in $NETMAP_SEARCH_DIRS; do
  19467. if test -f "${testdir}/sys/net/netmap.h" ; then
  19468. NETMAPINC="${testdir}/sys/net/netmap.h"
  19469. NETMAPUSERINC="${testdir}/sys/net/netmap_user.h"
  19470. NETMAPINCDIR="${testdir}/sys"
  19471. have_netmap="yes $testdir"
  19472. enable_netmap=yes
  19473. else
  19474. if test -f "${testdir}/net/netmap.h" ; then
  19475. NETMAPINC="${testdir}/net/netmap.h"
  19476. NETMAPUSERINC="${testdir}/net/netmap_user.h"
  19477. NETMAPINCDIR="${testdir}"
  19478. have_netmap="yes $testdir"
  19479. enable_netmap=yes
  19480. fi
  19481. fi
  19482. if test "$have_netmap" != no ; then
  19483. NETMAPFLAGS="-DHAVE_NETMAP"
  19484. OLDCFLAGS="$CFLAGS -I$NETMAPINCDIR"
  19485. CFLAGS="$CFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19486. $as_echo "#define HAVE_NETMAP 1" >>confdefs.h
  19487. have_netmap="yes $testdir"
  19488. enable_netmap=yes
  19489. break;
  19490. fi
  19491. done
  19492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_netmap" >&5
  19493. $as_echo "$have_netmap" >&6; }
  19494. if test x$enable_netmap = xyes ; then
  19495. COMPILE_NETMAP_TRUE=
  19496. COMPILE_NETMAP_FALSE='#'
  19497. else
  19498. COMPILE_NETMAP_TRUE='#'
  19499. COMPILE_NETMAP_FALSE=
  19500. fi
  19501. if test "x$NETMAPINCDIR" != "x"; then
  19502. OLDCPPFLAGS="$CPPFLAGS"
  19503. CPPFLAGS="$CPPFLAGS -DNETMAP_WITH_LIBS -DND -I$NETMAPINCDIR"
  19504. have_nm_open=no
  19505. have_nm_nr_reg_mask=no
  19506. have_nm_nr_flags=no
  19507. have_nmring_head_tail=no
  19508. if test "$have_netmap" != no ; then
  19509. ac_fn_c_check_decl "$LINENO" "nm_open" "ac_cv_have_decl_nm_open" "
  19510. #include <stdio.h>
  19511. #include \"${NETMAPUSERINC}\"
  19512. "
  19513. if test "x$ac_cv_have_decl_nm_open" = xyes; then :
  19514. have_nm_open=yes
  19515. fi
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap NR_REG_MASK definition" >&5
  19517. $as_echo_n "checking for netmap NR_REG_MASK definition... " >&6; }
  19518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19519. /* end confdefs.h. */
  19520. #include <stdint.h>
  19521. #include <sys/socket.h>
  19522. #include <net/if.h>
  19523. #include <net/netmap.h>
  19524. int
  19525. main ()
  19526. {
  19527. #ifdef NR_REG_MASK
  19528. /* OK */
  19529. #else
  19530. # error NR_REG_MASK not found
  19531. #endif
  19532. ;
  19533. return 0;
  19534. }
  19535. _ACEOF
  19536. if ac_fn_c_try_compile "$LINENO"; then :
  19537. have_nm_nr_reg_mask=yes
  19538. fi
  19539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_reg_mask" >&5
  19541. $as_echo "$have_nm_nr_reg_mask" >&6; }
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap nr_flags definition" >&5
  19543. $as_echo_n "checking for netmap nr_flags definition... " >&6; }
  19544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19545. /* end confdefs.h. */
  19546. #include <stdint.h>
  19547. #include <sys/socket.h>
  19548. #include <net/if.h>
  19549. #include <net/netmap.h>
  19550. int
  19551. main ()
  19552. {
  19553. struct nmreq nmr;
  19554. nmr.nr_flags = 0;
  19555. ;
  19556. return 0;
  19557. }
  19558. _ACEOF
  19559. if ac_fn_c_try_compile "$LINENO"; then :
  19560. have_nm_nr_flags=yes
  19561. fi
  19562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nm_nr_flags" >&5
  19564. $as_echo "$have_nm_nr_flags" >&6; }
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap ring head/tail definitions" >&5
  19566. $as_echo_n "checking for netmap ring head/tail definitions... " >&6; }
  19567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19568. /* end confdefs.h. */
  19569. #include <stdint.h>
  19570. #include <sys/socket.h>
  19571. #include <net/if.h>
  19572. #include <net/netmap.h>
  19573. int
  19574. main ()
  19575. {
  19576. struct netmap_ring r;
  19577. r.head = r.tail = 0;
  19578. ;
  19579. return 0;
  19580. }
  19581. _ACEOF
  19582. if ac_fn_c_try_compile "$LINENO"; then :
  19583. have_nmring_head_tail=yes
  19584. fi
  19585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nmring_head_tail" >&5
  19587. $as_echo "$have_nmring_head_tail" >&6; }
  19588. fi
  19589. if test "$have_nm_open" = yes ; then
  19590. $as_echo "#define HAVE_NETMAP_NM_OPEN 1" >>confdefs.h
  19591. fi
  19592. if test "$have_nm_nr_reg_mask" = yes ; then
  19593. $as_echo "#define HAVE_NETMAP_NR_REG 1" >>confdefs.h
  19594. fi
  19595. if test "$have_nm_nr_flags" = yes ; then
  19596. $as_echo "#define HAVE_NETMAP_NR_FLAGS 1" >>confdefs.h
  19597. fi
  19598. if test "$have_nmring_head_tail" = yes ; then
  19599. $as_echo "#define HAVE_NETMAP_RING_HEAD_TAIL 1" >>confdefs.h
  19600. fi
  19601. CPPFLAGS="$OLDCPPFLAGS"
  19602. fi
  19603. have_pf=no
  19604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  19605. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19607. /* end confdefs.h. */
  19608. #include <sys/socket.h>
  19609. #include <netpacket/packet.h>
  19610. #include <net/ethernet.h> /* the L2 protocols */
  19611. #include <netinet/in.h> /* htons */
  19612. int
  19613. main ()
  19614. {
  19615. int pf_socket;
  19616. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19617. ;
  19618. return 0;
  19619. }
  19620. _ACEOF
  19621. if ac_fn_c_try_compile "$LINENO"; then :
  19622. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  19623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19624. $as_echo "yes" >&6; }
  19625. have_pf=yes
  19626. else
  19627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19628. $as_echo "no" >&6; }
  19629. fi
  19630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19631. have_tx_ring=no
  19632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TX_RING socket sending support" >&5
  19633. $as_echo_n "checking for TX_RING socket sending support... " >&6; }
  19634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19635. /* end confdefs.h. */
  19636. #include <sys/socket.h>
  19637. #include <netpacket/packet.h>
  19638. #include <net/ethernet.h> /* the L2 protocols */
  19639. #include <netinet/in.h> /* htons */
  19640. #include <linux/if_packet.h>
  19641. int
  19642. main ()
  19643. {
  19644. int test;
  19645. test = TP_STATUS_WRONG_FORMAT
  19646. ;
  19647. return 0;
  19648. }
  19649. _ACEOF
  19650. if ac_fn_c_try_compile "$LINENO"; then :
  19651. $as_echo "#define HAVE_TX_RING 1" >>confdefs.h
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19653. $as_echo "yes" >&6; }
  19654. have_tx_ring=yes
  19655. else
  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 conftest.$ac_ext
  19660. for ac_header in net/bpf.h
  19661. do :
  19662. ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
  19663. if test "x$ac_cv_header_net_bpf_h" = xyes; then :
  19664. cat >>confdefs.h <<_ACEOF
  19665. #define HAVE_NET_BPF_H 1
  19666. _ACEOF
  19667. have_bpf=yes
  19668. else
  19669. have_bpf=no
  19670. fi
  19671. done
  19672. if test $have_bpf = yes ; then
  19673. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  19674. fi
  19675. founddnet=no
  19676. have_libdnet=no
  19677. libdnet_version=
  19678. enable_fragroute=no
  19679. trydnetdir=/usr/local
  19680. if test $have_cygwin = no ; then
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  19682. $as_echo_n "checking for libdnet... " >&6; }
  19683. # Check whether --with-libdnet was given.
  19684. if test "${with_libdnet+set}" = set; then :
  19685. withval=$with_libdnet; trydnetdir=$withval
  19686. fi
  19687. if test $trydnetdir != no; then
  19688. case "$build_os" in
  19689. linux*)
  19690. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19691. if test -x ${testdir}/bin/dumbnet-config -a $founddnet = no ; then
  19692. LDNETINC="$($testdir/bin/dumbnet-config --cflags)"
  19693. LDNETLIB="$($testdir/bin/dumbnet-config --libs)"
  19694. libdnet_version="$($testdir/bin/dumbnet-config --version) (libdumbnet)"
  19695. founddnet=$testdir
  19696. fi
  19697. done
  19698. ;;
  19699. esac
  19700. if test $founddnet = no ; then
  19701. for testdir in $trydnetdir /usr/local /opt/local $MACOSX_SDK_PATH/usr /usr ; do
  19702. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19703. LDNETINC="$($testdir/bin/dnet-config --cflags)"
  19704. LDNETLIB="$($testdir/bin/dnet-config --libs)"
  19705. libdnet_version="$($testdir/bin/dnet-config --version)"
  19706. founddnet=$testdir
  19707. fi
  19708. done
  19709. fi
  19710. fi
  19711. if test $founddnet = no ; then
  19712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19713. $as_echo "no" >&6; }
  19714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  19715. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19716. else
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  19718. $as_echo "$founddnet" >&6; }
  19719. enable_fragroute=yes
  19720. have_libdnet=yes
  19721. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  19722. old_cflags=$CFLAGS
  19723. CFLAGS=$LDNETINC
  19724. for ac_header in dumbnet.h dnet.h
  19725. do :
  19726. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19727. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19728. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19729. cat >>confdefs.h <<_ACEOF
  19730. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19731. _ACEOF
  19732. fi
  19733. done
  19734. CFLAGS=$old_cflags
  19735. fi
  19736. else
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19738. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19739. fi
  19740. cat >>confdefs.h <<_ACEOF
  19741. #define LIBDNET_VERSION "$libdnet_version"
  19742. _ACEOF
  19743. if test x$founddnet != xno; then
  19744. COMPILE_FRAGROUTE_TRUE=
  19745. COMPILE_FRAGROUTE_FALSE='#'
  19746. else
  19747. COMPILE_FRAGROUTE_TRUE='#'
  19748. COMPILE_FRAGROUTE_FALSE=
  19749. fi
  19750. if test x$founddnet != xno ; then
  19751. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  19752. fi
  19753. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19754. -a $have_libdnet = no -a $have_pf = no ; then
  19755. as_fn_error $? "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  19756. fi
  19757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  19758. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. #include "$LPCAPINC"
  19762. int
  19763. main ()
  19764. {
  19765. int foo;
  19766. foo = DLT_LINUX_SLL
  19767. ;
  19768. return 0;
  19769. }
  19770. _ACEOF
  19771. if ac_fn_c_try_compile "$LINENO"; then :
  19772. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19774. $as_echo "yes" >&6; }
  19775. else
  19776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19777. $as_echo "no" >&6; }
  19778. fi
  19779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  19781. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19783. /* end confdefs.h. */
  19784. #include "$LPCAPINC"
  19785. int
  19786. main ()
  19787. {
  19788. int foo;
  19789. foo = DLT_C_HDLC
  19790. ;
  19791. return 0;
  19792. }
  19793. _ACEOF
  19794. if ac_fn_c_try_compile "$LINENO"; then :
  19795. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  19796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19797. $as_echo "yes" >&6; }
  19798. else
  19799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19800. $as_echo "no" >&6; }
  19801. fi
  19802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19803. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  19805. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19807. /* end confdefs.h. */
  19808. #include <sys/types.h>
  19809. #include <sys/time.h>
  19810. #include <stdint.h>
  19811. #include "$PCAP_BPF_H_FILE"
  19812. int
  19813. main ()
  19814. {
  19815. int foo;
  19816. foo = BPF_MAJOR_VERSION;
  19817. ;
  19818. return 0;
  19819. }
  19820. _ACEOF
  19821. if ac_fn_c_try_compile "$LINENO"; then :
  19822. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19824. $as_echo "yes" >&6; }
  19825. else
  19826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19827. $as_echo "no" >&6; }
  19828. fi
  19829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19830. foundbpfheader=no
  19831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  19832. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19833. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19834. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19836. /* end confdefs.h. */
  19837. #include <sys/types.h>
  19838. #include <sys/time.h>
  19839. #include <stdint.h>
  19840. #include "$testfile"
  19841. int
  19842. main ()
  19843. {
  19844. int foo;
  19845. foo = BPF_MAJOR_VERSION;
  19846. ;
  19847. return 0;
  19848. }
  19849. _ACEOF
  19850. if ac_fn_c_try_compile "$LINENO"; then :
  19851. foundbpfheader=yes
  19852. PCAP_BPF_H_FILE=$testfile
  19853. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  19854. fi
  19855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19856. fi
  19857. done
  19858. if test $foundbpfheader != no; then
  19859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  19860. $as_echo "$testfile" >&6; }
  19861. else
  19862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19863. $as_echo "no" >&6; }
  19864. fi
  19865. have_pcap_netmap=no
  19866. if test $foundpcap != no ; then
  19867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netmap libpcap" >&5
  19868. $as_echo_n "checking for netmap libpcap... " >&6; }
  19869. PCAP_NETMAP_C_FILE="$LPCAPINCDIR/pcap-netmap.c"
  19870. if test -f "${PCAP_NETMAP_C_FILE}" ; then
  19871. $as_echo "#define HAVE_LIBPCAP_NETMAP 1" >>confdefs.h
  19872. have_pcap_netmap=yes
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19874. $as_echo "yes" >&6; }
  19875. else
  19876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19877. $as_echo "no" >&6; }
  19878. fi
  19879. fi
  19880. LIBS="$OLDLIBS"
  19881. CFLAGS="$OLDCFLAGS"
  19882. pcapnav_ver=no
  19883. pcncfg=no
  19884. # Check whether --with-pcapnav-config was given.
  19885. if test "${with_pcapnav_config+set}" = set; then :
  19886. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  19887. $as_echo_n "checking for pcapnav-config... " >&6; }
  19888. if test -x $withval ; then
  19889. pcncfg=$withval
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19891. $as_echo "$pcncfg" >&6; }
  19892. elif test x$withval = xno ; then
  19893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19894. $as_echo "no" >&6; }
  19895. else
  19896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19897. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19898. fi
  19899. else
  19900. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19901. set dummy pcapnav-config; ac_word=$2
  19902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19903. $as_echo_n "checking for $ac_word... " >&6; }
  19904. if ${ac_cv_path_pcncfg+:} false; then :
  19905. $as_echo_n "(cached) " >&6
  19906. else
  19907. case $pcncfg in
  19908. [\\/]* | ?:[\\/]*)
  19909. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19910. ;;
  19911. *)
  19912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19913. for as_dir in $PATH
  19914. do
  19915. IFS=$as_save_IFS
  19916. test -z "$as_dir" && as_dir=.
  19917. for ac_exec_ext in '' $ac_executable_extensions; do
  19918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19919. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19921. break 2
  19922. fi
  19923. done
  19924. done
  19925. IFS=$as_save_IFS
  19926. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19927. ;;
  19928. esac
  19929. fi
  19930. pcncfg=$ac_cv_path_pcncfg
  19931. if test -n "$pcncfg"; then
  19932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  19933. $as_echo "$pcncfg" >&6; }
  19934. else
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19936. $as_echo "no" >&6; }
  19937. fi
  19938. fi
  19939. if test $pcncfg != no ; then
  19940. LNAVLIB=$($pcncfg --libs)
  19941. LNAV_CFLAGS=$($pcncfg --cflags)
  19942. PCAPNAV_VERSION=$($pcncfg --version)
  19943. cat >>confdefs.h <<_ACEOF
  19944. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  19945. _ACEOF
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  19947. $as_echo_n "checking for libpcapnav version... " >&6; }
  19948. if test "$cross_compiling" = yes; then :
  19949. libpcapnav_ver=no
  19950. else
  19951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19952. /* end confdefs.h. */
  19953. #include <string.h>
  19954. #define PCAPNAV_TEST "0.4"
  19955. /*
  19956. * simple proggy to test the version of libpcapnav
  19957. * returns zero if version >= 0.4
  19958. * or one otherwise
  19959. */
  19960. int
  19961. main (int argc, char *argv[])
  19962. {
  19963. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  19964. return 0;
  19965. return 1;
  19966. }
  19967. _ACEOF
  19968. if ac_fn_c_try_run "$LINENO"; then :
  19969. libpcapnav_ver=yes
  19970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  19971. $as_echo ">= 0.4" >&6; }
  19972. else
  19973. libpcapnav_ver=no
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  19975. $as_echo "< 0.4" >&6; }
  19976. fi
  19977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19978. conftest.$ac_objext conftest.beam conftest.$ac_ext
  19979. fi
  19980. if test x$libpcapnav_ver = xno ; then
  19981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  19982. Please upgrade to version 0.4 or better.
  19983. Disabling offset jump feature." >&5
  19984. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  19985. Please upgrade to version 0.4 or better.
  19986. Disabling offset jump feature." >&2;}
  19987. else
  19988. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  19989. fi
  19990. fi # checking pcapnav version
  19991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  19992. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  19993. if ${unaligned_cv_fail+:} false; then :
  19994. $as_echo_n "(cached) " >&6
  19995. else
  19996. case "$host_os" in
  19997. darwin*)
  19998. # macOS M1 test fails due to lack of fork() so just hard code it
  19999. unaligned_cv_fail=no
  20000. ;;
  20001. *)
  20002. case "$host_cpu" in
  20003. # XXX: should also check that they don't do weird things
  20004. alpha*|arm*|hp*|mips*|sparc*|ia64)
  20005. unaligned_cv_fail=yes
  20006. ;;
  20007. *)
  20008. cat >conftest.c <<EOF
  20009. #include <sys/types.h>
  20010. #include <sys/wait.h>
  20011. #include <stdio.h>
  20012. #include <unistd.h>
  20013. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  20014. int main() {
  20015. unsigned int i;
  20016. pid_t pid;
  20017. int status;
  20018. /* avoid "core dumped" message */
  20019. pid = fork();
  20020. if (pid < 0)
  20021. return 2;
  20022. if (pid > 0) {
  20023. /* parent */
  20024. pid = waitpid(pid, &status, 0);
  20025. if (pid < 0)
  20026. return 3;
  20027. return !WIFEXITED(status);
  20028. }
  20029. /* child */
  20030. i = *(unsigned int *)&a[1];
  20031. printf("%d\n", i);
  20032. return 0;
  20033. }
  20034. EOF
  20035. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  20036. conftest.c $LIBS >/dev/null 2>&1
  20037. if test ! -x conftest ; then
  20038. unaligned_cv_fail=yes
  20039. else
  20040. ./conftest >conftest.out
  20041. if test ! -s conftest.out ; then
  20042. unaligned_cv_fail=yes
  20043. else
  20044. unaligned_cv_fail=no
  20045. fi
  20046. fi
  20047. rm -f conftest* core core.conftest
  20048. ;;
  20049. esac
  20050. ;;
  20051. esac
  20052. fi
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  20054. $as_echo "$unaligned_cv_fail" >&6; }
  20055. if test $unaligned_cv_fail = yes ; then
  20056. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  20057. fi
  20058. tcpdump_path=no
  20059. # Check whether --with-tcpdump was given.
  20060. if test "${with_tcpdump+set}" = set; then :
  20061. withval=$with_tcpdump; if test -x $withval ; then
  20062. tcpdump_path=$withval
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  20064. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  20065. else
  20066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  20067. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  20068. fi
  20069. else
  20070. # Extract the first word of "tcpdump", so it can be a program name with args.
  20071. set dummy tcpdump; ac_word=$2
  20072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20073. $as_echo_n "checking for $ac_word... " >&6; }
  20074. if ${ac_cv_path_tcpdump_path+:} false; then :
  20075. $as_echo_n "(cached) " >&6
  20076. else
  20077. case $tcpdump_path in
  20078. [\\/]* | ?:[\\/]*)
  20079. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  20080. ;;
  20081. *)
  20082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20083. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  20084. for as_dir in $as_dummy
  20085. do
  20086. IFS=$as_save_IFS
  20087. test -z "$as_dir" && as_dir=.
  20088. for ac_exec_ext in '' $ac_executable_extensions; do
  20089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20090. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  20091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20092. break 2
  20093. fi
  20094. done
  20095. done
  20096. IFS=$as_save_IFS
  20097. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  20098. ;;
  20099. esac
  20100. fi
  20101. tcpdump_path=$ac_cv_path_tcpdump_path
  20102. if test -n "$tcpdump_path"; then
  20103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  20104. $as_echo "$tcpdump_path" >&6; }
  20105. else
  20106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20107. $as_echo "no" >&6; }
  20108. fi
  20109. fi
  20110. if test "$tcpdump_path" = "no"; then
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20112. Disabling --verbose" >&5
  20113. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  20114. Disabling --verbose" >&2;}
  20115. else
  20116. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  20117. cat >>confdefs.h <<_ACEOF
  20118. #define TCPDUMP_BINARY "$tcpdump_path"
  20119. _ACEOF
  20120. fi
  20121. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  20122. ENABLE_TCPDUMP_TRUE=
  20123. ENABLE_TCPDUMP_FALSE='#'
  20124. else
  20125. ENABLE_TCPDUMP_TRUE='#'
  20126. ENABLE_TCPDUMP_FALSE=
  20127. fi
  20128. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  20129. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  20130. else
  20131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap does not support --verbose" >&5
  20132. $as_echo "$as_me: WARNING: Your version of libpcap does not support --verbose" >&2;}
  20133. fi
  20134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  20135. $as_echo_n "checking for 'make test' profile... " >&6; }
  20136. if test "$host" = "$build" ; then
  20137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20138. $as_echo "yes" >&6; }
  20139. else
  20140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  20141. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to do tests when cross-compiling" >&5
  20143. $as_echo "Unable to do tests when cross-compiling" >&6; }
  20144. fi
  20145. # Check whether --with-testnic was given.
  20146. if test "${with_testnic+set}" = set; then :
  20147. withval=$with_testnic; nic1=$withval
  20148. nic2=$withval
  20149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  20150. $as_echo "Using --with-testnic=$withval" >&6; }
  20151. else
  20152. case $host in
  20153. *-*-linux*)
  20154. nic1=eth0
  20155. nic2=eth0
  20156. ;;
  20157. *-*-solaris*)
  20158. nic1=hme0
  20159. nic2=hme0
  20160. ;;
  20161. *-*-sunos*)
  20162. nic1=hme0
  20163. nic2=hme0
  20164. ;;
  20165. *-apple-darwin*)
  20166. nic1=en0
  20167. nic2=en0
  20168. ;;
  20169. *-*-openbsd*)
  20170. nic1=xl0
  20171. nic2=xl0
  20172. ;;
  20173. *-*-freebsd*)
  20174. nic1=em0
  20175. nic2=em0
  20176. ;;
  20177. *-*-cygwin)
  20178. nic1=%0
  20179. nic2=%0
  20180. ;;
  20181. *)
  20182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  20183. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  20184. nic1=%0
  20185. nic2=%0
  20186. ;;
  20187. esac
  20188. fi
  20189. disable_pcap_findalldevs=no
  20190. osx_frameworks=no
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS version" >&5
  20192. $as_echo_n "checking for OS version... " >&6; }
  20193. case $host in
  20194. *-*-linux*)
  20195. $as_echo "#define HAVE_LINUX 1" >>confdefs.h
  20196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  20197. $as_echo "Linux" >&6; }
  20198. ;;
  20199. *-*-solaris*)
  20200. $as_echo "#define HAVE_SOLARIS 1" >>confdefs.h
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  20202. $as_echo "Solaris" >&6; }
  20203. ;;
  20204. *-*-sunos*)
  20205. $as_echo "#define HAVE_SUNOS 1" >>confdefs.h
  20206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  20207. $as_echo "SunOS" >&6; }
  20208. ;;
  20209. *-apple-darwin*)
  20210. if test x$libpcap_version_096 = xno ; then
  20211. disable_pcap_findalldevs=yes
  20212. fi
  20213. osx_frameworks=yes
  20214. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple macOS" >&5
  20216. $as_echo "Apple macOS" >&6; }
  20217. ;;
  20218. *-*-openbsd*)
  20219. $as_echo "#define HAVE_OPENBSD 1" >>confdefs.h
  20220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  20221. $as_echo "OpenBSD" >&6; }
  20222. ;;
  20223. *-*-freebsd*)
  20224. $as_echo "#define HAVE_FREEBSD 1" >>confdefs.h
  20225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  20226. $as_echo "FreeBSD" >&6; }
  20227. ;;
  20228. *-*-cygwin)
  20229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  20230. $as_echo "Win32/Cygwin" >&6; }
  20231. $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
  20232. ;;
  20233. *)
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown!" >&5
  20235. $as_echo "$host is unknown!" >&6; }
  20236. ;;
  20237. esac
  20238. if test "$osx_frameworks" = "yes"; then
  20239. ENABLE_OSX_FRAMEWORKS_TRUE=
  20240. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  20241. else
  20242. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  20243. ENABLE_OSX_FRAMEWORKS_FALSE=
  20244. fi
  20245. # Check whether --with-testnic2 was given.
  20246. if test "${with_testnic2+set}" = set; then :
  20247. withval=$with_testnic2; nic2=$withval
  20248. fi
  20249. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  20250. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  20252. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  20254. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  20255. if test x$disable_pcap_findalldevs = xno ; then
  20256. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  20257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20258. $as_echo "yes" >&6; }
  20259. else
  20260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20261. $as_echo "no" >&6; }
  20262. fi
  20263. ac_header_dirent=no
  20264. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20265. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  20267. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20268. if eval \${$as_ac_Header+:} false; then :
  20269. $as_echo_n "(cached) " >&6
  20270. else
  20271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20272. /* end confdefs.h. */
  20273. #include <sys/types.h>
  20274. #include <$ac_hdr>
  20275. int
  20276. main ()
  20277. {
  20278. if ((DIR *) 0)
  20279. return 0;
  20280. ;
  20281. return 0;
  20282. }
  20283. _ACEOF
  20284. if ac_fn_c_try_compile "$LINENO"; then :
  20285. eval "$as_ac_Header=yes"
  20286. else
  20287. eval "$as_ac_Header=no"
  20288. fi
  20289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20290. fi
  20291. eval ac_res=\$$as_ac_Header
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20293. $as_echo "$ac_res" >&6; }
  20294. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20295. cat >>confdefs.h <<_ACEOF
  20296. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20297. _ACEOF
  20298. ac_header_dirent=$ac_hdr; break
  20299. fi
  20300. done
  20301. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20302. if test $ac_header_dirent = dirent.h; then
  20303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20304. $as_echo_n "checking for library containing opendir... " >&6; }
  20305. if ${ac_cv_search_opendir+:} false; then :
  20306. $as_echo_n "(cached) " >&6
  20307. else
  20308. ac_func_search_save_LIBS=$LIBS
  20309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20310. /* end confdefs.h. */
  20311. /* Override any GCC internal prototype to avoid an error.
  20312. Use char because int might match the return type of a GCC
  20313. builtin and then its argument prototype would still apply. */
  20314. #ifdef __cplusplus
  20315. extern "C"
  20316. #endif
  20317. char opendir ();
  20318. int
  20319. main ()
  20320. {
  20321. return opendir ();
  20322. ;
  20323. return 0;
  20324. }
  20325. _ACEOF
  20326. for ac_lib in '' dir; do
  20327. if test -z "$ac_lib"; then
  20328. ac_res="none required"
  20329. else
  20330. ac_res=-l$ac_lib
  20331. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20332. fi
  20333. if ac_fn_c_try_link "$LINENO"; then :
  20334. ac_cv_search_opendir=$ac_res
  20335. fi
  20336. rm -f core conftest.err conftest.$ac_objext \
  20337. conftest$ac_exeext
  20338. if ${ac_cv_search_opendir+:} false; then :
  20339. break
  20340. fi
  20341. done
  20342. if ${ac_cv_search_opendir+:} false; then :
  20343. else
  20344. ac_cv_search_opendir=no
  20345. fi
  20346. rm conftest.$ac_ext
  20347. LIBS=$ac_func_search_save_LIBS
  20348. fi
  20349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20350. $as_echo "$ac_cv_search_opendir" >&6; }
  20351. ac_res=$ac_cv_search_opendir
  20352. if test "$ac_res" != no; then :
  20353. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20354. fi
  20355. else
  20356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  20357. $as_echo_n "checking for library containing opendir... " >&6; }
  20358. if ${ac_cv_search_opendir+:} false; then :
  20359. $as_echo_n "(cached) " >&6
  20360. else
  20361. ac_func_search_save_LIBS=$LIBS
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. /* Override any GCC internal prototype to avoid an error.
  20365. Use char because int might match the return type of a GCC
  20366. builtin and then its argument prototype would still apply. */
  20367. #ifdef __cplusplus
  20368. extern "C"
  20369. #endif
  20370. char opendir ();
  20371. int
  20372. main ()
  20373. {
  20374. return opendir ();
  20375. ;
  20376. return 0;
  20377. }
  20378. _ACEOF
  20379. for ac_lib in '' x; do
  20380. if test -z "$ac_lib"; then
  20381. ac_res="none required"
  20382. else
  20383. ac_res=-l$ac_lib
  20384. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20385. fi
  20386. if ac_fn_c_try_link "$LINENO"; then :
  20387. ac_cv_search_opendir=$ac_res
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext \
  20390. conftest$ac_exeext
  20391. if ${ac_cv_search_opendir+:} false; then :
  20392. break
  20393. fi
  20394. done
  20395. if ${ac_cv_search_opendir+:} false; then :
  20396. else
  20397. ac_cv_search_opendir=no
  20398. fi
  20399. rm conftest.$ac_ext
  20400. LIBS=$ac_func_search_save_LIBS
  20401. fi
  20402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  20403. $as_echo "$ac_cv_search_opendir" >&6; }
  20404. ac_res=$ac_cv_search_opendir
  20405. if test "$ac_res" != no; then :
  20406. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20407. fi
  20408. fi
  20409. # =================
  20410. # AC_CHECK_HEADERS
  20411. # =================
  20412. for ac_header in \
  20413. sys/mman.h sys/param.h sys/poll.h sys/procset.h \
  20414. sys/select.h sys/socket.h sys/stropts.h sys/time.h \
  20415. sys/un.h sys/wait.h dlfcn.h errno.h \
  20416. fcntl.h libgen.h libintl.h memory.h \
  20417. netinet/in.h setjmp.h stdbool.h sysexits.h \
  20418. unistd.h utime.h
  20419. do :
  20420. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20421. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20422. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20423. cat >>confdefs.h <<_ACEOF
  20424. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20425. _ACEOF
  20426. fi
  20427. done
  20428. for ac_header in stdarg.h varargs.h
  20429. do :
  20430. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20431. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20432. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20433. cat >>confdefs.h <<_ACEOF
  20434. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20435. _ACEOF
  20436. lo_have_arg_hdr=true;break
  20437. else
  20438. lo_have_arg_hdr=false
  20439. fi
  20440. done
  20441. for ac_header in string.h strings.h
  20442. do :
  20443. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20444. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20445. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20446. cat >>confdefs.h <<_ACEOF
  20447. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20448. _ACEOF
  20449. lo_have_str_hdr=true;break
  20450. else
  20451. lo_have_str_hdr=false
  20452. fi
  20453. done
  20454. for ac_header in limits.h sys/limits.h values.h
  20455. do :
  20456. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20457. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20458. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20459. cat >>confdefs.h <<_ACEOF
  20460. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20461. _ACEOF
  20462. lo_have_lim_hdr=true;break
  20463. else
  20464. lo_have_lim_hdr=false
  20465. fi
  20466. done
  20467. for ac_header in inttypes.h stdint.h
  20468. do :
  20469. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20470. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  20471. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20472. cat >>confdefs.h <<_ACEOF
  20473. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20474. _ACEOF
  20475. lo_have_typ_hdr=true;break
  20476. else
  20477. lo_have_typ_hdr=false
  20478. fi
  20479. done
  20480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
  20481. $as_echo_n "checking for working stdnoreturn.h... " >&6; }
  20482. if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
  20483. $as_echo_n "(cached) " >&6
  20484. else
  20485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20486. /* end confdefs.h. */
  20487. #include <stdlib.h>
  20488. #include <stdnoreturn.h>
  20489. /* Do not check for 'noreturn' after the return type.
  20490. C11 allows it, but it's rarely done that way
  20491. and circa-2012 bleeding-edge GCC rejects it when given
  20492. -Werror=old-style-declaration. */
  20493. noreturn void foo1 (void) { exit (0); }
  20494. _Noreturn void foo2 (void) { exit (0); }
  20495. int testit (int argc, char **argv) {
  20496. if (argc & 1)
  20497. return 0;
  20498. (argv[0][0] ? foo1 : foo2) ();
  20499. }
  20500. int
  20501. main ()
  20502. {
  20503. ;
  20504. return 0;
  20505. }
  20506. _ACEOF
  20507. if ac_fn_c_try_compile "$LINENO"; then :
  20508. gl_cv_header_working_stdnoreturn_h=yes
  20509. else
  20510. gl_cv_header_working_stdnoreturn_h=no
  20511. fi
  20512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20513. fi
  20514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
  20515. $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
  20516. if test $gl_cv_header_working_stdnoreturn_h = yes; then
  20517. STDNORETURN_H=''
  20518. else
  20519. STDNORETURN_H='stdnoreturn.h'
  20520. fi
  20521. if test -n "$STDNORETURN_H"; then
  20522. GL_GENERATE_STDNORETURN_H_TRUE=
  20523. GL_GENERATE_STDNORETURN_H_FALSE='#'
  20524. else
  20525. GL_GENERATE_STDNORETURN_H_TRUE='#'
  20526. GL_GENERATE_STDNORETURN_H_FALSE=
  20527. fi
  20528. # ----------------------------------------------------------------------
  20529. # check for various programs used during the build.
  20530. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20531. # ----------------------------------------------------------------------
  20532. for ac_header in runetype.h wchar.h
  20533. do :
  20534. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20535. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  20536. $ac_includes_default
  20537. #if HAVE_RUNETYPE_H
  20538. # include <runetype.h>
  20539. #endif
  20540. "
  20541. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  20542. cat >>confdefs.h <<_ACEOF
  20543. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20544. _ACEOF
  20545. fi
  20546. done
  20547. # Check whether --enable-nls was given.
  20548. if test "${enable_nls+set}" = set; then :
  20549. enableval=$enable_nls;
  20550. fi
  20551. if test "x$enable_nls" != "xno" && \
  20552. test "X${ac_cv_header_libintl_h}" = Xyes; then :
  20553. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  20554. fi
  20555. # --------------------------------------------
  20556. # Verify certain entries from AC_CHECK_HEADERS
  20557. # --------------------------------------------
  20558. ${lo_have_arg_hdr} || \
  20559. as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
  20560. ${lo_have_str_hdr} || \
  20561. as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
  20562. ${lo_have_lim_hdr} || \
  20563. as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  20564. ${lo_have_typ_hdr} || \
  20565. as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
  20566. for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
  20567. do eval as_ac_var=\${ac_cv_header_${f}_h}
  20568. test "X${as_ac_var}" = Xyes || {
  20569. as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
  20570. }
  20571. done
  20572. test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
  20573. echo '#include <stdint.h>' > inttypes.h
  20574. # ----------------------------------------------------------------------
  20575. # Checks for typedefs
  20576. # ----------------------------------------------------------------------
  20577. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  20578. if test "x$ac_cv_type_wchar_t" = xyes; then :
  20579. cat >>confdefs.h <<_ACEOF
  20580. #define HAVE_WCHAR_T 1
  20581. _ACEOF
  20582. fi
  20583. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  20584. $ac_includes_default
  20585. #if HAVE_RUNETYPE_H
  20586. # include <runetype.h>
  20587. #endif
  20588. #if HAVE_WCHAR_H
  20589. # include <wchar.h>
  20590. #endif
  20591. "
  20592. if test "x$ac_cv_type_wint_t" = xyes; then :
  20593. cat >>confdefs.h <<_ACEOF
  20594. #define HAVE_WINT_T 1
  20595. _ACEOF
  20596. fi
  20597. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  20598. if test "x$ac_cv_type_int8_t" = xyes; then :
  20599. cat >>confdefs.h <<_ACEOF
  20600. #define HAVE_INT8_T 1
  20601. _ACEOF
  20602. fi
  20603. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  20604. if test "x$ac_cv_type_uint8_t" = xyes; then :
  20605. cat >>confdefs.h <<_ACEOF
  20606. #define HAVE_UINT8_T 1
  20607. _ACEOF
  20608. fi
  20609. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  20610. if test "x$ac_cv_type_int16_t" = xyes; then :
  20611. cat >>confdefs.h <<_ACEOF
  20612. #define HAVE_INT16_T 1
  20613. _ACEOF
  20614. fi
  20615. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  20616. if test "x$ac_cv_type_uint16_t" = xyes; then :
  20617. cat >>confdefs.h <<_ACEOF
  20618. #define HAVE_UINT16_T 1
  20619. _ACEOF
  20620. fi
  20621. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  20622. if test "x$ac_cv_type_int32_t" = xyes; then :
  20623. cat >>confdefs.h <<_ACEOF
  20624. #define HAVE_INT32_T 1
  20625. _ACEOF
  20626. fi
  20627. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  20628. if test "x$ac_cv_type_uint32_t" = xyes; then :
  20629. cat >>confdefs.h <<_ACEOF
  20630. #define HAVE_UINT32_T 1
  20631. _ACEOF
  20632. fi
  20633. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  20634. if test "x$ac_cv_type_intptr_t" = xyes; then :
  20635. cat >>confdefs.h <<_ACEOF
  20636. #define HAVE_INTPTR_T 1
  20637. _ACEOF
  20638. fi
  20639. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  20640. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  20641. cat >>confdefs.h <<_ACEOF
  20642. #define HAVE_UINTPTR_T 1
  20643. _ACEOF
  20644. fi
  20645. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  20646. if test "x$ac_cv_type_uint_t" = xyes; then :
  20647. cat >>confdefs.h <<_ACEOF
  20648. #define HAVE_UINT_T 1
  20649. _ACEOF
  20650. fi
  20651. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  20652. if test "x$ac_cv_type_pid_t" = xyes; then :
  20653. cat >>confdefs.h <<_ACEOF
  20654. #define HAVE_PID_T 1
  20655. _ACEOF
  20656. fi
  20657. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20658. if test "x$ac_cv_type_size_t" = xyes; then :
  20659. cat >>confdefs.h <<_ACEOF
  20660. #define HAVE_SIZE_T 1
  20661. _ACEOF
  20662. fi
  20663. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  20664. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  20665. cat >>confdefs.h <<_ACEOF
  20666. #define HAVE_PTRDIFF_T 1
  20667. _ACEOF
  20668. fi
  20669. # The cast to long int works around a bug in the HP C Compiler
  20670. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20671. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20672. # This bug is HP SR number 8606223364.
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  20674. $as_echo_n "checking size of char *... " >&6; }
  20675. if ${ac_cv_sizeof_char_p+:} false; then :
  20676. $as_echo_n "(cached) " >&6
  20677. else
  20678. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  20679. else
  20680. if test "$ac_cv_type_char_p" = yes; then
  20681. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20682. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20683. as_fn_error 77 "cannot compute sizeof (char *)
  20684. See \`config.log' for more details" "$LINENO" 5; }
  20685. else
  20686. ac_cv_sizeof_char_p=0
  20687. fi
  20688. fi
  20689. fi
  20690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  20691. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  20692. cat >>confdefs.h <<_ACEOF
  20693. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  20694. _ACEOF
  20695. # The cast to long int works around a bug in the HP C Compiler
  20696. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20697. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20698. # This bug is HP SR number 8606223364.
  20699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  20700. $as_echo_n "checking size of int... " >&6; }
  20701. if ${ac_cv_sizeof_int+:} false; then :
  20702. $as_echo_n "(cached) " >&6
  20703. else
  20704. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  20705. else
  20706. if test "$ac_cv_type_int" = yes; then
  20707. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20708. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20709. as_fn_error 77 "cannot compute sizeof (int)
  20710. See \`config.log' for more details" "$LINENO" 5; }
  20711. else
  20712. ac_cv_sizeof_int=0
  20713. fi
  20714. fi
  20715. fi
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  20717. $as_echo "$ac_cv_sizeof_int" >&6; }
  20718. cat >>confdefs.h <<_ACEOF
  20719. #define SIZEOF_INT $ac_cv_sizeof_int
  20720. _ACEOF
  20721. # The cast to long int works around a bug in the HP C Compiler
  20722. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20723. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20724. # This bug is HP SR number 8606223364.
  20725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  20726. $as_echo_n "checking size of long... " >&6; }
  20727. if ${ac_cv_sizeof_long+:} false; then :
  20728. $as_echo_n "(cached) " >&6
  20729. else
  20730. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  20731. else
  20732. if test "$ac_cv_type_long" = yes; then
  20733. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20734. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20735. as_fn_error 77 "cannot compute sizeof (long)
  20736. See \`config.log' for more details" "$LINENO" 5; }
  20737. else
  20738. ac_cv_sizeof_long=0
  20739. fi
  20740. fi
  20741. fi
  20742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  20743. $as_echo "$ac_cv_sizeof_long" >&6; }
  20744. cat >>confdefs.h <<_ACEOF
  20745. #define SIZEOF_LONG $ac_cv_sizeof_long
  20746. _ACEOF
  20747. # The cast to long int works around a bug in the HP C Compiler
  20748. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  20749. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  20750. # This bug is HP SR number 8606223364.
  20751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  20752. $as_echo_n "checking size of short... " >&6; }
  20753. if ${ac_cv_sizeof_short+:} false; then :
  20754. $as_echo_n "(cached) " >&6
  20755. else
  20756. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  20757. else
  20758. if test "$ac_cv_type_short" = yes; then
  20759. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20760. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20761. as_fn_error 77 "cannot compute sizeof (short)
  20762. See \`config.log' for more details" "$LINENO" 5; }
  20763. else
  20764. ac_cv_sizeof_short=0
  20765. fi
  20766. fi
  20767. fi
  20768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  20769. $as_echo "$ac_cv_sizeof_short" >&6; }
  20770. cat >>confdefs.h <<_ACEOF
  20771. #define SIZEOF_SHORT $ac_cv_sizeof_short
  20772. _ACEOF
  20773. # ------------
  20774. # AC_CHECK_LIB
  20775. # ------------
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  20777. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  20778. if ${ac_cv_lib_gen_pathfind+:} false; then :
  20779. $as_echo_n "(cached) " >&6
  20780. else
  20781. ac_check_lib_save_LIBS=$LIBS
  20782. LIBS="-lgen $LIBS"
  20783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20784. /* end confdefs.h. */
  20785. /* Override any GCC internal prototype to avoid an error.
  20786. Use char because int might match the return type of a GCC
  20787. builtin and then its argument prototype would still apply. */
  20788. #ifdef __cplusplus
  20789. extern "C"
  20790. #endif
  20791. char pathfind ();
  20792. int
  20793. main ()
  20794. {
  20795. return pathfind ();
  20796. ;
  20797. return 0;
  20798. }
  20799. _ACEOF
  20800. if ac_fn_c_try_link "$LINENO"; then :
  20801. ac_cv_lib_gen_pathfind=yes
  20802. else
  20803. ac_cv_lib_gen_pathfind=no
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext \
  20806. conftest$ac_exeext conftest.$ac_ext
  20807. LIBS=$ac_check_lib_save_LIBS
  20808. fi
  20809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  20810. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  20811. if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
  20812. cat >>confdefs.h <<_ACEOF
  20813. #define HAVE_LIBGEN 1
  20814. _ACEOF
  20815. LIBS="-lgen $LIBS"
  20816. fi
  20817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
  20818. $as_echo_n "checking for gettext in -lintl... " >&6; }
  20819. if ${ac_cv_lib_intl_gettext+:} false; then :
  20820. $as_echo_n "(cached) " >&6
  20821. else
  20822. ac_check_lib_save_LIBS=$LIBS
  20823. LIBS="-lintl $LIBS"
  20824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20825. /* end confdefs.h. */
  20826. /* Override any GCC internal prototype to avoid an error.
  20827. Use char because int might match the return type of a GCC
  20828. builtin and then its argument prototype would still apply. */
  20829. #ifdef __cplusplus
  20830. extern "C"
  20831. #endif
  20832. char gettext ();
  20833. int
  20834. main ()
  20835. {
  20836. return gettext ();
  20837. ;
  20838. return 0;
  20839. }
  20840. _ACEOF
  20841. if ac_fn_c_try_link "$LINENO"; then :
  20842. ac_cv_lib_intl_gettext=yes
  20843. else
  20844. ac_cv_lib_intl_gettext=no
  20845. fi
  20846. rm -f core conftest.err conftest.$ac_objext \
  20847. conftest$ac_exeext conftest.$ac_ext
  20848. LIBS=$ac_check_lib_save_LIBS
  20849. fi
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
  20851. $as_echo "$ac_cv_lib_intl_gettext" >&6; }
  20852. if test "x$ac_cv_lib_intl_gettext" = xyes; then :
  20853. cat >>confdefs.h <<_ACEOF
  20854. #define HAVE_LIBINTL 1
  20855. _ACEOF
  20856. LIBS="-lintl $LIBS"
  20857. fi
  20858. for ac_func in vprintf
  20859. do :
  20860. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  20861. if test "x$ac_cv_func_vprintf" = xyes; then :
  20862. cat >>confdefs.h <<_ACEOF
  20863. #define HAVE_VPRINTF 1
  20864. _ACEOF
  20865. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  20866. if test "x$ac_cv_func__doprnt" = xyes; then :
  20867. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  20868. fi
  20869. fi
  20870. done
  20871. for ac_header in vfork.h
  20872. do :
  20873. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  20874. if test "x$ac_cv_header_vfork_h" = xyes; then :
  20875. cat >>confdefs.h <<_ACEOF
  20876. #define HAVE_VFORK_H 1
  20877. _ACEOF
  20878. fi
  20879. done
  20880. for ac_func in fork vfork
  20881. do :
  20882. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20883. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20884. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20885. cat >>confdefs.h <<_ACEOF
  20886. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20887. _ACEOF
  20888. fi
  20889. done
  20890. if test "x$ac_cv_func_fork" = xyes; then
  20891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  20892. $as_echo_n "checking for working fork... " >&6; }
  20893. if ${ac_cv_func_fork_works+:} false; then :
  20894. $as_echo_n "(cached) " >&6
  20895. else
  20896. if test "$cross_compiling" = yes; then :
  20897. ac_cv_func_fork_works=cross
  20898. else
  20899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20900. /* end confdefs.h. */
  20901. $ac_includes_default
  20902. int
  20903. main ()
  20904. {
  20905. /* By Ruediger Kuhlmann. */
  20906. return fork () < 0;
  20907. ;
  20908. return 0;
  20909. }
  20910. _ACEOF
  20911. if ac_fn_c_try_run "$LINENO"; then :
  20912. ac_cv_func_fork_works=yes
  20913. else
  20914. ac_cv_func_fork_works=no
  20915. fi
  20916. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20917. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20918. fi
  20919. fi
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  20921. $as_echo "$ac_cv_func_fork_works" >&6; }
  20922. else
  20923. ac_cv_func_fork_works=$ac_cv_func_fork
  20924. fi
  20925. if test "x$ac_cv_func_fork_works" = xcross; then
  20926. case $host in
  20927. *-*-amigaos* | *-*-msdosdjgpp*)
  20928. # Override, as these systems have only a dummy fork() stub
  20929. ac_cv_func_fork_works=no
  20930. ;;
  20931. *)
  20932. ac_cv_func_fork_works=yes
  20933. ;;
  20934. esac
  20935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  20936. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  20937. fi
  20938. ac_cv_func_vfork_works=$ac_cv_func_vfork
  20939. if test "x$ac_cv_func_vfork" = xyes; then
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  20941. $as_echo_n "checking for working vfork... " >&6; }
  20942. if ${ac_cv_func_vfork_works+:} false; then :
  20943. $as_echo_n "(cached) " >&6
  20944. else
  20945. if test "$cross_compiling" = yes; then :
  20946. ac_cv_func_vfork_works=cross
  20947. else
  20948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20949. /* end confdefs.h. */
  20950. /* Thanks to Paul Eggert for this test. */
  20951. $ac_includes_default
  20952. #include <sys/wait.h>
  20953. #ifdef HAVE_VFORK_H
  20954. # include <vfork.h>
  20955. #endif
  20956. /* On some sparc systems, changes by the child to local and incoming
  20957. argument registers are propagated back to the parent. The compiler
  20958. is told about this with #include <vfork.h>, but some compilers
  20959. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  20960. static variable whose address is put into a register that is
  20961. clobbered by the vfork. */
  20962. static void
  20963. #ifdef __cplusplus
  20964. sparc_address_test (int arg)
  20965. # else
  20966. sparc_address_test (arg) int arg;
  20967. #endif
  20968. {
  20969. static pid_t child;
  20970. if (!child) {
  20971. child = vfork ();
  20972. if (child < 0) {
  20973. perror ("vfork");
  20974. _exit(2);
  20975. }
  20976. if (!child) {
  20977. arg = getpid();
  20978. write(-1, "", 0);
  20979. _exit (arg);
  20980. }
  20981. }
  20982. }
  20983. int
  20984. main ()
  20985. {
  20986. pid_t parent = getpid ();
  20987. pid_t child;
  20988. sparc_address_test (0);
  20989. child = vfork ();
  20990. if (child == 0) {
  20991. /* Here is another test for sparc vfork register problems. This
  20992. test uses lots of local variables, at least as many local
  20993. variables as main has allocated so far including compiler
  20994. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  20995. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  20996. reuse the register of parent for one of the local variables,
  20997. since it will think that parent can't possibly be used any more
  20998. in this routine. Assigning to the local variable will thus
  20999. munge parent in the parent process. */
  21000. pid_t
  21001. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  21002. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  21003. /* Convince the compiler that p..p7 are live; otherwise, it might
  21004. use the same hardware register for all 8 local variables. */
  21005. if (p != p1 || p != p2 || p != p3 || p != p4
  21006. || p != p5 || p != p6 || p != p7)
  21007. _exit(1);
  21008. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  21009. from child file descriptors. If the child closes a descriptor
  21010. before it execs or exits, this munges the parent's descriptor
  21011. as well. Test for this by closing stdout in the child. */
  21012. _exit(close(fileno(stdout)) != 0);
  21013. } else {
  21014. int status;
  21015. struct stat st;
  21016. while (wait(&status) != child)
  21017. ;
  21018. return (
  21019. /* Was there some problem with vforking? */
  21020. child < 0
  21021. /* Did the child fail? (This shouldn't happen.) */
  21022. || status
  21023. /* Did the vfork/compiler bug occur? */
  21024. || parent != getpid()
  21025. /* Did the file descriptor bug occur? */
  21026. || fstat(fileno(stdout), &st) != 0
  21027. );
  21028. }
  21029. }
  21030. _ACEOF
  21031. if ac_fn_c_try_run "$LINENO"; then :
  21032. ac_cv_func_vfork_works=yes
  21033. else
  21034. ac_cv_func_vfork_works=no
  21035. fi
  21036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21037. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21038. fi
  21039. fi
  21040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  21041. $as_echo "$ac_cv_func_vfork_works" >&6; }
  21042. fi;
  21043. if test "x$ac_cv_func_fork_works" = xcross; then
  21044. ac_cv_func_vfork_works=$ac_cv_func_vfork
  21045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  21046. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  21047. fi
  21048. if test "x$ac_cv_func_vfork_works" = xyes; then
  21049. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  21050. else
  21051. $as_echo "#define vfork fork" >>confdefs.h
  21052. fi
  21053. if test "x$ac_cv_func_fork_works" = xyes; then
  21054. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  21055. fi
  21056. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  21057. strrchr strsignal fchmod fstat chmod
  21058. do :
  21059. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21060. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21061. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21062. cat >>confdefs.h <<_ACEOF
  21063. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21064. _ACEOF
  21065. fi
  21066. done
  21067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21068. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21069. if ${ac_cv_path_SED+:} false; then :
  21070. $as_echo_n "(cached) " >&6
  21071. else
  21072. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21073. for ac_i in 1 2 3 4 5 6 7; do
  21074. ac_script="$ac_script$as_nl$ac_script"
  21075. done
  21076. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21077. { ac_script=; unset ac_script;}
  21078. if test -z "$SED"; then
  21079. ac_path_SED_found=false
  21080. # Loop through the user's path and test for each of PROGNAME-LIST
  21081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21082. for as_dir in $PATH
  21083. do
  21084. IFS=$as_save_IFS
  21085. test -z "$as_dir" && as_dir=.
  21086. for ac_prog in sed gsed; do
  21087. for ac_exec_ext in '' $ac_executable_extensions; do
  21088. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21089. as_fn_executable_p "$ac_path_SED" || continue
  21090. # Check for GNU ac_path_SED and select it if it is found.
  21091. # Check for GNU $ac_path_SED
  21092. case `"$ac_path_SED" --version 2>&1` in
  21093. *GNU*)
  21094. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21095. *)
  21096. ac_count=0
  21097. $as_echo_n 0123456789 >"conftest.in"
  21098. while :
  21099. do
  21100. cat "conftest.in" "conftest.in" >"conftest.tmp"
  21101. mv "conftest.tmp" "conftest.in"
  21102. cp "conftest.in" "conftest.nl"
  21103. $as_echo '' >> "conftest.nl"
  21104. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21105. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21106. as_fn_arith $ac_count + 1 && ac_count=$as_val
  21107. if test $ac_count -gt ${ac_path_SED_max-0}; then
  21108. # Best one so far, save it but keep looking for a better one
  21109. ac_cv_path_SED="$ac_path_SED"
  21110. ac_path_SED_max=$ac_count
  21111. fi
  21112. # 10*(2^10) chars as input seems more than enough
  21113. test $ac_count -gt 10 && break
  21114. done
  21115. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21116. esac
  21117. $ac_path_SED_found && break 3
  21118. done
  21119. done
  21120. done
  21121. IFS=$as_save_IFS
  21122. if test -z "$ac_cv_path_SED"; then
  21123. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21124. fi
  21125. else
  21126. ac_cv_path_SED=$SED
  21127. fi
  21128. fi
  21129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21130. $as_echo "$ac_cv_path_SED" >&6; }
  21131. SED="$ac_cv_path_SED"
  21132. rm -f conftest.sed
  21133. while :
  21134. do
  21135. POSIX_SHELL=`which bash`
  21136. test -x "$POSIX_SHELL" && break
  21137. POSIX_SHELL=`which dash`
  21138. test -x "$POSIX_SHELL" && break
  21139. POSIX_SHELL=/usr/xpg4/bin/sh
  21140. test -x "$POSIX_SHELL" && break
  21141. POSIX_SHELL=`/bin/sh -c '
  21142. exec 2>/dev/null
  21143. if ! true ; then exit 1 ; fi
  21144. echo /bin/sh'`
  21145. test -x "$POSIX_SHELL" && break
  21146. as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
  21147. done
  21148. cat >>confdefs.h <<_ACEOF
  21149. #define POSIX_SHELL "${POSIX_SHELL}"
  21150. _ACEOF
  21151. LIBOPTS_BUILD_BLOCKED=''
  21152. NEED_LIBOPTS_DIR=''
  21153. # Check whether --enable-local-libopts was given.
  21154. if test "${enable_local_libopts+set}" = set; then :
  21155. enableval=$enable_local_libopts;
  21156. if test x$enableval = xyes ; then
  21157. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  21158. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  21159. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21160. NEED_LIBOPTS_DIR=true
  21161. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21162. fi
  21163. fi
  21164. # Check whether --enable-libopts-install was given.
  21165. if test "${enable_libopts_install+set}" = set; then :
  21166. enableval=$enable_libopts_install;
  21167. fi
  21168. if test "X${enable_libopts_install}" = Xyes; then
  21169. INSTALL_LIBOPTS_TRUE=
  21170. INSTALL_LIBOPTS_FALSE='#'
  21171. else
  21172. INSTALL_LIBOPTS_TRUE='#'
  21173. INSTALL_LIBOPTS_FALSE=
  21174. fi
  21175. if test -z "${NEED_LIBOPTS_DIR}" ; then
  21176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  21177. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  21178. # Check whether --with-autoopts-config was given.
  21179. if test "${with_autoopts_config+set}" = set; then :
  21180. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  21181. else
  21182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  21183. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  21184. if ${lo_cv_with_autoopts_config+:} false; then :
  21185. $as_echo_n "(cached) " >&6
  21186. else
  21187. if autoopts-config --help 2>/dev/null 1>&2
  21188. then lo_cv_with_autoopts_config=autoopts-config
  21189. elif libopts-config --help 2>/dev/null 1>&2
  21190. then lo_cv_with_autoopts_config=libopts-config
  21191. else lo_cv_with_autoopts_config=no ; fi
  21192. fi
  21193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  21194. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  21195. fi
  21196. # end of AC_ARG_WITH
  21197. if ${lo_cv_test_autoopts+:} false; then :
  21198. $as_echo_n "(cached) " >&6
  21199. else
  21200. if test -z "${lo_cv_with_autoopts_config}" \
  21201. -o X"${lo_cv_with_autoopts_config}" = Xno
  21202. then
  21203. if autoopts-config --help 2>/dev/null 1>&2
  21204. then lo_cv_with_autoopts_config=autoopts-config
  21205. elif libopts-config --help 2>/dev/null 1>&2
  21206. then lo_cv_with_autoopts_config=libopts-config
  21207. else lo_cv_with_autoopts_config=false ; fi
  21208. fi
  21209. lo_cv_test_autoopts=`
  21210. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  21211. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  21212. then lo_cv_test_autoopts=no ; fi
  21213. fi
  21214. # end of CACHE_VAL
  21215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  21216. $as_echo "${lo_cv_test_autoopts}" >&6; }
  21217. if test "X${lo_cv_test_autoopts}" != Xno
  21218. then
  21219. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  21220. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  21221. else
  21222. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  21223. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  21224. NEED_LIBOPTS_DIR=true
  21225. fi
  21226. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  21227. if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
  21228. NEED_LIBOPTS_DIR=''
  21229. fi
  21230. if test -n "${NEED_LIBOPTS_DIR}"; then
  21231. NEED_LIBOPTS_TRUE=
  21232. NEED_LIBOPTS_FALSE='#'
  21233. else
  21234. NEED_LIBOPTS_TRUE='#'
  21235. NEED_LIBOPTS_FALSE=
  21236. fi
  21237. LIBOPTS_DIR=libopts
  21238. # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
  21239. if test -z "$NEED_LIBOPTS_TRUE"; then :
  21240. # Check to see if a reg expr header is specified.
  21241. # Check whether --with-regex-header was given.
  21242. if test "${with_regex_header+set}" = set; then :
  21243. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  21244. else
  21245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  21246. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  21247. if ${libopts_cv_with_regex_header+:} false; then :
  21248. $as_echo_n "(cached) " >&6
  21249. else
  21250. libopts_cv_with_regex_header=no
  21251. fi
  21252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  21253. $as_echo "$libopts_cv_with_regex_header" >&6; }
  21254. fi
  21255. # end of AC_ARG_WITH
  21256. if test "X${libopts_cv_with_regex_header}" != Xno
  21257. then
  21258. cat >>confdefs.h <<_ACEOF
  21259. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  21260. _ACEOF
  21261. else
  21262. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  21263. fi
  21264. # Check to see if a working libregex can be found.
  21265. # Check whether --with-libregex was given.
  21266. if test "${with_libregex+set}" = set; then :
  21267. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  21268. else
  21269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  21270. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  21271. if ${libopts_cv_with_libregex_root+:} false; then :
  21272. $as_echo_n "(cached) " >&6
  21273. else
  21274. libopts_cv_with_libregex_root=no
  21275. fi
  21276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  21277. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  21278. fi
  21279. # end of AC_ARG_WITH libregex
  21280. if test "${with_libregex+set}" = set && \
  21281. test "X${withval}" = Xno
  21282. then ## disabled by request
  21283. libopts_cv_with_libregex_root=no
  21284. libopts_cv_with_libregex_cflags=no
  21285. libopts_cv_with_libregex_libs=no
  21286. else
  21287. # Check whether --with-libregex-cflags was given.
  21288. if test "${with_libregex_cflags+set}" = set; then :
  21289. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
  21290. else
  21291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  21292. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  21293. if ${libopts_cv_with_libregex_cflags+:} false; then :
  21294. $as_echo_n "(cached) " >&6
  21295. else
  21296. libopts_cv_with_libregex_cflags=no
  21297. fi
  21298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  21299. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  21300. fi
  21301. # end of AC_ARG_WITH libregex-cflags
  21302. # Check whether --with-libregex-libs was given.
  21303. if test "${with_libregex_libs+set}" = set; then :
  21304. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
  21305. else
  21306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  21307. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  21308. if ${libopts_cv_with_libregex_libs+:} false; then :
  21309. $as_echo_n "(cached) " >&6
  21310. else
  21311. libopts_cv_with_libregex_libs=no
  21312. fi
  21313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  21314. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  21315. fi
  21316. # end of AC_ARG_WITH libregex-libs
  21317. case "X${libopts_cv_with_libregex_cflags}" in
  21318. Xyes|Xno|X )
  21319. case "X${libopts_cv_with_libregex_root}" in
  21320. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  21321. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  21322. esac
  21323. esac
  21324. case "X${libopts_cv_with_libregex_libs}" in
  21325. Xyes|Xno|X )
  21326. case "X${libopts_cv_with_libregex_root}" in
  21327. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  21328. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
  21329. esac
  21330. esac
  21331. libopts_save_CPPFLAGS="${CPPFLAGS}"
  21332. libopts_save_LIBS="${LIBS}"
  21333. case "X${libopts_cv_with_libregex_cflags}" in
  21334. Xyes|Xno|X )
  21335. libopts_cv_with_libregex_cflags="" ;;
  21336. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  21337. esac
  21338. case "X${libopts_cv_with_libregex_libs}" in
  21339. Xyes|Xno|X )
  21340. libopts_cv_with_libregex_libs="" ;;
  21341. * )
  21342. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  21343. esac
  21344. LIBREGEX_CFLAGS=""
  21345. LIBREGEX_LIBS=""
  21346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  21347. $as_echo_n "checking whether libregex functions properly... " >&6; }
  21348. if ${libopts_cv_with_libregex+:} false; then :
  21349. $as_echo_n "(cached) " >&6
  21350. else
  21351. if test "$cross_compiling" = yes; then :
  21352. libopts_cv_with_libregex=no
  21353. else
  21354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21355. /* end confdefs.h. */
  21356. #include <stdio.h>
  21357. #include <stdlib.h>
  21358. #include <sys/types.h>
  21359. #include REGEX_HEADER
  21360. static regex_t re;
  21361. void comp_re(char const * pzPat) {
  21362. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  21363. if (res == 0) return;
  21364. exit( res ); }
  21365. int main() {
  21366. regmatch_t m[2];
  21367. comp_re( "^.*\$" );
  21368. comp_re( "()|no.*" );
  21369. comp_re( "." );
  21370. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  21371. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  21372. fputs( "error: regex -->.<-- did not match\n", stderr );
  21373. return 1;
  21374. }
  21375. return 0; }
  21376. _ACEOF
  21377. if ac_fn_c_try_run "$LINENO"; then :
  21378. libopts_cv_with_libregex=yes
  21379. else
  21380. libopts_cv_with_libregex=no
  21381. fi
  21382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21383. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21384. fi
  21385. # end of AC_RUN_IFELSE
  21386. fi
  21387. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  21388. fi ## disabled by request
  21389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  21390. $as_echo "${libopts_cv_with_libregex}" >&6; }
  21391. if test "X${libopts_cv_with_libregex}" != Xno
  21392. then
  21393. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  21394. else
  21395. CPPFLAGS="${libopts_save_CPPFLAGS}"
  21396. LIBS="${libopts_save_LIBS}"
  21397. libopts_cv_with_libregex_root=no
  21398. libopts_cv_with_libregex_cflags=no
  21399. libopts_cv_with_libregex_libs=no
  21400. libopts_cv_with_libregex=no
  21401. fi
  21402. # Check to see if pathfind(3) works.
  21403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  21404. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  21405. if ${libopts_cv_run_pathfind+:} false; then :
  21406. $as_echo_n "(cached) " >&6
  21407. else
  21408. if test "$cross_compiling" = yes; then :
  21409. libopts_cv_run_pathfind=no
  21410. else
  21411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21412. /* end confdefs.h. */
  21413. #include <string.h>
  21414. #include <stdlib.h>
  21415. int main (int argc, char ** argv) {
  21416. char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
  21417. return (pz == 0) ? 1 : 0;
  21418. }
  21419. _ACEOF
  21420. if ac_fn_c_try_run "$LINENO"; then :
  21421. libopts_cv_run_pathfind=yes
  21422. else
  21423. libopts_cv_run_pathfind=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. # end of RUN_IFELSE
  21429. fi
  21430. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  21431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  21432. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  21433. if test "X${libopts_cv_run_pathfind}" != Xno
  21434. then
  21435. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  21436. fi
  21437. # Check to see if /dev/zero is readable device.
  21438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  21439. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  21440. if ${libopts_cv_test_dev_zero+:} false; then :
  21441. $as_echo_n "(cached) " >&6
  21442. else
  21443. libopts_cv_test_dev_zero=`exec 2> /dev/null
  21444. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  21445. test -z "${dzero}" && exit 1
  21446. echo ${dzero}`
  21447. if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
  21448. then libopts_cv_test_dev_zero=no
  21449. fi
  21450. fi
  21451. # end of CACHE_VAL of libopts_cv_test_dev_zero
  21452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  21453. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  21454. if test "X${libopts_cv_test_dev_zero}" != Xno
  21455. then
  21456. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  21457. fi
  21458. # Check to see if we have a functional realpath(3C).
  21459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  21460. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  21461. if ${libopts_cv_run_realpath+:} false; then :
  21462. $as_echo_n "(cached) " >&6
  21463. else
  21464. if test "$cross_compiling" = yes; then :
  21465. libopts_cv_run_realpath=no
  21466. else
  21467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21468. /* end confdefs.h. */
  21469. #include <limits.h>
  21470. #include <stdlib.h>
  21471. int main (int argc, char ** argv) {
  21472. #ifndef PATH_MAX
  21473. choke me!!
  21474. #else
  21475. char zPath[PATH_MAX+1];
  21476. #endif
  21477. char *pz = realpath(argv[0], zPath);
  21478. return (pz == zPath) ? 0 : 1;
  21479. }
  21480. _ACEOF
  21481. if ac_fn_c_try_run "$LINENO"; then :
  21482. libopts_cv_run_realpath=yes
  21483. else
  21484. libopts_cv_run_realpath=no
  21485. fi
  21486. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21487. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21488. fi
  21489. # end of RUN_IFELSE
  21490. fi
  21491. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  21492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  21493. $as_echo "${libopts_cv_run_realpath}" >&6; }
  21494. if test "X${libopts_cv_run_realpath}" != Xno
  21495. then
  21496. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  21497. fi
  21498. # Check to see if strftime() works.
  21499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  21500. $as_echo_n "checking whether strftime() works... " >&6; }
  21501. if ${libopts_cv_run_strftime+:} false; then :
  21502. $as_echo_n "(cached) " >&6
  21503. else
  21504. if test "$cross_compiling" = yes; then :
  21505. libopts_cv_run_strftime=no
  21506. else
  21507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21508. /* end confdefs.h. */
  21509. #include <time.h>
  21510. #include <string.h>
  21511. char t_buf[ 64 ];
  21512. int main() {
  21513. static char const z[] = "Thursday Aug 28 240";
  21514. struct tm tm;
  21515. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  21516. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  21517. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  21518. tm.tm_mday = 28; /* day of the month [1, 31] */
  21519. tm.tm_mon = 7; /* months since January [0, 11] */
  21520. tm.tm_year = 86; /* years since 1900 */
  21521. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  21522. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  21523. tm.tm_isdst = 1; /* flag for daylight savings time */
  21524. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  21525. return (strcmp( t_buf, z ) != 0); }
  21526. _ACEOF
  21527. if ac_fn_c_try_run "$LINENO"; then :
  21528. libopts_cv_run_strftime=yes
  21529. else
  21530. libopts_cv_run_strftime=no
  21531. fi
  21532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21533. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21534. fi
  21535. # end of RUN_IFELSE
  21536. fi
  21537. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  21538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  21539. $as_echo "${libopts_cv_run_strftime}" >&6; }
  21540. if test "X${libopts_cv_run_strftime}" != Xno
  21541. then
  21542. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  21543. fi
  21544. # Check to see if fopen accepts "b" mode.
  21545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  21546. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  21547. if ${libopts_cv_run_fopen_binary+:} false; then :
  21548. $as_echo_n "(cached) " >&6
  21549. else
  21550. if test "$cross_compiling" = yes; then :
  21551. libopts_cv_run_fopen_binary=no
  21552. else
  21553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21554. /* end confdefs.h. */
  21555. #include <stdio.h>
  21556. int main (int argc, char ** argv) {
  21557. FILE * fp = fopen("conftest.$ac_ext", "rb");
  21558. return (fp == NULL) ? 1 : fclose(fp); }
  21559. _ACEOF
  21560. if ac_fn_c_try_run "$LINENO"; then :
  21561. libopts_cv_run_fopen_binary=yes
  21562. else
  21563. libopts_cv_run_fopen_binary=no
  21564. fi
  21565. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21566. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21567. fi
  21568. # end of RUN_IFELSE
  21569. fi
  21570. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  21571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  21572. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  21573. if test "X${libopts_cv_run_fopen_binary}" != Xno
  21574. then
  21575. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  21576. else
  21577. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  21578. fi
  21579. # Check to see if fopen accepts "t" mode.
  21580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  21581. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  21582. if ${libopts_cv_run_fopen_text+:} false; then :
  21583. $as_echo_n "(cached) " >&6
  21584. else
  21585. if test "$cross_compiling" = yes; then :
  21586. libopts_cv_run_fopen_text=no
  21587. else
  21588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21589. /* end confdefs.h. */
  21590. #include <stdio.h>
  21591. int main (int argc, char ** argv) {
  21592. FILE * fp = fopen("conftest.$ac_ext", "rt");
  21593. return (fp == NULL) ? 1 : fclose(fp); }
  21594. _ACEOF
  21595. if ac_fn_c_try_run "$LINENO"; then :
  21596. libopts_cv_run_fopen_text=yes
  21597. else
  21598. libopts_cv_run_fopen_text=no
  21599. fi
  21600. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21601. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21602. fi
  21603. # end of RUN_IFELSE
  21604. fi
  21605. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  21606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  21607. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  21608. if test "X${libopts_cv_run_fopen_text}" != Xno
  21609. then
  21610. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  21611. else
  21612. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  21613. fi
  21614. # Check to see if not wanting optional option args.
  21615. # Check whether --enable-optional-args was given.
  21616. if test "${enable_optional_args+set}" = set; then :
  21617. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  21618. else
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  21620. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  21621. if ${libopts_cv_enable_optional_args+:} false; then :
  21622. $as_echo_n "(cached) " >&6
  21623. else
  21624. libopts_cv_enable_optional_args=yes
  21625. fi
  21626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  21627. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  21628. fi
  21629. # end of AC_ARG_ENABLE
  21630. if test "X${libopts_cv_enable_optional_args}" = Xno
  21631. then
  21632. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  21633. fi
  21634. fi
  21635. ac_config_files="$ac_config_files libopts/Makefile"
  21636. # end of AC_DEFUN of LIBOPTS_CHECK
  21637. 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"
  21638. cat >confcache <<\_ACEOF
  21639. # This file is a shell script that caches the results of configure
  21640. # tests run on this system so they can be shared between configure
  21641. # scripts and configure runs, see configure's option --config-cache.
  21642. # It is not useful on other systems. If it contains results you don't
  21643. # want to keep, you may remove or edit it.
  21644. #
  21645. # config.status only pays attention to the cache file if you give it
  21646. # the --recheck option to rerun configure.
  21647. #
  21648. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21649. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21650. # following values.
  21651. _ACEOF
  21652. # The following way of writing the cache mishandles newlines in values,
  21653. # but we know of no workaround that is simple, portable, and efficient.
  21654. # So, we kill variables containing newlines.
  21655. # Ultrix sh set writes to stderr and can't be redirected directly,
  21656. # and sets the high bit in the cache file unless we assign to the vars.
  21657. (
  21658. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21659. eval ac_val=\$$ac_var
  21660. case $ac_val in #(
  21661. *${as_nl}*)
  21662. case $ac_var in #(
  21663. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21664. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21665. esac
  21666. case $ac_var in #(
  21667. _ | IFS | as_nl) ;; #(
  21668. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21669. *) { eval $ac_var=; unset $ac_var;} ;;
  21670. esac ;;
  21671. esac
  21672. done
  21673. (set) 2>&1 |
  21674. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21675. *${as_nl}ac_space=\ *)
  21676. # `set' does not quote correctly, so add quotes: double-quote
  21677. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21678. sed -n \
  21679. "s/'/'\\\\''/g;
  21680. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21681. ;; #(
  21682. *)
  21683. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21684. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21685. ;;
  21686. esac |
  21687. sort
  21688. ) |
  21689. sed '
  21690. /^ac_cv_env_/b end
  21691. t clear
  21692. :clear
  21693. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21694. t end
  21695. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21696. :end' >>confcache
  21697. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21698. if test -w "$cache_file"; then
  21699. if test "x$cache_file" != "x/dev/null"; then
  21700. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21701. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21702. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21703. cat confcache >"$cache_file"
  21704. else
  21705. case $cache_file in #(
  21706. */* | ?:*)
  21707. mv -f confcache "$cache_file"$$ &&
  21708. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21709. *)
  21710. mv -f confcache "$cache_file" ;;
  21711. esac
  21712. fi
  21713. fi
  21714. else
  21715. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21716. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21717. fi
  21718. fi
  21719. rm -f confcache
  21720. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21721. # Let make expand exec_prefix.
  21722. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21723. DEFS=-DHAVE_CONFIG_H
  21724. ac_libobjs=
  21725. ac_ltlibobjs=
  21726. U=
  21727. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21728. # 1. Remove the extension, and $U if already installed.
  21729. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21730. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21731. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21732. # will be set to the directory where LIBOBJS objects are built.
  21733. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21734. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21735. done
  21736. LIBOBJS=$ac_libobjs
  21737. LTLIBOBJS=$ac_ltlibobjs
  21738. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21739. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21740. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21741. fi
  21742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21743. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  21744. if test -n "$am_sleep_pid"; then
  21745. # Hide warnings about reused PIDs.
  21746. wait $am_sleep_pid 2>/dev/null
  21747. fi
  21748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21749. $as_echo "done" >&6; }
  21750. if test -n "$EXEEXT"; then
  21751. am__EXEEXT_TRUE=
  21752. am__EXEEXT_FALSE='#'
  21753. else
  21754. am__EXEEXT_TRUE='#'
  21755. am__EXEEXT_FALSE=
  21756. fi
  21757. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21758. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21760. fi
  21761. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21762. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21764. fi
  21765. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21766. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21768. fi
  21769. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21770. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21772. fi
  21773. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  21774. as_fn_error $? "conditional \"SYSTEM_STRLCPY\" was never defined.
  21775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21776. fi
  21777. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  21778. as_fn_error $? "conditional \"WORDS_BIGENDIAN\" was never defined.
  21779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21780. fi
  21781. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  21782. as_fn_error $? "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  21783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21784. fi
  21785. if test -z "${COMPILE_TCPLIVEPLAY_TRUE}" && test -z "${COMPILE_TCPLIVEPLAY_FALSE}"; then
  21786. as_fn_error $? "conditional \"COMPILE_TCPLIVEPLAY\" was never defined.
  21787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21788. fi
  21789. if test -z "${COMPILE_NETMAP_TRUE}" && test -z "${COMPILE_NETMAP_FALSE}"; then
  21790. as_fn_error $? "conditional \"COMPILE_NETMAP\" was never defined.
  21791. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21792. fi
  21793. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  21794. as_fn_error $? "conditional \"COMPILE_FRAGROUTE\" was never defined.
  21795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21796. fi
  21797. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  21798. as_fn_error $? "conditional \"ENABLE_TCPDUMP\" was never defined.
  21799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21800. fi
  21801. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  21802. as_fn_error $? "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  21803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21804. fi
  21805. if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
  21806. as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
  21807. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21808. fi
  21809. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  21810. as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
  21811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21812. fi
  21813. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  21814. as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
  21815. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21816. fi
  21817. : "${CONFIG_STATUS=./config.status}"
  21818. ac_write_fail=0
  21819. ac_clean_files_save=$ac_clean_files
  21820. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21821. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21822. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21823. as_write_fail=0
  21824. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21825. #! $SHELL
  21826. # Generated by $as_me.
  21827. # Run this file to recreate the current configuration.
  21828. # Compiler output produced by configure, useful for debugging
  21829. # configure, is in config.log if it exists.
  21830. debug=false
  21831. ac_cs_recheck=false
  21832. ac_cs_silent=false
  21833. SHELL=\${CONFIG_SHELL-$SHELL}
  21834. export SHELL
  21835. _ASEOF
  21836. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21837. ## -------------------- ##
  21838. ## M4sh Initialization. ##
  21839. ## -------------------- ##
  21840. # Be more Bourne compatible
  21841. DUALCASE=1; export DUALCASE # for MKS sh
  21842. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21843. emulate sh
  21844. NULLCMD=:
  21845. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21846. # is contrary to our usage. Disable this feature.
  21847. alias -g '${1+"$@"}'='"$@"'
  21848. setopt NO_GLOB_SUBST
  21849. else
  21850. case `(set -o) 2>/dev/null` in #(
  21851. *posix*) :
  21852. set -o posix ;; #(
  21853. *) :
  21854. ;;
  21855. esac
  21856. fi
  21857. as_nl='
  21858. '
  21859. export as_nl
  21860. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21861. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21862. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21863. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21864. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21865. # but without wasting forks for bash or zsh.
  21866. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21867. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21868. as_echo='print -r --'
  21869. as_echo_n='print -rn --'
  21870. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21871. as_echo='printf %s\n'
  21872. as_echo_n='printf %s'
  21873. else
  21874. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21875. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21876. as_echo_n='/usr/ucb/echo -n'
  21877. else
  21878. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21879. as_echo_n_body='eval
  21880. arg=$1;
  21881. case $arg in #(
  21882. *"$as_nl"*)
  21883. expr "X$arg" : "X\\(.*\\)$as_nl";
  21884. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21885. esac;
  21886. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21887. '
  21888. export as_echo_n_body
  21889. as_echo_n='sh -c $as_echo_n_body as_echo'
  21890. fi
  21891. export as_echo_body
  21892. as_echo='sh -c $as_echo_body as_echo'
  21893. fi
  21894. # The user is always right.
  21895. if test "${PATH_SEPARATOR+set}" != set; then
  21896. PATH_SEPARATOR=:
  21897. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21898. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21899. PATH_SEPARATOR=';'
  21900. }
  21901. fi
  21902. # IFS
  21903. # We need space, tab and new line, in precisely that order. Quoting is
  21904. # there to prevent editors from complaining about space-tab.
  21905. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21906. # splitting by setting IFS to empty value.)
  21907. IFS=" "" $as_nl"
  21908. # Find who we are. Look in the path if we contain no directory separator.
  21909. as_myself=
  21910. case $0 in #((
  21911. *[\\/]* ) as_myself=$0 ;;
  21912. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21913. for as_dir in $PATH
  21914. do
  21915. IFS=$as_save_IFS
  21916. test -z "$as_dir" && as_dir=.
  21917. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21918. done
  21919. IFS=$as_save_IFS
  21920. ;;
  21921. esac
  21922. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21923. # in which case we are not to be found in the path.
  21924. if test "x$as_myself" = x; then
  21925. as_myself=$0
  21926. fi
  21927. if test ! -f "$as_myself"; then
  21928. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21929. exit 1
  21930. fi
  21931. # Unset variables that we do not need and which cause bugs (e.g. in
  21932. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21933. # suppresses any "Segmentation fault" message there. '((' could
  21934. # trigger a bug in pdksh 5.2.14.
  21935. for as_var in BASH_ENV ENV MAIL MAILPATH
  21936. do eval test x\${$as_var+set} = xset \
  21937. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21938. done
  21939. PS1='$ '
  21940. PS2='> '
  21941. PS4='+ '
  21942. # NLS nuisances.
  21943. LC_ALL=C
  21944. export LC_ALL
  21945. LANGUAGE=C
  21946. export LANGUAGE
  21947. # CDPATH.
  21948. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21949. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21950. # ----------------------------------------
  21951. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21952. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21953. # script with STATUS, using 1 if that was 0.
  21954. as_fn_error ()
  21955. {
  21956. as_status=$1; test $as_status -eq 0 && as_status=1
  21957. if test "$4"; then
  21958. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21959. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21960. fi
  21961. $as_echo "$as_me: error: $2" >&2
  21962. as_fn_exit $as_status
  21963. } # as_fn_error
  21964. # as_fn_set_status STATUS
  21965. # -----------------------
  21966. # Set $? to STATUS, without forking.
  21967. as_fn_set_status ()
  21968. {
  21969. return $1
  21970. } # as_fn_set_status
  21971. # as_fn_exit STATUS
  21972. # -----------------
  21973. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21974. as_fn_exit ()
  21975. {
  21976. set +e
  21977. as_fn_set_status $1
  21978. exit $1
  21979. } # as_fn_exit
  21980. # as_fn_unset VAR
  21981. # ---------------
  21982. # Portably unset VAR.
  21983. as_fn_unset ()
  21984. {
  21985. { eval $1=; unset $1;}
  21986. }
  21987. as_unset=as_fn_unset
  21988. # as_fn_append VAR VALUE
  21989. # ----------------------
  21990. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21991. # advantage of any shell optimizations that allow amortized linear growth over
  21992. # repeated appends, instead of the typical quadratic growth present in naive
  21993. # implementations.
  21994. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21995. eval 'as_fn_append ()
  21996. {
  21997. eval $1+=\$2
  21998. }'
  21999. else
  22000. as_fn_append ()
  22001. {
  22002. eval $1=\$$1\$2
  22003. }
  22004. fi # as_fn_append
  22005. # as_fn_arith ARG...
  22006. # ------------------
  22007. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22008. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22009. # must be portable across $(()) and expr.
  22010. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22011. eval 'as_fn_arith ()
  22012. {
  22013. as_val=$(( $* ))
  22014. }'
  22015. else
  22016. as_fn_arith ()
  22017. {
  22018. as_val=`expr "$@" || test $? -eq 1`
  22019. }
  22020. fi # as_fn_arith
  22021. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22022. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22023. as_expr=expr
  22024. else
  22025. as_expr=false
  22026. fi
  22027. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22028. as_basename=basename
  22029. else
  22030. as_basename=false
  22031. fi
  22032. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22033. as_dirname=dirname
  22034. else
  22035. as_dirname=false
  22036. fi
  22037. as_me=`$as_basename -- "$0" ||
  22038. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22039. X"$0" : 'X\(//\)$' \| \
  22040. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22041. $as_echo X/"$0" |
  22042. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22043. s//\1/
  22044. q
  22045. }
  22046. /^X\/\(\/\/\)$/{
  22047. s//\1/
  22048. q
  22049. }
  22050. /^X\/\(\/\).*/{
  22051. s//\1/
  22052. q
  22053. }
  22054. s/.*/./; q'`
  22055. # Avoid depending upon Character Ranges.
  22056. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22057. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22058. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22059. as_cr_digits='0123456789'
  22060. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22061. ECHO_C= ECHO_N= ECHO_T=
  22062. case `echo -n x` in #(((((
  22063. -n*)
  22064. case `echo 'xy\c'` in
  22065. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22066. xy) ECHO_C='\c';;
  22067. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22068. ECHO_T=' ';;
  22069. esac;;
  22070. *)
  22071. ECHO_N='-n';;
  22072. esac
  22073. rm -f conf$$ conf$$.exe conf$$.file
  22074. if test -d conf$$.dir; then
  22075. rm -f conf$$.dir/conf$$.file
  22076. else
  22077. rm -f conf$$.dir
  22078. mkdir conf$$.dir 2>/dev/null
  22079. fi
  22080. if (echo >conf$$.file) 2>/dev/null; then
  22081. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22082. as_ln_s='ln -s'
  22083. # ... but there are two gotchas:
  22084. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22085. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22086. # In both cases, we have to default to `cp -pR'.
  22087. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22088. as_ln_s='cp -pR'
  22089. elif ln conf$$.file conf$$ 2>/dev/null; then
  22090. as_ln_s=ln
  22091. else
  22092. as_ln_s='cp -pR'
  22093. fi
  22094. else
  22095. as_ln_s='cp -pR'
  22096. fi
  22097. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22098. rmdir conf$$.dir 2>/dev/null
  22099. # as_fn_mkdir_p
  22100. # -------------
  22101. # Create "$as_dir" as a directory, including parents if necessary.
  22102. as_fn_mkdir_p ()
  22103. {
  22104. case $as_dir in #(
  22105. -*) as_dir=./$as_dir;;
  22106. esac
  22107. test -d "$as_dir" || eval $as_mkdir_p || {
  22108. as_dirs=
  22109. while :; do
  22110. case $as_dir in #(
  22111. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22112. *) as_qdir=$as_dir;;
  22113. esac
  22114. as_dirs="'$as_qdir' $as_dirs"
  22115. as_dir=`$as_dirname -- "$as_dir" ||
  22116. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22117. X"$as_dir" : 'X\(//\)[^/]' \| \
  22118. X"$as_dir" : 'X\(//\)$' \| \
  22119. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22120. $as_echo X"$as_dir" |
  22121. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22122. s//\1/
  22123. q
  22124. }
  22125. /^X\(\/\/\)[^/].*/{
  22126. s//\1/
  22127. q
  22128. }
  22129. /^X\(\/\/\)$/{
  22130. s//\1/
  22131. q
  22132. }
  22133. /^X\(\/\).*/{
  22134. s//\1/
  22135. q
  22136. }
  22137. s/.*/./; q'`
  22138. test -d "$as_dir" && break
  22139. done
  22140. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22141. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22142. } # as_fn_mkdir_p
  22143. if mkdir -p . 2>/dev/null; then
  22144. as_mkdir_p='mkdir -p "$as_dir"'
  22145. else
  22146. test -d ./-p && rmdir ./-p
  22147. as_mkdir_p=false
  22148. fi
  22149. # as_fn_executable_p FILE
  22150. # -----------------------
  22151. # Test if FILE is an executable regular file.
  22152. as_fn_executable_p ()
  22153. {
  22154. test -f "$1" && test -x "$1"
  22155. } # as_fn_executable_p
  22156. as_test_x='test -x'
  22157. as_executable_p=as_fn_executable_p
  22158. # Sed expression to map a string onto a valid CPP name.
  22159. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22160. # Sed expression to map a string onto a valid variable name.
  22161. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22162. exec 6>&1
  22163. ## ----------------------------------- ##
  22164. ## Main body of $CONFIG_STATUS script. ##
  22165. ## ----------------------------------- ##
  22166. _ASEOF
  22167. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22169. # Save the log message, to keep $0 and so on meaningful, and to
  22170. # report actual input values of CONFIG_FILES etc. instead of their
  22171. # values after options handling.
  22172. ac_log="
  22173. This file was extended by tcpreplay $as_me 4.4.4, which was
  22174. generated by GNU Autoconf 2.69. Invocation command line was
  22175. CONFIG_FILES = $CONFIG_FILES
  22176. CONFIG_HEADERS = $CONFIG_HEADERS
  22177. CONFIG_LINKS = $CONFIG_LINKS
  22178. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22179. $ $0 $@
  22180. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22181. "
  22182. _ACEOF
  22183. case $ac_config_files in *"
  22184. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22185. esac
  22186. case $ac_config_headers in *"
  22187. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22188. esac
  22189. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22190. # Files that config.status was made for.
  22191. config_files="$ac_config_files"
  22192. config_headers="$ac_config_headers"
  22193. config_commands="$ac_config_commands"
  22194. _ACEOF
  22195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22196. ac_cs_usage="\
  22197. \`$as_me' instantiates files and other configuration actions
  22198. from templates according to the current configuration. Unless the files
  22199. and actions are specified as TAGs, all are instantiated by default.
  22200. Usage: $0 [OPTION]... [TAG]...
  22201. -h, --help print this help, then exit
  22202. -V, --version print version number and configuration settings, then exit
  22203. --config print configuration, then exit
  22204. -q, --quiet, --silent
  22205. do not print progress messages
  22206. -d, --debug don't remove temporary files
  22207. --recheck update $as_me by reconfiguring in the same conditions
  22208. --file=FILE[:TEMPLATE]
  22209. instantiate the configuration file FILE
  22210. --header=FILE[:TEMPLATE]
  22211. instantiate the configuration header FILE
  22212. Configuration files:
  22213. $config_files
  22214. Configuration headers:
  22215. $config_headers
  22216. Configuration commands:
  22217. $config_commands
  22218. Report bugs to <https://github.com/appneta/tcpreplay/issues>.
  22219. tcpreplay home page: <http://tcpreplay.sourceforge.net/>."
  22220. _ACEOF
  22221. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22222. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22223. ac_cs_version="\\
  22224. tcpreplay config.status 4.4.4
  22225. configured by $0, generated by GNU Autoconf 2.69,
  22226. with options \\"\$ac_cs_config\\"
  22227. Copyright (C) 2012 Free Software Foundation, Inc.
  22228. This config.status script is free software; the Free Software Foundation
  22229. gives unlimited permission to copy, distribute and modify it."
  22230. ac_pwd='$ac_pwd'
  22231. srcdir='$srcdir'
  22232. INSTALL='$INSTALL'
  22233. MKDIR_P='$MKDIR_P'
  22234. AWK='$AWK'
  22235. test -n "\$AWK" || AWK=awk
  22236. _ACEOF
  22237. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22238. # The default lists apply if the user does not specify any file.
  22239. ac_need_defaults=:
  22240. while test $# != 0
  22241. do
  22242. case $1 in
  22243. --*=?*)
  22244. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22245. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22246. ac_shift=:
  22247. ;;
  22248. --*=)
  22249. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22250. ac_optarg=
  22251. ac_shift=:
  22252. ;;
  22253. *)
  22254. ac_option=$1
  22255. ac_optarg=$2
  22256. ac_shift=shift
  22257. ;;
  22258. esac
  22259. case $ac_option in
  22260. # Handling of the options.
  22261. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22262. ac_cs_recheck=: ;;
  22263. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22264. $as_echo "$ac_cs_version"; exit ;;
  22265. --config | --confi | --conf | --con | --co | --c )
  22266. $as_echo "$ac_cs_config"; exit ;;
  22267. --debug | --debu | --deb | --de | --d | -d )
  22268. debug=: ;;
  22269. --file | --fil | --fi | --f )
  22270. $ac_shift
  22271. case $ac_optarg in
  22272. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22273. '') as_fn_error $? "missing file argument" ;;
  22274. esac
  22275. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22276. ac_need_defaults=false;;
  22277. --header | --heade | --head | --hea )
  22278. $ac_shift
  22279. case $ac_optarg in
  22280. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22281. esac
  22282. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22283. ac_need_defaults=false;;
  22284. --he | --h)
  22285. # Conflict between --help and --header
  22286. as_fn_error $? "ambiguous option: \`$1'
  22287. Try \`$0 --help' for more information.";;
  22288. --help | --hel | -h )
  22289. $as_echo "$ac_cs_usage"; exit ;;
  22290. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22291. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22292. ac_cs_silent=: ;;
  22293. # This is an error.
  22294. -*) as_fn_error $? "unrecognized option: \`$1'
  22295. Try \`$0 --help' for more information." ;;
  22296. *) as_fn_append ac_config_targets " $1"
  22297. ac_need_defaults=false ;;
  22298. esac
  22299. shift
  22300. done
  22301. ac_configure_extra_args=
  22302. if $ac_cs_silent; then
  22303. exec 6>/dev/null
  22304. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22305. fi
  22306. _ACEOF
  22307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22308. if \$ac_cs_recheck; then
  22309. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22310. shift
  22311. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22312. CONFIG_SHELL='$SHELL'
  22313. export CONFIG_SHELL
  22314. exec "\$@"
  22315. fi
  22316. _ACEOF
  22317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22318. exec 5>>config.log
  22319. {
  22320. echo
  22321. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22322. ## Running $as_me. ##
  22323. _ASBOX
  22324. $as_echo "$ac_log"
  22325. } >&5
  22326. _ACEOF
  22327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22328. #
  22329. # INIT-COMMANDS
  22330. #
  22331. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  22332. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22333. # if CDPATH is set.
  22334. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22335. sed_quote_subst='$sed_quote_subst'
  22336. double_quote_subst='$double_quote_subst'
  22337. delay_variable_subst='$delay_variable_subst'
  22338. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22339. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22340. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22341. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22342. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22343. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22344. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  22345. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22346. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22347. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22348. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22349. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22350. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22351. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22352. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22353. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22354. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22355. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22356. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22357. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22358. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22359. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22360. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22361. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22362. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22363. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22364. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22365. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22366. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22367. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22368. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22369. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22370. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22371. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22372. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22373. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22374. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22375. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22376. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22377. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22378. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22379. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22380. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22381. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22382. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22383. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22384. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22385. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22386. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22387. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22388. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22389. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22390. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22391. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22392. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22393. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22394. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  22395. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22396. 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"`'
  22397. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  22398. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22399. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22400. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  22401. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22402. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22403. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22404. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22405. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22406. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22407. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22408. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22409. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22410. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22411. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22412. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22413. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22414. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22415. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22416. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22417. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22418. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22419. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22420. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22421. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22422. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22423. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22424. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22425. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22426. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22427. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22428. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22429. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22430. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22431. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22432. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22433. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22434. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22435. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22436. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22437. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22438. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22439. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22440. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22441. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22442. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22443. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22444. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22445. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22446. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22447. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22448. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22449. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22450. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22451. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22452. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22453. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22454. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22455. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22456. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22457. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22458. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22459. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22460. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22461. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22462. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22463. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22464. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22465. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  22466. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  22467. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22468. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22469. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22470. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22471. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22472. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22473. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22474. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22475. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22476. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22477. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22478. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22479. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22480. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22481. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22482. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22483. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22484. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22485. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22486. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22487. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22488. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22489. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22490. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22491. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22492. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22493. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22494. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22495. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22496. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22497. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22498. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22499. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22500. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22501. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22502. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22503. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22504. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22505. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22506. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22507. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22508. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22509. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22510. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22511. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22512. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22513. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22514. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22515. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22516. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22517. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22518. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22519. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22520. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22521. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22522. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22523. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22524. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22525. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22526. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22527. LTCC='$LTCC'
  22528. LTCFLAGS='$LTCFLAGS'
  22529. compiler='$compiler_DEFAULT'
  22530. # A function that is used when there is no print builtin or printf.
  22531. func_fallback_echo ()
  22532. {
  22533. eval 'cat <<_LTECHO_EOF
  22534. \$1
  22535. _LTECHO_EOF'
  22536. }
  22537. # Quote evaled strings.
  22538. for var in SHELL \
  22539. ECHO \
  22540. PATH_SEPARATOR \
  22541. SED \
  22542. GREP \
  22543. EGREP \
  22544. FGREP \
  22545. LD \
  22546. NM \
  22547. LN_S \
  22548. lt_SP2NL \
  22549. lt_NL2SP \
  22550. reload_flag \
  22551. OBJDUMP \
  22552. deplibs_check_method \
  22553. file_magic_cmd \
  22554. file_magic_glob \
  22555. want_nocaseglob \
  22556. DLLTOOL \
  22557. sharedlib_from_linklib_cmd \
  22558. AR \
  22559. AR_FLAGS \
  22560. archiver_list_spec \
  22561. STRIP \
  22562. RANLIB \
  22563. CC \
  22564. CFLAGS \
  22565. compiler \
  22566. lt_cv_sys_global_symbol_pipe \
  22567. lt_cv_sys_global_symbol_to_cdecl \
  22568. lt_cv_sys_global_symbol_to_import \
  22569. lt_cv_sys_global_symbol_to_c_name_address \
  22570. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22571. lt_cv_nm_interface \
  22572. nm_file_list_spec \
  22573. lt_cv_truncate_bin \
  22574. lt_prog_compiler_no_builtin_flag \
  22575. lt_prog_compiler_pic \
  22576. lt_prog_compiler_wl \
  22577. lt_prog_compiler_static \
  22578. lt_cv_prog_compiler_c_o \
  22579. need_locks \
  22580. MANIFEST_TOOL \
  22581. DSYMUTIL \
  22582. NMEDIT \
  22583. LIPO \
  22584. OTOOL \
  22585. OTOOL64 \
  22586. shrext_cmds \
  22587. export_dynamic_flag_spec \
  22588. whole_archive_flag_spec \
  22589. compiler_needs_object \
  22590. with_gnu_ld \
  22591. allow_undefined_flag \
  22592. no_undefined_flag \
  22593. hardcode_libdir_flag_spec \
  22594. hardcode_libdir_separator \
  22595. exclude_expsyms \
  22596. include_expsyms \
  22597. file_list_spec \
  22598. variables_saved_for_relink \
  22599. libname_spec \
  22600. library_names_spec \
  22601. soname_spec \
  22602. install_override_mode \
  22603. finish_eval \
  22604. old_striplib \
  22605. striplib \
  22606. compiler_lib_search_dirs \
  22607. predep_objects \
  22608. postdep_objects \
  22609. predeps \
  22610. postdeps \
  22611. compiler_lib_search_path \
  22612. LD_CXX \
  22613. reload_flag_CXX \
  22614. compiler_CXX \
  22615. lt_prog_compiler_no_builtin_flag_CXX \
  22616. lt_prog_compiler_pic_CXX \
  22617. lt_prog_compiler_wl_CXX \
  22618. lt_prog_compiler_static_CXX \
  22619. lt_cv_prog_compiler_c_o_CXX \
  22620. export_dynamic_flag_spec_CXX \
  22621. whole_archive_flag_spec_CXX \
  22622. compiler_needs_object_CXX \
  22623. with_gnu_ld_CXX \
  22624. allow_undefined_flag_CXX \
  22625. no_undefined_flag_CXX \
  22626. hardcode_libdir_flag_spec_CXX \
  22627. hardcode_libdir_separator_CXX \
  22628. exclude_expsyms_CXX \
  22629. include_expsyms_CXX \
  22630. file_list_spec_CXX \
  22631. compiler_lib_search_dirs_CXX \
  22632. predep_objects_CXX \
  22633. postdep_objects_CXX \
  22634. predeps_CXX \
  22635. postdeps_CXX \
  22636. compiler_lib_search_path_CXX; do
  22637. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22638. *[\\\\\\\`\\"\\\$]*)
  22639. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22640. ;;
  22641. *)
  22642. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22643. ;;
  22644. esac
  22645. done
  22646. # Double-quote double-evaled strings.
  22647. for var in reload_cmds \
  22648. old_postinstall_cmds \
  22649. old_postuninstall_cmds \
  22650. old_archive_cmds \
  22651. extract_expsyms_cmds \
  22652. old_archive_from_new_cmds \
  22653. old_archive_from_expsyms_cmds \
  22654. archive_cmds \
  22655. archive_expsym_cmds \
  22656. module_cmds \
  22657. module_expsym_cmds \
  22658. export_symbols_cmds \
  22659. prelink_cmds \
  22660. postlink_cmds \
  22661. postinstall_cmds \
  22662. postuninstall_cmds \
  22663. finish_cmds \
  22664. sys_lib_search_path_spec \
  22665. configure_time_dlsearch_path \
  22666. configure_time_lt_sys_library_path \
  22667. reload_cmds_CXX \
  22668. old_archive_cmds_CXX \
  22669. old_archive_from_new_cmds_CXX \
  22670. old_archive_from_expsyms_cmds_CXX \
  22671. archive_cmds_CXX \
  22672. archive_expsym_cmds_CXX \
  22673. module_cmds_CXX \
  22674. module_expsym_cmds_CXX \
  22675. export_symbols_cmds_CXX \
  22676. prelink_cmds_CXX \
  22677. postlink_cmds_CXX; do
  22678. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22679. *[\\\\\\\`\\"\\\$]*)
  22680. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  22681. ;;
  22682. *)
  22683. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22684. ;;
  22685. esac
  22686. done
  22687. ac_aux_dir='$ac_aux_dir'
  22688. # See if we are running on zsh, and set the options that allow our
  22689. # commands through without removal of \ escapes INIT.
  22690. if test -n "\${ZSH_VERSION+set}"; then
  22691. setopt NO_GLOB_SUBST
  22692. fi
  22693. PACKAGE='$PACKAGE'
  22694. VERSION='$VERSION'
  22695. RM='$RM'
  22696. ofile='$ofile'
  22697. _ACEOF
  22698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22699. # Handling of arguments.
  22700. for ac_config_target in $ac_config_targets
  22701. do
  22702. case $ac_config_target in
  22703. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  22704. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22705. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22706. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22707. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22708. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  22709. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  22710. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  22711. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  22712. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  22713. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  22714. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  22715. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  22716. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  22717. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  22718. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22719. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22720. esac
  22721. done
  22722. # If the user did not use the arguments to specify the items to instantiate,
  22723. # then the envvar interface is used. Set only those that are not.
  22724. # We use the long form for the default assignment because of an extremely
  22725. # bizarre bug on SunOS 4.1.3.
  22726. if $ac_need_defaults; then
  22727. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22728. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22729. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22730. fi
  22731. # Have a temporary directory for convenience. Make it in the build tree
  22732. # simply because there is no reason against having it here, and in addition,
  22733. # creating and moving files from /tmp can sometimes cause problems.
  22734. # Hook for its removal unless debugging.
  22735. # Note that there is a small window in which the directory will not be cleaned:
  22736. # after its creation but before its name has been assigned to `$tmp'.
  22737. $debug ||
  22738. {
  22739. tmp= ac_tmp=
  22740. trap 'exit_status=$?
  22741. : "${ac_tmp:=$tmp}"
  22742. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22743. ' 0
  22744. trap 'as_fn_exit 1' 1 2 13 15
  22745. }
  22746. # Create a (secure) tmp directory for tmp files.
  22747. {
  22748. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22749. test -d "$tmp"
  22750. } ||
  22751. {
  22752. tmp=./conf$$-$RANDOM
  22753. (umask 077 && mkdir "$tmp")
  22754. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22755. ac_tmp=$tmp
  22756. # Set up the scripts for CONFIG_FILES section.
  22757. # No need to generate them if there are no CONFIG_FILES.
  22758. # This happens for instance with `./config.status config.h'.
  22759. if test -n "$CONFIG_FILES"; then
  22760. ac_cr=`echo X | tr X '\015'`
  22761. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22762. # But we know of no other shell where ac_cr would be empty at this
  22763. # point, so we can use a bashism as a fallback.
  22764. if test "x$ac_cr" = x; then
  22765. eval ac_cr=\$\'\\r\'
  22766. fi
  22767. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22768. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22769. ac_cs_awk_cr='\\r'
  22770. else
  22771. ac_cs_awk_cr=$ac_cr
  22772. fi
  22773. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22774. _ACEOF
  22775. {
  22776. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22777. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22778. echo "_ACEOF"
  22779. } >conf$$subs.sh ||
  22780. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22781. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22782. ac_delim='%!_!# '
  22783. for ac_last_try in false false false false false :; do
  22784. . ./conf$$subs.sh ||
  22785. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22786. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22787. if test $ac_delim_n = $ac_delim_num; then
  22788. break
  22789. elif $ac_last_try; then
  22790. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22791. else
  22792. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22793. fi
  22794. done
  22795. rm -f conf$$subs.sh
  22796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22797. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22798. _ACEOF
  22799. sed -n '
  22800. h
  22801. s/^/S["/; s/!.*/"]=/
  22802. p
  22803. g
  22804. s/^[^!]*!//
  22805. :repl
  22806. t repl
  22807. s/'"$ac_delim"'$//
  22808. t delim
  22809. :nl
  22810. h
  22811. s/\(.\{148\}\)..*/\1/
  22812. t more1
  22813. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22814. p
  22815. n
  22816. b repl
  22817. :more1
  22818. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22819. p
  22820. g
  22821. s/.\{148\}//
  22822. t nl
  22823. :delim
  22824. h
  22825. s/\(.\{148\}\)..*/\1/
  22826. t more2
  22827. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22828. p
  22829. b
  22830. :more2
  22831. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22832. p
  22833. g
  22834. s/.\{148\}//
  22835. t delim
  22836. ' <conf$$subs.awk | sed '
  22837. /^[^""]/{
  22838. N
  22839. s/\n//
  22840. }
  22841. ' >>$CONFIG_STATUS || ac_write_fail=1
  22842. rm -f conf$$subs.awk
  22843. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22844. _ACAWK
  22845. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22846. for (key in S) S_is_set[key] = 1
  22847. FS = ""
  22848. }
  22849. {
  22850. line = $ 0
  22851. nfields = split(line, field, "@")
  22852. substed = 0
  22853. len = length(field[1])
  22854. for (i = 2; i < nfields; i++) {
  22855. key = field[i]
  22856. keylen = length(key)
  22857. if (S_is_set[key]) {
  22858. value = S[key]
  22859. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22860. len += length(value) + length(field[++i])
  22861. substed = 1
  22862. } else
  22863. len += 1 + keylen
  22864. }
  22865. print line
  22866. }
  22867. _ACAWK
  22868. _ACEOF
  22869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22870. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22871. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22872. else
  22873. cat
  22874. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22875. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22876. _ACEOF
  22877. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22878. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22879. # trailing colons and then remove the whole line if VPATH becomes empty
  22880. # (actually we leave an empty line to preserve line numbers).
  22881. if test "x$srcdir" = x.; then
  22882. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22883. h
  22884. s///
  22885. s/^/:/
  22886. s/[ ]*$/:/
  22887. s/:\$(srcdir):/:/g
  22888. s/:\${srcdir}:/:/g
  22889. s/:@srcdir@:/:/g
  22890. s/^:*//
  22891. s/:*$//
  22892. x
  22893. s/\(=[ ]*\).*/\1/
  22894. G
  22895. s/\n//
  22896. s/^[^=]*=[ ]*$//
  22897. }'
  22898. fi
  22899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22900. fi # test -n "$CONFIG_FILES"
  22901. # Set up the scripts for CONFIG_HEADERS section.
  22902. # No need to generate them if there are no CONFIG_HEADERS.
  22903. # This happens for instance with `./config.status Makefile'.
  22904. if test -n "$CONFIG_HEADERS"; then
  22905. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22906. BEGIN {
  22907. _ACEOF
  22908. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22909. # here-document in config.status, that substitutes the proper values into
  22910. # config.h.in to produce config.h.
  22911. # Create a delimiter string that does not exist in confdefs.h, to ease
  22912. # handling of long lines.
  22913. ac_delim='%!_!# '
  22914. for ac_last_try in false false :; do
  22915. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22916. if test -z "$ac_tt"; then
  22917. break
  22918. elif $ac_last_try; then
  22919. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22920. else
  22921. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22922. fi
  22923. done
  22924. # For the awk script, D is an array of macro values keyed by name,
  22925. # likewise P contains macro parameters if any. Preserve backslash
  22926. # newline sequences.
  22927. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22928. sed -n '
  22929. s/.\{148\}/&'"$ac_delim"'/g
  22930. t rset
  22931. :rset
  22932. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22933. t def
  22934. d
  22935. :def
  22936. s/\\$//
  22937. t bsnl
  22938. s/["\\]/\\&/g
  22939. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22940. D["\1"]=" \3"/p
  22941. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22942. d
  22943. :bsnl
  22944. s/["\\]/\\&/g
  22945. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22946. D["\1"]=" \3\\\\\\n"\\/p
  22947. t cont
  22948. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22949. t cont
  22950. d
  22951. :cont
  22952. n
  22953. s/.\{148\}/&'"$ac_delim"'/g
  22954. t clear
  22955. :clear
  22956. s/\\$//
  22957. t bsnlc
  22958. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22959. d
  22960. :bsnlc
  22961. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22962. b cont
  22963. ' <confdefs.h | sed '
  22964. s/'"$ac_delim"'/"\\\
  22965. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22966. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22967. for (key in D) D_is_set[key] = 1
  22968. FS = ""
  22969. }
  22970. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22971. line = \$ 0
  22972. split(line, arg, " ")
  22973. if (arg[1] == "#") {
  22974. defundef = arg[2]
  22975. mac1 = arg[3]
  22976. } else {
  22977. defundef = substr(arg[1], 2)
  22978. mac1 = arg[2]
  22979. }
  22980. split(mac1, mac2, "(") #)
  22981. macro = mac2[1]
  22982. prefix = substr(line, 1, index(line, defundef) - 1)
  22983. if (D_is_set[macro]) {
  22984. # Preserve the white space surrounding the "#".
  22985. print prefix "define", macro P[macro] D[macro]
  22986. next
  22987. } else {
  22988. # Replace #undef with comments. This is necessary, for example,
  22989. # in the case of _POSIX_SOURCE, which is predefined and required
  22990. # on some systems where configure will not decide to define it.
  22991. if (defundef == "undef") {
  22992. print "/*", prefix defundef, macro, "*/"
  22993. next
  22994. }
  22995. }
  22996. }
  22997. { print }
  22998. _ACAWK
  22999. _ACEOF
  23000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23001. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23002. fi # test -n "$CONFIG_HEADERS"
  23003. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23004. shift
  23005. for ac_tag
  23006. do
  23007. case $ac_tag in
  23008. :[FHLC]) ac_mode=$ac_tag; continue;;
  23009. esac
  23010. case $ac_mode$ac_tag in
  23011. :[FHL]*:*);;
  23012. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23013. :[FH]-) ac_tag=-:-;;
  23014. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23015. esac
  23016. ac_save_IFS=$IFS
  23017. IFS=:
  23018. set x $ac_tag
  23019. IFS=$ac_save_IFS
  23020. shift
  23021. ac_file=$1
  23022. shift
  23023. case $ac_mode in
  23024. :L) ac_source=$1;;
  23025. :[FH])
  23026. ac_file_inputs=
  23027. for ac_f
  23028. do
  23029. case $ac_f in
  23030. -) ac_f="$ac_tmp/stdin";;
  23031. *) # Look for the file first in the build tree, then in the source tree
  23032. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23033. # because $ac_f cannot contain `:'.
  23034. test -f "$ac_f" ||
  23035. case $ac_f in
  23036. [\\/$]*) false;;
  23037. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23038. esac ||
  23039. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23040. esac
  23041. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23042. as_fn_append ac_file_inputs " '$ac_f'"
  23043. done
  23044. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23045. # use $as_me), people would be surprised to read:
  23046. # /* config.h. Generated by config.status. */
  23047. configure_input='Generated from '`
  23048. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23049. `' by configure.'
  23050. if test x"$ac_file" != x-; then
  23051. configure_input="$ac_file. $configure_input"
  23052. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23053. $as_echo "$as_me: creating $ac_file" >&6;}
  23054. fi
  23055. # Neutralize special characters interpreted by sed in replacement strings.
  23056. case $configure_input in #(
  23057. *\&* | *\|* | *\\* )
  23058. ac_sed_conf_input=`$as_echo "$configure_input" |
  23059. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23060. *) ac_sed_conf_input=$configure_input;;
  23061. esac
  23062. case $ac_tag in
  23063. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23064. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23065. esac
  23066. ;;
  23067. esac
  23068. ac_dir=`$as_dirname -- "$ac_file" ||
  23069. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23070. X"$ac_file" : 'X\(//\)[^/]' \| \
  23071. X"$ac_file" : 'X\(//\)$' \| \
  23072. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23073. $as_echo X"$ac_file" |
  23074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23075. s//\1/
  23076. q
  23077. }
  23078. /^X\(\/\/\)[^/].*/{
  23079. s//\1/
  23080. q
  23081. }
  23082. /^X\(\/\/\)$/{
  23083. s//\1/
  23084. q
  23085. }
  23086. /^X\(\/\).*/{
  23087. s//\1/
  23088. q
  23089. }
  23090. s/.*/./; q'`
  23091. as_dir="$ac_dir"; as_fn_mkdir_p
  23092. ac_builddir=.
  23093. case "$ac_dir" in
  23094. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23095. *)
  23096. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23097. # A ".." for each directory in $ac_dir_suffix.
  23098. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23099. case $ac_top_builddir_sub in
  23100. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23101. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23102. esac ;;
  23103. esac
  23104. ac_abs_top_builddir=$ac_pwd
  23105. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23106. # for backward compatibility:
  23107. ac_top_builddir=$ac_top_build_prefix
  23108. case $srcdir in
  23109. .) # We are building in place.
  23110. ac_srcdir=.
  23111. ac_top_srcdir=$ac_top_builddir_sub
  23112. ac_abs_top_srcdir=$ac_pwd ;;
  23113. [\\/]* | ?:[\\/]* ) # Absolute name.
  23114. ac_srcdir=$srcdir$ac_dir_suffix;
  23115. ac_top_srcdir=$srcdir
  23116. ac_abs_top_srcdir=$srcdir ;;
  23117. *) # Relative name.
  23118. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23119. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23120. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23121. esac
  23122. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23123. case $ac_mode in
  23124. :F)
  23125. #
  23126. # CONFIG_FILE
  23127. #
  23128. case $INSTALL in
  23129. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23130. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23131. esac
  23132. ac_MKDIR_P=$MKDIR_P
  23133. case $MKDIR_P in
  23134. [\\/$]* | ?:[\\/]* ) ;;
  23135. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23136. esac
  23137. _ACEOF
  23138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23139. # If the template does not know about datarootdir, expand it.
  23140. # FIXME: This hack should be removed a few years after 2.60.
  23141. ac_datarootdir_hack=; ac_datarootdir_seen=
  23142. ac_sed_dataroot='
  23143. /datarootdir/ {
  23144. p
  23145. q
  23146. }
  23147. /@datadir@/p
  23148. /@docdir@/p
  23149. /@infodir@/p
  23150. /@localedir@/p
  23151. /@mandir@/p'
  23152. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23153. *datarootdir*) ac_datarootdir_seen=yes;;
  23154. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23156. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23157. _ACEOF
  23158. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23159. ac_datarootdir_hack='
  23160. s&@datadir@&$datadir&g
  23161. s&@docdir@&$docdir&g
  23162. s&@infodir@&$infodir&g
  23163. s&@localedir@&$localedir&g
  23164. s&@mandir@&$mandir&g
  23165. s&\\\${datarootdir}&$datarootdir&g' ;;
  23166. esac
  23167. _ACEOF
  23168. # Neutralize VPATH when `$srcdir' = `.'.
  23169. # Shell code in configure.ac might set extrasub.
  23170. # FIXME: do we really want to maintain this feature?
  23171. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23172. ac_sed_extra="$ac_vpsub
  23173. $extrasub
  23174. _ACEOF
  23175. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23176. :t
  23177. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23178. s|@configure_input@|$ac_sed_conf_input|;t t
  23179. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23180. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23181. s&@srcdir@&$ac_srcdir&;t t
  23182. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23183. s&@top_srcdir@&$ac_top_srcdir&;t t
  23184. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23185. s&@builddir@&$ac_builddir&;t t
  23186. s&@abs_builddir@&$ac_abs_builddir&;t t
  23187. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23188. s&@INSTALL@&$ac_INSTALL&;t t
  23189. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23190. $ac_datarootdir_hack
  23191. "
  23192. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23193. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23194. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23195. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23196. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23197. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23199. which seems to be undefined. Please make sure it is defined" >&5
  23200. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23201. which seems to be undefined. Please make sure it is defined" >&2;}
  23202. rm -f "$ac_tmp/stdin"
  23203. case $ac_file in
  23204. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23205. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23206. esac \
  23207. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23208. ;;
  23209. :H)
  23210. #
  23211. # CONFIG_HEADER
  23212. #
  23213. if test x"$ac_file" != x-; then
  23214. {
  23215. $as_echo "/* $configure_input */" \
  23216. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23217. } >"$ac_tmp/config.h" \
  23218. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23219. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23220. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23221. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23222. else
  23223. rm -f "$ac_file"
  23224. mv "$ac_tmp/config.h" "$ac_file" \
  23225. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23226. fi
  23227. else
  23228. $as_echo "/* $configure_input */" \
  23229. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23230. || as_fn_error $? "could not create -" "$LINENO" 5
  23231. fi
  23232. # Compute "$ac_file"'s index in $config_headers.
  23233. _am_arg="$ac_file"
  23234. _am_stamp_count=1
  23235. for _am_header in $config_headers :; do
  23236. case $_am_header in
  23237. $_am_arg | $_am_arg:* )
  23238. break ;;
  23239. * )
  23240. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23241. esac
  23242. done
  23243. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23244. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23245. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23246. X"$_am_arg" : 'X\(//\)$' \| \
  23247. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23248. $as_echo X"$_am_arg" |
  23249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23250. s//\1/
  23251. q
  23252. }
  23253. /^X\(\/\/\)[^/].*/{
  23254. s//\1/
  23255. q
  23256. }
  23257. /^X\(\/\/\)$/{
  23258. s//\1/
  23259. q
  23260. }
  23261. /^X\(\/\).*/{
  23262. s//\1/
  23263. q
  23264. }
  23265. s/.*/./; q'`/stamp-h$_am_stamp_count
  23266. ;;
  23267. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23268. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23269. ;;
  23270. esac
  23271. case $ac_file$ac_mode in
  23272. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23273. # Older Autoconf quotes --file arguments for eval, but not when files
  23274. # are listed without --file. Let's play safe and only enable the eval
  23275. # if we detect the quoting.
  23276. # TODO: see whether this extra hack can be removed once we start
  23277. # requiring Autoconf 2.70 or later.
  23278. case $CONFIG_FILES in #(
  23279. *\'*) :
  23280. eval set x "$CONFIG_FILES" ;; #(
  23281. *) :
  23282. set x $CONFIG_FILES ;; #(
  23283. *) :
  23284. ;;
  23285. esac
  23286. shift
  23287. # Used to flag and report bootstrapping failures.
  23288. am_rc=0
  23289. for am_mf
  23290. do
  23291. # Strip MF so we end up with the name of the file.
  23292. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  23293. # Check whether this is an Automake generated Makefile which includes
  23294. # dependency-tracking related rules and includes.
  23295. # Grep'ing the whole file directly is not great: AIX grep has a line
  23296. # limit of 2048, but all sed's we know have understand at least 4000.
  23297. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  23298. || continue
  23299. am_dirpart=`$as_dirname -- "$am_mf" ||
  23300. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23301. X"$am_mf" : 'X\(//\)[^/]' \| \
  23302. X"$am_mf" : 'X\(//\)$' \| \
  23303. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23304. $as_echo X"$am_mf" |
  23305. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23306. s//\1/
  23307. q
  23308. }
  23309. /^X\(\/\/\)[^/].*/{
  23310. s//\1/
  23311. q
  23312. }
  23313. /^X\(\/\/\)$/{
  23314. s//\1/
  23315. q
  23316. }
  23317. /^X\(\/\).*/{
  23318. s//\1/
  23319. q
  23320. }
  23321. s/.*/./; q'`
  23322. am_filepart=`$as_basename -- "$am_mf" ||
  23323. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  23324. X"$am_mf" : 'X\(//\)$' \| \
  23325. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  23326. $as_echo X/"$am_mf" |
  23327. sed '/^.*\/\([^/][^/]*\)\/*$/{
  23328. s//\1/
  23329. q
  23330. }
  23331. /^X\/\(\/\/\)$/{
  23332. s//\1/
  23333. q
  23334. }
  23335. /^X\/\(\/\).*/{
  23336. s//\1/
  23337. q
  23338. }
  23339. s/.*/./; q'`
  23340. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  23341. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23342. | $MAKE -f - am--depfiles" >&5
  23343. (cd "$am_dirpart" \
  23344. && sed -e '/# am--include-marker/d' "$am_filepart" \
  23345. | $MAKE -f - am--depfiles) >&5 2>&5
  23346. ac_status=$?
  23347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23348. (exit $ac_status); } || am_rc=$?
  23349. done
  23350. if test $am_rc -ne 0; then
  23351. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23352. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23353. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  23354. for automatic dependency tracking. If GNU make was not used, consider
  23355. re-running the configure script with MAKE=\"gmake\" (or whatever is
  23356. necessary). You can also try re-running configure with the
  23357. '--disable-dependency-tracking' option to at least be able to build
  23358. the package (albeit without support for automatic dependency tracking).
  23359. See \`config.log' for more details" "$LINENO" 5; }
  23360. fi
  23361. { am_dirpart=; unset am_dirpart;}
  23362. { am_filepart=; unset am_filepart;}
  23363. { am_mf=; unset am_mf;}
  23364. { am_rc=; unset am_rc;}
  23365. rm -f conftest-deps.mk
  23366. }
  23367. ;;
  23368. "libtool":C)
  23369. # See if we are running on zsh, and set the options that allow our
  23370. # commands through without removal of \ escapes.
  23371. if test -n "${ZSH_VERSION+set}"; then
  23372. setopt NO_GLOB_SUBST
  23373. fi
  23374. cfgfile=${ofile}T
  23375. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23376. $RM "$cfgfile"
  23377. cat <<_LT_EOF >> "$cfgfile"
  23378. #! $SHELL
  23379. # Generated automatically by $as_me ($PACKAGE) $VERSION
  23380. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23381. # Provide generalized library-building support services.
  23382. # Written by Gordon Matzigkeit, 1996
  23383. # Copyright (C) 2014 Free Software Foundation, Inc.
  23384. # This is free software; see the source for copying conditions. There is NO
  23385. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  23386. # GNU Libtool is free software; you can redistribute it and/or modify
  23387. # it under the terms of the GNU General Public License as published by
  23388. # the Free Software Foundation; either version 2 of of the License, or
  23389. # (at your option) any later version.
  23390. #
  23391. # As a special exception to the GNU General Public License, if you
  23392. # distribute this file as part of a program or library that is built
  23393. # using GNU Libtool, you may include this file under the same
  23394. # distribution terms that you use for the rest of that program.
  23395. #
  23396. # GNU Libtool is distributed in the hope that it will be useful, but
  23397. # WITHOUT ANY WARRANTY; without even the implied warranty of
  23398. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23399. # GNU General Public License for more details.
  23400. #
  23401. # You should have received a copy of the GNU General Public License
  23402. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23403. # The names of the tagged configurations supported by this script.
  23404. available_tags='CXX '
  23405. # Configured defaults for sys_lib_dlsearch_path munging.
  23406. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  23407. # ### BEGIN LIBTOOL CONFIG
  23408. # Which release of libtool.m4 was used?
  23409. macro_version=$macro_version
  23410. macro_revision=$macro_revision
  23411. # Whether or not to build shared libraries.
  23412. build_libtool_libs=$enable_shared
  23413. # Whether or not to build static libraries.
  23414. build_old_libs=$enable_static
  23415. # What type of objects to build.
  23416. pic_mode=$pic_mode
  23417. # Whether or not to optimize for fast installation.
  23418. fast_install=$enable_fast_install
  23419. # Shared archive member basename,for filename based shared library versioning on AIX.
  23420. shared_archive_member_spec=$shared_archive_member_spec
  23421. # Shell to use when invoking shell scripts.
  23422. SHELL=$lt_SHELL
  23423. # An echo program that protects backslashes.
  23424. ECHO=$lt_ECHO
  23425. # The PATH separator for the build system.
  23426. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23427. # The host system.
  23428. host_alias=$host_alias
  23429. host=$host
  23430. host_os=$host_os
  23431. # The build system.
  23432. build_alias=$build_alias
  23433. build=$build
  23434. build_os=$build_os
  23435. # A sed program that does not truncate output.
  23436. SED=$lt_SED
  23437. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23438. Xsed="\$SED -e 1s/^X//"
  23439. # A grep program that handles long lines.
  23440. GREP=$lt_GREP
  23441. # An ERE matcher.
  23442. EGREP=$lt_EGREP
  23443. # A literal string matcher.
  23444. FGREP=$lt_FGREP
  23445. # A BSD- or MS-compatible name lister.
  23446. NM=$lt_NM
  23447. # Whether we need soft or hard links.
  23448. LN_S=$lt_LN_S
  23449. # What is the maximum length of a command?
  23450. max_cmd_len=$max_cmd_len
  23451. # Object file suffix (normally "o").
  23452. objext=$ac_objext
  23453. # Executable file suffix (normally "").
  23454. exeext=$exeext
  23455. # whether the shell understands "unset".
  23456. lt_unset=$lt_unset
  23457. # turn spaces into newlines.
  23458. SP2NL=$lt_lt_SP2NL
  23459. # turn newlines into spaces.
  23460. NL2SP=$lt_lt_NL2SP
  23461. # convert \$build file names to \$host format.
  23462. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23463. # convert \$build files to toolchain format.
  23464. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23465. # An object symbol dumper.
  23466. OBJDUMP=$lt_OBJDUMP
  23467. # Method to check whether dependent libraries are shared objects.
  23468. deplibs_check_method=$lt_deplibs_check_method
  23469. # Command to use when deplibs_check_method = "file_magic".
  23470. file_magic_cmd=$lt_file_magic_cmd
  23471. # How to find potential files when deplibs_check_method = "file_magic".
  23472. file_magic_glob=$lt_file_magic_glob
  23473. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23474. want_nocaseglob=$lt_want_nocaseglob
  23475. # DLL creation program.
  23476. DLLTOOL=$lt_DLLTOOL
  23477. # Command to associate shared and link libraries.
  23478. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23479. # The archiver.
  23480. AR=$lt_AR
  23481. # Flags to create an archive.
  23482. AR_FLAGS=$lt_AR_FLAGS
  23483. # How to feed a file listing to the archiver.
  23484. archiver_list_spec=$lt_archiver_list_spec
  23485. # A symbol stripping program.
  23486. STRIP=$lt_STRIP
  23487. # Commands used to install an old-style archive.
  23488. RANLIB=$lt_RANLIB
  23489. old_postinstall_cmds=$lt_old_postinstall_cmds
  23490. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23491. # Whether to use a lock for old archive extraction.
  23492. lock_old_archive_extraction=$lock_old_archive_extraction
  23493. # A C compiler.
  23494. LTCC=$lt_CC
  23495. # LTCC compiler flags.
  23496. LTCFLAGS=$lt_CFLAGS
  23497. # Take the output of nm and produce a listing of raw symbols and C names.
  23498. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23499. # Transform the output of nm in a proper C declaration.
  23500. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23501. # Transform the output of nm into a list of symbols to manually relocate.
  23502. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  23503. # Transform the output of nm in a C name address pair.
  23504. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23505. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23506. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23507. # The name lister interface.
  23508. nm_interface=$lt_lt_cv_nm_interface
  23509. # Specify filename containing input files for \$NM.
  23510. nm_file_list_spec=$lt_nm_file_list_spec
  23511. # The root where to search for dependent libraries,and where our libraries should be installed.
  23512. lt_sysroot=$lt_sysroot
  23513. # Command to truncate a binary pipe.
  23514. lt_truncate_bin=$lt_lt_cv_truncate_bin
  23515. # The name of the directory that contains temporary libtool files.
  23516. objdir=$objdir
  23517. # Used to examine libraries when file_magic_cmd begins with "file".
  23518. MAGIC_CMD=$MAGIC_CMD
  23519. # Must we lock files when doing compilation?
  23520. need_locks=$lt_need_locks
  23521. # Manifest tool.
  23522. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23523. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23524. DSYMUTIL=$lt_DSYMUTIL
  23525. # Tool to change global to local symbols on Mac OS X.
  23526. NMEDIT=$lt_NMEDIT
  23527. # Tool to manipulate fat objects and archives on Mac OS X.
  23528. LIPO=$lt_LIPO
  23529. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23530. OTOOL=$lt_OTOOL
  23531. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23532. OTOOL64=$lt_OTOOL64
  23533. # Old archive suffix (normally "a").
  23534. libext=$libext
  23535. # Shared library suffix (normally ".so").
  23536. shrext_cmds=$lt_shrext_cmds
  23537. # The commands to extract the exported symbol list from a shared archive.
  23538. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23539. # Variables whose values should be saved in libtool wrapper scripts and
  23540. # restored at link time.
  23541. variables_saved_for_relink=$lt_variables_saved_for_relink
  23542. # Do we need the "lib" prefix for modules?
  23543. need_lib_prefix=$need_lib_prefix
  23544. # Do we need a version for libraries?
  23545. need_version=$need_version
  23546. # Library versioning type.
  23547. version_type=$version_type
  23548. # Shared library runtime path variable.
  23549. runpath_var=$runpath_var
  23550. # Shared library path variable.
  23551. shlibpath_var=$shlibpath_var
  23552. # Is shlibpath searched before the hard-coded library search path?
  23553. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23554. # Format of library name prefix.
  23555. libname_spec=$lt_libname_spec
  23556. # List of archive names. First name is the real one, the rest are links.
  23557. # The last name is the one that the linker finds with -lNAME
  23558. library_names_spec=$lt_library_names_spec
  23559. # The coded name of the library, if different from the real name.
  23560. soname_spec=$lt_soname_spec
  23561. # Permission mode override for installation of shared libraries.
  23562. install_override_mode=$lt_install_override_mode
  23563. # Command to use after installation of a shared archive.
  23564. postinstall_cmds=$lt_postinstall_cmds
  23565. # Command to use after uninstallation of a shared archive.
  23566. postuninstall_cmds=$lt_postuninstall_cmds
  23567. # Commands used to finish a libtool library installation in a directory.
  23568. finish_cmds=$lt_finish_cmds
  23569. # As "finish_cmds", except a single script fragment to be evaled but
  23570. # not shown.
  23571. finish_eval=$lt_finish_eval
  23572. # Whether we should hardcode library paths into libraries.
  23573. hardcode_into_libs=$hardcode_into_libs
  23574. # Compile-time system search path for libraries.
  23575. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23576. # Detected run-time system search path for libraries.
  23577. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  23578. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  23579. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  23580. # Whether dlopen is supported.
  23581. dlopen_support=$enable_dlopen
  23582. # Whether dlopen of programs is supported.
  23583. dlopen_self=$enable_dlopen_self
  23584. # Whether dlopen of statically linked programs is supported.
  23585. dlopen_self_static=$enable_dlopen_self_static
  23586. # Commands to strip libraries.
  23587. old_striplib=$lt_old_striplib
  23588. striplib=$lt_striplib
  23589. # The linker used to build libraries.
  23590. LD=$lt_LD
  23591. # How to create reloadable object files.
  23592. reload_flag=$lt_reload_flag
  23593. reload_cmds=$lt_reload_cmds
  23594. # Commands used to build an old-style archive.
  23595. old_archive_cmds=$lt_old_archive_cmds
  23596. # A language specific compiler.
  23597. CC=$lt_compiler
  23598. # Is the compiler the GNU compiler?
  23599. with_gcc=$GCC
  23600. # Compiler flag to turn off builtin functions.
  23601. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23602. # Additional compiler flags for building library objects.
  23603. pic_flag=$lt_lt_prog_compiler_pic
  23604. # How to pass a linker flag through the compiler.
  23605. wl=$lt_lt_prog_compiler_wl
  23606. # Compiler flag to prevent dynamic linking.
  23607. link_static_flag=$lt_lt_prog_compiler_static
  23608. # Does compiler simultaneously support -c and -o options?
  23609. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23610. # Whether or not to add -lc for building shared libraries.
  23611. build_libtool_need_lc=$archive_cmds_need_lc
  23612. # Whether or not to disallow shared libs when runtime libs are static.
  23613. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23614. # Compiler flag to allow reflexive dlopens.
  23615. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23616. # Compiler flag to generate shared objects directly from archives.
  23617. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23618. # Whether the compiler copes with passing no objects directly.
  23619. compiler_needs_object=$lt_compiler_needs_object
  23620. # Create an old-style archive from a shared archive.
  23621. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23622. # Create a temporary old-style archive to link instead of a shared archive.
  23623. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23624. # Commands used to build a shared archive.
  23625. archive_cmds=$lt_archive_cmds
  23626. archive_expsym_cmds=$lt_archive_expsym_cmds
  23627. # Commands used to build a loadable module if different from building
  23628. # a shared archive.
  23629. module_cmds=$lt_module_cmds
  23630. module_expsym_cmds=$lt_module_expsym_cmds
  23631. # Whether we are building with GNU ld or not.
  23632. with_gnu_ld=$lt_with_gnu_ld
  23633. # Flag that allows shared libraries with undefined symbols to be built.
  23634. allow_undefined_flag=$lt_allow_undefined_flag
  23635. # Flag that enforces no undefined symbols.
  23636. no_undefined_flag=$lt_no_undefined_flag
  23637. # Flag to hardcode \$libdir into a binary during linking.
  23638. # This must work even if \$libdir does not exist
  23639. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23640. # Whether we need a single "-rpath" flag with a separated argument.
  23641. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23642. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23643. # DIR into the resulting binary.
  23644. hardcode_direct=$hardcode_direct
  23645. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23646. # DIR into the resulting binary and the resulting library dependency is
  23647. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23648. # library is relocated.
  23649. hardcode_direct_absolute=$hardcode_direct_absolute
  23650. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23651. # into the resulting binary.
  23652. hardcode_minus_L=$hardcode_minus_L
  23653. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23654. # into the resulting binary.
  23655. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23656. # Set to "yes" if building a shared library automatically hardcodes DIR
  23657. # into the library and all subsequent libraries and executables linked
  23658. # against it.
  23659. hardcode_automatic=$hardcode_automatic
  23660. # Set to yes if linker adds runtime paths of dependent libraries
  23661. # to runtime path list.
  23662. inherit_rpath=$inherit_rpath
  23663. # Whether libtool must link a program against all its dependency libraries.
  23664. link_all_deplibs=$link_all_deplibs
  23665. # Set to "yes" if exported symbols are required.
  23666. always_export_symbols=$always_export_symbols
  23667. # The commands to list exported symbols.
  23668. export_symbols_cmds=$lt_export_symbols_cmds
  23669. # Symbols that should not be listed in the preloaded symbols.
  23670. exclude_expsyms=$lt_exclude_expsyms
  23671. # Symbols that must always be exported.
  23672. include_expsyms=$lt_include_expsyms
  23673. # Commands necessary for linking programs (against libraries) with templates.
  23674. prelink_cmds=$lt_prelink_cmds
  23675. # Commands necessary for finishing linking programs.
  23676. postlink_cmds=$lt_postlink_cmds
  23677. # Specify filename containing input files.
  23678. file_list_spec=$lt_file_list_spec
  23679. # How to hardcode a shared library path into an executable.
  23680. hardcode_action=$hardcode_action
  23681. # The directories searched by this compiler when creating a shared library.
  23682. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23683. # Dependencies to place before and after the objects being linked to
  23684. # create a shared library.
  23685. predep_objects=$lt_predep_objects
  23686. postdep_objects=$lt_postdep_objects
  23687. predeps=$lt_predeps
  23688. postdeps=$lt_postdeps
  23689. # The library search path used internally by the compiler when linking
  23690. # a shared library.
  23691. compiler_lib_search_path=$lt_compiler_lib_search_path
  23692. # ### END LIBTOOL CONFIG
  23693. _LT_EOF
  23694. cat <<'_LT_EOF' >> "$cfgfile"
  23695. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  23696. # func_munge_path_list VARIABLE PATH
  23697. # -----------------------------------
  23698. # VARIABLE is name of variable containing _space_ separated list of
  23699. # directories to be munged by the contents of PATH, which is string
  23700. # having a format:
  23701. # "DIR[:DIR]:"
  23702. # string "DIR[ DIR]" will be prepended to VARIABLE
  23703. # ":DIR[:DIR]"
  23704. # string "DIR[ DIR]" will be appended to VARIABLE
  23705. # "DIRP[:DIRP]::[DIRA:]DIRA"
  23706. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  23707. # "DIRA[ DIRA]" will be appended to VARIABLE
  23708. # "DIR[:DIR]"
  23709. # VARIABLE will be replaced by "DIR[ DIR]"
  23710. func_munge_path_list ()
  23711. {
  23712. case x$2 in
  23713. x)
  23714. ;;
  23715. *:)
  23716. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  23717. ;;
  23718. x:*)
  23719. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  23720. ;;
  23721. *::*)
  23722. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  23723. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  23724. ;;
  23725. *)
  23726. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  23727. ;;
  23728. esac
  23729. }
  23730. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  23731. func_cc_basename ()
  23732. {
  23733. for cc_temp in $*""; do
  23734. case $cc_temp in
  23735. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  23736. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  23737. \-*) ;;
  23738. *) break;;
  23739. esac
  23740. done
  23741. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  23742. }
  23743. # ### END FUNCTIONS SHARED WITH CONFIGURE
  23744. _LT_EOF
  23745. case $host_os in
  23746. aix3*)
  23747. cat <<\_LT_EOF >> "$cfgfile"
  23748. # AIX sometimes has problems with the GCC collect2 program. For some
  23749. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23750. # vanish in a puff of smoke.
  23751. if test set != "${COLLECT_NAMES+set}"; then
  23752. COLLECT_NAMES=
  23753. export COLLECT_NAMES
  23754. fi
  23755. _LT_EOF
  23756. ;;
  23757. esac
  23758. ltmain=$ac_aux_dir/ltmain.sh
  23759. # We use sed instead of cat because bash on DJGPP gets confused if
  23760. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23761. # text mode, it properly converts lines to CR/LF. This bash problem
  23762. # is reportedly fixed, but why not run on old versions too?
  23763. sed '$q' "$ltmain" >> "$cfgfile" \
  23764. || (rm -f "$cfgfile"; exit 1)
  23765. mv -f "$cfgfile" "$ofile" ||
  23766. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23767. chmod +x "$ofile"
  23768. cat <<_LT_EOF >> "$ofile"
  23769. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23770. # The linker used to build libraries.
  23771. LD=$lt_LD_CXX
  23772. # How to create reloadable object files.
  23773. reload_flag=$lt_reload_flag_CXX
  23774. reload_cmds=$lt_reload_cmds_CXX
  23775. # Commands used to build an old-style archive.
  23776. old_archive_cmds=$lt_old_archive_cmds_CXX
  23777. # A language specific compiler.
  23778. CC=$lt_compiler_CXX
  23779. # Is the compiler the GNU compiler?
  23780. with_gcc=$GCC_CXX
  23781. # Compiler flag to turn off builtin functions.
  23782. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23783. # Additional compiler flags for building library objects.
  23784. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23785. # How to pass a linker flag through the compiler.
  23786. wl=$lt_lt_prog_compiler_wl_CXX
  23787. # Compiler flag to prevent dynamic linking.
  23788. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23789. # Does compiler simultaneously support -c and -o options?
  23790. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23791. # Whether or not to add -lc for building shared libraries.
  23792. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23793. # Whether or not to disallow shared libs when runtime libs are static.
  23794. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23795. # Compiler flag to allow reflexive dlopens.
  23796. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23797. # Compiler flag to generate shared objects directly from archives.
  23798. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23799. # Whether the compiler copes with passing no objects directly.
  23800. compiler_needs_object=$lt_compiler_needs_object_CXX
  23801. # Create an old-style archive from a shared archive.
  23802. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23803. # Create a temporary old-style archive to link instead of a shared archive.
  23804. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23805. # Commands used to build a shared archive.
  23806. archive_cmds=$lt_archive_cmds_CXX
  23807. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23808. # Commands used to build a loadable module if different from building
  23809. # a shared archive.
  23810. module_cmds=$lt_module_cmds_CXX
  23811. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23812. # Whether we are building with GNU ld or not.
  23813. with_gnu_ld=$lt_with_gnu_ld_CXX
  23814. # Flag that allows shared libraries with undefined symbols to be built.
  23815. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23816. # Flag that enforces no undefined symbols.
  23817. no_undefined_flag=$lt_no_undefined_flag_CXX
  23818. # Flag to hardcode \$libdir into a binary during linking.
  23819. # This must work even if \$libdir does not exist
  23820. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23821. # Whether we need a single "-rpath" flag with a separated argument.
  23822. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23823. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23824. # DIR into the resulting binary.
  23825. hardcode_direct=$hardcode_direct_CXX
  23826. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23827. # DIR into the resulting binary and the resulting library dependency is
  23828. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23829. # library is relocated.
  23830. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23831. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23832. # into the resulting binary.
  23833. hardcode_minus_L=$hardcode_minus_L_CXX
  23834. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23835. # into the resulting binary.
  23836. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23837. # Set to "yes" if building a shared library automatically hardcodes DIR
  23838. # into the library and all subsequent libraries and executables linked
  23839. # against it.
  23840. hardcode_automatic=$hardcode_automatic_CXX
  23841. # Set to yes if linker adds runtime paths of dependent libraries
  23842. # to runtime path list.
  23843. inherit_rpath=$inherit_rpath_CXX
  23844. # Whether libtool must link a program against all its dependency libraries.
  23845. link_all_deplibs=$link_all_deplibs_CXX
  23846. # Set to "yes" if exported symbols are required.
  23847. always_export_symbols=$always_export_symbols_CXX
  23848. # The commands to list exported symbols.
  23849. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23850. # Symbols that should not be listed in the preloaded symbols.
  23851. exclude_expsyms=$lt_exclude_expsyms_CXX
  23852. # Symbols that must always be exported.
  23853. include_expsyms=$lt_include_expsyms_CXX
  23854. # Commands necessary for linking programs (against libraries) with templates.
  23855. prelink_cmds=$lt_prelink_cmds_CXX
  23856. # Commands necessary for finishing linking programs.
  23857. postlink_cmds=$lt_postlink_cmds_CXX
  23858. # Specify filename containing input files.
  23859. file_list_spec=$lt_file_list_spec_CXX
  23860. # How to hardcode a shared library path into an executable.
  23861. hardcode_action=$hardcode_action_CXX
  23862. # The directories searched by this compiler when creating a shared library.
  23863. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23864. # Dependencies to place before and after the objects being linked to
  23865. # create a shared library.
  23866. predep_objects=$lt_predep_objects_CXX
  23867. postdep_objects=$lt_postdep_objects_CXX
  23868. predeps=$lt_predeps_CXX
  23869. postdeps=$lt_postdeps_CXX
  23870. # The library search path used internally by the compiler when linking
  23871. # a shared library.
  23872. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23873. # ### END LIBTOOL TAG CONFIG: CXX
  23874. _LT_EOF
  23875. ;;
  23876. esac
  23877. done # for ac_tag
  23878. as_fn_exit 0
  23879. _ACEOF
  23880. ac_clean_files=$ac_clean_files_save
  23881. test $ac_write_fail = 0 ||
  23882. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23883. # configure is writing to config.log, and then calls config.status.
  23884. # config.status does its own redirection, appending to config.log.
  23885. # Unfortunately, on DOS this fails, as config.log is still kept open
  23886. # by configure, so config.status won't be able to write to it; its
  23887. # output is simply discarded. So we exec the FD to /dev/null,
  23888. # effectively closing config.log, so it can be properly (re)opened and
  23889. # appended to by config.status. When coming back to configure, we
  23890. # need to make the FD available again.
  23891. if test "$no_create" != yes; then
  23892. ac_cs_success=:
  23893. ac_config_status_args=
  23894. test "$silent" = yes &&
  23895. ac_config_status_args="$ac_config_status_args --quiet"
  23896. exec 5>/dev/null
  23897. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23898. exec 5>>config.log
  23899. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23900. # would make configure fail if this is the last instruction.
  23901. $ac_cs_success || as_fn_exit 1
  23902. fi
  23903. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23905. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23906. fi
  23907. # Configuration results
  23908. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  23909. ##########################################################################
  23910. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23911. ##########################################################################
  23912. libpcap: ${foundpcap} (${libpcap_version})
  23913. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23914. libdnet: ${founddnet} ${libdnet_version}
  23915. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23916. Use libopts tearoff: ${enable_local_libopts}
  23917. 64bit counter support: ${use64bit_counters}
  23918. tcpdump binary path: ${tcpdump_path}
  23919. fragroute support: ${enable_fragroute}
  23920. tcpbridge support: ${enable_tcpbridge}
  23921. tcpliveplay support: ${enable_tcpliveplay}
  23922. Supported Packet Injection Methods (*):
  23923. Linux TX_RING: ${have_tx_ring}
  23924. Linux PF_PACKET: ${have_pf}
  23925. BSD BPF: ${have_bpf}
  23926. libdnet: ${have_libdnet}
  23927. pcap_inject: ${have_pcap_inject}
  23928. pcap_sendpacket: ${have_pcap_sendpacket} **
  23929. pcap_netmap ${have_pcap_netmap}
  23930. Linux/BSD netmap: ${have_netmap}
  23931. Tuntap device support: ${have_tuntap}
  23932. * In order of preference; see configure --help to override
  23933. ** Required for tcpbridge
  23934. " >&5
  23935. $as_echo "
  23936. ##########################################################################
  23937. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  23938. ##########################################################################
  23939. libpcap: ${foundpcap} (${libpcap_version})
  23940. PF_RING libpcap ${pf_ring_found} ${pf_ring_lib}
  23941. libdnet: ${founddnet} ${libdnet_version}
  23942. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  23943. Use libopts tearoff: ${enable_local_libopts}
  23944. 64bit counter support: ${use64bit_counters}
  23945. tcpdump binary path: ${tcpdump_path}
  23946. fragroute support: ${enable_fragroute}
  23947. tcpbridge support: ${enable_tcpbridge}
  23948. tcpliveplay support: ${enable_tcpliveplay}
  23949. Supported Packet Injection Methods (*):
  23950. Linux TX_RING: ${have_tx_ring}
  23951. Linux PF_PACKET: ${have_pf}
  23952. BSD BPF: ${have_bpf}
  23953. libdnet: ${have_libdnet}
  23954. pcap_inject: ${have_pcap_inject}
  23955. pcap_sendpacket: ${have_pcap_sendpacket} **
  23956. pcap_netmap ${have_pcap_netmap}
  23957. Linux/BSD netmap: ${have_netmap}
  23958. Tuntap device support: ${have_tuntap}
  23959. * In order of preference; see configure --help to override
  23960. ** Required for tcpbridge
  23961. " >&6; }
  23962. case $host in
  23963. *-*-cygwin)
  23964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  23965. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&5
  23966. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  23967. Please report any bugs! https://github.com/appneta/tcpreplay/issues" >&2;}
  23968. ;;
  23969. esac