configure 576 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for usbmuxd 1.1.0.
  4. #
  5. # Report bugs to <https://github.com/libimobiledevice/usbmuxd/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/libimobiledevice/usbmuxd/issues
  260. $0: about your system, including any error possibly output
  261. $0: before this message. Then install a modern shell, or
  262. $0: manually run the script under such a shell if you do
  263. $0: have one."
  264. fi
  265. exit 1
  266. fi
  267. fi
  268. fi
  269. SHELL=${CONFIG_SHELL-/bin/sh}
  270. export SHELL
  271. # Unset more variables known to interfere with behavior of common tools.
  272. CLICOLOR_FORCE= GREP_OPTIONS=
  273. unset CLICOLOR_FORCE GREP_OPTIONS
  274. ## --------------------- ##
  275. ## M4sh Shell Functions. ##
  276. ## --------------------- ##
  277. # as_fn_unset VAR
  278. # ---------------
  279. # Portably unset VAR.
  280. as_fn_unset ()
  281. {
  282. { eval $1=; unset $1;}
  283. }
  284. as_unset=as_fn_unset
  285. # as_fn_set_status STATUS
  286. # -----------------------
  287. # Set $? to STATUS, without forking.
  288. as_fn_set_status ()
  289. {
  290. return $1
  291. } # as_fn_set_status
  292. # as_fn_exit STATUS
  293. # -----------------
  294. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  295. as_fn_exit ()
  296. {
  297. set +e
  298. as_fn_set_status $1
  299. exit $1
  300. } # as_fn_exit
  301. # as_fn_mkdir_p
  302. # -------------
  303. # Create "$as_dir" as a directory, including parents if necessary.
  304. as_fn_mkdir_p ()
  305. {
  306. case $as_dir in #(
  307. -*) as_dir=./$as_dir;;
  308. esac
  309. test -d "$as_dir" || eval $as_mkdir_p || {
  310. as_dirs=
  311. while :; do
  312. case $as_dir in #(
  313. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  314. *) as_qdir=$as_dir;;
  315. esac
  316. as_dirs="'$as_qdir' $as_dirs"
  317. as_dir=`$as_dirname -- "$as_dir" ||
  318. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  319. X"$as_dir" : 'X\(//\)[^/]' \| \
  320. X"$as_dir" : 'X\(//\)$' \| \
  321. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  322. $as_echo X"$as_dir" |
  323. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)[^/].*/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)$/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\).*/{
  336. s//\1/
  337. q
  338. }
  339. s/.*/./; q'`
  340. test -d "$as_dir" && break
  341. done
  342. test -z "$as_dirs" || eval "mkdir $as_dirs"
  343. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  344. } # as_fn_mkdir_p
  345. # as_fn_executable_p FILE
  346. # -----------------------
  347. # Test if FILE is an executable regular file.
  348. as_fn_executable_p ()
  349. {
  350. test -f "$1" && test -x "$1"
  351. } # as_fn_executable_p
  352. # as_fn_append VAR VALUE
  353. # ----------------------
  354. # Append the text in VALUE to the end of the definition contained in VAR. Take
  355. # advantage of any shell optimizations that allow amortized linear growth over
  356. # repeated appends, instead of the typical quadratic growth present in naive
  357. # implementations.
  358. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else
  380. as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. }
  384. fi # as_fn_arith
  385. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  386. # ----------------------------------------
  387. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  388. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  389. # script with STATUS, using 1 if that was 0.
  390. as_fn_error ()
  391. {
  392. as_status=$1; test $as_status -eq 0 && as_status=1
  393. if test "$4"; then
  394. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  395. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  396. fi
  397. $as_echo "$as_me: error: $2" >&2
  398. as_fn_exit $as_status
  399. } # as_fn_error
  400. if expr a : '\(a\)' >/dev/null 2>&1 &&
  401. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  402. as_expr=expr
  403. else
  404. as_expr=false
  405. fi
  406. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  407. as_basename=basename
  408. else
  409. as_basename=false
  410. fi
  411. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  412. as_dirname=dirname
  413. else
  414. as_dirname=false
  415. fi
  416. as_me=`$as_basename -- "$0" ||
  417. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  418. X"$0" : 'X\(//\)$' \| \
  419. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  420. $as_echo X/"$0" |
  421. sed '/^.*\/\([^/][^/]*\)\/*$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\/\)$/{
  426. s//\1/
  427. q
  428. }
  429. /^X\/\(\/\).*/{
  430. s//\1/
  431. q
  432. }
  433. s/.*/./; q'`
  434. # Avoid depending upon Character Ranges.
  435. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. as_cr_digits='0123456789'
  439. as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  441. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  442. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  443. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  444. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  445. sed -n '
  446. p
  447. /[$]LINENO/=
  448. ' <$as_myself |
  449. sed '
  450. s/[$]LINENO.*/&-/
  451. t lineno
  452. b
  453. :lineno
  454. N
  455. :loop
  456. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  457. t loop
  458. s/-\n.*//
  459. ' >$as_me.lineno &&
  460. chmod +x "$as_me.lineno" ||
  461. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  462. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  463. # already done that, so ensure we don't try to do so again and fall
  464. # in an infinite loop. This has already happened in practice.
  465. _as_can_reexec=no; export _as_can_reexec
  466. # Don't try to exec as it changes $[0], causing all sort of problems
  467. # (the dirname of $[0] is not the place where we might find the
  468. # original and so on. Autoconf is especially sensitive to this).
  469. . "./$as_me.lineno"
  470. # Exit status is that of the last command.
  471. exit
  472. }
  473. ECHO_C= ECHO_N= ECHO_T=
  474. case `echo -n x` in #(((((
  475. -n*)
  476. case `echo 'xy\c'` in
  477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  478. xy) ECHO_C='\c';;
  479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. ECHO_T=' ';;
  481. esac;;
  482. *)
  483. ECHO_N='-n';;
  484. esac
  485. rm -f conf$$ conf$$.exe conf$$.file
  486. if test -d conf$$.dir; then
  487. rm -f conf$$.dir/conf$$.file
  488. else
  489. rm -f conf$$.dir
  490. mkdir conf$$.dir 2>/dev/null
  491. fi
  492. if (echo >conf$$.file) 2>/dev/null; then
  493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s='ln -s'
  495. # ... but there are two gotchas:
  496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  498. # In both cases, we have to default to `cp -pR'.
  499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  500. as_ln_s='cp -pR'
  501. elif ln conf$$.file conf$$ 2>/dev/null; then
  502. as_ln_s=ln
  503. else
  504. as_ln_s='cp -pR'
  505. fi
  506. else
  507. as_ln_s='cp -pR'
  508. fi
  509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  510. rmdir conf$$.dir 2>/dev/null
  511. if mkdir -p . 2>/dev/null; then
  512. as_mkdir_p='mkdir -p "$as_dir"'
  513. else
  514. test -d ./-p && rmdir ./-p
  515. as_mkdir_p=false
  516. fi
  517. as_test_x='test -x'
  518. as_executable_p=as_fn_executable_p
  519. # Sed expression to map a string onto a valid CPP name.
  520. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  521. # Sed expression to map a string onto a valid variable name.
  522. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  523. SHELL=${CONFIG_SHELL-/bin/sh}
  524. test -n "$DJDIR" || exec 7<&0 </dev/null
  525. exec 6>&1
  526. # Name of the host.
  527. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  528. # so uname gets run too.
  529. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  530. #
  531. # Initializations.
  532. #
  533. ac_default_prefix=/usr/local
  534. ac_clean_files=
  535. ac_config_libobj_dir=.
  536. LIBOBJS=
  537. cross_compiling=no
  538. subdirs=
  539. MFLAGS=
  540. MAKEFLAGS=
  541. # Identity of this package.
  542. PACKAGE_NAME='usbmuxd'
  543. PACKAGE_TARNAME='usbmuxd'
  544. PACKAGE_VERSION='1.1.0'
  545. PACKAGE_STRING='usbmuxd 1.1.0'
  546. PACKAGE_BUGREPORT='https://github.com/libimobiledevice/usbmuxd/issues'
  547. PACKAGE_URL='http://libimobiledevice.org'
  548. ac_unique_file="src/"
  549. # Factoring default headers for most tests.
  550. ac_includes_default="\
  551. #include <stdio.h>
  552. #ifdef HAVE_SYS_TYPES_H
  553. # include <sys/types.h>
  554. #endif
  555. #ifdef HAVE_SYS_STAT_H
  556. # include <sys/stat.h>
  557. #endif
  558. #ifdef STDC_HEADERS
  559. # include <stdlib.h>
  560. # include <stddef.h>
  561. #else
  562. # ifdef HAVE_STDLIB_H
  563. # include <stdlib.h>
  564. # endif
  565. #endif
  566. #ifdef HAVE_STRING_H
  567. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  568. # include <memory.h>
  569. # endif
  570. # include <string.h>
  571. #endif
  572. #ifdef HAVE_STRINGS_H
  573. # include <strings.h>
  574. #endif
  575. #ifdef HAVE_INTTYPES_H
  576. # include <inttypes.h>
  577. #endif
  578. #ifdef HAVE_STDINT_H
  579. # include <stdint.h>
  580. #endif
  581. #ifdef HAVE_UNISTD_H
  582. # include <unistd.h>
  583. #endif"
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. GLOBAL_CFLAGS
  588. SYSTEMD_SUB
  589. UDEV_SUB
  590. WIN32_FALSE
  591. WIN32_TRUE
  592. udevrulesdir
  593. WINDRES
  594. LIBOBJS
  595. udev_activation_rule
  596. WANT_SYSTEMD_FALSE
  597. WANT_SYSTEMD_TRUE
  598. systemdsystemunitdir
  599. libpthread_LIBS
  600. libimobiledevice_LIBS
  601. libimobiledevice_CFLAGS
  602. libplist_LIBS
  603. libplist_CFLAGS
  604. libusb_LIBS
  605. libusb_CFLAGS
  606. PKG_CONFIG_LIBDIR
  607. PKG_CONFIG_PATH
  608. PKG_CONFIG
  609. CXXCPP
  610. CPP
  611. OTOOL64
  612. OTOOL
  613. LIPO
  614. NMEDIT
  615. DSYMUTIL
  616. MANIFEST_TOOL
  617. RANLIB
  618. ac_ct_AR
  619. AR
  620. DLLTOOL
  621. OBJDUMP
  622. LN_S
  623. NM
  624. ac_ct_DUMPBIN
  625. DUMPBIN
  626. LD
  627. FGREP
  628. EGREP
  629. GREP
  630. SED
  631. host_os
  632. host_vendor
  633. host_cpu
  634. host
  635. build_os
  636. build_vendor
  637. build_cpu
  638. build
  639. LIBTOOL
  640. am__fastdepCXX_FALSE
  641. am__fastdepCXX_TRUE
  642. CXXDEPMODE
  643. ac_ct_CXX
  644. CXXFLAGS
  645. CXX
  646. am__fastdepCC_FALSE
  647. am__fastdepCC_TRUE
  648. CCDEPMODE
  649. am__nodep
  650. AMDEPBACKSLASH
  651. AMDEP_FALSE
  652. AMDEP_TRUE
  653. am__quote
  654. am__include
  655. DEPDIR
  656. OBJEXT
  657. EXEEXT
  658. ac_ct_CC
  659. CPPFLAGS
  660. LDFLAGS
  661. CFLAGS
  662. CC
  663. AM_BACKSLASH
  664. AM_DEFAULT_VERBOSITY
  665. AM_DEFAULT_V
  666. AM_V
  667. am__untar
  668. am__tar
  669. AMTAR
  670. am__leading_dot
  671. SET_MAKE
  672. AWK
  673. mkdir_p
  674. MKDIR_P
  675. INSTALL_STRIP_PROGRAM
  676. STRIP
  677. install_sh
  678. MAKEINFO
  679. AUTOHEADER
  680. AUTOMAKE
  681. AUTOCONF
  682. ACLOCAL
  683. VERSION
  684. PACKAGE
  685. CYGPATH_W
  686. am__isrc
  687. INSTALL_DATA
  688. INSTALL_SCRIPT
  689. INSTALL_PROGRAM
  690. target_alias
  691. host_alias
  692. build_alias
  693. LIBS
  694. ECHO_T
  695. ECHO_N
  696. ECHO_C
  697. DEFS
  698. mandir
  699. localedir
  700. libdir
  701. psdir
  702. pdfdir
  703. dvidir
  704. htmldir
  705. infodir
  706. docdir
  707. oldincludedir
  708. includedir
  709. localstatedir
  710. sharedstatedir
  711. sysconfdir
  712. datadir
  713. datarootdir
  714. libexecdir
  715. sbindir
  716. bindir
  717. program_transform_name
  718. prefix
  719. exec_prefix
  720. PACKAGE_URL
  721. PACKAGE_BUGREPORT
  722. PACKAGE_STRING
  723. PACKAGE_VERSION
  724. PACKAGE_TARNAME
  725. PACKAGE_NAME
  726. PATH_SEPARATOR
  727. SHELL'
  728. ac_subst_files=''
  729. ac_user_opts='
  730. enable_option_checking
  731. enable_silent_rules
  732. enable_dependency_tracking
  733. enable_shared
  734. enable_static
  735. with_pic
  736. enable_fast_install
  737. with_gnu_ld
  738. with_sysroot
  739. enable_libtool_lock
  740. with_preflight
  741. with_udevrulesdir
  742. with_systemd
  743. with_systemdsystemunitdir
  744. '
  745. ac_precious_vars='build_alias
  746. host_alias
  747. target_alias
  748. CC
  749. CFLAGS
  750. LDFLAGS
  751. LIBS
  752. CPPFLAGS
  753. CXX
  754. CXXFLAGS
  755. CCC
  756. CPP
  757. CXXCPP
  758. PKG_CONFIG
  759. PKG_CONFIG_PATH
  760. PKG_CONFIG_LIBDIR
  761. libusb_CFLAGS
  762. libusb_LIBS
  763. libplist_CFLAGS
  764. libplist_LIBS
  765. libimobiledevice_CFLAGS
  766. libimobiledevice_LIBS'
  767. # Initialize some variables set by options.
  768. ac_init_help=
  769. ac_init_version=false
  770. ac_unrecognized_opts=
  771. ac_unrecognized_sep=
  772. # The variables have the same names as the options, with
  773. # dashes changed to underlines.
  774. cache_file=/dev/null
  775. exec_prefix=NONE
  776. no_create=
  777. no_recursion=
  778. prefix=NONE
  779. program_prefix=NONE
  780. program_suffix=NONE
  781. program_transform_name=s,x,x,
  782. silent=
  783. site=
  784. srcdir=
  785. verbose=
  786. x_includes=NONE
  787. x_libraries=NONE
  788. # Installation directory options.
  789. # These are left unexpanded so users can "make install exec_prefix=/foo"
  790. # and all the variables that are supposed to be based on exec_prefix
  791. # by default will actually change.
  792. # Use braces instead of parens because sh, perl, etc. also accept them.
  793. # (The list follows the same order as the GNU Coding Standards.)
  794. bindir='${exec_prefix}/bin'
  795. sbindir='${exec_prefix}/sbin'
  796. libexecdir='${exec_prefix}/libexec'
  797. datarootdir='${prefix}/share'
  798. datadir='${datarootdir}'
  799. sysconfdir='${prefix}/etc'
  800. sharedstatedir='${prefix}/com'
  801. localstatedir='${prefix}/var'
  802. includedir='${prefix}/include'
  803. oldincludedir='/usr/include'
  804. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  805. infodir='${datarootdir}/info'
  806. htmldir='${docdir}'
  807. dvidir='${docdir}'
  808. pdfdir='${docdir}'
  809. psdir='${docdir}'
  810. libdir='${exec_prefix}/lib'
  811. localedir='${datarootdir}/locale'
  812. mandir='${datarootdir}/man'
  813. ac_prev=
  814. ac_dashdash=
  815. for ac_option
  816. do
  817. # If the previous option needs an argument, assign it.
  818. if test -n "$ac_prev"; then
  819. eval $ac_prev=\$ac_option
  820. ac_prev=
  821. continue
  822. fi
  823. case $ac_option in
  824. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  825. *=) ac_optarg= ;;
  826. *) ac_optarg=yes ;;
  827. esac
  828. # Accept the important Cygnus configure options, so we can diagnose typos.
  829. case $ac_dashdash$ac_option in
  830. --)
  831. ac_dashdash=yes ;;
  832. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  833. ac_prev=bindir ;;
  834. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  835. bindir=$ac_optarg ;;
  836. -build | --build | --buil | --bui | --bu)
  837. ac_prev=build_alias ;;
  838. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  839. build_alias=$ac_optarg ;;
  840. -cache-file | --cache-file | --cache-fil | --cache-fi \
  841. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  842. ac_prev=cache_file ;;
  843. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  844. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  845. cache_file=$ac_optarg ;;
  846. --config-cache | -C)
  847. cache_file=config.cache ;;
  848. -datadir | --datadir | --datadi | --datad)
  849. ac_prev=datadir ;;
  850. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  851. datadir=$ac_optarg ;;
  852. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  853. | --dataroo | --dataro | --datar)
  854. ac_prev=datarootdir ;;
  855. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  856. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  857. datarootdir=$ac_optarg ;;
  858. -disable-* | --disable-*)
  859. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  860. # Reject names that are not valid shell variable names.
  861. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  862. as_fn_error $? "invalid feature name: $ac_useropt"
  863. ac_useropt_orig=$ac_useropt
  864. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  865. case $ac_user_opts in
  866. *"
  867. "enable_$ac_useropt"
  868. "*) ;;
  869. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  870. ac_unrecognized_sep=', ';;
  871. esac
  872. eval enable_$ac_useropt=no ;;
  873. -docdir | --docdir | --docdi | --doc | --do)
  874. ac_prev=docdir ;;
  875. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  876. docdir=$ac_optarg ;;
  877. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  878. ac_prev=dvidir ;;
  879. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  880. dvidir=$ac_optarg ;;
  881. -enable-* | --enable-*)
  882. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  883. # Reject names that are not valid shell variable names.
  884. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  885. as_fn_error $? "invalid feature name: $ac_useropt"
  886. ac_useropt_orig=$ac_useropt
  887. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  888. case $ac_user_opts in
  889. *"
  890. "enable_$ac_useropt"
  891. "*) ;;
  892. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  893. ac_unrecognized_sep=', ';;
  894. esac
  895. eval enable_$ac_useropt=\$ac_optarg ;;
  896. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  897. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  898. | --exec | --exe | --ex)
  899. ac_prev=exec_prefix ;;
  900. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  901. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  902. | --exec=* | --exe=* | --ex=*)
  903. exec_prefix=$ac_optarg ;;
  904. -gas | --gas | --ga | --g)
  905. # Obsolete; use --with-gas.
  906. with_gas=yes ;;
  907. -help | --help | --hel | --he | -h)
  908. ac_init_help=long ;;
  909. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  910. ac_init_help=recursive ;;
  911. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  912. ac_init_help=short ;;
  913. -host | --host | --hos | --ho)
  914. ac_prev=host_alias ;;
  915. -host=* | --host=* | --hos=* | --ho=*)
  916. host_alias=$ac_optarg ;;
  917. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  918. ac_prev=htmldir ;;
  919. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  920. | --ht=*)
  921. htmldir=$ac_optarg ;;
  922. -includedir | --includedir | --includedi | --included | --include \
  923. | --includ | --inclu | --incl | --inc)
  924. ac_prev=includedir ;;
  925. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  926. | --includ=* | --inclu=* | --incl=* | --inc=*)
  927. includedir=$ac_optarg ;;
  928. -infodir | --infodir | --infodi | --infod | --info | --inf)
  929. ac_prev=infodir ;;
  930. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  931. infodir=$ac_optarg ;;
  932. -libdir | --libdir | --libdi | --libd)
  933. ac_prev=libdir ;;
  934. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  935. libdir=$ac_optarg ;;
  936. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  937. | --libexe | --libex | --libe)
  938. ac_prev=libexecdir ;;
  939. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  940. | --libexe=* | --libex=* | --libe=*)
  941. libexecdir=$ac_optarg ;;
  942. -localedir | --localedir | --localedi | --localed | --locale)
  943. ac_prev=localedir ;;
  944. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  945. localedir=$ac_optarg ;;
  946. -localstatedir | --localstatedir | --localstatedi | --localstated \
  947. | --localstate | --localstat | --localsta | --localst | --locals)
  948. ac_prev=localstatedir ;;
  949. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  950. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  951. localstatedir=$ac_optarg ;;
  952. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  953. ac_prev=mandir ;;
  954. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  955. mandir=$ac_optarg ;;
  956. -nfp | --nfp | --nf)
  957. # Obsolete; use --without-fp.
  958. with_fp=no ;;
  959. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  960. | --no-cr | --no-c | -n)
  961. no_create=yes ;;
  962. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  963. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  964. no_recursion=yes ;;
  965. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  966. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  967. | --oldin | --oldi | --old | --ol | --o)
  968. ac_prev=oldincludedir ;;
  969. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  970. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  971. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  972. oldincludedir=$ac_optarg ;;
  973. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  974. ac_prev=prefix ;;
  975. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  976. prefix=$ac_optarg ;;
  977. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  978. | --program-pre | --program-pr | --program-p)
  979. ac_prev=program_prefix ;;
  980. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  981. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  982. program_prefix=$ac_optarg ;;
  983. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  984. | --program-suf | --program-su | --program-s)
  985. ac_prev=program_suffix ;;
  986. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  987. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  988. program_suffix=$ac_optarg ;;
  989. -program-transform-name | --program-transform-name \
  990. | --program-transform-nam | --program-transform-na \
  991. | --program-transform-n | --program-transform- \
  992. | --program-transform | --program-transfor \
  993. | --program-transfo | --program-transf \
  994. | --program-trans | --program-tran \
  995. | --progr-tra | --program-tr | --program-t)
  996. ac_prev=program_transform_name ;;
  997. -program-transform-name=* | --program-transform-name=* \
  998. | --program-transform-nam=* | --program-transform-na=* \
  999. | --program-transform-n=* | --program-transform-=* \
  1000. | --program-transform=* | --program-transfor=* \
  1001. | --program-transfo=* | --program-transf=* \
  1002. | --program-trans=* | --program-tran=* \
  1003. | --progr-tra=* | --program-tr=* | --program-t=*)
  1004. program_transform_name=$ac_optarg ;;
  1005. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1006. ac_prev=pdfdir ;;
  1007. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1008. pdfdir=$ac_optarg ;;
  1009. -psdir | --psdir | --psdi | --psd | --ps)
  1010. ac_prev=psdir ;;
  1011. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1012. psdir=$ac_optarg ;;
  1013. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1014. | -silent | --silent | --silen | --sile | --sil)
  1015. silent=yes ;;
  1016. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1017. ac_prev=sbindir ;;
  1018. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1019. | --sbi=* | --sb=*)
  1020. sbindir=$ac_optarg ;;
  1021. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1022. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1023. | --sharedst | --shareds | --shared | --share | --shar \
  1024. | --sha | --sh)
  1025. ac_prev=sharedstatedir ;;
  1026. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1027. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1028. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1029. | --sha=* | --sh=*)
  1030. sharedstatedir=$ac_optarg ;;
  1031. -site | --site | --sit)
  1032. ac_prev=site ;;
  1033. -site=* | --site=* | --sit=*)
  1034. site=$ac_optarg ;;
  1035. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1036. ac_prev=srcdir ;;
  1037. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1038. srcdir=$ac_optarg ;;
  1039. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1040. | --syscon | --sysco | --sysc | --sys | --sy)
  1041. ac_prev=sysconfdir ;;
  1042. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1043. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1044. sysconfdir=$ac_optarg ;;
  1045. -target | --target | --targe | --targ | --tar | --ta | --t)
  1046. ac_prev=target_alias ;;
  1047. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1048. target_alias=$ac_optarg ;;
  1049. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1050. verbose=yes ;;
  1051. -version | --version | --versio | --versi | --vers | -V)
  1052. ac_init_version=: ;;
  1053. -with-* | --with-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid package name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "with_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval with_$ac_useropt=\$ac_optarg ;;
  1068. -without-* | --without-*)
  1069. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1070. # Reject names that are not valid shell variable names.
  1071. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1072. as_fn_error $? "invalid package name: $ac_useropt"
  1073. ac_useropt_orig=$ac_useropt
  1074. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1075. case $ac_user_opts in
  1076. *"
  1077. "with_$ac_useropt"
  1078. "*) ;;
  1079. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1080. ac_unrecognized_sep=', ';;
  1081. esac
  1082. eval with_$ac_useropt=no ;;
  1083. --x)
  1084. # Obsolete; use --with-x.
  1085. with_x=yes ;;
  1086. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1087. | --x-incl | --x-inc | --x-in | --x-i)
  1088. ac_prev=x_includes ;;
  1089. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1090. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1091. x_includes=$ac_optarg ;;
  1092. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1093. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1094. ac_prev=x_libraries ;;
  1095. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1096. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1097. x_libraries=$ac_optarg ;;
  1098. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1099. Try \`$0 --help' for more information"
  1100. ;;
  1101. *=*)
  1102. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1103. # Reject names that are not valid shell variable names.
  1104. case $ac_envvar in #(
  1105. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1106. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1107. esac
  1108. eval $ac_envvar=\$ac_optarg
  1109. export $ac_envvar ;;
  1110. *)
  1111. # FIXME: should be removed in autoconf 3.0.
  1112. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1113. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1114. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1115. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1116. ;;
  1117. esac
  1118. done
  1119. if test -n "$ac_prev"; then
  1120. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1121. as_fn_error $? "missing argument to $ac_option"
  1122. fi
  1123. if test -n "$ac_unrecognized_opts"; then
  1124. case $enable_option_checking in
  1125. no) ;;
  1126. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1127. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1128. esac
  1129. fi
  1130. # Check all directory arguments for consistency.
  1131. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1132. datadir sysconfdir sharedstatedir localstatedir includedir \
  1133. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1134. libdir localedir mandir
  1135. do
  1136. eval ac_val=\$$ac_var
  1137. # Remove trailing slashes.
  1138. case $ac_val in
  1139. */ )
  1140. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1141. eval $ac_var=\$ac_val;;
  1142. esac
  1143. # Be sure to have absolute directory names.
  1144. case $ac_val in
  1145. [\\/$]* | ?:[\\/]* ) continue;;
  1146. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1147. esac
  1148. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1149. done
  1150. # There might be people who depend on the old broken behavior: `$host'
  1151. # used to hold the argument of --host etc.
  1152. # FIXME: To remove some day.
  1153. build=$build_alias
  1154. host=$host_alias
  1155. target=$target_alias
  1156. # FIXME: To remove some day.
  1157. if test "x$host_alias" != x; then
  1158. if test "x$build_alias" = x; then
  1159. cross_compiling=maybe
  1160. elif test "x$build_alias" != "x$host_alias"; then
  1161. cross_compiling=yes
  1162. fi
  1163. fi
  1164. ac_tool_prefix=
  1165. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1166. test "$silent" = yes && exec 6>/dev/null
  1167. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1168. ac_ls_di=`ls -di .` &&
  1169. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1170. as_fn_error $? "working directory cannot be determined"
  1171. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1172. as_fn_error $? "pwd does not report name of working directory"
  1173. # Find the source files, if location was not specified.
  1174. if test -z "$srcdir"; then
  1175. ac_srcdir_defaulted=yes
  1176. # Try the directory containing this script, then the parent directory.
  1177. ac_confdir=`$as_dirname -- "$as_myself" ||
  1178. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1179. X"$as_myself" : 'X\(//\)[^/]' \| \
  1180. X"$as_myself" : 'X\(//\)$' \| \
  1181. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1182. $as_echo X"$as_myself" |
  1183. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\/\)[^/].*/{
  1188. s//\1/
  1189. q
  1190. }
  1191. /^X\(\/\/\)$/{
  1192. s//\1/
  1193. q
  1194. }
  1195. /^X\(\/\).*/{
  1196. s//\1/
  1197. q
  1198. }
  1199. s/.*/./; q'`
  1200. srcdir=$ac_confdir
  1201. if test ! -r "$srcdir/$ac_unique_file"; then
  1202. srcdir=..
  1203. fi
  1204. else
  1205. ac_srcdir_defaulted=no
  1206. fi
  1207. if test ! -r "$srcdir/$ac_unique_file"; then
  1208. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1209. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1210. fi
  1211. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1212. ac_abs_confdir=`(
  1213. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1214. pwd)`
  1215. # When building in place, set srcdir=.
  1216. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1217. srcdir=.
  1218. fi
  1219. # Remove unnecessary trailing slashes from srcdir.
  1220. # Double slashes in file names in object file debugging info
  1221. # mess up M-x gdb in Emacs.
  1222. case $srcdir in
  1223. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1224. esac
  1225. for ac_var in $ac_precious_vars; do
  1226. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1227. eval ac_env_${ac_var}_value=\$${ac_var}
  1228. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1229. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1230. done
  1231. #
  1232. # Report the --help message.
  1233. #
  1234. if test "$ac_init_help" = "long"; then
  1235. # Omit some internal or obsolete options to make the list less imposing.
  1236. # This message is too long to be a string in the A/UX 3.1 sh.
  1237. cat <<_ACEOF
  1238. \`configure' configures usbmuxd 1.1.0 to adapt to many kinds of systems.
  1239. Usage: $0 [OPTION]... [VAR=VALUE]...
  1240. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1241. VAR=VALUE. See below for descriptions of some of the useful variables.
  1242. Defaults for the options are specified in brackets.
  1243. Configuration:
  1244. -h, --help display this help and exit
  1245. --help=short display options specific to this package
  1246. --help=recursive display the short help of all the included packages
  1247. -V, --version display version information and exit
  1248. -q, --quiet, --silent do not print \`checking ...' messages
  1249. --cache-file=FILE cache test results in FILE [disabled]
  1250. -C, --config-cache alias for \`--cache-file=config.cache'
  1251. -n, --no-create do not create output files
  1252. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1253. Installation directories:
  1254. --prefix=PREFIX install architecture-independent files in PREFIX
  1255. [$ac_default_prefix]
  1256. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1257. [PREFIX]
  1258. By default, \`make install' will install all the files in
  1259. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1260. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1261. for instance \`--prefix=\$HOME'.
  1262. For better control, use the options below.
  1263. Fine tuning of the installation directories:
  1264. --bindir=DIR user executables [EPREFIX/bin]
  1265. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1266. --libexecdir=DIR program executables [EPREFIX/libexec]
  1267. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1268. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1269. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1270. --libdir=DIR object code libraries [EPREFIX/lib]
  1271. --includedir=DIR C header files [PREFIX/include]
  1272. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1273. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1274. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1275. --infodir=DIR info documentation [DATAROOTDIR/info]
  1276. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1277. --mandir=DIR man documentation [DATAROOTDIR/man]
  1278. --docdir=DIR documentation root [DATAROOTDIR/doc/usbmuxd]
  1279. --htmldir=DIR html documentation [DOCDIR]
  1280. --dvidir=DIR dvi documentation [DOCDIR]
  1281. --pdfdir=DIR pdf documentation [DOCDIR]
  1282. --psdir=DIR ps documentation [DOCDIR]
  1283. _ACEOF
  1284. cat <<\_ACEOF
  1285. Program names:
  1286. --program-prefix=PREFIX prepend PREFIX to installed program names
  1287. --program-suffix=SUFFIX append SUFFIX to installed program names
  1288. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1289. System types:
  1290. --build=BUILD configure for building on BUILD [guessed]
  1291. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1292. _ACEOF
  1293. fi
  1294. if test -n "$ac_init_help"; then
  1295. case $ac_init_help in
  1296. short | recursive ) echo "Configuration of usbmuxd 1.1.0:";;
  1297. esac
  1298. cat <<\_ACEOF
  1299. Optional Features:
  1300. --disable-option-checking ignore unrecognized --enable/--with options
  1301. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1302. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1303. --enable-silent-rules less verbose build output (undo: "make V=1")
  1304. --disable-silent-rules verbose build output (undo: "make V=0")
  1305. --enable-dependency-tracking
  1306. do not reject slow dependency extractors
  1307. --disable-dependency-tracking
  1308. speeds up one-time build
  1309. --enable-shared[=PKGS] build shared libraries [default=yes]
  1310. --enable-static[=PKGS] build static libraries [default=yes]
  1311. --enable-fast-install[=PKGS]
  1312. optimize for fast installation [default=yes]
  1313. --disable-libtool-lock avoid locking (might break parallel builds)
  1314. Optional Packages:
  1315. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1316. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1317. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1318. both]
  1319. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1320. --with-sysroot=DIR Search for dependent libraries within DIR
  1321. (or the compiler's sysroot if not specified).
  1322. --without-preflight do not build with preflight worker support
  1323. [default=yes]
  1324. --with-udevrulesdir=DIR Directory for udev rules
  1325. --without-systemd do not build with systemd support [default=yes]
  1326. --with-systemdsystemunitdir=DIR
  1327. directory for systemd service files
  1328. Some influential environment variables:
  1329. CC C compiler command
  1330. CFLAGS C compiler flags
  1331. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1332. nonstandard directory <lib dir>
  1333. LIBS libraries to pass to the linker, e.g. -l<library>
  1334. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1335. you have headers in a nonstandard directory <include dir>
  1336. CXX C++ compiler command
  1337. CXXFLAGS C++ compiler flags
  1338. CPP C preprocessor
  1339. CXXCPP C++ preprocessor
  1340. PKG_CONFIG path to pkg-config utility
  1341. PKG_CONFIG_PATH
  1342. directories to add to pkg-config's search path
  1343. PKG_CONFIG_LIBDIR
  1344. path overriding pkg-config's built-in search path
  1345. libusb_CFLAGS
  1346. C compiler flags for libusb, overriding pkg-config
  1347. libusb_LIBS linker flags for libusb, overriding pkg-config
  1348. libplist_CFLAGS
  1349. C compiler flags for libplist, overriding pkg-config
  1350. libplist_LIBS
  1351. linker flags for libplist, overriding pkg-config
  1352. libimobiledevice_CFLAGS
  1353. C compiler flags for libimobiledevice, overriding pkg-config
  1354. libimobiledevice_LIBS
  1355. linker flags for libimobiledevice, overriding pkg-config
  1356. Use these variables to override the choices made by `configure' or to help
  1357. it to find libraries and programs with nonstandard names/locations.
  1358. Report bugs to <https://github.com/libimobiledevice/usbmuxd/issues>.
  1359. usbmuxd home page: <http://libimobiledevice.org>.
  1360. _ACEOF
  1361. ac_status=$?
  1362. fi
  1363. if test "$ac_init_help" = "recursive"; then
  1364. # If there are subdirs, report their specific --help.
  1365. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1366. test -d "$ac_dir" ||
  1367. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1368. continue
  1369. ac_builddir=.
  1370. case "$ac_dir" in
  1371. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1372. *)
  1373. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1374. # A ".." for each directory in $ac_dir_suffix.
  1375. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1376. case $ac_top_builddir_sub in
  1377. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1378. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1379. esac ;;
  1380. esac
  1381. ac_abs_top_builddir=$ac_pwd
  1382. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1383. # for backward compatibility:
  1384. ac_top_builddir=$ac_top_build_prefix
  1385. case $srcdir in
  1386. .) # We are building in place.
  1387. ac_srcdir=.
  1388. ac_top_srcdir=$ac_top_builddir_sub
  1389. ac_abs_top_srcdir=$ac_pwd ;;
  1390. [\\/]* | ?:[\\/]* ) # Absolute name.
  1391. ac_srcdir=$srcdir$ac_dir_suffix;
  1392. ac_top_srcdir=$srcdir
  1393. ac_abs_top_srcdir=$srcdir ;;
  1394. *) # Relative name.
  1395. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1396. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1397. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1398. esac
  1399. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1400. cd "$ac_dir" || { ac_status=$?; continue; }
  1401. # Check for guested configure.
  1402. if test -f "$ac_srcdir/configure.gnu"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1405. elif test -f "$ac_srcdir/configure"; then
  1406. echo &&
  1407. $SHELL "$ac_srcdir/configure" --help=recursive
  1408. else
  1409. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1410. fi || ac_status=$?
  1411. cd "$ac_pwd" || { ac_status=$?; break; }
  1412. done
  1413. fi
  1414. test -n "$ac_init_help" && exit $ac_status
  1415. if $ac_init_version; then
  1416. cat <<\_ACEOF
  1417. usbmuxd configure 1.1.0
  1418. generated by GNU Autoconf 2.69
  1419. Copyright (C) 2012 Free Software Foundation, Inc.
  1420. This configure script is free software; the Free Software Foundation
  1421. gives unlimited permission to copy, distribute and modify it.
  1422. _ACEOF
  1423. exit
  1424. fi
  1425. ## ------------------------ ##
  1426. ## Autoconf initialization. ##
  1427. ## ------------------------ ##
  1428. # ac_fn_c_try_compile LINENO
  1429. # --------------------------
  1430. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1431. ac_fn_c_try_compile ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. rm -f conftest.$ac_objext
  1435. if { { ac_try="$ac_compile"
  1436. case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_compile") 2>conftest.err
  1443. ac_status=$?
  1444. if test -s conftest.err; then
  1445. grep -v '^ *+' conftest.err >conftest.er1
  1446. cat conftest.er1 >&5
  1447. mv -f conftest.er1 conftest.err
  1448. fi
  1449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1450. test $ac_status = 0; } && {
  1451. test -z "$ac_c_werror_flag" ||
  1452. test ! -s conftest.err
  1453. } && test -s conftest.$ac_objext; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_c_try_compile
  1463. # ac_fn_cxx_try_compile LINENO
  1464. # ----------------------------
  1465. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_cxx_try_compile ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. rm -f conftest.$ac_objext
  1470. if { { ac_try="$ac_compile"
  1471. case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_compile") 2>conftest.err
  1478. ac_status=$?
  1479. if test -s conftest.err; then
  1480. grep -v '^ *+' conftest.err >conftest.er1
  1481. cat conftest.er1 >&5
  1482. mv -f conftest.er1 conftest.err
  1483. fi
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } && {
  1486. test -z "$ac_cxx_werror_flag" ||
  1487. test ! -s conftest.err
  1488. } && test -s conftest.$ac_objext; then :
  1489. ac_retval=0
  1490. else
  1491. $as_echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_retval=1
  1494. fi
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. as_fn_set_status $ac_retval
  1497. } # ac_fn_cxx_try_compile
  1498. # ac_fn_c_try_link LINENO
  1499. # -----------------------
  1500. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1501. ac_fn_c_try_link ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. rm -f conftest.$ac_objext conftest$ac_exeext
  1505. if { { ac_try="$ac_link"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_link") 2>conftest.err
  1513. ac_status=$?
  1514. if test -s conftest.err; then
  1515. grep -v '^ *+' conftest.err >conftest.er1
  1516. cat conftest.er1 >&5
  1517. mv -f conftest.er1 conftest.err
  1518. fi
  1519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1520. test $ac_status = 0; } && {
  1521. test -z "$ac_c_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest$ac_exeext && {
  1524. test "$cross_compiling" = yes ||
  1525. test -x conftest$ac_exeext
  1526. }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=1
  1532. fi
  1533. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1534. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1535. # interfere with the next link command; also delete a directory that is
  1536. # left behind by Apple's compiler. We do this before executing the actions.
  1537. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. as_fn_set_status $ac_retval
  1540. } # ac_fn_c_try_link
  1541. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1542. # -------------------------------------------------------
  1543. # Tests whether HEADER exists and can be compiled using the include files in
  1544. # INCLUDES, setting the cache variable VAR accordingly.
  1545. ac_fn_c_check_header_compile ()
  1546. {
  1547. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1549. $as_echo_n "checking for $2... " >&6; }
  1550. if eval \${$3+:} false; then :
  1551. $as_echo_n "(cached) " >&6
  1552. else
  1553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1554. /* end confdefs.h. */
  1555. $4
  1556. #include <$2>
  1557. _ACEOF
  1558. if ac_fn_c_try_compile "$LINENO"; then :
  1559. eval "$3=yes"
  1560. else
  1561. eval "$3=no"
  1562. fi
  1563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1564. fi
  1565. eval ac_res=\$$3
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1567. $as_echo "$ac_res" >&6; }
  1568. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1569. } # ac_fn_c_check_header_compile
  1570. # ac_fn_c_try_cpp LINENO
  1571. # ----------------------
  1572. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1573. ac_fn_c_try_cpp ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1577. case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1584. ac_status=$?
  1585. if test -s conftest.err; then
  1586. grep -v '^ *+' conftest.err >conftest.er1
  1587. cat conftest.er1 >&5
  1588. mv -f conftest.er1 conftest.err
  1589. fi
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } > conftest.i && {
  1592. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1593. test ! -s conftest.err
  1594. }; then :
  1595. ac_retval=0
  1596. else
  1597. $as_echo "$as_me: failed program was:" >&5
  1598. sed 's/^/| /' conftest.$ac_ext >&5
  1599. ac_retval=1
  1600. fi
  1601. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1602. as_fn_set_status $ac_retval
  1603. } # ac_fn_c_try_cpp
  1604. # ac_fn_c_try_run LINENO
  1605. # ----------------------
  1606. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1607. # that executables *can* be run.
  1608. ac_fn_c_try_run ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. if { { ac_try="$ac_link"
  1612. case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_link") 2>&5
  1619. ac_status=$?
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1622. { { case "(($ac_try" in
  1623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1624. *) ac_try_echo=$ac_try;;
  1625. esac
  1626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1627. $as_echo "$ac_try_echo"; } >&5
  1628. (eval "$ac_try") 2>&5
  1629. ac_status=$?
  1630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. test $ac_status = 0; }; }; then :
  1632. ac_retval=0
  1633. else
  1634. $as_echo "$as_me: program exited with status $ac_status" >&5
  1635. $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637. ac_retval=$ac_status
  1638. fi
  1639. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1640. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641. as_fn_set_status $ac_retval
  1642. } # ac_fn_c_try_run
  1643. # ac_fn_c_check_func LINENO FUNC VAR
  1644. # ----------------------------------
  1645. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1646. ac_fn_c_check_func ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1650. $as_echo_n "checking for $2... " >&6; }
  1651. if eval \${$3+:} false; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1655. /* end confdefs.h. */
  1656. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1657. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1658. #define $2 innocuous_$2
  1659. /* System header to define __stub macros and hopefully few prototypes,
  1660. which can conflict with char $2 (); below.
  1661. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1662. <limits.h> exists even on freestanding compilers. */
  1663. #ifdef __STDC__
  1664. # include <limits.h>
  1665. #else
  1666. # include <assert.h>
  1667. #endif
  1668. #undef $2
  1669. /* Override any GCC internal prototype to avoid an error.
  1670. Use char because int might match the return type of a GCC
  1671. builtin and then its argument prototype would still apply. */
  1672. #ifdef __cplusplus
  1673. extern "C"
  1674. #endif
  1675. char $2 ();
  1676. /* The GNU C library defines this for functions which it implements
  1677. to always fail with ENOSYS. Some functions are actually named
  1678. something starting with __ and the normal name is an alias. */
  1679. #if defined __stub_$2 || defined __stub___$2
  1680. choke me
  1681. #endif
  1682. int
  1683. main ()
  1684. {
  1685. return $2 ();
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. if ac_fn_c_try_link "$LINENO"; then :
  1691. eval "$3=yes"
  1692. else
  1693. eval "$3=no"
  1694. fi
  1695. rm -f core conftest.err conftest.$ac_objext \
  1696. conftest$ac_exeext conftest.$ac_ext
  1697. fi
  1698. eval ac_res=\$$3
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1700. $as_echo "$ac_res" >&6; }
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. } # ac_fn_c_check_func
  1703. # ac_fn_cxx_try_cpp LINENO
  1704. # ------------------------
  1705. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_cxx_try_cpp ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1717. ac_status=$?
  1718. if test -s conftest.err; then
  1719. grep -v '^ *+' conftest.err >conftest.er1
  1720. cat conftest.er1 >&5
  1721. mv -f conftest.er1 conftest.err
  1722. fi
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } > conftest.i && {
  1725. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1726. test ! -s conftest.err
  1727. }; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. ac_retval=1
  1733. fi
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_cxx_try_cpp
  1737. # ac_fn_cxx_try_link LINENO
  1738. # -------------------------
  1739. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_cxx_try_link ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext conftest$ac_exeext
  1744. if { { ac_try="$ac_link"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_link") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_cxx_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest$ac_exeext && {
  1763. test "$cross_compiling" = yes ||
  1764. test -x conftest$ac_exeext
  1765. }; then :
  1766. ac_retval=0
  1767. else
  1768. $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5
  1770. ac_retval=1
  1771. fi
  1772. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1773. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1774. # interfere with the next link command; also delete a directory that is
  1775. # left behind by Apple's compiler. We do this before executing the actions.
  1776. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1777. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1778. as_fn_set_status $ac_retval
  1779. } # ac_fn_cxx_try_link
  1780. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1781. # -------------------------------------------------------
  1782. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1783. # the include files in INCLUDES and setting the cache variable VAR
  1784. # accordingly.
  1785. ac_fn_c_check_header_mongrel ()
  1786. {
  1787. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788. if eval \${$3+:} false; then :
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1790. $as_echo_n "checking for $2... " >&6; }
  1791. if eval \${$3+:} false; then :
  1792. $as_echo_n "(cached) " >&6
  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. else
  1798. # Is the header compilable?
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1800. $as_echo_n "checking $2 usability... " >&6; }
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $4
  1804. #include <$2>
  1805. _ACEOF
  1806. if ac_fn_c_try_compile "$LINENO"; then :
  1807. ac_header_compiler=yes
  1808. else
  1809. ac_header_compiler=no
  1810. fi
  1811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1813. $as_echo "$ac_header_compiler" >&6; }
  1814. # Is the header present?
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1816. $as_echo_n "checking $2 presence... " >&6; }
  1817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1818. /* end confdefs.h. */
  1819. #include <$2>
  1820. _ACEOF
  1821. if ac_fn_c_try_cpp "$LINENO"; then :
  1822. ac_header_preproc=yes
  1823. else
  1824. ac_header_preproc=no
  1825. fi
  1826. rm -f conftest.err conftest.i conftest.$ac_ext
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1828. $as_echo "$ac_header_preproc" >&6; }
  1829. # So? What about this header?
  1830. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1831. yes:no: )
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1833. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1835. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1836. ;;
  1837. no:yes:* )
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1839. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1841. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1843. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1845. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1847. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1848. ( $as_echo "## ----------------------------------------------------------------- ##
  1849. ## Report this to https://github.com/libimobiledevice/usbmuxd/issues ##
  1850. ## ----------------------------------------------------------------- ##"
  1851. ) | sed "s/^/$as_me: WARNING: /" >&2
  1852. ;;
  1853. esac
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1855. $as_echo_n "checking for $2... " >&6; }
  1856. if eval \${$3+:} false; then :
  1857. $as_echo_n "(cached) " >&6
  1858. else
  1859. eval "$3=\$ac_header_compiler"
  1860. fi
  1861. eval ac_res=\$$3
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1863. $as_echo "$ac_res" >&6; }
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. } # ac_fn_c_check_header_mongrel
  1867. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1868. # -------------------------------------------
  1869. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1870. # variable VAR accordingly.
  1871. ac_fn_c_check_type ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1875. $as_echo_n "checking for $2... " >&6; }
  1876. if eval \${$3+:} false; then :
  1877. $as_echo_n "(cached) " >&6
  1878. else
  1879. eval "$3=no"
  1880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1881. /* end confdefs.h. */
  1882. $4
  1883. int
  1884. main ()
  1885. {
  1886. if (sizeof ($2))
  1887. return 0;
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"; then :
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. $4
  1896. int
  1897. main ()
  1898. {
  1899. if (sizeof (($2)))
  1900. return 0;
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. if ac_fn_c_try_compile "$LINENO"; then :
  1906. else
  1907. eval "$3=yes"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1910. fi
  1911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1912. fi
  1913. eval ac_res=\$$3
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1915. $as_echo "$ac_res" >&6; }
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. } # ac_fn_c_check_type
  1918. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1919. # ------------------------------------
  1920. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1921. # accordingly.
  1922. ac_fn_c_find_uintX_t ()
  1923. {
  1924. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1926. $as_echo_n "checking for uint$2_t... " >&6; }
  1927. if eval \${$3+:} false; then :
  1928. $as_echo_n "(cached) " >&6
  1929. else
  1930. eval "$3=no"
  1931. # Order is important - never check a type that is potentially smaller
  1932. # than half of the expected target width.
  1933. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1934. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1936. /* end confdefs.h. */
  1937. $ac_includes_default
  1938. int
  1939. main ()
  1940. {
  1941. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1942. test_array [0] = 0;
  1943. return test_array [0];
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_compile "$LINENO"; then :
  1949. case $ac_type in #(
  1950. uint$2_t) :
  1951. eval "$3=yes" ;; #(
  1952. *) :
  1953. eval "$3=\$ac_type" ;;
  1954. esac
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1957. if eval test \"x\$"$3"\" = x"no"; then :
  1958. else
  1959. break
  1960. fi
  1961. done
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. } # ac_fn_c_find_uintX_t
  1968. cat >config.log <<_ACEOF
  1969. This file contains any messages produced by compilers while
  1970. running configure, to aid debugging if configure makes a mistake.
  1971. It was created by usbmuxd $as_me 1.1.0, which was
  1972. generated by GNU Autoconf 2.69. Invocation command line was
  1973. $ $0 $@
  1974. _ACEOF
  1975. exec 5>>config.log
  1976. {
  1977. cat <<_ASUNAME
  1978. ## --------- ##
  1979. ## Platform. ##
  1980. ## --------- ##
  1981. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1982. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1983. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1984. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1985. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1986. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1987. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1988. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1989. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1990. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1991. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1992. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1993. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1994. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1995. _ASUNAME
  1996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1997. for as_dir in $PATH
  1998. do
  1999. IFS=$as_save_IFS
  2000. test -z "$as_dir" && as_dir=.
  2001. $as_echo "PATH: $as_dir"
  2002. done
  2003. IFS=$as_save_IFS
  2004. } >&5
  2005. cat >&5 <<_ACEOF
  2006. ## ----------- ##
  2007. ## Core tests. ##
  2008. ## ----------- ##
  2009. _ACEOF
  2010. # Keep a trace of the command line.
  2011. # Strip out --no-create and --no-recursion so they do not pile up.
  2012. # Strip out --silent because we don't want to record it for future runs.
  2013. # Also quote any args containing shell meta-characters.
  2014. # Make two passes to allow for proper duplicate-argument suppression.
  2015. ac_configure_args=
  2016. ac_configure_args0=
  2017. ac_configure_args1=
  2018. ac_must_keep_next=false
  2019. for ac_pass in 1 2
  2020. do
  2021. for ac_arg
  2022. do
  2023. case $ac_arg in
  2024. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2025. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2026. | -silent | --silent | --silen | --sile | --sil)
  2027. continue ;;
  2028. *\'*)
  2029. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2030. esac
  2031. case $ac_pass in
  2032. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2033. 2)
  2034. as_fn_append ac_configure_args1 " '$ac_arg'"
  2035. if test $ac_must_keep_next = true; then
  2036. ac_must_keep_next=false # Got value, back to normal.
  2037. else
  2038. case $ac_arg in
  2039. *=* | --config-cache | -C | -disable-* | --disable-* \
  2040. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2041. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2042. | -with-* | --with-* | -without-* | --without-* | --x)
  2043. case "$ac_configure_args0 " in
  2044. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2045. esac
  2046. ;;
  2047. -* ) ac_must_keep_next=true ;;
  2048. esac
  2049. fi
  2050. as_fn_append ac_configure_args " '$ac_arg'"
  2051. ;;
  2052. esac
  2053. done
  2054. done
  2055. { ac_configure_args0=; unset ac_configure_args0;}
  2056. { ac_configure_args1=; unset ac_configure_args1;}
  2057. # When interrupted or exit'd, cleanup temporary files, and complete
  2058. # config.log. We remove comments because anyway the quotes in there
  2059. # would cause problems or look ugly.
  2060. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2061. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2062. trap 'exit_status=$?
  2063. # Save into config.log some information that might help in debugging.
  2064. {
  2065. echo
  2066. $as_echo "## ---------------- ##
  2067. ## Cache variables. ##
  2068. ## ---------------- ##"
  2069. echo
  2070. # The following way of writing the cache mishandles newlines in values,
  2071. (
  2072. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2073. eval ac_val=\$$ac_var
  2074. case $ac_val in #(
  2075. *${as_nl}*)
  2076. case $ac_var in #(
  2077. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2078. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2079. esac
  2080. case $ac_var in #(
  2081. _ | IFS | as_nl) ;; #(
  2082. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2083. *) { eval $ac_var=; unset $ac_var;} ;;
  2084. esac ;;
  2085. esac
  2086. done
  2087. (set) 2>&1 |
  2088. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2089. *${as_nl}ac_space=\ *)
  2090. sed -n \
  2091. "s/'\''/'\''\\\\'\'''\''/g;
  2092. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2093. ;; #(
  2094. *)
  2095. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2096. ;;
  2097. esac |
  2098. sort
  2099. )
  2100. echo
  2101. $as_echo "## ----------------- ##
  2102. ## Output variables. ##
  2103. ## ----------------- ##"
  2104. echo
  2105. for ac_var in $ac_subst_vars
  2106. do
  2107. eval ac_val=\$$ac_var
  2108. case $ac_val in
  2109. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2110. esac
  2111. $as_echo "$ac_var='\''$ac_val'\''"
  2112. done | sort
  2113. echo
  2114. if test -n "$ac_subst_files"; then
  2115. $as_echo "## ------------------- ##
  2116. ## File substitutions. ##
  2117. ## ------------------- ##"
  2118. echo
  2119. for ac_var in $ac_subst_files
  2120. do
  2121. eval ac_val=\$$ac_var
  2122. case $ac_val in
  2123. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2124. esac
  2125. $as_echo "$ac_var='\''$ac_val'\''"
  2126. done | sort
  2127. echo
  2128. fi
  2129. if test -s confdefs.h; then
  2130. $as_echo "## ----------- ##
  2131. ## confdefs.h. ##
  2132. ## ----------- ##"
  2133. echo
  2134. cat confdefs.h
  2135. echo
  2136. fi
  2137. test "$ac_signal" != 0 &&
  2138. $as_echo "$as_me: caught signal $ac_signal"
  2139. $as_echo "$as_me: exit $exit_status"
  2140. } >&5
  2141. rm -f core *.core core.conftest.* &&
  2142. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2143. exit $exit_status
  2144. ' 0
  2145. for ac_signal in 1 2 13 15; do
  2146. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2147. done
  2148. ac_signal=0
  2149. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2150. rm -f -r conftest* confdefs.h
  2151. $as_echo "/* confdefs.h */" > confdefs.h
  2152. # Predefined preprocessor variables.
  2153. cat >>confdefs.h <<_ACEOF
  2154. #define PACKAGE_NAME "$PACKAGE_NAME"
  2155. _ACEOF
  2156. cat >>confdefs.h <<_ACEOF
  2157. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2158. _ACEOF
  2159. cat >>confdefs.h <<_ACEOF
  2160. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2161. _ACEOF
  2162. cat >>confdefs.h <<_ACEOF
  2163. #define PACKAGE_STRING "$PACKAGE_STRING"
  2164. _ACEOF
  2165. cat >>confdefs.h <<_ACEOF
  2166. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2167. _ACEOF
  2168. cat >>confdefs.h <<_ACEOF
  2169. #define PACKAGE_URL "$PACKAGE_URL"
  2170. _ACEOF
  2171. # Let the site file select an alternate cache file if it wants to.
  2172. # Prefer an explicitly selected file to automatically selected ones.
  2173. ac_site_file1=NONE
  2174. ac_site_file2=NONE
  2175. if test -n "$CONFIG_SITE"; then
  2176. # We do not want a PATH search for config.site.
  2177. case $CONFIG_SITE in #((
  2178. -*) ac_site_file1=./$CONFIG_SITE;;
  2179. */*) ac_site_file1=$CONFIG_SITE;;
  2180. *) ac_site_file1=./$CONFIG_SITE;;
  2181. esac
  2182. elif test "x$prefix" != xNONE; then
  2183. ac_site_file1=$prefix/share/config.site
  2184. ac_site_file2=$prefix/etc/config.site
  2185. else
  2186. ac_site_file1=$ac_default_prefix/share/config.site
  2187. ac_site_file2=$ac_default_prefix/etc/config.site
  2188. fi
  2189. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2190. do
  2191. test "x$ac_site_file" = xNONE && continue
  2192. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2194. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2195. sed 's/^/| /' "$ac_site_file" >&5
  2196. . "$ac_site_file" \
  2197. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2199. as_fn_error $? "failed to load site script $ac_site_file
  2200. See \`config.log' for more details" "$LINENO" 5; }
  2201. fi
  2202. done
  2203. if test -r "$cache_file"; then
  2204. # Some versions of bash will fail to source /dev/null (special files
  2205. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2206. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2208. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2209. case $cache_file in
  2210. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2211. *) . "./$cache_file";;
  2212. esac
  2213. fi
  2214. else
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2216. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2217. >$cache_file
  2218. fi
  2219. # Check that the precious variables saved in the cache have kept the same
  2220. # value.
  2221. ac_cache_corrupted=false
  2222. for ac_var in $ac_precious_vars; do
  2223. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2224. eval ac_new_set=\$ac_env_${ac_var}_set
  2225. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2226. eval ac_new_val=\$ac_env_${ac_var}_value
  2227. case $ac_old_set,$ac_new_set in
  2228. set,)
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2230. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2231. ac_cache_corrupted=: ;;
  2232. ,set)
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2234. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2235. ac_cache_corrupted=: ;;
  2236. ,);;
  2237. *)
  2238. if test "x$ac_old_val" != "x$ac_new_val"; then
  2239. # differences in whitespace do not lead to failure.
  2240. ac_old_val_w=`echo x $ac_old_val`
  2241. ac_new_val_w=`echo x $ac_new_val`
  2242. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2244. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2245. ac_cache_corrupted=:
  2246. else
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2248. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2249. eval $ac_var=\$ac_old_val
  2250. fi
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2252. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2254. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2255. fi;;
  2256. esac
  2257. # Pass precious variables to config.status.
  2258. if test "$ac_new_set" = set; then
  2259. case $ac_new_val in
  2260. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2261. *) ac_arg=$ac_var=$ac_new_val ;;
  2262. esac
  2263. case " $ac_configure_args " in
  2264. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2265. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2266. esac
  2267. fi
  2268. done
  2269. if $ac_cache_corrupted; then
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2273. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2274. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2275. fi
  2276. ## -------------------- ##
  2277. ## Main body of script. ##
  2278. ## -------------------- ##
  2279. ac_ext=c
  2280. ac_cpp='$CPP $CPPFLAGS'
  2281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2284. am__api_version='1.13'
  2285. ac_aux_dir=
  2286. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2287. if test -f "$ac_dir/install-sh"; then
  2288. ac_aux_dir=$ac_dir
  2289. ac_install_sh="$ac_aux_dir/install-sh -c"
  2290. break
  2291. elif test -f "$ac_dir/install.sh"; then
  2292. ac_aux_dir=$ac_dir
  2293. ac_install_sh="$ac_aux_dir/install.sh -c"
  2294. break
  2295. elif test -f "$ac_dir/shtool"; then
  2296. ac_aux_dir=$ac_dir
  2297. ac_install_sh="$ac_aux_dir/shtool install -c"
  2298. break
  2299. fi
  2300. done
  2301. if test -z "$ac_aux_dir"; then
  2302. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2303. fi
  2304. # These three variables are undocumented and unsupported,
  2305. # and are intended to be withdrawn in a future Autoconf release.
  2306. # They can cause serious problems if a builder's source tree is in a directory
  2307. # whose full name contains unusual characters.
  2308. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2309. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2310. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2311. # Find a good install program. We prefer a C program (faster),
  2312. # so one script is as good as another. But avoid the broken or
  2313. # incompatible versions:
  2314. # SysV /etc/install, /usr/sbin/install
  2315. # SunOS /usr/etc/install
  2316. # IRIX /sbin/install
  2317. # AIX /bin/install
  2318. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2319. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2320. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2321. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2322. # OS/2's system install, which has a completely different semantic
  2323. # ./install, which can be erroneously created by make from ./install.sh.
  2324. # Reject install programs that cannot install multiple files.
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2326. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2327. if test -z "$INSTALL"; then
  2328. if ${ac_cv_path_install+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2332. for as_dir in $PATH
  2333. do
  2334. IFS=$as_save_IFS
  2335. test -z "$as_dir" && as_dir=.
  2336. # Account for people who put trailing slashes in PATH elements.
  2337. case $as_dir/ in #((
  2338. ./ | .// | /[cC]/* | \
  2339. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2340. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2341. /usr/ucb/* ) ;;
  2342. *)
  2343. # OSF1 and SCO ODT 3.0 have their own names for install.
  2344. # Don't use installbsd from OSF since it installs stuff as root
  2345. # by default.
  2346. for ac_prog in ginstall scoinst install; do
  2347. for ac_exec_ext in '' $ac_executable_extensions; do
  2348. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2349. if test $ac_prog = install &&
  2350. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2351. # AIX install. It has an incompatible calling convention.
  2352. :
  2353. elif test $ac_prog = install &&
  2354. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2355. # program-specific install script used by HP pwplus--don't use.
  2356. :
  2357. else
  2358. rm -rf conftest.one conftest.two conftest.dir
  2359. echo one > conftest.one
  2360. echo two > conftest.two
  2361. mkdir conftest.dir
  2362. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2363. test -s conftest.one && test -s conftest.two &&
  2364. test -s conftest.dir/conftest.one &&
  2365. test -s conftest.dir/conftest.two
  2366. then
  2367. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2368. break 3
  2369. fi
  2370. fi
  2371. fi
  2372. done
  2373. done
  2374. ;;
  2375. esac
  2376. done
  2377. IFS=$as_save_IFS
  2378. rm -rf conftest.one conftest.two conftest.dir
  2379. fi
  2380. if test "${ac_cv_path_install+set}" = set; then
  2381. INSTALL=$ac_cv_path_install
  2382. else
  2383. # As a last resort, use the slow shell script. Don't cache a
  2384. # value for INSTALL within a source directory, because that will
  2385. # break other packages using the cache if that directory is
  2386. # removed, or if the value is a relative name.
  2387. INSTALL=$ac_install_sh
  2388. fi
  2389. fi
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2391. $as_echo "$INSTALL" >&6; }
  2392. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2393. # It thinks the first close brace ends the variable substitution.
  2394. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2395. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2396. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2398. $as_echo_n "checking whether build environment is sane... " >&6; }
  2399. # Reject unsafe characters in $srcdir or the absolute working directory
  2400. # name. Accept space and tab only in the latter.
  2401. am_lf='
  2402. '
  2403. case `pwd` in
  2404. *[\\\"\#\$\&\'\`$am_lf]*)
  2405. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2406. esac
  2407. case $srcdir in
  2408. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2409. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2410. esac
  2411. # Do 'set' in a subshell so we don't clobber the current shell's
  2412. # arguments. Must try -L first in case configure is actually a
  2413. # symlink; some systems play weird games with the mod time of symlinks
  2414. # (eg FreeBSD returns the mod time of the symlink's containing
  2415. # directory).
  2416. if (
  2417. am_has_slept=no
  2418. for am_try in 1 2; do
  2419. echo "timestamp, slept: $am_has_slept" > conftest.file
  2420. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2421. if test "$*" = "X"; then
  2422. # -L didn't work.
  2423. set X `ls -t "$srcdir/configure" conftest.file`
  2424. fi
  2425. if test "$*" != "X $srcdir/configure conftest.file" \
  2426. && test "$*" != "X conftest.file $srcdir/configure"; then
  2427. # If neither matched, then we have a broken ls. This can happen
  2428. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2429. # broken ls alias from the environment. This has actually
  2430. # happened. Such a system could not be considered "sane".
  2431. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2432. alias in your environment" "$LINENO" 5
  2433. fi
  2434. if test "$2" = conftest.file || test $am_try -eq 2; then
  2435. break
  2436. fi
  2437. # Just in case.
  2438. sleep 1
  2439. am_has_slept=yes
  2440. done
  2441. test "$2" = conftest.file
  2442. )
  2443. then
  2444. # Ok.
  2445. :
  2446. else
  2447. as_fn_error $? "newly created file is older than distributed files!
  2448. Check your system clock" "$LINENO" 5
  2449. fi
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2451. $as_echo "yes" >&6; }
  2452. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2453. # generated files are strictly newer.
  2454. am_sleep_pid=
  2455. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2456. ( sleep 1 ) &
  2457. am_sleep_pid=$!
  2458. fi
  2459. rm -f conftest.file
  2460. test "$program_prefix" != NONE &&
  2461. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2462. # Use a double $ so make ignores it.
  2463. test "$program_suffix" != NONE &&
  2464. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2465. # Double any \ or $.
  2466. # By default was `s,x,x', remove it if useless.
  2467. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2468. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2469. # expand $ac_aux_dir to an absolute path
  2470. am_aux_dir=`cd $ac_aux_dir && pwd`
  2471. if test x"${MISSING+set}" != xset; then
  2472. case $am_aux_dir in
  2473. *\ * | *\ *)
  2474. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2475. *)
  2476. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2477. esac
  2478. fi
  2479. # Use eval to expand $SHELL
  2480. if eval "$MISSING --is-lightweight"; then
  2481. am_missing_run="$MISSING "
  2482. else
  2483. am_missing_run=
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2485. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2486. fi
  2487. if test x"${install_sh}" != xset; then
  2488. case $am_aux_dir in
  2489. *\ * | *\ *)
  2490. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2491. *)
  2492. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2493. esac
  2494. fi
  2495. # Installed binaries are usually stripped using 'strip' when the user
  2496. # run "make install-strip". However 'strip' might not be the right
  2497. # tool to use in cross-compilation environments, therefore Automake
  2498. # will honor the 'STRIP' environment variable to overrule this program.
  2499. if test "$cross_compiling" != no; then
  2500. if test -n "$ac_tool_prefix"; then
  2501. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2502. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2504. $as_echo_n "checking for $ac_word... " >&6; }
  2505. if ${ac_cv_prog_STRIP+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test -n "$STRIP"; then
  2509. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2510. else
  2511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2512. for as_dir in $PATH
  2513. do
  2514. IFS=$as_save_IFS
  2515. test -z "$as_dir" && as_dir=.
  2516. for ac_exec_ext in '' $ac_executable_extensions; do
  2517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2518. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2520. break 2
  2521. fi
  2522. done
  2523. done
  2524. IFS=$as_save_IFS
  2525. fi
  2526. fi
  2527. STRIP=$ac_cv_prog_STRIP
  2528. if test -n "$STRIP"; then
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2530. $as_echo "$STRIP" >&6; }
  2531. else
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2533. $as_echo "no" >&6; }
  2534. fi
  2535. fi
  2536. if test -z "$ac_cv_prog_STRIP"; then
  2537. ac_ct_STRIP=$STRIP
  2538. # Extract the first word of "strip", so it can be a program name with args.
  2539. set dummy strip; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$ac_ct_STRIP"; then
  2546. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2555. ac_cv_prog_ac_ct_STRIP="strip"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2565. if test -n "$ac_ct_STRIP"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2567. $as_echo "$ac_ct_STRIP" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. if test "x$ac_ct_STRIP" = x; then
  2573. STRIP=":"
  2574. else
  2575. case $cross_compiling:$ac_tool_warned in
  2576. yes:)
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2579. ac_tool_warned=yes ;;
  2580. esac
  2581. STRIP=$ac_ct_STRIP
  2582. fi
  2583. else
  2584. STRIP="$ac_cv_prog_STRIP"
  2585. fi
  2586. fi
  2587. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2589. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2590. if test -z "$MKDIR_P"; then
  2591. if ${ac_cv_path_mkdir+:} false; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2595. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2596. do
  2597. IFS=$as_save_IFS
  2598. test -z "$as_dir" && as_dir=.
  2599. for ac_prog in mkdir gmkdir; do
  2600. for ac_exec_ext in '' $ac_executable_extensions; do
  2601. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2602. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2603. 'mkdir (GNU coreutils) '* | \
  2604. 'mkdir (coreutils) '* | \
  2605. 'mkdir (fileutils) '4.1*)
  2606. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2607. break 3;;
  2608. esac
  2609. done
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. test -d ./--version && rmdir ./--version
  2615. if test "${ac_cv_path_mkdir+set}" = set; then
  2616. MKDIR_P="$ac_cv_path_mkdir -p"
  2617. else
  2618. # As a last resort, use the slow shell script. Don't cache a
  2619. # value for MKDIR_P within a source directory, because that will
  2620. # break other packages using the cache if that directory is
  2621. # removed, or if the value is a relative name.
  2622. MKDIR_P="$ac_install_sh -d"
  2623. fi
  2624. fi
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2626. $as_echo "$MKDIR_P" >&6; }
  2627. for ac_prog in gawk mawk nawk awk
  2628. do
  2629. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2630. set dummy $ac_prog; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if ${ac_cv_prog_AWK+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if test -n "$AWK"; then
  2637. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2638. else
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. for ac_exec_ext in '' $ac_executable_extensions; do
  2645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2646. ac_cv_prog_AWK="$ac_prog"
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2648. break 2
  2649. fi
  2650. done
  2651. done
  2652. IFS=$as_save_IFS
  2653. fi
  2654. fi
  2655. AWK=$ac_cv_prog_AWK
  2656. if test -n "$AWK"; then
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2658. $as_echo "$AWK" >&6; }
  2659. else
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2661. $as_echo "no" >&6; }
  2662. fi
  2663. test -n "$AWK" && break
  2664. done
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2666. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2667. set x ${MAKE-make}
  2668. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2669. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. cat >conftest.make <<\_ACEOF
  2673. SHELL = /bin/sh
  2674. all:
  2675. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2676. _ACEOF
  2677. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2678. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2679. *@@@%%%=?*=@@@%%%*)
  2680. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2681. *)
  2682. eval ac_cv_prog_make_${ac_make}_set=no;;
  2683. esac
  2684. rm -f conftest.make
  2685. fi
  2686. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2688. $as_echo "yes" >&6; }
  2689. SET_MAKE=
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. SET_MAKE="MAKE=${MAKE-make}"
  2694. fi
  2695. rm -rf .tst 2>/dev/null
  2696. mkdir .tst 2>/dev/null
  2697. if test -d .tst; then
  2698. am__leading_dot=.
  2699. else
  2700. am__leading_dot=_
  2701. fi
  2702. rmdir .tst 2>/dev/null
  2703. # Check whether --enable-silent-rules was given.
  2704. if test "${enable_silent_rules+set}" = set; then :
  2705. enableval=$enable_silent_rules;
  2706. fi
  2707. case $enable_silent_rules in # (((
  2708. yes) AM_DEFAULT_VERBOSITY=0;;
  2709. no) AM_DEFAULT_VERBOSITY=1;;
  2710. *) AM_DEFAULT_VERBOSITY=1;;
  2711. esac
  2712. am_make=${MAKE-make}
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2714. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2715. if ${am_cv_make_support_nested_variables+:} false; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if $as_echo 'TRUE=$(BAR$(V))
  2719. BAR0=false
  2720. BAR1=true
  2721. V=1
  2722. am__doit:
  2723. @$(TRUE)
  2724. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2725. am_cv_make_support_nested_variables=yes
  2726. else
  2727. am_cv_make_support_nested_variables=no
  2728. fi
  2729. fi
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2731. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2732. if test $am_cv_make_support_nested_variables = yes; then
  2733. AM_V='$(V)'
  2734. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2735. else
  2736. AM_V=$AM_DEFAULT_VERBOSITY
  2737. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2738. fi
  2739. AM_BACKSLASH='\'
  2740. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2741. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2742. # is not polluted with repeated "-I."
  2743. am__isrc=' -I$(srcdir)'
  2744. # test to see if srcdir already configured
  2745. if test -f $srcdir/config.status; then
  2746. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2747. fi
  2748. fi
  2749. # test whether we have cygpath
  2750. if test -z "$CYGPATH_W"; then
  2751. if (cygpath --version) >/dev/null 2>/dev/null; then
  2752. CYGPATH_W='cygpath -w'
  2753. else
  2754. CYGPATH_W=echo
  2755. fi
  2756. fi
  2757. # Define the identity of the package.
  2758. PACKAGE='usbmuxd'
  2759. VERSION='1.1.0'
  2760. cat >>confdefs.h <<_ACEOF
  2761. #define PACKAGE "$PACKAGE"
  2762. _ACEOF
  2763. cat >>confdefs.h <<_ACEOF
  2764. #define VERSION "$VERSION"
  2765. _ACEOF
  2766. # Some tools Automake needs.
  2767. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2768. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2769. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2770. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2771. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2772. # For better backward compatibility. To be removed once Automake 1.9.x
  2773. # dies out for good. For more background, see:
  2774. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2775. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2776. mkdir_p='$(MKDIR_P)'
  2777. # We need awk for the "check" target. The system "awk" is bad on
  2778. # some platforms.
  2779. # Always define AMTAR for backward compatibility. Yes, it's still used
  2780. # in the wild :-( We should find a proper way to deprecate it ...
  2781. AMTAR='$${TAR-tar}'
  2782. # We'll loop over all known methods to create a tar archive until one works.
  2783. _am_tools='gnutar pax cpio none'
  2784. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2785. # Check whether --enable-silent-rules was given.
  2786. if test "${enable_silent_rules+set}" = set; then :
  2787. enableval=$enable_silent_rules;
  2788. fi
  2789. case $enable_silent_rules in # (((
  2790. yes) AM_DEFAULT_VERBOSITY=0;;
  2791. no) AM_DEFAULT_VERBOSITY=1;;
  2792. *) AM_DEFAULT_VERBOSITY=1;;
  2793. esac
  2794. am_make=${MAKE-make}
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2796. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2797. if ${am_cv_make_support_nested_variables+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if $as_echo 'TRUE=$(BAR$(V))
  2801. BAR0=false
  2802. BAR1=true
  2803. V=1
  2804. am__doit:
  2805. @$(TRUE)
  2806. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2807. am_cv_make_support_nested_variables=yes
  2808. else
  2809. am_cv_make_support_nested_variables=no
  2810. fi
  2811. fi
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2813. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2814. if test $am_cv_make_support_nested_variables = yes; then
  2815. AM_V='$(V)'
  2816. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2817. else
  2818. AM_V=$AM_DEFAULT_VERBOSITY
  2819. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2820. fi
  2821. AM_BACKSLASH='\'
  2822. ac_config_headers="$ac_config_headers config.h"
  2823. # Checks for programs.
  2824. ac_ext=c
  2825. ac_cpp='$CPP $CPPFLAGS'
  2826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2829. if test -n "$ac_tool_prefix"; then
  2830. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2831. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2833. $as_echo_n "checking for $ac_word... " >&6; }
  2834. if ${ac_cv_prog_CC+:} false; then :
  2835. $as_echo_n "(cached) " >&6
  2836. else
  2837. if test -n "$CC"; then
  2838. ac_cv_prog_CC="$CC" # Let the user override the test.
  2839. else
  2840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2841. for as_dir in $PATH
  2842. do
  2843. IFS=$as_save_IFS
  2844. test -z "$as_dir" && as_dir=.
  2845. for ac_exec_ext in '' $ac_executable_extensions; do
  2846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2847. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2849. break 2
  2850. fi
  2851. done
  2852. done
  2853. IFS=$as_save_IFS
  2854. fi
  2855. fi
  2856. CC=$ac_cv_prog_CC
  2857. if test -n "$CC"; then
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2859. $as_echo "$CC" >&6; }
  2860. else
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2862. $as_echo "no" >&6; }
  2863. fi
  2864. fi
  2865. if test -z "$ac_cv_prog_CC"; then
  2866. ac_ct_CC=$CC
  2867. # Extract the first word of "gcc", so it can be a program name with args.
  2868. set dummy gcc; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$ac_ct_CC"; then
  2875. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2884. ac_cv_prog_ac_ct_CC="gcc"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2894. if test -n "$ac_ct_CC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2896. $as_echo "$ac_ct_CC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. if test "x$ac_ct_CC" = x; then
  2902. CC=""
  2903. else
  2904. case $cross_compiling:$ac_tool_warned in
  2905. yes:)
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2908. ac_tool_warned=yes ;;
  2909. esac
  2910. CC=$ac_ct_CC
  2911. fi
  2912. else
  2913. CC="$ac_cv_prog_CC"
  2914. fi
  2915. if test -z "$CC"; then
  2916. if test -n "$ac_tool_prefix"; then
  2917. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2918. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2920. $as_echo_n "checking for $ac_word... " >&6; }
  2921. if ${ac_cv_prog_CC+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. if test -n "$CC"; then
  2925. ac_cv_prog_CC="$CC" # Let the user override the test.
  2926. else
  2927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2928. for as_dir in $PATH
  2929. do
  2930. IFS=$as_save_IFS
  2931. test -z "$as_dir" && as_dir=.
  2932. for ac_exec_ext in '' $ac_executable_extensions; do
  2933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2934. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2936. break 2
  2937. fi
  2938. done
  2939. done
  2940. IFS=$as_save_IFS
  2941. fi
  2942. fi
  2943. CC=$ac_cv_prog_CC
  2944. if test -n "$CC"; then
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2946. $as_echo "$CC" >&6; }
  2947. else
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2949. $as_echo "no" >&6; }
  2950. fi
  2951. fi
  2952. fi
  2953. if test -z "$CC"; then
  2954. # Extract the first word of "cc", so it can be a program name with args.
  2955. set dummy cc; ac_word=$2
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2957. $as_echo_n "checking for $ac_word... " >&6; }
  2958. if ${ac_cv_prog_CC+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. if test -n "$CC"; then
  2962. ac_cv_prog_CC="$CC" # Let the user override the test.
  2963. else
  2964. ac_prog_rejected=no
  2965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2966. for as_dir in $PATH
  2967. do
  2968. IFS=$as_save_IFS
  2969. test -z "$as_dir" && as_dir=.
  2970. for ac_exec_ext in '' $ac_executable_extensions; do
  2971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2972. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2973. ac_prog_rejected=yes
  2974. continue
  2975. fi
  2976. ac_cv_prog_CC="cc"
  2977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2978. break 2
  2979. fi
  2980. done
  2981. done
  2982. IFS=$as_save_IFS
  2983. if test $ac_prog_rejected = yes; then
  2984. # We found a bogon in the path, so make sure we never use it.
  2985. set dummy $ac_cv_prog_CC
  2986. shift
  2987. if test $# != 0; then
  2988. # We chose a different compiler from the bogus one.
  2989. # However, it has the same basename, so the bogon will be chosen
  2990. # first if we set CC to just the basename; use the full file name.
  2991. shift
  2992. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2993. fi
  2994. fi
  2995. fi
  2996. fi
  2997. CC=$ac_cv_prog_CC
  2998. if test -n "$CC"; then
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3000. $as_echo "$CC" >&6; }
  3001. else
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3003. $as_echo "no" >&6; }
  3004. fi
  3005. fi
  3006. if test -z "$CC"; then
  3007. if test -n "$ac_tool_prefix"; then
  3008. for ac_prog in cl.exe
  3009. do
  3010. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3011. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3013. $as_echo_n "checking for $ac_word... " >&6; }
  3014. if ${ac_cv_prog_CC+:} false; then :
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. if test -n "$CC"; then
  3018. ac_cv_prog_CC="$CC" # Let the user override the test.
  3019. else
  3020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3021. for as_dir in $PATH
  3022. do
  3023. IFS=$as_save_IFS
  3024. test -z "$as_dir" && as_dir=.
  3025. for ac_exec_ext in '' $ac_executable_extensions; do
  3026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3027. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3029. break 2
  3030. fi
  3031. done
  3032. done
  3033. IFS=$as_save_IFS
  3034. fi
  3035. fi
  3036. CC=$ac_cv_prog_CC
  3037. if test -n "$CC"; then
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3039. $as_echo "$CC" >&6; }
  3040. else
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3042. $as_echo "no" >&6; }
  3043. fi
  3044. test -n "$CC" && break
  3045. done
  3046. fi
  3047. if test -z "$CC"; then
  3048. ac_ct_CC=$CC
  3049. for ac_prog in cl.exe
  3050. do
  3051. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3052. set dummy $ac_prog; ac_word=$2
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3054. $as_echo_n "checking for $ac_word... " >&6; }
  3055. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. if test -n "$ac_ct_CC"; then
  3059. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3060. else
  3061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3062. for as_dir in $PATH
  3063. do
  3064. IFS=$as_save_IFS
  3065. test -z "$as_dir" && as_dir=.
  3066. for ac_exec_ext in '' $ac_executable_extensions; do
  3067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3068. ac_cv_prog_ac_ct_CC="$ac_prog"
  3069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3070. break 2
  3071. fi
  3072. done
  3073. done
  3074. IFS=$as_save_IFS
  3075. fi
  3076. fi
  3077. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3078. if test -n "$ac_ct_CC"; then
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3080. $as_echo "$ac_ct_CC" >&6; }
  3081. else
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3083. $as_echo "no" >&6; }
  3084. fi
  3085. test -n "$ac_ct_CC" && break
  3086. done
  3087. if test "x$ac_ct_CC" = x; then
  3088. CC=""
  3089. else
  3090. case $cross_compiling:$ac_tool_warned in
  3091. yes:)
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3093. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3094. ac_tool_warned=yes ;;
  3095. esac
  3096. CC=$ac_ct_CC
  3097. fi
  3098. fi
  3099. fi
  3100. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3102. as_fn_error $? "no acceptable C compiler found in \$PATH
  3103. See \`config.log' for more details" "$LINENO" 5; }
  3104. # Provide some information about the compiler.
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3106. set X $ac_compile
  3107. ac_compiler=$2
  3108. for ac_option in --version -v -V -qversion; do
  3109. { { ac_try="$ac_compiler $ac_option >&5"
  3110. case "(($ac_try" in
  3111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3112. *) ac_try_echo=$ac_try;;
  3113. esac
  3114. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3115. $as_echo "$ac_try_echo"; } >&5
  3116. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3117. ac_status=$?
  3118. if test -s conftest.err; then
  3119. sed '10a\
  3120. ... rest of stderr output deleted ...
  3121. 10q' conftest.err >conftest.er1
  3122. cat conftest.er1 >&5
  3123. fi
  3124. rm -f conftest.er1 conftest.err
  3125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3126. test $ac_status = 0; }
  3127. done
  3128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. ac_clean_files_save=$ac_clean_files
  3138. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3139. # Try to create an executable without -o first, disregard a.out.
  3140. # It will help us diagnose broken compilers, and finding out an intuition
  3141. # of exeext.
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3143. $as_echo_n "checking whether the C compiler works... " >&6; }
  3144. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3145. # The possible output files:
  3146. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3147. ac_rmfiles=
  3148. for ac_file in $ac_files
  3149. do
  3150. case $ac_file in
  3151. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3152. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3153. esac
  3154. done
  3155. rm -f $ac_rmfiles
  3156. if { { ac_try="$ac_link_default"
  3157. case "(($ac_try" in
  3158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3159. *) ac_try_echo=$ac_try;;
  3160. esac
  3161. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3162. $as_echo "$ac_try_echo"; } >&5
  3163. (eval "$ac_link_default") 2>&5
  3164. ac_status=$?
  3165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3166. test $ac_status = 0; }; then :
  3167. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3168. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3169. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3170. # so that the user can short-circuit this test for compilers unknown to
  3171. # Autoconf.
  3172. for ac_file in $ac_files ''
  3173. do
  3174. test -f "$ac_file" || continue
  3175. case $ac_file in
  3176. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3177. ;;
  3178. [ab].out )
  3179. # We found the default executable, but exeext='' is most
  3180. # certainly right.
  3181. break;;
  3182. *.* )
  3183. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3184. then :; else
  3185. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3186. fi
  3187. # We set ac_cv_exeext here because the later test for it is not
  3188. # safe: cross compilers may not add the suffix if given an `-o'
  3189. # argument, so we may need to know it at that point already.
  3190. # Even if this section looks crufty: it has the advantage of
  3191. # actually working.
  3192. break;;
  3193. * )
  3194. break;;
  3195. esac
  3196. done
  3197. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3198. else
  3199. ac_file=''
  3200. fi
  3201. if test -z "$ac_file"; then :
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3203. $as_echo "no" >&6; }
  3204. $as_echo "$as_me: failed program was:" >&5
  3205. sed 's/^/| /' conftest.$ac_ext >&5
  3206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3208. as_fn_error 77 "C compiler cannot create executables
  3209. See \`config.log' for more details" "$LINENO" 5; }
  3210. else
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3212. $as_echo "yes" >&6; }
  3213. fi
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3215. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3217. $as_echo "$ac_file" >&6; }
  3218. ac_exeext=$ac_cv_exeext
  3219. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3220. ac_clean_files=$ac_clean_files_save
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3222. $as_echo_n "checking for suffix of executables... " >&6; }
  3223. if { { ac_try="$ac_link"
  3224. case "(($ac_try" in
  3225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3226. *) ac_try_echo=$ac_try;;
  3227. esac
  3228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3229. $as_echo "$ac_try_echo"; } >&5
  3230. (eval "$ac_link") 2>&5
  3231. ac_status=$?
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3233. test $ac_status = 0; }; then :
  3234. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3235. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3236. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3237. # `rm'.
  3238. for ac_file in conftest.exe conftest conftest.*; do
  3239. test -f "$ac_file" || continue
  3240. case $ac_file in
  3241. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3242. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3243. break;;
  3244. * ) break;;
  3245. esac
  3246. done
  3247. else
  3248. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3250. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3251. See \`config.log' for more details" "$LINENO" 5; }
  3252. fi
  3253. rm -f conftest conftest$ac_cv_exeext
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3255. $as_echo "$ac_cv_exeext" >&6; }
  3256. rm -f conftest.$ac_ext
  3257. EXEEXT=$ac_cv_exeext
  3258. ac_exeext=$EXEEXT
  3259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3260. /* end confdefs.h. */
  3261. #include <stdio.h>
  3262. int
  3263. main ()
  3264. {
  3265. FILE *f = fopen ("conftest.out", "w");
  3266. return ferror (f) || fclose (f) != 0;
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. ac_clean_files="$ac_clean_files conftest.out"
  3272. # Check that the compiler produces executables we can run. If not, either
  3273. # the compiler is broken, or we cross compile.
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3275. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3276. if test "$cross_compiling" != yes; then
  3277. { { ac_try="$ac_link"
  3278. case "(($ac_try" in
  3279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3280. *) ac_try_echo=$ac_try;;
  3281. esac
  3282. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3283. $as_echo "$ac_try_echo"; } >&5
  3284. (eval "$ac_link") 2>&5
  3285. ac_status=$?
  3286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3287. test $ac_status = 0; }
  3288. if { ac_try='./conftest$ac_cv_exeext'
  3289. { { case "(($ac_try" in
  3290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3291. *) ac_try_echo=$ac_try;;
  3292. esac
  3293. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3294. $as_echo "$ac_try_echo"; } >&5
  3295. (eval "$ac_try") 2>&5
  3296. ac_status=$?
  3297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3298. test $ac_status = 0; }; }; then
  3299. cross_compiling=no
  3300. else
  3301. if test "$cross_compiling" = maybe; then
  3302. cross_compiling=yes
  3303. else
  3304. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3305. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3306. as_fn_error $? "cannot run C compiled programs.
  3307. If you meant to cross compile, use \`--host'.
  3308. See \`config.log' for more details" "$LINENO" 5; }
  3309. fi
  3310. fi
  3311. fi
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3313. $as_echo "$cross_compiling" >&6; }
  3314. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3315. ac_clean_files=$ac_clean_files_save
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3317. $as_echo_n "checking for suffix of object files... " >&6; }
  3318. if ${ac_cv_objext+:} false; then :
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. rm -f conftest.o conftest.obj
  3331. if { { ac_try="$ac_compile"
  3332. case "(($ac_try" in
  3333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3334. *) ac_try_echo=$ac_try;;
  3335. esac
  3336. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3337. $as_echo "$ac_try_echo"; } >&5
  3338. (eval "$ac_compile") 2>&5
  3339. ac_status=$?
  3340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3341. test $ac_status = 0; }; then :
  3342. for ac_file in conftest.o conftest.obj conftest.*; do
  3343. test -f "$ac_file" || continue;
  3344. case $ac_file in
  3345. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3346. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3347. break;;
  3348. esac
  3349. done
  3350. else
  3351. $as_echo "$as_me: failed program was:" >&5
  3352. sed 's/^/| /' conftest.$ac_ext >&5
  3353. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3354. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3355. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3356. See \`config.log' for more details" "$LINENO" 5; }
  3357. fi
  3358. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3361. $as_echo "$ac_cv_objext" >&6; }
  3362. OBJEXT=$ac_cv_objext
  3363. ac_objext=$OBJEXT
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3365. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3366. if ${ac_cv_c_compiler_gnu+:} false; then :
  3367. $as_echo_n "(cached) " >&6
  3368. else
  3369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3370. /* end confdefs.h. */
  3371. int
  3372. main ()
  3373. {
  3374. #ifndef __GNUC__
  3375. choke me
  3376. #endif
  3377. ;
  3378. return 0;
  3379. }
  3380. _ACEOF
  3381. if ac_fn_c_try_compile "$LINENO"; then :
  3382. ac_compiler_gnu=yes
  3383. else
  3384. ac_compiler_gnu=no
  3385. fi
  3386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3387. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3388. fi
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3390. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3391. if test $ac_compiler_gnu = yes; then
  3392. GCC=yes
  3393. else
  3394. GCC=
  3395. fi
  3396. ac_test_CFLAGS=${CFLAGS+set}
  3397. ac_save_CFLAGS=$CFLAGS
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3399. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3400. if ${ac_cv_prog_cc_g+:} false; then :
  3401. $as_echo_n "(cached) " >&6
  3402. else
  3403. ac_save_c_werror_flag=$ac_c_werror_flag
  3404. ac_c_werror_flag=yes
  3405. ac_cv_prog_cc_g=no
  3406. CFLAGS="-g"
  3407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3408. /* end confdefs.h. */
  3409. int
  3410. main ()
  3411. {
  3412. ;
  3413. return 0;
  3414. }
  3415. _ACEOF
  3416. if ac_fn_c_try_compile "$LINENO"; then :
  3417. ac_cv_prog_cc_g=yes
  3418. else
  3419. CFLAGS=""
  3420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. if ac_fn_c_try_compile "$LINENO"; then :
  3430. else
  3431. ac_c_werror_flag=$ac_save_c_werror_flag
  3432. CFLAGS="-g"
  3433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3434. /* end confdefs.h. */
  3435. int
  3436. main ()
  3437. {
  3438. ;
  3439. return 0;
  3440. }
  3441. _ACEOF
  3442. if ac_fn_c_try_compile "$LINENO"; then :
  3443. ac_cv_prog_cc_g=yes
  3444. fi
  3445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3446. fi
  3447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3448. fi
  3449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3450. ac_c_werror_flag=$ac_save_c_werror_flag
  3451. fi
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3453. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3454. if test "$ac_test_CFLAGS" = set; then
  3455. CFLAGS=$ac_save_CFLAGS
  3456. elif test $ac_cv_prog_cc_g = yes; then
  3457. if test "$GCC" = yes; then
  3458. CFLAGS="-g -O2"
  3459. else
  3460. CFLAGS="-g"
  3461. fi
  3462. else
  3463. if test "$GCC" = yes; then
  3464. CFLAGS="-O2"
  3465. else
  3466. CFLAGS=
  3467. fi
  3468. fi
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3470. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3471. if ${ac_cv_prog_cc_c89+:} false; then :
  3472. $as_echo_n "(cached) " >&6
  3473. else
  3474. ac_cv_prog_cc_c89=no
  3475. ac_save_CC=$CC
  3476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h. */
  3478. #include <stdarg.h>
  3479. #include <stdio.h>
  3480. struct stat;
  3481. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3482. struct buf { int x; };
  3483. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3484. static char *e (p, i)
  3485. char **p;
  3486. int i;
  3487. {
  3488. return p[i];
  3489. }
  3490. static char *f (char * (*g) (char **, int), char **p, ...)
  3491. {
  3492. char *s;
  3493. va_list v;
  3494. va_start (v,p);
  3495. s = g (p, va_arg (v,int));
  3496. va_end (v);
  3497. return s;
  3498. }
  3499. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3500. function prototypes and stuff, but not '\xHH' hex character constants.
  3501. These don't provoke an error unfortunately, instead are silently treated
  3502. as 'x'. The following induces an error, until -std is added to get
  3503. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3504. array size at least. It's necessary to write '\x00'==0 to get something
  3505. that's true only with -std. */
  3506. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3507. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3508. inside strings and character constants. */
  3509. #define FOO(x) 'x'
  3510. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3511. int test (int i, double x);
  3512. struct s1 {int (*f) (int a);};
  3513. struct s2 {int (*f) (double a);};
  3514. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3515. int argc;
  3516. char **argv;
  3517. int
  3518. main ()
  3519. {
  3520. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3526. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3527. do
  3528. CC="$ac_save_CC $ac_arg"
  3529. if ac_fn_c_try_compile "$LINENO"; then :
  3530. ac_cv_prog_cc_c89=$ac_arg
  3531. fi
  3532. rm -f core conftest.err conftest.$ac_objext
  3533. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3534. done
  3535. rm -f conftest.$ac_ext
  3536. CC=$ac_save_CC
  3537. fi
  3538. # AC_CACHE_VAL
  3539. case "x$ac_cv_prog_cc_c89" in
  3540. x)
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3542. $as_echo "none needed" >&6; } ;;
  3543. xno)
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3545. $as_echo "unsupported" >&6; } ;;
  3546. *)
  3547. CC="$CC $ac_cv_prog_cc_c89"
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3549. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3550. esac
  3551. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3552. fi
  3553. ac_ext=c
  3554. ac_cpp='$CPP $CPPFLAGS'
  3555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3558. DEPDIR="${am__leading_dot}deps"
  3559. ac_config_commands="$ac_config_commands depfiles"
  3560. am_make=${MAKE-make}
  3561. cat > confinc << 'END'
  3562. am__doit:
  3563. @echo this is the am__doit target
  3564. .PHONY: am__doit
  3565. END
  3566. # If we don't find an include directive, just comment out the code.
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3568. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3569. am__include="#"
  3570. am__quote=
  3571. _am_result=none
  3572. # First try GNU make style include.
  3573. echo "include confinc" > confmf
  3574. # Ignore all kinds of additional output from 'make'.
  3575. case `$am_make -s -f confmf 2> /dev/null` in #(
  3576. *the\ am__doit\ target*)
  3577. am__include=include
  3578. am__quote=
  3579. _am_result=GNU
  3580. ;;
  3581. esac
  3582. # Now try BSD make style include.
  3583. if test "$am__include" = "#"; then
  3584. echo '.include "confinc"' > confmf
  3585. case `$am_make -s -f confmf 2> /dev/null` in #(
  3586. *the\ am__doit\ target*)
  3587. am__include=.include
  3588. am__quote="\""
  3589. _am_result=BSD
  3590. ;;
  3591. esac
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3594. $as_echo "$_am_result" >&6; }
  3595. rm -f confinc confmf
  3596. # Check whether --enable-dependency-tracking was given.
  3597. if test "${enable_dependency_tracking+set}" = set; then :
  3598. enableval=$enable_dependency_tracking;
  3599. fi
  3600. if test "x$enable_dependency_tracking" != xno; then
  3601. am_depcomp="$ac_aux_dir/depcomp"
  3602. AMDEPBACKSLASH='\'
  3603. am__nodep='_no'
  3604. fi
  3605. if test "x$enable_dependency_tracking" != xno; then
  3606. AMDEP_TRUE=
  3607. AMDEP_FALSE='#'
  3608. else
  3609. AMDEP_TRUE='#'
  3610. AMDEP_FALSE=
  3611. fi
  3612. depcc="$CC" am_compiler_list=
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3614. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3615. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3619. # We make a subdir and do the tests there. Otherwise we can end up
  3620. # making bogus files that we don't know about and never remove. For
  3621. # instance it was reported that on HP-UX the gcc test will end up
  3622. # making a dummy file named 'D' -- because '-MD' means "put the output
  3623. # in D".
  3624. rm -rf conftest.dir
  3625. mkdir conftest.dir
  3626. # Copy depcomp to subdir because otherwise we won't find it if we're
  3627. # using a relative directory.
  3628. cp "$am_depcomp" conftest.dir
  3629. cd conftest.dir
  3630. # We will build objects and dependencies in a subdirectory because
  3631. # it helps to detect inapplicable dependency modes. For instance
  3632. # both Tru64's cc and ICC support -MD to output dependencies as a
  3633. # side effect of compilation, but ICC will put the dependencies in
  3634. # the current directory while Tru64 will put them in the object
  3635. # directory.
  3636. mkdir sub
  3637. am_cv_CC_dependencies_compiler_type=none
  3638. if test "$am_compiler_list" = ""; then
  3639. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3640. fi
  3641. am__universal=false
  3642. case " $depcc " in #(
  3643. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3644. esac
  3645. for depmode in $am_compiler_list; do
  3646. # Setup a source with many dependencies, because some compilers
  3647. # like to wrap large dependency lists on column 80 (with \), and
  3648. # we should not choose a depcomp mode which is confused by this.
  3649. #
  3650. # We need to recreate these files for each test, as the compiler may
  3651. # overwrite some of them when testing with obscure command lines.
  3652. # This happens at least with the AIX C compiler.
  3653. : > sub/conftest.c
  3654. for i in 1 2 3 4 5 6; do
  3655. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3656. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3657. # Solaris 10 /bin/sh.
  3658. echo '/* dummy */' > sub/conftst$i.h
  3659. done
  3660. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3661. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3662. # mode. It turns out that the SunPro C++ compiler does not properly
  3663. # handle '-M -o', and we need to detect this. Also, some Intel
  3664. # versions had trouble with output in subdirs.
  3665. am__obj=sub/conftest.${OBJEXT-o}
  3666. am__minus_obj="-o $am__obj"
  3667. case $depmode in
  3668. gcc)
  3669. # This depmode causes a compiler race in universal mode.
  3670. test "$am__universal" = false || continue
  3671. ;;
  3672. nosideeffect)
  3673. # After this tag, mechanisms are not by side-effect, so they'll
  3674. # only be used when explicitly requested.
  3675. if test "x$enable_dependency_tracking" = xyes; then
  3676. continue
  3677. else
  3678. break
  3679. fi
  3680. ;;
  3681. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3682. # This compiler won't grok '-c -o', but also, the minuso test has
  3683. # not run yet. These depmodes are late enough in the game, and
  3684. # so weak that their functioning should not be impacted.
  3685. am__obj=conftest.${OBJEXT-o}
  3686. am__minus_obj=
  3687. ;;
  3688. none) break ;;
  3689. esac
  3690. if depmode=$depmode \
  3691. source=sub/conftest.c object=$am__obj \
  3692. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3693. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3694. >/dev/null 2>conftest.err &&
  3695. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3696. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3697. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3698. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3699. # icc doesn't choke on unknown options, it will just issue warnings
  3700. # or remarks (even with -Werror). So we grep stderr for any message
  3701. # that says an option was ignored or not supported.
  3702. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3703. # icc: Command line warning: ignoring option '-M'; no argument required
  3704. # The diagnosis changed in icc 8.0:
  3705. # icc: Command line remark: option '-MP' not supported
  3706. if (grep 'ignoring option' conftest.err ||
  3707. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3708. am_cv_CC_dependencies_compiler_type=$depmode
  3709. break
  3710. fi
  3711. fi
  3712. done
  3713. cd ..
  3714. rm -rf conftest.dir
  3715. else
  3716. am_cv_CC_dependencies_compiler_type=none
  3717. fi
  3718. fi
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3720. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3721. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3722. if
  3723. test "x$enable_dependency_tracking" != xno \
  3724. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3725. am__fastdepCC_TRUE=
  3726. am__fastdepCC_FALSE='#'
  3727. else
  3728. am__fastdepCC_TRUE='#'
  3729. am__fastdepCC_FALSE=
  3730. fi
  3731. ac_ext=cpp
  3732. ac_cpp='$CXXCPP $CPPFLAGS'
  3733. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3734. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3735. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3736. if test -z "$CXX"; then
  3737. if test -n "$CCC"; then
  3738. CXX=$CCC
  3739. else
  3740. if test -n "$ac_tool_prefix"; then
  3741. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3742. do
  3743. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3744. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if ${ac_cv_prog_CXX+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$CXX"; then
  3751. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3760. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. CXX=$ac_cv_prog_CXX
  3770. if test -n "$CXX"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3772. $as_echo "$CXX" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. test -n "$CXX" && break
  3778. done
  3779. fi
  3780. if test -z "$CXX"; then
  3781. ac_ct_CXX=$CXX
  3782. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3783. do
  3784. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3785. set dummy $ac_prog; ac_word=$2
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3787. $as_echo_n "checking for $ac_word... " >&6; }
  3788. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. if test -n "$ac_ct_CXX"; then
  3792. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3793. else
  3794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3795. for as_dir in $PATH
  3796. do
  3797. IFS=$as_save_IFS
  3798. test -z "$as_dir" && as_dir=.
  3799. for ac_exec_ext in '' $ac_executable_extensions; do
  3800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3801. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3803. break 2
  3804. fi
  3805. done
  3806. done
  3807. IFS=$as_save_IFS
  3808. fi
  3809. fi
  3810. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3811. if test -n "$ac_ct_CXX"; then
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3813. $as_echo "$ac_ct_CXX" >&6; }
  3814. else
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3816. $as_echo "no" >&6; }
  3817. fi
  3818. test -n "$ac_ct_CXX" && break
  3819. done
  3820. if test "x$ac_ct_CXX" = x; then
  3821. CXX="g++"
  3822. else
  3823. case $cross_compiling:$ac_tool_warned in
  3824. yes:)
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3826. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3827. ac_tool_warned=yes ;;
  3828. esac
  3829. CXX=$ac_ct_CXX
  3830. fi
  3831. fi
  3832. fi
  3833. fi
  3834. # Provide some information about the compiler.
  3835. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3836. set X $ac_compile
  3837. ac_compiler=$2
  3838. for ac_option in --version -v -V -qversion; do
  3839. { { ac_try="$ac_compiler $ac_option >&5"
  3840. case "(($ac_try" in
  3841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3842. *) ac_try_echo=$ac_try;;
  3843. esac
  3844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3845. $as_echo "$ac_try_echo"; } >&5
  3846. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3847. ac_status=$?
  3848. if test -s conftest.err; then
  3849. sed '10a\
  3850. ... rest of stderr output deleted ...
  3851. 10q' conftest.err >conftest.er1
  3852. cat conftest.er1 >&5
  3853. fi
  3854. rm -f conftest.er1 conftest.err
  3855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3856. test $ac_status = 0; }
  3857. done
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3859. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3860. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3864. /* end confdefs.h. */
  3865. int
  3866. main ()
  3867. {
  3868. #ifndef __GNUC__
  3869. choke me
  3870. #endif
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. if ac_fn_cxx_try_compile "$LINENO"; then :
  3876. ac_compiler_gnu=yes
  3877. else
  3878. ac_compiler_gnu=no
  3879. fi
  3880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3881. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3882. fi
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3884. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3885. if test $ac_compiler_gnu = yes; then
  3886. GXX=yes
  3887. else
  3888. GXX=
  3889. fi
  3890. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3891. ac_save_CXXFLAGS=$CXXFLAGS
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3893. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3894. if ${ac_cv_prog_cxx_g+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3898. ac_cxx_werror_flag=yes
  3899. ac_cv_prog_cxx_g=no
  3900. CXXFLAGS="-g"
  3901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3902. /* end confdefs.h. */
  3903. int
  3904. main ()
  3905. {
  3906. ;
  3907. return 0;
  3908. }
  3909. _ACEOF
  3910. if ac_fn_cxx_try_compile "$LINENO"; then :
  3911. ac_cv_prog_cxx_g=yes
  3912. else
  3913. CXXFLAGS=""
  3914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3915. /* end confdefs.h. */
  3916. int
  3917. main ()
  3918. {
  3919. ;
  3920. return 0;
  3921. }
  3922. _ACEOF
  3923. if ac_fn_cxx_try_compile "$LINENO"; then :
  3924. else
  3925. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3926. CXXFLAGS="-g"
  3927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3928. /* end confdefs.h. */
  3929. int
  3930. main ()
  3931. {
  3932. ;
  3933. return 0;
  3934. }
  3935. _ACEOF
  3936. if ac_fn_cxx_try_compile "$LINENO"; then :
  3937. ac_cv_prog_cxx_g=yes
  3938. fi
  3939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3940. fi
  3941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3944. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3945. fi
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3947. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3948. if test "$ac_test_CXXFLAGS" = set; then
  3949. CXXFLAGS=$ac_save_CXXFLAGS
  3950. elif test $ac_cv_prog_cxx_g = yes; then
  3951. if test "$GXX" = yes; then
  3952. CXXFLAGS="-g -O2"
  3953. else
  3954. CXXFLAGS="-g"
  3955. fi
  3956. else
  3957. if test "$GXX" = yes; then
  3958. CXXFLAGS="-O2"
  3959. else
  3960. CXXFLAGS=
  3961. fi
  3962. fi
  3963. ac_ext=c
  3964. ac_cpp='$CPP $CPPFLAGS'
  3965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3968. depcc="$CXX" am_compiler_list=
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3970. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3971. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3972. $as_echo_n "(cached) " >&6
  3973. else
  3974. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3975. # We make a subdir and do the tests there. Otherwise we can end up
  3976. # making bogus files that we don't know about and never remove. For
  3977. # instance it was reported that on HP-UX the gcc test will end up
  3978. # making a dummy file named 'D' -- because '-MD' means "put the output
  3979. # in D".
  3980. rm -rf conftest.dir
  3981. mkdir conftest.dir
  3982. # Copy depcomp to subdir because otherwise we won't find it if we're
  3983. # using a relative directory.
  3984. cp "$am_depcomp" conftest.dir
  3985. cd conftest.dir
  3986. # We will build objects and dependencies in a subdirectory because
  3987. # it helps to detect inapplicable dependency modes. For instance
  3988. # both Tru64's cc and ICC support -MD to output dependencies as a
  3989. # side effect of compilation, but ICC will put the dependencies in
  3990. # the current directory while Tru64 will put them in the object
  3991. # directory.
  3992. mkdir sub
  3993. am_cv_CXX_dependencies_compiler_type=none
  3994. if test "$am_compiler_list" = ""; then
  3995. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3996. fi
  3997. am__universal=false
  3998. case " $depcc " in #(
  3999. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4000. esac
  4001. for depmode in $am_compiler_list; do
  4002. # Setup a source with many dependencies, because some compilers
  4003. # like to wrap large dependency lists on column 80 (with \), and
  4004. # we should not choose a depcomp mode which is confused by this.
  4005. #
  4006. # We need to recreate these files for each test, as the compiler may
  4007. # overwrite some of them when testing with obscure command lines.
  4008. # This happens at least with the AIX C compiler.
  4009. : > sub/conftest.c
  4010. for i in 1 2 3 4 5 6; do
  4011. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4012. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4013. # Solaris 10 /bin/sh.
  4014. echo '/* dummy */' > sub/conftst$i.h
  4015. done
  4016. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4017. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4018. # mode. It turns out that the SunPro C++ compiler does not properly
  4019. # handle '-M -o', and we need to detect this. Also, some Intel
  4020. # versions had trouble with output in subdirs.
  4021. am__obj=sub/conftest.${OBJEXT-o}
  4022. am__minus_obj="-o $am__obj"
  4023. case $depmode in
  4024. gcc)
  4025. # This depmode causes a compiler race in universal mode.
  4026. test "$am__universal" = false || continue
  4027. ;;
  4028. nosideeffect)
  4029. # After this tag, mechanisms are not by side-effect, so they'll
  4030. # only be used when explicitly requested.
  4031. if test "x$enable_dependency_tracking" = xyes; then
  4032. continue
  4033. else
  4034. break
  4035. fi
  4036. ;;
  4037. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4038. # This compiler won't grok '-c -o', but also, the minuso test has
  4039. # not run yet. These depmodes are late enough in the game, and
  4040. # so weak that their functioning should not be impacted.
  4041. am__obj=conftest.${OBJEXT-o}
  4042. am__minus_obj=
  4043. ;;
  4044. none) break ;;
  4045. esac
  4046. if depmode=$depmode \
  4047. source=sub/conftest.c object=$am__obj \
  4048. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4049. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4050. >/dev/null 2>conftest.err &&
  4051. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4052. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4053. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4054. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4055. # icc doesn't choke on unknown options, it will just issue warnings
  4056. # or remarks (even with -Werror). So we grep stderr for any message
  4057. # that says an option was ignored or not supported.
  4058. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4059. # icc: Command line warning: ignoring option '-M'; no argument required
  4060. # The diagnosis changed in icc 8.0:
  4061. # icc: Command line remark: option '-MP' not supported
  4062. if (grep 'ignoring option' conftest.err ||
  4063. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4064. am_cv_CXX_dependencies_compiler_type=$depmode
  4065. break
  4066. fi
  4067. fi
  4068. done
  4069. cd ..
  4070. rm -rf conftest.dir
  4071. else
  4072. am_cv_CXX_dependencies_compiler_type=none
  4073. fi
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4076. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4077. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4078. if
  4079. test "x$enable_dependency_tracking" != xno \
  4080. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4081. am__fastdepCXX_TRUE=
  4082. am__fastdepCXX_FALSE='#'
  4083. else
  4084. am__fastdepCXX_TRUE='#'
  4085. am__fastdepCXX_FALSE=
  4086. fi
  4087. if test "x$CC" != xcc; then
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4089. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4090. else
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4092. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4093. fi
  4094. set dummy $CC; ac_cc=`$as_echo "$2" |
  4095. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4096. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4097. $as_echo_n "(cached) " >&6
  4098. else
  4099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4100. /* end confdefs.h. */
  4101. int
  4102. main ()
  4103. {
  4104. ;
  4105. return 0;
  4106. }
  4107. _ACEOF
  4108. # Make sure it works both with $CC and with simple cc.
  4109. # We do the test twice because some compilers refuse to overwrite an
  4110. # existing .o file with -o, though they will create one.
  4111. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4112. rm -f conftest2.*
  4113. if { { case "(($ac_try" in
  4114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4115. *) ac_try_echo=$ac_try;;
  4116. esac
  4117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4118. $as_echo "$ac_try_echo"; } >&5
  4119. (eval "$ac_try") 2>&5
  4120. ac_status=$?
  4121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4122. test $ac_status = 0; } &&
  4123. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4125. *) ac_try_echo=$ac_try;;
  4126. esac
  4127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4128. $as_echo "$ac_try_echo"; } >&5
  4129. (eval "$ac_try") 2>&5
  4130. ac_status=$?
  4131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4132. test $ac_status = 0; };
  4133. then
  4134. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4135. if test "x$CC" != xcc; then
  4136. # Test first that cc exists at all.
  4137. if { ac_try='cc -c conftest.$ac_ext >&5'
  4138. { { case "(($ac_try" in
  4139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4140. *) ac_try_echo=$ac_try;;
  4141. esac
  4142. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4143. $as_echo "$ac_try_echo"; } >&5
  4144. (eval "$ac_try") 2>&5
  4145. ac_status=$?
  4146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4147. test $ac_status = 0; }; }; then
  4148. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4149. rm -f conftest2.*
  4150. if { { case "(($ac_try" in
  4151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4152. *) ac_try_echo=$ac_try;;
  4153. esac
  4154. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4155. $as_echo "$ac_try_echo"; } >&5
  4156. (eval "$ac_try") 2>&5
  4157. ac_status=$?
  4158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4159. test $ac_status = 0; } &&
  4160. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4162. *) ac_try_echo=$ac_try;;
  4163. esac
  4164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4165. $as_echo "$ac_try_echo"; } >&5
  4166. (eval "$ac_try") 2>&5
  4167. ac_status=$?
  4168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4169. test $ac_status = 0; };
  4170. then
  4171. # cc works too.
  4172. :
  4173. else
  4174. # cc exists but doesn't like -o.
  4175. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4176. fi
  4177. fi
  4178. fi
  4179. else
  4180. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4181. fi
  4182. rm -f core conftest*
  4183. fi
  4184. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4186. $as_echo "yes" >&6; }
  4187. else
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189. $as_echo "no" >&6; }
  4190. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4191. fi
  4192. # FIXME: we rely on the cache variable name because
  4193. # there is no other way.
  4194. set dummy $CC
  4195. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4196. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4197. if test "$am_t" != yes; then
  4198. # Losing compiler, so override with the script.
  4199. # FIXME: It is wrong to rewrite CC.
  4200. # But if we don't then we get into trouble of one sort or another.
  4201. # A longer-term fix would be to have automake use am__CC in this case,
  4202. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4203. CC="$am_aux_dir/compile $CC"
  4204. fi
  4205. case `pwd` in
  4206. *\ * | *\ *)
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4208. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4209. esac
  4210. macro_version='2.4.2'
  4211. macro_revision='1.3337'
  4212. ltmain="$ac_aux_dir/ltmain.sh"
  4213. # Make sure we can run config.sub.
  4214. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4215. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4217. $as_echo_n "checking build system type... " >&6; }
  4218. if ${ac_cv_build+:} false; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. ac_build_alias=$build_alias
  4222. test "x$ac_build_alias" = x &&
  4223. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4224. test "x$ac_build_alias" = x &&
  4225. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4226. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4227. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4228. fi
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4230. $as_echo "$ac_cv_build" >&6; }
  4231. case $ac_cv_build in
  4232. *-*-*) ;;
  4233. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4234. esac
  4235. build=$ac_cv_build
  4236. ac_save_IFS=$IFS; IFS='-'
  4237. set x $ac_cv_build
  4238. shift
  4239. build_cpu=$1
  4240. build_vendor=$2
  4241. shift; shift
  4242. # Remember, the first character of IFS is used to create $*,
  4243. # except with old shells:
  4244. build_os=$*
  4245. IFS=$ac_save_IFS
  4246. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4248. $as_echo_n "checking host system type... " >&6; }
  4249. if ${ac_cv_host+:} false; then :
  4250. $as_echo_n "(cached) " >&6
  4251. else
  4252. if test "x$host_alias" = x; then
  4253. ac_cv_host=$ac_cv_build
  4254. else
  4255. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4256. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4257. fi
  4258. fi
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4260. $as_echo "$ac_cv_host" >&6; }
  4261. case $ac_cv_host in
  4262. *-*-*) ;;
  4263. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4264. esac
  4265. host=$ac_cv_host
  4266. ac_save_IFS=$IFS; IFS='-'
  4267. set x $ac_cv_host
  4268. shift
  4269. host_cpu=$1
  4270. host_vendor=$2
  4271. shift; shift
  4272. # Remember, the first character of IFS is used to create $*,
  4273. # except with old shells:
  4274. host_os=$*
  4275. IFS=$ac_save_IFS
  4276. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4277. # Backslashify metacharacters that are still active within
  4278. # double-quoted strings.
  4279. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4280. # Same as above, but do not quote variable references.
  4281. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4282. # Sed substitution to delay expansion of an escaped shell variable in a
  4283. # double_quote_subst'ed string.
  4284. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4285. # Sed substitution to delay expansion of an escaped single quote.
  4286. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4287. # Sed substitution to avoid accidental globbing in evaled expressions
  4288. no_glob_subst='s/\*/\\\*/g'
  4289. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4290. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4291. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4293. $as_echo_n "checking how to print strings... " >&6; }
  4294. # Test print first, because it will be a builtin if present.
  4295. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4296. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4297. ECHO='print -r --'
  4298. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4299. ECHO='printf %s\n'
  4300. else
  4301. # Use this function as a fallback that always works.
  4302. func_fallback_echo ()
  4303. {
  4304. eval 'cat <<_LTECHO_EOF
  4305. $1
  4306. _LTECHO_EOF'
  4307. }
  4308. ECHO='func_fallback_echo'
  4309. fi
  4310. # func_echo_all arg...
  4311. # Invoke $ECHO with all args, space-separated.
  4312. func_echo_all ()
  4313. {
  4314. $ECHO ""
  4315. }
  4316. case "$ECHO" in
  4317. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4318. $as_echo "printf" >&6; } ;;
  4319. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4320. $as_echo "print -r" >&6; } ;;
  4321. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4322. $as_echo "cat" >&6; } ;;
  4323. esac
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4325. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4326. if ${ac_cv_path_SED+:} false; then :
  4327. $as_echo_n "(cached) " >&6
  4328. else
  4329. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4330. for ac_i in 1 2 3 4 5 6 7; do
  4331. ac_script="$ac_script$as_nl$ac_script"
  4332. done
  4333. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4334. { ac_script=; unset ac_script;}
  4335. if test -z "$SED"; then
  4336. ac_path_SED_found=false
  4337. # Loop through the user's path and test for each of PROGNAME-LIST
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_prog in sed gsed; do
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4346. as_fn_executable_p "$ac_path_SED" || continue
  4347. # Check for GNU ac_path_SED and select it if it is found.
  4348. # Check for GNU $ac_path_SED
  4349. case `"$ac_path_SED" --version 2>&1` in
  4350. *GNU*)
  4351. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4352. *)
  4353. ac_count=0
  4354. $as_echo_n 0123456789 >"conftest.in"
  4355. while :
  4356. do
  4357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4358. mv "conftest.tmp" "conftest.in"
  4359. cp "conftest.in" "conftest.nl"
  4360. $as_echo '' >> "conftest.nl"
  4361. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4363. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4364. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4365. # Best one so far, save it but keep looking for a better one
  4366. ac_cv_path_SED="$ac_path_SED"
  4367. ac_path_SED_max=$ac_count
  4368. fi
  4369. # 10*(2^10) chars as input seems more than enough
  4370. test $ac_count -gt 10 && break
  4371. done
  4372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4373. esac
  4374. $ac_path_SED_found && break 3
  4375. done
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. if test -z "$ac_cv_path_SED"; then
  4380. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4381. fi
  4382. else
  4383. ac_cv_path_SED=$SED
  4384. fi
  4385. fi
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4387. $as_echo "$ac_cv_path_SED" >&6; }
  4388. SED="$ac_cv_path_SED"
  4389. rm -f conftest.sed
  4390. test -z "$SED" && SED=sed
  4391. Xsed="$SED -e 1s/^X//"
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4393. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4394. if ${ac_cv_path_GREP+:} false; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. if test -z "$GREP"; then
  4398. ac_path_GREP_found=false
  4399. # Loop through the user's path and test for each of PROGNAME-LIST
  4400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4401. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4402. do
  4403. IFS=$as_save_IFS
  4404. test -z "$as_dir" && as_dir=.
  4405. for ac_prog in grep ggrep; do
  4406. for ac_exec_ext in '' $ac_executable_extensions; do
  4407. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4408. as_fn_executable_p "$ac_path_GREP" || continue
  4409. # Check for GNU ac_path_GREP and select it if it is found.
  4410. # Check for GNU $ac_path_GREP
  4411. case `"$ac_path_GREP" --version 2>&1` in
  4412. *GNU*)
  4413. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4414. *)
  4415. ac_count=0
  4416. $as_echo_n 0123456789 >"conftest.in"
  4417. while :
  4418. do
  4419. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4420. mv "conftest.tmp" "conftest.in"
  4421. cp "conftest.in" "conftest.nl"
  4422. $as_echo 'GREP' >> "conftest.nl"
  4423. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4424. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4425. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4426. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4427. # Best one so far, save it but keep looking for a better one
  4428. ac_cv_path_GREP="$ac_path_GREP"
  4429. ac_path_GREP_max=$ac_count
  4430. fi
  4431. # 10*(2^10) chars as input seems more than enough
  4432. test $ac_count -gt 10 && break
  4433. done
  4434. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4435. esac
  4436. $ac_path_GREP_found && break 3
  4437. done
  4438. done
  4439. done
  4440. IFS=$as_save_IFS
  4441. if test -z "$ac_cv_path_GREP"; then
  4442. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4443. fi
  4444. else
  4445. ac_cv_path_GREP=$GREP
  4446. fi
  4447. fi
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4449. $as_echo "$ac_cv_path_GREP" >&6; }
  4450. GREP="$ac_cv_path_GREP"
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4452. $as_echo_n "checking for egrep... " >&6; }
  4453. if ${ac_cv_path_EGREP+:} false; then :
  4454. $as_echo_n "(cached) " >&6
  4455. else
  4456. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4457. then ac_cv_path_EGREP="$GREP -E"
  4458. else
  4459. if test -z "$EGREP"; then
  4460. ac_path_EGREP_found=false
  4461. # Loop through the user's path and test for each of PROGNAME-LIST
  4462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4464. do
  4465. IFS=$as_save_IFS
  4466. test -z "$as_dir" && as_dir=.
  4467. for ac_prog in egrep; do
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4470. as_fn_executable_p "$ac_path_EGREP" || continue
  4471. # Check for GNU ac_path_EGREP and select it if it is found.
  4472. # Check for GNU $ac_path_EGREP
  4473. case `"$ac_path_EGREP" --version 2>&1` in
  4474. *GNU*)
  4475. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4476. *)
  4477. ac_count=0
  4478. $as_echo_n 0123456789 >"conftest.in"
  4479. while :
  4480. do
  4481. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4482. mv "conftest.tmp" "conftest.in"
  4483. cp "conftest.in" "conftest.nl"
  4484. $as_echo 'EGREP' >> "conftest.nl"
  4485. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4486. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4487. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4488. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4489. # Best one so far, save it but keep looking for a better one
  4490. ac_cv_path_EGREP="$ac_path_EGREP"
  4491. ac_path_EGREP_max=$ac_count
  4492. fi
  4493. # 10*(2^10) chars as input seems more than enough
  4494. test $ac_count -gt 10 && break
  4495. done
  4496. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4497. esac
  4498. $ac_path_EGREP_found && break 3
  4499. done
  4500. done
  4501. done
  4502. IFS=$as_save_IFS
  4503. if test -z "$ac_cv_path_EGREP"; then
  4504. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4505. fi
  4506. else
  4507. ac_cv_path_EGREP=$EGREP
  4508. fi
  4509. fi
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4512. $as_echo "$ac_cv_path_EGREP" >&6; }
  4513. EGREP="$ac_cv_path_EGREP"
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4515. $as_echo_n "checking for fgrep... " >&6; }
  4516. if ${ac_cv_path_FGREP+:} false; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4520. then ac_cv_path_FGREP="$GREP -F"
  4521. else
  4522. if test -z "$FGREP"; then
  4523. ac_path_FGREP_found=false
  4524. # Loop through the user's path and test for each of PROGNAME-LIST
  4525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4526. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4527. do
  4528. IFS=$as_save_IFS
  4529. test -z "$as_dir" && as_dir=.
  4530. for ac_prog in fgrep; do
  4531. for ac_exec_ext in '' $ac_executable_extensions; do
  4532. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4533. as_fn_executable_p "$ac_path_FGREP" || continue
  4534. # Check for GNU ac_path_FGREP and select it if it is found.
  4535. # Check for GNU $ac_path_FGREP
  4536. case `"$ac_path_FGREP" --version 2>&1` in
  4537. *GNU*)
  4538. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4539. *)
  4540. ac_count=0
  4541. $as_echo_n 0123456789 >"conftest.in"
  4542. while :
  4543. do
  4544. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4545. mv "conftest.tmp" "conftest.in"
  4546. cp "conftest.in" "conftest.nl"
  4547. $as_echo 'FGREP' >> "conftest.nl"
  4548. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4549. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4550. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4551. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4552. # Best one so far, save it but keep looking for a better one
  4553. ac_cv_path_FGREP="$ac_path_FGREP"
  4554. ac_path_FGREP_max=$ac_count
  4555. fi
  4556. # 10*(2^10) chars as input seems more than enough
  4557. test $ac_count -gt 10 && break
  4558. done
  4559. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4560. esac
  4561. $ac_path_FGREP_found && break 3
  4562. done
  4563. done
  4564. done
  4565. IFS=$as_save_IFS
  4566. if test -z "$ac_cv_path_FGREP"; then
  4567. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4568. fi
  4569. else
  4570. ac_cv_path_FGREP=$FGREP
  4571. fi
  4572. fi
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4575. $as_echo "$ac_cv_path_FGREP" >&6; }
  4576. FGREP="$ac_cv_path_FGREP"
  4577. test -z "$GREP" && GREP=grep
  4578. # Check whether --with-gnu-ld was given.
  4579. if test "${with_gnu_ld+set}" = set; then :
  4580. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4581. else
  4582. with_gnu_ld=no
  4583. fi
  4584. ac_prog=ld
  4585. if test "$GCC" = yes; then
  4586. # Check if gcc -print-prog-name=ld gives a path.
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4588. $as_echo_n "checking for ld used by $CC... " >&6; }
  4589. case $host in
  4590. *-*-mingw*)
  4591. # gcc leaves a trailing carriage return which upsets mingw
  4592. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4593. *)
  4594. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4595. esac
  4596. case $ac_prog in
  4597. # Accept absolute paths.
  4598. [\\/]* | ?:[\\/]*)
  4599. re_direlt='/[^/][^/]*/\.\./'
  4600. # Canonicalize the pathname of ld
  4601. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4602. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4603. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4604. done
  4605. test -z "$LD" && LD="$ac_prog"
  4606. ;;
  4607. "")
  4608. # If it fails, then pretend we aren't using GCC.
  4609. ac_prog=ld
  4610. ;;
  4611. *)
  4612. # If it is relative, then search for the first ld in PATH.
  4613. with_gnu_ld=unknown
  4614. ;;
  4615. esac
  4616. elif test "$with_gnu_ld" = yes; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4618. $as_echo_n "checking for GNU ld... " >&6; }
  4619. else
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4621. $as_echo_n "checking for non-GNU ld... " >&6; }
  4622. fi
  4623. if ${lt_cv_path_LD+:} false; then :
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. if test -z "$LD"; then
  4627. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4628. for ac_dir in $PATH; do
  4629. IFS="$lt_save_ifs"
  4630. test -z "$ac_dir" && ac_dir=.
  4631. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4632. lt_cv_path_LD="$ac_dir/$ac_prog"
  4633. # Check to see if the program is GNU ld. I'd rather use --version,
  4634. # but apparently some variants of GNU ld only accept -v.
  4635. # Break only if it was the GNU/non-GNU ld that we prefer.
  4636. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4637. *GNU* | *'with BFD'*)
  4638. test "$with_gnu_ld" != no && break
  4639. ;;
  4640. *)
  4641. test "$with_gnu_ld" != yes && break
  4642. ;;
  4643. esac
  4644. fi
  4645. done
  4646. IFS="$lt_save_ifs"
  4647. else
  4648. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4649. fi
  4650. fi
  4651. LD="$lt_cv_path_LD"
  4652. if test -n "$LD"; then
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4654. $as_echo "$LD" >&6; }
  4655. else
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4657. $as_echo "no" >&6; }
  4658. fi
  4659. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4661. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4662. if ${lt_cv_prog_gnu_ld+:} false; then :
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4666. case `$LD -v 2>&1 </dev/null` in
  4667. *GNU* | *'with BFD'*)
  4668. lt_cv_prog_gnu_ld=yes
  4669. ;;
  4670. *)
  4671. lt_cv_prog_gnu_ld=no
  4672. ;;
  4673. esac
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4676. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4677. with_gnu_ld=$lt_cv_prog_gnu_ld
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4679. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4680. if ${lt_cv_path_NM+:} false; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. if test -n "$NM"; then
  4684. # Let the user override the test.
  4685. lt_cv_path_NM="$NM"
  4686. else
  4687. lt_nm_to_check="${ac_tool_prefix}nm"
  4688. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4689. lt_nm_to_check="$lt_nm_to_check nm"
  4690. fi
  4691. for lt_tmp_nm in $lt_nm_to_check; do
  4692. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4693. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4694. IFS="$lt_save_ifs"
  4695. test -z "$ac_dir" && ac_dir=.
  4696. tmp_nm="$ac_dir/$lt_tmp_nm"
  4697. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4698. # Check to see if the nm accepts a BSD-compat flag.
  4699. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4700. # nm: unknown option "B" ignored
  4701. # Tru64's nm complains that /dev/null is an invalid object file
  4702. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4703. */dev/null* | *'Invalid file or object type'*)
  4704. lt_cv_path_NM="$tmp_nm -B"
  4705. break
  4706. ;;
  4707. *)
  4708. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4709. */dev/null*)
  4710. lt_cv_path_NM="$tmp_nm -p"
  4711. break
  4712. ;;
  4713. *)
  4714. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4715. continue # so that we can try to find one that supports BSD flags
  4716. ;;
  4717. esac
  4718. ;;
  4719. esac
  4720. fi
  4721. done
  4722. IFS="$lt_save_ifs"
  4723. done
  4724. : ${lt_cv_path_NM=no}
  4725. fi
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4728. $as_echo "$lt_cv_path_NM" >&6; }
  4729. if test "$lt_cv_path_NM" != "no"; then
  4730. NM="$lt_cv_path_NM"
  4731. else
  4732. # Didn't find any BSD compatible name lister, look for dumpbin.
  4733. if test -n "$DUMPBIN"; then :
  4734. # Let the user override the test.
  4735. else
  4736. if test -n "$ac_tool_prefix"; then
  4737. for ac_prog in dumpbin "link -dump"
  4738. do
  4739. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4740. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4742. $as_echo_n "checking for $ac_word... " >&6; }
  4743. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. if test -n "$DUMPBIN"; then
  4747. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4748. else
  4749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4750. for as_dir in $PATH
  4751. do
  4752. IFS=$as_save_IFS
  4753. test -z "$as_dir" && as_dir=.
  4754. for ac_exec_ext in '' $ac_executable_extensions; do
  4755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4756. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4758. break 2
  4759. fi
  4760. done
  4761. done
  4762. IFS=$as_save_IFS
  4763. fi
  4764. fi
  4765. DUMPBIN=$ac_cv_prog_DUMPBIN
  4766. if test -n "$DUMPBIN"; then
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4768. $as_echo "$DUMPBIN" >&6; }
  4769. else
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4771. $as_echo "no" >&6; }
  4772. fi
  4773. test -n "$DUMPBIN" && break
  4774. done
  4775. fi
  4776. if test -z "$DUMPBIN"; then
  4777. ac_ct_DUMPBIN=$DUMPBIN
  4778. for ac_prog in dumpbin "link -dump"
  4779. do
  4780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4781. set dummy $ac_prog; ac_word=$2
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4783. $as_echo_n "checking for $ac_word... " >&6; }
  4784. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4785. $as_echo_n "(cached) " >&6
  4786. else
  4787. if test -n "$ac_ct_DUMPBIN"; then
  4788. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4789. else
  4790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4791. for as_dir in $PATH
  4792. do
  4793. IFS=$as_save_IFS
  4794. test -z "$as_dir" && as_dir=.
  4795. for ac_exec_ext in '' $ac_executable_extensions; do
  4796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4797. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4799. break 2
  4800. fi
  4801. done
  4802. done
  4803. IFS=$as_save_IFS
  4804. fi
  4805. fi
  4806. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4807. if test -n "$ac_ct_DUMPBIN"; then
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4809. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4810. else
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4812. $as_echo "no" >&6; }
  4813. fi
  4814. test -n "$ac_ct_DUMPBIN" && break
  4815. done
  4816. if test "x$ac_ct_DUMPBIN" = x; then
  4817. DUMPBIN=":"
  4818. else
  4819. case $cross_compiling:$ac_tool_warned in
  4820. yes:)
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4823. ac_tool_warned=yes ;;
  4824. esac
  4825. DUMPBIN=$ac_ct_DUMPBIN
  4826. fi
  4827. fi
  4828. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4829. *COFF*)
  4830. DUMPBIN="$DUMPBIN -symbols"
  4831. ;;
  4832. *)
  4833. DUMPBIN=:
  4834. ;;
  4835. esac
  4836. fi
  4837. if test "$DUMPBIN" != ":"; then
  4838. NM="$DUMPBIN"
  4839. fi
  4840. fi
  4841. test -z "$NM" && NM=nm
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4843. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4844. if ${lt_cv_nm_interface+:} false; then :
  4845. $as_echo_n "(cached) " >&6
  4846. else
  4847. lt_cv_nm_interface="BSD nm"
  4848. echo "int some_variable = 0;" > conftest.$ac_ext
  4849. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4850. (eval "$ac_compile" 2>conftest.err)
  4851. cat conftest.err >&5
  4852. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4853. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4854. cat conftest.err >&5
  4855. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4856. cat conftest.out >&5
  4857. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4858. lt_cv_nm_interface="MS dumpbin"
  4859. fi
  4860. rm -f conftest*
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4863. $as_echo "$lt_cv_nm_interface" >&6; }
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4865. $as_echo_n "checking whether ln -s works... " >&6; }
  4866. LN_S=$as_ln_s
  4867. if test "$LN_S" = "ln -s"; then
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4869. $as_echo "yes" >&6; }
  4870. else
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4872. $as_echo "no, using $LN_S" >&6; }
  4873. fi
  4874. # find the maximum length of command line arguments
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4876. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4877. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. i=0
  4881. teststring="ABCD"
  4882. case $build_os in
  4883. msdosdjgpp*)
  4884. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4885. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4886. # during glob expansion). Even if it were fixed, the result of this
  4887. # check would be larger than it should be.
  4888. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4889. ;;
  4890. gnu*)
  4891. # Under GNU Hurd, this test is not required because there is
  4892. # no limit to the length of command line arguments.
  4893. # Libtool will interpret -1 as no limit whatsoever
  4894. lt_cv_sys_max_cmd_len=-1;
  4895. ;;
  4896. cygwin* | mingw* | cegcc*)
  4897. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4898. # about 5 minutes as the teststring grows exponentially.
  4899. # Worse, since 9x/ME are not pre-emptively multitasking,
  4900. # you end up with a "frozen" computer, even though with patience
  4901. # the test eventually succeeds (with a max line length of 256k).
  4902. # Instead, let's just punt: use the minimum linelength reported by
  4903. # all of the supported platforms: 8192 (on NT/2K/XP).
  4904. lt_cv_sys_max_cmd_len=8192;
  4905. ;;
  4906. mint*)
  4907. # On MiNT this can take a long time and run out of memory.
  4908. lt_cv_sys_max_cmd_len=8192;
  4909. ;;
  4910. amigaos*)
  4911. # On AmigaOS with pdksh, this test takes hours, literally.
  4912. # So we just punt and use a minimum line length of 8192.
  4913. lt_cv_sys_max_cmd_len=8192;
  4914. ;;
  4915. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4916. # This has been around since 386BSD, at least. Likely further.
  4917. if test -x /sbin/sysctl; then
  4918. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4919. elif test -x /usr/sbin/sysctl; then
  4920. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4921. else
  4922. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4923. fi
  4924. # And add a safety zone
  4925. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4926. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4927. ;;
  4928. interix*)
  4929. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4930. lt_cv_sys_max_cmd_len=196608
  4931. ;;
  4932. os2*)
  4933. # The test takes a long time on OS/2.
  4934. lt_cv_sys_max_cmd_len=8192
  4935. ;;
  4936. osf*)
  4937. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4938. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4939. # nice to cause kernel panics so lets avoid the loop below.
  4940. # First set a reasonable default.
  4941. lt_cv_sys_max_cmd_len=16384
  4942. #
  4943. if test -x /sbin/sysconfig; then
  4944. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4945. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4946. esac
  4947. fi
  4948. ;;
  4949. sco3.2v5*)
  4950. lt_cv_sys_max_cmd_len=102400
  4951. ;;
  4952. sysv5* | sco5v6* | sysv4.2uw2*)
  4953. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4954. if test -n "$kargmax"; then
  4955. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4956. else
  4957. lt_cv_sys_max_cmd_len=32768
  4958. fi
  4959. ;;
  4960. *)
  4961. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4962. if test -n "$lt_cv_sys_max_cmd_len"; then
  4963. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4964. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4965. else
  4966. # Make teststring a little bigger before we do anything with it.
  4967. # a 1K string should be a reasonable start.
  4968. for i in 1 2 3 4 5 6 7 8 ; do
  4969. teststring=$teststring$teststring
  4970. done
  4971. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4972. # If test is not a shell built-in, we'll probably end up computing a
  4973. # maximum length that is only half of the actual maximum length, but
  4974. # we can't tell.
  4975. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4976. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4977. test $i != 17 # 1/2 MB should be enough
  4978. do
  4979. i=`expr $i + 1`
  4980. teststring=$teststring$teststring
  4981. done
  4982. # Only check the string length outside the loop.
  4983. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4984. teststring=
  4985. # Add a significant safety factor because C++ compilers can tack on
  4986. # massive amounts of additional arguments before passing them to the
  4987. # linker. It appears as though 1/2 is a usable value.
  4988. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4989. fi
  4990. ;;
  4991. esac
  4992. fi
  4993. if test -n $lt_cv_sys_max_cmd_len ; then
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4995. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4996. else
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4998. $as_echo "none" >&6; }
  4999. fi
  5000. max_cmd_len=$lt_cv_sys_max_cmd_len
  5001. : ${CP="cp -f"}
  5002. : ${MV="mv -f"}
  5003. : ${RM="rm -f"}
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5005. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5006. # Try some XSI features
  5007. xsi_shell=no
  5008. ( _lt_dummy="a/b/c"
  5009. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5010. = c,a/b,b/c, \
  5011. && eval 'test $(( 1 + 1 )) -eq 2 \
  5012. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5013. && xsi_shell=yes
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5015. $as_echo "$xsi_shell" >&6; }
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5017. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5018. lt_shell_append=no
  5019. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5020. >/dev/null 2>&1 \
  5021. && lt_shell_append=yes
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5023. $as_echo "$lt_shell_append" >&6; }
  5024. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5025. lt_unset=unset
  5026. else
  5027. lt_unset=false
  5028. fi
  5029. # test EBCDIC or ASCII
  5030. case `echo X|tr X '\101'` in
  5031. A) # ASCII based system
  5032. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5033. lt_SP2NL='tr \040 \012'
  5034. lt_NL2SP='tr \015\012 \040\040'
  5035. ;;
  5036. *) # EBCDIC based system
  5037. lt_SP2NL='tr \100 \n'
  5038. lt_NL2SP='tr \r\n \100\100'
  5039. ;;
  5040. esac
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5042. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5043. if ${lt_cv_to_host_file_cmd+:} false; then :
  5044. $as_echo_n "(cached) " >&6
  5045. else
  5046. case $host in
  5047. *-*-mingw* )
  5048. case $build in
  5049. *-*-mingw* ) # actually msys
  5050. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5051. ;;
  5052. *-*-cygwin* )
  5053. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5054. ;;
  5055. * ) # otherwise, assume *nix
  5056. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5057. ;;
  5058. esac
  5059. ;;
  5060. *-*-cygwin* )
  5061. case $build in
  5062. *-*-mingw* ) # actually msys
  5063. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5064. ;;
  5065. *-*-cygwin* )
  5066. lt_cv_to_host_file_cmd=func_convert_file_noop
  5067. ;;
  5068. * ) # otherwise, assume *nix
  5069. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5070. ;;
  5071. esac
  5072. ;;
  5073. * ) # unhandled hosts (and "normal" native builds)
  5074. lt_cv_to_host_file_cmd=func_convert_file_noop
  5075. ;;
  5076. esac
  5077. fi
  5078. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5080. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5082. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5083. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5084. $as_echo_n "(cached) " >&6
  5085. else
  5086. #assume ordinary cross tools, or native build.
  5087. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5088. case $host in
  5089. *-*-mingw* )
  5090. case $build in
  5091. *-*-mingw* ) # actually msys
  5092. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5093. ;;
  5094. esac
  5095. ;;
  5096. esac
  5097. fi
  5098. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5100. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5102. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5103. if ${lt_cv_ld_reload_flag+:} false; then :
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. lt_cv_ld_reload_flag='-r'
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5109. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5110. reload_flag=$lt_cv_ld_reload_flag
  5111. case $reload_flag in
  5112. "" | " "*) ;;
  5113. *) reload_flag=" $reload_flag" ;;
  5114. esac
  5115. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5116. case $host_os in
  5117. cygwin* | mingw* | pw32* | cegcc*)
  5118. if test "$GCC" != yes; then
  5119. reload_cmds=false
  5120. fi
  5121. ;;
  5122. darwin*)
  5123. if test "$GCC" = yes; then
  5124. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5125. else
  5126. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5127. fi
  5128. ;;
  5129. esac
  5130. if test -n "$ac_tool_prefix"; then
  5131. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5132. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5134. $as_echo_n "checking for $ac_word... " >&6; }
  5135. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5136. $as_echo_n "(cached) " >&6
  5137. else
  5138. if test -n "$OBJDUMP"; then
  5139. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5140. else
  5141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5142. for as_dir in $PATH
  5143. do
  5144. IFS=$as_save_IFS
  5145. test -z "$as_dir" && as_dir=.
  5146. for ac_exec_ext in '' $ac_executable_extensions; do
  5147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5148. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5150. break 2
  5151. fi
  5152. done
  5153. done
  5154. IFS=$as_save_IFS
  5155. fi
  5156. fi
  5157. OBJDUMP=$ac_cv_prog_OBJDUMP
  5158. if test -n "$OBJDUMP"; then
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5160. $as_echo "$OBJDUMP" >&6; }
  5161. else
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5163. $as_echo "no" >&6; }
  5164. fi
  5165. fi
  5166. if test -z "$ac_cv_prog_OBJDUMP"; then
  5167. ac_ct_OBJDUMP=$OBJDUMP
  5168. # Extract the first word of "objdump", so it can be a program name with args.
  5169. set dummy objdump; ac_word=$2
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5171. $as_echo_n "checking for $ac_word... " >&6; }
  5172. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. if test -n "$ac_ct_OBJDUMP"; then
  5176. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5177. else
  5178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5179. for as_dir in $PATH
  5180. do
  5181. IFS=$as_save_IFS
  5182. test -z "$as_dir" && as_dir=.
  5183. for ac_exec_ext in '' $ac_executable_extensions; do
  5184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5185. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5187. break 2
  5188. fi
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. fi
  5193. fi
  5194. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5195. if test -n "$ac_ct_OBJDUMP"; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5197. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5200. $as_echo "no" >&6; }
  5201. fi
  5202. if test "x$ac_ct_OBJDUMP" = x; then
  5203. OBJDUMP="false"
  5204. else
  5205. case $cross_compiling:$ac_tool_warned in
  5206. yes:)
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5209. ac_tool_warned=yes ;;
  5210. esac
  5211. OBJDUMP=$ac_ct_OBJDUMP
  5212. fi
  5213. else
  5214. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5215. fi
  5216. test -z "$OBJDUMP" && OBJDUMP=objdump
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5218. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5219. if ${lt_cv_deplibs_check_method+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5223. lt_cv_file_magic_test_file=
  5224. lt_cv_deplibs_check_method='unknown'
  5225. # Need to set the preceding variable on all platforms that support
  5226. # interlibrary dependencies.
  5227. # 'none' -- dependencies not supported.
  5228. # `unknown' -- same as none, but documents that we really don't know.
  5229. # 'pass_all' -- all dependencies passed with no checks.
  5230. # 'test_compile' -- check by making test program.
  5231. # 'file_magic [[regex]]' -- check by looking for files in library path
  5232. # which responds to the $file_magic_cmd with a given extended regex.
  5233. # If you have `file' or equivalent on your system and you're not sure
  5234. # whether `pass_all' will *always* work, you probably want this one.
  5235. case $host_os in
  5236. aix[4-9]*)
  5237. lt_cv_deplibs_check_method=pass_all
  5238. ;;
  5239. beos*)
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. bsdi[45]*)
  5243. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5244. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5245. lt_cv_file_magic_test_file=/shlib/libc.so
  5246. ;;
  5247. cygwin*)
  5248. # func_win32_libid is a shell function defined in ltmain.sh
  5249. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5250. lt_cv_file_magic_cmd='func_win32_libid'
  5251. ;;
  5252. mingw* | pw32*)
  5253. # Base MSYS/MinGW do not provide the 'file' command needed by
  5254. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5255. # unless we find 'file', for example because we are cross-compiling.
  5256. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5257. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5258. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5259. lt_cv_file_magic_cmd='func_win32_libid'
  5260. else
  5261. # Keep this pattern in sync with the one in func_win32_libid.
  5262. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5263. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5264. fi
  5265. ;;
  5266. cegcc*)
  5267. # use the weaker test based on 'objdump'. See mingw*.
  5268. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5269. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5270. ;;
  5271. darwin* | rhapsody*)
  5272. lt_cv_deplibs_check_method=pass_all
  5273. ;;
  5274. freebsd* | dragonfly*)
  5275. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5276. case $host_cpu in
  5277. i*86 )
  5278. # Not sure whether the presence of OpenBSD here was a mistake.
  5279. # Let's accept both of them until this is cleared up.
  5280. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5281. lt_cv_file_magic_cmd=/usr/bin/file
  5282. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5283. ;;
  5284. esac
  5285. else
  5286. lt_cv_deplibs_check_method=pass_all
  5287. fi
  5288. ;;
  5289. gnu*)
  5290. lt_cv_deplibs_check_method=pass_all
  5291. ;;
  5292. haiku*)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. hpux10.20* | hpux11*)
  5296. lt_cv_file_magic_cmd=/usr/bin/file
  5297. case $host_cpu in
  5298. ia64*)
  5299. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5300. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5301. ;;
  5302. hppa*64*)
  5303. 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]'
  5304. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5305. ;;
  5306. *)
  5307. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5308. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5309. ;;
  5310. esac
  5311. ;;
  5312. interix[3-9]*)
  5313. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5314. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5315. ;;
  5316. irix5* | irix6* | nonstopux*)
  5317. case $LD in
  5318. *-32|*"-32 ") libmagic=32-bit;;
  5319. *-n32|*"-n32 ") libmagic=N32;;
  5320. *-64|*"-64 ") libmagic=64-bit;;
  5321. *) libmagic=never-match;;
  5322. esac
  5323. lt_cv_deplibs_check_method=pass_all
  5324. ;;
  5325. # This must be glibc/ELF.
  5326. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. netbsd*)
  5330. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5331. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5332. else
  5333. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5334. fi
  5335. ;;
  5336. newos6*)
  5337. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5338. lt_cv_file_magic_cmd=/usr/bin/file
  5339. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5340. ;;
  5341. *nto* | *qnx*)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. openbsd*)
  5345. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5346. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5347. else
  5348. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5349. fi
  5350. ;;
  5351. osf3* | osf4* | osf5*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. rdos*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. solaris*)
  5358. lt_cv_deplibs_check_method=pass_all
  5359. ;;
  5360. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5361. lt_cv_deplibs_check_method=pass_all
  5362. ;;
  5363. sysv4 | sysv4.3*)
  5364. case $host_vendor in
  5365. motorola)
  5366. 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]'
  5367. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5368. ;;
  5369. ncr)
  5370. lt_cv_deplibs_check_method=pass_all
  5371. ;;
  5372. sequent)
  5373. lt_cv_file_magic_cmd='/bin/file'
  5374. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5375. ;;
  5376. sni)
  5377. lt_cv_file_magic_cmd='/bin/file'
  5378. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5379. lt_cv_file_magic_test_file=/lib/libc.so
  5380. ;;
  5381. siemens)
  5382. lt_cv_deplibs_check_method=pass_all
  5383. ;;
  5384. pc)
  5385. lt_cv_deplibs_check_method=pass_all
  5386. ;;
  5387. esac
  5388. ;;
  5389. tpf*)
  5390. lt_cv_deplibs_check_method=pass_all
  5391. ;;
  5392. esac
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5395. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5396. file_magic_glob=
  5397. want_nocaseglob=no
  5398. if test "$build" = "$host"; then
  5399. case $host_os in
  5400. mingw* | pw32*)
  5401. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5402. want_nocaseglob=yes
  5403. else
  5404. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5405. fi
  5406. ;;
  5407. esac
  5408. fi
  5409. file_magic_cmd=$lt_cv_file_magic_cmd
  5410. deplibs_check_method=$lt_cv_deplibs_check_method
  5411. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5412. if test -n "$ac_tool_prefix"; then
  5413. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5414. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5416. $as_echo_n "checking for $ac_word... " >&6; }
  5417. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. if test -n "$DLLTOOL"; then
  5421. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5422. else
  5423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5424. for as_dir in $PATH
  5425. do
  5426. IFS=$as_save_IFS
  5427. test -z "$as_dir" && as_dir=.
  5428. for ac_exec_ext in '' $ac_executable_extensions; do
  5429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5430. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5432. break 2
  5433. fi
  5434. done
  5435. done
  5436. IFS=$as_save_IFS
  5437. fi
  5438. fi
  5439. DLLTOOL=$ac_cv_prog_DLLTOOL
  5440. if test -n "$DLLTOOL"; then
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5442. $as_echo "$DLLTOOL" >&6; }
  5443. else
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5445. $as_echo "no" >&6; }
  5446. fi
  5447. fi
  5448. if test -z "$ac_cv_prog_DLLTOOL"; then
  5449. ac_ct_DLLTOOL=$DLLTOOL
  5450. # Extract the first word of "dlltool", so it can be a program name with args.
  5451. set dummy dlltool; ac_word=$2
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. $as_echo_n "checking for $ac_word... " >&6; }
  5454. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. if test -n "$ac_ct_DLLTOOL"; then
  5458. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. test -z "$as_dir" && as_dir=.
  5465. for ac_exec_ext in '' $ac_executable_extensions; do
  5466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5467. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5469. break 2
  5470. fi
  5471. done
  5472. done
  5473. IFS=$as_save_IFS
  5474. fi
  5475. fi
  5476. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5477. if test -n "$ac_ct_DLLTOOL"; then
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5479. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5480. else
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5482. $as_echo "no" >&6; }
  5483. fi
  5484. if test "x$ac_ct_DLLTOOL" = x; then
  5485. DLLTOOL="false"
  5486. else
  5487. case $cross_compiling:$ac_tool_warned in
  5488. yes:)
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5490. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5491. ac_tool_warned=yes ;;
  5492. esac
  5493. DLLTOOL=$ac_ct_DLLTOOL
  5494. fi
  5495. else
  5496. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5497. fi
  5498. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5500. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5501. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5505. case $host_os in
  5506. cygwin* | mingw* | pw32* | cegcc*)
  5507. # two different shell functions defined in ltmain.sh
  5508. # decide which to use based on capabilities of $DLLTOOL
  5509. case `$DLLTOOL --help 2>&1` in
  5510. *--identify-strict*)
  5511. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5512. ;;
  5513. *)
  5514. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5515. ;;
  5516. esac
  5517. ;;
  5518. *)
  5519. # fallback: assume linklib IS sharedlib
  5520. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5521. ;;
  5522. esac
  5523. fi
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5525. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5526. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5527. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5528. if test -n "$ac_tool_prefix"; then
  5529. for ac_prog in ar
  5530. do
  5531. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5532. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_AR+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$AR"; then
  5539. ac_cv_prog_AR="$AR" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. AR=$ac_cv_prog_AR
  5558. if test -n "$AR"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5560. $as_echo "$AR" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. test -n "$AR" && break
  5566. done
  5567. fi
  5568. if test -z "$AR"; then
  5569. ac_ct_AR=$AR
  5570. for ac_prog in ar
  5571. do
  5572. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5573. set dummy $ac_prog; 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_AR+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if test -n "$ac_ct_AR"; then
  5580. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$ac_prog"
  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_AR=$ac_cv_prog_ac_ct_AR
  5599. if test -n "$ac_ct_AR"; then
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5601. $as_echo "$ac_ct_AR" >&6; }
  5602. else
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5604. $as_echo "no" >&6; }
  5605. fi
  5606. test -n "$ac_ct_AR" && break
  5607. done
  5608. if test "x$ac_ct_AR" = x; then
  5609. AR="false"
  5610. else
  5611. case $cross_compiling:$ac_tool_warned in
  5612. yes:)
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5615. ac_tool_warned=yes ;;
  5616. esac
  5617. AR=$ac_ct_AR
  5618. fi
  5619. fi
  5620. : ${AR=ar}
  5621. : ${AR_FLAGS=cru}
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5623. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5624. if ${lt_cv_ar_at_file+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. lt_cv_ar_at_file=no
  5628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5629. /* end confdefs.h. */
  5630. int
  5631. main ()
  5632. {
  5633. ;
  5634. return 0;
  5635. }
  5636. _ACEOF
  5637. if ac_fn_c_try_compile "$LINENO"; then :
  5638. echo conftest.$ac_objext > conftest.lst
  5639. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5640. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5641. (eval $lt_ar_try) 2>&5
  5642. ac_status=$?
  5643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5644. test $ac_status = 0; }
  5645. if test "$ac_status" -eq 0; then
  5646. # Ensure the archiver fails upon bogus file names.
  5647. rm -f conftest.$ac_objext libconftest.a
  5648. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5649. (eval $lt_ar_try) 2>&5
  5650. ac_status=$?
  5651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5652. test $ac_status = 0; }
  5653. if test "$ac_status" -ne 0; then
  5654. lt_cv_ar_at_file=@
  5655. fi
  5656. fi
  5657. rm -f conftest.* libconftest.a
  5658. fi
  5659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5660. fi
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5662. $as_echo "$lt_cv_ar_at_file" >&6; }
  5663. if test "x$lt_cv_ar_at_file" = xno; then
  5664. archiver_list_spec=
  5665. else
  5666. archiver_list_spec=$lt_cv_ar_at_file
  5667. fi
  5668. if test -n "$ac_tool_prefix"; then
  5669. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5670. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5672. $as_echo_n "checking for $ac_word... " >&6; }
  5673. if ${ac_cv_prog_STRIP+:} false; then :
  5674. $as_echo_n "(cached) " >&6
  5675. else
  5676. if test -n "$STRIP"; then
  5677. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. test -z "$as_dir" && as_dir=.
  5684. for ac_exec_ext in '' $ac_executable_extensions; do
  5685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5686. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5688. break 2
  5689. fi
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. fi
  5694. fi
  5695. STRIP=$ac_cv_prog_STRIP
  5696. if test -n "$STRIP"; then
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5698. $as_echo "$STRIP" >&6; }
  5699. else
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5701. $as_echo "no" >&6; }
  5702. fi
  5703. fi
  5704. if test -z "$ac_cv_prog_STRIP"; then
  5705. ac_ct_STRIP=$STRIP
  5706. # Extract the first word of "strip", so it can be a program name with args.
  5707. set dummy strip; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$ac_ct_STRIP"; then
  5714. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_ac_ct_STRIP="strip"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5733. if test -n "$ac_ct_STRIP"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5735. $as_echo "$ac_ct_STRIP" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. if test "x$ac_ct_STRIP" = x; then
  5741. STRIP=":"
  5742. else
  5743. case $cross_compiling:$ac_tool_warned in
  5744. yes:)
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5747. ac_tool_warned=yes ;;
  5748. esac
  5749. STRIP=$ac_ct_STRIP
  5750. fi
  5751. else
  5752. STRIP="$ac_cv_prog_STRIP"
  5753. fi
  5754. test -z "$STRIP" && STRIP=:
  5755. if test -n "$ac_tool_prefix"; then
  5756. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5757. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_RANLIB+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$RANLIB"; then
  5764. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. RANLIB=$ac_cv_prog_RANLIB
  5783. if test -n "$RANLIB"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5785. $as_echo "$RANLIB" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. fi
  5791. if test -z "$ac_cv_prog_RANLIB"; then
  5792. ac_ct_RANLIB=$RANLIB
  5793. # Extract the first word of "ranlib", so it can be a program name with args.
  5794. set dummy ranlib; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$ac_ct_RANLIB"; then
  5801. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5820. if test -n "$ac_ct_RANLIB"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5822. $as_echo "$ac_ct_RANLIB" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. if test "x$ac_ct_RANLIB" = x; then
  5828. RANLIB=":"
  5829. else
  5830. case $cross_compiling:$ac_tool_warned in
  5831. yes:)
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5834. ac_tool_warned=yes ;;
  5835. esac
  5836. RANLIB=$ac_ct_RANLIB
  5837. fi
  5838. else
  5839. RANLIB="$ac_cv_prog_RANLIB"
  5840. fi
  5841. test -z "$RANLIB" && RANLIB=:
  5842. # Determine commands to create old-style static archives.
  5843. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5844. old_postinstall_cmds='chmod 644 $oldlib'
  5845. old_postuninstall_cmds=
  5846. if test -n "$RANLIB"; then
  5847. case $host_os in
  5848. openbsd*)
  5849. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5850. ;;
  5851. *)
  5852. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5853. ;;
  5854. esac
  5855. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5856. fi
  5857. case $host_os in
  5858. darwin*)
  5859. lock_old_archive_extraction=yes ;;
  5860. *)
  5861. lock_old_archive_extraction=no ;;
  5862. esac
  5863. # If no C compiler was specified, use CC.
  5864. LTCC=${LTCC-"$CC"}
  5865. # If no C compiler flags were specified, use CFLAGS.
  5866. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5867. # Allow CC to be a program name with arguments.
  5868. compiler=$CC
  5869. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5871. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5872. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. # These are sane defaults that work on at least a few old systems.
  5876. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5877. # Character class describing NM global symbol codes.
  5878. symcode='[BCDEGRST]'
  5879. # Regexp to match symbols that can be accessed directly from C.
  5880. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5881. # Define system-specific variables.
  5882. case $host_os in
  5883. aix*)
  5884. symcode='[BCDT]'
  5885. ;;
  5886. cygwin* | mingw* | pw32* | cegcc*)
  5887. symcode='[ABCDGISTW]'
  5888. ;;
  5889. hpux*)
  5890. if test "$host_cpu" = ia64; then
  5891. symcode='[ABCDEGRST]'
  5892. fi
  5893. ;;
  5894. irix* | nonstopux*)
  5895. symcode='[BCDEGRST]'
  5896. ;;
  5897. osf*)
  5898. symcode='[BCDEGQRST]'
  5899. ;;
  5900. solaris*)
  5901. symcode='[BDRT]'
  5902. ;;
  5903. sco3.2v5*)
  5904. symcode='[DT]'
  5905. ;;
  5906. sysv4.2uw2*)
  5907. symcode='[DT]'
  5908. ;;
  5909. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5910. symcode='[ABDT]'
  5911. ;;
  5912. sysv4)
  5913. symcode='[DFNSTU]'
  5914. ;;
  5915. esac
  5916. # If we're using GNU nm, then use its standard symbol codes.
  5917. case `$NM -V 2>&1` in
  5918. *GNU* | *'with BFD'*)
  5919. symcode='[ABCDGIRSTW]' ;;
  5920. esac
  5921. # Transform an extracted symbol line into a proper C declaration.
  5922. # Some systems (esp. on ia64) link data and code symbols differently,
  5923. # so use this general approach.
  5924. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5925. # Transform an extracted symbol line into symbol name and symbol address
  5926. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5927. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5928. # Handle CRLF in mingw tool chain
  5929. opt_cr=
  5930. case $build_os in
  5931. mingw*)
  5932. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5933. ;;
  5934. esac
  5935. # Try without a prefix underscore, then with it.
  5936. for ac_symprfx in "" "_"; do
  5937. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5938. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5939. # Write the raw and C identifiers.
  5940. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5941. # Fake it for dumpbin and say T for any non-static function
  5942. # and D for any global variable.
  5943. # Also find C++ and __fastcall symbols from MSVC++,
  5944. # which start with @ or ?.
  5945. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5946. " {last_section=section; section=\$ 3};"\
  5947. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5948. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5949. " \$ 0!~/External *\|/{next};"\
  5950. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5951. " {if(hide[section]) next};"\
  5952. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5953. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5954. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5955. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5956. " ' prfx=^$ac_symprfx"
  5957. else
  5958. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5959. fi
  5960. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5961. # Check to see that the pipe works correctly.
  5962. pipe_works=no
  5963. rm -f conftest*
  5964. cat > conftest.$ac_ext <<_LT_EOF
  5965. #ifdef __cplusplus
  5966. extern "C" {
  5967. #endif
  5968. char nm_test_var;
  5969. void nm_test_func(void);
  5970. void nm_test_func(void){}
  5971. #ifdef __cplusplus
  5972. }
  5973. #endif
  5974. int main(){nm_test_var='a';nm_test_func();return(0);}
  5975. _LT_EOF
  5976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5977. (eval $ac_compile) 2>&5
  5978. ac_status=$?
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5980. test $ac_status = 0; }; then
  5981. # Now try to grab the symbols.
  5982. nlist=conftest.nm
  5983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5984. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; } && test -s "$nlist"; then
  5988. # Try sorting and uniquifying the output.
  5989. if sort "$nlist" | uniq > "$nlist"T; then
  5990. mv -f "$nlist"T "$nlist"
  5991. else
  5992. rm -f "$nlist"T
  5993. fi
  5994. # Make sure that we snagged all the symbols we need.
  5995. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5996. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5997. cat <<_LT_EOF > conftest.$ac_ext
  5998. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5999. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6000. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6001. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6002. # define LT_DLSYM_CONST
  6003. #elif defined(__osf__)
  6004. /* This system does not cope well with relocations in const data. */
  6005. # define LT_DLSYM_CONST
  6006. #else
  6007. # define LT_DLSYM_CONST const
  6008. #endif
  6009. #ifdef __cplusplus
  6010. extern "C" {
  6011. #endif
  6012. _LT_EOF
  6013. # Now generate the symbol file.
  6014. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6015. cat <<_LT_EOF >> conftest.$ac_ext
  6016. /* The mapping between symbol names and symbols. */
  6017. LT_DLSYM_CONST struct {
  6018. const char *name;
  6019. void *address;
  6020. }
  6021. lt__PROGRAM__LTX_preloaded_symbols[] =
  6022. {
  6023. { "@PROGRAM@", (void *) 0 },
  6024. _LT_EOF
  6025. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6026. cat <<\_LT_EOF >> conftest.$ac_ext
  6027. {0, (void *) 0}
  6028. };
  6029. /* This works around a problem in FreeBSD linker */
  6030. #ifdef FREEBSD_WORKAROUND
  6031. static const void *lt_preloaded_setup() {
  6032. return lt__PROGRAM__LTX_preloaded_symbols;
  6033. }
  6034. #endif
  6035. #ifdef __cplusplus
  6036. }
  6037. #endif
  6038. _LT_EOF
  6039. # Now try linking the two files.
  6040. mv conftest.$ac_objext conftstm.$ac_objext
  6041. lt_globsym_save_LIBS=$LIBS
  6042. lt_globsym_save_CFLAGS=$CFLAGS
  6043. LIBS="conftstm.$ac_objext"
  6044. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6045. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6046. (eval $ac_link) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6050. pipe_works=yes
  6051. fi
  6052. LIBS=$lt_globsym_save_LIBS
  6053. CFLAGS=$lt_globsym_save_CFLAGS
  6054. else
  6055. echo "cannot find nm_test_func in $nlist" >&5
  6056. fi
  6057. else
  6058. echo "cannot find nm_test_var in $nlist" >&5
  6059. fi
  6060. else
  6061. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6062. fi
  6063. else
  6064. echo "$progname: failed program was:" >&5
  6065. cat conftest.$ac_ext >&5
  6066. fi
  6067. rm -rf conftest* conftst*
  6068. # Do not use the global_symbol_pipe unless it works.
  6069. if test "$pipe_works" = yes; then
  6070. break
  6071. else
  6072. lt_cv_sys_global_symbol_pipe=
  6073. fi
  6074. done
  6075. fi
  6076. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6077. lt_cv_sys_global_symbol_to_cdecl=
  6078. fi
  6079. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6081. $as_echo "failed" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6084. $as_echo "ok" >&6; }
  6085. fi
  6086. # Response file support.
  6087. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6088. nm_file_list_spec='@'
  6089. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6090. nm_file_list_spec='@'
  6091. fi
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6093. $as_echo_n "checking for sysroot... " >&6; }
  6094. # Check whether --with-sysroot was given.
  6095. if test "${with_sysroot+set}" = set; then :
  6096. withval=$with_sysroot;
  6097. else
  6098. with_sysroot=no
  6099. fi
  6100. lt_sysroot=
  6101. case ${with_sysroot} in #(
  6102. yes)
  6103. if test "$GCC" = yes; then
  6104. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6105. fi
  6106. ;; #(
  6107. /*)
  6108. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6109. ;; #(
  6110. no|'')
  6111. ;; #(
  6112. *)
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6114. $as_echo "${with_sysroot}" >&6; }
  6115. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6116. ;;
  6117. esac
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6119. $as_echo "${lt_sysroot:-no}" >&6; }
  6120. # Check whether --enable-libtool-lock was given.
  6121. if test "${enable_libtool_lock+set}" = set; then :
  6122. enableval=$enable_libtool_lock;
  6123. fi
  6124. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6125. # Some flags need to be propagated to the compiler or linker for good
  6126. # libtool support.
  6127. case $host in
  6128. ia64-*-hpux*)
  6129. # Find out which ABI we are using.
  6130. echo 'int i;' > conftest.$ac_ext
  6131. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6132. (eval $ac_compile) 2>&5
  6133. ac_status=$?
  6134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6135. test $ac_status = 0; }; then
  6136. case `/usr/bin/file conftest.$ac_objext` in
  6137. *ELF-32*)
  6138. HPUX_IA64_MODE="32"
  6139. ;;
  6140. *ELF-64*)
  6141. HPUX_IA64_MODE="64"
  6142. ;;
  6143. esac
  6144. fi
  6145. rm -rf conftest*
  6146. ;;
  6147. *-*-irix6*)
  6148. # Find out which ABI we are using.
  6149. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6150. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6151. (eval $ac_compile) 2>&5
  6152. ac_status=$?
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6154. test $ac_status = 0; }; then
  6155. if test "$lt_cv_prog_gnu_ld" = yes; then
  6156. case `/usr/bin/file conftest.$ac_objext` in
  6157. *32-bit*)
  6158. LD="${LD-ld} -melf32bsmip"
  6159. ;;
  6160. *N32*)
  6161. LD="${LD-ld} -melf32bmipn32"
  6162. ;;
  6163. *64-bit*)
  6164. LD="${LD-ld} -melf64bmip"
  6165. ;;
  6166. esac
  6167. else
  6168. case `/usr/bin/file conftest.$ac_objext` in
  6169. *32-bit*)
  6170. LD="${LD-ld} -32"
  6171. ;;
  6172. *N32*)
  6173. LD="${LD-ld} -n32"
  6174. ;;
  6175. *64-bit*)
  6176. LD="${LD-ld} -64"
  6177. ;;
  6178. esac
  6179. fi
  6180. fi
  6181. rm -rf conftest*
  6182. ;;
  6183. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6184. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6185. # Find out which ABI we are using.
  6186. echo 'int i;' > conftest.$ac_ext
  6187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6188. (eval $ac_compile) 2>&5
  6189. ac_status=$?
  6190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6191. test $ac_status = 0; }; then
  6192. case `/usr/bin/file conftest.o` in
  6193. *32-bit*)
  6194. case $host in
  6195. x86_64-*kfreebsd*-gnu)
  6196. LD="${LD-ld} -m elf_i386_fbsd"
  6197. ;;
  6198. x86_64-*linux*)
  6199. LD="${LD-ld} -m elf_i386"
  6200. ;;
  6201. ppc64-*linux*|powerpc64-*linux*)
  6202. LD="${LD-ld} -m elf32ppclinux"
  6203. ;;
  6204. s390x-*linux*)
  6205. LD="${LD-ld} -m elf_s390"
  6206. ;;
  6207. sparc64-*linux*)
  6208. LD="${LD-ld} -m elf32_sparc"
  6209. ;;
  6210. esac
  6211. ;;
  6212. *64-bit*)
  6213. case $host in
  6214. x86_64-*kfreebsd*-gnu)
  6215. LD="${LD-ld} -m elf_x86_64_fbsd"
  6216. ;;
  6217. x86_64-*linux*)
  6218. LD="${LD-ld} -m elf_x86_64"
  6219. ;;
  6220. ppc*-*linux*|powerpc*-*linux*)
  6221. LD="${LD-ld} -m elf64ppc"
  6222. ;;
  6223. s390*-*linux*|s390*-*tpf*)
  6224. LD="${LD-ld} -m elf64_s390"
  6225. ;;
  6226. sparc*-*linux*)
  6227. LD="${LD-ld} -m elf64_sparc"
  6228. ;;
  6229. esac
  6230. ;;
  6231. esac
  6232. fi
  6233. rm -rf conftest*
  6234. ;;
  6235. *-*-sco3.2v5*)
  6236. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6237. SAVE_CFLAGS="$CFLAGS"
  6238. CFLAGS="$CFLAGS -belf"
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6240. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6241. if ${lt_cv_cc_needs_belf+:} false; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. ac_ext=c
  6245. ac_cpp='$CPP $CPPFLAGS'
  6246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. int
  6252. main ()
  6253. {
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. if ac_fn_c_try_link "$LINENO"; then :
  6259. lt_cv_cc_needs_belf=yes
  6260. else
  6261. lt_cv_cc_needs_belf=no
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext \
  6264. conftest$ac_exeext conftest.$ac_ext
  6265. ac_ext=c
  6266. ac_cpp='$CPP $CPPFLAGS'
  6267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6270. fi
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6272. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6273. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6274. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6275. CFLAGS="$SAVE_CFLAGS"
  6276. fi
  6277. ;;
  6278. *-*solaris*)
  6279. # Find out which ABI we are using.
  6280. echo 'int i;' > conftest.$ac_ext
  6281. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6282. (eval $ac_compile) 2>&5
  6283. ac_status=$?
  6284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6285. test $ac_status = 0; }; then
  6286. case `/usr/bin/file conftest.o` in
  6287. *64-bit*)
  6288. case $lt_cv_prog_gnu_ld in
  6289. yes*)
  6290. case $host in
  6291. i?86-*-solaris*)
  6292. LD="${LD-ld} -m elf_x86_64"
  6293. ;;
  6294. sparc*-*-solaris*)
  6295. LD="${LD-ld} -m elf64_sparc"
  6296. ;;
  6297. esac
  6298. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6299. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6300. LD="${LD-ld}_sol2"
  6301. fi
  6302. ;;
  6303. *)
  6304. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6305. LD="${LD-ld} -64"
  6306. fi
  6307. ;;
  6308. esac
  6309. ;;
  6310. esac
  6311. fi
  6312. rm -rf conftest*
  6313. ;;
  6314. esac
  6315. need_locks="$enable_libtool_lock"
  6316. if test -n "$ac_tool_prefix"; then
  6317. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6318. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6320. $as_echo_n "checking for $ac_word... " >&6; }
  6321. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. if test -n "$MANIFEST_TOOL"; then
  6325. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6326. else
  6327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6328. for as_dir in $PATH
  6329. do
  6330. IFS=$as_save_IFS
  6331. test -z "$as_dir" && as_dir=.
  6332. for ac_exec_ext in '' $ac_executable_extensions; do
  6333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6334. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6336. break 2
  6337. fi
  6338. done
  6339. done
  6340. IFS=$as_save_IFS
  6341. fi
  6342. fi
  6343. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6344. if test -n "$MANIFEST_TOOL"; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6346. $as_echo "$MANIFEST_TOOL" >&6; }
  6347. else
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6349. $as_echo "no" >&6; }
  6350. fi
  6351. fi
  6352. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6353. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6354. # Extract the first word of "mt", so it can be a program name with args.
  6355. set dummy mt; ac_word=$2
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6357. $as_echo_n "checking for $ac_word... " >&6; }
  6358. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6359. $as_echo_n "(cached) " >&6
  6360. else
  6361. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6362. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6363. else
  6364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6365. for as_dir in $PATH
  6366. do
  6367. IFS=$as_save_IFS
  6368. test -z "$as_dir" && as_dir=.
  6369. for ac_exec_ext in '' $ac_executable_extensions; do
  6370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6371. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6373. break 2
  6374. fi
  6375. done
  6376. done
  6377. IFS=$as_save_IFS
  6378. fi
  6379. fi
  6380. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6381. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6383. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6384. else
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6386. $as_echo "no" >&6; }
  6387. fi
  6388. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6389. MANIFEST_TOOL=":"
  6390. else
  6391. case $cross_compiling:$ac_tool_warned in
  6392. yes:)
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6395. ac_tool_warned=yes ;;
  6396. esac
  6397. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6398. fi
  6399. else
  6400. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6401. fi
  6402. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6404. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6405. if ${lt_cv_path_mainfest_tool+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. lt_cv_path_mainfest_tool=no
  6409. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6410. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6411. cat conftest.err >&5
  6412. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6413. lt_cv_path_mainfest_tool=yes
  6414. fi
  6415. rm -f conftest*
  6416. fi
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6418. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6419. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6420. MANIFEST_TOOL=:
  6421. fi
  6422. case $host_os in
  6423. rhapsody* | darwin*)
  6424. if test -n "$ac_tool_prefix"; then
  6425. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6426. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6428. $as_echo_n "checking for $ac_word... " >&6; }
  6429. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6430. $as_echo_n "(cached) " >&6
  6431. else
  6432. if test -n "$DSYMUTIL"; then
  6433. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6434. else
  6435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6436. for as_dir in $PATH
  6437. do
  6438. IFS=$as_save_IFS
  6439. test -z "$as_dir" && as_dir=.
  6440. for ac_exec_ext in '' $ac_executable_extensions; do
  6441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6442. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6444. break 2
  6445. fi
  6446. done
  6447. done
  6448. IFS=$as_save_IFS
  6449. fi
  6450. fi
  6451. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6452. if test -n "$DSYMUTIL"; then
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6454. $as_echo "$DSYMUTIL" >&6; }
  6455. else
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6457. $as_echo "no" >&6; }
  6458. fi
  6459. fi
  6460. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6461. ac_ct_DSYMUTIL=$DSYMUTIL
  6462. # Extract the first word of "dsymutil", so it can be a program name with args.
  6463. set dummy dsymutil; ac_word=$2
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6465. $as_echo_n "checking for $ac_word... " >&6; }
  6466. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. if test -n "$ac_ct_DSYMUTIL"; then
  6470. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6471. else
  6472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6473. for as_dir in $PATH
  6474. do
  6475. IFS=$as_save_IFS
  6476. test -z "$as_dir" && as_dir=.
  6477. for ac_exec_ext in '' $ac_executable_extensions; do
  6478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6479. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6481. break 2
  6482. fi
  6483. done
  6484. done
  6485. IFS=$as_save_IFS
  6486. fi
  6487. fi
  6488. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6489. if test -n "$ac_ct_DSYMUTIL"; then
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6491. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6492. else
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494. $as_echo "no" >&6; }
  6495. fi
  6496. if test "x$ac_ct_DSYMUTIL" = x; then
  6497. DSYMUTIL=":"
  6498. else
  6499. case $cross_compiling:$ac_tool_warned in
  6500. yes:)
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6502. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6503. ac_tool_warned=yes ;;
  6504. esac
  6505. DSYMUTIL=$ac_ct_DSYMUTIL
  6506. fi
  6507. else
  6508. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6509. fi
  6510. if test -n "$ac_tool_prefix"; then
  6511. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6512. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6514. $as_echo_n "checking for $ac_word... " >&6; }
  6515. if ${ac_cv_prog_NMEDIT+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. if test -n "$NMEDIT"; then
  6519. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6520. else
  6521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6522. for as_dir in $PATH
  6523. do
  6524. IFS=$as_save_IFS
  6525. test -z "$as_dir" && as_dir=.
  6526. for ac_exec_ext in '' $ac_executable_extensions; do
  6527. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6528. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6530. break 2
  6531. fi
  6532. done
  6533. done
  6534. IFS=$as_save_IFS
  6535. fi
  6536. fi
  6537. NMEDIT=$ac_cv_prog_NMEDIT
  6538. if test -n "$NMEDIT"; then
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6540. $as_echo "$NMEDIT" >&6; }
  6541. else
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6543. $as_echo "no" >&6; }
  6544. fi
  6545. fi
  6546. if test -z "$ac_cv_prog_NMEDIT"; then
  6547. ac_ct_NMEDIT=$NMEDIT
  6548. # Extract the first word of "nmedit", so it can be a program name with args.
  6549. set dummy nmedit; ac_word=$2
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. $as_echo_n "checking for $ac_word... " >&6; }
  6552. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. if test -n "$ac_ct_NMEDIT"; then
  6556. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6557. else
  6558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6559. for as_dir in $PATH
  6560. do
  6561. IFS=$as_save_IFS
  6562. test -z "$as_dir" && as_dir=.
  6563. for ac_exec_ext in '' $ac_executable_extensions; do
  6564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6565. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6567. break 2
  6568. fi
  6569. done
  6570. done
  6571. IFS=$as_save_IFS
  6572. fi
  6573. fi
  6574. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6575. if test -n "$ac_ct_NMEDIT"; then
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6577. $as_echo "$ac_ct_NMEDIT" >&6; }
  6578. else
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6580. $as_echo "no" >&6; }
  6581. fi
  6582. if test "x$ac_ct_NMEDIT" = x; then
  6583. NMEDIT=":"
  6584. else
  6585. case $cross_compiling:$ac_tool_warned in
  6586. yes:)
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6588. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6589. ac_tool_warned=yes ;;
  6590. esac
  6591. NMEDIT=$ac_ct_NMEDIT
  6592. fi
  6593. else
  6594. NMEDIT="$ac_cv_prog_NMEDIT"
  6595. fi
  6596. if test -n "$ac_tool_prefix"; then
  6597. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6598. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6600. $as_echo_n "checking for $ac_word... " >&6; }
  6601. if ${ac_cv_prog_LIPO+:} false; then :
  6602. $as_echo_n "(cached) " >&6
  6603. else
  6604. if test -n "$LIPO"; then
  6605. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6606. else
  6607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6608. for as_dir in $PATH
  6609. do
  6610. IFS=$as_save_IFS
  6611. test -z "$as_dir" && as_dir=.
  6612. for ac_exec_ext in '' $ac_executable_extensions; do
  6613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6614. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6616. break 2
  6617. fi
  6618. done
  6619. done
  6620. IFS=$as_save_IFS
  6621. fi
  6622. fi
  6623. LIPO=$ac_cv_prog_LIPO
  6624. if test -n "$LIPO"; then
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6626. $as_echo "$LIPO" >&6; }
  6627. else
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6629. $as_echo "no" >&6; }
  6630. fi
  6631. fi
  6632. if test -z "$ac_cv_prog_LIPO"; then
  6633. ac_ct_LIPO=$LIPO
  6634. # Extract the first word of "lipo", so it can be a program name with args.
  6635. set dummy lipo; ac_word=$2
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6637. $as_echo_n "checking for $ac_word... " >&6; }
  6638. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6639. $as_echo_n "(cached) " >&6
  6640. else
  6641. if test -n "$ac_ct_LIPO"; then
  6642. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6643. else
  6644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6645. for as_dir in $PATH
  6646. do
  6647. IFS=$as_save_IFS
  6648. test -z "$as_dir" && as_dir=.
  6649. for ac_exec_ext in '' $ac_executable_extensions; do
  6650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6651. ac_cv_prog_ac_ct_LIPO="lipo"
  6652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6653. break 2
  6654. fi
  6655. done
  6656. done
  6657. IFS=$as_save_IFS
  6658. fi
  6659. fi
  6660. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6661. if test -n "$ac_ct_LIPO"; then
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6663. $as_echo "$ac_ct_LIPO" >&6; }
  6664. else
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6666. $as_echo "no" >&6; }
  6667. fi
  6668. if test "x$ac_ct_LIPO" = x; then
  6669. LIPO=":"
  6670. else
  6671. case $cross_compiling:$ac_tool_warned in
  6672. yes:)
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6675. ac_tool_warned=yes ;;
  6676. esac
  6677. LIPO=$ac_ct_LIPO
  6678. fi
  6679. else
  6680. LIPO="$ac_cv_prog_LIPO"
  6681. fi
  6682. if test -n "$ac_tool_prefix"; then
  6683. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6684. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6686. $as_echo_n "checking for $ac_word... " >&6; }
  6687. if ${ac_cv_prog_OTOOL+:} false; then :
  6688. $as_echo_n "(cached) " >&6
  6689. else
  6690. if test -n "$OTOOL"; then
  6691. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6692. else
  6693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6694. for as_dir in $PATH
  6695. do
  6696. IFS=$as_save_IFS
  6697. test -z "$as_dir" && as_dir=.
  6698. for ac_exec_ext in '' $ac_executable_extensions; do
  6699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6700. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6702. break 2
  6703. fi
  6704. done
  6705. done
  6706. IFS=$as_save_IFS
  6707. fi
  6708. fi
  6709. OTOOL=$ac_cv_prog_OTOOL
  6710. if test -n "$OTOOL"; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6712. $as_echo "$OTOOL" >&6; }
  6713. else
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6715. $as_echo "no" >&6; }
  6716. fi
  6717. fi
  6718. if test -z "$ac_cv_prog_OTOOL"; then
  6719. ac_ct_OTOOL=$OTOOL
  6720. # Extract the first word of "otool", so it can be a program name with args.
  6721. set dummy otool; ac_word=$2
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6723. $as_echo_n "checking for $ac_word... " >&6; }
  6724. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. if test -n "$ac_ct_OTOOL"; then
  6728. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6729. else
  6730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6731. for as_dir in $PATH
  6732. do
  6733. IFS=$as_save_IFS
  6734. test -z "$as_dir" && as_dir=.
  6735. for ac_exec_ext in '' $ac_executable_extensions; do
  6736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6737. ac_cv_prog_ac_ct_OTOOL="otool"
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6739. break 2
  6740. fi
  6741. done
  6742. done
  6743. IFS=$as_save_IFS
  6744. fi
  6745. fi
  6746. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6747. if test -n "$ac_ct_OTOOL"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6749. $as_echo "$ac_ct_OTOOL" >&6; }
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6752. $as_echo "no" >&6; }
  6753. fi
  6754. if test "x$ac_ct_OTOOL" = x; then
  6755. OTOOL=":"
  6756. else
  6757. case $cross_compiling:$ac_tool_warned in
  6758. yes:)
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6760. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6761. ac_tool_warned=yes ;;
  6762. esac
  6763. OTOOL=$ac_ct_OTOOL
  6764. fi
  6765. else
  6766. OTOOL="$ac_cv_prog_OTOOL"
  6767. fi
  6768. if test -n "$ac_tool_prefix"; then
  6769. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6770. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6772. $as_echo_n "checking for $ac_word... " >&6; }
  6773. if ${ac_cv_prog_OTOOL64+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. if test -n "$OTOOL64"; then
  6777. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6778. else
  6779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6780. for as_dir in $PATH
  6781. do
  6782. IFS=$as_save_IFS
  6783. test -z "$as_dir" && as_dir=.
  6784. for ac_exec_ext in '' $ac_executable_extensions; do
  6785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6786. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6788. break 2
  6789. fi
  6790. done
  6791. done
  6792. IFS=$as_save_IFS
  6793. fi
  6794. fi
  6795. OTOOL64=$ac_cv_prog_OTOOL64
  6796. if test -n "$OTOOL64"; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6798. $as_echo "$OTOOL64" >&6; }
  6799. else
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. $as_echo "no" >&6; }
  6802. fi
  6803. fi
  6804. if test -z "$ac_cv_prog_OTOOL64"; then
  6805. ac_ct_OTOOL64=$OTOOL64
  6806. # Extract the first word of "otool64", so it can be a program name with args.
  6807. set dummy otool64; ac_word=$2
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6809. $as_echo_n "checking for $ac_word... " >&6; }
  6810. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6811. $as_echo_n "(cached) " >&6
  6812. else
  6813. if test -n "$ac_ct_OTOOL64"; then
  6814. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6815. else
  6816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6817. for as_dir in $PATH
  6818. do
  6819. IFS=$as_save_IFS
  6820. test -z "$as_dir" && as_dir=.
  6821. for ac_exec_ext in '' $ac_executable_extensions; do
  6822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6823. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6825. break 2
  6826. fi
  6827. done
  6828. done
  6829. IFS=$as_save_IFS
  6830. fi
  6831. fi
  6832. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6833. if test -n "$ac_ct_OTOOL64"; then
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6835. $as_echo "$ac_ct_OTOOL64" >&6; }
  6836. else
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6838. $as_echo "no" >&6; }
  6839. fi
  6840. if test "x$ac_ct_OTOOL64" = x; then
  6841. OTOOL64=":"
  6842. else
  6843. case $cross_compiling:$ac_tool_warned in
  6844. yes:)
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6847. ac_tool_warned=yes ;;
  6848. esac
  6849. OTOOL64=$ac_ct_OTOOL64
  6850. fi
  6851. else
  6852. OTOOL64="$ac_cv_prog_OTOOL64"
  6853. fi
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6855. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6856. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. lt_cv_apple_cc_single_mod=no
  6860. if test -z "${LT_MULTI_MODULE}"; then
  6861. # By default we will add the -single_module flag. You can override
  6862. # by either setting the environment variable LT_MULTI_MODULE
  6863. # non-empty at configure time, or by adding -multi_module to the
  6864. # link flags.
  6865. rm -rf libconftest.dylib*
  6866. echo "int foo(void){return 1;}" > conftest.c
  6867. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6868. -dynamiclib -Wl,-single_module conftest.c" >&5
  6869. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6870. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6871. _lt_result=$?
  6872. # If there is a non-empty error log, and "single_module"
  6873. # appears in it, assume the flag caused a linker warning
  6874. if test -s conftest.err && $GREP single_module conftest.err; then
  6875. cat conftest.err >&5
  6876. # Otherwise, if the output was created with a 0 exit code from
  6877. # the compiler, it worked.
  6878. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6879. lt_cv_apple_cc_single_mod=yes
  6880. else
  6881. cat conftest.err >&5
  6882. fi
  6883. rm -rf libconftest.dylib*
  6884. rm -f conftest.*
  6885. fi
  6886. fi
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6888. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6890. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6891. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. lt_cv_ld_exported_symbols_list=no
  6895. save_LDFLAGS=$LDFLAGS
  6896. echo "_main" > conftest.sym
  6897. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6899. /* end confdefs.h. */
  6900. int
  6901. main ()
  6902. {
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_link "$LINENO"; then :
  6908. lt_cv_ld_exported_symbols_list=yes
  6909. else
  6910. lt_cv_ld_exported_symbols_list=no
  6911. fi
  6912. rm -f core conftest.err conftest.$ac_objext \
  6913. conftest$ac_exeext conftest.$ac_ext
  6914. LDFLAGS="$save_LDFLAGS"
  6915. fi
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6917. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6919. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6920. if ${lt_cv_ld_force_load+:} false; then :
  6921. $as_echo_n "(cached) " >&6
  6922. else
  6923. lt_cv_ld_force_load=no
  6924. cat > conftest.c << _LT_EOF
  6925. int forced_loaded() { return 2;}
  6926. _LT_EOF
  6927. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6928. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6929. echo "$AR cru libconftest.a conftest.o" >&5
  6930. $AR cru libconftest.a conftest.o 2>&5
  6931. echo "$RANLIB libconftest.a" >&5
  6932. $RANLIB libconftest.a 2>&5
  6933. cat > conftest.c << _LT_EOF
  6934. int main() { return 0;}
  6935. _LT_EOF
  6936. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6937. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6938. _lt_result=$?
  6939. if test -s conftest.err && $GREP force_load conftest.err; then
  6940. cat conftest.err >&5
  6941. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6942. lt_cv_ld_force_load=yes
  6943. else
  6944. cat conftest.err >&5
  6945. fi
  6946. rm -f conftest.err libconftest.a conftest conftest.c
  6947. rm -rf conftest.dSYM
  6948. fi
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6950. $as_echo "$lt_cv_ld_force_load" >&6; }
  6951. case $host_os in
  6952. rhapsody* | darwin1.[012])
  6953. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6954. darwin1.*)
  6955. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6956. darwin*) # darwin 5.x on
  6957. # if running on 10.5 or later, the deployment target defaults
  6958. # to the OS version, if on x86, and 10.4, the deployment
  6959. # target defaults to 10.4. Don't you love it?
  6960. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6961. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6962. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6963. 10.[012]*)
  6964. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6965. 10.*)
  6966. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6967. esac
  6968. ;;
  6969. esac
  6970. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6971. _lt_dar_single_mod='$single_module'
  6972. fi
  6973. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6974. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6975. else
  6976. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6977. fi
  6978. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6979. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6980. else
  6981. _lt_dsymutil=
  6982. fi
  6983. ;;
  6984. esac
  6985. ac_ext=c
  6986. ac_cpp='$CPP $CPPFLAGS'
  6987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6991. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6992. # On Suns, sometimes $CPP names a directory.
  6993. if test -n "$CPP" && test -d "$CPP"; then
  6994. CPP=
  6995. fi
  6996. if test -z "$CPP"; then
  6997. if ${ac_cv_prog_CPP+:} false; then :
  6998. $as_echo_n "(cached) " >&6
  6999. else
  7000. # Double quotes because CPP needs to be expanded
  7001. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7002. do
  7003. ac_preproc_ok=false
  7004. for ac_c_preproc_warn_flag in '' yes
  7005. do
  7006. # Use a header file that comes with gcc, so configuring glibc
  7007. # with a fresh cross-compiler works.
  7008. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7009. # <limits.h> exists even on freestanding compilers.
  7010. # On the NeXT, cc -E runs the code through the compiler's parser,
  7011. # not just through cpp. "Syntax error" is here to catch this case.
  7012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7013. /* end confdefs.h. */
  7014. #ifdef __STDC__
  7015. # include <limits.h>
  7016. #else
  7017. # include <assert.h>
  7018. #endif
  7019. Syntax error
  7020. _ACEOF
  7021. if ac_fn_c_try_cpp "$LINENO"; then :
  7022. else
  7023. # Broken: fails on valid input.
  7024. continue
  7025. fi
  7026. rm -f conftest.err conftest.i conftest.$ac_ext
  7027. # OK, works on sane cases. Now check whether nonexistent headers
  7028. # can be detected and how.
  7029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7030. /* end confdefs.h. */
  7031. #include <ac_nonexistent.h>
  7032. _ACEOF
  7033. if ac_fn_c_try_cpp "$LINENO"; then :
  7034. # Broken: success on invalid input.
  7035. continue
  7036. else
  7037. # Passes both tests.
  7038. ac_preproc_ok=:
  7039. break
  7040. fi
  7041. rm -f conftest.err conftest.i conftest.$ac_ext
  7042. done
  7043. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7044. rm -f conftest.i conftest.err conftest.$ac_ext
  7045. if $ac_preproc_ok; then :
  7046. break
  7047. fi
  7048. done
  7049. ac_cv_prog_CPP=$CPP
  7050. fi
  7051. CPP=$ac_cv_prog_CPP
  7052. else
  7053. ac_cv_prog_CPP=$CPP
  7054. fi
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7056. $as_echo "$CPP" >&6; }
  7057. ac_preproc_ok=false
  7058. for ac_c_preproc_warn_flag in '' yes
  7059. do
  7060. # Use a header file that comes with gcc, so configuring glibc
  7061. # with a fresh cross-compiler works.
  7062. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7063. # <limits.h> exists even on freestanding compilers.
  7064. # On the NeXT, cc -E runs the code through the compiler's parser,
  7065. # not just through cpp. "Syntax error" is here to catch this case.
  7066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7067. /* end confdefs.h. */
  7068. #ifdef __STDC__
  7069. # include <limits.h>
  7070. #else
  7071. # include <assert.h>
  7072. #endif
  7073. Syntax error
  7074. _ACEOF
  7075. if ac_fn_c_try_cpp "$LINENO"; then :
  7076. else
  7077. # Broken: fails on valid input.
  7078. continue
  7079. fi
  7080. rm -f conftest.err conftest.i conftest.$ac_ext
  7081. # OK, works on sane cases. Now check whether nonexistent headers
  7082. # can be detected and how.
  7083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7084. /* end confdefs.h. */
  7085. #include <ac_nonexistent.h>
  7086. _ACEOF
  7087. if ac_fn_c_try_cpp "$LINENO"; then :
  7088. # Broken: success on invalid input.
  7089. continue
  7090. else
  7091. # Passes both tests.
  7092. ac_preproc_ok=:
  7093. break
  7094. fi
  7095. rm -f conftest.err conftest.i conftest.$ac_ext
  7096. done
  7097. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7098. rm -f conftest.i conftest.err conftest.$ac_ext
  7099. if $ac_preproc_ok; then :
  7100. else
  7101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7103. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7104. See \`config.log' for more details" "$LINENO" 5; }
  7105. fi
  7106. ac_ext=c
  7107. ac_cpp='$CPP $CPPFLAGS'
  7108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7112. $as_echo_n "checking for ANSI C header files... " >&6; }
  7113. if ${ac_cv_header_stdc+:} false; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7117. /* end confdefs.h. */
  7118. #include <stdlib.h>
  7119. #include <stdarg.h>
  7120. #include <string.h>
  7121. #include <float.h>
  7122. int
  7123. main ()
  7124. {
  7125. ;
  7126. return 0;
  7127. }
  7128. _ACEOF
  7129. if ac_fn_c_try_compile "$LINENO"; then :
  7130. ac_cv_header_stdc=yes
  7131. else
  7132. ac_cv_header_stdc=no
  7133. fi
  7134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7135. if test $ac_cv_header_stdc = yes; then
  7136. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. #include <string.h>
  7140. _ACEOF
  7141. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7142. $EGREP "memchr" >/dev/null 2>&1; then :
  7143. else
  7144. ac_cv_header_stdc=no
  7145. fi
  7146. rm -f conftest*
  7147. fi
  7148. if test $ac_cv_header_stdc = yes; then
  7149. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7151. /* end confdefs.h. */
  7152. #include <stdlib.h>
  7153. _ACEOF
  7154. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7155. $EGREP "free" >/dev/null 2>&1; then :
  7156. else
  7157. ac_cv_header_stdc=no
  7158. fi
  7159. rm -f conftest*
  7160. fi
  7161. if test $ac_cv_header_stdc = yes; then
  7162. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7163. if test "$cross_compiling" = yes; then :
  7164. :
  7165. else
  7166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7167. /* end confdefs.h. */
  7168. #include <ctype.h>
  7169. #include <stdlib.h>
  7170. #if ((' ' & 0x0FF) == 0x020)
  7171. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7172. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7173. #else
  7174. # define ISLOWER(c) \
  7175. (('a' <= (c) && (c) <= 'i') \
  7176. || ('j' <= (c) && (c) <= 'r') \
  7177. || ('s' <= (c) && (c) <= 'z'))
  7178. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7179. #endif
  7180. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7181. int
  7182. main ()
  7183. {
  7184. int i;
  7185. for (i = 0; i < 256; i++)
  7186. if (XOR (islower (i), ISLOWER (i))
  7187. || toupper (i) != TOUPPER (i))
  7188. return 2;
  7189. return 0;
  7190. }
  7191. _ACEOF
  7192. if ac_fn_c_try_run "$LINENO"; then :
  7193. else
  7194. ac_cv_header_stdc=no
  7195. fi
  7196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7198. fi
  7199. fi
  7200. fi
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7202. $as_echo "$ac_cv_header_stdc" >&6; }
  7203. if test $ac_cv_header_stdc = yes; then
  7204. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7205. fi
  7206. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7207. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7208. inttypes.h stdint.h unistd.h
  7209. do :
  7210. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7211. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7212. "
  7213. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7214. cat >>confdefs.h <<_ACEOF
  7215. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7216. _ACEOF
  7217. fi
  7218. done
  7219. for ac_header in dlfcn.h
  7220. do :
  7221. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7222. "
  7223. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7224. cat >>confdefs.h <<_ACEOF
  7225. #define HAVE_DLFCN_H 1
  7226. _ACEOF
  7227. fi
  7228. done
  7229. func_stripname_cnf ()
  7230. {
  7231. case ${2} in
  7232. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7233. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7234. esac
  7235. } # func_stripname_cnf
  7236. # Set options
  7237. enable_dlopen=no
  7238. enable_win32_dll=no
  7239. # Check whether --enable-shared was given.
  7240. if test "${enable_shared+set}" = set; then :
  7241. enableval=$enable_shared; p=${PACKAGE-default}
  7242. case $enableval in
  7243. yes) enable_shared=yes ;;
  7244. no) enable_shared=no ;;
  7245. *)
  7246. enable_shared=no
  7247. # Look at the argument we got. We use all the common list separators.
  7248. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7249. for pkg in $enableval; do
  7250. IFS="$lt_save_ifs"
  7251. if test "X$pkg" = "X$p"; then
  7252. enable_shared=yes
  7253. fi
  7254. done
  7255. IFS="$lt_save_ifs"
  7256. ;;
  7257. esac
  7258. else
  7259. enable_shared=yes
  7260. fi
  7261. # Check whether --enable-static was given.
  7262. if test "${enable_static+set}" = set; then :
  7263. enableval=$enable_static; p=${PACKAGE-default}
  7264. case $enableval in
  7265. yes) enable_static=yes ;;
  7266. no) enable_static=no ;;
  7267. *)
  7268. enable_static=no
  7269. # Look at the argument we got. We use all the common list separators.
  7270. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7271. for pkg in $enableval; do
  7272. IFS="$lt_save_ifs"
  7273. if test "X$pkg" = "X$p"; then
  7274. enable_static=yes
  7275. fi
  7276. done
  7277. IFS="$lt_save_ifs"
  7278. ;;
  7279. esac
  7280. else
  7281. enable_static=yes
  7282. fi
  7283. # Check whether --with-pic was given.
  7284. if test "${with_pic+set}" = set; then :
  7285. withval=$with_pic; lt_p=${PACKAGE-default}
  7286. case $withval in
  7287. yes|no) pic_mode=$withval ;;
  7288. *)
  7289. pic_mode=default
  7290. # Look at the argument we got. We use all the common list separators.
  7291. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7292. for lt_pkg in $withval; do
  7293. IFS="$lt_save_ifs"
  7294. if test "X$lt_pkg" = "X$lt_p"; then
  7295. pic_mode=yes
  7296. fi
  7297. done
  7298. IFS="$lt_save_ifs"
  7299. ;;
  7300. esac
  7301. else
  7302. pic_mode=default
  7303. fi
  7304. test -z "$pic_mode" && pic_mode=default
  7305. # Check whether --enable-fast-install was given.
  7306. if test "${enable_fast_install+set}" = set; then :
  7307. enableval=$enable_fast_install; p=${PACKAGE-default}
  7308. case $enableval in
  7309. yes) enable_fast_install=yes ;;
  7310. no) enable_fast_install=no ;;
  7311. *)
  7312. enable_fast_install=no
  7313. # Look at the argument we got. We use all the common list separators.
  7314. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7315. for pkg in $enableval; do
  7316. IFS="$lt_save_ifs"
  7317. if test "X$pkg" = "X$p"; then
  7318. enable_fast_install=yes
  7319. fi
  7320. done
  7321. IFS="$lt_save_ifs"
  7322. ;;
  7323. esac
  7324. else
  7325. enable_fast_install=yes
  7326. fi
  7327. # This can be used to rebuild libtool when needed
  7328. LIBTOOL_DEPS="$ltmain"
  7329. # Always use our own libtool.
  7330. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7331. test -z "$LN_S" && LN_S="ln -s"
  7332. if test -n "${ZSH_VERSION+set}" ; then
  7333. setopt NO_GLOB_SUBST
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7336. $as_echo_n "checking for objdir... " >&6; }
  7337. if ${lt_cv_objdir+:} false; then :
  7338. $as_echo_n "(cached) " >&6
  7339. else
  7340. rm -f .libs 2>/dev/null
  7341. mkdir .libs 2>/dev/null
  7342. if test -d .libs; then
  7343. lt_cv_objdir=.libs
  7344. else
  7345. # MS-DOS does not allow filenames that begin with a dot.
  7346. lt_cv_objdir=_libs
  7347. fi
  7348. rmdir .libs 2>/dev/null
  7349. fi
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7351. $as_echo "$lt_cv_objdir" >&6; }
  7352. objdir=$lt_cv_objdir
  7353. cat >>confdefs.h <<_ACEOF
  7354. #define LT_OBJDIR "$lt_cv_objdir/"
  7355. _ACEOF
  7356. case $host_os in
  7357. aix3*)
  7358. # AIX sometimes has problems with the GCC collect2 program. For some
  7359. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7360. # vanish in a puff of smoke.
  7361. if test "X${COLLECT_NAMES+set}" != Xset; then
  7362. COLLECT_NAMES=
  7363. export COLLECT_NAMES
  7364. fi
  7365. ;;
  7366. esac
  7367. # Global variables:
  7368. ofile=libtool
  7369. can_build_shared=yes
  7370. # All known linkers require a `.a' archive for static linking (except MSVC,
  7371. # which needs '.lib').
  7372. libext=a
  7373. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7374. old_CC="$CC"
  7375. old_CFLAGS="$CFLAGS"
  7376. # Set sane defaults for various variables
  7377. test -z "$CC" && CC=cc
  7378. test -z "$LTCC" && LTCC=$CC
  7379. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7380. test -z "$LD" && LD=ld
  7381. test -z "$ac_objext" && ac_objext=o
  7382. for cc_temp in $compiler""; do
  7383. case $cc_temp in
  7384. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7385. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7386. \-*) ;;
  7387. *) break;;
  7388. esac
  7389. done
  7390. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7391. # Only perform the check for file, if the check method requires it
  7392. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7393. case $deplibs_check_method in
  7394. file_magic*)
  7395. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7397. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7398. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7399. $as_echo_n "(cached) " >&6
  7400. else
  7401. case $MAGIC_CMD in
  7402. [\\/*] | ?:[\\/]*)
  7403. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7404. ;;
  7405. *)
  7406. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7407. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7408. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7409. for ac_dir in $ac_dummy; do
  7410. IFS="$lt_save_ifs"
  7411. test -z "$ac_dir" && ac_dir=.
  7412. if test -f $ac_dir/${ac_tool_prefix}file; then
  7413. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7414. if test -n "$file_magic_test_file"; then
  7415. case $deplibs_check_method in
  7416. "file_magic "*)
  7417. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7418. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7419. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7420. $EGREP "$file_magic_regex" > /dev/null; then
  7421. :
  7422. else
  7423. cat <<_LT_EOF 1>&2
  7424. *** Warning: the command libtool uses to detect shared libraries,
  7425. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7426. *** The result is that libtool may fail to recognize shared libraries
  7427. *** as such. This will affect the creation of libtool libraries that
  7428. *** depend on shared libraries, but programs linked with such libtool
  7429. *** libraries will work regardless of this problem. Nevertheless, you
  7430. *** may want to report the problem to your system manager and/or to
  7431. *** bug-libtool@gnu.org
  7432. _LT_EOF
  7433. fi ;;
  7434. esac
  7435. fi
  7436. break
  7437. fi
  7438. done
  7439. IFS="$lt_save_ifs"
  7440. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7441. ;;
  7442. esac
  7443. fi
  7444. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7445. if test -n "$MAGIC_CMD"; then
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7447. $as_echo "$MAGIC_CMD" >&6; }
  7448. else
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7450. $as_echo "no" >&6; }
  7451. fi
  7452. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7453. if test -n "$ac_tool_prefix"; then
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7455. $as_echo_n "checking for file... " >&6; }
  7456. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. case $MAGIC_CMD in
  7460. [\\/*] | ?:[\\/]*)
  7461. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7462. ;;
  7463. *)
  7464. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7465. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7466. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7467. for ac_dir in $ac_dummy; do
  7468. IFS="$lt_save_ifs"
  7469. test -z "$ac_dir" && ac_dir=.
  7470. if test -f $ac_dir/file; then
  7471. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7472. if test -n "$file_magic_test_file"; then
  7473. case $deplibs_check_method in
  7474. "file_magic "*)
  7475. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7476. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7477. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7478. $EGREP "$file_magic_regex" > /dev/null; then
  7479. :
  7480. else
  7481. cat <<_LT_EOF 1>&2
  7482. *** Warning: the command libtool uses to detect shared libraries,
  7483. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7484. *** The result is that libtool may fail to recognize shared libraries
  7485. *** as such. This will affect the creation of libtool libraries that
  7486. *** depend on shared libraries, but programs linked with such libtool
  7487. *** libraries will work regardless of this problem. Nevertheless, you
  7488. *** may want to report the problem to your system manager and/or to
  7489. *** bug-libtool@gnu.org
  7490. _LT_EOF
  7491. fi ;;
  7492. esac
  7493. fi
  7494. break
  7495. fi
  7496. done
  7497. IFS="$lt_save_ifs"
  7498. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7499. ;;
  7500. esac
  7501. fi
  7502. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7503. if test -n "$MAGIC_CMD"; then
  7504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7505. $as_echo "$MAGIC_CMD" >&6; }
  7506. else
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7508. $as_echo "no" >&6; }
  7509. fi
  7510. else
  7511. MAGIC_CMD=:
  7512. fi
  7513. fi
  7514. fi
  7515. ;;
  7516. esac
  7517. # Use C for the default configuration in the libtool script
  7518. lt_save_CC="$CC"
  7519. ac_ext=c
  7520. ac_cpp='$CPP $CPPFLAGS'
  7521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7524. # Source file extension for C test sources.
  7525. ac_ext=c
  7526. # Object file extension for compiled C test sources.
  7527. objext=o
  7528. objext=$objext
  7529. # Code to be used in simple compile tests
  7530. lt_simple_compile_test_code="int some_variable = 0;"
  7531. # Code to be used in simple link tests
  7532. lt_simple_link_test_code='int main(){return(0);}'
  7533. # If no C compiler was specified, use CC.
  7534. LTCC=${LTCC-"$CC"}
  7535. # If no C compiler flags were specified, use CFLAGS.
  7536. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7537. # Allow CC to be a program name with arguments.
  7538. compiler=$CC
  7539. # Save the default compiler, since it gets overwritten when the other
  7540. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7541. compiler_DEFAULT=$CC
  7542. # save warnings/boilerplate of simple test code
  7543. ac_outfile=conftest.$ac_objext
  7544. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7545. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7546. _lt_compiler_boilerplate=`cat conftest.err`
  7547. $RM conftest*
  7548. ac_outfile=conftest.$ac_objext
  7549. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7550. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7551. _lt_linker_boilerplate=`cat conftest.err`
  7552. $RM -r conftest*
  7553. ## CAVEAT EMPTOR:
  7554. ## There is no encapsulation within the following macros, do not change
  7555. ## the running order or otherwise move them around unless you know exactly
  7556. ## what you are doing...
  7557. if test -n "$compiler"; then
  7558. lt_prog_compiler_no_builtin_flag=
  7559. if test "$GCC" = yes; then
  7560. case $cc_basename in
  7561. nvcc*)
  7562. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7563. *)
  7564. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7565. esac
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7567. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7568. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7569. $as_echo_n "(cached) " >&6
  7570. else
  7571. lt_cv_prog_compiler_rtti_exceptions=no
  7572. ac_outfile=conftest.$ac_objext
  7573. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7574. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7575. # Insert the option either (1) after the last *FLAGS variable, or
  7576. # (2) before a word containing "conftest.", or (3) at the end.
  7577. # Note that $ac_compile itself does not contain backslashes and begins
  7578. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7579. # The option is referenced via a variable to avoid confusing sed.
  7580. lt_compile=`echo "$ac_compile" | $SED \
  7581. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7582. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7583. -e 's:$: $lt_compiler_flag:'`
  7584. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7585. (eval "$lt_compile" 2>conftest.err)
  7586. ac_status=$?
  7587. cat conftest.err >&5
  7588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. if (exit $ac_status) && test -s "$ac_outfile"; then
  7590. # The compiler can only warn and ignore the option if not recognized
  7591. # So say no if there are warnings other than the usual output.
  7592. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7593. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7594. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7595. lt_cv_prog_compiler_rtti_exceptions=yes
  7596. fi
  7597. fi
  7598. $RM conftest*
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7601. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7602. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7603. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7604. else
  7605. :
  7606. fi
  7607. fi
  7608. lt_prog_compiler_wl=
  7609. lt_prog_compiler_pic=
  7610. lt_prog_compiler_static=
  7611. if test "$GCC" = yes; then
  7612. lt_prog_compiler_wl='-Wl,'
  7613. lt_prog_compiler_static='-static'
  7614. case $host_os in
  7615. aix*)
  7616. # All AIX code is PIC.
  7617. if test "$host_cpu" = ia64; then
  7618. # AIX 5 now supports IA64 processor
  7619. lt_prog_compiler_static='-Bstatic'
  7620. fi
  7621. ;;
  7622. amigaos*)
  7623. case $host_cpu in
  7624. powerpc)
  7625. # see comment about AmigaOS4 .so support
  7626. lt_prog_compiler_pic='-fPIC'
  7627. ;;
  7628. m68k)
  7629. # FIXME: we need at least 68020 code to build shared libraries, but
  7630. # adding the `-m68020' flag to GCC prevents building anything better,
  7631. # like `-m68040'.
  7632. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7633. ;;
  7634. esac
  7635. ;;
  7636. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7637. # PIC is the default for these OSes.
  7638. ;;
  7639. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7640. # This hack is so that the source file can tell whether it is being
  7641. # built for inclusion in a dll (and should export symbols for example).
  7642. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7643. # (--disable-auto-import) libraries
  7644. lt_prog_compiler_pic='-DDLL_EXPORT'
  7645. ;;
  7646. darwin* | rhapsody*)
  7647. # PIC is the default on this platform
  7648. # Common symbols not allowed in MH_DYLIB files
  7649. lt_prog_compiler_pic='-fno-common'
  7650. ;;
  7651. haiku*)
  7652. # PIC is the default for Haiku.
  7653. # The "-static" flag exists, but is broken.
  7654. lt_prog_compiler_static=
  7655. ;;
  7656. hpux*)
  7657. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7658. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7659. # sets the default TLS model and affects inlining.
  7660. case $host_cpu in
  7661. hppa*64*)
  7662. # +Z the default
  7663. ;;
  7664. *)
  7665. lt_prog_compiler_pic='-fPIC'
  7666. ;;
  7667. esac
  7668. ;;
  7669. interix[3-9]*)
  7670. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7671. # Instead, we relocate shared libraries at runtime.
  7672. ;;
  7673. msdosdjgpp*)
  7674. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7675. # on systems that don't support them.
  7676. lt_prog_compiler_can_build_shared=no
  7677. enable_shared=no
  7678. ;;
  7679. *nto* | *qnx*)
  7680. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7681. # it will coredump.
  7682. lt_prog_compiler_pic='-fPIC -shared'
  7683. ;;
  7684. sysv4*MP*)
  7685. if test -d /usr/nec; then
  7686. lt_prog_compiler_pic=-Kconform_pic
  7687. fi
  7688. ;;
  7689. *)
  7690. lt_prog_compiler_pic='-fPIC'
  7691. ;;
  7692. esac
  7693. case $cc_basename in
  7694. nvcc*) # Cuda Compiler Driver 2.2
  7695. lt_prog_compiler_wl='-Xlinker '
  7696. if test -n "$lt_prog_compiler_pic"; then
  7697. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7698. fi
  7699. ;;
  7700. esac
  7701. else
  7702. # PORTME Check for flag to pass linker flags through the system compiler.
  7703. case $host_os in
  7704. aix*)
  7705. lt_prog_compiler_wl='-Wl,'
  7706. if test "$host_cpu" = ia64; then
  7707. # AIX 5 now supports IA64 processor
  7708. lt_prog_compiler_static='-Bstatic'
  7709. else
  7710. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7711. fi
  7712. ;;
  7713. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7714. # This hack is so that the source file can tell whether it is being
  7715. # built for inclusion in a dll (and should export symbols for example).
  7716. lt_prog_compiler_pic='-DDLL_EXPORT'
  7717. ;;
  7718. hpux9* | hpux10* | hpux11*)
  7719. lt_prog_compiler_wl='-Wl,'
  7720. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7721. # not for PA HP-UX.
  7722. case $host_cpu in
  7723. hppa*64*|ia64*)
  7724. # +Z the default
  7725. ;;
  7726. *)
  7727. lt_prog_compiler_pic='+Z'
  7728. ;;
  7729. esac
  7730. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7731. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7732. ;;
  7733. irix5* | irix6* | nonstopux*)
  7734. lt_prog_compiler_wl='-Wl,'
  7735. # PIC (with -KPIC) is the default.
  7736. lt_prog_compiler_static='-non_shared'
  7737. ;;
  7738. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7739. case $cc_basename in
  7740. # old Intel for x86_64 which still supported -KPIC.
  7741. ecc*)
  7742. lt_prog_compiler_wl='-Wl,'
  7743. lt_prog_compiler_pic='-KPIC'
  7744. lt_prog_compiler_static='-static'
  7745. ;;
  7746. # icc used to be incompatible with GCC.
  7747. # ICC 10 doesn't accept -KPIC any more.
  7748. icc* | ifort*)
  7749. lt_prog_compiler_wl='-Wl,'
  7750. lt_prog_compiler_pic='-fPIC'
  7751. lt_prog_compiler_static='-static'
  7752. ;;
  7753. # Lahey Fortran 8.1.
  7754. lf95*)
  7755. lt_prog_compiler_wl='-Wl,'
  7756. lt_prog_compiler_pic='--shared'
  7757. lt_prog_compiler_static='--static'
  7758. ;;
  7759. nagfor*)
  7760. # NAG Fortran compiler
  7761. lt_prog_compiler_wl='-Wl,-Wl,,'
  7762. lt_prog_compiler_pic='-PIC'
  7763. lt_prog_compiler_static='-Bstatic'
  7764. ;;
  7765. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7766. # Portland Group compilers (*not* the Pentium gcc compiler,
  7767. # which looks to be a dead project)
  7768. lt_prog_compiler_wl='-Wl,'
  7769. lt_prog_compiler_pic='-fpic'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. ;;
  7772. ccc*)
  7773. lt_prog_compiler_wl='-Wl,'
  7774. # All Alpha code is PIC.
  7775. lt_prog_compiler_static='-non_shared'
  7776. ;;
  7777. xl* | bgxl* | bgf* | mpixl*)
  7778. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_pic='-qpic'
  7781. lt_prog_compiler_static='-qstaticlink'
  7782. ;;
  7783. *)
  7784. case `$CC -V 2>&1 | sed 5q` in
  7785. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7786. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7787. lt_prog_compiler_pic='-KPIC'
  7788. lt_prog_compiler_static='-Bstatic'
  7789. lt_prog_compiler_wl=''
  7790. ;;
  7791. *Sun\ F* | *Sun*Fortran*)
  7792. lt_prog_compiler_pic='-KPIC'
  7793. lt_prog_compiler_static='-Bstatic'
  7794. lt_prog_compiler_wl='-Qoption ld '
  7795. ;;
  7796. *Sun\ C*)
  7797. # Sun C 5.9
  7798. lt_prog_compiler_pic='-KPIC'
  7799. lt_prog_compiler_static='-Bstatic'
  7800. lt_prog_compiler_wl='-Wl,'
  7801. ;;
  7802. *Intel*\ [CF]*Compiler*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. lt_prog_compiler_pic='-fPIC'
  7805. lt_prog_compiler_static='-static'
  7806. ;;
  7807. *Portland\ Group*)
  7808. lt_prog_compiler_wl='-Wl,'
  7809. lt_prog_compiler_pic='-fpic'
  7810. lt_prog_compiler_static='-Bstatic'
  7811. ;;
  7812. esac
  7813. ;;
  7814. esac
  7815. ;;
  7816. newsos6)
  7817. lt_prog_compiler_pic='-KPIC'
  7818. lt_prog_compiler_static='-Bstatic'
  7819. ;;
  7820. *nto* | *qnx*)
  7821. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7822. # it will coredump.
  7823. lt_prog_compiler_pic='-fPIC -shared'
  7824. ;;
  7825. osf3* | osf4* | osf5*)
  7826. lt_prog_compiler_wl='-Wl,'
  7827. # All OSF/1 code is PIC.
  7828. lt_prog_compiler_static='-non_shared'
  7829. ;;
  7830. rdos*)
  7831. lt_prog_compiler_static='-non_shared'
  7832. ;;
  7833. solaris*)
  7834. lt_prog_compiler_pic='-KPIC'
  7835. lt_prog_compiler_static='-Bstatic'
  7836. case $cc_basename in
  7837. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7838. lt_prog_compiler_wl='-Qoption ld ';;
  7839. *)
  7840. lt_prog_compiler_wl='-Wl,';;
  7841. esac
  7842. ;;
  7843. sunos4*)
  7844. lt_prog_compiler_wl='-Qoption ld '
  7845. lt_prog_compiler_pic='-PIC'
  7846. lt_prog_compiler_static='-Bstatic'
  7847. ;;
  7848. sysv4 | sysv4.2uw2* | sysv4.3*)
  7849. lt_prog_compiler_wl='-Wl,'
  7850. lt_prog_compiler_pic='-KPIC'
  7851. lt_prog_compiler_static='-Bstatic'
  7852. ;;
  7853. sysv4*MP*)
  7854. if test -d /usr/nec ;then
  7855. lt_prog_compiler_pic='-Kconform_pic'
  7856. lt_prog_compiler_static='-Bstatic'
  7857. fi
  7858. ;;
  7859. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7860. lt_prog_compiler_wl='-Wl,'
  7861. lt_prog_compiler_pic='-KPIC'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. ;;
  7864. unicos*)
  7865. lt_prog_compiler_wl='-Wl,'
  7866. lt_prog_compiler_can_build_shared=no
  7867. ;;
  7868. uts4*)
  7869. lt_prog_compiler_pic='-pic'
  7870. lt_prog_compiler_static='-Bstatic'
  7871. ;;
  7872. *)
  7873. lt_prog_compiler_can_build_shared=no
  7874. ;;
  7875. esac
  7876. fi
  7877. case $host_os in
  7878. # For platforms which do not support PIC, -DPIC is meaningless:
  7879. *djgpp*)
  7880. lt_prog_compiler_pic=
  7881. ;;
  7882. *)
  7883. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7884. ;;
  7885. esac
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7887. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7888. if ${lt_cv_prog_compiler_pic+:} false; then :
  7889. $as_echo_n "(cached) " >&6
  7890. else
  7891. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7892. fi
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7894. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7895. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7896. #
  7897. # Check to make sure the PIC flag actually works.
  7898. #
  7899. if test -n "$lt_prog_compiler_pic"; then
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7901. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7902. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. lt_cv_prog_compiler_pic_works=no
  7906. ac_outfile=conftest.$ac_objext
  7907. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7908. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7909. # Insert the option either (1) after the last *FLAGS variable, or
  7910. # (2) before a word containing "conftest.", or (3) at the end.
  7911. # Note that $ac_compile itself does not contain backslashes and begins
  7912. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7913. # The option is referenced via a variable to avoid confusing sed.
  7914. lt_compile=`echo "$ac_compile" | $SED \
  7915. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7916. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7917. -e 's:$: $lt_compiler_flag:'`
  7918. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7919. (eval "$lt_compile" 2>conftest.err)
  7920. ac_status=$?
  7921. cat conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. if (exit $ac_status) && test -s "$ac_outfile"; then
  7924. # The compiler can only warn and ignore the option if not recognized
  7925. # So say no if there are warnings other than the usual output.
  7926. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7927. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7928. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7929. lt_cv_prog_compiler_pic_works=yes
  7930. fi
  7931. fi
  7932. $RM conftest*
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7935. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7936. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7937. case $lt_prog_compiler_pic in
  7938. "" | " "*) ;;
  7939. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7940. esac
  7941. else
  7942. lt_prog_compiler_pic=
  7943. lt_prog_compiler_can_build_shared=no
  7944. fi
  7945. fi
  7946. #
  7947. # Check to make sure the static flag actually works.
  7948. #
  7949. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7951. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7952. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7953. $as_echo_n "(cached) " >&6
  7954. else
  7955. lt_cv_prog_compiler_static_works=no
  7956. save_LDFLAGS="$LDFLAGS"
  7957. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7958. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7959. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7960. # The linker can only warn and ignore the option if not recognized
  7961. # So say no if there are warnings
  7962. if test -s conftest.err; then
  7963. # Append any errors to the config.log.
  7964. cat conftest.err 1>&5
  7965. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7966. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7967. if diff conftest.exp conftest.er2 >/dev/null; then
  7968. lt_cv_prog_compiler_static_works=yes
  7969. fi
  7970. else
  7971. lt_cv_prog_compiler_static_works=yes
  7972. fi
  7973. fi
  7974. $RM -r conftest*
  7975. LDFLAGS="$save_LDFLAGS"
  7976. fi
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7978. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7979. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7980. :
  7981. else
  7982. lt_prog_compiler_static=
  7983. fi
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7985. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7986. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. lt_cv_prog_compiler_c_o=no
  7990. $RM -r conftest 2>/dev/null
  7991. mkdir conftest
  7992. cd conftest
  7993. mkdir out
  7994. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7995. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7996. # Insert the option either (1) after the last *FLAGS variable, or
  7997. # (2) before a word containing "conftest.", or (3) at the end.
  7998. # Note that $ac_compile itself does not contain backslashes and begins
  7999. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8000. lt_compile=`echo "$ac_compile" | $SED \
  8001. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8002. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8003. -e 's:$: $lt_compiler_flag:'`
  8004. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8005. (eval "$lt_compile" 2>out/conftest.err)
  8006. ac_status=$?
  8007. cat out/conftest.err >&5
  8008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8009. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8010. then
  8011. # The compiler can only warn and ignore the option if not recognized
  8012. # So say no if there are warnings
  8013. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8014. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8015. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8016. lt_cv_prog_compiler_c_o=yes
  8017. fi
  8018. fi
  8019. chmod u+w . 2>&5
  8020. $RM conftest*
  8021. # SGI C++ compiler will create directory out/ii_files/ for
  8022. # template instantiation
  8023. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8024. $RM out/* && rmdir out
  8025. cd ..
  8026. $RM -r conftest
  8027. $RM conftest*
  8028. fi
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8030. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8032. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8033. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. lt_cv_prog_compiler_c_o=no
  8037. $RM -r conftest 2>/dev/null
  8038. mkdir conftest
  8039. cd conftest
  8040. mkdir out
  8041. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8042. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8043. # Insert the option either (1) after the last *FLAGS variable, or
  8044. # (2) before a word containing "conftest.", or (3) at the end.
  8045. # Note that $ac_compile itself does not contain backslashes and begins
  8046. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8047. lt_compile=`echo "$ac_compile" | $SED \
  8048. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8049. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8050. -e 's:$: $lt_compiler_flag:'`
  8051. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8052. (eval "$lt_compile" 2>out/conftest.err)
  8053. ac_status=$?
  8054. cat out/conftest.err >&5
  8055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8057. then
  8058. # The compiler can only warn and ignore the option if not recognized
  8059. # So say no if there are warnings
  8060. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8061. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8062. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8063. lt_cv_prog_compiler_c_o=yes
  8064. fi
  8065. fi
  8066. chmod u+w . 2>&5
  8067. $RM conftest*
  8068. # SGI C++ compiler will create directory out/ii_files/ for
  8069. # template instantiation
  8070. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8071. $RM out/* && rmdir out
  8072. cd ..
  8073. $RM -r conftest
  8074. $RM conftest*
  8075. fi
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8077. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8078. hard_links="nottested"
  8079. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8080. # do not overwrite the value of need_locks provided by the user
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8082. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8083. hard_links=yes
  8084. $RM conftest*
  8085. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8086. touch conftest.a
  8087. ln conftest.a conftest.b 2>&5 || hard_links=no
  8088. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8090. $as_echo "$hard_links" >&6; }
  8091. if test "$hard_links" = no; then
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8093. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8094. need_locks=warn
  8095. fi
  8096. else
  8097. need_locks=no
  8098. fi
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8100. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8101. runpath_var=
  8102. allow_undefined_flag=
  8103. always_export_symbols=no
  8104. archive_cmds=
  8105. archive_expsym_cmds=
  8106. compiler_needs_object=no
  8107. enable_shared_with_static_runtimes=no
  8108. export_dynamic_flag_spec=
  8109. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8110. hardcode_automatic=no
  8111. hardcode_direct=no
  8112. hardcode_direct_absolute=no
  8113. hardcode_libdir_flag_spec=
  8114. hardcode_libdir_separator=
  8115. hardcode_minus_L=no
  8116. hardcode_shlibpath_var=unsupported
  8117. inherit_rpath=no
  8118. link_all_deplibs=unknown
  8119. module_cmds=
  8120. module_expsym_cmds=
  8121. old_archive_from_new_cmds=
  8122. old_archive_from_expsyms_cmds=
  8123. thread_safe_flag_spec=
  8124. whole_archive_flag_spec=
  8125. # include_expsyms should be a list of space-separated symbols to be *always*
  8126. # included in the symbol list
  8127. include_expsyms=
  8128. # exclude_expsyms can be an extended regexp of symbols to exclude
  8129. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8130. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8131. # as well as any symbol that contains `d'.
  8132. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8133. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8134. # platforms (ab)use it in PIC code, but their linkers get confused if
  8135. # the symbol is explicitly referenced. Since portable code cannot
  8136. # rely on this symbol name, it's probably fine to never include it in
  8137. # preloaded symbol tables.
  8138. # Exclude shared library initialization/finalization symbols.
  8139. extract_expsyms_cmds=
  8140. case $host_os in
  8141. cygwin* | mingw* | pw32* | cegcc*)
  8142. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8143. # When not using gcc, we currently assume that we are using
  8144. # Microsoft Visual C++.
  8145. if test "$GCC" != yes; then
  8146. with_gnu_ld=no
  8147. fi
  8148. ;;
  8149. interix*)
  8150. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8151. with_gnu_ld=yes
  8152. ;;
  8153. openbsd*)
  8154. with_gnu_ld=no
  8155. ;;
  8156. esac
  8157. ld_shlibs=yes
  8158. # On some targets, GNU ld is compatible enough with the native linker
  8159. # that we're better off using the native interface for both.
  8160. lt_use_gnu_ld_interface=no
  8161. if test "$with_gnu_ld" = yes; then
  8162. case $host_os in
  8163. aix*)
  8164. # The AIX port of GNU ld has always aspired to compatibility
  8165. # with the native linker. However, as the warning in the GNU ld
  8166. # block says, versions before 2.19.5* couldn't really create working
  8167. # shared libraries, regardless of the interface used.
  8168. case `$LD -v 2>&1` in
  8169. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8170. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8171. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8172. *)
  8173. lt_use_gnu_ld_interface=yes
  8174. ;;
  8175. esac
  8176. ;;
  8177. *)
  8178. lt_use_gnu_ld_interface=yes
  8179. ;;
  8180. esac
  8181. fi
  8182. if test "$lt_use_gnu_ld_interface" = yes; then
  8183. # If archive_cmds runs LD, not CC, wlarc should be empty
  8184. wlarc='${wl}'
  8185. # Set some defaults for GNU ld with shared library support. These
  8186. # are reset later if shared libraries are not supported. Putting them
  8187. # here allows them to be overridden if necessary.
  8188. runpath_var=LD_RUN_PATH
  8189. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8190. export_dynamic_flag_spec='${wl}--export-dynamic'
  8191. # ancient GNU ld didn't support --whole-archive et. al.
  8192. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8193. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8194. else
  8195. whole_archive_flag_spec=
  8196. fi
  8197. supports_anon_versioning=no
  8198. case `$LD -v 2>&1` in
  8199. *GNU\ gold*) supports_anon_versioning=yes ;;
  8200. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8201. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8202. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8203. *\ 2.11.*) ;; # other 2.11 versions
  8204. *) supports_anon_versioning=yes ;;
  8205. esac
  8206. # See if GNU ld supports shared libraries.
  8207. case $host_os in
  8208. aix[3-9]*)
  8209. # On AIX/PPC, the GNU linker is very broken
  8210. if test "$host_cpu" != ia64; then
  8211. ld_shlibs=no
  8212. cat <<_LT_EOF 1>&2
  8213. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8214. *** to be unable to reliably create shared libraries on AIX.
  8215. *** Therefore, libtool is disabling shared libraries support. If you
  8216. *** really care for shared libraries, you may want to install binutils
  8217. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8218. *** You will then need to restart the configuration process.
  8219. _LT_EOF
  8220. fi
  8221. ;;
  8222. amigaos*)
  8223. case $host_cpu in
  8224. powerpc)
  8225. # see comment about AmigaOS4 .so support
  8226. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8227. archive_expsym_cmds=''
  8228. ;;
  8229. m68k)
  8230. 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)'
  8231. hardcode_libdir_flag_spec='-L$libdir'
  8232. hardcode_minus_L=yes
  8233. ;;
  8234. esac
  8235. ;;
  8236. beos*)
  8237. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8238. allow_undefined_flag=unsupported
  8239. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8240. # support --undefined. This deserves some investigation. FIXME
  8241. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8242. else
  8243. ld_shlibs=no
  8244. fi
  8245. ;;
  8246. cygwin* | mingw* | pw32* | cegcc*)
  8247. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8248. # as there is no search path for DLLs.
  8249. hardcode_libdir_flag_spec='-L$libdir'
  8250. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8251. allow_undefined_flag=unsupported
  8252. always_export_symbols=no
  8253. enable_shared_with_static_runtimes=yes
  8254. 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'
  8255. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8256. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8257. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8258. # If the export-symbols file already is a .def file (1st line
  8259. # is EXPORTS), use it as is; otherwise, prepend...
  8260. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8261. cp $export_symbols $output_objdir/$soname.def;
  8262. else
  8263. echo EXPORTS > $output_objdir/$soname.def;
  8264. cat $export_symbols >> $output_objdir/$soname.def;
  8265. fi~
  8266. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8267. else
  8268. ld_shlibs=no
  8269. fi
  8270. ;;
  8271. haiku*)
  8272. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8273. link_all_deplibs=yes
  8274. ;;
  8275. interix[3-9]*)
  8276. hardcode_direct=no
  8277. hardcode_shlibpath_var=no
  8278. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8279. export_dynamic_flag_spec='${wl}-E'
  8280. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8281. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8282. # default) and relocated if they conflict, which is a slow very memory
  8283. # consuming and fragmenting process. To avoid this, we pick a random,
  8284. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8285. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8286. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8287. 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'
  8288. ;;
  8289. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8290. tmp_diet=no
  8291. if test "$host_os" = linux-dietlibc; then
  8292. case $cc_basename in
  8293. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8294. esac
  8295. fi
  8296. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8297. && test "$tmp_diet" = no
  8298. then
  8299. tmp_addflag=' $pic_flag'
  8300. tmp_sharedflag='-shared'
  8301. case $cc_basename,$host_cpu in
  8302. pgcc*) # Portland Group C compiler
  8303. 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'
  8304. tmp_addflag=' $pic_flag'
  8305. ;;
  8306. pgf77* | pgf90* | pgf95* | pgfortran*)
  8307. # Portland Group f77 and f90 compilers
  8308. 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'
  8309. tmp_addflag=' $pic_flag -Mnomain' ;;
  8310. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8311. tmp_addflag=' -i_dynamic' ;;
  8312. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8313. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8314. ifc* | ifort*) # Intel Fortran compiler
  8315. tmp_addflag=' -nofor_main' ;;
  8316. lf95*) # Lahey Fortran 8.1
  8317. whole_archive_flag_spec=
  8318. tmp_sharedflag='--shared' ;;
  8319. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8320. tmp_sharedflag='-qmkshrobj'
  8321. tmp_addflag= ;;
  8322. nvcc*) # Cuda Compiler Driver 2.2
  8323. 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'
  8324. compiler_needs_object=yes
  8325. ;;
  8326. esac
  8327. case `$CC -V 2>&1 | sed 5q` in
  8328. *Sun\ C*) # Sun C 5.9
  8329. 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'
  8330. compiler_needs_object=yes
  8331. tmp_sharedflag='-G' ;;
  8332. *Sun\ F*) # Sun Fortran 8.3
  8333. tmp_sharedflag='-G' ;;
  8334. esac
  8335. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8336. if test "x$supports_anon_versioning" = xyes; then
  8337. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8338. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8339. echo "local: *; };" >> $output_objdir/$libname.ver~
  8340. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8341. fi
  8342. case $cc_basename in
  8343. xlf* | bgf* | bgxlf* | mpixlf*)
  8344. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8345. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8346. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8347. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8348. if test "x$supports_anon_versioning" = xyes; then
  8349. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8350. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8351. echo "local: *; };" >> $output_objdir/$libname.ver~
  8352. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8353. fi
  8354. ;;
  8355. esac
  8356. else
  8357. ld_shlibs=no
  8358. fi
  8359. ;;
  8360. netbsd*)
  8361. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8362. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8363. wlarc=
  8364. else
  8365. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8366. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8367. fi
  8368. ;;
  8369. solaris*)
  8370. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8371. ld_shlibs=no
  8372. cat <<_LT_EOF 1>&2
  8373. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8374. *** create shared libraries on Solaris systems. Therefore, libtool
  8375. *** is disabling shared libraries support. We urge you to upgrade GNU
  8376. *** binutils to release 2.9.1 or newer. Another option is to modify
  8377. *** your PATH or compiler configuration so that the native linker is
  8378. *** used, and then restart.
  8379. _LT_EOF
  8380. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8381. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8382. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8383. else
  8384. ld_shlibs=no
  8385. fi
  8386. ;;
  8387. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8388. case `$LD -v 2>&1` in
  8389. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8390. ld_shlibs=no
  8391. cat <<_LT_EOF 1>&2
  8392. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8393. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8394. *** is disabling shared libraries support. We urge you to upgrade GNU
  8395. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8396. *** your PATH or compiler configuration so that the native linker is
  8397. *** used, and then restart.
  8398. _LT_EOF
  8399. ;;
  8400. *)
  8401. # For security reasons, it is highly recommended that you always
  8402. # use absolute paths for naming shared libraries, and exclude the
  8403. # DT_RUNPATH tag from executables and libraries. But doing so
  8404. # requires that you compile everything twice, which is a pain.
  8405. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8406. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8407. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8408. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8409. else
  8410. ld_shlibs=no
  8411. fi
  8412. ;;
  8413. esac
  8414. ;;
  8415. sunos4*)
  8416. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8417. wlarc=
  8418. hardcode_direct=yes
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. *)
  8422. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8423. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8424. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8425. else
  8426. ld_shlibs=no
  8427. fi
  8428. ;;
  8429. esac
  8430. if test "$ld_shlibs" = no; then
  8431. runpath_var=
  8432. hardcode_libdir_flag_spec=
  8433. export_dynamic_flag_spec=
  8434. whole_archive_flag_spec=
  8435. fi
  8436. else
  8437. # PORTME fill in a description of your system's linker (not GNU ld)
  8438. case $host_os in
  8439. aix3*)
  8440. allow_undefined_flag=unsupported
  8441. always_export_symbols=yes
  8442. 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'
  8443. # Note: this linker hardcodes the directories in LIBPATH if there
  8444. # are no directories specified by -L.
  8445. hardcode_minus_L=yes
  8446. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8447. # Neither direct hardcoding nor static linking is supported with a
  8448. # broken collect2.
  8449. hardcode_direct=unsupported
  8450. fi
  8451. ;;
  8452. aix[4-9]*)
  8453. if test "$host_cpu" = ia64; then
  8454. # On IA64, the linker does run time linking by default, so we don't
  8455. # have to do anything special.
  8456. aix_use_runtimelinking=no
  8457. exp_sym_flag='-Bexport'
  8458. no_entry_flag=""
  8459. else
  8460. # If we're using GNU nm, then we don't want the "-C" option.
  8461. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8462. # Also, AIX nm treats weak defined symbols like other global
  8463. # defined symbols, whereas GNU nm marks them as "W".
  8464. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8465. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8466. else
  8467. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8468. fi
  8469. aix_use_runtimelinking=no
  8470. # Test if we are trying to use run time linking or normal
  8471. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8472. # need to do runtime linking.
  8473. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8474. for ld_flag in $LDFLAGS; do
  8475. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8476. aix_use_runtimelinking=yes
  8477. break
  8478. fi
  8479. done
  8480. ;;
  8481. esac
  8482. exp_sym_flag='-bexport'
  8483. no_entry_flag='-bnoentry'
  8484. fi
  8485. # When large executables or shared objects are built, AIX ld can
  8486. # have problems creating the table of contents. If linking a library
  8487. # or program results in "error TOC overflow" add -mminimal-toc to
  8488. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8489. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8490. archive_cmds=''
  8491. hardcode_direct=yes
  8492. hardcode_direct_absolute=yes
  8493. hardcode_libdir_separator=':'
  8494. link_all_deplibs=yes
  8495. file_list_spec='${wl}-f,'
  8496. if test "$GCC" = yes; then
  8497. case $host_os in aix4.[012]|aix4.[012].*)
  8498. # We only want to do this on AIX 4.2 and lower, the check
  8499. # below for broken collect2 doesn't work under 4.3+
  8500. collect2name=`${CC} -print-prog-name=collect2`
  8501. if test -f "$collect2name" &&
  8502. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8503. then
  8504. # We have reworked collect2
  8505. :
  8506. else
  8507. # We have old collect2
  8508. hardcode_direct=unsupported
  8509. # It fails to find uninstalled libraries when the uninstalled
  8510. # path is not listed in the libpath. Setting hardcode_minus_L
  8511. # to unsupported forces relinking
  8512. hardcode_minus_L=yes
  8513. hardcode_libdir_flag_spec='-L$libdir'
  8514. hardcode_libdir_separator=
  8515. fi
  8516. ;;
  8517. esac
  8518. shared_flag='-shared'
  8519. if test "$aix_use_runtimelinking" = yes; then
  8520. shared_flag="$shared_flag "'${wl}-G'
  8521. fi
  8522. else
  8523. # not using gcc
  8524. if test "$host_cpu" = ia64; then
  8525. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8526. # chokes on -Wl,-G. The following line is correct:
  8527. shared_flag='-G'
  8528. else
  8529. if test "$aix_use_runtimelinking" = yes; then
  8530. shared_flag='${wl}-G'
  8531. else
  8532. shared_flag='${wl}-bM:SRE'
  8533. fi
  8534. fi
  8535. fi
  8536. export_dynamic_flag_spec='${wl}-bexpall'
  8537. # It seems that -bexpall does not export symbols beginning with
  8538. # underscore (_), so it is better to generate a list of symbols to export.
  8539. always_export_symbols=yes
  8540. if test "$aix_use_runtimelinking" = yes; then
  8541. # Warning - without using the other runtime loading flags (-brtl),
  8542. # -berok will link without error, but may produce a broken library.
  8543. allow_undefined_flag='-berok'
  8544. # Determine the default libpath from the value encoded in an
  8545. # empty executable.
  8546. if test "${lt_cv_aix_libpath+set}" = set; then
  8547. aix_libpath=$lt_cv_aix_libpath
  8548. else
  8549. if ${lt_cv_aix_libpath_+:} false; then :
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8553. /* end confdefs.h. */
  8554. int
  8555. main ()
  8556. {
  8557. ;
  8558. return 0;
  8559. }
  8560. _ACEOF
  8561. if ac_fn_c_try_link "$LINENO"; then :
  8562. lt_aix_libpath_sed='
  8563. /Import File Strings/,/^$/ {
  8564. /^0/ {
  8565. s/^0 *\([^ ]*\) *$/\1/
  8566. p
  8567. }
  8568. }'
  8569. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8570. # Check for a 64-bit object if we didn't find anything.
  8571. if test -z "$lt_cv_aix_libpath_"; then
  8572. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8573. fi
  8574. fi
  8575. rm -f core conftest.err conftest.$ac_objext \
  8576. conftest$ac_exeext conftest.$ac_ext
  8577. if test -z "$lt_cv_aix_libpath_"; then
  8578. lt_cv_aix_libpath_="/usr/lib:/lib"
  8579. fi
  8580. fi
  8581. aix_libpath=$lt_cv_aix_libpath_
  8582. fi
  8583. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8584. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8585. else
  8586. if test "$host_cpu" = ia64; then
  8587. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8588. allow_undefined_flag="-z nodefs"
  8589. 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"
  8590. else
  8591. # Determine the default libpath from the value encoded in an
  8592. # empty executable.
  8593. if test "${lt_cv_aix_libpath+set}" = set; then
  8594. aix_libpath=$lt_cv_aix_libpath
  8595. else
  8596. if ${lt_cv_aix_libpath_+:} false; then :
  8597. $as_echo_n "(cached) " >&6
  8598. else
  8599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8600. /* end confdefs.h. */
  8601. int
  8602. main ()
  8603. {
  8604. ;
  8605. return 0;
  8606. }
  8607. _ACEOF
  8608. if ac_fn_c_try_link "$LINENO"; then :
  8609. lt_aix_libpath_sed='
  8610. /Import File Strings/,/^$/ {
  8611. /^0/ {
  8612. s/^0 *\([^ ]*\) *$/\1/
  8613. p
  8614. }
  8615. }'
  8616. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8617. # Check for a 64-bit object if we didn't find anything.
  8618. if test -z "$lt_cv_aix_libpath_"; then
  8619. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8620. fi
  8621. fi
  8622. rm -f core conftest.err conftest.$ac_objext \
  8623. conftest$ac_exeext conftest.$ac_ext
  8624. if test -z "$lt_cv_aix_libpath_"; then
  8625. lt_cv_aix_libpath_="/usr/lib:/lib"
  8626. fi
  8627. fi
  8628. aix_libpath=$lt_cv_aix_libpath_
  8629. fi
  8630. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8631. # Warning - without using the other run time loading flags,
  8632. # -berok will link without error, but may produce a broken library.
  8633. no_undefined_flag=' ${wl}-bernotok'
  8634. allow_undefined_flag=' ${wl}-berok'
  8635. if test "$with_gnu_ld" = yes; then
  8636. # We only use this code for GNU lds that support --whole-archive.
  8637. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8638. else
  8639. # Exported symbols can be pulled into shared objects from archives
  8640. whole_archive_flag_spec='$convenience'
  8641. fi
  8642. archive_cmds_need_lc=yes
  8643. # This is similar to how AIX traditionally builds its shared libraries.
  8644. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8645. fi
  8646. fi
  8647. ;;
  8648. amigaos*)
  8649. case $host_cpu in
  8650. powerpc)
  8651. # see comment about AmigaOS4 .so support
  8652. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8653. archive_expsym_cmds=''
  8654. ;;
  8655. m68k)
  8656. 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)'
  8657. hardcode_libdir_flag_spec='-L$libdir'
  8658. hardcode_minus_L=yes
  8659. ;;
  8660. esac
  8661. ;;
  8662. bsdi[45]*)
  8663. export_dynamic_flag_spec=-rdynamic
  8664. ;;
  8665. cygwin* | mingw* | pw32* | cegcc*)
  8666. # When not using gcc, we currently assume that we are using
  8667. # Microsoft Visual C++.
  8668. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8669. # no search path for DLLs.
  8670. case $cc_basename in
  8671. cl*)
  8672. # Native MSVC
  8673. hardcode_libdir_flag_spec=' '
  8674. allow_undefined_flag=unsupported
  8675. always_export_symbols=yes
  8676. file_list_spec='@'
  8677. # Tell ltmain to make .lib files, not .a files.
  8678. libext=lib
  8679. # Tell ltmain to make .dll files, not .so files.
  8680. shrext_cmds=".dll"
  8681. # FIXME: Setting linknames here is a bad hack.
  8682. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8683. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8684. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8685. else
  8686. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8687. fi~
  8688. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8689. linknames='
  8690. # The linker will not automatically build a static lib if we build a DLL.
  8691. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8692. enable_shared_with_static_runtimes=yes
  8693. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8694. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8695. # Don't use ranlib
  8696. old_postinstall_cmds='chmod 644 $oldlib'
  8697. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8698. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8699. case $lt_outputfile in
  8700. *.exe|*.EXE) ;;
  8701. *)
  8702. lt_outputfile="$lt_outputfile.exe"
  8703. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8704. ;;
  8705. esac~
  8706. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8707. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8708. $RM "$lt_outputfile.manifest";
  8709. fi'
  8710. ;;
  8711. *)
  8712. # Assume MSVC wrapper
  8713. hardcode_libdir_flag_spec=' '
  8714. allow_undefined_flag=unsupported
  8715. # Tell ltmain to make .lib files, not .a files.
  8716. libext=lib
  8717. # Tell ltmain to make .dll files, not .so files.
  8718. shrext_cmds=".dll"
  8719. # FIXME: Setting linknames here is a bad hack.
  8720. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8721. # The linker will automatically build a .lib file if we build a DLL.
  8722. old_archive_from_new_cmds='true'
  8723. # FIXME: Should let the user specify the lib program.
  8724. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8725. enable_shared_with_static_runtimes=yes
  8726. ;;
  8727. esac
  8728. ;;
  8729. darwin* | rhapsody*)
  8730. archive_cmds_need_lc=no
  8731. hardcode_direct=no
  8732. hardcode_automatic=yes
  8733. hardcode_shlibpath_var=unsupported
  8734. if test "$lt_cv_ld_force_load" = "yes"; then
  8735. 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\"`'
  8736. else
  8737. whole_archive_flag_spec=''
  8738. fi
  8739. link_all_deplibs=yes
  8740. allow_undefined_flag="$_lt_dar_allow_undefined"
  8741. case $cc_basename in
  8742. ifort*) _lt_dar_can_shared=yes ;;
  8743. *) _lt_dar_can_shared=$GCC ;;
  8744. esac
  8745. if test "$_lt_dar_can_shared" = "yes"; then
  8746. output_verbose_link_cmd=func_echo_all
  8747. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8748. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8749. 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}"
  8750. 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}"
  8751. else
  8752. ld_shlibs=no
  8753. fi
  8754. ;;
  8755. dgux*)
  8756. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8757. hardcode_libdir_flag_spec='-L$libdir'
  8758. hardcode_shlibpath_var=no
  8759. ;;
  8760. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8761. # support. Future versions do this automatically, but an explicit c++rt0.o
  8762. # does not break anything, and helps significantly (at the cost of a little
  8763. # extra space).
  8764. freebsd2.2*)
  8765. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8766. hardcode_libdir_flag_spec='-R$libdir'
  8767. hardcode_direct=yes
  8768. hardcode_shlibpath_var=no
  8769. ;;
  8770. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8771. freebsd2.*)
  8772. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8773. hardcode_direct=yes
  8774. hardcode_minus_L=yes
  8775. hardcode_shlibpath_var=no
  8776. ;;
  8777. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8778. freebsd* | dragonfly*)
  8779. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8780. hardcode_libdir_flag_spec='-R$libdir'
  8781. hardcode_direct=yes
  8782. hardcode_shlibpath_var=no
  8783. ;;
  8784. hpux9*)
  8785. if test "$GCC" = yes; then
  8786. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8787. else
  8788. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8789. fi
  8790. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8791. hardcode_libdir_separator=:
  8792. hardcode_direct=yes
  8793. # hardcode_minus_L: Not really in the search PATH,
  8794. # but as the default location of the library.
  8795. hardcode_minus_L=yes
  8796. export_dynamic_flag_spec='${wl}-E'
  8797. ;;
  8798. hpux10*)
  8799. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8800. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8801. else
  8802. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8803. fi
  8804. if test "$with_gnu_ld" = no; then
  8805. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8806. hardcode_libdir_separator=:
  8807. hardcode_direct=yes
  8808. hardcode_direct_absolute=yes
  8809. export_dynamic_flag_spec='${wl}-E'
  8810. # hardcode_minus_L: Not really in the search PATH,
  8811. # but as the default location of the library.
  8812. hardcode_minus_L=yes
  8813. fi
  8814. ;;
  8815. hpux11*)
  8816. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8817. case $host_cpu in
  8818. hppa*64*)
  8819. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8820. ;;
  8821. ia64*)
  8822. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8823. ;;
  8824. *)
  8825. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8826. ;;
  8827. esac
  8828. else
  8829. case $host_cpu in
  8830. hppa*64*)
  8831. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8832. ;;
  8833. ia64*)
  8834. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8835. ;;
  8836. *)
  8837. # Older versions of the 11.00 compiler do not understand -b yet
  8838. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8840. $as_echo_n "checking if $CC understands -b... " >&6; }
  8841. if ${lt_cv_prog_compiler__b+:} false; then :
  8842. $as_echo_n "(cached) " >&6
  8843. else
  8844. lt_cv_prog_compiler__b=no
  8845. save_LDFLAGS="$LDFLAGS"
  8846. LDFLAGS="$LDFLAGS -b"
  8847. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8848. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8849. # The linker can only warn and ignore the option if not recognized
  8850. # So say no if there are warnings
  8851. if test -s conftest.err; then
  8852. # Append any errors to the config.log.
  8853. cat conftest.err 1>&5
  8854. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8855. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8856. if diff conftest.exp conftest.er2 >/dev/null; then
  8857. lt_cv_prog_compiler__b=yes
  8858. fi
  8859. else
  8860. lt_cv_prog_compiler__b=yes
  8861. fi
  8862. fi
  8863. $RM -r conftest*
  8864. LDFLAGS="$save_LDFLAGS"
  8865. fi
  8866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8867. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8868. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8869. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8870. else
  8871. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8872. fi
  8873. ;;
  8874. esac
  8875. fi
  8876. if test "$with_gnu_ld" = no; then
  8877. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8878. hardcode_libdir_separator=:
  8879. case $host_cpu in
  8880. hppa*64*|ia64*)
  8881. hardcode_direct=no
  8882. hardcode_shlibpath_var=no
  8883. ;;
  8884. *)
  8885. hardcode_direct=yes
  8886. hardcode_direct_absolute=yes
  8887. export_dynamic_flag_spec='${wl}-E'
  8888. # hardcode_minus_L: Not really in the search PATH,
  8889. # but as the default location of the library.
  8890. hardcode_minus_L=yes
  8891. ;;
  8892. esac
  8893. fi
  8894. ;;
  8895. irix5* | irix6* | nonstopux*)
  8896. if test "$GCC" = yes; then
  8897. 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'
  8898. # Try to use the -exported_symbol ld option, if it does not
  8899. # work, assume that -exports_file does not work either and
  8900. # implicitly export all symbols.
  8901. # This should be the same for all languages, so no per-tag cache variable.
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8903. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8904. if ${lt_cv_irix_exported_symbol+:} false; then :
  8905. $as_echo_n "(cached) " >&6
  8906. else
  8907. save_LDFLAGS="$LDFLAGS"
  8908. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8910. /* end confdefs.h. */
  8911. int foo (void) { return 0; }
  8912. _ACEOF
  8913. if ac_fn_c_try_link "$LINENO"; then :
  8914. lt_cv_irix_exported_symbol=yes
  8915. else
  8916. lt_cv_irix_exported_symbol=no
  8917. fi
  8918. rm -f core conftest.err conftest.$ac_objext \
  8919. conftest$ac_exeext conftest.$ac_ext
  8920. LDFLAGS="$save_LDFLAGS"
  8921. fi
  8922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8923. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8924. if test "$lt_cv_irix_exported_symbol" = yes; then
  8925. 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'
  8926. fi
  8927. else
  8928. 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'
  8929. 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'
  8930. fi
  8931. archive_cmds_need_lc='no'
  8932. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8933. hardcode_libdir_separator=:
  8934. inherit_rpath=yes
  8935. link_all_deplibs=yes
  8936. ;;
  8937. netbsd*)
  8938. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8939. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8940. else
  8941. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8942. fi
  8943. hardcode_libdir_flag_spec='-R$libdir'
  8944. hardcode_direct=yes
  8945. hardcode_shlibpath_var=no
  8946. ;;
  8947. newsos6)
  8948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8949. hardcode_direct=yes
  8950. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8951. hardcode_libdir_separator=:
  8952. hardcode_shlibpath_var=no
  8953. ;;
  8954. *nto* | *qnx*)
  8955. ;;
  8956. openbsd*)
  8957. if test -f /usr/libexec/ld.so; then
  8958. hardcode_direct=yes
  8959. hardcode_shlibpath_var=no
  8960. hardcode_direct_absolute=yes
  8961. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8962. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8963. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8964. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8965. export_dynamic_flag_spec='${wl}-E'
  8966. else
  8967. case $host_os in
  8968. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8969. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8970. hardcode_libdir_flag_spec='-R$libdir'
  8971. ;;
  8972. *)
  8973. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8974. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8975. ;;
  8976. esac
  8977. fi
  8978. else
  8979. ld_shlibs=no
  8980. fi
  8981. ;;
  8982. os2*)
  8983. hardcode_libdir_flag_spec='-L$libdir'
  8984. hardcode_minus_L=yes
  8985. allow_undefined_flag=unsupported
  8986. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8987. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8988. ;;
  8989. osf3*)
  8990. if test "$GCC" = yes; then
  8991. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8992. 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'
  8993. else
  8994. allow_undefined_flag=' -expect_unresolved \*'
  8995. 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'
  8996. fi
  8997. archive_cmds_need_lc='no'
  8998. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8999. hardcode_libdir_separator=:
  9000. ;;
  9001. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9002. if test "$GCC" = yes; then
  9003. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9004. 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'
  9005. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9006. else
  9007. allow_undefined_flag=' -expect_unresolved \*'
  9008. 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'
  9009. 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~
  9010. $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'
  9011. # Both c and cxx compiler support -rpath directly
  9012. hardcode_libdir_flag_spec='-rpath $libdir'
  9013. fi
  9014. archive_cmds_need_lc='no'
  9015. hardcode_libdir_separator=:
  9016. ;;
  9017. solaris*)
  9018. no_undefined_flag=' -z defs'
  9019. if test "$GCC" = yes; then
  9020. wlarc='${wl}'
  9021. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9022. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9023. $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'
  9024. else
  9025. case `$CC -V 2>&1` in
  9026. *"Compilers 5.0"*)
  9027. wlarc=''
  9028. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9029. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9030. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9031. ;;
  9032. *)
  9033. wlarc='${wl}'
  9034. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9036. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9037. ;;
  9038. esac
  9039. fi
  9040. hardcode_libdir_flag_spec='-R$libdir'
  9041. hardcode_shlibpath_var=no
  9042. case $host_os in
  9043. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9044. *)
  9045. # The compiler driver will combine and reorder linker options,
  9046. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9047. # but is careful enough not to reorder.
  9048. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9049. if test "$GCC" = yes; then
  9050. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9051. else
  9052. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9053. fi
  9054. ;;
  9055. esac
  9056. link_all_deplibs=yes
  9057. ;;
  9058. sunos4*)
  9059. if test "x$host_vendor" = xsequent; then
  9060. # Use $CC to link under sequent, because it throws in some extra .o
  9061. # files that make .init and .fini sections work.
  9062. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9063. else
  9064. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9065. fi
  9066. hardcode_libdir_flag_spec='-L$libdir'
  9067. hardcode_direct=yes
  9068. hardcode_minus_L=yes
  9069. hardcode_shlibpath_var=no
  9070. ;;
  9071. sysv4)
  9072. case $host_vendor in
  9073. sni)
  9074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9075. hardcode_direct=yes # is this really true???
  9076. ;;
  9077. siemens)
  9078. ## LD is ld it makes a PLAMLIB
  9079. ## CC just makes a GrossModule.
  9080. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9081. reload_cmds='$CC -r -o $output$reload_objs'
  9082. hardcode_direct=no
  9083. ;;
  9084. motorola)
  9085. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9086. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9087. ;;
  9088. esac
  9089. runpath_var='LD_RUN_PATH'
  9090. hardcode_shlibpath_var=no
  9091. ;;
  9092. sysv4.3*)
  9093. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9094. hardcode_shlibpath_var=no
  9095. export_dynamic_flag_spec='-Bexport'
  9096. ;;
  9097. sysv4*MP*)
  9098. if test -d /usr/nec; then
  9099. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9100. hardcode_shlibpath_var=no
  9101. runpath_var=LD_RUN_PATH
  9102. hardcode_runpath_var=yes
  9103. ld_shlibs=yes
  9104. fi
  9105. ;;
  9106. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9107. no_undefined_flag='${wl}-z,text'
  9108. archive_cmds_need_lc=no
  9109. hardcode_shlibpath_var=no
  9110. runpath_var='LD_RUN_PATH'
  9111. if test "$GCC" = yes; then
  9112. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9113. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9114. else
  9115. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9116. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9117. fi
  9118. ;;
  9119. sysv5* | sco3.2v5* | sco5v6*)
  9120. # Note: We can NOT use -z defs as we might desire, because we do not
  9121. # link with -lc, and that would cause any symbols used from libc to
  9122. # always be unresolved, which means just about no library would
  9123. # ever link correctly. If we're not using GNU ld we use -z text
  9124. # though, which does catch some bad symbols but isn't as heavy-handed
  9125. # as -z defs.
  9126. no_undefined_flag='${wl}-z,text'
  9127. allow_undefined_flag='${wl}-z,nodefs'
  9128. archive_cmds_need_lc=no
  9129. hardcode_shlibpath_var=no
  9130. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9131. hardcode_libdir_separator=':'
  9132. link_all_deplibs=yes
  9133. export_dynamic_flag_spec='${wl}-Bexport'
  9134. runpath_var='LD_RUN_PATH'
  9135. if test "$GCC" = yes; then
  9136. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9137. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9138. else
  9139. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9140. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9141. fi
  9142. ;;
  9143. uts4*)
  9144. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9145. hardcode_libdir_flag_spec='-L$libdir'
  9146. hardcode_shlibpath_var=no
  9147. ;;
  9148. *)
  9149. ld_shlibs=no
  9150. ;;
  9151. esac
  9152. if test x$host_vendor = xsni; then
  9153. case $host in
  9154. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9155. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9156. ;;
  9157. esac
  9158. fi
  9159. fi
  9160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9161. $as_echo "$ld_shlibs" >&6; }
  9162. test "$ld_shlibs" = no && can_build_shared=no
  9163. with_gnu_ld=$with_gnu_ld
  9164. #
  9165. # Do we need to explicitly link libc?
  9166. #
  9167. case "x$archive_cmds_need_lc" in
  9168. x|xyes)
  9169. # Assume -lc should be added
  9170. archive_cmds_need_lc=yes
  9171. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9172. case $archive_cmds in
  9173. *'~'*)
  9174. # FIXME: we may have to deal with multi-command sequences.
  9175. ;;
  9176. '$CC '*)
  9177. # Test whether the compiler implicitly links with -lc since on some
  9178. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9179. # to ld, don't add -lc before -lgcc.
  9180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9181. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9182. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9183. $as_echo_n "(cached) " >&6
  9184. else
  9185. $RM conftest*
  9186. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9188. (eval $ac_compile) 2>&5
  9189. ac_status=$?
  9190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9191. test $ac_status = 0; } 2>conftest.err; then
  9192. soname=conftest
  9193. lib=conftest
  9194. libobjs=conftest.$ac_objext
  9195. deplibs=
  9196. wl=$lt_prog_compiler_wl
  9197. pic_flag=$lt_prog_compiler_pic
  9198. compiler_flags=-v
  9199. linker_flags=-v
  9200. verstring=
  9201. output_objdir=.
  9202. libname=conftest
  9203. lt_save_allow_undefined_flag=$allow_undefined_flag
  9204. allow_undefined_flag=
  9205. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9206. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9207. ac_status=$?
  9208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9209. test $ac_status = 0; }
  9210. then
  9211. lt_cv_archive_cmds_need_lc=no
  9212. else
  9213. lt_cv_archive_cmds_need_lc=yes
  9214. fi
  9215. allow_undefined_flag=$lt_save_allow_undefined_flag
  9216. else
  9217. cat conftest.err 1>&5
  9218. fi
  9219. $RM conftest*
  9220. fi
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9222. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9223. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9224. ;;
  9225. esac
  9226. fi
  9227. ;;
  9228. esac
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9230. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9231. if test "$GCC" = yes; then
  9232. case $host_os in
  9233. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9234. *) lt_awk_arg="/^libraries:/" ;;
  9235. esac
  9236. case $host_os in
  9237. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9238. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9239. esac
  9240. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9241. case $lt_search_path_spec in
  9242. *\;*)
  9243. # if the path contains ";" then we assume it to be the separator
  9244. # otherwise default to the standard path separator (i.e. ":") - it is
  9245. # assumed that no part of a normal pathname contains ";" but that should
  9246. # okay in the real world where ";" in dirpaths is itself problematic.
  9247. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9248. ;;
  9249. *)
  9250. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9251. ;;
  9252. esac
  9253. # Ok, now we have the path, separated by spaces, we can step through it
  9254. # and add multilib dir if necessary.
  9255. lt_tmp_lt_search_path_spec=
  9256. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9257. for lt_sys_path in $lt_search_path_spec; do
  9258. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9259. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9260. else
  9261. test -d "$lt_sys_path" && \
  9262. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9263. fi
  9264. done
  9265. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9266. BEGIN {RS=" "; FS="/|\n";} {
  9267. lt_foo="";
  9268. lt_count=0;
  9269. for (lt_i = NF; lt_i > 0; lt_i--) {
  9270. if ($lt_i != "" && $lt_i != ".") {
  9271. if ($lt_i == "..") {
  9272. lt_count++;
  9273. } else {
  9274. if (lt_count == 0) {
  9275. lt_foo="/" $lt_i lt_foo;
  9276. } else {
  9277. lt_count--;
  9278. }
  9279. }
  9280. }
  9281. }
  9282. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9283. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9284. }'`
  9285. # AWK program above erroneously prepends '/' to C:/dos/paths
  9286. # for these hosts.
  9287. case $host_os in
  9288. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9289. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9290. esac
  9291. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9292. else
  9293. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9294. fi
  9295. library_names_spec=
  9296. libname_spec='lib$name'
  9297. soname_spec=
  9298. shrext_cmds=".so"
  9299. postinstall_cmds=
  9300. postuninstall_cmds=
  9301. finish_cmds=
  9302. finish_eval=
  9303. shlibpath_var=
  9304. shlibpath_overrides_runpath=unknown
  9305. version_type=none
  9306. dynamic_linker="$host_os ld.so"
  9307. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9308. need_lib_prefix=unknown
  9309. hardcode_into_libs=no
  9310. # when you set need_version to no, make sure it does not cause -set_version
  9311. # flags to be left without arguments
  9312. need_version=unknown
  9313. case $host_os in
  9314. aix3*)
  9315. version_type=linux # correct to gnu/linux during the next big refactor
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9317. shlibpath_var=LIBPATH
  9318. # AIX 3 has no versioning support, so we append a major version to the name.
  9319. soname_spec='${libname}${release}${shared_ext}$major'
  9320. ;;
  9321. aix[4-9]*)
  9322. version_type=linux # correct to gnu/linux during the next big refactor
  9323. need_lib_prefix=no
  9324. need_version=no
  9325. hardcode_into_libs=yes
  9326. if test "$host_cpu" = ia64; then
  9327. # AIX 5 supports IA64
  9328. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. else
  9331. # With GCC up to 2.95.x, collect2 would create an import file
  9332. # for dependence libraries. The import file would start with
  9333. # the line `#! .'. This would cause the generated library to
  9334. # depend on `.', always an invalid library. This was fixed in
  9335. # development snapshots of GCC prior to 3.0.
  9336. case $host_os in
  9337. aix4 | aix4.[01] | aix4.[01].*)
  9338. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9339. echo ' yes '
  9340. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9341. :
  9342. else
  9343. can_build_shared=no
  9344. fi
  9345. ;;
  9346. esac
  9347. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9348. # soname into executable. Probably we can add versioning support to
  9349. # collect2, so additional links can be useful in future.
  9350. if test "$aix_use_runtimelinking" = yes; then
  9351. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9352. # instead of lib<name>.a to let people know that these are not
  9353. # typical AIX shared libraries.
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9355. else
  9356. # We preserve .a as extension for shared libraries through AIX4.2
  9357. # and later when we are not doing run time linking.
  9358. library_names_spec='${libname}${release}.a $libname.a'
  9359. soname_spec='${libname}${release}${shared_ext}$major'
  9360. fi
  9361. shlibpath_var=LIBPATH
  9362. fi
  9363. ;;
  9364. amigaos*)
  9365. case $host_cpu in
  9366. powerpc)
  9367. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9368. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9370. ;;
  9371. m68k)
  9372. library_names_spec='$libname.ixlibrary $libname.a'
  9373. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9374. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  9375. ;;
  9376. esac
  9377. ;;
  9378. beos*)
  9379. library_names_spec='${libname}${shared_ext}'
  9380. dynamic_linker="$host_os ld.so"
  9381. shlibpath_var=LIBRARY_PATH
  9382. ;;
  9383. bsdi[45]*)
  9384. version_type=linux # correct to gnu/linux during the next big refactor
  9385. need_version=no
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9389. shlibpath_var=LD_LIBRARY_PATH
  9390. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9391. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9392. # the default ld.so.conf also contains /usr/contrib/lib and
  9393. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9394. # libtool to hard-code these into programs
  9395. ;;
  9396. cygwin* | mingw* | pw32* | cegcc*)
  9397. version_type=windows
  9398. shrext_cmds=".dll"
  9399. need_version=no
  9400. need_lib_prefix=no
  9401. case $GCC,$cc_basename in
  9402. yes,*)
  9403. # gcc
  9404. library_names_spec='$libname.dll.a'
  9405. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9406. postinstall_cmds='base_file=`basename \${file}`~
  9407. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9408. dldir=$destdir/`dirname \$dlpath`~
  9409. test -d \$dldir || mkdir -p \$dldir~
  9410. $install_prog $dir/$dlname \$dldir/$dlname~
  9411. chmod a+x \$dldir/$dlname~
  9412. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9413. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9414. fi'
  9415. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9416. dlpath=$dir/\$dldll~
  9417. $RM \$dlpath'
  9418. shlibpath_overrides_runpath=yes
  9419. case $host_os in
  9420. cygwin*)
  9421. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9422. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9423. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9424. ;;
  9425. mingw* | cegcc*)
  9426. # MinGW DLLs use traditional 'lib' prefix
  9427. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9428. ;;
  9429. pw32*)
  9430. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9431. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9432. ;;
  9433. esac
  9434. dynamic_linker='Win32 ld.exe'
  9435. ;;
  9436. *,cl*)
  9437. # Native MSVC
  9438. libname_spec='$name'
  9439. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9440. library_names_spec='${libname}.dll.lib'
  9441. case $build_os in
  9442. mingw*)
  9443. sys_lib_search_path_spec=
  9444. lt_save_ifs=$IFS
  9445. IFS=';'
  9446. for lt_path in $LIB
  9447. do
  9448. IFS=$lt_save_ifs
  9449. # Let DOS variable expansion print the short 8.3 style file name.
  9450. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9451. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9452. done
  9453. IFS=$lt_save_ifs
  9454. # Convert to MSYS style.
  9455. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9456. ;;
  9457. cygwin*)
  9458. # Convert to unix form, then to dos form, then back to unix form
  9459. # but this time dos style (no spaces!) so that the unix form looks
  9460. # like /cygdrive/c/PROGRA~1:/cygdr...
  9461. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9462. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9463. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9464. ;;
  9465. *)
  9466. sys_lib_search_path_spec="$LIB"
  9467. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9468. # It is most probably a Windows format PATH.
  9469. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9470. else
  9471. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9472. fi
  9473. # FIXME: find the short name or the path components, as spaces are
  9474. # common. (e.g. "Program Files" -> "PROGRA~1")
  9475. ;;
  9476. esac
  9477. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9478. postinstall_cmds='base_file=`basename \${file}`~
  9479. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9480. dldir=$destdir/`dirname \$dlpath`~
  9481. test -d \$dldir || mkdir -p \$dldir~
  9482. $install_prog $dir/$dlname \$dldir/$dlname'
  9483. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9484. dlpath=$dir/\$dldll~
  9485. $RM \$dlpath'
  9486. shlibpath_overrides_runpath=yes
  9487. dynamic_linker='Win32 link.exe'
  9488. ;;
  9489. *)
  9490. # Assume MSVC wrapper
  9491. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9492. dynamic_linker='Win32 ld.exe'
  9493. ;;
  9494. esac
  9495. # FIXME: first we should search . and the directory the executable is in
  9496. shlibpath_var=PATH
  9497. ;;
  9498. darwin* | rhapsody*)
  9499. dynamic_linker="$host_os dyld"
  9500. version_type=darwin
  9501. need_lib_prefix=no
  9502. need_version=no
  9503. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9504. soname_spec='${libname}${release}${major}$shared_ext'
  9505. shlibpath_overrides_runpath=yes
  9506. shlibpath_var=DYLD_LIBRARY_PATH
  9507. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9508. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9509. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9510. ;;
  9511. dgux*)
  9512. version_type=linux # correct to gnu/linux during the next big refactor
  9513. need_lib_prefix=no
  9514. need_version=no
  9515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9516. soname_spec='${libname}${release}${shared_ext}$major'
  9517. shlibpath_var=LD_LIBRARY_PATH
  9518. ;;
  9519. freebsd* | dragonfly*)
  9520. # DragonFly does not have aout. When/if they implement a new
  9521. # versioning mechanism, adjust this.
  9522. if test -x /usr/bin/objformat; then
  9523. objformat=`/usr/bin/objformat`
  9524. else
  9525. case $host_os in
  9526. freebsd[23].*) objformat=aout ;;
  9527. *) objformat=elf ;;
  9528. esac
  9529. fi
  9530. version_type=freebsd-$objformat
  9531. case $version_type in
  9532. freebsd-elf*)
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9534. need_version=no
  9535. need_lib_prefix=no
  9536. ;;
  9537. freebsd-*)
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9539. need_version=yes
  9540. ;;
  9541. esac
  9542. shlibpath_var=LD_LIBRARY_PATH
  9543. case $host_os in
  9544. freebsd2.*)
  9545. shlibpath_overrides_runpath=yes
  9546. ;;
  9547. freebsd3.[01]* | freebsdelf3.[01]*)
  9548. shlibpath_overrides_runpath=yes
  9549. hardcode_into_libs=yes
  9550. ;;
  9551. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9552. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9553. shlibpath_overrides_runpath=no
  9554. hardcode_into_libs=yes
  9555. ;;
  9556. *) # from 4.6 on, and DragonFly
  9557. shlibpath_overrides_runpath=yes
  9558. hardcode_into_libs=yes
  9559. ;;
  9560. esac
  9561. ;;
  9562. gnu*)
  9563. version_type=linux # correct to gnu/linux during the next big refactor
  9564. need_lib_prefix=no
  9565. need_version=no
  9566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9567. soname_spec='${libname}${release}${shared_ext}$major'
  9568. shlibpath_var=LD_LIBRARY_PATH
  9569. shlibpath_overrides_runpath=no
  9570. hardcode_into_libs=yes
  9571. ;;
  9572. haiku*)
  9573. version_type=linux # correct to gnu/linux during the next big refactor
  9574. need_lib_prefix=no
  9575. need_version=no
  9576. dynamic_linker="$host_os runtime_loader"
  9577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9578. soname_spec='${libname}${release}${shared_ext}$major'
  9579. shlibpath_var=LIBRARY_PATH
  9580. shlibpath_overrides_runpath=yes
  9581. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9582. hardcode_into_libs=yes
  9583. ;;
  9584. hpux9* | hpux10* | hpux11*)
  9585. # Give a soname corresponding to the major version so that dld.sl refuses to
  9586. # link against other versions.
  9587. version_type=sunos
  9588. need_lib_prefix=no
  9589. need_version=no
  9590. case $host_cpu in
  9591. ia64*)
  9592. shrext_cmds='.so'
  9593. hardcode_into_libs=yes
  9594. dynamic_linker="$host_os dld.so"
  9595. shlibpath_var=LD_LIBRARY_PATH
  9596. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9598. soname_spec='${libname}${release}${shared_ext}$major'
  9599. if test "X$HPUX_IA64_MODE" = X32; then
  9600. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9601. else
  9602. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9603. fi
  9604. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9605. ;;
  9606. hppa*64*)
  9607. shrext_cmds='.sl'
  9608. hardcode_into_libs=yes
  9609. dynamic_linker="$host_os dld.sl"
  9610. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9611. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9613. soname_spec='${libname}${release}${shared_ext}$major'
  9614. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9615. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9616. ;;
  9617. *)
  9618. shrext_cmds='.sl'
  9619. dynamic_linker="$host_os dld.sl"
  9620. shlibpath_var=SHLIB_PATH
  9621. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9623. soname_spec='${libname}${release}${shared_ext}$major'
  9624. ;;
  9625. esac
  9626. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9627. postinstall_cmds='chmod 555 $lib'
  9628. # or fails outright, so override atomically:
  9629. install_override_mode=555
  9630. ;;
  9631. interix[3-9]*)
  9632. version_type=linux # correct to gnu/linux during the next big refactor
  9633. need_lib_prefix=no
  9634. need_version=no
  9635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9636. soname_spec='${libname}${release}${shared_ext}$major'
  9637. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9638. shlibpath_var=LD_LIBRARY_PATH
  9639. shlibpath_overrides_runpath=no
  9640. hardcode_into_libs=yes
  9641. ;;
  9642. irix5* | irix6* | nonstopux*)
  9643. case $host_os in
  9644. nonstopux*) version_type=nonstopux ;;
  9645. *)
  9646. if test "$lt_cv_prog_gnu_ld" = yes; then
  9647. version_type=linux # correct to gnu/linux during the next big refactor
  9648. else
  9649. version_type=irix
  9650. fi ;;
  9651. esac
  9652. need_lib_prefix=no
  9653. need_version=no
  9654. soname_spec='${libname}${release}${shared_ext}$major'
  9655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9656. case $host_os in
  9657. irix5* | nonstopux*)
  9658. libsuff= shlibsuff=
  9659. ;;
  9660. *)
  9661. case $LD in # libtool.m4 will add one of these switches to LD
  9662. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9663. libsuff= shlibsuff= libmagic=32-bit;;
  9664. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9665. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9666. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9667. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9668. *) libsuff= shlibsuff= libmagic=never-match;;
  9669. esac
  9670. ;;
  9671. esac
  9672. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9673. shlibpath_overrides_runpath=no
  9674. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9675. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9676. hardcode_into_libs=yes
  9677. ;;
  9678. # No shared lib support for Linux oldld, aout, or coff.
  9679. linux*oldld* | linux*aout* | linux*coff*)
  9680. dynamic_linker=no
  9681. ;;
  9682. # This must be glibc/ELF.
  9683. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9684. version_type=linux # correct to gnu/linux during the next big refactor
  9685. need_lib_prefix=no
  9686. need_version=no
  9687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9688. soname_spec='${libname}${release}${shared_ext}$major'
  9689. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. shlibpath_overrides_runpath=no
  9692. # Some binutils ld are patched to set DT_RUNPATH
  9693. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9694. $as_echo_n "(cached) " >&6
  9695. else
  9696. lt_cv_shlibpath_overrides_runpath=no
  9697. save_LDFLAGS=$LDFLAGS
  9698. save_libdir=$libdir
  9699. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9700. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9702. /* end confdefs.h. */
  9703. int
  9704. main ()
  9705. {
  9706. ;
  9707. return 0;
  9708. }
  9709. _ACEOF
  9710. if ac_fn_c_try_link "$LINENO"; then :
  9711. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9712. lt_cv_shlibpath_overrides_runpath=yes
  9713. fi
  9714. fi
  9715. rm -f core conftest.err conftest.$ac_objext \
  9716. conftest$ac_exeext conftest.$ac_ext
  9717. LDFLAGS=$save_LDFLAGS
  9718. libdir=$save_libdir
  9719. fi
  9720. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9721. # This implies no fast_install, which is unacceptable.
  9722. # Some rework will be needed to allow for fast_install
  9723. # before this can be enabled.
  9724. hardcode_into_libs=yes
  9725. # Append ld.so.conf contents to the search path
  9726. if test -f /etc/ld.so.conf; then
  9727. 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' ' '`
  9728. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9729. fi
  9730. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9731. # powerpc, because MkLinux only supported shared libraries with the
  9732. # GNU dynamic linker. Since this was broken with cross compilers,
  9733. # most powerpc-linux boxes support dynamic linking these days and
  9734. # people can always --disable-shared, the test was removed, and we
  9735. # assume the GNU/Linux dynamic linker is in use.
  9736. dynamic_linker='GNU/Linux ld.so'
  9737. ;;
  9738. netbsd*)
  9739. version_type=sunos
  9740. need_lib_prefix=no
  9741. need_version=no
  9742. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9744. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9745. dynamic_linker='NetBSD (a.out) ld.so'
  9746. else
  9747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9748. soname_spec='${libname}${release}${shared_ext}$major'
  9749. dynamic_linker='NetBSD ld.elf_so'
  9750. fi
  9751. shlibpath_var=LD_LIBRARY_PATH
  9752. shlibpath_overrides_runpath=yes
  9753. hardcode_into_libs=yes
  9754. ;;
  9755. newsos6)
  9756. version_type=linux # correct to gnu/linux during the next big refactor
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. shlibpath_var=LD_LIBRARY_PATH
  9759. shlibpath_overrides_runpath=yes
  9760. ;;
  9761. *nto* | *qnx*)
  9762. version_type=qnx
  9763. need_lib_prefix=no
  9764. need_version=no
  9765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9766. soname_spec='${libname}${release}${shared_ext}$major'
  9767. shlibpath_var=LD_LIBRARY_PATH
  9768. shlibpath_overrides_runpath=no
  9769. hardcode_into_libs=yes
  9770. dynamic_linker='ldqnx.so'
  9771. ;;
  9772. openbsd*)
  9773. version_type=sunos
  9774. sys_lib_dlsearch_path_spec="/usr/lib"
  9775. need_lib_prefix=no
  9776. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9777. case $host_os in
  9778. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9779. *) need_version=no ;;
  9780. esac
  9781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9782. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9783. shlibpath_var=LD_LIBRARY_PATH
  9784. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9785. case $host_os in
  9786. openbsd2.[89] | openbsd2.[89].*)
  9787. shlibpath_overrides_runpath=no
  9788. ;;
  9789. *)
  9790. shlibpath_overrides_runpath=yes
  9791. ;;
  9792. esac
  9793. else
  9794. shlibpath_overrides_runpath=yes
  9795. fi
  9796. ;;
  9797. os2*)
  9798. libname_spec='$name'
  9799. shrext_cmds=".dll"
  9800. need_lib_prefix=no
  9801. library_names_spec='$libname${shared_ext} $libname.a'
  9802. dynamic_linker='OS/2 ld.exe'
  9803. shlibpath_var=LIBPATH
  9804. ;;
  9805. osf3* | osf4* | osf5*)
  9806. version_type=osf
  9807. need_lib_prefix=no
  9808. need_version=no
  9809. soname_spec='${libname}${release}${shared_ext}$major'
  9810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9811. shlibpath_var=LD_LIBRARY_PATH
  9812. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9813. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9814. ;;
  9815. rdos*)
  9816. dynamic_linker=no
  9817. ;;
  9818. solaris*)
  9819. version_type=linux # correct to gnu/linux during the next big refactor
  9820. need_lib_prefix=no
  9821. need_version=no
  9822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9823. soname_spec='${libname}${release}${shared_ext}$major'
  9824. shlibpath_var=LD_LIBRARY_PATH
  9825. shlibpath_overrides_runpath=yes
  9826. hardcode_into_libs=yes
  9827. # ldd complains unless libraries are executable
  9828. postinstall_cmds='chmod +x $lib'
  9829. ;;
  9830. sunos4*)
  9831. version_type=sunos
  9832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9833. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9834. shlibpath_var=LD_LIBRARY_PATH
  9835. shlibpath_overrides_runpath=yes
  9836. if test "$with_gnu_ld" = yes; then
  9837. need_lib_prefix=no
  9838. fi
  9839. need_version=yes
  9840. ;;
  9841. sysv4 | sysv4.3*)
  9842. version_type=linux # correct to gnu/linux during the next big refactor
  9843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9844. soname_spec='${libname}${release}${shared_ext}$major'
  9845. shlibpath_var=LD_LIBRARY_PATH
  9846. case $host_vendor in
  9847. sni)
  9848. shlibpath_overrides_runpath=no
  9849. need_lib_prefix=no
  9850. runpath_var=LD_RUN_PATH
  9851. ;;
  9852. siemens)
  9853. need_lib_prefix=no
  9854. ;;
  9855. motorola)
  9856. need_lib_prefix=no
  9857. need_version=no
  9858. shlibpath_overrides_runpath=no
  9859. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9860. ;;
  9861. esac
  9862. ;;
  9863. sysv4*MP*)
  9864. if test -d /usr/nec ;then
  9865. version_type=linux # correct to gnu/linux during the next big refactor
  9866. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9867. soname_spec='$libname${shared_ext}.$major'
  9868. shlibpath_var=LD_LIBRARY_PATH
  9869. fi
  9870. ;;
  9871. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9872. version_type=freebsd-elf
  9873. need_lib_prefix=no
  9874. need_version=no
  9875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9876. soname_spec='${libname}${release}${shared_ext}$major'
  9877. shlibpath_var=LD_LIBRARY_PATH
  9878. shlibpath_overrides_runpath=yes
  9879. hardcode_into_libs=yes
  9880. if test "$with_gnu_ld" = yes; then
  9881. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9882. else
  9883. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9884. case $host_os in
  9885. sco3.2v5*)
  9886. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9887. ;;
  9888. esac
  9889. fi
  9890. sys_lib_dlsearch_path_spec='/usr/lib'
  9891. ;;
  9892. tpf*)
  9893. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9894. version_type=linux # correct to gnu/linux during the next big refactor
  9895. need_lib_prefix=no
  9896. need_version=no
  9897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9898. shlibpath_var=LD_LIBRARY_PATH
  9899. shlibpath_overrides_runpath=no
  9900. hardcode_into_libs=yes
  9901. ;;
  9902. uts4*)
  9903. version_type=linux # correct to gnu/linux during the next big refactor
  9904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9905. soname_spec='${libname}${release}${shared_ext}$major'
  9906. shlibpath_var=LD_LIBRARY_PATH
  9907. ;;
  9908. *)
  9909. dynamic_linker=no
  9910. ;;
  9911. esac
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9913. $as_echo "$dynamic_linker" >&6; }
  9914. test "$dynamic_linker" = no && can_build_shared=no
  9915. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9916. if test "$GCC" = yes; then
  9917. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9918. fi
  9919. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9920. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9921. fi
  9922. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9923. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9924. fi
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9926. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9927. hardcode_action=
  9928. if test -n "$hardcode_libdir_flag_spec" ||
  9929. test -n "$runpath_var" ||
  9930. test "X$hardcode_automatic" = "Xyes" ; then
  9931. # We can hardcode non-existent directories.
  9932. if test "$hardcode_direct" != no &&
  9933. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9934. # have to relink, otherwise we might link with an installed library
  9935. # when we should be linking with a yet-to-be-installed one
  9936. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9937. test "$hardcode_minus_L" != no; then
  9938. # Linking always hardcodes the temporary library directory.
  9939. hardcode_action=relink
  9940. else
  9941. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9942. hardcode_action=immediate
  9943. fi
  9944. else
  9945. # We cannot hardcode anything, or else we can only hardcode existing
  9946. # directories.
  9947. hardcode_action=unsupported
  9948. fi
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9950. $as_echo "$hardcode_action" >&6; }
  9951. if test "$hardcode_action" = relink ||
  9952. test "$inherit_rpath" = yes; then
  9953. # Fast installation is not supported
  9954. enable_fast_install=no
  9955. elif test "$shlibpath_overrides_runpath" = yes ||
  9956. test "$enable_shared" = no; then
  9957. # Fast installation is not necessary
  9958. enable_fast_install=needless
  9959. fi
  9960. if test "x$enable_dlopen" != xyes; then
  9961. enable_dlopen=unknown
  9962. enable_dlopen_self=unknown
  9963. enable_dlopen_self_static=unknown
  9964. else
  9965. lt_cv_dlopen=no
  9966. lt_cv_dlopen_libs=
  9967. case $host_os in
  9968. beos*)
  9969. lt_cv_dlopen="load_add_on"
  9970. lt_cv_dlopen_libs=
  9971. lt_cv_dlopen_self=yes
  9972. ;;
  9973. mingw* | pw32* | cegcc*)
  9974. lt_cv_dlopen="LoadLibrary"
  9975. lt_cv_dlopen_libs=
  9976. ;;
  9977. cygwin*)
  9978. lt_cv_dlopen="dlopen"
  9979. lt_cv_dlopen_libs=
  9980. ;;
  9981. darwin*)
  9982. # if libdl is installed we need to link against it
  9983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9984. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9985. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9986. $as_echo_n "(cached) " >&6
  9987. else
  9988. ac_check_lib_save_LIBS=$LIBS
  9989. LIBS="-ldl $LIBS"
  9990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9991. /* end confdefs.h. */
  9992. /* Override any GCC internal prototype to avoid an error.
  9993. Use char because int might match the return type of a GCC
  9994. builtin and then its argument prototype would still apply. */
  9995. #ifdef __cplusplus
  9996. extern "C"
  9997. #endif
  9998. char dlopen ();
  9999. int
  10000. main ()
  10001. {
  10002. return dlopen ();
  10003. ;
  10004. return 0;
  10005. }
  10006. _ACEOF
  10007. if ac_fn_c_try_link "$LINENO"; then :
  10008. ac_cv_lib_dl_dlopen=yes
  10009. else
  10010. ac_cv_lib_dl_dlopen=no
  10011. fi
  10012. rm -f core conftest.err conftest.$ac_objext \
  10013. conftest$ac_exeext conftest.$ac_ext
  10014. LIBS=$ac_check_lib_save_LIBS
  10015. fi
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10017. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10018. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10019. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10020. else
  10021. lt_cv_dlopen="dyld"
  10022. lt_cv_dlopen_libs=
  10023. lt_cv_dlopen_self=yes
  10024. fi
  10025. ;;
  10026. *)
  10027. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10028. if test "x$ac_cv_func_shl_load" = xyes; then :
  10029. lt_cv_dlopen="shl_load"
  10030. else
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10032. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10033. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10034. $as_echo_n "(cached) " >&6
  10035. else
  10036. ac_check_lib_save_LIBS=$LIBS
  10037. LIBS="-ldld $LIBS"
  10038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10039. /* end confdefs.h. */
  10040. /* Override any GCC internal prototype to avoid an error.
  10041. Use char because int might match the return type of a GCC
  10042. builtin and then its argument prototype would still apply. */
  10043. #ifdef __cplusplus
  10044. extern "C"
  10045. #endif
  10046. char shl_load ();
  10047. int
  10048. main ()
  10049. {
  10050. return shl_load ();
  10051. ;
  10052. return 0;
  10053. }
  10054. _ACEOF
  10055. if ac_fn_c_try_link "$LINENO"; then :
  10056. ac_cv_lib_dld_shl_load=yes
  10057. else
  10058. ac_cv_lib_dld_shl_load=no
  10059. fi
  10060. rm -f core conftest.err conftest.$ac_objext \
  10061. conftest$ac_exeext conftest.$ac_ext
  10062. LIBS=$ac_check_lib_save_LIBS
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10065. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10066. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10067. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10068. else
  10069. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10070. if test "x$ac_cv_func_dlopen" = xyes; then :
  10071. lt_cv_dlopen="dlopen"
  10072. else
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10074. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10075. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10076. $as_echo_n "(cached) " >&6
  10077. else
  10078. ac_check_lib_save_LIBS=$LIBS
  10079. LIBS="-ldl $LIBS"
  10080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10081. /* end confdefs.h. */
  10082. /* Override any GCC internal prototype to avoid an error.
  10083. Use char because int might match the return type of a GCC
  10084. builtin and then its argument prototype would still apply. */
  10085. #ifdef __cplusplus
  10086. extern "C"
  10087. #endif
  10088. char dlopen ();
  10089. int
  10090. main ()
  10091. {
  10092. return dlopen ();
  10093. ;
  10094. return 0;
  10095. }
  10096. _ACEOF
  10097. if ac_fn_c_try_link "$LINENO"; then :
  10098. ac_cv_lib_dl_dlopen=yes
  10099. else
  10100. ac_cv_lib_dl_dlopen=no
  10101. fi
  10102. rm -f core conftest.err conftest.$ac_objext \
  10103. conftest$ac_exeext conftest.$ac_ext
  10104. LIBS=$ac_check_lib_save_LIBS
  10105. fi
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10107. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10108. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10109. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10110. else
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10112. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10113. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. ac_check_lib_save_LIBS=$LIBS
  10117. LIBS="-lsvld $LIBS"
  10118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10119. /* end confdefs.h. */
  10120. /* Override any GCC internal prototype to avoid an error.
  10121. Use char because int might match the return type of a GCC
  10122. builtin and then its argument prototype would still apply. */
  10123. #ifdef __cplusplus
  10124. extern "C"
  10125. #endif
  10126. char dlopen ();
  10127. int
  10128. main ()
  10129. {
  10130. return dlopen ();
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. if ac_fn_c_try_link "$LINENO"; then :
  10136. ac_cv_lib_svld_dlopen=yes
  10137. else
  10138. ac_cv_lib_svld_dlopen=no
  10139. fi
  10140. rm -f core conftest.err conftest.$ac_objext \
  10141. conftest$ac_exeext conftest.$ac_ext
  10142. LIBS=$ac_check_lib_save_LIBS
  10143. fi
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10145. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10146. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10147. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10148. else
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10150. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10151. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. ac_check_lib_save_LIBS=$LIBS
  10155. LIBS="-ldld $LIBS"
  10156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10157. /* end confdefs.h. */
  10158. /* Override any GCC internal prototype to avoid an error.
  10159. Use char because int might match the return type of a GCC
  10160. builtin and then its argument prototype would still apply. */
  10161. #ifdef __cplusplus
  10162. extern "C"
  10163. #endif
  10164. char dld_link ();
  10165. int
  10166. main ()
  10167. {
  10168. return dld_link ();
  10169. ;
  10170. return 0;
  10171. }
  10172. _ACEOF
  10173. if ac_fn_c_try_link "$LINENO"; then :
  10174. ac_cv_lib_dld_dld_link=yes
  10175. else
  10176. ac_cv_lib_dld_dld_link=no
  10177. fi
  10178. rm -f core conftest.err conftest.$ac_objext \
  10179. conftest$ac_exeext conftest.$ac_ext
  10180. LIBS=$ac_check_lib_save_LIBS
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10183. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10184. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10185. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10186. fi
  10187. fi
  10188. fi
  10189. fi
  10190. fi
  10191. fi
  10192. ;;
  10193. esac
  10194. if test "x$lt_cv_dlopen" != xno; then
  10195. enable_dlopen=yes
  10196. else
  10197. enable_dlopen=no
  10198. fi
  10199. case $lt_cv_dlopen in
  10200. dlopen)
  10201. save_CPPFLAGS="$CPPFLAGS"
  10202. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10203. save_LDFLAGS="$LDFLAGS"
  10204. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10205. save_LIBS="$LIBS"
  10206. LIBS="$lt_cv_dlopen_libs $LIBS"
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10208. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10209. if ${lt_cv_dlopen_self+:} false; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. if test "$cross_compiling" = yes; then :
  10213. lt_cv_dlopen_self=cross
  10214. else
  10215. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10216. lt_status=$lt_dlunknown
  10217. cat > conftest.$ac_ext <<_LT_EOF
  10218. #line $LINENO "configure"
  10219. #include "confdefs.h"
  10220. #if HAVE_DLFCN_H
  10221. #include <dlfcn.h>
  10222. #endif
  10223. #include <stdio.h>
  10224. #ifdef RTLD_GLOBAL
  10225. # define LT_DLGLOBAL RTLD_GLOBAL
  10226. #else
  10227. # ifdef DL_GLOBAL
  10228. # define LT_DLGLOBAL DL_GLOBAL
  10229. # else
  10230. # define LT_DLGLOBAL 0
  10231. # endif
  10232. #endif
  10233. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10234. find out it does not work in some platform. */
  10235. #ifndef LT_DLLAZY_OR_NOW
  10236. # ifdef RTLD_LAZY
  10237. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10238. # else
  10239. # ifdef DL_LAZY
  10240. # define LT_DLLAZY_OR_NOW DL_LAZY
  10241. # else
  10242. # ifdef RTLD_NOW
  10243. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10244. # else
  10245. # ifdef DL_NOW
  10246. # define LT_DLLAZY_OR_NOW DL_NOW
  10247. # else
  10248. # define LT_DLLAZY_OR_NOW 0
  10249. # endif
  10250. # endif
  10251. # endif
  10252. # endif
  10253. #endif
  10254. /* When -fvisbility=hidden is used, assume the code has been annotated
  10255. correspondingly for the symbols needed. */
  10256. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10257. int fnord () __attribute__((visibility("default")));
  10258. #endif
  10259. int fnord () { return 42; }
  10260. int main ()
  10261. {
  10262. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10263. int status = $lt_dlunknown;
  10264. if (self)
  10265. {
  10266. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10267. else
  10268. {
  10269. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10270. else puts (dlerror ());
  10271. }
  10272. /* dlclose (self); */
  10273. }
  10274. else
  10275. puts (dlerror ());
  10276. return status;
  10277. }
  10278. _LT_EOF
  10279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10280. (eval $ac_link) 2>&5
  10281. ac_status=$?
  10282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10283. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10284. (./conftest; exit; ) >&5 2>/dev/null
  10285. lt_status=$?
  10286. case x$lt_status in
  10287. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10288. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10289. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10290. esac
  10291. else :
  10292. # compilation failed
  10293. lt_cv_dlopen_self=no
  10294. fi
  10295. fi
  10296. rm -fr conftest*
  10297. fi
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10299. $as_echo "$lt_cv_dlopen_self" >&6; }
  10300. if test "x$lt_cv_dlopen_self" = xyes; then
  10301. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10303. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10304. if ${lt_cv_dlopen_self_static+:} false; then :
  10305. $as_echo_n "(cached) " >&6
  10306. else
  10307. if test "$cross_compiling" = yes; then :
  10308. lt_cv_dlopen_self_static=cross
  10309. else
  10310. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10311. lt_status=$lt_dlunknown
  10312. cat > conftest.$ac_ext <<_LT_EOF
  10313. #line $LINENO "configure"
  10314. #include "confdefs.h"
  10315. #if HAVE_DLFCN_H
  10316. #include <dlfcn.h>
  10317. #endif
  10318. #include <stdio.h>
  10319. #ifdef RTLD_GLOBAL
  10320. # define LT_DLGLOBAL RTLD_GLOBAL
  10321. #else
  10322. # ifdef DL_GLOBAL
  10323. # define LT_DLGLOBAL DL_GLOBAL
  10324. # else
  10325. # define LT_DLGLOBAL 0
  10326. # endif
  10327. #endif
  10328. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10329. find out it does not work in some platform. */
  10330. #ifndef LT_DLLAZY_OR_NOW
  10331. # ifdef RTLD_LAZY
  10332. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10333. # else
  10334. # ifdef DL_LAZY
  10335. # define LT_DLLAZY_OR_NOW DL_LAZY
  10336. # else
  10337. # ifdef RTLD_NOW
  10338. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10339. # else
  10340. # ifdef DL_NOW
  10341. # define LT_DLLAZY_OR_NOW DL_NOW
  10342. # else
  10343. # define LT_DLLAZY_OR_NOW 0
  10344. # endif
  10345. # endif
  10346. # endif
  10347. # endif
  10348. #endif
  10349. /* When -fvisbility=hidden is used, assume the code has been annotated
  10350. correspondingly for the symbols needed. */
  10351. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10352. int fnord () __attribute__((visibility("default")));
  10353. #endif
  10354. int fnord () { return 42; }
  10355. int main ()
  10356. {
  10357. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10358. int status = $lt_dlunknown;
  10359. if (self)
  10360. {
  10361. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10362. else
  10363. {
  10364. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10365. else puts (dlerror ());
  10366. }
  10367. /* dlclose (self); */
  10368. }
  10369. else
  10370. puts (dlerror ());
  10371. return status;
  10372. }
  10373. _LT_EOF
  10374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10375. (eval $ac_link) 2>&5
  10376. ac_status=$?
  10377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10378. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10379. (./conftest; exit; ) >&5 2>/dev/null
  10380. lt_status=$?
  10381. case x$lt_status in
  10382. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10383. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10384. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10385. esac
  10386. else :
  10387. # compilation failed
  10388. lt_cv_dlopen_self_static=no
  10389. fi
  10390. fi
  10391. rm -fr conftest*
  10392. fi
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10394. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10395. fi
  10396. CPPFLAGS="$save_CPPFLAGS"
  10397. LDFLAGS="$save_LDFLAGS"
  10398. LIBS="$save_LIBS"
  10399. ;;
  10400. esac
  10401. case $lt_cv_dlopen_self in
  10402. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10403. *) enable_dlopen_self=unknown ;;
  10404. esac
  10405. case $lt_cv_dlopen_self_static in
  10406. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10407. *) enable_dlopen_self_static=unknown ;;
  10408. esac
  10409. fi
  10410. striplib=
  10411. old_striplib=
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10413. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10414. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10415. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10416. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10418. $as_echo "yes" >&6; }
  10419. else
  10420. # FIXME - insert some real tests, host_os isn't really good enough
  10421. case $host_os in
  10422. darwin*)
  10423. if test -n "$STRIP" ; then
  10424. striplib="$STRIP -x"
  10425. old_striplib="$STRIP -S"
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10427. $as_echo "yes" >&6; }
  10428. else
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10430. $as_echo "no" >&6; }
  10431. fi
  10432. ;;
  10433. *)
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10435. $as_echo "no" >&6; }
  10436. ;;
  10437. esac
  10438. fi
  10439. # Report which library types will actually be built
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10441. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10443. $as_echo "$can_build_shared" >&6; }
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10445. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10446. test "$can_build_shared" = "no" && enable_shared=no
  10447. # On AIX, shared libraries and static libraries use the same namespace, and
  10448. # are all built from PIC.
  10449. case $host_os in
  10450. aix3*)
  10451. test "$enable_shared" = yes && enable_static=no
  10452. if test -n "$RANLIB"; then
  10453. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10454. postinstall_cmds='$RANLIB $lib'
  10455. fi
  10456. ;;
  10457. aix[4-9]*)
  10458. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10459. test "$enable_shared" = yes && enable_static=no
  10460. fi
  10461. ;;
  10462. esac
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10464. $as_echo "$enable_shared" >&6; }
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10466. $as_echo_n "checking whether to build static libraries... " >&6; }
  10467. # Make sure either enable_shared or enable_static is yes.
  10468. test "$enable_shared" = yes || enable_static=yes
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10470. $as_echo "$enable_static" >&6; }
  10471. fi
  10472. ac_ext=c
  10473. ac_cpp='$CPP $CPPFLAGS'
  10474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10477. CC="$lt_save_CC"
  10478. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10479. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10480. (test "X$CXX" != "Xg++"))) ; then
  10481. ac_ext=cpp
  10482. ac_cpp='$CXXCPP $CPPFLAGS'
  10483. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10484. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10485. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10487. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10488. if test -z "$CXXCPP"; then
  10489. if ${ac_cv_prog_CXXCPP+:} false; then :
  10490. $as_echo_n "(cached) " >&6
  10491. else
  10492. # Double quotes because CXXCPP needs to be expanded
  10493. for CXXCPP in "$CXX -E" "/lib/cpp"
  10494. do
  10495. ac_preproc_ok=false
  10496. for ac_cxx_preproc_warn_flag in '' yes
  10497. do
  10498. # Use a header file that comes with gcc, so configuring glibc
  10499. # with a fresh cross-compiler works.
  10500. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10501. # <limits.h> exists even on freestanding compilers.
  10502. # On the NeXT, cc -E runs the code through the compiler's parser,
  10503. # not just through cpp. "Syntax error" is here to catch this case.
  10504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10505. /* end confdefs.h. */
  10506. #ifdef __STDC__
  10507. # include <limits.h>
  10508. #else
  10509. # include <assert.h>
  10510. #endif
  10511. Syntax error
  10512. _ACEOF
  10513. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10514. else
  10515. # Broken: fails on valid input.
  10516. continue
  10517. fi
  10518. rm -f conftest.err conftest.i conftest.$ac_ext
  10519. # OK, works on sane cases. Now check whether nonexistent headers
  10520. # can be detected and how.
  10521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10522. /* end confdefs.h. */
  10523. #include <ac_nonexistent.h>
  10524. _ACEOF
  10525. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10526. # Broken: success on invalid input.
  10527. continue
  10528. else
  10529. # Passes both tests.
  10530. ac_preproc_ok=:
  10531. break
  10532. fi
  10533. rm -f conftest.err conftest.i conftest.$ac_ext
  10534. done
  10535. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10536. rm -f conftest.i conftest.err conftest.$ac_ext
  10537. if $ac_preproc_ok; then :
  10538. break
  10539. fi
  10540. done
  10541. ac_cv_prog_CXXCPP=$CXXCPP
  10542. fi
  10543. CXXCPP=$ac_cv_prog_CXXCPP
  10544. else
  10545. ac_cv_prog_CXXCPP=$CXXCPP
  10546. fi
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10548. $as_echo "$CXXCPP" >&6; }
  10549. ac_preproc_ok=false
  10550. for ac_cxx_preproc_warn_flag in '' yes
  10551. do
  10552. # Use a header file that comes with gcc, so configuring glibc
  10553. # with a fresh cross-compiler works.
  10554. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10555. # <limits.h> exists even on freestanding compilers.
  10556. # On the NeXT, cc -E runs the code through the compiler's parser,
  10557. # not just through cpp. "Syntax error" is here to catch this case.
  10558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10559. /* end confdefs.h. */
  10560. #ifdef __STDC__
  10561. # include <limits.h>
  10562. #else
  10563. # include <assert.h>
  10564. #endif
  10565. Syntax error
  10566. _ACEOF
  10567. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10568. else
  10569. # Broken: fails on valid input.
  10570. continue
  10571. fi
  10572. rm -f conftest.err conftest.i conftest.$ac_ext
  10573. # OK, works on sane cases. Now check whether nonexistent headers
  10574. # can be detected and how.
  10575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10576. /* end confdefs.h. */
  10577. #include <ac_nonexistent.h>
  10578. _ACEOF
  10579. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10580. # Broken: success on invalid input.
  10581. continue
  10582. else
  10583. # Passes both tests.
  10584. ac_preproc_ok=:
  10585. break
  10586. fi
  10587. rm -f conftest.err conftest.i conftest.$ac_ext
  10588. done
  10589. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10590. rm -f conftest.i conftest.err conftest.$ac_ext
  10591. if $ac_preproc_ok; then :
  10592. else
  10593. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10594. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10595. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10596. See \`config.log' for more details" "$LINENO" 5; }
  10597. fi
  10598. ac_ext=c
  10599. ac_cpp='$CPP $CPPFLAGS'
  10600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10603. else
  10604. _lt_caught_CXX_error=yes
  10605. fi
  10606. ac_ext=cpp
  10607. ac_cpp='$CXXCPP $CPPFLAGS'
  10608. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10609. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10610. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10611. archive_cmds_need_lc_CXX=no
  10612. allow_undefined_flag_CXX=
  10613. always_export_symbols_CXX=no
  10614. archive_expsym_cmds_CXX=
  10615. compiler_needs_object_CXX=no
  10616. export_dynamic_flag_spec_CXX=
  10617. hardcode_direct_CXX=no
  10618. hardcode_direct_absolute_CXX=no
  10619. hardcode_libdir_flag_spec_CXX=
  10620. hardcode_libdir_separator_CXX=
  10621. hardcode_minus_L_CXX=no
  10622. hardcode_shlibpath_var_CXX=unsupported
  10623. hardcode_automatic_CXX=no
  10624. inherit_rpath_CXX=no
  10625. module_cmds_CXX=
  10626. module_expsym_cmds_CXX=
  10627. link_all_deplibs_CXX=unknown
  10628. old_archive_cmds_CXX=$old_archive_cmds
  10629. reload_flag_CXX=$reload_flag
  10630. reload_cmds_CXX=$reload_cmds
  10631. no_undefined_flag_CXX=
  10632. whole_archive_flag_spec_CXX=
  10633. enable_shared_with_static_runtimes_CXX=no
  10634. # Source file extension for C++ test sources.
  10635. ac_ext=cpp
  10636. # Object file extension for compiled C++ test sources.
  10637. objext=o
  10638. objext_CXX=$objext
  10639. # No sense in running all these tests if we already determined that
  10640. # the CXX compiler isn't working. Some variables (like enable_shared)
  10641. # are currently assumed to apply to all compilers on this platform,
  10642. # and will be corrupted by setting them based on a non-working compiler.
  10643. if test "$_lt_caught_CXX_error" != yes; then
  10644. # Code to be used in simple compile tests
  10645. lt_simple_compile_test_code="int some_variable = 0;"
  10646. # Code to be used in simple link tests
  10647. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10648. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10649. # If no C compiler was specified, use CC.
  10650. LTCC=${LTCC-"$CC"}
  10651. # If no C compiler flags were specified, use CFLAGS.
  10652. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10653. # Allow CC to be a program name with arguments.
  10654. compiler=$CC
  10655. # save warnings/boilerplate of simple test code
  10656. ac_outfile=conftest.$ac_objext
  10657. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10658. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10659. _lt_compiler_boilerplate=`cat conftest.err`
  10660. $RM conftest*
  10661. ac_outfile=conftest.$ac_objext
  10662. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10663. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10664. _lt_linker_boilerplate=`cat conftest.err`
  10665. $RM -r conftest*
  10666. # Allow CC to be a program name with arguments.
  10667. lt_save_CC=$CC
  10668. lt_save_CFLAGS=$CFLAGS
  10669. lt_save_LD=$LD
  10670. lt_save_GCC=$GCC
  10671. GCC=$GXX
  10672. lt_save_with_gnu_ld=$with_gnu_ld
  10673. lt_save_path_LD=$lt_cv_path_LD
  10674. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10675. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10676. else
  10677. $as_unset lt_cv_prog_gnu_ld
  10678. fi
  10679. if test -n "${lt_cv_path_LDCXX+set}"; then
  10680. lt_cv_path_LD=$lt_cv_path_LDCXX
  10681. else
  10682. $as_unset lt_cv_path_LD
  10683. fi
  10684. test -z "${LDCXX+set}" || LD=$LDCXX
  10685. CC=${CXX-"c++"}
  10686. CFLAGS=$CXXFLAGS
  10687. compiler=$CC
  10688. compiler_CXX=$CC
  10689. for cc_temp in $compiler""; do
  10690. case $cc_temp in
  10691. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10692. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10693. \-*) ;;
  10694. *) break;;
  10695. esac
  10696. done
  10697. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10698. if test -n "$compiler"; then
  10699. # We don't want -fno-exception when compiling C++ code, so set the
  10700. # no_builtin_flag separately
  10701. if test "$GXX" = yes; then
  10702. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10703. else
  10704. lt_prog_compiler_no_builtin_flag_CXX=
  10705. fi
  10706. if test "$GXX" = yes; then
  10707. # Set up default GNU C++ configuration
  10708. # Check whether --with-gnu-ld was given.
  10709. if test "${with_gnu_ld+set}" = set; then :
  10710. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10711. else
  10712. with_gnu_ld=no
  10713. fi
  10714. ac_prog=ld
  10715. if test "$GCC" = yes; then
  10716. # Check if gcc -print-prog-name=ld gives a path.
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10718. $as_echo_n "checking for ld used by $CC... " >&6; }
  10719. case $host in
  10720. *-*-mingw*)
  10721. # gcc leaves a trailing carriage return which upsets mingw
  10722. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10723. *)
  10724. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10725. esac
  10726. case $ac_prog in
  10727. # Accept absolute paths.
  10728. [\\/]* | ?:[\\/]*)
  10729. re_direlt='/[^/][^/]*/\.\./'
  10730. # Canonicalize the pathname of ld
  10731. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10732. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10733. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10734. done
  10735. test -z "$LD" && LD="$ac_prog"
  10736. ;;
  10737. "")
  10738. # If it fails, then pretend we aren't using GCC.
  10739. ac_prog=ld
  10740. ;;
  10741. *)
  10742. # If it is relative, then search for the first ld in PATH.
  10743. with_gnu_ld=unknown
  10744. ;;
  10745. esac
  10746. elif test "$with_gnu_ld" = yes; then
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10748. $as_echo_n "checking for GNU ld... " >&6; }
  10749. else
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10751. $as_echo_n "checking for non-GNU ld... " >&6; }
  10752. fi
  10753. if ${lt_cv_path_LD+:} false; then :
  10754. $as_echo_n "(cached) " >&6
  10755. else
  10756. if test -z "$LD"; then
  10757. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10758. for ac_dir in $PATH; do
  10759. IFS="$lt_save_ifs"
  10760. test -z "$ac_dir" && ac_dir=.
  10761. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10762. lt_cv_path_LD="$ac_dir/$ac_prog"
  10763. # Check to see if the program is GNU ld. I'd rather use --version,
  10764. # but apparently some variants of GNU ld only accept -v.
  10765. # Break only if it was the GNU/non-GNU ld that we prefer.
  10766. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10767. *GNU* | *'with BFD'*)
  10768. test "$with_gnu_ld" != no && break
  10769. ;;
  10770. *)
  10771. test "$with_gnu_ld" != yes && break
  10772. ;;
  10773. esac
  10774. fi
  10775. done
  10776. IFS="$lt_save_ifs"
  10777. else
  10778. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10779. fi
  10780. fi
  10781. LD="$lt_cv_path_LD"
  10782. if test -n "$LD"; then
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10784. $as_echo "$LD" >&6; }
  10785. else
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10787. $as_echo "no" >&6; }
  10788. fi
  10789. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10791. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10792. if ${lt_cv_prog_gnu_ld+:} false; then :
  10793. $as_echo_n "(cached) " >&6
  10794. else
  10795. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10796. case `$LD -v 2>&1 </dev/null` in
  10797. *GNU* | *'with BFD'*)
  10798. lt_cv_prog_gnu_ld=yes
  10799. ;;
  10800. *)
  10801. lt_cv_prog_gnu_ld=no
  10802. ;;
  10803. esac
  10804. fi
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10806. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10807. with_gnu_ld=$lt_cv_prog_gnu_ld
  10808. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10809. # archiving commands below assume that GNU ld is being used.
  10810. if test "$with_gnu_ld" = yes; then
  10811. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10812. 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'
  10813. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10814. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10815. # If archive_cmds runs LD, not CC, wlarc should be empty
  10816. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10817. # investigate it a little bit more. (MM)
  10818. wlarc='${wl}'
  10819. # ancient GNU ld didn't support --whole-archive et. al.
  10820. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10821. $GREP 'no-whole-archive' > /dev/null; then
  10822. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10823. else
  10824. whole_archive_flag_spec_CXX=
  10825. fi
  10826. else
  10827. with_gnu_ld=no
  10828. wlarc=
  10829. # A generic and very simple default shared library creation
  10830. # command for GNU C++ for the case where it uses the native
  10831. # linker, instead of GNU ld. If possible, this setting should
  10832. # overridden to take advantage of the native linker features on
  10833. # the platform it is being used on.
  10834. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10835. fi
  10836. # Commands to make compiler produce verbose output that lists
  10837. # what "hidden" libraries, object files and flags are used when
  10838. # linking a shared library.
  10839. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10840. else
  10841. GXX=no
  10842. with_gnu_ld=no
  10843. wlarc=
  10844. fi
  10845. # PORTME: fill in a description of your system's C++ link characteristics
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10847. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10848. ld_shlibs_CXX=yes
  10849. case $host_os in
  10850. aix3*)
  10851. # FIXME: insert proper C++ library support
  10852. ld_shlibs_CXX=no
  10853. ;;
  10854. aix[4-9]*)
  10855. if test "$host_cpu" = ia64; then
  10856. # On IA64, the linker does run time linking by default, so we don't
  10857. # have to do anything special.
  10858. aix_use_runtimelinking=no
  10859. exp_sym_flag='-Bexport'
  10860. no_entry_flag=""
  10861. else
  10862. aix_use_runtimelinking=no
  10863. # Test if we are trying to use run time linking or normal
  10864. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10865. # need to do runtime linking.
  10866. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10867. for ld_flag in $LDFLAGS; do
  10868. case $ld_flag in
  10869. *-brtl*)
  10870. aix_use_runtimelinking=yes
  10871. break
  10872. ;;
  10873. esac
  10874. done
  10875. ;;
  10876. esac
  10877. exp_sym_flag='-bexport'
  10878. no_entry_flag='-bnoentry'
  10879. fi
  10880. # When large executables or shared objects are built, AIX ld can
  10881. # have problems creating the table of contents. If linking a library
  10882. # or program results in "error TOC overflow" add -mminimal-toc to
  10883. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10884. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10885. archive_cmds_CXX=''
  10886. hardcode_direct_CXX=yes
  10887. hardcode_direct_absolute_CXX=yes
  10888. hardcode_libdir_separator_CXX=':'
  10889. link_all_deplibs_CXX=yes
  10890. file_list_spec_CXX='${wl}-f,'
  10891. if test "$GXX" = yes; then
  10892. case $host_os in aix4.[012]|aix4.[012].*)
  10893. # We only want to do this on AIX 4.2 and lower, the check
  10894. # below for broken collect2 doesn't work under 4.3+
  10895. collect2name=`${CC} -print-prog-name=collect2`
  10896. if test -f "$collect2name" &&
  10897. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10898. then
  10899. # We have reworked collect2
  10900. :
  10901. else
  10902. # We have old collect2
  10903. hardcode_direct_CXX=unsupported
  10904. # It fails to find uninstalled libraries when the uninstalled
  10905. # path is not listed in the libpath. Setting hardcode_minus_L
  10906. # to unsupported forces relinking
  10907. hardcode_minus_L_CXX=yes
  10908. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10909. hardcode_libdir_separator_CXX=
  10910. fi
  10911. esac
  10912. shared_flag='-shared'
  10913. if test "$aix_use_runtimelinking" = yes; then
  10914. shared_flag="$shared_flag "'${wl}-G'
  10915. fi
  10916. else
  10917. # not using gcc
  10918. if test "$host_cpu" = ia64; then
  10919. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10920. # chokes on -Wl,-G. The following line is correct:
  10921. shared_flag='-G'
  10922. else
  10923. if test "$aix_use_runtimelinking" = yes; then
  10924. shared_flag='${wl}-G'
  10925. else
  10926. shared_flag='${wl}-bM:SRE'
  10927. fi
  10928. fi
  10929. fi
  10930. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10931. # It seems that -bexpall does not export symbols beginning with
  10932. # underscore (_), so it is better to generate a list of symbols to
  10933. # export.
  10934. always_export_symbols_CXX=yes
  10935. if test "$aix_use_runtimelinking" = yes; then
  10936. # Warning - without using the other runtime loading flags (-brtl),
  10937. # -berok will link without error, but may produce a broken library.
  10938. allow_undefined_flag_CXX='-berok'
  10939. # Determine the default libpath from the value encoded in an empty
  10940. # executable.
  10941. if test "${lt_cv_aix_libpath+set}" = set; then
  10942. aix_libpath=$lt_cv_aix_libpath
  10943. else
  10944. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10948. /* end confdefs.h. */
  10949. int
  10950. main ()
  10951. {
  10952. ;
  10953. return 0;
  10954. }
  10955. _ACEOF
  10956. if ac_fn_cxx_try_link "$LINENO"; then :
  10957. lt_aix_libpath_sed='
  10958. /Import File Strings/,/^$/ {
  10959. /^0/ {
  10960. s/^0 *\([^ ]*\) *$/\1/
  10961. p
  10962. }
  10963. }'
  10964. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10965. # Check for a 64-bit object if we didn't find anything.
  10966. if test -z "$lt_cv_aix_libpath__CXX"; then
  10967. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10968. fi
  10969. fi
  10970. rm -f core conftest.err conftest.$ac_objext \
  10971. conftest$ac_exeext conftest.$ac_ext
  10972. if test -z "$lt_cv_aix_libpath__CXX"; then
  10973. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10974. fi
  10975. fi
  10976. aix_libpath=$lt_cv_aix_libpath__CXX
  10977. fi
  10978. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10979. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10980. else
  10981. if test "$host_cpu" = ia64; then
  10982. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10983. allow_undefined_flag_CXX="-z nodefs"
  10984. 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"
  10985. else
  10986. # Determine the default libpath from the value encoded in an
  10987. # empty executable.
  10988. if test "${lt_cv_aix_libpath+set}" = set; then
  10989. aix_libpath=$lt_cv_aix_libpath
  10990. else
  10991. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10992. $as_echo_n "(cached) " >&6
  10993. else
  10994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10995. /* end confdefs.h. */
  10996. int
  10997. main ()
  10998. {
  10999. ;
  11000. return 0;
  11001. }
  11002. _ACEOF
  11003. if ac_fn_cxx_try_link "$LINENO"; then :
  11004. lt_aix_libpath_sed='
  11005. /Import File Strings/,/^$/ {
  11006. /^0/ {
  11007. s/^0 *\([^ ]*\) *$/\1/
  11008. p
  11009. }
  11010. }'
  11011. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11012. # Check for a 64-bit object if we didn't find anything.
  11013. if test -z "$lt_cv_aix_libpath__CXX"; then
  11014. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11015. fi
  11016. fi
  11017. rm -f core conftest.err conftest.$ac_objext \
  11018. conftest$ac_exeext conftest.$ac_ext
  11019. if test -z "$lt_cv_aix_libpath__CXX"; then
  11020. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11021. fi
  11022. fi
  11023. aix_libpath=$lt_cv_aix_libpath__CXX
  11024. fi
  11025. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11026. # Warning - without using the other run time loading flags,
  11027. # -berok will link without error, but may produce a broken library.
  11028. no_undefined_flag_CXX=' ${wl}-bernotok'
  11029. allow_undefined_flag_CXX=' ${wl}-berok'
  11030. if test "$with_gnu_ld" = yes; then
  11031. # We only use this code for GNU lds that support --whole-archive.
  11032. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11033. else
  11034. # Exported symbols can be pulled into shared objects from archives
  11035. whole_archive_flag_spec_CXX='$convenience'
  11036. fi
  11037. archive_cmds_need_lc_CXX=yes
  11038. # This is similar to how AIX traditionally builds its shared
  11039. # libraries.
  11040. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11041. fi
  11042. fi
  11043. ;;
  11044. beos*)
  11045. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11046. allow_undefined_flag_CXX=unsupported
  11047. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11048. # support --undefined. This deserves some investigation. FIXME
  11049. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11050. else
  11051. ld_shlibs_CXX=no
  11052. fi
  11053. ;;
  11054. chorus*)
  11055. case $cc_basename in
  11056. *)
  11057. # FIXME: insert proper C++ library support
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. esac
  11061. ;;
  11062. cygwin* | mingw* | pw32* | cegcc*)
  11063. case $GXX,$cc_basename in
  11064. ,cl* | no,cl*)
  11065. # Native MSVC
  11066. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11067. # no search path for DLLs.
  11068. hardcode_libdir_flag_spec_CXX=' '
  11069. allow_undefined_flag_CXX=unsupported
  11070. always_export_symbols_CXX=yes
  11071. file_list_spec_CXX='@'
  11072. # Tell ltmain to make .lib files, not .a files.
  11073. libext=lib
  11074. # Tell ltmain to make .dll files, not .so files.
  11075. shrext_cmds=".dll"
  11076. # FIXME: Setting linknames here is a bad hack.
  11077. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11078. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11079. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11080. else
  11081. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11082. fi~
  11083. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11084. linknames='
  11085. # The linker will not automatically build a static lib if we build a DLL.
  11086. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11087. enable_shared_with_static_runtimes_CXX=yes
  11088. # Don't use ranlib
  11089. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11090. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11091. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11092. case $lt_outputfile in
  11093. *.exe|*.EXE) ;;
  11094. *)
  11095. lt_outputfile="$lt_outputfile.exe"
  11096. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11097. ;;
  11098. esac~
  11099. func_to_tool_file "$lt_outputfile"~
  11100. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11101. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11102. $RM "$lt_outputfile.manifest";
  11103. fi'
  11104. ;;
  11105. *)
  11106. # g++
  11107. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11108. # as there is no search path for DLLs.
  11109. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11110. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11111. allow_undefined_flag_CXX=unsupported
  11112. always_export_symbols_CXX=no
  11113. enable_shared_with_static_runtimes_CXX=yes
  11114. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11115. 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'
  11116. # If the export-symbols file already is a .def file (1st line
  11117. # is EXPORTS), use it as is; otherwise, prepend...
  11118. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11119. cp $export_symbols $output_objdir/$soname.def;
  11120. else
  11121. echo EXPORTS > $output_objdir/$soname.def;
  11122. cat $export_symbols >> $output_objdir/$soname.def;
  11123. fi~
  11124. $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'
  11125. else
  11126. ld_shlibs_CXX=no
  11127. fi
  11128. ;;
  11129. esac
  11130. ;;
  11131. darwin* | rhapsody*)
  11132. archive_cmds_need_lc_CXX=no
  11133. hardcode_direct_CXX=no
  11134. hardcode_automatic_CXX=yes
  11135. hardcode_shlibpath_var_CXX=unsupported
  11136. if test "$lt_cv_ld_force_load" = "yes"; then
  11137. 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\"`'
  11138. else
  11139. whole_archive_flag_spec_CXX=''
  11140. fi
  11141. link_all_deplibs_CXX=yes
  11142. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11143. case $cc_basename in
  11144. ifort*) _lt_dar_can_shared=yes ;;
  11145. *) _lt_dar_can_shared=$GCC ;;
  11146. esac
  11147. if test "$_lt_dar_can_shared" = "yes"; then
  11148. output_verbose_link_cmd=func_echo_all
  11149. 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}"
  11150. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11151. 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}"
  11152. 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}"
  11153. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11154. 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}"
  11155. 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}"
  11156. fi
  11157. else
  11158. ld_shlibs_CXX=no
  11159. fi
  11160. ;;
  11161. dgux*)
  11162. case $cc_basename in
  11163. ec++*)
  11164. # FIXME: insert proper C++ library support
  11165. ld_shlibs_CXX=no
  11166. ;;
  11167. ghcx*)
  11168. # Green Hills C++ Compiler
  11169. # FIXME: insert proper C++ library support
  11170. ld_shlibs_CXX=no
  11171. ;;
  11172. *)
  11173. # FIXME: insert proper C++ library support
  11174. ld_shlibs_CXX=no
  11175. ;;
  11176. esac
  11177. ;;
  11178. freebsd2.*)
  11179. # C++ shared libraries reported to be fairly broken before
  11180. # switch to ELF
  11181. ld_shlibs_CXX=no
  11182. ;;
  11183. freebsd-elf*)
  11184. archive_cmds_need_lc_CXX=no
  11185. ;;
  11186. freebsd* | dragonfly*)
  11187. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11188. # conventions
  11189. ld_shlibs_CXX=yes
  11190. ;;
  11191. gnu*)
  11192. ;;
  11193. haiku*)
  11194. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11195. link_all_deplibs_CXX=yes
  11196. ;;
  11197. hpux9*)
  11198. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11199. hardcode_libdir_separator_CXX=:
  11200. export_dynamic_flag_spec_CXX='${wl}-E'
  11201. hardcode_direct_CXX=yes
  11202. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11203. # but as the default
  11204. # location of the library.
  11205. case $cc_basename in
  11206. CC*)
  11207. # FIXME: insert proper C++ library support
  11208. ld_shlibs_CXX=no
  11209. ;;
  11210. aCC*)
  11211. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11212. # Commands to make compiler produce verbose output that lists
  11213. # what "hidden" libraries, object files and flags are used when
  11214. # linking a shared library.
  11215. #
  11216. # There doesn't appear to be a way to prevent this compiler from
  11217. # explicitly linking system object files so we need to strip them
  11218. # from the output so that they don't get included in the library
  11219. # dependencies.
  11220. 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"'
  11221. ;;
  11222. *)
  11223. if test "$GXX" = yes; then
  11224. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11225. else
  11226. # FIXME: insert proper C++ library support
  11227. ld_shlibs_CXX=no
  11228. fi
  11229. ;;
  11230. esac
  11231. ;;
  11232. hpux10*|hpux11*)
  11233. if test $with_gnu_ld = no; then
  11234. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11235. hardcode_libdir_separator_CXX=:
  11236. case $host_cpu in
  11237. hppa*64*|ia64*)
  11238. ;;
  11239. *)
  11240. export_dynamic_flag_spec_CXX='${wl}-E'
  11241. ;;
  11242. esac
  11243. fi
  11244. case $host_cpu in
  11245. hppa*64*|ia64*)
  11246. hardcode_direct_CXX=no
  11247. hardcode_shlibpath_var_CXX=no
  11248. ;;
  11249. *)
  11250. hardcode_direct_CXX=yes
  11251. hardcode_direct_absolute_CXX=yes
  11252. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11253. # but as the default
  11254. # location of the library.
  11255. ;;
  11256. esac
  11257. case $cc_basename in
  11258. CC*)
  11259. # FIXME: insert proper C++ library support
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. aCC*)
  11263. case $host_cpu in
  11264. hppa*64*)
  11265. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11266. ;;
  11267. ia64*)
  11268. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11269. ;;
  11270. *)
  11271. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11272. ;;
  11273. esac
  11274. # Commands to make compiler produce verbose output that lists
  11275. # what "hidden" libraries, object files and flags are used when
  11276. # linking a shared library.
  11277. #
  11278. # There doesn't appear to be a way to prevent this compiler from
  11279. # explicitly linking system object files so we need to strip them
  11280. # from the output so that they don't get included in the library
  11281. # dependencies.
  11282. 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"'
  11283. ;;
  11284. *)
  11285. if test "$GXX" = yes; then
  11286. if test $with_gnu_ld = no; then
  11287. case $host_cpu in
  11288. hppa*64*)
  11289. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11290. ;;
  11291. ia64*)
  11292. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11293. ;;
  11294. *)
  11295. 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'
  11296. ;;
  11297. esac
  11298. fi
  11299. else
  11300. # FIXME: insert proper C++ library support
  11301. ld_shlibs_CXX=no
  11302. fi
  11303. ;;
  11304. esac
  11305. ;;
  11306. interix[3-9]*)
  11307. hardcode_direct_CXX=no
  11308. hardcode_shlibpath_var_CXX=no
  11309. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11310. export_dynamic_flag_spec_CXX='${wl}-E'
  11311. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11312. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11313. # default) and relocated if they conflict, which is a slow very memory
  11314. # consuming and fragmenting process. To avoid this, we pick a random,
  11315. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11316. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11317. 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'
  11318. 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'
  11319. ;;
  11320. irix5* | irix6*)
  11321. case $cc_basename in
  11322. CC*)
  11323. # SGI C++
  11324. 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'
  11325. # Archives containing C++ object files must be created using
  11326. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11327. # necessary to make sure instantiated templates are included
  11328. # in the archive.
  11329. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11330. ;;
  11331. *)
  11332. if test "$GXX" = yes; then
  11333. if test "$with_gnu_ld" = no; then
  11334. 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'
  11335. else
  11336. 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'
  11337. fi
  11338. fi
  11339. link_all_deplibs_CXX=yes
  11340. ;;
  11341. esac
  11342. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11343. hardcode_libdir_separator_CXX=:
  11344. inherit_rpath_CXX=yes
  11345. ;;
  11346. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11347. case $cc_basename in
  11348. KCC*)
  11349. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11350. # KCC will only create a shared library if the output file
  11351. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11352. # to its proper name (with version) after linking.
  11353. 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'
  11354. 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'
  11355. # Commands to make compiler produce verbose output that lists
  11356. # what "hidden" libraries, object files and flags are used when
  11357. # linking a shared library.
  11358. #
  11359. # There doesn't appear to be a way to prevent this compiler from
  11360. # explicitly linking system object files so we need to strip them
  11361. # from the output so that they don't get included in the library
  11362. # dependencies.
  11363. 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"'
  11364. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11365. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11366. # Archives containing C++ object files must be created using
  11367. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11368. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11369. ;;
  11370. icpc* | ecpc* )
  11371. # Intel C++
  11372. with_gnu_ld=yes
  11373. # version 8.0 and above of icpc choke on multiply defined symbols
  11374. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11375. # earlier do not add the objects themselves.
  11376. case `$CC -V 2>&1` in
  11377. *"Version 7."*)
  11378. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11379. 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'
  11380. ;;
  11381. *) # Version 8.0 or newer
  11382. tmp_idyn=
  11383. case $host_cpu in
  11384. ia64*) tmp_idyn=' -i_dynamic';;
  11385. esac
  11386. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11387. 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'
  11388. ;;
  11389. esac
  11390. archive_cmds_need_lc_CXX=no
  11391. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11392. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11393. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11394. ;;
  11395. pgCC* | pgcpp*)
  11396. # Portland Group C++ compiler
  11397. case `$CC -V` in
  11398. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11399. prelink_cmds_CXX='tpldir=Template.dir~
  11400. rm -rf $tpldir~
  11401. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11402. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11403. old_archive_cmds_CXX='tpldir=Template.dir~
  11404. rm -rf $tpldir~
  11405. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11406. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11407. $RANLIB $oldlib'
  11408. archive_cmds_CXX='tpldir=Template.dir~
  11409. rm -rf $tpldir~
  11410. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11411. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11412. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11413. rm -rf $tpldir~
  11414. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11415. $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'
  11416. ;;
  11417. *) # Version 6 and above use weak symbols
  11418. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11419. 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'
  11420. ;;
  11421. esac
  11422. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11423. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11424. 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'
  11425. ;;
  11426. cxx*)
  11427. # Compaq C++
  11428. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11429. 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'
  11430. runpath_var=LD_RUN_PATH
  11431. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11432. hardcode_libdir_separator_CXX=:
  11433. # Commands to make compiler produce verbose output that lists
  11434. # what "hidden" libraries, object files and flags are used when
  11435. # linking a shared library.
  11436. #
  11437. # There doesn't appear to be a way to prevent this compiler from
  11438. # explicitly linking system object files so we need to strip them
  11439. # from the output so that they don't get included in the library
  11440. # dependencies.
  11441. 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'
  11442. ;;
  11443. xl* | mpixl* | bgxl*)
  11444. # IBM XL 8.0 on PPC, with GNU ld
  11445. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11446. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11447. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11448. if test "x$supports_anon_versioning" = xyes; then
  11449. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11450. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11451. echo "local: *; };" >> $output_objdir/$libname.ver~
  11452. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11453. fi
  11454. ;;
  11455. *)
  11456. case `$CC -V 2>&1 | sed 5q` in
  11457. *Sun\ C*)
  11458. # Sun C++ 5.9
  11459. no_undefined_flag_CXX=' -zdefs'
  11460. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11461. 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'
  11462. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11463. 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'
  11464. compiler_needs_object_CXX=yes
  11465. # Not sure whether something based on
  11466. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11467. # would be better.
  11468. output_verbose_link_cmd='func_echo_all'
  11469. # Archives containing C++ object files must be created using
  11470. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11471. # necessary to make sure instantiated templates are included
  11472. # in the archive.
  11473. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11474. ;;
  11475. esac
  11476. ;;
  11477. esac
  11478. ;;
  11479. lynxos*)
  11480. # FIXME: insert proper C++ library support
  11481. ld_shlibs_CXX=no
  11482. ;;
  11483. m88k*)
  11484. # FIXME: insert proper C++ library support
  11485. ld_shlibs_CXX=no
  11486. ;;
  11487. mvs*)
  11488. case $cc_basename in
  11489. cxx*)
  11490. # FIXME: insert proper C++ library support
  11491. ld_shlibs_CXX=no
  11492. ;;
  11493. *)
  11494. # FIXME: insert proper C++ library support
  11495. ld_shlibs_CXX=no
  11496. ;;
  11497. esac
  11498. ;;
  11499. netbsd*)
  11500. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11501. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11502. wlarc=
  11503. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11504. hardcode_direct_CXX=yes
  11505. hardcode_shlibpath_var_CXX=no
  11506. fi
  11507. # Workaround some broken pre-1.5 toolchains
  11508. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11509. ;;
  11510. *nto* | *qnx*)
  11511. ld_shlibs_CXX=yes
  11512. ;;
  11513. openbsd2*)
  11514. # C++ shared libraries are fairly broken
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. openbsd*)
  11518. if test -f /usr/libexec/ld.so; then
  11519. hardcode_direct_CXX=yes
  11520. hardcode_shlibpath_var_CXX=no
  11521. hardcode_direct_absolute_CXX=yes
  11522. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11523. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11524. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11525. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11526. export_dynamic_flag_spec_CXX='${wl}-E'
  11527. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11528. fi
  11529. output_verbose_link_cmd=func_echo_all
  11530. else
  11531. ld_shlibs_CXX=no
  11532. fi
  11533. ;;
  11534. osf3* | osf4* | osf5*)
  11535. case $cc_basename in
  11536. KCC*)
  11537. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11538. # KCC will only create a shared library if the output file
  11539. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11540. # to its proper name (with version) after linking.
  11541. 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'
  11542. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11543. hardcode_libdir_separator_CXX=:
  11544. # Archives containing C++ object files must be created using
  11545. # the KAI C++ compiler.
  11546. case $host in
  11547. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11548. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11549. esac
  11550. ;;
  11551. RCC*)
  11552. # Rational C++ 2.4.1
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. cxx*)
  11557. case $host in
  11558. osf3*)
  11559. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11560. 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'
  11561. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11562. ;;
  11563. *)
  11564. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11565. 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'
  11566. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11567. echo "-hidden">> $lib.exp~
  11568. $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~
  11569. $RM $lib.exp'
  11570. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11571. ;;
  11572. esac
  11573. hardcode_libdir_separator_CXX=:
  11574. # Commands to make compiler produce verbose output that lists
  11575. # what "hidden" libraries, object files and flags are used when
  11576. # linking a shared library.
  11577. #
  11578. # There doesn't appear to be a way to prevent this compiler from
  11579. # explicitly linking system object files so we need to strip them
  11580. # from the output so that they don't get included in the library
  11581. # dependencies.
  11582. 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"'
  11583. ;;
  11584. *)
  11585. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11586. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11587. case $host in
  11588. osf3*)
  11589. 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'
  11590. ;;
  11591. *)
  11592. 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'
  11593. ;;
  11594. esac
  11595. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11596. hardcode_libdir_separator_CXX=:
  11597. # Commands to make compiler produce verbose output that lists
  11598. # what "hidden" libraries, object files and flags are used when
  11599. # linking a shared library.
  11600. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11601. else
  11602. # FIXME: insert proper C++ library support
  11603. ld_shlibs_CXX=no
  11604. fi
  11605. ;;
  11606. esac
  11607. ;;
  11608. psos*)
  11609. # FIXME: insert proper C++ library support
  11610. ld_shlibs_CXX=no
  11611. ;;
  11612. sunos4*)
  11613. case $cc_basename in
  11614. CC*)
  11615. # Sun C++ 4.x
  11616. # FIXME: insert proper C++ library support
  11617. ld_shlibs_CXX=no
  11618. ;;
  11619. lcc*)
  11620. # Lucid
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. ;;
  11624. *)
  11625. # FIXME: insert proper C++ library support
  11626. ld_shlibs_CXX=no
  11627. ;;
  11628. esac
  11629. ;;
  11630. solaris*)
  11631. case $cc_basename in
  11632. CC* | sunCC*)
  11633. # Sun C++ 4.2, 5.x and Centerline C++
  11634. archive_cmds_need_lc_CXX=yes
  11635. no_undefined_flag_CXX=' -zdefs'
  11636. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11637. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11638. $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'
  11639. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11640. hardcode_shlibpath_var_CXX=no
  11641. case $host_os in
  11642. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11643. *)
  11644. # The compiler driver will combine and reorder linker options,
  11645. # but understands `-z linker_flag'.
  11646. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11647. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11648. ;;
  11649. esac
  11650. link_all_deplibs_CXX=yes
  11651. output_verbose_link_cmd='func_echo_all'
  11652. # Archives containing C++ object files must be created using
  11653. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11654. # necessary to make sure instantiated templates are included
  11655. # in the archive.
  11656. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11657. ;;
  11658. gcx*)
  11659. # Green Hills C++ Compiler
  11660. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11661. # The C++ compiler must be used to create the archive.
  11662. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11663. ;;
  11664. *)
  11665. # GNU C++ compiler with Solaris linker
  11666. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11667. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11668. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11669. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11670. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11671. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11672. # Commands to make compiler produce verbose output that lists
  11673. # what "hidden" libraries, object files and flags are used when
  11674. # linking a shared library.
  11675. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11676. else
  11677. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11678. # platform.
  11679. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11680. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11681. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11682. # Commands to make compiler produce verbose output that lists
  11683. # what "hidden" libraries, object files and flags are used when
  11684. # linking a shared library.
  11685. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11686. fi
  11687. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11688. case $host_os in
  11689. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11690. *)
  11691. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11692. ;;
  11693. esac
  11694. fi
  11695. ;;
  11696. esac
  11697. ;;
  11698. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11699. no_undefined_flag_CXX='${wl}-z,text'
  11700. archive_cmds_need_lc_CXX=no
  11701. hardcode_shlibpath_var_CXX=no
  11702. runpath_var='LD_RUN_PATH'
  11703. case $cc_basename in
  11704. CC*)
  11705. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11706. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11707. ;;
  11708. *)
  11709. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11710. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11711. ;;
  11712. esac
  11713. ;;
  11714. sysv5* | sco3.2v5* | sco5v6*)
  11715. # Note: We can NOT use -z defs as we might desire, because we do not
  11716. # link with -lc, and that would cause any symbols used from libc to
  11717. # always be unresolved, which means just about no library would
  11718. # ever link correctly. If we're not using GNU ld we use -z text
  11719. # though, which does catch some bad symbols but isn't as heavy-handed
  11720. # as -z defs.
  11721. no_undefined_flag_CXX='${wl}-z,text'
  11722. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11723. archive_cmds_need_lc_CXX=no
  11724. hardcode_shlibpath_var_CXX=no
  11725. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11726. hardcode_libdir_separator_CXX=':'
  11727. link_all_deplibs_CXX=yes
  11728. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11729. runpath_var='LD_RUN_PATH'
  11730. case $cc_basename in
  11731. CC*)
  11732. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11733. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11734. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11735. '"$old_archive_cmds_CXX"
  11736. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11737. '"$reload_cmds_CXX"
  11738. ;;
  11739. *)
  11740. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11741. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11742. ;;
  11743. esac
  11744. ;;
  11745. tandem*)
  11746. case $cc_basename in
  11747. NCC*)
  11748. # NonStop-UX NCC 3.20
  11749. # FIXME: insert proper C++ library support
  11750. ld_shlibs_CXX=no
  11751. ;;
  11752. *)
  11753. # FIXME: insert proper C++ library support
  11754. ld_shlibs_CXX=no
  11755. ;;
  11756. esac
  11757. ;;
  11758. vxworks*)
  11759. # FIXME: insert proper C++ library support
  11760. ld_shlibs_CXX=no
  11761. ;;
  11762. *)
  11763. # FIXME: insert proper C++ library support
  11764. ld_shlibs_CXX=no
  11765. ;;
  11766. esac
  11767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11768. $as_echo "$ld_shlibs_CXX" >&6; }
  11769. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11770. GCC_CXX="$GXX"
  11771. LD_CXX="$LD"
  11772. ## CAVEAT EMPTOR:
  11773. ## There is no encapsulation within the following macros, do not change
  11774. ## the running order or otherwise move them around unless you know exactly
  11775. ## what you are doing...
  11776. # Dependencies to place before and after the object being linked:
  11777. predep_objects_CXX=
  11778. postdep_objects_CXX=
  11779. predeps_CXX=
  11780. postdeps_CXX=
  11781. compiler_lib_search_path_CXX=
  11782. cat > conftest.$ac_ext <<_LT_EOF
  11783. class Foo
  11784. {
  11785. public:
  11786. Foo (void) { a = 0; }
  11787. private:
  11788. int a;
  11789. };
  11790. _LT_EOF
  11791. _lt_libdeps_save_CFLAGS=$CFLAGS
  11792. case "$CC $CFLAGS " in #(
  11793. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11794. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11795. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11796. esac
  11797. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11798. (eval $ac_compile) 2>&5
  11799. ac_status=$?
  11800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11801. test $ac_status = 0; }; then
  11802. # Parse the compiler output and extract the necessary
  11803. # objects, libraries and library flags.
  11804. # Sentinel used to keep track of whether or not we are before
  11805. # the conftest object file.
  11806. pre_test_object_deps_done=no
  11807. for p in `eval "$output_verbose_link_cmd"`; do
  11808. case ${prev}${p} in
  11809. -L* | -R* | -l*)
  11810. # Some compilers place space between "-{L,R}" and the path.
  11811. # Remove the space.
  11812. if test $p = "-L" ||
  11813. test $p = "-R"; then
  11814. prev=$p
  11815. continue
  11816. fi
  11817. # Expand the sysroot to ease extracting the directories later.
  11818. if test -z "$prev"; then
  11819. case $p in
  11820. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11821. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11822. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11823. esac
  11824. fi
  11825. case $p in
  11826. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11827. esac
  11828. if test "$pre_test_object_deps_done" = no; then
  11829. case ${prev} in
  11830. -L | -R)
  11831. # Internal compiler library paths should come after those
  11832. # provided the user. The postdeps already come after the
  11833. # user supplied libs so there is no need to process them.
  11834. if test -z "$compiler_lib_search_path_CXX"; then
  11835. compiler_lib_search_path_CXX="${prev}${p}"
  11836. else
  11837. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11838. fi
  11839. ;;
  11840. # The "-l" case would never come before the object being
  11841. # linked, so don't bother handling this case.
  11842. esac
  11843. else
  11844. if test -z "$postdeps_CXX"; then
  11845. postdeps_CXX="${prev}${p}"
  11846. else
  11847. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11848. fi
  11849. fi
  11850. prev=
  11851. ;;
  11852. *.lto.$objext) ;; # Ignore GCC LTO objects
  11853. *.$objext)
  11854. # This assumes that the test object file only shows up
  11855. # once in the compiler output.
  11856. if test "$p" = "conftest.$objext"; then
  11857. pre_test_object_deps_done=yes
  11858. continue
  11859. fi
  11860. if test "$pre_test_object_deps_done" = no; then
  11861. if test -z "$predep_objects_CXX"; then
  11862. predep_objects_CXX="$p"
  11863. else
  11864. predep_objects_CXX="$predep_objects_CXX $p"
  11865. fi
  11866. else
  11867. if test -z "$postdep_objects_CXX"; then
  11868. postdep_objects_CXX="$p"
  11869. else
  11870. postdep_objects_CXX="$postdep_objects_CXX $p"
  11871. fi
  11872. fi
  11873. ;;
  11874. *) ;; # Ignore the rest.
  11875. esac
  11876. done
  11877. # Clean up.
  11878. rm -f a.out a.exe
  11879. else
  11880. echo "libtool.m4: error: problem compiling CXX test program"
  11881. fi
  11882. $RM -f confest.$objext
  11883. CFLAGS=$_lt_libdeps_save_CFLAGS
  11884. # PORTME: override above test on systems where it is broken
  11885. case $host_os in
  11886. interix[3-9]*)
  11887. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11888. # hack all around it, let's just trust "g++" to DTRT.
  11889. predep_objects_CXX=
  11890. postdep_objects_CXX=
  11891. postdeps_CXX=
  11892. ;;
  11893. linux*)
  11894. case `$CC -V 2>&1 | sed 5q` in
  11895. *Sun\ C*)
  11896. # Sun C++ 5.9
  11897. # The more standards-conforming stlport4 library is
  11898. # incompatible with the Cstd library. Avoid specifying
  11899. # it if it's in CXXFLAGS. Ignore libCrun as
  11900. # -library=stlport4 depends on it.
  11901. case " $CXX $CXXFLAGS " in
  11902. *" -library=stlport4 "*)
  11903. solaris_use_stlport4=yes
  11904. ;;
  11905. esac
  11906. if test "$solaris_use_stlport4" != yes; then
  11907. postdeps_CXX='-library=Cstd -library=Crun'
  11908. fi
  11909. ;;
  11910. esac
  11911. ;;
  11912. solaris*)
  11913. case $cc_basename in
  11914. CC* | sunCC*)
  11915. # The more standards-conforming stlport4 library is
  11916. # incompatible with the Cstd library. Avoid specifying
  11917. # it if it's in CXXFLAGS. Ignore libCrun as
  11918. # -library=stlport4 depends on it.
  11919. case " $CXX $CXXFLAGS " in
  11920. *" -library=stlport4 "*)
  11921. solaris_use_stlport4=yes
  11922. ;;
  11923. esac
  11924. # Adding this requires a known-good setup of shared libraries for
  11925. # Sun compiler versions before 5.6, else PIC objects from an old
  11926. # archive will be linked into the output, leading to subtle bugs.
  11927. if test "$solaris_use_stlport4" != yes; then
  11928. postdeps_CXX='-library=Cstd -library=Crun'
  11929. fi
  11930. ;;
  11931. esac
  11932. ;;
  11933. esac
  11934. case " $postdeps_CXX " in
  11935. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11936. esac
  11937. compiler_lib_search_dirs_CXX=
  11938. if test -n "${compiler_lib_search_path_CXX}"; then
  11939. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11940. fi
  11941. lt_prog_compiler_wl_CXX=
  11942. lt_prog_compiler_pic_CXX=
  11943. lt_prog_compiler_static_CXX=
  11944. # C++ specific cases for pic, static, wl, etc.
  11945. if test "$GXX" = yes; then
  11946. lt_prog_compiler_wl_CXX='-Wl,'
  11947. lt_prog_compiler_static_CXX='-static'
  11948. case $host_os in
  11949. aix*)
  11950. # All AIX code is PIC.
  11951. if test "$host_cpu" = ia64; then
  11952. # AIX 5 now supports IA64 processor
  11953. lt_prog_compiler_static_CXX='-Bstatic'
  11954. fi
  11955. ;;
  11956. amigaos*)
  11957. case $host_cpu in
  11958. powerpc)
  11959. # see comment about AmigaOS4 .so support
  11960. lt_prog_compiler_pic_CXX='-fPIC'
  11961. ;;
  11962. m68k)
  11963. # FIXME: we need at least 68020 code to build shared libraries, but
  11964. # adding the `-m68020' flag to GCC prevents building anything better,
  11965. # like `-m68040'.
  11966. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11967. ;;
  11968. esac
  11969. ;;
  11970. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11971. # PIC is the default for these OSes.
  11972. ;;
  11973. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11974. # This hack is so that the source file can tell whether it is being
  11975. # built for inclusion in a dll (and should export symbols for example).
  11976. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11977. # (--disable-auto-import) libraries
  11978. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11979. ;;
  11980. darwin* | rhapsody*)
  11981. # PIC is the default on this platform
  11982. # Common symbols not allowed in MH_DYLIB files
  11983. lt_prog_compiler_pic_CXX='-fno-common'
  11984. ;;
  11985. *djgpp*)
  11986. # DJGPP does not support shared libraries at all
  11987. lt_prog_compiler_pic_CXX=
  11988. ;;
  11989. haiku*)
  11990. # PIC is the default for Haiku.
  11991. # The "-static" flag exists, but is broken.
  11992. lt_prog_compiler_static_CXX=
  11993. ;;
  11994. interix[3-9]*)
  11995. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11996. # Instead, we relocate shared libraries at runtime.
  11997. ;;
  11998. sysv4*MP*)
  11999. if test -d /usr/nec; then
  12000. lt_prog_compiler_pic_CXX=-Kconform_pic
  12001. fi
  12002. ;;
  12003. hpux*)
  12004. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12005. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12006. # sets the default TLS model and affects inlining.
  12007. case $host_cpu in
  12008. hppa*64*)
  12009. ;;
  12010. *)
  12011. lt_prog_compiler_pic_CXX='-fPIC'
  12012. ;;
  12013. esac
  12014. ;;
  12015. *qnx* | *nto*)
  12016. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12017. # it will coredump.
  12018. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12019. ;;
  12020. *)
  12021. lt_prog_compiler_pic_CXX='-fPIC'
  12022. ;;
  12023. esac
  12024. else
  12025. case $host_os in
  12026. aix[4-9]*)
  12027. # All AIX code is PIC.
  12028. if test "$host_cpu" = ia64; then
  12029. # AIX 5 now supports IA64 processor
  12030. lt_prog_compiler_static_CXX='-Bstatic'
  12031. else
  12032. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12033. fi
  12034. ;;
  12035. chorus*)
  12036. case $cc_basename in
  12037. cxch68*)
  12038. # Green Hills C++ Compiler
  12039. # _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"
  12040. ;;
  12041. esac
  12042. ;;
  12043. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12044. # This hack is so that the source file can tell whether it is being
  12045. # built for inclusion in a dll (and should export symbols for example).
  12046. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12047. ;;
  12048. dgux*)
  12049. case $cc_basename in
  12050. ec++*)
  12051. lt_prog_compiler_pic_CXX='-KPIC'
  12052. ;;
  12053. ghcx*)
  12054. # Green Hills C++ Compiler
  12055. lt_prog_compiler_pic_CXX='-pic'
  12056. ;;
  12057. *)
  12058. ;;
  12059. esac
  12060. ;;
  12061. freebsd* | dragonfly*)
  12062. # FreeBSD uses GNU C++
  12063. ;;
  12064. hpux9* | hpux10* | hpux11*)
  12065. case $cc_basename in
  12066. CC*)
  12067. lt_prog_compiler_wl_CXX='-Wl,'
  12068. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12069. if test "$host_cpu" != ia64; then
  12070. lt_prog_compiler_pic_CXX='+Z'
  12071. fi
  12072. ;;
  12073. aCC*)
  12074. lt_prog_compiler_wl_CXX='-Wl,'
  12075. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12076. case $host_cpu in
  12077. hppa*64*|ia64*)
  12078. # +Z the default
  12079. ;;
  12080. *)
  12081. lt_prog_compiler_pic_CXX='+Z'
  12082. ;;
  12083. esac
  12084. ;;
  12085. *)
  12086. ;;
  12087. esac
  12088. ;;
  12089. interix*)
  12090. # This is c89, which is MS Visual C++ (no shared libs)
  12091. # Anyone wants to do a port?
  12092. ;;
  12093. irix5* | irix6* | nonstopux*)
  12094. case $cc_basename in
  12095. CC*)
  12096. lt_prog_compiler_wl_CXX='-Wl,'
  12097. lt_prog_compiler_static_CXX='-non_shared'
  12098. # CC pic flag -KPIC is the default.
  12099. ;;
  12100. *)
  12101. ;;
  12102. esac
  12103. ;;
  12104. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12105. case $cc_basename in
  12106. KCC*)
  12107. # KAI C++ Compiler
  12108. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12109. lt_prog_compiler_pic_CXX='-fPIC'
  12110. ;;
  12111. ecpc* )
  12112. # old Intel C++ for x86_64 which still supported -KPIC.
  12113. lt_prog_compiler_wl_CXX='-Wl,'
  12114. lt_prog_compiler_pic_CXX='-KPIC'
  12115. lt_prog_compiler_static_CXX='-static'
  12116. ;;
  12117. icpc* )
  12118. # Intel C++, used to be incompatible with GCC.
  12119. # ICC 10 doesn't accept -KPIC any more.
  12120. lt_prog_compiler_wl_CXX='-Wl,'
  12121. lt_prog_compiler_pic_CXX='-fPIC'
  12122. lt_prog_compiler_static_CXX='-static'
  12123. ;;
  12124. pgCC* | pgcpp*)
  12125. # Portland Group C++ compiler
  12126. lt_prog_compiler_wl_CXX='-Wl,'
  12127. lt_prog_compiler_pic_CXX='-fpic'
  12128. lt_prog_compiler_static_CXX='-Bstatic'
  12129. ;;
  12130. cxx*)
  12131. # Compaq C++
  12132. # Make sure the PIC flag is empty. It appears that all Alpha
  12133. # Linux and Compaq Tru64 Unix objects are PIC.
  12134. lt_prog_compiler_pic_CXX=
  12135. lt_prog_compiler_static_CXX='-non_shared'
  12136. ;;
  12137. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12138. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12139. lt_prog_compiler_wl_CXX='-Wl,'
  12140. lt_prog_compiler_pic_CXX='-qpic'
  12141. lt_prog_compiler_static_CXX='-qstaticlink'
  12142. ;;
  12143. *)
  12144. case `$CC -V 2>&1 | sed 5q` in
  12145. *Sun\ C*)
  12146. # Sun C++ 5.9
  12147. lt_prog_compiler_pic_CXX='-KPIC'
  12148. lt_prog_compiler_static_CXX='-Bstatic'
  12149. lt_prog_compiler_wl_CXX='-Qoption ld '
  12150. ;;
  12151. esac
  12152. ;;
  12153. esac
  12154. ;;
  12155. lynxos*)
  12156. ;;
  12157. m88k*)
  12158. ;;
  12159. mvs*)
  12160. case $cc_basename in
  12161. cxx*)
  12162. lt_prog_compiler_pic_CXX='-W c,exportall'
  12163. ;;
  12164. *)
  12165. ;;
  12166. esac
  12167. ;;
  12168. netbsd*)
  12169. ;;
  12170. *qnx* | *nto*)
  12171. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12172. # it will coredump.
  12173. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12174. ;;
  12175. osf3* | osf4* | osf5*)
  12176. case $cc_basename in
  12177. KCC*)
  12178. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12179. ;;
  12180. RCC*)
  12181. # Rational C++ 2.4.1
  12182. lt_prog_compiler_pic_CXX='-pic'
  12183. ;;
  12184. cxx*)
  12185. # Digital/Compaq C++
  12186. lt_prog_compiler_wl_CXX='-Wl,'
  12187. # Make sure the PIC flag is empty. It appears that all Alpha
  12188. # Linux and Compaq Tru64 Unix objects are PIC.
  12189. lt_prog_compiler_pic_CXX=
  12190. lt_prog_compiler_static_CXX='-non_shared'
  12191. ;;
  12192. *)
  12193. ;;
  12194. esac
  12195. ;;
  12196. psos*)
  12197. ;;
  12198. solaris*)
  12199. case $cc_basename in
  12200. CC* | sunCC*)
  12201. # Sun C++ 4.2, 5.x and Centerline C++
  12202. lt_prog_compiler_pic_CXX='-KPIC'
  12203. lt_prog_compiler_static_CXX='-Bstatic'
  12204. lt_prog_compiler_wl_CXX='-Qoption ld '
  12205. ;;
  12206. gcx*)
  12207. # Green Hills C++ Compiler
  12208. lt_prog_compiler_pic_CXX='-PIC'
  12209. ;;
  12210. *)
  12211. ;;
  12212. esac
  12213. ;;
  12214. sunos4*)
  12215. case $cc_basename in
  12216. CC*)
  12217. # Sun C++ 4.x
  12218. lt_prog_compiler_pic_CXX='-pic'
  12219. lt_prog_compiler_static_CXX='-Bstatic'
  12220. ;;
  12221. lcc*)
  12222. # Lucid
  12223. lt_prog_compiler_pic_CXX='-pic'
  12224. ;;
  12225. *)
  12226. ;;
  12227. esac
  12228. ;;
  12229. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12230. case $cc_basename in
  12231. CC*)
  12232. lt_prog_compiler_wl_CXX='-Wl,'
  12233. lt_prog_compiler_pic_CXX='-KPIC'
  12234. lt_prog_compiler_static_CXX='-Bstatic'
  12235. ;;
  12236. esac
  12237. ;;
  12238. tandem*)
  12239. case $cc_basename in
  12240. NCC*)
  12241. # NonStop-UX NCC 3.20
  12242. lt_prog_compiler_pic_CXX='-KPIC'
  12243. ;;
  12244. *)
  12245. ;;
  12246. esac
  12247. ;;
  12248. vxworks*)
  12249. ;;
  12250. *)
  12251. lt_prog_compiler_can_build_shared_CXX=no
  12252. ;;
  12253. esac
  12254. fi
  12255. case $host_os in
  12256. # For platforms which do not support PIC, -DPIC is meaningless:
  12257. *djgpp*)
  12258. lt_prog_compiler_pic_CXX=
  12259. ;;
  12260. *)
  12261. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12262. ;;
  12263. esac
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12265. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12266. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12267. $as_echo_n "(cached) " >&6
  12268. else
  12269. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12270. fi
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12272. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12273. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12274. #
  12275. # Check to make sure the PIC flag actually works.
  12276. #
  12277. if test -n "$lt_prog_compiler_pic_CXX"; then
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12279. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12280. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. lt_cv_prog_compiler_pic_works_CXX=no
  12284. ac_outfile=conftest.$ac_objext
  12285. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12286. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12287. # Insert the option either (1) after the last *FLAGS variable, or
  12288. # (2) before a word containing "conftest.", or (3) at the end.
  12289. # Note that $ac_compile itself does not contain backslashes and begins
  12290. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12291. # The option is referenced via a variable to avoid confusing sed.
  12292. lt_compile=`echo "$ac_compile" | $SED \
  12293. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12294. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12295. -e 's:$: $lt_compiler_flag:'`
  12296. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12297. (eval "$lt_compile" 2>conftest.err)
  12298. ac_status=$?
  12299. cat conftest.err >&5
  12300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12301. if (exit $ac_status) && test -s "$ac_outfile"; then
  12302. # The compiler can only warn and ignore the option if not recognized
  12303. # So say no if there are warnings other than the usual output.
  12304. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12305. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12306. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12307. lt_cv_prog_compiler_pic_works_CXX=yes
  12308. fi
  12309. fi
  12310. $RM conftest*
  12311. fi
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12313. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12314. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12315. case $lt_prog_compiler_pic_CXX in
  12316. "" | " "*) ;;
  12317. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12318. esac
  12319. else
  12320. lt_prog_compiler_pic_CXX=
  12321. lt_prog_compiler_can_build_shared_CXX=no
  12322. fi
  12323. fi
  12324. #
  12325. # Check to make sure the static flag actually works.
  12326. #
  12327. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12329. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12330. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12331. $as_echo_n "(cached) " >&6
  12332. else
  12333. lt_cv_prog_compiler_static_works_CXX=no
  12334. save_LDFLAGS="$LDFLAGS"
  12335. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12336. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12337. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12338. # The linker can only warn and ignore the option if not recognized
  12339. # So say no if there are warnings
  12340. if test -s conftest.err; then
  12341. # Append any errors to the config.log.
  12342. cat conftest.err 1>&5
  12343. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12345. if diff conftest.exp conftest.er2 >/dev/null; then
  12346. lt_cv_prog_compiler_static_works_CXX=yes
  12347. fi
  12348. else
  12349. lt_cv_prog_compiler_static_works_CXX=yes
  12350. fi
  12351. fi
  12352. $RM -r conftest*
  12353. LDFLAGS="$save_LDFLAGS"
  12354. fi
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12356. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12357. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12358. :
  12359. else
  12360. lt_prog_compiler_static_CXX=
  12361. fi
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12363. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12364. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12365. $as_echo_n "(cached) " >&6
  12366. else
  12367. lt_cv_prog_compiler_c_o_CXX=no
  12368. $RM -r conftest 2>/dev/null
  12369. mkdir conftest
  12370. cd conftest
  12371. mkdir out
  12372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12373. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12374. # Insert the option either (1) after the last *FLAGS variable, or
  12375. # (2) before a word containing "conftest.", or (3) at the end.
  12376. # Note that $ac_compile itself does not contain backslashes and begins
  12377. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12378. lt_compile=`echo "$ac_compile" | $SED \
  12379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12381. -e 's:$: $lt_compiler_flag:'`
  12382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12383. (eval "$lt_compile" 2>out/conftest.err)
  12384. ac_status=$?
  12385. cat out/conftest.err >&5
  12386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12387. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12388. then
  12389. # The compiler can only warn and ignore the option if not recognized
  12390. # So say no if there are warnings
  12391. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12392. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12393. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12394. lt_cv_prog_compiler_c_o_CXX=yes
  12395. fi
  12396. fi
  12397. chmod u+w . 2>&5
  12398. $RM conftest*
  12399. # SGI C++ compiler will create directory out/ii_files/ for
  12400. # template instantiation
  12401. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12402. $RM out/* && rmdir out
  12403. cd ..
  12404. $RM -r conftest
  12405. $RM conftest*
  12406. fi
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12408. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12410. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12411. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12412. $as_echo_n "(cached) " >&6
  12413. else
  12414. lt_cv_prog_compiler_c_o_CXX=no
  12415. $RM -r conftest 2>/dev/null
  12416. mkdir conftest
  12417. cd conftest
  12418. mkdir out
  12419. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12420. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12421. # Insert the option either (1) after the last *FLAGS variable, or
  12422. # (2) before a word containing "conftest.", or (3) at the end.
  12423. # Note that $ac_compile itself does not contain backslashes and begins
  12424. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12425. lt_compile=`echo "$ac_compile" | $SED \
  12426. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12427. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12428. -e 's:$: $lt_compiler_flag:'`
  12429. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12430. (eval "$lt_compile" 2>out/conftest.err)
  12431. ac_status=$?
  12432. cat out/conftest.err >&5
  12433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12434. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12435. then
  12436. # The compiler can only warn and ignore the option if not recognized
  12437. # So say no if there are warnings
  12438. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12439. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12440. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12441. lt_cv_prog_compiler_c_o_CXX=yes
  12442. fi
  12443. fi
  12444. chmod u+w . 2>&5
  12445. $RM conftest*
  12446. # SGI C++ compiler will create directory out/ii_files/ for
  12447. # template instantiation
  12448. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12449. $RM out/* && rmdir out
  12450. cd ..
  12451. $RM -r conftest
  12452. $RM conftest*
  12453. fi
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12455. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12456. hard_links="nottested"
  12457. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12458. # do not overwrite the value of need_locks provided by the user
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12460. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12461. hard_links=yes
  12462. $RM conftest*
  12463. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12464. touch conftest.a
  12465. ln conftest.a conftest.b 2>&5 || hard_links=no
  12466. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12468. $as_echo "$hard_links" >&6; }
  12469. if test "$hard_links" = no; then
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12471. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12472. need_locks=warn
  12473. fi
  12474. else
  12475. need_locks=no
  12476. fi
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12478. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12479. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12480. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12481. case $host_os in
  12482. aix[4-9]*)
  12483. # If we're using GNU nm, then we don't want the "-C" option.
  12484. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12485. # Also, AIX nm treats weak defined symbols like other global defined
  12486. # symbols, whereas GNU nm marks them as "W".
  12487. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12488. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12489. else
  12490. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12491. fi
  12492. ;;
  12493. pw32*)
  12494. export_symbols_cmds_CXX="$ltdll_cmds"
  12495. ;;
  12496. cygwin* | mingw* | cegcc*)
  12497. case $cc_basename in
  12498. cl*)
  12499. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12500. ;;
  12501. *)
  12502. 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'
  12503. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12504. ;;
  12505. esac
  12506. ;;
  12507. *)
  12508. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12509. ;;
  12510. esac
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12512. $as_echo "$ld_shlibs_CXX" >&6; }
  12513. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12514. with_gnu_ld_CXX=$with_gnu_ld
  12515. #
  12516. # Do we need to explicitly link libc?
  12517. #
  12518. case "x$archive_cmds_need_lc_CXX" in
  12519. x|xyes)
  12520. # Assume -lc should be added
  12521. archive_cmds_need_lc_CXX=yes
  12522. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12523. case $archive_cmds_CXX in
  12524. *'~'*)
  12525. # FIXME: we may have to deal with multi-command sequences.
  12526. ;;
  12527. '$CC '*)
  12528. # Test whether the compiler implicitly links with -lc since on some
  12529. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12530. # to ld, don't add -lc before -lgcc.
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12532. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12533. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12534. $as_echo_n "(cached) " >&6
  12535. else
  12536. $RM conftest*
  12537. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12538. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12539. (eval $ac_compile) 2>&5
  12540. ac_status=$?
  12541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12542. test $ac_status = 0; } 2>conftest.err; then
  12543. soname=conftest
  12544. lib=conftest
  12545. libobjs=conftest.$ac_objext
  12546. deplibs=
  12547. wl=$lt_prog_compiler_wl_CXX
  12548. pic_flag=$lt_prog_compiler_pic_CXX
  12549. compiler_flags=-v
  12550. linker_flags=-v
  12551. verstring=
  12552. output_objdir=.
  12553. libname=conftest
  12554. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12555. allow_undefined_flag_CXX=
  12556. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12557. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12558. ac_status=$?
  12559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12560. test $ac_status = 0; }
  12561. then
  12562. lt_cv_archive_cmds_need_lc_CXX=no
  12563. else
  12564. lt_cv_archive_cmds_need_lc_CXX=yes
  12565. fi
  12566. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12567. else
  12568. cat conftest.err 1>&5
  12569. fi
  12570. $RM conftest*
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12573. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12574. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12575. ;;
  12576. esac
  12577. fi
  12578. ;;
  12579. esac
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12581. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12582. library_names_spec=
  12583. libname_spec='lib$name'
  12584. soname_spec=
  12585. shrext_cmds=".so"
  12586. postinstall_cmds=
  12587. postuninstall_cmds=
  12588. finish_cmds=
  12589. finish_eval=
  12590. shlibpath_var=
  12591. shlibpath_overrides_runpath=unknown
  12592. version_type=none
  12593. dynamic_linker="$host_os ld.so"
  12594. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12595. need_lib_prefix=unknown
  12596. hardcode_into_libs=no
  12597. # when you set need_version to no, make sure it does not cause -set_version
  12598. # flags to be left without arguments
  12599. need_version=unknown
  12600. case $host_os in
  12601. aix3*)
  12602. version_type=linux # correct to gnu/linux during the next big refactor
  12603. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12604. shlibpath_var=LIBPATH
  12605. # AIX 3 has no versioning support, so we append a major version to the name.
  12606. soname_spec='${libname}${release}${shared_ext}$major'
  12607. ;;
  12608. aix[4-9]*)
  12609. version_type=linux # correct to gnu/linux during the next big refactor
  12610. need_lib_prefix=no
  12611. need_version=no
  12612. hardcode_into_libs=yes
  12613. if test "$host_cpu" = ia64; then
  12614. # AIX 5 supports IA64
  12615. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12616. shlibpath_var=LD_LIBRARY_PATH
  12617. else
  12618. # With GCC up to 2.95.x, collect2 would create an import file
  12619. # for dependence libraries. The import file would start with
  12620. # the line `#! .'. This would cause the generated library to
  12621. # depend on `.', always an invalid library. This was fixed in
  12622. # development snapshots of GCC prior to 3.0.
  12623. case $host_os in
  12624. aix4 | aix4.[01] | aix4.[01].*)
  12625. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12626. echo ' yes '
  12627. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12628. :
  12629. else
  12630. can_build_shared=no
  12631. fi
  12632. ;;
  12633. esac
  12634. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12635. # soname into executable. Probably we can add versioning support to
  12636. # collect2, so additional links can be useful in future.
  12637. if test "$aix_use_runtimelinking" = yes; then
  12638. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12639. # instead of lib<name>.a to let people know that these are not
  12640. # typical AIX shared libraries.
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12642. else
  12643. # We preserve .a as extension for shared libraries through AIX4.2
  12644. # and later when we are not doing run time linking.
  12645. library_names_spec='${libname}${release}.a $libname.a'
  12646. soname_spec='${libname}${release}${shared_ext}$major'
  12647. fi
  12648. shlibpath_var=LIBPATH
  12649. fi
  12650. ;;
  12651. amigaos*)
  12652. case $host_cpu in
  12653. powerpc)
  12654. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12655. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12657. ;;
  12658. m68k)
  12659. library_names_spec='$libname.ixlibrary $libname.a'
  12660. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12661. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  12662. ;;
  12663. esac
  12664. ;;
  12665. beos*)
  12666. library_names_spec='${libname}${shared_ext}'
  12667. dynamic_linker="$host_os ld.so"
  12668. shlibpath_var=LIBRARY_PATH
  12669. ;;
  12670. bsdi[45]*)
  12671. version_type=linux # correct to gnu/linux during the next big refactor
  12672. need_version=no
  12673. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12674. soname_spec='${libname}${release}${shared_ext}$major'
  12675. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12676. shlibpath_var=LD_LIBRARY_PATH
  12677. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12678. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12679. # the default ld.so.conf also contains /usr/contrib/lib and
  12680. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12681. # libtool to hard-code these into programs
  12682. ;;
  12683. cygwin* | mingw* | pw32* | cegcc*)
  12684. version_type=windows
  12685. shrext_cmds=".dll"
  12686. need_version=no
  12687. need_lib_prefix=no
  12688. case $GCC,$cc_basename in
  12689. yes,*)
  12690. # gcc
  12691. library_names_spec='$libname.dll.a'
  12692. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12693. postinstall_cmds='base_file=`basename \${file}`~
  12694. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12695. dldir=$destdir/`dirname \$dlpath`~
  12696. test -d \$dldir || mkdir -p \$dldir~
  12697. $install_prog $dir/$dlname \$dldir/$dlname~
  12698. chmod a+x \$dldir/$dlname~
  12699. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12700. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12701. fi'
  12702. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12703. dlpath=$dir/\$dldll~
  12704. $RM \$dlpath'
  12705. shlibpath_overrides_runpath=yes
  12706. case $host_os in
  12707. cygwin*)
  12708. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12709. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12710. ;;
  12711. mingw* | cegcc*)
  12712. # MinGW DLLs use traditional 'lib' prefix
  12713. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12714. ;;
  12715. pw32*)
  12716. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12717. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12718. ;;
  12719. esac
  12720. dynamic_linker='Win32 ld.exe'
  12721. ;;
  12722. *,cl*)
  12723. # Native MSVC
  12724. libname_spec='$name'
  12725. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12726. library_names_spec='${libname}.dll.lib'
  12727. case $build_os in
  12728. mingw*)
  12729. sys_lib_search_path_spec=
  12730. lt_save_ifs=$IFS
  12731. IFS=';'
  12732. for lt_path in $LIB
  12733. do
  12734. IFS=$lt_save_ifs
  12735. # Let DOS variable expansion print the short 8.3 style file name.
  12736. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12737. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12738. done
  12739. IFS=$lt_save_ifs
  12740. # Convert to MSYS style.
  12741. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12742. ;;
  12743. cygwin*)
  12744. # Convert to unix form, then to dos form, then back to unix form
  12745. # but this time dos style (no spaces!) so that the unix form looks
  12746. # like /cygdrive/c/PROGRA~1:/cygdr...
  12747. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12748. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12749. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12750. ;;
  12751. *)
  12752. sys_lib_search_path_spec="$LIB"
  12753. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12754. # It is most probably a Windows format PATH.
  12755. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12756. else
  12757. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12758. fi
  12759. # FIXME: find the short name or the path components, as spaces are
  12760. # common. (e.g. "Program Files" -> "PROGRA~1")
  12761. ;;
  12762. esac
  12763. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12764. postinstall_cmds='base_file=`basename \${file}`~
  12765. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12766. dldir=$destdir/`dirname \$dlpath`~
  12767. test -d \$dldir || mkdir -p \$dldir~
  12768. $install_prog $dir/$dlname \$dldir/$dlname'
  12769. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12770. dlpath=$dir/\$dldll~
  12771. $RM \$dlpath'
  12772. shlibpath_overrides_runpath=yes
  12773. dynamic_linker='Win32 link.exe'
  12774. ;;
  12775. *)
  12776. # Assume MSVC wrapper
  12777. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12778. dynamic_linker='Win32 ld.exe'
  12779. ;;
  12780. esac
  12781. # FIXME: first we should search . and the directory the executable is in
  12782. shlibpath_var=PATH
  12783. ;;
  12784. darwin* | rhapsody*)
  12785. dynamic_linker="$host_os dyld"
  12786. version_type=darwin
  12787. need_lib_prefix=no
  12788. need_version=no
  12789. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12790. soname_spec='${libname}${release}${major}$shared_ext'
  12791. shlibpath_overrides_runpath=yes
  12792. shlibpath_var=DYLD_LIBRARY_PATH
  12793. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12794. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12795. ;;
  12796. dgux*)
  12797. version_type=linux # correct to gnu/linux during the next big refactor
  12798. need_lib_prefix=no
  12799. need_version=no
  12800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12801. soname_spec='${libname}${release}${shared_ext}$major'
  12802. shlibpath_var=LD_LIBRARY_PATH
  12803. ;;
  12804. freebsd* | dragonfly*)
  12805. # DragonFly does not have aout. When/if they implement a new
  12806. # versioning mechanism, adjust this.
  12807. if test -x /usr/bin/objformat; then
  12808. objformat=`/usr/bin/objformat`
  12809. else
  12810. case $host_os in
  12811. freebsd[23].*) objformat=aout ;;
  12812. *) objformat=elf ;;
  12813. esac
  12814. fi
  12815. version_type=freebsd-$objformat
  12816. case $version_type in
  12817. freebsd-elf*)
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12819. need_version=no
  12820. need_lib_prefix=no
  12821. ;;
  12822. freebsd-*)
  12823. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12824. need_version=yes
  12825. ;;
  12826. esac
  12827. shlibpath_var=LD_LIBRARY_PATH
  12828. case $host_os in
  12829. freebsd2.*)
  12830. shlibpath_overrides_runpath=yes
  12831. ;;
  12832. freebsd3.[01]* | freebsdelf3.[01]*)
  12833. shlibpath_overrides_runpath=yes
  12834. hardcode_into_libs=yes
  12835. ;;
  12836. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12837. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12838. shlibpath_overrides_runpath=no
  12839. hardcode_into_libs=yes
  12840. ;;
  12841. *) # from 4.6 on, and DragonFly
  12842. shlibpath_overrides_runpath=yes
  12843. hardcode_into_libs=yes
  12844. ;;
  12845. esac
  12846. ;;
  12847. gnu*)
  12848. version_type=linux # correct to gnu/linux during the next big refactor
  12849. need_lib_prefix=no
  12850. need_version=no
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12852. soname_spec='${libname}${release}${shared_ext}$major'
  12853. shlibpath_var=LD_LIBRARY_PATH
  12854. shlibpath_overrides_runpath=no
  12855. hardcode_into_libs=yes
  12856. ;;
  12857. haiku*)
  12858. version_type=linux # correct to gnu/linux during the next big refactor
  12859. need_lib_prefix=no
  12860. need_version=no
  12861. dynamic_linker="$host_os runtime_loader"
  12862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12863. soname_spec='${libname}${release}${shared_ext}$major'
  12864. shlibpath_var=LIBRARY_PATH
  12865. shlibpath_overrides_runpath=yes
  12866. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12867. hardcode_into_libs=yes
  12868. ;;
  12869. hpux9* | hpux10* | hpux11*)
  12870. # Give a soname corresponding to the major version so that dld.sl refuses to
  12871. # link against other versions.
  12872. version_type=sunos
  12873. need_lib_prefix=no
  12874. need_version=no
  12875. case $host_cpu in
  12876. ia64*)
  12877. shrext_cmds='.so'
  12878. hardcode_into_libs=yes
  12879. dynamic_linker="$host_os dld.so"
  12880. shlibpath_var=LD_LIBRARY_PATH
  12881. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12883. soname_spec='${libname}${release}${shared_ext}$major'
  12884. if test "X$HPUX_IA64_MODE" = X32; then
  12885. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12886. else
  12887. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12888. fi
  12889. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12890. ;;
  12891. hppa*64*)
  12892. shrext_cmds='.sl'
  12893. hardcode_into_libs=yes
  12894. dynamic_linker="$host_os dld.sl"
  12895. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12896. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12898. soname_spec='${libname}${release}${shared_ext}$major'
  12899. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12900. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12901. ;;
  12902. *)
  12903. shrext_cmds='.sl'
  12904. dynamic_linker="$host_os dld.sl"
  12905. shlibpath_var=SHLIB_PATH
  12906. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12908. soname_spec='${libname}${release}${shared_ext}$major'
  12909. ;;
  12910. esac
  12911. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12912. postinstall_cmds='chmod 555 $lib'
  12913. # or fails outright, so override atomically:
  12914. install_override_mode=555
  12915. ;;
  12916. interix[3-9]*)
  12917. version_type=linux # correct to gnu/linux during the next big refactor
  12918. need_lib_prefix=no
  12919. need_version=no
  12920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12921. soname_spec='${libname}${release}${shared_ext}$major'
  12922. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12923. shlibpath_var=LD_LIBRARY_PATH
  12924. shlibpath_overrides_runpath=no
  12925. hardcode_into_libs=yes
  12926. ;;
  12927. irix5* | irix6* | nonstopux*)
  12928. case $host_os in
  12929. nonstopux*) version_type=nonstopux ;;
  12930. *)
  12931. if test "$lt_cv_prog_gnu_ld" = yes; then
  12932. version_type=linux # correct to gnu/linux during the next big refactor
  12933. else
  12934. version_type=irix
  12935. fi ;;
  12936. esac
  12937. need_lib_prefix=no
  12938. need_version=no
  12939. soname_spec='${libname}${release}${shared_ext}$major'
  12940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12941. case $host_os in
  12942. irix5* | nonstopux*)
  12943. libsuff= shlibsuff=
  12944. ;;
  12945. *)
  12946. case $LD in # libtool.m4 will add one of these switches to LD
  12947. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12948. libsuff= shlibsuff= libmagic=32-bit;;
  12949. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12950. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12951. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12952. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12953. *) libsuff= shlibsuff= libmagic=never-match;;
  12954. esac
  12955. ;;
  12956. esac
  12957. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12958. shlibpath_overrides_runpath=no
  12959. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12960. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12961. hardcode_into_libs=yes
  12962. ;;
  12963. # No shared lib support for Linux oldld, aout, or coff.
  12964. linux*oldld* | linux*aout* | linux*coff*)
  12965. dynamic_linker=no
  12966. ;;
  12967. # This must be glibc/ELF.
  12968. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12969. version_type=linux # correct to gnu/linux during the next big refactor
  12970. need_lib_prefix=no
  12971. need_version=no
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12975. shlibpath_var=LD_LIBRARY_PATH
  12976. shlibpath_overrides_runpath=no
  12977. # Some binutils ld are patched to set DT_RUNPATH
  12978. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12979. $as_echo_n "(cached) " >&6
  12980. else
  12981. lt_cv_shlibpath_overrides_runpath=no
  12982. save_LDFLAGS=$LDFLAGS
  12983. save_libdir=$libdir
  12984. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12985. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12987. /* end confdefs.h. */
  12988. int
  12989. main ()
  12990. {
  12991. ;
  12992. return 0;
  12993. }
  12994. _ACEOF
  12995. if ac_fn_cxx_try_link "$LINENO"; then :
  12996. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12997. lt_cv_shlibpath_overrides_runpath=yes
  12998. fi
  12999. fi
  13000. rm -f core conftest.err conftest.$ac_objext \
  13001. conftest$ac_exeext conftest.$ac_ext
  13002. LDFLAGS=$save_LDFLAGS
  13003. libdir=$save_libdir
  13004. fi
  13005. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13006. # This implies no fast_install, which is unacceptable.
  13007. # Some rework will be needed to allow for fast_install
  13008. # before this can be enabled.
  13009. hardcode_into_libs=yes
  13010. # Append ld.so.conf contents to the search path
  13011. if test -f /etc/ld.so.conf; then
  13012. 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' ' '`
  13013. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13014. fi
  13015. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13016. # powerpc, because MkLinux only supported shared libraries with the
  13017. # GNU dynamic linker. Since this was broken with cross compilers,
  13018. # most powerpc-linux boxes support dynamic linking these days and
  13019. # people can always --disable-shared, the test was removed, and we
  13020. # assume the GNU/Linux dynamic linker is in use.
  13021. dynamic_linker='GNU/Linux ld.so'
  13022. ;;
  13023. netbsd*)
  13024. version_type=sunos
  13025. need_lib_prefix=no
  13026. need_version=no
  13027. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13029. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13030. dynamic_linker='NetBSD (a.out) ld.so'
  13031. else
  13032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13033. soname_spec='${libname}${release}${shared_ext}$major'
  13034. dynamic_linker='NetBSD ld.elf_so'
  13035. fi
  13036. shlibpath_var=LD_LIBRARY_PATH
  13037. shlibpath_overrides_runpath=yes
  13038. hardcode_into_libs=yes
  13039. ;;
  13040. newsos6)
  13041. version_type=linux # correct to gnu/linux during the next big refactor
  13042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13043. shlibpath_var=LD_LIBRARY_PATH
  13044. shlibpath_overrides_runpath=yes
  13045. ;;
  13046. *nto* | *qnx*)
  13047. version_type=qnx
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. shlibpath_var=LD_LIBRARY_PATH
  13053. shlibpath_overrides_runpath=no
  13054. hardcode_into_libs=yes
  13055. dynamic_linker='ldqnx.so'
  13056. ;;
  13057. openbsd*)
  13058. version_type=sunos
  13059. sys_lib_dlsearch_path_spec="/usr/lib"
  13060. need_lib_prefix=no
  13061. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13062. case $host_os in
  13063. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13064. *) need_version=no ;;
  13065. esac
  13066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13067. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13068. shlibpath_var=LD_LIBRARY_PATH
  13069. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13070. case $host_os in
  13071. openbsd2.[89] | openbsd2.[89].*)
  13072. shlibpath_overrides_runpath=no
  13073. ;;
  13074. *)
  13075. shlibpath_overrides_runpath=yes
  13076. ;;
  13077. esac
  13078. else
  13079. shlibpath_overrides_runpath=yes
  13080. fi
  13081. ;;
  13082. os2*)
  13083. libname_spec='$name'
  13084. shrext_cmds=".dll"
  13085. need_lib_prefix=no
  13086. library_names_spec='$libname${shared_ext} $libname.a'
  13087. dynamic_linker='OS/2 ld.exe'
  13088. shlibpath_var=LIBPATH
  13089. ;;
  13090. osf3* | osf4* | osf5*)
  13091. version_type=osf
  13092. need_lib_prefix=no
  13093. need_version=no
  13094. soname_spec='${libname}${release}${shared_ext}$major'
  13095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13098. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13099. ;;
  13100. rdos*)
  13101. dynamic_linker=no
  13102. ;;
  13103. solaris*)
  13104. version_type=linux # correct to gnu/linux during the next big refactor
  13105. need_lib_prefix=no
  13106. need_version=no
  13107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13108. soname_spec='${libname}${release}${shared_ext}$major'
  13109. shlibpath_var=LD_LIBRARY_PATH
  13110. shlibpath_overrides_runpath=yes
  13111. hardcode_into_libs=yes
  13112. # ldd complains unless libraries are executable
  13113. postinstall_cmds='chmod +x $lib'
  13114. ;;
  13115. sunos4*)
  13116. version_type=sunos
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13118. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13119. shlibpath_var=LD_LIBRARY_PATH
  13120. shlibpath_overrides_runpath=yes
  13121. if test "$with_gnu_ld" = yes; then
  13122. need_lib_prefix=no
  13123. fi
  13124. need_version=yes
  13125. ;;
  13126. sysv4 | sysv4.3*)
  13127. version_type=linux # correct to gnu/linux during the next big refactor
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. case $host_vendor in
  13132. sni)
  13133. shlibpath_overrides_runpath=no
  13134. need_lib_prefix=no
  13135. runpath_var=LD_RUN_PATH
  13136. ;;
  13137. siemens)
  13138. need_lib_prefix=no
  13139. ;;
  13140. motorola)
  13141. need_lib_prefix=no
  13142. need_version=no
  13143. shlibpath_overrides_runpath=no
  13144. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13145. ;;
  13146. esac
  13147. ;;
  13148. sysv4*MP*)
  13149. if test -d /usr/nec ;then
  13150. version_type=linux # correct to gnu/linux during the next big refactor
  13151. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13152. soname_spec='$libname${shared_ext}.$major'
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. fi
  13155. ;;
  13156. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13157. version_type=freebsd-elf
  13158. need_lib_prefix=no
  13159. need_version=no
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13161. soname_spec='${libname}${release}${shared_ext}$major'
  13162. shlibpath_var=LD_LIBRARY_PATH
  13163. shlibpath_overrides_runpath=yes
  13164. hardcode_into_libs=yes
  13165. if test "$with_gnu_ld" = yes; then
  13166. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13167. else
  13168. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13169. case $host_os in
  13170. sco3.2v5*)
  13171. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13172. ;;
  13173. esac
  13174. fi
  13175. sys_lib_dlsearch_path_spec='/usr/lib'
  13176. ;;
  13177. tpf*)
  13178. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13179. version_type=linux # correct to gnu/linux during the next big refactor
  13180. need_lib_prefix=no
  13181. need_version=no
  13182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. shlibpath_overrides_runpath=no
  13185. hardcode_into_libs=yes
  13186. ;;
  13187. uts4*)
  13188. version_type=linux # correct to gnu/linux during the next big refactor
  13189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13190. soname_spec='${libname}${release}${shared_ext}$major'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. ;;
  13193. *)
  13194. dynamic_linker=no
  13195. ;;
  13196. esac
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13198. $as_echo "$dynamic_linker" >&6; }
  13199. test "$dynamic_linker" = no && can_build_shared=no
  13200. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13201. if test "$GCC" = yes; then
  13202. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13203. fi
  13204. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13205. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13206. fi
  13207. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13208. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13211. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13212. hardcode_action_CXX=
  13213. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13214. test -n "$runpath_var_CXX" ||
  13215. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13216. # We can hardcode non-existent directories.
  13217. if test "$hardcode_direct_CXX" != no &&
  13218. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13219. # have to relink, otherwise we might link with an installed library
  13220. # when we should be linking with a yet-to-be-installed one
  13221. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13222. test "$hardcode_minus_L_CXX" != no; then
  13223. # Linking always hardcodes the temporary library directory.
  13224. hardcode_action_CXX=relink
  13225. else
  13226. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13227. hardcode_action_CXX=immediate
  13228. fi
  13229. else
  13230. # We cannot hardcode anything, or else we can only hardcode existing
  13231. # directories.
  13232. hardcode_action_CXX=unsupported
  13233. fi
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13235. $as_echo "$hardcode_action_CXX" >&6; }
  13236. if test "$hardcode_action_CXX" = relink ||
  13237. test "$inherit_rpath_CXX" = yes; then
  13238. # Fast installation is not supported
  13239. enable_fast_install=no
  13240. elif test "$shlibpath_overrides_runpath" = yes ||
  13241. test "$enable_shared" = no; then
  13242. # Fast installation is not necessary
  13243. enable_fast_install=needless
  13244. fi
  13245. fi # test -n "$compiler"
  13246. CC=$lt_save_CC
  13247. CFLAGS=$lt_save_CFLAGS
  13248. LDCXX=$LD
  13249. LD=$lt_save_LD
  13250. GCC=$lt_save_GCC
  13251. with_gnu_ld=$lt_save_with_gnu_ld
  13252. lt_cv_path_LDCXX=$lt_cv_path_LD
  13253. lt_cv_path_LD=$lt_save_path_LD
  13254. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13255. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13256. fi # test "$_lt_caught_CXX_error" != yes
  13257. ac_ext=c
  13258. ac_cpp='$CPP $CPPFLAGS'
  13259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13262. ac_config_commands="$ac_config_commands libtool"
  13263. # Only expand once:
  13264. # Checks for libraries.
  13265. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13266. if test -n "$ac_tool_prefix"; then
  13267. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13268. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13270. $as_echo_n "checking for $ac_word... " >&6; }
  13271. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13272. $as_echo_n "(cached) " >&6
  13273. else
  13274. case $PKG_CONFIG in
  13275. [\\/]* | ?:[\\/]*)
  13276. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13277. ;;
  13278. *)
  13279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13280. for as_dir in $PATH
  13281. do
  13282. IFS=$as_save_IFS
  13283. test -z "$as_dir" && as_dir=.
  13284. for ac_exec_ext in '' $ac_executable_extensions; do
  13285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13286. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13288. break 2
  13289. fi
  13290. done
  13291. done
  13292. IFS=$as_save_IFS
  13293. ;;
  13294. esac
  13295. fi
  13296. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13297. if test -n "$PKG_CONFIG"; then
  13298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13299. $as_echo "$PKG_CONFIG" >&6; }
  13300. else
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13302. $as_echo "no" >&6; }
  13303. fi
  13304. fi
  13305. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13306. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13307. # Extract the first word of "pkg-config", so it can be a program name with args.
  13308. set dummy pkg-config; ac_word=$2
  13309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13310. $as_echo_n "checking for $ac_word... " >&6; }
  13311. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13312. $as_echo_n "(cached) " >&6
  13313. else
  13314. case $ac_pt_PKG_CONFIG in
  13315. [\\/]* | ?:[\\/]*)
  13316. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13317. ;;
  13318. *)
  13319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13320. for as_dir in $PATH
  13321. do
  13322. IFS=$as_save_IFS
  13323. test -z "$as_dir" && as_dir=.
  13324. for ac_exec_ext in '' $ac_executable_extensions; do
  13325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13326. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13328. break 2
  13329. fi
  13330. done
  13331. done
  13332. IFS=$as_save_IFS
  13333. ;;
  13334. esac
  13335. fi
  13336. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13337. if test -n "$ac_pt_PKG_CONFIG"; then
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13339. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13340. else
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13342. $as_echo "no" >&6; }
  13343. fi
  13344. if test "x$ac_pt_PKG_CONFIG" = x; then
  13345. PKG_CONFIG=""
  13346. else
  13347. case $cross_compiling:$ac_tool_warned in
  13348. yes:)
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13351. ac_tool_warned=yes ;;
  13352. esac
  13353. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13354. fi
  13355. else
  13356. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13357. fi
  13358. fi
  13359. if test -n "$PKG_CONFIG"; then
  13360. _pkg_min_version=0.9.0
  13361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13362. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13363. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13365. $as_echo "yes" >&6; }
  13366. else
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13368. $as_echo "no" >&6; }
  13369. PKG_CONFIG=""
  13370. fi
  13371. fi
  13372. pkg_failed=no
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
  13374. $as_echo_n "checking for libusb... " >&6; }
  13375. if test -n "$libusb_CFLAGS"; then
  13376. pkg_cv_libusb_CFLAGS="$libusb_CFLAGS"
  13377. elif test -n "$PKG_CONFIG"; then
  13378. if test -n "$PKG_CONFIG" && \
  13379. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.3\""; } >&5
  13380. ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.3") 2>&5
  13381. ac_status=$?
  13382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13383. test $ac_status = 0; }; then
  13384. pkg_cv_libusb_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.3" 2>/dev/null`
  13385. test "x$?" != "x0" && pkg_failed=yes
  13386. else
  13387. pkg_failed=yes
  13388. fi
  13389. else
  13390. pkg_failed=untried
  13391. fi
  13392. if test -n "$libusb_LIBS"; then
  13393. pkg_cv_libusb_LIBS="$libusb_LIBS"
  13394. elif test -n "$PKG_CONFIG"; then
  13395. if test -n "$PKG_CONFIG" && \
  13396. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.3\""; } >&5
  13397. ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.3") 2>&5
  13398. ac_status=$?
  13399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13400. test $ac_status = 0; }; then
  13401. pkg_cv_libusb_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.3" 2>/dev/null`
  13402. test "x$?" != "x0" && pkg_failed=yes
  13403. else
  13404. pkg_failed=yes
  13405. fi
  13406. else
  13407. pkg_failed=untried
  13408. fi
  13409. if test $pkg_failed = yes; then
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13411. $as_echo "no" >&6; }
  13412. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13413. _pkg_short_errors_supported=yes
  13414. else
  13415. _pkg_short_errors_supported=no
  13416. fi
  13417. if test $_pkg_short_errors_supported = yes; then
  13418. libusb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.3" 2>&1`
  13419. else
  13420. libusb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.3" 2>&1`
  13421. fi
  13422. # Put the nasty error message in config.log where it belongs
  13423. echo "$libusb_PKG_ERRORS" >&5
  13424. as_fn_error $? "Package requirements (libusb-1.0 >= 1.0.3) were not met:
  13425. $libusb_PKG_ERRORS
  13426. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13427. installed software in a non-standard prefix.
  13428. Alternatively, you may set the environment variables libusb_CFLAGS
  13429. and libusb_LIBS to avoid the need to call pkg-config.
  13430. See the pkg-config man page for more details." "$LINENO" 5
  13431. elif test $pkg_failed = untried; then
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13433. $as_echo "no" >&6; }
  13434. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13435. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13436. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13437. is in your PATH or set the PKG_CONFIG environment variable to the full
  13438. path to pkg-config.
  13439. Alternatively, you may set the environment variables libusb_CFLAGS
  13440. and libusb_LIBS to avoid the need to call pkg-config.
  13441. See the pkg-config man page for more details.
  13442. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13443. See \`config.log' for more details" "$LINENO" 5; }
  13444. else
  13445. libusb_CFLAGS=$pkg_cv_libusb_CFLAGS
  13446. libusb_LIBS=$pkg_cv_libusb_LIBS
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13448. $as_echo "yes" >&6; }
  13449. fi
  13450. pkg_failed=no
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplist" >&5
  13452. $as_echo_n "checking for libplist... " >&6; }
  13453. if test -n "$libplist_CFLAGS"; then
  13454. pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
  13455. elif test -n "$PKG_CONFIG"; then
  13456. if test -n "$PKG_CONFIG" && \
  13457. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= 1.11\""; } >&5
  13458. ($PKG_CONFIG --exists --print-errors "libplist >= 1.11") 2>&5
  13459. ac_status=$?
  13460. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13461. test $ac_status = 0; }; then
  13462. pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist >= 1.11" 2>/dev/null`
  13463. test "x$?" != "x0" && pkg_failed=yes
  13464. else
  13465. pkg_failed=yes
  13466. fi
  13467. else
  13468. pkg_failed=untried
  13469. fi
  13470. if test -n "$libplist_LIBS"; then
  13471. pkg_cv_libplist_LIBS="$libplist_LIBS"
  13472. elif test -n "$PKG_CONFIG"; then
  13473. if test -n "$PKG_CONFIG" && \
  13474. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= 1.11\""; } >&5
  13475. ($PKG_CONFIG --exists --print-errors "libplist >= 1.11") 2>&5
  13476. ac_status=$?
  13477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13478. test $ac_status = 0; }; then
  13479. pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist >= 1.11" 2>/dev/null`
  13480. test "x$?" != "x0" && pkg_failed=yes
  13481. else
  13482. pkg_failed=yes
  13483. fi
  13484. else
  13485. pkg_failed=untried
  13486. fi
  13487. if test $pkg_failed = yes; then
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13489. $as_echo "no" >&6; }
  13490. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13491. _pkg_short_errors_supported=yes
  13492. else
  13493. _pkg_short_errors_supported=no
  13494. fi
  13495. if test $_pkg_short_errors_supported = yes; then
  13496. libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist >= 1.11" 2>&1`
  13497. else
  13498. libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist >= 1.11" 2>&1`
  13499. fi
  13500. # Put the nasty error message in config.log where it belongs
  13501. echo "$libplist_PKG_ERRORS" >&5
  13502. as_fn_error $? "Package requirements (libplist >= 1.11) were not met:
  13503. $libplist_PKG_ERRORS
  13504. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13505. installed software in a non-standard prefix.
  13506. Alternatively, you may set the environment variables libplist_CFLAGS
  13507. and libplist_LIBS to avoid the need to call pkg-config.
  13508. See the pkg-config man page for more details." "$LINENO" 5
  13509. elif test $pkg_failed = untried; then
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13511. $as_echo "no" >&6; }
  13512. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13513. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13514. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13515. is in your PATH or set the PKG_CONFIG environment variable to the full
  13516. path to pkg-config.
  13517. Alternatively, you may set the environment variables libplist_CFLAGS
  13518. and libplist_LIBS to avoid the need to call pkg-config.
  13519. See the pkg-config man page for more details.
  13520. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13521. See \`config.log' for more details" "$LINENO" 5; }
  13522. else
  13523. libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
  13524. libplist_LIBS=$pkg_cv_libplist_LIBS
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13526. $as_echo "yes" >&6; }
  13527. fi
  13528. pkg_failed=no
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libimobiledevice" >&5
  13530. $as_echo_n "checking for libimobiledevice... " >&6; }
  13531. if test -n "$libimobiledevice_CFLAGS"; then
  13532. pkg_cv_libimobiledevice_CFLAGS="$libimobiledevice_CFLAGS"
  13533. elif test -n "$PKG_CONFIG"; then
  13534. if test -n "$PKG_CONFIG" && \
  13535. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 1.1.6\""; } >&5
  13536. ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 1.1.6") 2>&5
  13537. ac_status=$?
  13538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13539. test $ac_status = 0; }; then
  13540. pkg_cv_libimobiledevice_CFLAGS=`$PKG_CONFIG --cflags "libimobiledevice-1.0 >= 1.1.6" 2>/dev/null`
  13541. test "x$?" != "x0" && pkg_failed=yes
  13542. else
  13543. pkg_failed=yes
  13544. fi
  13545. else
  13546. pkg_failed=untried
  13547. fi
  13548. if test -n "$libimobiledevice_LIBS"; then
  13549. pkg_cv_libimobiledevice_LIBS="$libimobiledevice_LIBS"
  13550. elif test -n "$PKG_CONFIG"; then
  13551. if test -n "$PKG_CONFIG" && \
  13552. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libimobiledevice-1.0 >= 1.1.6\""; } >&5
  13553. ($PKG_CONFIG --exists --print-errors "libimobiledevice-1.0 >= 1.1.6") 2>&5
  13554. ac_status=$?
  13555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13556. test $ac_status = 0; }; then
  13557. pkg_cv_libimobiledevice_LIBS=`$PKG_CONFIG --libs "libimobiledevice-1.0 >= 1.1.6" 2>/dev/null`
  13558. test "x$?" != "x0" && pkg_failed=yes
  13559. else
  13560. pkg_failed=yes
  13561. fi
  13562. else
  13563. pkg_failed=untried
  13564. fi
  13565. if test $pkg_failed = yes; then
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13567. $as_echo "no" >&6; }
  13568. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13569. _pkg_short_errors_supported=yes
  13570. else
  13571. _pkg_short_errors_supported=no
  13572. fi
  13573. if test $_pkg_short_errors_supported = yes; then
  13574. libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libimobiledevice-1.0 >= 1.1.6" 2>&1`
  13575. else
  13576. libimobiledevice_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libimobiledevice-1.0 >= 1.1.6" 2>&1`
  13577. fi
  13578. # Put the nasty error message in config.log where it belongs
  13579. echo "$libimobiledevice_PKG_ERRORS" >&5
  13580. have_limd=no
  13581. elif test $pkg_failed = untried; then
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13583. $as_echo "no" >&6; }
  13584. have_limd=no
  13585. else
  13586. libimobiledevice_CFLAGS=$pkg_cv_libimobiledevice_CFLAGS
  13587. libimobiledevice_LIBS=$pkg_cv_libimobiledevice_LIBS
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13589. $as_echo "yes" >&6; }
  13590. have_limd=yes
  13591. fi
  13592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create, pthread_mutex_lock in -lpthread" >&5
  13593. $as_echo_n "checking for pthread_create, pthread_mutex_lock in -lpthread... " >&6; }
  13594. if ${ac_cv_lib_pthread_pthread_create__pthread_mutex_lock+:} false; then :
  13595. $as_echo_n "(cached) " >&6
  13596. else
  13597. ac_check_lib_save_LIBS=$LIBS
  13598. LIBS="-lpthread $LIBS"
  13599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13600. /* end confdefs.h. */
  13601. /* Override any GCC internal prototype to avoid an error.
  13602. Use char because int might match the return type of a GCC
  13603. builtin and then its argument prototype would still apply. */
  13604. #ifdef __cplusplus
  13605. extern "C"
  13606. #endif
  13607. char pthread_create, pthread_mutex_lock ();
  13608. int
  13609. main ()
  13610. {
  13611. return pthread_create, pthread_mutex_lock ();
  13612. ;
  13613. return 0;
  13614. }
  13615. _ACEOF
  13616. if ac_fn_c_try_link "$LINENO"; then :
  13617. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=yes
  13618. else
  13619. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=no
  13620. fi
  13621. rm -f core conftest.err conftest.$ac_objext \
  13622. conftest$ac_exeext conftest.$ac_ext
  13623. LIBS=$ac_check_lib_save_LIBS
  13624. fi
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&5
  13626. $as_echo "$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&6; }
  13627. if test "x$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" = xyes; then :
  13628. libpthread_LIBS=-lpthread
  13629. else
  13630. as_fn_error $? "libpthread is required to build usbmuxd" "$LINENO" 5
  13631. fi
  13632. # Check whether --with-preflight was given.
  13633. if test "${with_preflight+set}" = set; then :
  13634. withval=$with_preflight; with_preflight=no
  13635. else
  13636. with_preflight=yes
  13637. fi
  13638. if test "x$have_limd" = "xyes"; then
  13639. if test "x$with_preflight" != "xyes"; then
  13640. have_limd=no
  13641. echo "*** Note: preflight worker support has been disabled ***"
  13642. else
  13643. $as_echo "#define HAVE_LIBIMOBILEDEVICE 1" >>confdefs.h
  13644. fi
  13645. else
  13646. if test "x$with_preflight" == "xyes"; then
  13647. as_fn_error $? "preflight worker support requested but libimobiledevice could not be found" "$LINENO" 5
  13648. fi
  13649. fi
  13650. # Check whether --with-udevrulesdir was given.
  13651. if test "${with_udevrulesdir+set}" = set; then :
  13652. withval=$with_udevrulesdir;
  13653. else
  13654. with_udevrulesdir=auto
  13655. fi
  13656. if test "x$with_udevrulesdir" = "xauto"; then
  13657. udevdir=$($PKG_CONFIG --variable=udevdir udev)
  13658. if test "x$udevdir" != "x"; then
  13659. with_udevrulesdir=$udevdir"/rules.d"
  13660. else
  13661. with_udevrulesdir=$prefix/lib/udev/rules.d
  13662. fi
  13663. fi
  13664. # Check whether --with-systemd was given.
  13665. if test "${with_systemd+set}" = set; then :
  13666. withval=$with_systemd; with_systemd=no
  13667. else
  13668. with_systemd=yes
  13669. fi
  13670. # Check whether --with-systemdsystemunitdir was given.
  13671. if test "${with_systemdsystemunitdir+set}" = set; then :
  13672. withval=$with_systemdsystemunitdir; with_systemdsystemunitdir=$withval
  13673. else
  13674. with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
  13675. fi
  13676. if test "x$with_systemdsystemunitdir" != xno; then
  13677. systemdsystemunitdir=$with_systemdsystemunitdir
  13678. fi
  13679. if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno -a "x$with_systemd" = "xyes" ; then
  13680. WANT_SYSTEMD_TRUE=
  13681. WANT_SYSTEMD_FALSE='#'
  13682. else
  13683. WANT_SYSTEMD_TRUE='#'
  13684. WANT_SYSTEMD_FALSE=
  13685. fi
  13686. if test "x$with_systemd" = xyes; then
  13687. udev_activation_rule="TAG+=\"systemd\", ENV{SYSTEMD_WANTS}=\"usbmuxd.service\""
  13688. else
  13689. udev_activation_rule="RUN+=\"@sbindir@/usbmuxd --user usbmux --udev\""
  13690. fi
  13691. # Checks for header files.
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13693. $as_echo_n "checking for ANSI C header files... " >&6; }
  13694. if ${ac_cv_header_stdc+:} false; then :
  13695. $as_echo_n "(cached) " >&6
  13696. else
  13697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13698. /* end confdefs.h. */
  13699. #include <stdlib.h>
  13700. #include <stdarg.h>
  13701. #include <string.h>
  13702. #include <float.h>
  13703. int
  13704. main ()
  13705. {
  13706. ;
  13707. return 0;
  13708. }
  13709. _ACEOF
  13710. if ac_fn_c_try_compile "$LINENO"; then :
  13711. ac_cv_header_stdc=yes
  13712. else
  13713. ac_cv_header_stdc=no
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13716. if test $ac_cv_header_stdc = yes; then
  13717. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13719. /* end confdefs.h. */
  13720. #include <string.h>
  13721. _ACEOF
  13722. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13723. $EGREP "memchr" >/dev/null 2>&1; then :
  13724. else
  13725. ac_cv_header_stdc=no
  13726. fi
  13727. rm -f conftest*
  13728. fi
  13729. if test $ac_cv_header_stdc = yes; then
  13730. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13732. /* end confdefs.h. */
  13733. #include <stdlib.h>
  13734. _ACEOF
  13735. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13736. $EGREP "free" >/dev/null 2>&1; then :
  13737. else
  13738. ac_cv_header_stdc=no
  13739. fi
  13740. rm -f conftest*
  13741. fi
  13742. if test $ac_cv_header_stdc = yes; then
  13743. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13744. if test "$cross_compiling" = yes; then :
  13745. :
  13746. else
  13747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13748. /* end confdefs.h. */
  13749. #include <ctype.h>
  13750. #include <stdlib.h>
  13751. #if ((' ' & 0x0FF) == 0x020)
  13752. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13753. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13754. #else
  13755. # define ISLOWER(c) \
  13756. (('a' <= (c) && (c) <= 'i') \
  13757. || ('j' <= (c) && (c) <= 'r') \
  13758. || ('s' <= (c) && (c) <= 'z'))
  13759. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13760. #endif
  13761. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13762. int
  13763. main ()
  13764. {
  13765. int i;
  13766. for (i = 0; i < 256; i++)
  13767. if (XOR (islower (i), ISLOWER (i))
  13768. || toupper (i) != TOUPPER (i))
  13769. return 2;
  13770. return 0;
  13771. }
  13772. _ACEOF
  13773. if ac_fn_c_try_run "$LINENO"; then :
  13774. else
  13775. ac_cv_header_stdc=no
  13776. fi
  13777. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13778. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13779. fi
  13780. fi
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13783. $as_echo "$ac_cv_header_stdc" >&6; }
  13784. if test $ac_cv_header_stdc = yes; then
  13785. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13786. fi
  13787. for ac_header in stdint.h stdlib.h string.h
  13788. do :
  13789. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13790. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13791. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13792. cat >>confdefs.h <<_ACEOF
  13793. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13794. _ACEOF
  13795. fi
  13796. done
  13797. # Checks for typedefs, structures, and compiler characteristics.
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13799. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13800. if ${ac_cv_c_const+:} false; then :
  13801. $as_echo_n "(cached) " >&6
  13802. else
  13803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13804. /* end confdefs.h. */
  13805. int
  13806. main ()
  13807. {
  13808. #ifndef __cplusplus
  13809. /* Ultrix mips cc rejects this sort of thing. */
  13810. typedef int charset[2];
  13811. const charset cs = { 0, 0 };
  13812. /* SunOS 4.1.1 cc rejects this. */
  13813. char const *const *pcpcc;
  13814. char **ppc;
  13815. /* NEC SVR4.0.2 mips cc rejects this. */
  13816. struct point {int x, y;};
  13817. static struct point const zero = {0,0};
  13818. /* AIX XL C 1.02.0.0 rejects this.
  13819. It does not let you subtract one const X* pointer from another in
  13820. an arm of an if-expression whose if-part is not a constant
  13821. expression */
  13822. const char *g = "string";
  13823. pcpcc = &g + (g ? g-g : 0);
  13824. /* HPUX 7.0 cc rejects these. */
  13825. ++pcpcc;
  13826. ppc = (char**) pcpcc;
  13827. pcpcc = (char const *const *) ppc;
  13828. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13829. char tx;
  13830. char *t = &tx;
  13831. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13832. *t++ = 0;
  13833. if (s) return 0;
  13834. }
  13835. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13836. int x[] = {25, 17};
  13837. const int *foo = &x[0];
  13838. ++foo;
  13839. }
  13840. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13841. typedef const int *iptr;
  13842. iptr p = 0;
  13843. ++p;
  13844. }
  13845. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13846. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13847. struct s { int j; const int *ap[3]; } bx;
  13848. struct s *b = &bx; b->j = 5;
  13849. }
  13850. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13851. const int foo = 10;
  13852. if (!foo) return 0;
  13853. }
  13854. return !cs[0] && !zero.x;
  13855. #endif
  13856. ;
  13857. return 0;
  13858. }
  13859. _ACEOF
  13860. if ac_fn_c_try_compile "$LINENO"; then :
  13861. ac_cv_c_const=yes
  13862. else
  13863. ac_cv_c_const=no
  13864. fi
  13865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13866. fi
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13868. $as_echo "$ac_cv_c_const" >&6; }
  13869. if test $ac_cv_c_const = no; then
  13870. $as_echo "#define const /**/" >>confdefs.h
  13871. fi
  13872. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13873. if test "x$ac_cv_type_size_t" = xyes; then :
  13874. else
  13875. cat >>confdefs.h <<_ACEOF
  13876. #define size_t unsigned int
  13877. _ACEOF
  13878. fi
  13879. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  13880. if test "x$ac_cv_type_ssize_t" = xyes; then :
  13881. else
  13882. cat >>confdefs.h <<_ACEOF
  13883. #define ssize_t int
  13884. _ACEOF
  13885. fi
  13886. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  13887. case $ac_cv_c_uint16_t in #(
  13888. no|yes) ;; #(
  13889. *)
  13890. cat >>confdefs.h <<_ACEOF
  13891. #define uint16_t $ac_cv_c_uint16_t
  13892. _ACEOF
  13893. ;;
  13894. esac
  13895. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  13896. case $ac_cv_c_uint32_t in #(
  13897. no|yes) ;; #(
  13898. *)
  13899. $as_echo "#define _UINT32_T 1" >>confdefs.h
  13900. cat >>confdefs.h <<_ACEOF
  13901. #define uint32_t $ac_cv_c_uint32_t
  13902. _ACEOF
  13903. ;;
  13904. esac
  13905. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  13906. case $ac_cv_c_uint8_t in #(
  13907. no|yes) ;; #(
  13908. *)
  13909. $as_echo "#define _UINT8_T 1" >>confdefs.h
  13910. cat >>confdefs.h <<_ACEOF
  13911. #define uint8_t $ac_cv_c_uint8_t
  13912. _ACEOF
  13913. ;;
  13914. esac
  13915. # Checks for library functions.
  13916. for ac_header in stdlib.h
  13917. do :
  13918. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13919. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13920. cat >>confdefs.h <<_ACEOF
  13921. #define HAVE_STDLIB_H 1
  13922. _ACEOF
  13923. fi
  13924. done
  13925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13926. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13927. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  13928. $as_echo_n "(cached) " >&6
  13929. else
  13930. if test "$cross_compiling" = yes; then :
  13931. ac_cv_func_malloc_0_nonnull=no
  13932. else
  13933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13934. /* end confdefs.h. */
  13935. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13936. # include <stdlib.h>
  13937. #else
  13938. char *malloc ();
  13939. #endif
  13940. int
  13941. main ()
  13942. {
  13943. return ! malloc (0);
  13944. ;
  13945. return 0;
  13946. }
  13947. _ACEOF
  13948. if ac_fn_c_try_run "$LINENO"; then :
  13949. ac_cv_func_malloc_0_nonnull=yes
  13950. else
  13951. ac_cv_func_malloc_0_nonnull=no
  13952. fi
  13953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13954. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13955. fi
  13956. fi
  13957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  13958. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  13959. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  13960. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  13961. else
  13962. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  13963. case " $LIBOBJS " in
  13964. *" malloc.$ac_objext "* ) ;;
  13965. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  13966. ;;
  13967. esac
  13968. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  13969. fi
  13970. for ac_header in stdlib.h
  13971. do :
  13972. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13973. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13974. cat >>confdefs.h <<_ACEOF
  13975. #define HAVE_STDLIB_H 1
  13976. _ACEOF
  13977. fi
  13978. done
  13979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  13980. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  13981. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  13982. $as_echo_n "(cached) " >&6
  13983. else
  13984. if test "$cross_compiling" = yes; then :
  13985. ac_cv_func_realloc_0_nonnull=no
  13986. else
  13987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13988. /* end confdefs.h. */
  13989. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13990. # include <stdlib.h>
  13991. #else
  13992. char *realloc ();
  13993. #endif
  13994. int
  13995. main ()
  13996. {
  13997. return ! realloc (0, 0);
  13998. ;
  13999. return 0;
  14000. }
  14001. _ACEOF
  14002. if ac_fn_c_try_run "$LINENO"; then :
  14003. ac_cv_func_realloc_0_nonnull=yes
  14004. else
  14005. ac_cv_func_realloc_0_nonnull=no
  14006. fi
  14007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14009. fi
  14010. fi
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  14012. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  14013. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  14014. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  14015. else
  14016. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  14017. case " $LIBOBJS " in
  14018. *" realloc.$ac_objext "* ) ;;
  14019. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  14020. ;;
  14021. esac
  14022. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  14023. fi
  14024. for ac_func in strcasecmp strdup strerror strndup stpcpy
  14025. do :
  14026. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14027. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14028. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14029. cat >>confdefs.h <<_ACEOF
  14030. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14031. _ACEOF
  14032. fi
  14033. done
  14034. # Check for operating system
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WIN32 build settings" >&5
  14036. $as_echo_n "checking whether to enable WIN32 build settings... " >&6; }
  14037. UDEV_SUB=
  14038. SYSTEMD_SUB=
  14039. case ${host_os} in
  14040. *mingw32*|*cygwin*)
  14041. win32=true
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14043. $as_echo "yes" >&6; }
  14044. if test -n "$ac_tool_prefix"; then
  14045. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14046. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14048. $as_echo_n "checking for $ac_word... " >&6; }
  14049. if ${ac_cv_prog_WINDRES+:} false; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. if test -n "$WINDRES"; then
  14053. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14054. else
  14055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14056. for as_dir in $PATH
  14057. do
  14058. IFS=$as_save_IFS
  14059. test -z "$as_dir" && as_dir=.
  14060. for ac_exec_ext in '' $ac_executable_extensions; do
  14061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14062. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14064. break 2
  14065. fi
  14066. done
  14067. done
  14068. IFS=$as_save_IFS
  14069. fi
  14070. fi
  14071. WINDRES=$ac_cv_prog_WINDRES
  14072. if test -n "$WINDRES"; then
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  14074. $as_echo "$WINDRES" >&6; }
  14075. else
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14077. $as_echo "no" >&6; }
  14078. fi
  14079. fi
  14080. if test -z "$ac_cv_prog_WINDRES"; then
  14081. ac_ct_WINDRES=$WINDRES
  14082. # Extract the first word of "windres", so it can be a program name with args.
  14083. set dummy windres; ac_word=$2
  14084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14085. $as_echo_n "checking for $ac_word... " >&6; }
  14086. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  14087. $as_echo_n "(cached) " >&6
  14088. else
  14089. if test -n "$ac_ct_WINDRES"; then
  14090. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14091. else
  14092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14093. for as_dir in $PATH
  14094. do
  14095. IFS=$as_save_IFS
  14096. test -z "$as_dir" && as_dir=.
  14097. for ac_exec_ext in '' $ac_executable_extensions; do
  14098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14099. ac_cv_prog_ac_ct_WINDRES="windres"
  14100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14101. break 2
  14102. fi
  14103. done
  14104. done
  14105. IFS=$as_save_IFS
  14106. fi
  14107. fi
  14108. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14109. if test -n "$ac_ct_WINDRES"; then
  14110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  14111. $as_echo "$ac_ct_WINDRES" >&6; }
  14112. else
  14113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14114. $as_echo "no" >&6; }
  14115. fi
  14116. if test "x$ac_ct_WINDRES" = x; then
  14117. WINDRES="as_fn_error $? "windres not found" "$LINENO" 5"
  14118. else
  14119. case $cross_compiling:$ac_tool_warned in
  14120. yes:)
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14122. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14123. ac_tool_warned=yes ;;
  14124. esac
  14125. WINDRES=$ac_ct_WINDRES
  14126. fi
  14127. else
  14128. WINDRES="$ac_cv_prog_WINDRES"
  14129. fi
  14130. activation_method="manual"
  14131. ;;
  14132. darwin*)
  14133. win32=false
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14135. $as_echo "no" >&6; }
  14136. # No support for launchd yet
  14137. activation_method="manual"
  14138. ;;
  14139. *)
  14140. win32=false
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14142. $as_echo "no" >&6; }
  14143. UDEV_SUB=udev
  14144. udevrulesdir=$with_udevrulesdir
  14145. $as_echo "#define HAVE_UDEV 1" >>confdefs.h
  14146. activation_method="systemd"
  14147. if test "x$with_systemd" != "xyes"; then
  14148. echo "*** Note: support for systemd activation has been disabled, using udev activation instead ***"
  14149. activation_method="udev"
  14150. else
  14151. $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
  14152. SYSTEMD_SUB=systemd
  14153. fi
  14154. ;;
  14155. esac
  14156. if test x$win32 = xtrue; then
  14157. WIN32_TRUE=
  14158. WIN32_FALSE='#'
  14159. else
  14160. WIN32_TRUE='#'
  14161. WIN32_FALSE=
  14162. fi
  14163. list="-g -Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter"
  14164. flags_supported=""
  14165. flags_unsupported=""
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
  14167. $as_echo_n "checking for supported compiler flags... " >&6; }
  14168. for each in $list
  14169. do
  14170. save_CFLAGS="$CFLAGS"
  14171. CFLAGS="$CFLAGS $each"
  14172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14173. /* end confdefs.h. */
  14174. int
  14175. main ()
  14176. {
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. if ac_fn_c_try_compile "$LINENO"; then :
  14182. flag_ok=yes
  14183. else
  14184. flag_ok=no
  14185. fi
  14186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14187. CFLAGS="$save_CFLAGS"
  14188. if test "X$flag_ok" = Xyes ; then
  14189. flags_supported="$flags_supported $each"
  14190. else
  14191. flags_unsupported="$flags_unsupported $each"
  14192. fi
  14193. done
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
  14195. $as_echo "$flags_supported" >&6; }
  14196. if test "X$flags_unsupported" != X ; then
  14197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
  14198. $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
  14199. fi
  14200. GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
  14201. # Check whether --enable-silent-rules was given.
  14202. if test "${enable_silent_rules+set}" = set; then :
  14203. enableval=$enable_silent_rules;
  14204. fi
  14205. case $enable_silent_rules in # (((
  14206. yes) AM_DEFAULT_VERBOSITY=0;;
  14207. no) AM_DEFAULT_VERBOSITY=1;;
  14208. *) AM_DEFAULT_VERBOSITY=0;;
  14209. esac
  14210. am_make=${MAKE-make}
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  14212. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  14213. if ${am_cv_make_support_nested_variables+:} false; then :
  14214. $as_echo_n "(cached) " >&6
  14215. else
  14216. if $as_echo 'TRUE=$(BAR$(V))
  14217. BAR0=false
  14218. BAR1=true
  14219. V=1
  14220. am__doit:
  14221. @$(TRUE)
  14222. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  14223. am_cv_make_support_nested_variables=yes
  14224. else
  14225. am_cv_make_support_nested_variables=no
  14226. fi
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  14229. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  14230. if test $am_cv_make_support_nested_variables = yes; then
  14231. AM_V='$(V)'
  14232. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  14233. else
  14234. AM_V=$AM_DEFAULT_VERBOSITY
  14235. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  14236. fi
  14237. AM_BACKSLASH='\'
  14238. ac_config_files="$ac_config_files Makefile src/Makefile udev/Makefile systemd/Makefile docs/Makefile"
  14239. cat >confcache <<\_ACEOF
  14240. # This file is a shell script that caches the results of configure
  14241. # tests run on this system so they can be shared between configure
  14242. # scripts and configure runs, see configure's option --config-cache.
  14243. # It is not useful on other systems. If it contains results you don't
  14244. # want to keep, you may remove or edit it.
  14245. #
  14246. # config.status only pays attention to the cache file if you give it
  14247. # the --recheck option to rerun configure.
  14248. #
  14249. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14250. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14251. # following values.
  14252. _ACEOF
  14253. # The following way of writing the cache mishandles newlines in values,
  14254. # but we know of no workaround that is simple, portable, and efficient.
  14255. # So, we kill variables containing newlines.
  14256. # Ultrix sh set writes to stderr and can't be redirected directly,
  14257. # and sets the high bit in the cache file unless we assign to the vars.
  14258. (
  14259. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14260. eval ac_val=\$$ac_var
  14261. case $ac_val in #(
  14262. *${as_nl}*)
  14263. case $ac_var in #(
  14264. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14265. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14266. esac
  14267. case $ac_var in #(
  14268. _ | IFS | as_nl) ;; #(
  14269. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14270. *) { eval $ac_var=; unset $ac_var;} ;;
  14271. esac ;;
  14272. esac
  14273. done
  14274. (set) 2>&1 |
  14275. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14276. *${as_nl}ac_space=\ *)
  14277. # `set' does not quote correctly, so add quotes: double-quote
  14278. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14279. sed -n \
  14280. "s/'/'\\\\''/g;
  14281. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14282. ;; #(
  14283. *)
  14284. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14285. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14286. ;;
  14287. esac |
  14288. sort
  14289. ) |
  14290. sed '
  14291. /^ac_cv_env_/b end
  14292. t clear
  14293. :clear
  14294. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14295. t end
  14296. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14297. :end' >>confcache
  14298. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14299. if test -w "$cache_file"; then
  14300. if test "x$cache_file" != "x/dev/null"; then
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14302. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14303. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14304. cat confcache >"$cache_file"
  14305. else
  14306. case $cache_file in #(
  14307. */* | ?:*)
  14308. mv -f confcache "$cache_file"$$ &&
  14309. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14310. *)
  14311. mv -f confcache "$cache_file" ;;
  14312. esac
  14313. fi
  14314. fi
  14315. else
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14317. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14318. fi
  14319. fi
  14320. rm -f confcache
  14321. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14322. # Let make expand exec_prefix.
  14323. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14324. DEFS=-DHAVE_CONFIG_H
  14325. ac_libobjs=
  14326. ac_ltlibobjs=
  14327. U=
  14328. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14329. # 1. Remove the extension, and $U if already installed.
  14330. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14331. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14332. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14333. # will be set to the directory where LIBOBJS objects are built.
  14334. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14335. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14336. done
  14337. LIBOBJS=$ac_libobjs
  14338. LTLIBOBJS=$ac_ltlibobjs
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14340. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14341. if test -n "$am_sleep_pid"; then
  14342. # Hide warnings about reused PIDs.
  14343. wait $am_sleep_pid 2>/dev/null
  14344. fi
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14346. $as_echo "done" >&6; }
  14347. if test -n "$EXEEXT"; then
  14348. am__EXEEXT_TRUE=
  14349. am__EXEEXT_FALSE='#'
  14350. else
  14351. am__EXEEXT_TRUE='#'
  14352. am__EXEEXT_FALSE=
  14353. fi
  14354. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14355. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14357. fi
  14358. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14359. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14361. fi
  14362. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14363. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14364. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14365. fi
  14366. if test -z "${WANT_SYSTEMD_TRUE}" && test -z "${WANT_SYSTEMD_FALSE}"; then
  14367. as_fn_error $? "conditional \"WANT_SYSTEMD\" was never defined.
  14368. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14369. fi
  14370. if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  14371. as_fn_error $? "conditional \"WIN32\" was never defined.
  14372. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14373. fi
  14374. : "${CONFIG_STATUS=./config.status}"
  14375. ac_write_fail=0
  14376. ac_clean_files_save=$ac_clean_files
  14377. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14379. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14380. as_write_fail=0
  14381. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14382. #! $SHELL
  14383. # Generated by $as_me.
  14384. # Run this file to recreate the current configuration.
  14385. # Compiler output produced by configure, useful for debugging
  14386. # configure, is in config.log if it exists.
  14387. debug=false
  14388. ac_cs_recheck=false
  14389. ac_cs_silent=false
  14390. SHELL=\${CONFIG_SHELL-$SHELL}
  14391. export SHELL
  14392. _ASEOF
  14393. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14394. ## -------------------- ##
  14395. ## M4sh Initialization. ##
  14396. ## -------------------- ##
  14397. # Be more Bourne compatible
  14398. DUALCASE=1; export DUALCASE # for MKS sh
  14399. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14400. emulate sh
  14401. NULLCMD=:
  14402. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14403. # is contrary to our usage. Disable this feature.
  14404. alias -g '${1+"$@"}'='"$@"'
  14405. setopt NO_GLOB_SUBST
  14406. else
  14407. case `(set -o) 2>/dev/null` in #(
  14408. *posix*) :
  14409. set -o posix ;; #(
  14410. *) :
  14411. ;;
  14412. esac
  14413. fi
  14414. as_nl='
  14415. '
  14416. export as_nl
  14417. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14418. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14419. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14420. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14421. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14422. # but without wasting forks for bash or zsh.
  14423. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14424. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14425. as_echo='print -r --'
  14426. as_echo_n='print -rn --'
  14427. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14428. as_echo='printf %s\n'
  14429. as_echo_n='printf %s'
  14430. else
  14431. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14432. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14433. as_echo_n='/usr/ucb/echo -n'
  14434. else
  14435. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14436. as_echo_n_body='eval
  14437. arg=$1;
  14438. case $arg in #(
  14439. *"$as_nl"*)
  14440. expr "X$arg" : "X\\(.*\\)$as_nl";
  14441. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14442. esac;
  14443. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14444. '
  14445. export as_echo_n_body
  14446. as_echo_n='sh -c $as_echo_n_body as_echo'
  14447. fi
  14448. export as_echo_body
  14449. as_echo='sh -c $as_echo_body as_echo'
  14450. fi
  14451. # The user is always right.
  14452. if test "${PATH_SEPARATOR+set}" != set; then
  14453. PATH_SEPARATOR=:
  14454. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14455. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14456. PATH_SEPARATOR=';'
  14457. }
  14458. fi
  14459. # IFS
  14460. # We need space, tab and new line, in precisely that order. Quoting is
  14461. # there to prevent editors from complaining about space-tab.
  14462. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14463. # splitting by setting IFS to empty value.)
  14464. IFS=" "" $as_nl"
  14465. # Find who we are. Look in the path if we contain no directory separator.
  14466. as_myself=
  14467. case $0 in #((
  14468. *[\\/]* ) as_myself=$0 ;;
  14469. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14470. for as_dir in $PATH
  14471. do
  14472. IFS=$as_save_IFS
  14473. test -z "$as_dir" && as_dir=.
  14474. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14475. done
  14476. IFS=$as_save_IFS
  14477. ;;
  14478. esac
  14479. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14480. # in which case we are not to be found in the path.
  14481. if test "x$as_myself" = x; then
  14482. as_myself=$0
  14483. fi
  14484. if test ! -f "$as_myself"; then
  14485. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14486. exit 1
  14487. fi
  14488. # Unset variables that we do not need and which cause bugs (e.g. in
  14489. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14490. # suppresses any "Segmentation fault" message there. '((' could
  14491. # trigger a bug in pdksh 5.2.14.
  14492. for as_var in BASH_ENV ENV MAIL MAILPATH
  14493. do eval test x\${$as_var+set} = xset \
  14494. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14495. done
  14496. PS1='$ '
  14497. PS2='> '
  14498. PS4='+ '
  14499. # NLS nuisances.
  14500. LC_ALL=C
  14501. export LC_ALL
  14502. LANGUAGE=C
  14503. export LANGUAGE
  14504. # CDPATH.
  14505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14506. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14507. # ----------------------------------------
  14508. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14509. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14510. # script with STATUS, using 1 if that was 0.
  14511. as_fn_error ()
  14512. {
  14513. as_status=$1; test $as_status -eq 0 && as_status=1
  14514. if test "$4"; then
  14515. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14516. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14517. fi
  14518. $as_echo "$as_me: error: $2" >&2
  14519. as_fn_exit $as_status
  14520. } # as_fn_error
  14521. # as_fn_set_status STATUS
  14522. # -----------------------
  14523. # Set $? to STATUS, without forking.
  14524. as_fn_set_status ()
  14525. {
  14526. return $1
  14527. } # as_fn_set_status
  14528. # as_fn_exit STATUS
  14529. # -----------------
  14530. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14531. as_fn_exit ()
  14532. {
  14533. set +e
  14534. as_fn_set_status $1
  14535. exit $1
  14536. } # as_fn_exit
  14537. # as_fn_unset VAR
  14538. # ---------------
  14539. # Portably unset VAR.
  14540. as_fn_unset ()
  14541. {
  14542. { eval $1=; unset $1;}
  14543. }
  14544. as_unset=as_fn_unset
  14545. # as_fn_append VAR VALUE
  14546. # ----------------------
  14547. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14548. # advantage of any shell optimizations that allow amortized linear growth over
  14549. # repeated appends, instead of the typical quadratic growth present in naive
  14550. # implementations.
  14551. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14552. eval 'as_fn_append ()
  14553. {
  14554. eval $1+=\$2
  14555. }'
  14556. else
  14557. as_fn_append ()
  14558. {
  14559. eval $1=\$$1\$2
  14560. }
  14561. fi # as_fn_append
  14562. # as_fn_arith ARG...
  14563. # ------------------
  14564. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14565. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14566. # must be portable across $(()) and expr.
  14567. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14568. eval 'as_fn_arith ()
  14569. {
  14570. as_val=$(( $* ))
  14571. }'
  14572. else
  14573. as_fn_arith ()
  14574. {
  14575. as_val=`expr "$@" || test $? -eq 1`
  14576. }
  14577. fi # as_fn_arith
  14578. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14579. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14580. as_expr=expr
  14581. else
  14582. as_expr=false
  14583. fi
  14584. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14585. as_basename=basename
  14586. else
  14587. as_basename=false
  14588. fi
  14589. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14590. as_dirname=dirname
  14591. else
  14592. as_dirname=false
  14593. fi
  14594. as_me=`$as_basename -- "$0" ||
  14595. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14596. X"$0" : 'X\(//\)$' \| \
  14597. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14598. $as_echo X/"$0" |
  14599. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14600. s//\1/
  14601. q
  14602. }
  14603. /^X\/\(\/\/\)$/{
  14604. s//\1/
  14605. q
  14606. }
  14607. /^X\/\(\/\).*/{
  14608. s//\1/
  14609. q
  14610. }
  14611. s/.*/./; q'`
  14612. # Avoid depending upon Character Ranges.
  14613. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14614. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14615. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14616. as_cr_digits='0123456789'
  14617. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14618. ECHO_C= ECHO_N= ECHO_T=
  14619. case `echo -n x` in #(((((
  14620. -n*)
  14621. case `echo 'xy\c'` in
  14622. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14623. xy) ECHO_C='\c';;
  14624. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14625. ECHO_T=' ';;
  14626. esac;;
  14627. *)
  14628. ECHO_N='-n';;
  14629. esac
  14630. rm -f conf$$ conf$$.exe conf$$.file
  14631. if test -d conf$$.dir; then
  14632. rm -f conf$$.dir/conf$$.file
  14633. else
  14634. rm -f conf$$.dir
  14635. mkdir conf$$.dir 2>/dev/null
  14636. fi
  14637. if (echo >conf$$.file) 2>/dev/null; then
  14638. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14639. as_ln_s='ln -s'
  14640. # ... but there are two gotchas:
  14641. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14642. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14643. # In both cases, we have to default to `cp -pR'.
  14644. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14645. as_ln_s='cp -pR'
  14646. elif ln conf$$.file conf$$ 2>/dev/null; then
  14647. as_ln_s=ln
  14648. else
  14649. as_ln_s='cp -pR'
  14650. fi
  14651. else
  14652. as_ln_s='cp -pR'
  14653. fi
  14654. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14655. rmdir conf$$.dir 2>/dev/null
  14656. # as_fn_mkdir_p
  14657. # -------------
  14658. # Create "$as_dir" as a directory, including parents if necessary.
  14659. as_fn_mkdir_p ()
  14660. {
  14661. case $as_dir in #(
  14662. -*) as_dir=./$as_dir;;
  14663. esac
  14664. test -d "$as_dir" || eval $as_mkdir_p || {
  14665. as_dirs=
  14666. while :; do
  14667. case $as_dir in #(
  14668. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14669. *) as_qdir=$as_dir;;
  14670. esac
  14671. as_dirs="'$as_qdir' $as_dirs"
  14672. as_dir=`$as_dirname -- "$as_dir" ||
  14673. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14674. X"$as_dir" : 'X\(//\)[^/]' \| \
  14675. X"$as_dir" : 'X\(//\)$' \| \
  14676. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14677. $as_echo X"$as_dir" |
  14678. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14679. s//\1/
  14680. q
  14681. }
  14682. /^X\(\/\/\)[^/].*/{
  14683. s//\1/
  14684. q
  14685. }
  14686. /^X\(\/\/\)$/{
  14687. s//\1/
  14688. q
  14689. }
  14690. /^X\(\/\).*/{
  14691. s//\1/
  14692. q
  14693. }
  14694. s/.*/./; q'`
  14695. test -d "$as_dir" && break
  14696. done
  14697. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14698. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14699. } # as_fn_mkdir_p
  14700. if mkdir -p . 2>/dev/null; then
  14701. as_mkdir_p='mkdir -p "$as_dir"'
  14702. else
  14703. test -d ./-p && rmdir ./-p
  14704. as_mkdir_p=false
  14705. fi
  14706. # as_fn_executable_p FILE
  14707. # -----------------------
  14708. # Test if FILE is an executable regular file.
  14709. as_fn_executable_p ()
  14710. {
  14711. test -f "$1" && test -x "$1"
  14712. } # as_fn_executable_p
  14713. as_test_x='test -x'
  14714. as_executable_p=as_fn_executable_p
  14715. # Sed expression to map a string onto a valid CPP name.
  14716. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14717. # Sed expression to map a string onto a valid variable name.
  14718. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14719. exec 6>&1
  14720. ## ----------------------------------- ##
  14721. ## Main body of $CONFIG_STATUS script. ##
  14722. ## ----------------------------------- ##
  14723. _ASEOF
  14724. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14726. # Save the log message, to keep $0 and so on meaningful, and to
  14727. # report actual input values of CONFIG_FILES etc. instead of their
  14728. # values after options handling.
  14729. ac_log="
  14730. This file was extended by usbmuxd $as_me 1.1.0, which was
  14731. generated by GNU Autoconf 2.69. Invocation command line was
  14732. CONFIG_FILES = $CONFIG_FILES
  14733. CONFIG_HEADERS = $CONFIG_HEADERS
  14734. CONFIG_LINKS = $CONFIG_LINKS
  14735. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14736. $ $0 $@
  14737. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14738. "
  14739. _ACEOF
  14740. case $ac_config_files in *"
  14741. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14742. esac
  14743. case $ac_config_headers in *"
  14744. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14745. esac
  14746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14747. # Files that config.status was made for.
  14748. config_files="$ac_config_files"
  14749. config_headers="$ac_config_headers"
  14750. config_commands="$ac_config_commands"
  14751. _ACEOF
  14752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14753. ac_cs_usage="\
  14754. \`$as_me' instantiates files and other configuration actions
  14755. from templates according to the current configuration. Unless the files
  14756. and actions are specified as TAGs, all are instantiated by default.
  14757. Usage: $0 [OPTION]... [TAG]...
  14758. -h, --help print this help, then exit
  14759. -V, --version print version number and configuration settings, then exit
  14760. --config print configuration, then exit
  14761. -q, --quiet, --silent
  14762. do not print progress messages
  14763. -d, --debug don't remove temporary files
  14764. --recheck update $as_me by reconfiguring in the same conditions
  14765. --file=FILE[:TEMPLATE]
  14766. instantiate the configuration file FILE
  14767. --header=FILE[:TEMPLATE]
  14768. instantiate the configuration header FILE
  14769. Configuration files:
  14770. $config_files
  14771. Configuration headers:
  14772. $config_headers
  14773. Configuration commands:
  14774. $config_commands
  14775. Report bugs to <https://github.com/libimobiledevice/usbmuxd/issues>.
  14776. usbmuxd home page: <http://libimobiledevice.org>."
  14777. _ACEOF
  14778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14779. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14780. ac_cs_version="\\
  14781. usbmuxd config.status 1.1.0
  14782. configured by $0, generated by GNU Autoconf 2.69,
  14783. with options \\"\$ac_cs_config\\"
  14784. Copyright (C) 2012 Free Software Foundation, Inc.
  14785. This config.status script is free software; the Free Software Foundation
  14786. gives unlimited permission to copy, distribute and modify it."
  14787. ac_pwd='$ac_pwd'
  14788. srcdir='$srcdir'
  14789. INSTALL='$INSTALL'
  14790. MKDIR_P='$MKDIR_P'
  14791. AWK='$AWK'
  14792. test -n "\$AWK" || AWK=awk
  14793. _ACEOF
  14794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14795. # The default lists apply if the user does not specify any file.
  14796. ac_need_defaults=:
  14797. while test $# != 0
  14798. do
  14799. case $1 in
  14800. --*=?*)
  14801. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14802. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14803. ac_shift=:
  14804. ;;
  14805. --*=)
  14806. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14807. ac_optarg=
  14808. ac_shift=:
  14809. ;;
  14810. *)
  14811. ac_option=$1
  14812. ac_optarg=$2
  14813. ac_shift=shift
  14814. ;;
  14815. esac
  14816. case $ac_option in
  14817. # Handling of the options.
  14818. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14819. ac_cs_recheck=: ;;
  14820. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14821. $as_echo "$ac_cs_version"; exit ;;
  14822. --config | --confi | --conf | --con | --co | --c )
  14823. $as_echo "$ac_cs_config"; exit ;;
  14824. --debug | --debu | --deb | --de | --d | -d )
  14825. debug=: ;;
  14826. --file | --fil | --fi | --f )
  14827. $ac_shift
  14828. case $ac_optarg in
  14829. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14830. '') as_fn_error $? "missing file argument" ;;
  14831. esac
  14832. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14833. ac_need_defaults=false;;
  14834. --header | --heade | --head | --hea )
  14835. $ac_shift
  14836. case $ac_optarg in
  14837. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14838. esac
  14839. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14840. ac_need_defaults=false;;
  14841. --he | --h)
  14842. # Conflict between --help and --header
  14843. as_fn_error $? "ambiguous option: \`$1'
  14844. Try \`$0 --help' for more information.";;
  14845. --help | --hel | -h )
  14846. $as_echo "$ac_cs_usage"; exit ;;
  14847. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14848. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14849. ac_cs_silent=: ;;
  14850. # This is an error.
  14851. -*) as_fn_error $? "unrecognized option: \`$1'
  14852. Try \`$0 --help' for more information." ;;
  14853. *) as_fn_append ac_config_targets " $1"
  14854. ac_need_defaults=false ;;
  14855. esac
  14856. shift
  14857. done
  14858. ac_configure_extra_args=
  14859. if $ac_cs_silent; then
  14860. exec 6>/dev/null
  14861. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14862. fi
  14863. _ACEOF
  14864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14865. if \$ac_cs_recheck; then
  14866. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14867. shift
  14868. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14869. CONFIG_SHELL='$SHELL'
  14870. export CONFIG_SHELL
  14871. exec "\$@"
  14872. fi
  14873. _ACEOF
  14874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14875. exec 5>>config.log
  14876. {
  14877. echo
  14878. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14879. ## Running $as_me. ##
  14880. _ASBOX
  14881. $as_echo "$ac_log"
  14882. } >&5
  14883. _ACEOF
  14884. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14885. #
  14886. # INIT-COMMANDS
  14887. #
  14888. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14889. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14890. # if CDPATH is set.
  14891. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14892. sed_quote_subst='$sed_quote_subst'
  14893. double_quote_subst='$double_quote_subst'
  14894. delay_variable_subst='$delay_variable_subst'
  14895. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14896. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14897. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14898. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14899. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14900. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14901. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14902. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14903. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14904. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14905. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14906. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14907. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14908. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14909. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14910. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14911. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14912. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14913. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14914. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14915. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14916. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14917. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14918. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14919. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14920. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14921. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14922. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14923. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14924. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14925. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14926. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14927. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14928. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14929. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14930. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14931. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14932. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14933. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14934. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14935. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14936. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14937. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14938. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14939. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14940. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14941. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14942. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14943. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14944. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14945. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14946. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14947. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14948. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14949. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14950. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14951. 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"`'
  14952. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14953. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14954. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14955. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14956. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14957. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14958. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14959. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14960. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14961. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14962. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14963. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14964. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14965. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14966. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14967. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14968. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14969. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14970. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14971. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14972. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14973. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14974. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14975. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14976. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14977. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14978. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14979. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14980. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14981. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14982. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14983. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14984. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14985. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14986. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14987. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14988. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14989. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14990. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14991. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14992. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14993. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14994. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14995. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14996. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14997. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14998. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14999. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15000. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15001. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15002. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15003. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15004. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15005. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15006. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15007. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15008. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15009. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15010. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15011. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15012. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15013. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15014. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15015. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15016. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15017. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15018. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15019. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15020. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15021. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15022. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15023. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15024. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15025. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15026. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15027. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15028. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15029. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15030. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15031. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15032. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15033. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15034. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15035. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15036. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15037. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15038. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15039. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15040. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15041. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15042. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15043. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15044. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15045. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15046. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15047. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15048. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15049. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15050. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15051. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15052. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15053. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15054. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15055. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15056. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15057. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15058. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15059. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15060. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15061. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15062. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15063. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15064. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15065. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15066. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15067. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15068. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15069. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15070. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15071. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15072. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15073. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15074. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15075. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15076. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15077. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15078. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15079. LTCC='$LTCC'
  15080. LTCFLAGS='$LTCFLAGS'
  15081. compiler='$compiler_DEFAULT'
  15082. # A function that is used when there is no print builtin or printf.
  15083. func_fallback_echo ()
  15084. {
  15085. eval 'cat <<_LTECHO_EOF
  15086. \$1
  15087. _LTECHO_EOF'
  15088. }
  15089. # Quote evaled strings.
  15090. for var in SHELL \
  15091. ECHO \
  15092. PATH_SEPARATOR \
  15093. SED \
  15094. GREP \
  15095. EGREP \
  15096. FGREP \
  15097. LD \
  15098. NM \
  15099. LN_S \
  15100. lt_SP2NL \
  15101. lt_NL2SP \
  15102. reload_flag \
  15103. OBJDUMP \
  15104. deplibs_check_method \
  15105. file_magic_cmd \
  15106. file_magic_glob \
  15107. want_nocaseglob \
  15108. DLLTOOL \
  15109. sharedlib_from_linklib_cmd \
  15110. AR \
  15111. AR_FLAGS \
  15112. archiver_list_spec \
  15113. STRIP \
  15114. RANLIB \
  15115. CC \
  15116. CFLAGS \
  15117. compiler \
  15118. lt_cv_sys_global_symbol_pipe \
  15119. lt_cv_sys_global_symbol_to_cdecl \
  15120. lt_cv_sys_global_symbol_to_c_name_address \
  15121. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15122. nm_file_list_spec \
  15123. lt_prog_compiler_no_builtin_flag \
  15124. lt_prog_compiler_pic \
  15125. lt_prog_compiler_wl \
  15126. lt_prog_compiler_static \
  15127. lt_cv_prog_compiler_c_o \
  15128. need_locks \
  15129. MANIFEST_TOOL \
  15130. DSYMUTIL \
  15131. NMEDIT \
  15132. LIPO \
  15133. OTOOL \
  15134. OTOOL64 \
  15135. shrext_cmds \
  15136. export_dynamic_flag_spec \
  15137. whole_archive_flag_spec \
  15138. compiler_needs_object \
  15139. with_gnu_ld \
  15140. allow_undefined_flag \
  15141. no_undefined_flag \
  15142. hardcode_libdir_flag_spec \
  15143. hardcode_libdir_separator \
  15144. exclude_expsyms \
  15145. include_expsyms \
  15146. file_list_spec \
  15147. variables_saved_for_relink \
  15148. libname_spec \
  15149. library_names_spec \
  15150. soname_spec \
  15151. install_override_mode \
  15152. finish_eval \
  15153. old_striplib \
  15154. striplib \
  15155. compiler_lib_search_dirs \
  15156. predep_objects \
  15157. postdep_objects \
  15158. predeps \
  15159. postdeps \
  15160. compiler_lib_search_path \
  15161. LD_CXX \
  15162. reload_flag_CXX \
  15163. compiler_CXX \
  15164. lt_prog_compiler_no_builtin_flag_CXX \
  15165. lt_prog_compiler_pic_CXX \
  15166. lt_prog_compiler_wl_CXX \
  15167. lt_prog_compiler_static_CXX \
  15168. lt_cv_prog_compiler_c_o_CXX \
  15169. export_dynamic_flag_spec_CXX \
  15170. whole_archive_flag_spec_CXX \
  15171. compiler_needs_object_CXX \
  15172. with_gnu_ld_CXX \
  15173. allow_undefined_flag_CXX \
  15174. no_undefined_flag_CXX \
  15175. hardcode_libdir_flag_spec_CXX \
  15176. hardcode_libdir_separator_CXX \
  15177. exclude_expsyms_CXX \
  15178. include_expsyms_CXX \
  15179. file_list_spec_CXX \
  15180. compiler_lib_search_dirs_CXX \
  15181. predep_objects_CXX \
  15182. postdep_objects_CXX \
  15183. predeps_CXX \
  15184. postdeps_CXX \
  15185. compiler_lib_search_path_CXX; do
  15186. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15187. *[\\\\\\\`\\"\\\$]*)
  15188. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15189. ;;
  15190. *)
  15191. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15192. ;;
  15193. esac
  15194. done
  15195. # Double-quote double-evaled strings.
  15196. for var in reload_cmds \
  15197. old_postinstall_cmds \
  15198. old_postuninstall_cmds \
  15199. old_archive_cmds \
  15200. extract_expsyms_cmds \
  15201. old_archive_from_new_cmds \
  15202. old_archive_from_expsyms_cmds \
  15203. archive_cmds \
  15204. archive_expsym_cmds \
  15205. module_cmds \
  15206. module_expsym_cmds \
  15207. export_symbols_cmds \
  15208. prelink_cmds \
  15209. postlink_cmds \
  15210. postinstall_cmds \
  15211. postuninstall_cmds \
  15212. finish_cmds \
  15213. sys_lib_search_path_spec \
  15214. sys_lib_dlsearch_path_spec \
  15215. reload_cmds_CXX \
  15216. old_archive_cmds_CXX \
  15217. old_archive_from_new_cmds_CXX \
  15218. old_archive_from_expsyms_cmds_CXX \
  15219. archive_cmds_CXX \
  15220. archive_expsym_cmds_CXX \
  15221. module_cmds_CXX \
  15222. module_expsym_cmds_CXX \
  15223. export_symbols_cmds_CXX \
  15224. prelink_cmds_CXX \
  15225. postlink_cmds_CXX; do
  15226. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15227. *[\\\\\\\`\\"\\\$]*)
  15228. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15229. ;;
  15230. *)
  15231. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15232. ;;
  15233. esac
  15234. done
  15235. ac_aux_dir='$ac_aux_dir'
  15236. xsi_shell='$xsi_shell'
  15237. lt_shell_append='$lt_shell_append'
  15238. # See if we are running on zsh, and set the options which allow our
  15239. # commands through without removal of \ escapes INIT.
  15240. if test -n "\${ZSH_VERSION+set}" ; then
  15241. setopt NO_GLOB_SUBST
  15242. fi
  15243. PACKAGE='$PACKAGE'
  15244. VERSION='$VERSION'
  15245. TIMESTAMP='$TIMESTAMP'
  15246. RM='$RM'
  15247. ofile='$ofile'
  15248. _ACEOF
  15249. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15250. # Handling of arguments.
  15251. for ac_config_target in $ac_config_targets
  15252. do
  15253. case $ac_config_target in
  15254. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15255. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15256. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15257. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15258. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15259. "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
  15260. "systemd/Makefile") CONFIG_FILES="$CONFIG_FILES systemd/Makefile" ;;
  15261. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  15262. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15263. esac
  15264. done
  15265. # If the user did not use the arguments to specify the items to instantiate,
  15266. # then the envvar interface is used. Set only those that are not.
  15267. # We use the long form for the default assignment because of an extremely
  15268. # bizarre bug on SunOS 4.1.3.
  15269. if $ac_need_defaults; then
  15270. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15271. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15272. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15273. fi
  15274. # Have a temporary directory for convenience. Make it in the build tree
  15275. # simply because there is no reason against having it here, and in addition,
  15276. # creating and moving files from /tmp can sometimes cause problems.
  15277. # Hook for its removal unless debugging.
  15278. # Note that there is a small window in which the directory will not be cleaned:
  15279. # after its creation but before its name has been assigned to `$tmp'.
  15280. $debug ||
  15281. {
  15282. tmp= ac_tmp=
  15283. trap 'exit_status=$?
  15284. : "${ac_tmp:=$tmp}"
  15285. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15286. ' 0
  15287. trap 'as_fn_exit 1' 1 2 13 15
  15288. }
  15289. # Create a (secure) tmp directory for tmp files.
  15290. {
  15291. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15292. test -d "$tmp"
  15293. } ||
  15294. {
  15295. tmp=./conf$$-$RANDOM
  15296. (umask 077 && mkdir "$tmp")
  15297. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15298. ac_tmp=$tmp
  15299. # Set up the scripts for CONFIG_FILES section.
  15300. # No need to generate them if there are no CONFIG_FILES.
  15301. # This happens for instance with `./config.status config.h'.
  15302. if test -n "$CONFIG_FILES"; then
  15303. ac_cr=`echo X | tr X '\015'`
  15304. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15305. # But we know of no other shell where ac_cr would be empty at this
  15306. # point, so we can use a bashism as a fallback.
  15307. if test "x$ac_cr" = x; then
  15308. eval ac_cr=\$\'\\r\'
  15309. fi
  15310. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15311. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15312. ac_cs_awk_cr='\\r'
  15313. else
  15314. ac_cs_awk_cr=$ac_cr
  15315. fi
  15316. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15317. _ACEOF
  15318. {
  15319. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15320. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15321. echo "_ACEOF"
  15322. } >conf$$subs.sh ||
  15323. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15324. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15325. ac_delim='%!_!# '
  15326. for ac_last_try in false false false false false :; do
  15327. . ./conf$$subs.sh ||
  15328. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15329. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15330. if test $ac_delim_n = $ac_delim_num; then
  15331. break
  15332. elif $ac_last_try; then
  15333. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15334. else
  15335. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15336. fi
  15337. done
  15338. rm -f conf$$subs.sh
  15339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15340. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15341. _ACEOF
  15342. sed -n '
  15343. h
  15344. s/^/S["/; s/!.*/"]=/
  15345. p
  15346. g
  15347. s/^[^!]*!//
  15348. :repl
  15349. t repl
  15350. s/'"$ac_delim"'$//
  15351. t delim
  15352. :nl
  15353. h
  15354. s/\(.\{148\}\)..*/\1/
  15355. t more1
  15356. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15357. p
  15358. n
  15359. b repl
  15360. :more1
  15361. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15362. p
  15363. g
  15364. s/.\{148\}//
  15365. t nl
  15366. :delim
  15367. h
  15368. s/\(.\{148\}\)..*/\1/
  15369. t more2
  15370. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15371. p
  15372. b
  15373. :more2
  15374. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15375. p
  15376. g
  15377. s/.\{148\}//
  15378. t delim
  15379. ' <conf$$subs.awk | sed '
  15380. /^[^""]/{
  15381. N
  15382. s/\n//
  15383. }
  15384. ' >>$CONFIG_STATUS || ac_write_fail=1
  15385. rm -f conf$$subs.awk
  15386. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15387. _ACAWK
  15388. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15389. for (key in S) S_is_set[key] = 1
  15390. FS = ""
  15391. }
  15392. {
  15393. line = $ 0
  15394. nfields = split(line, field, "@")
  15395. substed = 0
  15396. len = length(field[1])
  15397. for (i = 2; i < nfields; i++) {
  15398. key = field[i]
  15399. keylen = length(key)
  15400. if (S_is_set[key]) {
  15401. value = S[key]
  15402. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15403. len += length(value) + length(field[++i])
  15404. substed = 1
  15405. } else
  15406. len += 1 + keylen
  15407. }
  15408. print line
  15409. }
  15410. _ACAWK
  15411. _ACEOF
  15412. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15413. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15414. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15415. else
  15416. cat
  15417. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15418. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15419. _ACEOF
  15420. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15421. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15422. # trailing colons and then remove the whole line if VPATH becomes empty
  15423. # (actually we leave an empty line to preserve line numbers).
  15424. if test "x$srcdir" = x.; then
  15425. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15426. h
  15427. s///
  15428. s/^/:/
  15429. s/[ ]*$/:/
  15430. s/:\$(srcdir):/:/g
  15431. s/:\${srcdir}:/:/g
  15432. s/:@srcdir@:/:/g
  15433. s/^:*//
  15434. s/:*$//
  15435. x
  15436. s/\(=[ ]*\).*/\1/
  15437. G
  15438. s/\n//
  15439. s/^[^=]*=[ ]*$//
  15440. }'
  15441. fi
  15442. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15443. fi # test -n "$CONFIG_FILES"
  15444. # Set up the scripts for CONFIG_HEADERS section.
  15445. # No need to generate them if there are no CONFIG_HEADERS.
  15446. # This happens for instance with `./config.status Makefile'.
  15447. if test -n "$CONFIG_HEADERS"; then
  15448. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15449. BEGIN {
  15450. _ACEOF
  15451. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15452. # here-document in config.status, that substitutes the proper values into
  15453. # config.h.in to produce config.h.
  15454. # Create a delimiter string that does not exist in confdefs.h, to ease
  15455. # handling of long lines.
  15456. ac_delim='%!_!# '
  15457. for ac_last_try in false false :; do
  15458. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15459. if test -z "$ac_tt"; then
  15460. break
  15461. elif $ac_last_try; then
  15462. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15463. else
  15464. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15465. fi
  15466. done
  15467. # For the awk script, D is an array of macro values keyed by name,
  15468. # likewise P contains macro parameters if any. Preserve backslash
  15469. # newline sequences.
  15470. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15471. sed -n '
  15472. s/.\{148\}/&'"$ac_delim"'/g
  15473. t rset
  15474. :rset
  15475. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15476. t def
  15477. d
  15478. :def
  15479. s/\\$//
  15480. t bsnl
  15481. s/["\\]/\\&/g
  15482. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15483. D["\1"]=" \3"/p
  15484. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15485. d
  15486. :bsnl
  15487. s/["\\]/\\&/g
  15488. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15489. D["\1"]=" \3\\\\\\n"\\/p
  15490. t cont
  15491. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15492. t cont
  15493. d
  15494. :cont
  15495. n
  15496. s/.\{148\}/&'"$ac_delim"'/g
  15497. t clear
  15498. :clear
  15499. s/\\$//
  15500. t bsnlc
  15501. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15502. d
  15503. :bsnlc
  15504. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15505. b cont
  15506. ' <confdefs.h | sed '
  15507. s/'"$ac_delim"'/"\\\
  15508. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15510. for (key in D) D_is_set[key] = 1
  15511. FS = ""
  15512. }
  15513. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15514. line = \$ 0
  15515. split(line, arg, " ")
  15516. if (arg[1] == "#") {
  15517. defundef = arg[2]
  15518. mac1 = arg[3]
  15519. } else {
  15520. defundef = substr(arg[1], 2)
  15521. mac1 = arg[2]
  15522. }
  15523. split(mac1, mac2, "(") #)
  15524. macro = mac2[1]
  15525. prefix = substr(line, 1, index(line, defundef) - 1)
  15526. if (D_is_set[macro]) {
  15527. # Preserve the white space surrounding the "#".
  15528. print prefix "define", macro P[macro] D[macro]
  15529. next
  15530. } else {
  15531. # Replace #undef with comments. This is necessary, for example,
  15532. # in the case of _POSIX_SOURCE, which is predefined and required
  15533. # on some systems where configure will not decide to define it.
  15534. if (defundef == "undef") {
  15535. print "/*", prefix defundef, macro, "*/"
  15536. next
  15537. }
  15538. }
  15539. }
  15540. { print }
  15541. _ACAWK
  15542. _ACEOF
  15543. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15544. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15545. fi # test -n "$CONFIG_HEADERS"
  15546. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15547. shift
  15548. for ac_tag
  15549. do
  15550. case $ac_tag in
  15551. :[FHLC]) ac_mode=$ac_tag; continue;;
  15552. esac
  15553. case $ac_mode$ac_tag in
  15554. :[FHL]*:*);;
  15555. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15556. :[FH]-) ac_tag=-:-;;
  15557. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15558. esac
  15559. ac_save_IFS=$IFS
  15560. IFS=:
  15561. set x $ac_tag
  15562. IFS=$ac_save_IFS
  15563. shift
  15564. ac_file=$1
  15565. shift
  15566. case $ac_mode in
  15567. :L) ac_source=$1;;
  15568. :[FH])
  15569. ac_file_inputs=
  15570. for ac_f
  15571. do
  15572. case $ac_f in
  15573. -) ac_f="$ac_tmp/stdin";;
  15574. *) # Look for the file first in the build tree, then in the source tree
  15575. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15576. # because $ac_f cannot contain `:'.
  15577. test -f "$ac_f" ||
  15578. case $ac_f in
  15579. [\\/$]*) false;;
  15580. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15581. esac ||
  15582. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15583. esac
  15584. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15585. as_fn_append ac_file_inputs " '$ac_f'"
  15586. done
  15587. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15588. # use $as_me), people would be surprised to read:
  15589. # /* config.h. Generated by config.status. */
  15590. configure_input='Generated from '`
  15591. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15592. `' by configure.'
  15593. if test x"$ac_file" != x-; then
  15594. configure_input="$ac_file. $configure_input"
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15596. $as_echo "$as_me: creating $ac_file" >&6;}
  15597. fi
  15598. # Neutralize special characters interpreted by sed in replacement strings.
  15599. case $configure_input in #(
  15600. *\&* | *\|* | *\\* )
  15601. ac_sed_conf_input=`$as_echo "$configure_input" |
  15602. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15603. *) ac_sed_conf_input=$configure_input;;
  15604. esac
  15605. case $ac_tag in
  15606. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15608. esac
  15609. ;;
  15610. esac
  15611. ac_dir=`$as_dirname -- "$ac_file" ||
  15612. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15613. X"$ac_file" : 'X\(//\)[^/]' \| \
  15614. X"$ac_file" : 'X\(//\)$' \| \
  15615. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15616. $as_echo X"$ac_file" |
  15617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15618. s//\1/
  15619. q
  15620. }
  15621. /^X\(\/\/\)[^/].*/{
  15622. s//\1/
  15623. q
  15624. }
  15625. /^X\(\/\/\)$/{
  15626. s//\1/
  15627. q
  15628. }
  15629. /^X\(\/\).*/{
  15630. s//\1/
  15631. q
  15632. }
  15633. s/.*/./; q'`
  15634. as_dir="$ac_dir"; as_fn_mkdir_p
  15635. ac_builddir=.
  15636. case "$ac_dir" in
  15637. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15638. *)
  15639. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15640. # A ".." for each directory in $ac_dir_suffix.
  15641. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15642. case $ac_top_builddir_sub in
  15643. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15644. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15645. esac ;;
  15646. esac
  15647. ac_abs_top_builddir=$ac_pwd
  15648. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15649. # for backward compatibility:
  15650. ac_top_builddir=$ac_top_build_prefix
  15651. case $srcdir in
  15652. .) # We are building in place.
  15653. ac_srcdir=.
  15654. ac_top_srcdir=$ac_top_builddir_sub
  15655. ac_abs_top_srcdir=$ac_pwd ;;
  15656. [\\/]* | ?:[\\/]* ) # Absolute name.
  15657. ac_srcdir=$srcdir$ac_dir_suffix;
  15658. ac_top_srcdir=$srcdir
  15659. ac_abs_top_srcdir=$srcdir ;;
  15660. *) # Relative name.
  15661. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15662. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15663. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15664. esac
  15665. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15666. case $ac_mode in
  15667. :F)
  15668. #
  15669. # CONFIG_FILE
  15670. #
  15671. case $INSTALL in
  15672. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15673. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15674. esac
  15675. ac_MKDIR_P=$MKDIR_P
  15676. case $MKDIR_P in
  15677. [\\/$]* | ?:[\\/]* ) ;;
  15678. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15679. esac
  15680. _ACEOF
  15681. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15682. # If the template does not know about datarootdir, expand it.
  15683. # FIXME: This hack should be removed a few years after 2.60.
  15684. ac_datarootdir_hack=; ac_datarootdir_seen=
  15685. ac_sed_dataroot='
  15686. /datarootdir/ {
  15687. p
  15688. q
  15689. }
  15690. /@datadir@/p
  15691. /@docdir@/p
  15692. /@infodir@/p
  15693. /@localedir@/p
  15694. /@mandir@/p'
  15695. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15696. *datarootdir*) ac_datarootdir_seen=yes;;
  15697. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15699. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15700. _ACEOF
  15701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15702. ac_datarootdir_hack='
  15703. s&@datadir@&$datadir&g
  15704. s&@docdir@&$docdir&g
  15705. s&@infodir@&$infodir&g
  15706. s&@localedir@&$localedir&g
  15707. s&@mandir@&$mandir&g
  15708. s&\\\${datarootdir}&$datarootdir&g' ;;
  15709. esac
  15710. _ACEOF
  15711. # Neutralize VPATH when `$srcdir' = `.'.
  15712. # Shell code in configure.ac might set extrasub.
  15713. # FIXME: do we really want to maintain this feature?
  15714. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15715. ac_sed_extra="$ac_vpsub
  15716. $extrasub
  15717. _ACEOF
  15718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15719. :t
  15720. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15721. s|@configure_input@|$ac_sed_conf_input|;t t
  15722. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15723. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15724. s&@srcdir@&$ac_srcdir&;t t
  15725. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15726. s&@top_srcdir@&$ac_top_srcdir&;t t
  15727. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15728. s&@builddir@&$ac_builddir&;t t
  15729. s&@abs_builddir@&$ac_abs_builddir&;t t
  15730. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15731. s&@INSTALL@&$ac_INSTALL&;t t
  15732. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15733. $ac_datarootdir_hack
  15734. "
  15735. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15736. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15737. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15738. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15739. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15740. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15742. which seems to be undefined. Please make sure it is defined" >&5
  15743. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15744. which seems to be undefined. Please make sure it is defined" >&2;}
  15745. rm -f "$ac_tmp/stdin"
  15746. case $ac_file in
  15747. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15748. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15749. esac \
  15750. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15751. ;;
  15752. :H)
  15753. #
  15754. # CONFIG_HEADER
  15755. #
  15756. if test x"$ac_file" != x-; then
  15757. {
  15758. $as_echo "/* $configure_input */" \
  15759. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15760. } >"$ac_tmp/config.h" \
  15761. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15762. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15764. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15765. else
  15766. rm -f "$ac_file"
  15767. mv "$ac_tmp/config.h" "$ac_file" \
  15768. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15769. fi
  15770. else
  15771. $as_echo "/* $configure_input */" \
  15772. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15773. || as_fn_error $? "could not create -" "$LINENO" 5
  15774. fi
  15775. # Compute "$ac_file"'s index in $config_headers.
  15776. _am_arg="$ac_file"
  15777. _am_stamp_count=1
  15778. for _am_header in $config_headers :; do
  15779. case $_am_header in
  15780. $_am_arg | $_am_arg:* )
  15781. break ;;
  15782. * )
  15783. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15784. esac
  15785. done
  15786. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15787. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15788. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15789. X"$_am_arg" : 'X\(//\)$' \| \
  15790. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15791. $as_echo X"$_am_arg" |
  15792. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15793. s//\1/
  15794. q
  15795. }
  15796. /^X\(\/\/\)[^/].*/{
  15797. s//\1/
  15798. q
  15799. }
  15800. /^X\(\/\/\)$/{
  15801. s//\1/
  15802. q
  15803. }
  15804. /^X\(\/\).*/{
  15805. s//\1/
  15806. q
  15807. }
  15808. s/.*/./; q'`/stamp-h$_am_stamp_count
  15809. ;;
  15810. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15811. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15812. ;;
  15813. esac
  15814. case $ac_file$ac_mode in
  15815. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15816. # Older Autoconf quotes --file arguments for eval, but not when files
  15817. # are listed without --file. Let's play safe and only enable the eval
  15818. # if we detect the quoting.
  15819. case $CONFIG_FILES in
  15820. *\'*) eval set x "$CONFIG_FILES" ;;
  15821. *) set x $CONFIG_FILES ;;
  15822. esac
  15823. shift
  15824. for mf
  15825. do
  15826. # Strip MF so we end up with the name of the file.
  15827. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15828. # Check whether this is an Automake generated Makefile or not.
  15829. # We used to match only the files named 'Makefile.in', but
  15830. # some people rename them; so instead we look at the file content.
  15831. # Grep'ing the first line is not enough: some people post-process
  15832. # each Makefile.in and add a new line on top of each file to say so.
  15833. # Grep'ing the whole file is not good either: AIX grep has a line
  15834. # limit of 2048, but all sed's we know have understand at least 4000.
  15835. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15836. dirpart=`$as_dirname -- "$mf" ||
  15837. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15838. X"$mf" : 'X\(//\)[^/]' \| \
  15839. X"$mf" : 'X\(//\)$' \| \
  15840. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15841. $as_echo X"$mf" |
  15842. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15843. s//\1/
  15844. q
  15845. }
  15846. /^X\(\/\/\)[^/].*/{
  15847. s//\1/
  15848. q
  15849. }
  15850. /^X\(\/\/\)$/{
  15851. s//\1/
  15852. q
  15853. }
  15854. /^X\(\/\).*/{
  15855. s//\1/
  15856. q
  15857. }
  15858. s/.*/./; q'`
  15859. else
  15860. continue
  15861. fi
  15862. # Extract the definition of DEPDIR, am__include, and am__quote
  15863. # from the Makefile without running 'make'.
  15864. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15865. test -z "$DEPDIR" && continue
  15866. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15867. test -z "$am__include" && continue
  15868. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15869. # Find all dependency output files, they are included files with
  15870. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15871. # simplest approach to changing $(DEPDIR) to its actual value in the
  15872. # expansion.
  15873. for file in `sed -n "
  15874. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15875. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15876. # Make sure the directory exists.
  15877. test -f "$dirpart/$file" && continue
  15878. fdir=`$as_dirname -- "$file" ||
  15879. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15880. X"$file" : 'X\(//\)[^/]' \| \
  15881. X"$file" : 'X\(//\)$' \| \
  15882. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15883. $as_echo X"$file" |
  15884. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15885. s//\1/
  15886. q
  15887. }
  15888. /^X\(\/\/\)[^/].*/{
  15889. s//\1/
  15890. q
  15891. }
  15892. /^X\(\/\/\)$/{
  15893. s//\1/
  15894. q
  15895. }
  15896. /^X\(\/\).*/{
  15897. s//\1/
  15898. q
  15899. }
  15900. s/.*/./; q'`
  15901. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15902. # echo "creating $dirpart/$file"
  15903. echo '# dummy' > "$dirpart/$file"
  15904. done
  15905. done
  15906. }
  15907. ;;
  15908. "libtool":C)
  15909. # See if we are running on zsh, and set the options which allow our
  15910. # commands through without removal of \ escapes.
  15911. if test -n "${ZSH_VERSION+set}" ; then
  15912. setopt NO_GLOB_SUBST
  15913. fi
  15914. cfgfile="${ofile}T"
  15915. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15916. $RM "$cfgfile"
  15917. cat <<_LT_EOF >> "$cfgfile"
  15918. #! $SHELL
  15919. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15920. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15921. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15922. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15923. #
  15924. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15925. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15926. # Foundation, Inc.
  15927. # Written by Gordon Matzigkeit, 1996
  15928. #
  15929. # This file is part of GNU Libtool.
  15930. #
  15931. # GNU Libtool is free software; you can redistribute it and/or
  15932. # modify it under the terms of the GNU General Public License as
  15933. # published by the Free Software Foundation; either version 2 of
  15934. # the License, or (at your option) any later version.
  15935. #
  15936. # As a special exception to the GNU General Public License,
  15937. # if you distribute this file as part of a program or library that
  15938. # is built using GNU Libtool, you may include this file under the
  15939. # same distribution terms that you use for the rest of that program.
  15940. #
  15941. # GNU Libtool is distributed in the hope that it will be useful,
  15942. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15943. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15944. # GNU General Public License for more details.
  15945. #
  15946. # You should have received a copy of the GNU General Public License
  15947. # along with GNU Libtool; see the file COPYING. If not, a copy
  15948. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15949. # obtained by writing to the Free Software Foundation, Inc.,
  15950. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15951. # The names of the tagged configurations supported by this script.
  15952. available_tags="CXX "
  15953. # ### BEGIN LIBTOOL CONFIG
  15954. # Which release of libtool.m4 was used?
  15955. macro_version=$macro_version
  15956. macro_revision=$macro_revision
  15957. # Whether or not to build shared libraries.
  15958. build_libtool_libs=$enable_shared
  15959. # Whether or not to build static libraries.
  15960. build_old_libs=$enable_static
  15961. # What type of objects to build.
  15962. pic_mode=$pic_mode
  15963. # Whether or not to optimize for fast installation.
  15964. fast_install=$enable_fast_install
  15965. # Shell to use when invoking shell scripts.
  15966. SHELL=$lt_SHELL
  15967. # An echo program that protects backslashes.
  15968. ECHO=$lt_ECHO
  15969. # The PATH separator for the build system.
  15970. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15971. # The host system.
  15972. host_alias=$host_alias
  15973. host=$host
  15974. host_os=$host_os
  15975. # The build system.
  15976. build_alias=$build_alias
  15977. build=$build
  15978. build_os=$build_os
  15979. # A sed program that does not truncate output.
  15980. SED=$lt_SED
  15981. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15982. Xsed="\$SED -e 1s/^X//"
  15983. # A grep program that handles long lines.
  15984. GREP=$lt_GREP
  15985. # An ERE matcher.
  15986. EGREP=$lt_EGREP
  15987. # A literal string matcher.
  15988. FGREP=$lt_FGREP
  15989. # A BSD- or MS-compatible name lister.
  15990. NM=$lt_NM
  15991. # Whether we need soft or hard links.
  15992. LN_S=$lt_LN_S
  15993. # What is the maximum length of a command?
  15994. max_cmd_len=$max_cmd_len
  15995. # Object file suffix (normally "o").
  15996. objext=$ac_objext
  15997. # Executable file suffix (normally "").
  15998. exeext=$exeext
  15999. # whether the shell understands "unset".
  16000. lt_unset=$lt_unset
  16001. # turn spaces into newlines.
  16002. SP2NL=$lt_lt_SP2NL
  16003. # turn newlines into spaces.
  16004. NL2SP=$lt_lt_NL2SP
  16005. # convert \$build file names to \$host format.
  16006. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16007. # convert \$build files to toolchain format.
  16008. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16009. # An object symbol dumper.
  16010. OBJDUMP=$lt_OBJDUMP
  16011. # Method to check whether dependent libraries are shared objects.
  16012. deplibs_check_method=$lt_deplibs_check_method
  16013. # Command to use when deplibs_check_method = "file_magic".
  16014. file_magic_cmd=$lt_file_magic_cmd
  16015. # How to find potential files when deplibs_check_method = "file_magic".
  16016. file_magic_glob=$lt_file_magic_glob
  16017. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16018. want_nocaseglob=$lt_want_nocaseglob
  16019. # DLL creation program.
  16020. DLLTOOL=$lt_DLLTOOL
  16021. # Command to associate shared and link libraries.
  16022. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16023. # The archiver.
  16024. AR=$lt_AR
  16025. # Flags to create an archive.
  16026. AR_FLAGS=$lt_AR_FLAGS
  16027. # How to feed a file listing to the archiver.
  16028. archiver_list_spec=$lt_archiver_list_spec
  16029. # A symbol stripping program.
  16030. STRIP=$lt_STRIP
  16031. # Commands used to install an old-style archive.
  16032. RANLIB=$lt_RANLIB
  16033. old_postinstall_cmds=$lt_old_postinstall_cmds
  16034. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16035. # Whether to use a lock for old archive extraction.
  16036. lock_old_archive_extraction=$lock_old_archive_extraction
  16037. # A C compiler.
  16038. LTCC=$lt_CC
  16039. # LTCC compiler flags.
  16040. LTCFLAGS=$lt_CFLAGS
  16041. # Take the output of nm and produce a listing of raw symbols and C names.
  16042. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16043. # Transform the output of nm in a proper C declaration.
  16044. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16045. # Transform the output of nm in a C name address pair.
  16046. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16047. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16048. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16049. # Specify filename containing input files for \$NM.
  16050. nm_file_list_spec=$lt_nm_file_list_spec
  16051. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16052. lt_sysroot=$lt_sysroot
  16053. # The name of the directory that contains temporary libtool files.
  16054. objdir=$objdir
  16055. # Used to examine libraries when file_magic_cmd begins with "file".
  16056. MAGIC_CMD=$MAGIC_CMD
  16057. # Must we lock files when doing compilation?
  16058. need_locks=$lt_need_locks
  16059. # Manifest tool.
  16060. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16061. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16062. DSYMUTIL=$lt_DSYMUTIL
  16063. # Tool to change global to local symbols on Mac OS X.
  16064. NMEDIT=$lt_NMEDIT
  16065. # Tool to manipulate fat objects and archives on Mac OS X.
  16066. LIPO=$lt_LIPO
  16067. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16068. OTOOL=$lt_OTOOL
  16069. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16070. OTOOL64=$lt_OTOOL64
  16071. # Old archive suffix (normally "a").
  16072. libext=$libext
  16073. # Shared library suffix (normally ".so").
  16074. shrext_cmds=$lt_shrext_cmds
  16075. # The commands to extract the exported symbol list from a shared archive.
  16076. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16077. # Variables whose values should be saved in libtool wrapper scripts and
  16078. # restored at link time.
  16079. variables_saved_for_relink=$lt_variables_saved_for_relink
  16080. # Do we need the "lib" prefix for modules?
  16081. need_lib_prefix=$need_lib_prefix
  16082. # Do we need a version for libraries?
  16083. need_version=$need_version
  16084. # Library versioning type.
  16085. version_type=$version_type
  16086. # Shared library runtime path variable.
  16087. runpath_var=$runpath_var
  16088. # Shared library path variable.
  16089. shlibpath_var=$shlibpath_var
  16090. # Is shlibpath searched before the hard-coded library search path?
  16091. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16092. # Format of library name prefix.
  16093. libname_spec=$lt_libname_spec
  16094. # List of archive names. First name is the real one, the rest are links.
  16095. # The last name is the one that the linker finds with -lNAME
  16096. library_names_spec=$lt_library_names_spec
  16097. # The coded name of the library, if different from the real name.
  16098. soname_spec=$lt_soname_spec
  16099. # Permission mode override for installation of shared libraries.
  16100. install_override_mode=$lt_install_override_mode
  16101. # Command to use after installation of a shared archive.
  16102. postinstall_cmds=$lt_postinstall_cmds
  16103. # Command to use after uninstallation of a shared archive.
  16104. postuninstall_cmds=$lt_postuninstall_cmds
  16105. # Commands used to finish a libtool library installation in a directory.
  16106. finish_cmds=$lt_finish_cmds
  16107. # As "finish_cmds", except a single script fragment to be evaled but
  16108. # not shown.
  16109. finish_eval=$lt_finish_eval
  16110. # Whether we should hardcode library paths into libraries.
  16111. hardcode_into_libs=$hardcode_into_libs
  16112. # Compile-time system search path for libraries.
  16113. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16114. # Run-time system search path for libraries.
  16115. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16116. # Whether dlopen is supported.
  16117. dlopen_support=$enable_dlopen
  16118. # Whether dlopen of programs is supported.
  16119. dlopen_self=$enable_dlopen_self
  16120. # Whether dlopen of statically linked programs is supported.
  16121. dlopen_self_static=$enable_dlopen_self_static
  16122. # Commands to strip libraries.
  16123. old_striplib=$lt_old_striplib
  16124. striplib=$lt_striplib
  16125. # The linker used to build libraries.
  16126. LD=$lt_LD
  16127. # How to create reloadable object files.
  16128. reload_flag=$lt_reload_flag
  16129. reload_cmds=$lt_reload_cmds
  16130. # Commands used to build an old-style archive.
  16131. old_archive_cmds=$lt_old_archive_cmds
  16132. # A language specific compiler.
  16133. CC=$lt_compiler
  16134. # Is the compiler the GNU compiler?
  16135. with_gcc=$GCC
  16136. # Compiler flag to turn off builtin functions.
  16137. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16138. # Additional compiler flags for building library objects.
  16139. pic_flag=$lt_lt_prog_compiler_pic
  16140. # How to pass a linker flag through the compiler.
  16141. wl=$lt_lt_prog_compiler_wl
  16142. # Compiler flag to prevent dynamic linking.
  16143. link_static_flag=$lt_lt_prog_compiler_static
  16144. # Does compiler simultaneously support -c and -o options?
  16145. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16146. # Whether or not to add -lc for building shared libraries.
  16147. build_libtool_need_lc=$archive_cmds_need_lc
  16148. # Whether or not to disallow shared libs when runtime libs are static.
  16149. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16150. # Compiler flag to allow reflexive dlopens.
  16151. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16152. # Compiler flag to generate shared objects directly from archives.
  16153. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16154. # Whether the compiler copes with passing no objects directly.
  16155. compiler_needs_object=$lt_compiler_needs_object
  16156. # Create an old-style archive from a shared archive.
  16157. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16158. # Create a temporary old-style archive to link instead of a shared archive.
  16159. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16160. # Commands used to build a shared archive.
  16161. archive_cmds=$lt_archive_cmds
  16162. archive_expsym_cmds=$lt_archive_expsym_cmds
  16163. # Commands used to build a loadable module if different from building
  16164. # a shared archive.
  16165. module_cmds=$lt_module_cmds
  16166. module_expsym_cmds=$lt_module_expsym_cmds
  16167. # Whether we are building with GNU ld or not.
  16168. with_gnu_ld=$lt_with_gnu_ld
  16169. # Flag that allows shared libraries with undefined symbols to be built.
  16170. allow_undefined_flag=$lt_allow_undefined_flag
  16171. # Flag that enforces no undefined symbols.
  16172. no_undefined_flag=$lt_no_undefined_flag
  16173. # Flag to hardcode \$libdir into a binary during linking.
  16174. # This must work even if \$libdir does not exist
  16175. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16176. # Whether we need a single "-rpath" flag with a separated argument.
  16177. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16178. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16179. # DIR into the resulting binary.
  16180. hardcode_direct=$hardcode_direct
  16181. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16182. # DIR into the resulting binary and the resulting library dependency is
  16183. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16184. # library is relocated.
  16185. hardcode_direct_absolute=$hardcode_direct_absolute
  16186. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16187. # into the resulting binary.
  16188. hardcode_minus_L=$hardcode_minus_L
  16189. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16190. # into the resulting binary.
  16191. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16192. # Set to "yes" if building a shared library automatically hardcodes DIR
  16193. # into the library and all subsequent libraries and executables linked
  16194. # against it.
  16195. hardcode_automatic=$hardcode_automatic
  16196. # Set to yes if linker adds runtime paths of dependent libraries
  16197. # to runtime path list.
  16198. inherit_rpath=$inherit_rpath
  16199. # Whether libtool must link a program against all its dependency libraries.
  16200. link_all_deplibs=$link_all_deplibs
  16201. # Set to "yes" if exported symbols are required.
  16202. always_export_symbols=$always_export_symbols
  16203. # The commands to list exported symbols.
  16204. export_symbols_cmds=$lt_export_symbols_cmds
  16205. # Symbols that should not be listed in the preloaded symbols.
  16206. exclude_expsyms=$lt_exclude_expsyms
  16207. # Symbols that must always be exported.
  16208. include_expsyms=$lt_include_expsyms
  16209. # Commands necessary for linking programs (against libraries) with templates.
  16210. prelink_cmds=$lt_prelink_cmds
  16211. # Commands necessary for finishing linking programs.
  16212. postlink_cmds=$lt_postlink_cmds
  16213. # Specify filename containing input files.
  16214. file_list_spec=$lt_file_list_spec
  16215. # How to hardcode a shared library path into an executable.
  16216. hardcode_action=$hardcode_action
  16217. # The directories searched by this compiler when creating a shared library.
  16218. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16219. # Dependencies to place before and after the objects being linked to
  16220. # create a shared library.
  16221. predep_objects=$lt_predep_objects
  16222. postdep_objects=$lt_postdep_objects
  16223. predeps=$lt_predeps
  16224. postdeps=$lt_postdeps
  16225. # The library search path used internally by the compiler when linking
  16226. # a shared library.
  16227. compiler_lib_search_path=$lt_compiler_lib_search_path
  16228. # ### END LIBTOOL CONFIG
  16229. _LT_EOF
  16230. case $host_os in
  16231. aix3*)
  16232. cat <<\_LT_EOF >> "$cfgfile"
  16233. # AIX sometimes has problems with the GCC collect2 program. For some
  16234. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16235. # vanish in a puff of smoke.
  16236. if test "X${COLLECT_NAMES+set}" != Xset; then
  16237. COLLECT_NAMES=
  16238. export COLLECT_NAMES
  16239. fi
  16240. _LT_EOF
  16241. ;;
  16242. esac
  16243. ltmain="$ac_aux_dir/ltmain.sh"
  16244. # We use sed instead of cat because bash on DJGPP gets confused if
  16245. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16246. # text mode, it properly converts lines to CR/LF. This bash problem
  16247. # is reportedly fixed, but why not run on old versions too?
  16248. sed '$q' "$ltmain" >> "$cfgfile" \
  16249. || (rm -f "$cfgfile"; exit 1)
  16250. if test x"$xsi_shell" = xyes; then
  16251. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16252. func_dirname ()\
  16253. {\
  16254. \ case ${1} in\
  16255. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16256. \ * ) func_dirname_result="${3}" ;;\
  16257. \ esac\
  16258. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16259. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16260. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16261. test 0 -eq $? || _lt_function_replace_fail=:
  16262. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16263. func_basename ()\
  16264. {\
  16265. \ func_basename_result="${1##*/}"\
  16266. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16267. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16268. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16269. test 0 -eq $? || _lt_function_replace_fail=:
  16270. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16271. func_dirname_and_basename ()\
  16272. {\
  16273. \ case ${1} in\
  16274. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16275. \ * ) func_dirname_result="${3}" ;;\
  16276. \ esac\
  16277. \ func_basename_result="${1##*/}"\
  16278. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16279. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16280. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16281. test 0 -eq $? || _lt_function_replace_fail=:
  16282. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16283. func_stripname ()\
  16284. {\
  16285. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16286. \ # positional parameters, so assign one to ordinary parameter first.\
  16287. \ func_stripname_result=${3}\
  16288. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16289. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16290. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16291. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16292. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16293. test 0 -eq $? || _lt_function_replace_fail=:
  16294. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16295. func_split_long_opt ()\
  16296. {\
  16297. \ func_split_long_opt_name=${1%%=*}\
  16298. \ func_split_long_opt_arg=${1#*=}\
  16299. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16300. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16301. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16302. test 0 -eq $? || _lt_function_replace_fail=:
  16303. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16304. func_split_short_opt ()\
  16305. {\
  16306. \ func_split_short_opt_arg=${1#??}\
  16307. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16308. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16309. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16310. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16311. test 0 -eq $? || _lt_function_replace_fail=:
  16312. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16313. func_lo2o ()\
  16314. {\
  16315. \ case ${1} in\
  16316. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16317. \ *) func_lo2o_result=${1} ;;\
  16318. \ esac\
  16319. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16320. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16321. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16322. test 0 -eq $? || _lt_function_replace_fail=:
  16323. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16324. func_xform ()\
  16325. {\
  16326. func_xform_result=${1%.*}.lo\
  16327. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16328. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16329. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16330. test 0 -eq $? || _lt_function_replace_fail=:
  16331. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16332. func_arith ()\
  16333. {\
  16334. func_arith_result=$(( $* ))\
  16335. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16338. test 0 -eq $? || _lt_function_replace_fail=:
  16339. sed -e '/^func_len ()$/,/^} # func_len /c\
  16340. func_len ()\
  16341. {\
  16342. func_len_result=${#1}\
  16343. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16344. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16345. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16346. test 0 -eq $? || _lt_function_replace_fail=:
  16347. fi
  16348. if test x"$lt_shell_append" = xyes; then
  16349. sed -e '/^func_append ()$/,/^} # func_append /c\
  16350. func_append ()\
  16351. {\
  16352. eval "${1}+=\\${2}"\
  16353. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16354. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16355. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16356. test 0 -eq $? || _lt_function_replace_fail=:
  16357. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16358. func_append_quoted ()\
  16359. {\
  16360. \ func_quote_for_eval "${2}"\
  16361. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16362. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16363. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16364. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16365. test 0 -eq $? || _lt_function_replace_fail=:
  16366. # Save a `func_append' function call where possible by direct use of '+='
  16367. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16368. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16369. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16370. test 0 -eq $? || _lt_function_replace_fail=:
  16371. else
  16372. # Save a `func_append' function call even when '+=' is not available
  16373. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16374. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16375. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16376. test 0 -eq $? || _lt_function_replace_fail=:
  16377. fi
  16378. if test x"$_lt_function_replace_fail" = x":"; then
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16380. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16381. fi
  16382. mv -f "$cfgfile" "$ofile" ||
  16383. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16384. chmod +x "$ofile"
  16385. cat <<_LT_EOF >> "$ofile"
  16386. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16387. # The linker used to build libraries.
  16388. LD=$lt_LD_CXX
  16389. # How to create reloadable object files.
  16390. reload_flag=$lt_reload_flag_CXX
  16391. reload_cmds=$lt_reload_cmds_CXX
  16392. # Commands used to build an old-style archive.
  16393. old_archive_cmds=$lt_old_archive_cmds_CXX
  16394. # A language specific compiler.
  16395. CC=$lt_compiler_CXX
  16396. # Is the compiler the GNU compiler?
  16397. with_gcc=$GCC_CXX
  16398. # Compiler flag to turn off builtin functions.
  16399. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16400. # Additional compiler flags for building library objects.
  16401. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16402. # How to pass a linker flag through the compiler.
  16403. wl=$lt_lt_prog_compiler_wl_CXX
  16404. # Compiler flag to prevent dynamic linking.
  16405. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16406. # Does compiler simultaneously support -c and -o options?
  16407. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16408. # Whether or not to add -lc for building shared libraries.
  16409. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16410. # Whether or not to disallow shared libs when runtime libs are static.
  16411. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16412. # Compiler flag to allow reflexive dlopens.
  16413. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16414. # Compiler flag to generate shared objects directly from archives.
  16415. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16416. # Whether the compiler copes with passing no objects directly.
  16417. compiler_needs_object=$lt_compiler_needs_object_CXX
  16418. # Create an old-style archive from a shared archive.
  16419. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16420. # Create a temporary old-style archive to link instead of a shared archive.
  16421. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16422. # Commands used to build a shared archive.
  16423. archive_cmds=$lt_archive_cmds_CXX
  16424. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16425. # Commands used to build a loadable module if different from building
  16426. # a shared archive.
  16427. module_cmds=$lt_module_cmds_CXX
  16428. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16429. # Whether we are building with GNU ld or not.
  16430. with_gnu_ld=$lt_with_gnu_ld_CXX
  16431. # Flag that allows shared libraries with undefined symbols to be built.
  16432. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16433. # Flag that enforces no undefined symbols.
  16434. no_undefined_flag=$lt_no_undefined_flag_CXX
  16435. # Flag to hardcode \$libdir into a binary during linking.
  16436. # This must work even if \$libdir does not exist
  16437. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16438. # Whether we need a single "-rpath" flag with a separated argument.
  16439. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16440. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16441. # DIR into the resulting binary.
  16442. hardcode_direct=$hardcode_direct_CXX
  16443. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16444. # DIR into the resulting binary and the resulting library dependency is
  16445. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16446. # library is relocated.
  16447. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16448. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16449. # into the resulting binary.
  16450. hardcode_minus_L=$hardcode_minus_L_CXX
  16451. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16452. # into the resulting binary.
  16453. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16454. # Set to "yes" if building a shared library automatically hardcodes DIR
  16455. # into the library and all subsequent libraries and executables linked
  16456. # against it.
  16457. hardcode_automatic=$hardcode_automatic_CXX
  16458. # Set to yes if linker adds runtime paths of dependent libraries
  16459. # to runtime path list.
  16460. inherit_rpath=$inherit_rpath_CXX
  16461. # Whether libtool must link a program against all its dependency libraries.
  16462. link_all_deplibs=$link_all_deplibs_CXX
  16463. # Set to "yes" if exported symbols are required.
  16464. always_export_symbols=$always_export_symbols_CXX
  16465. # The commands to list exported symbols.
  16466. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16467. # Symbols that should not be listed in the preloaded symbols.
  16468. exclude_expsyms=$lt_exclude_expsyms_CXX
  16469. # Symbols that must always be exported.
  16470. include_expsyms=$lt_include_expsyms_CXX
  16471. # Commands necessary for linking programs (against libraries) with templates.
  16472. prelink_cmds=$lt_prelink_cmds_CXX
  16473. # Commands necessary for finishing linking programs.
  16474. postlink_cmds=$lt_postlink_cmds_CXX
  16475. # Specify filename containing input files.
  16476. file_list_spec=$lt_file_list_spec_CXX
  16477. # How to hardcode a shared library path into an executable.
  16478. hardcode_action=$hardcode_action_CXX
  16479. # The directories searched by this compiler when creating a shared library.
  16480. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16481. # Dependencies to place before and after the objects being linked to
  16482. # create a shared library.
  16483. predep_objects=$lt_predep_objects_CXX
  16484. postdep_objects=$lt_postdep_objects_CXX
  16485. predeps=$lt_predeps_CXX
  16486. postdeps=$lt_postdeps_CXX
  16487. # The library search path used internally by the compiler when linking
  16488. # a shared library.
  16489. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16490. # ### END LIBTOOL TAG CONFIG: CXX
  16491. _LT_EOF
  16492. ;;
  16493. esac
  16494. done # for ac_tag
  16495. as_fn_exit 0
  16496. _ACEOF
  16497. ac_clean_files=$ac_clean_files_save
  16498. test $ac_write_fail = 0 ||
  16499. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16500. # configure is writing to config.log, and then calls config.status.
  16501. # config.status does its own redirection, appending to config.log.
  16502. # Unfortunately, on DOS this fails, as config.log is still kept open
  16503. # by configure, so config.status won't be able to write to it; its
  16504. # output is simply discarded. So we exec the FD to /dev/null,
  16505. # effectively closing config.log, so it can be properly (re)opened and
  16506. # appended to by config.status. When coming back to configure, we
  16507. # need to make the FD available again.
  16508. if test "$no_create" != yes; then
  16509. ac_cs_success=:
  16510. ac_config_status_args=
  16511. test "$silent" = yes &&
  16512. ac_config_status_args="$ac_config_status_args --quiet"
  16513. exec 5>/dev/null
  16514. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16515. exec 5>>config.log
  16516. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16517. # would make configure fail if this is the last instruction.
  16518. $ac_cs_success || as_fn_exit 1
  16519. fi
  16520. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16522. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16523. fi
  16524. echo "
  16525. Configuration for $PACKAGE $VERSION:
  16526. -------------------------------------------
  16527. install prefix ............: $prefix
  16528. preflight worker support ..: $have_limd
  16529. activation method .........: $activation_method"
  16530. if test "x$activation_method" = "xsystemd"; then
  16531. echo " systemd unit directory ....: ${systemdsystemunitdir}"
  16532. fi
  16533. if test -n "$udevrulesdir"; then
  16534. echo " udev rules directory ......: ${udevrulesdir}"
  16535. fi
  16536. echo " compiler ..................: ${CC}
  16537. Now type 'make' to build $PACKAGE $VERSION,
  16538. and then 'make install' for installation.
  16539. "