configure 624 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libimobiledevice 1.2.0.
  4. #
  5. # Report bugs to <https://github.com/libimobiledevice/libimobiledevice/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/libimobiledevice/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='libimobiledevice'
  543. PACKAGE_TARNAME='libimobiledevice'
  544. PACKAGE_VERSION='1.2.0'
  545. PACKAGE_STRING='libimobiledevice 1.2.0'
  546. PACKAGE_BUGREPORT='https://github.com/libimobiledevice/libimobiledevice/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. LIBOBJS
  588. LFS_CFLAGS
  589. GLOBAL_CFLAGS
  590. libtasn1_LIBS
  591. libtasn1_CFLAGS
  592. libgcrypt_LIBS
  593. libgnutls_LIBS
  594. libgnutls_CFLAGS
  595. ssl_requires
  596. openssl_LIBS
  597. openssl_CFLAGS
  598. CYTHON_SUB
  599. HAVE_CYTHON_FALSE
  600. HAVE_CYTHON_TRUE
  601. CYTHON_PLIST_INCLUDE_DIR
  602. CYTHON_PYTHON_CPPFLAGS
  603. CYTHON_PYTHON_OPT
  604. PYTHON_EXTRA_LDFLAGS
  605. PYTHON_EXTRA_LIBS
  606. PYTHON_SITE_PKG
  607. PYTHON_LDFLAGS
  608. PYTHON_CPPFLAGS
  609. CYTHON_LIB
  610. CYTHON
  611. pkgpyexecdir
  612. pyexecdir
  613. pkgpythondir
  614. pythondir
  615. PYTHON_PLATFORM
  616. PYTHON_EXEC_PREFIX
  617. PYTHON_PREFIX
  618. PYTHON_VERSION
  619. PYTHON
  620. WIN32_FALSE
  621. WIN32_TRUE
  622. WINDRES
  623. libpthread_LIBS
  624. libplistmm_LIBS
  625. libplistmm_CFLAGS
  626. libplist_LIBS
  627. libplist_CFLAGS
  628. libusbmuxd_LIBS
  629. libusbmuxd_CFLAGS
  630. PKG_CONFIG_LIBDIR
  631. PKG_CONFIG_PATH
  632. PKG_CONFIG
  633. CXXCPP
  634. CPP
  635. OTOOL64
  636. OTOOL
  637. LIPO
  638. NMEDIT
  639. DSYMUTIL
  640. MANIFEST_TOOL
  641. RANLIB
  642. ac_ct_AR
  643. AR
  644. DLLTOOL
  645. OBJDUMP
  646. LN_S
  647. NM
  648. ac_ct_DUMPBIN
  649. DUMPBIN
  650. LD
  651. FGREP
  652. EGREP
  653. GREP
  654. SED
  655. host_os
  656. host_vendor
  657. host_cpu
  658. host
  659. build_os
  660. build_vendor
  661. build_cpu
  662. build
  663. LIBTOOL
  664. am__fastdepCXX_FALSE
  665. am__fastdepCXX_TRUE
  666. CXXDEPMODE
  667. ac_ct_CXX
  668. CXXFLAGS
  669. CXX
  670. am__fastdepCC_FALSE
  671. am__fastdepCC_TRUE
  672. CCDEPMODE
  673. am__nodep
  674. AMDEPBACKSLASH
  675. AMDEP_FALSE
  676. AMDEP_TRUE
  677. am__quote
  678. am__include
  679. DEPDIR
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. LIBPLISTMM_VERSION
  688. LIBPLIST_VERSION
  689. LIBUSBMUXD_VERSION
  690. LIBIMOBILEDEVICE_SO_VERSION
  691. AM_BACKSLASH
  692. AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V
  694. AM_V
  695. am__untar
  696. am__tar
  697. AMTAR
  698. am__leading_dot
  699. SET_MAKE
  700. AWK
  701. mkdir_p
  702. MKDIR_P
  703. INSTALL_STRIP_PROGRAM
  704. STRIP
  705. install_sh
  706. MAKEINFO
  707. AUTOHEADER
  708. AUTOMAKE
  709. AUTOCONF
  710. ACLOCAL
  711. VERSION
  712. PACKAGE
  713. CYGPATH_W
  714. am__isrc
  715. INSTALL_DATA
  716. INSTALL_SCRIPT
  717. INSTALL_PROGRAM
  718. target_alias
  719. host_alias
  720. build_alias
  721. LIBS
  722. ECHO_T
  723. ECHO_N
  724. ECHO_C
  725. DEFS
  726. mandir
  727. localedir
  728. libdir
  729. psdir
  730. pdfdir
  731. dvidir
  732. htmldir
  733. infodir
  734. docdir
  735. oldincludedir
  736. includedir
  737. localstatedir
  738. sharedstatedir
  739. sysconfdir
  740. datadir
  741. datarootdir
  742. libexecdir
  743. sbindir
  744. bindir
  745. program_transform_name
  746. prefix
  747. exec_prefix
  748. PACKAGE_URL
  749. PACKAGE_BUGREPORT
  750. PACKAGE_STRING
  751. PACKAGE_VERSION
  752. PACKAGE_TARNAME
  753. PACKAGE_NAME
  754. PATH_SEPARATOR
  755. SHELL'
  756. ac_subst_files=''
  757. ac_user_opts='
  758. enable_option_checking
  759. enable_silent_rules
  760. enable_dependency_tracking
  761. enable_shared
  762. enable_static
  763. with_pic
  764. enable_fast_install
  765. with_gnu_ld
  766. with_sysroot
  767. enable_libtool_lock
  768. with_cython
  769. enable_openssl
  770. enable_debug_code
  771. enable_largefile
  772. '
  773. ac_precious_vars='build_alias
  774. host_alias
  775. target_alias
  776. CC
  777. CFLAGS
  778. LDFLAGS
  779. LIBS
  780. CPPFLAGS
  781. CXX
  782. CXXFLAGS
  783. CCC
  784. CPP
  785. CXXCPP
  786. PKG_CONFIG
  787. PKG_CONFIG_PATH
  788. PKG_CONFIG_LIBDIR
  789. libusbmuxd_CFLAGS
  790. libusbmuxd_LIBS
  791. libplist_CFLAGS
  792. libplist_LIBS
  793. libplistmm_CFLAGS
  794. libplistmm_LIBS
  795. PYTHON
  796. PYTHON_VERSION
  797. openssl_CFLAGS
  798. openssl_LIBS
  799. libgnutls_CFLAGS
  800. libgnutls_LIBS
  801. libtasn1_CFLAGS
  802. libtasn1_LIBS'
  803. # Initialize some variables set by options.
  804. ac_init_help=
  805. ac_init_version=false
  806. ac_unrecognized_opts=
  807. ac_unrecognized_sep=
  808. # The variables have the same names as the options, with
  809. # dashes changed to underlines.
  810. cache_file=/dev/null
  811. exec_prefix=NONE
  812. no_create=
  813. no_recursion=
  814. prefix=NONE
  815. program_prefix=NONE
  816. program_suffix=NONE
  817. program_transform_name=s,x,x,
  818. silent=
  819. site=
  820. srcdir=
  821. verbose=
  822. x_includes=NONE
  823. x_libraries=NONE
  824. # Installation directory options.
  825. # These are left unexpanded so users can "make install exec_prefix=/foo"
  826. # and all the variables that are supposed to be based on exec_prefix
  827. # by default will actually change.
  828. # Use braces instead of parens because sh, perl, etc. also accept them.
  829. # (The list follows the same order as the GNU Coding Standards.)
  830. bindir='${exec_prefix}/bin'
  831. sbindir='${exec_prefix}/sbin'
  832. libexecdir='${exec_prefix}/libexec'
  833. datarootdir='${prefix}/share'
  834. datadir='${datarootdir}'
  835. sysconfdir='${prefix}/etc'
  836. sharedstatedir='${prefix}/com'
  837. localstatedir='${prefix}/var'
  838. includedir='${prefix}/include'
  839. oldincludedir='/usr/include'
  840. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  841. infodir='${datarootdir}/info'
  842. htmldir='${docdir}'
  843. dvidir='${docdir}'
  844. pdfdir='${docdir}'
  845. psdir='${docdir}'
  846. libdir='${exec_prefix}/lib'
  847. localedir='${datarootdir}/locale'
  848. mandir='${datarootdir}/man'
  849. ac_prev=
  850. ac_dashdash=
  851. for ac_option
  852. do
  853. # If the previous option needs an argument, assign it.
  854. if test -n "$ac_prev"; then
  855. eval $ac_prev=\$ac_option
  856. ac_prev=
  857. continue
  858. fi
  859. case $ac_option in
  860. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  861. *=) ac_optarg= ;;
  862. *) ac_optarg=yes ;;
  863. esac
  864. # Accept the important Cygnus configure options, so we can diagnose typos.
  865. case $ac_dashdash$ac_option in
  866. --)
  867. ac_dashdash=yes ;;
  868. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  869. ac_prev=bindir ;;
  870. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  871. bindir=$ac_optarg ;;
  872. -build | --build | --buil | --bui | --bu)
  873. ac_prev=build_alias ;;
  874. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  875. build_alias=$ac_optarg ;;
  876. -cache-file | --cache-file | --cache-fil | --cache-fi \
  877. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  878. ac_prev=cache_file ;;
  879. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  880. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  881. cache_file=$ac_optarg ;;
  882. --config-cache | -C)
  883. cache_file=config.cache ;;
  884. -datadir | --datadir | --datadi | --datad)
  885. ac_prev=datadir ;;
  886. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  887. datadir=$ac_optarg ;;
  888. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  889. | --dataroo | --dataro | --datar)
  890. ac_prev=datarootdir ;;
  891. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  892. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  893. datarootdir=$ac_optarg ;;
  894. -disable-* | --disable-*)
  895. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  896. # Reject names that are not valid shell variable names.
  897. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  898. as_fn_error $? "invalid feature name: $ac_useropt"
  899. ac_useropt_orig=$ac_useropt
  900. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  901. case $ac_user_opts in
  902. *"
  903. "enable_$ac_useropt"
  904. "*) ;;
  905. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  906. ac_unrecognized_sep=', ';;
  907. esac
  908. eval enable_$ac_useropt=no ;;
  909. -docdir | --docdir | --docdi | --doc | --do)
  910. ac_prev=docdir ;;
  911. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  912. docdir=$ac_optarg ;;
  913. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  914. ac_prev=dvidir ;;
  915. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  916. dvidir=$ac_optarg ;;
  917. -enable-* | --enable-*)
  918. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921. as_fn_error $? "invalid feature name: $ac_useropt"
  922. ac_useropt_orig=$ac_useropt
  923. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  924. case $ac_user_opts in
  925. *"
  926. "enable_$ac_useropt"
  927. "*) ;;
  928. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  929. ac_unrecognized_sep=', ';;
  930. esac
  931. eval enable_$ac_useropt=\$ac_optarg ;;
  932. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  933. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  934. | --exec | --exe | --ex)
  935. ac_prev=exec_prefix ;;
  936. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  937. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  938. | --exec=* | --exe=* | --ex=*)
  939. exec_prefix=$ac_optarg ;;
  940. -gas | --gas | --ga | --g)
  941. # Obsolete; use --with-gas.
  942. with_gas=yes ;;
  943. -help | --help | --hel | --he | -h)
  944. ac_init_help=long ;;
  945. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  946. ac_init_help=recursive ;;
  947. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  948. ac_init_help=short ;;
  949. -host | --host | --hos | --ho)
  950. ac_prev=host_alias ;;
  951. -host=* | --host=* | --hos=* | --ho=*)
  952. host_alias=$ac_optarg ;;
  953. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  954. ac_prev=htmldir ;;
  955. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  956. | --ht=*)
  957. htmldir=$ac_optarg ;;
  958. -includedir | --includedir | --includedi | --included | --include \
  959. | --includ | --inclu | --incl | --inc)
  960. ac_prev=includedir ;;
  961. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  962. | --includ=* | --inclu=* | --incl=* | --inc=*)
  963. includedir=$ac_optarg ;;
  964. -infodir | --infodir | --infodi | --infod | --info | --inf)
  965. ac_prev=infodir ;;
  966. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  967. infodir=$ac_optarg ;;
  968. -libdir | --libdir | --libdi | --libd)
  969. ac_prev=libdir ;;
  970. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  971. libdir=$ac_optarg ;;
  972. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  973. | --libexe | --libex | --libe)
  974. ac_prev=libexecdir ;;
  975. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  976. | --libexe=* | --libex=* | --libe=*)
  977. libexecdir=$ac_optarg ;;
  978. -localedir | --localedir | --localedi | --localed | --locale)
  979. ac_prev=localedir ;;
  980. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  981. localedir=$ac_optarg ;;
  982. -localstatedir | --localstatedir | --localstatedi | --localstated \
  983. | --localstate | --localstat | --localsta | --localst | --locals)
  984. ac_prev=localstatedir ;;
  985. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  986. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  987. localstatedir=$ac_optarg ;;
  988. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  989. ac_prev=mandir ;;
  990. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  991. mandir=$ac_optarg ;;
  992. -nfp | --nfp | --nf)
  993. # Obsolete; use --without-fp.
  994. with_fp=no ;;
  995. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  996. | --no-cr | --no-c | -n)
  997. no_create=yes ;;
  998. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  999. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1000. no_recursion=yes ;;
  1001. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1002. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1003. | --oldin | --oldi | --old | --ol | --o)
  1004. ac_prev=oldincludedir ;;
  1005. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1006. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1007. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1008. oldincludedir=$ac_optarg ;;
  1009. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1010. ac_prev=prefix ;;
  1011. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1012. prefix=$ac_optarg ;;
  1013. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1014. | --program-pre | --program-pr | --program-p)
  1015. ac_prev=program_prefix ;;
  1016. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1017. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1018. program_prefix=$ac_optarg ;;
  1019. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1020. | --program-suf | --program-su | --program-s)
  1021. ac_prev=program_suffix ;;
  1022. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1023. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1024. program_suffix=$ac_optarg ;;
  1025. -program-transform-name | --program-transform-name \
  1026. | --program-transform-nam | --program-transform-na \
  1027. | --program-transform-n | --program-transform- \
  1028. | --program-transform | --program-transfor \
  1029. | --program-transfo | --program-transf \
  1030. | --program-trans | --program-tran \
  1031. | --progr-tra | --program-tr | --program-t)
  1032. ac_prev=program_transform_name ;;
  1033. -program-transform-name=* | --program-transform-name=* \
  1034. | --program-transform-nam=* | --program-transform-na=* \
  1035. | --program-transform-n=* | --program-transform-=* \
  1036. | --program-transform=* | --program-transfor=* \
  1037. | --program-transfo=* | --program-transf=* \
  1038. | --program-trans=* | --program-tran=* \
  1039. | --progr-tra=* | --program-tr=* | --program-t=*)
  1040. program_transform_name=$ac_optarg ;;
  1041. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1042. ac_prev=pdfdir ;;
  1043. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1044. pdfdir=$ac_optarg ;;
  1045. -psdir | --psdir | --psdi | --psd | --ps)
  1046. ac_prev=psdir ;;
  1047. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1048. psdir=$ac_optarg ;;
  1049. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1050. | -silent | --silent | --silen | --sile | --sil)
  1051. silent=yes ;;
  1052. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1053. ac_prev=sbindir ;;
  1054. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1055. | --sbi=* | --sb=*)
  1056. sbindir=$ac_optarg ;;
  1057. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1058. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1059. | --sharedst | --shareds | --shared | --share | --shar \
  1060. | --sha | --sh)
  1061. ac_prev=sharedstatedir ;;
  1062. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1063. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1064. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1065. | --sha=* | --sh=*)
  1066. sharedstatedir=$ac_optarg ;;
  1067. -site | --site | --sit)
  1068. ac_prev=site ;;
  1069. -site=* | --site=* | --sit=*)
  1070. site=$ac_optarg ;;
  1071. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1072. ac_prev=srcdir ;;
  1073. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1074. srcdir=$ac_optarg ;;
  1075. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1076. | --syscon | --sysco | --sysc | --sys | --sy)
  1077. ac_prev=sysconfdir ;;
  1078. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1079. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1080. sysconfdir=$ac_optarg ;;
  1081. -target | --target | --targe | --targ | --tar | --ta | --t)
  1082. ac_prev=target_alias ;;
  1083. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1084. target_alias=$ac_optarg ;;
  1085. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1086. verbose=yes ;;
  1087. -version | --version | --versio | --versi | --vers | -V)
  1088. ac_init_version=: ;;
  1089. -with-* | --with-*)
  1090. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1091. # Reject names that are not valid shell variable names.
  1092. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1093. as_fn_error $? "invalid package name: $ac_useropt"
  1094. ac_useropt_orig=$ac_useropt
  1095. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1096. case $ac_user_opts in
  1097. *"
  1098. "with_$ac_useropt"
  1099. "*) ;;
  1100. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1101. ac_unrecognized_sep=', ';;
  1102. esac
  1103. eval with_$ac_useropt=\$ac_optarg ;;
  1104. -without-* | --without-*)
  1105. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1108. as_fn_error $? "invalid package name: $ac_useropt"
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "with_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval with_$ac_useropt=no ;;
  1119. --x)
  1120. # Obsolete; use --with-x.
  1121. with_x=yes ;;
  1122. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1123. | --x-incl | --x-inc | --x-in | --x-i)
  1124. ac_prev=x_includes ;;
  1125. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1126. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1127. x_includes=$ac_optarg ;;
  1128. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1129. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1130. ac_prev=x_libraries ;;
  1131. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1132. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1133. x_libraries=$ac_optarg ;;
  1134. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1135. Try \`$0 --help' for more information"
  1136. ;;
  1137. *=*)
  1138. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1139. # Reject names that are not valid shell variable names.
  1140. case $ac_envvar in #(
  1141. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1142. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1143. esac
  1144. eval $ac_envvar=\$ac_optarg
  1145. export $ac_envvar ;;
  1146. *)
  1147. # FIXME: should be removed in autoconf 3.0.
  1148. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1149. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1150. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1151. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1152. ;;
  1153. esac
  1154. done
  1155. if test -n "$ac_prev"; then
  1156. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1157. as_fn_error $? "missing argument to $ac_option"
  1158. fi
  1159. if test -n "$ac_unrecognized_opts"; then
  1160. case $enable_option_checking in
  1161. no) ;;
  1162. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1163. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1164. esac
  1165. fi
  1166. # Check all directory arguments for consistency.
  1167. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1168. datadir sysconfdir sharedstatedir localstatedir includedir \
  1169. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1170. libdir localedir mandir
  1171. do
  1172. eval ac_val=\$$ac_var
  1173. # Remove trailing slashes.
  1174. case $ac_val in
  1175. */ )
  1176. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1177. eval $ac_var=\$ac_val;;
  1178. esac
  1179. # Be sure to have absolute directory names.
  1180. case $ac_val in
  1181. [\\/$]* | ?:[\\/]* ) continue;;
  1182. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1183. esac
  1184. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1185. done
  1186. # There might be people who depend on the old broken behavior: `$host'
  1187. # used to hold the argument of --host etc.
  1188. # FIXME: To remove some day.
  1189. build=$build_alias
  1190. host=$host_alias
  1191. target=$target_alias
  1192. # FIXME: To remove some day.
  1193. if test "x$host_alias" != x; then
  1194. if test "x$build_alias" = x; then
  1195. cross_compiling=maybe
  1196. elif test "x$build_alias" != "x$host_alias"; then
  1197. cross_compiling=yes
  1198. fi
  1199. fi
  1200. ac_tool_prefix=
  1201. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1202. test "$silent" = yes && exec 6>/dev/null
  1203. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1204. ac_ls_di=`ls -di .` &&
  1205. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1206. as_fn_error $? "working directory cannot be determined"
  1207. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1208. as_fn_error $? "pwd does not report name of working directory"
  1209. # Find the source files, if location was not specified.
  1210. if test -z "$srcdir"; then
  1211. ac_srcdir_defaulted=yes
  1212. # Try the directory containing this script, then the parent directory.
  1213. ac_confdir=`$as_dirname -- "$as_myself" ||
  1214. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1215. X"$as_myself" : 'X\(//\)[^/]' \| \
  1216. X"$as_myself" : 'X\(//\)$' \| \
  1217. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1218. $as_echo X"$as_myself" |
  1219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\/\)[^/].*/{
  1224. s//\1/
  1225. q
  1226. }
  1227. /^X\(\/\/\)$/{
  1228. s//\1/
  1229. q
  1230. }
  1231. /^X\(\/\).*/{
  1232. s//\1/
  1233. q
  1234. }
  1235. s/.*/./; q'`
  1236. srcdir=$ac_confdir
  1237. if test ! -r "$srcdir/$ac_unique_file"; then
  1238. srcdir=..
  1239. fi
  1240. else
  1241. ac_srcdir_defaulted=no
  1242. fi
  1243. if test ! -r "$srcdir/$ac_unique_file"; then
  1244. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1245. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1246. fi
  1247. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1248. ac_abs_confdir=`(
  1249. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1250. pwd)`
  1251. # When building in place, set srcdir=.
  1252. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1253. srcdir=.
  1254. fi
  1255. # Remove unnecessary trailing slashes from srcdir.
  1256. # Double slashes in file names in object file debugging info
  1257. # mess up M-x gdb in Emacs.
  1258. case $srcdir in
  1259. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1260. esac
  1261. for ac_var in $ac_precious_vars; do
  1262. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1263. eval ac_env_${ac_var}_value=\$${ac_var}
  1264. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1266. done
  1267. #
  1268. # Report the --help message.
  1269. #
  1270. if test "$ac_init_help" = "long"; then
  1271. # Omit some internal or obsolete options to make the list less imposing.
  1272. # This message is too long to be a string in the A/UX 3.1 sh.
  1273. cat <<_ACEOF
  1274. \`configure' configures libimobiledevice 1.2.0 to adapt to many kinds of systems.
  1275. Usage: $0 [OPTION]... [VAR=VALUE]...
  1276. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1277. VAR=VALUE. See below for descriptions of some of the useful variables.
  1278. Defaults for the options are specified in brackets.
  1279. Configuration:
  1280. -h, --help display this help and exit
  1281. --help=short display options specific to this package
  1282. --help=recursive display the short help of all the included packages
  1283. -V, --version display version information and exit
  1284. -q, --quiet, --silent do not print \`checking ...' messages
  1285. --cache-file=FILE cache test results in FILE [disabled]
  1286. -C, --config-cache alias for \`--cache-file=config.cache'
  1287. -n, --no-create do not create output files
  1288. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1289. Installation directories:
  1290. --prefix=PREFIX install architecture-independent files in PREFIX
  1291. [$ac_default_prefix]
  1292. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1293. [PREFIX]
  1294. By default, \`make install' will install all the files in
  1295. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1296. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1297. for instance \`--prefix=\$HOME'.
  1298. For better control, use the options below.
  1299. Fine tuning of the installation directories:
  1300. --bindir=DIR user executables [EPREFIX/bin]
  1301. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1302. --libexecdir=DIR program executables [EPREFIX/libexec]
  1303. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1304. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1305. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1306. --libdir=DIR object code libraries [EPREFIX/lib]
  1307. --includedir=DIR C header files [PREFIX/include]
  1308. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1309. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1310. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1311. --infodir=DIR info documentation [DATAROOTDIR/info]
  1312. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1313. --mandir=DIR man documentation [DATAROOTDIR/man]
  1314. --docdir=DIR documentation root
  1315. [DATAROOTDIR/doc/libimobiledevice]
  1316. --htmldir=DIR html documentation [DOCDIR]
  1317. --dvidir=DIR dvi documentation [DOCDIR]
  1318. --pdfdir=DIR pdf documentation [DOCDIR]
  1319. --psdir=DIR ps documentation [DOCDIR]
  1320. _ACEOF
  1321. cat <<\_ACEOF
  1322. Program names:
  1323. --program-prefix=PREFIX prepend PREFIX to installed program names
  1324. --program-suffix=SUFFIX append SUFFIX to installed program names
  1325. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1326. System types:
  1327. --build=BUILD configure for building on BUILD [guessed]
  1328. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. case $ac_init_help in
  1333. short | recursive ) echo "Configuration of libimobiledevice 1.2.0:";;
  1334. esac
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-silent-rules less verbose build output (undo: "make V=1")
  1341. --disable-silent-rules verbose build output (undo: "make V=0")
  1342. --enable-dependency-tracking
  1343. do not reject slow dependency extractors
  1344. --disable-dependency-tracking
  1345. speeds up one-time build
  1346. --enable-shared[=PKGS] build shared libraries [default=yes]
  1347. --enable-static[=PKGS] build static libraries [default=yes]
  1348. --enable-fast-install[=PKGS]
  1349. optimize for fast installation [default=yes]
  1350. --disable-libtool-lock avoid locking (might break parallel builds)
  1351. --disable-openssl Do not look for OpenSSL
  1352. --enable-debug-code enable debug message reporting in library (default
  1353. is no)
  1354. --disable-largefile omit support for large files
  1355. Optional Packages:
  1356. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1357. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1358. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1359. both]
  1360. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1361. --with-sysroot=DIR Search for dependent libraries within DIR
  1362. (or the compiler's sysroot if not specified).
  1363. --without-cython build Python bindings using Cython (default is yes)
  1364. Some influential environment variables:
  1365. CC C compiler command
  1366. CFLAGS C compiler flags
  1367. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1368. nonstandard directory <lib dir>
  1369. LIBS libraries to pass to the linker, e.g. -l<library>
  1370. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1371. you have headers in a nonstandard directory <include dir>
  1372. CXX C++ compiler command
  1373. CXXFLAGS C++ compiler flags
  1374. CPP C preprocessor
  1375. CXXCPP C++ preprocessor
  1376. PKG_CONFIG path to pkg-config utility
  1377. PKG_CONFIG_PATH
  1378. directories to add to pkg-config's search path
  1379. PKG_CONFIG_LIBDIR
  1380. path overriding pkg-config's built-in search path
  1381. libusbmuxd_CFLAGS
  1382. C compiler flags for libusbmuxd, overriding pkg-config
  1383. libusbmuxd_LIBS
  1384. linker flags for libusbmuxd, overriding pkg-config
  1385. libplist_CFLAGS
  1386. C compiler flags for libplist, overriding pkg-config
  1387. libplist_LIBS
  1388. linker flags for libplist, overriding pkg-config
  1389. libplistmm_CFLAGS
  1390. C compiler flags for libplistmm, overriding pkg-config
  1391. libplistmm_LIBS
  1392. linker flags for libplistmm, overriding pkg-config
  1393. PYTHON the Python interpreter
  1394. PYTHON_VERSION
  1395. The installed Python version to use, for example '2.3'. This
  1396. string will be appended to the Python interpreter canonical
  1397. name.
  1398. openssl_CFLAGS
  1399. C compiler flags for openssl, overriding pkg-config
  1400. openssl_LIBS
  1401. linker flags for openssl, overriding pkg-config
  1402. libgnutls_CFLAGS
  1403. C compiler flags for libgnutls, overriding pkg-config
  1404. libgnutls_LIBS
  1405. linker flags for libgnutls, overriding pkg-config
  1406. libtasn1_CFLAGS
  1407. C compiler flags for libtasn1, overriding pkg-config
  1408. libtasn1_LIBS
  1409. linker flags for libtasn1, overriding pkg-config
  1410. Use these variables to override the choices made by `configure' or to help
  1411. it to find libraries and programs with nonstandard names/locations.
  1412. Report bugs to <https://github.com/libimobiledevice/libimobiledevice/issues>.
  1413. libimobiledevice home page: <http://libimobiledevice.org>.
  1414. _ACEOF
  1415. ac_status=$?
  1416. fi
  1417. if test "$ac_init_help" = "recursive"; then
  1418. # If there are subdirs, report their specific --help.
  1419. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1420. test -d "$ac_dir" ||
  1421. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1422. continue
  1423. ac_builddir=.
  1424. case "$ac_dir" in
  1425. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1426. *)
  1427. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1428. # A ".." for each directory in $ac_dir_suffix.
  1429. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1430. case $ac_top_builddir_sub in
  1431. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1432. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1433. esac ;;
  1434. esac
  1435. ac_abs_top_builddir=$ac_pwd
  1436. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1437. # for backward compatibility:
  1438. ac_top_builddir=$ac_top_build_prefix
  1439. case $srcdir in
  1440. .) # We are building in place.
  1441. ac_srcdir=.
  1442. ac_top_srcdir=$ac_top_builddir_sub
  1443. ac_abs_top_srcdir=$ac_pwd ;;
  1444. [\\/]* | ?:[\\/]* ) # Absolute name.
  1445. ac_srcdir=$srcdir$ac_dir_suffix;
  1446. ac_top_srcdir=$srcdir
  1447. ac_abs_top_srcdir=$srcdir ;;
  1448. *) # Relative name.
  1449. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1450. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1451. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1452. esac
  1453. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1454. cd "$ac_dir" || { ac_status=$?; continue; }
  1455. # Check for guested configure.
  1456. if test -f "$ac_srcdir/configure.gnu"; then
  1457. echo &&
  1458. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1459. elif test -f "$ac_srcdir/configure"; then
  1460. echo &&
  1461. $SHELL "$ac_srcdir/configure" --help=recursive
  1462. else
  1463. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1464. fi || ac_status=$?
  1465. cd "$ac_pwd" || { ac_status=$?; break; }
  1466. done
  1467. fi
  1468. test -n "$ac_init_help" && exit $ac_status
  1469. if $ac_init_version; then
  1470. cat <<\_ACEOF
  1471. libimobiledevice configure 1.2.0
  1472. generated by GNU Autoconf 2.69
  1473. Copyright (C) 2012 Free Software Foundation, Inc.
  1474. This configure script is free software; the Free Software Foundation
  1475. gives unlimited permission to copy, distribute and modify it.
  1476. _ACEOF
  1477. exit
  1478. fi
  1479. ## ------------------------ ##
  1480. ## Autoconf initialization. ##
  1481. ## ------------------------ ##
  1482. # ac_fn_c_try_compile LINENO
  1483. # --------------------------
  1484. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1485. ac_fn_c_try_compile ()
  1486. {
  1487. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1488. rm -f conftest.$ac_objext
  1489. if { { ac_try="$ac_compile"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. $as_echo "$ac_try_echo"; } >&5
  1496. (eval "$ac_compile") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } && {
  1505. test -z "$ac_c_werror_flag" ||
  1506. test ! -s conftest.err
  1507. } && test -s conftest.$ac_objext; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } # ac_fn_c_try_compile
  1517. # ac_fn_cxx_try_compile LINENO
  1518. # ----------------------------
  1519. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1520. ac_fn_cxx_try_compile ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. rm -f conftest.$ac_objext
  1524. if { { ac_try="$ac_compile"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_compile") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } && {
  1540. test -z "$ac_cxx_werror_flag" ||
  1541. test ! -s conftest.err
  1542. } && test -s conftest.$ac_objext; then :
  1543. ac_retval=0
  1544. else
  1545. $as_echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_retval=1
  1548. fi
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. as_fn_set_status $ac_retval
  1551. } # ac_fn_cxx_try_compile
  1552. # ac_fn_c_try_link LINENO
  1553. # -----------------------
  1554. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1555. ac_fn_c_try_link ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. rm -f conftest.$ac_objext conftest$ac_exeext
  1559. if { { ac_try="$ac_link"
  1560. case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_link") 2>conftest.err
  1567. ac_status=$?
  1568. if test -s conftest.err; then
  1569. grep -v '^ *+' conftest.err >conftest.er1
  1570. cat conftest.er1 >&5
  1571. mv -f conftest.er1 conftest.err
  1572. fi
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && {
  1575. test -z "$ac_c_werror_flag" ||
  1576. test ! -s conftest.err
  1577. } && test -s conftest$ac_exeext && {
  1578. test "$cross_compiling" = yes ||
  1579. test -x conftest$ac_exeext
  1580. }; then :
  1581. ac_retval=0
  1582. else
  1583. $as_echo "$as_me: failed program was:" >&5
  1584. sed 's/^/| /' conftest.$ac_ext >&5
  1585. ac_retval=1
  1586. fi
  1587. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1588. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1589. # interfere with the next link command; also delete a directory that is
  1590. # left behind by Apple's compiler. We do this before executing the actions.
  1591. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_link
  1595. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1596. # -------------------------------------------------------
  1597. # Tests whether HEADER exists and can be compiled using the include files in
  1598. # INCLUDES, setting the cache variable VAR accordingly.
  1599. ac_fn_c_check_header_compile ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1603. $as_echo_n "checking for $2... " >&6; }
  1604. if eval \${$3+:} false; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h. */
  1609. $4
  1610. #include <$2>
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. } # ac_fn_c_check_header_compile
  1624. # ac_fn_c_try_cpp LINENO
  1625. # ----------------------
  1626. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_c_try_cpp ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } > conftest.i && {
  1646. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. }; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: failed program was:" >&5
  1652. sed 's/^/| /' conftest.$ac_ext >&5
  1653. ac_retval=1
  1654. fi
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_cpp
  1658. # ac_fn_c_try_run LINENO
  1659. # ----------------------
  1660. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1661. # that executables *can* be run.
  1662. ac_fn_c_try_run ()
  1663. {
  1664. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1665. if { { ac_try="$ac_link"
  1666. case "(($ac_try" in
  1667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1668. *) ac_try_echo=$ac_try;;
  1669. esac
  1670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1671. $as_echo "$ac_try_echo"; } >&5
  1672. (eval "$ac_link") 2>&5
  1673. ac_status=$?
  1674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1675. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1676. { { case "(($ac_try" in
  1677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1678. *) ac_try_echo=$ac_try;;
  1679. esac
  1680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1681. $as_echo "$ac_try_echo"; } >&5
  1682. (eval "$ac_try") 2>&5
  1683. ac_status=$?
  1684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1685. test $ac_status = 0; }; }; then :
  1686. ac_retval=0
  1687. else
  1688. $as_echo "$as_me: program exited with status $ac_status" >&5
  1689. $as_echo "$as_me: failed program was:" >&5
  1690. sed 's/^/| /' conftest.$ac_ext >&5
  1691. ac_retval=$ac_status
  1692. fi
  1693. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. as_fn_set_status $ac_retval
  1696. } # ac_fn_c_try_run
  1697. # ac_fn_c_check_func LINENO FUNC VAR
  1698. # ----------------------------------
  1699. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1700. ac_fn_c_check_func ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1704. $as_echo_n "checking for $2... " >&6; }
  1705. if eval \${$3+:} false; then :
  1706. $as_echo_n "(cached) " >&6
  1707. else
  1708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1709. /* end confdefs.h. */
  1710. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1711. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1712. #define $2 innocuous_$2
  1713. /* System header to define __stub macros and hopefully few prototypes,
  1714. which can conflict with char $2 (); below.
  1715. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1716. <limits.h> exists even on freestanding compilers. */
  1717. #ifdef __STDC__
  1718. # include <limits.h>
  1719. #else
  1720. # include <assert.h>
  1721. #endif
  1722. #undef $2
  1723. /* Override any GCC internal prototype to avoid an error.
  1724. Use char because int might match the return type of a GCC
  1725. builtin and then its argument prototype would still apply. */
  1726. #ifdef __cplusplus
  1727. extern "C"
  1728. #endif
  1729. char $2 ();
  1730. /* The GNU C library defines this for functions which it implements
  1731. to always fail with ENOSYS. Some functions are actually named
  1732. something starting with __ and the normal name is an alias. */
  1733. #if defined __stub_$2 || defined __stub___$2
  1734. choke me
  1735. #endif
  1736. int
  1737. main ()
  1738. {
  1739. return $2 ();
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_link "$LINENO"; then :
  1745. eval "$3=yes"
  1746. else
  1747. eval "$3=no"
  1748. fi
  1749. rm -f core conftest.err conftest.$ac_objext \
  1750. conftest$ac_exeext conftest.$ac_ext
  1751. fi
  1752. eval ac_res=\$$3
  1753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1754. $as_echo "$ac_res" >&6; }
  1755. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1756. } # ac_fn_c_check_func
  1757. # ac_fn_cxx_try_cpp LINENO
  1758. # ------------------------
  1759. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1760. ac_fn_cxx_try_cpp ()
  1761. {
  1762. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1763. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } > conftest.i && {
  1779. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1780. test ! -s conftest.err
  1781. }; then :
  1782. ac_retval=0
  1783. else
  1784. $as_echo "$as_me: failed program was:" >&5
  1785. sed 's/^/| /' conftest.$ac_ext >&5
  1786. ac_retval=1
  1787. fi
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. as_fn_set_status $ac_retval
  1790. } # ac_fn_cxx_try_cpp
  1791. # ac_fn_cxx_try_link LINENO
  1792. # -------------------------
  1793. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1794. ac_fn_cxx_try_link ()
  1795. {
  1796. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1797. rm -f conftest.$ac_objext conftest$ac_exeext
  1798. if { { ac_try="$ac_link"
  1799. case "(($ac_try" in
  1800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1801. *) ac_try_echo=$ac_try;;
  1802. esac
  1803. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1804. $as_echo "$ac_try_echo"; } >&5
  1805. (eval "$ac_link") 2>conftest.err
  1806. ac_status=$?
  1807. if test -s conftest.err; then
  1808. grep -v '^ *+' conftest.err >conftest.er1
  1809. cat conftest.er1 >&5
  1810. mv -f conftest.er1 conftest.err
  1811. fi
  1812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1813. test $ac_status = 0; } && {
  1814. test -z "$ac_cxx_werror_flag" ||
  1815. test ! -s conftest.err
  1816. } && test -s conftest$ac_exeext && {
  1817. test "$cross_compiling" = yes ||
  1818. test -x conftest$ac_exeext
  1819. }; then :
  1820. ac_retval=0
  1821. else
  1822. $as_echo "$as_me: failed program was:" >&5
  1823. sed 's/^/| /' conftest.$ac_ext >&5
  1824. ac_retval=1
  1825. fi
  1826. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1827. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1828. # interfere with the next link command; also delete a directory that is
  1829. # left behind by Apple's compiler. We do this before executing the actions.
  1830. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_cxx_try_link
  1834. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1835. # -------------------------------------------------------
  1836. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1837. # the include files in INCLUDES and setting the cache variable VAR
  1838. # accordingly.
  1839. ac_fn_c_check_header_mongrel ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. if eval \${$3+:} false; then :
  1843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1844. $as_echo_n "checking for $2... " >&6; }
  1845. if eval \${$3+:} false; then :
  1846. $as_echo_n "(cached) " >&6
  1847. fi
  1848. eval ac_res=\$$3
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1850. $as_echo "$ac_res" >&6; }
  1851. else
  1852. # Is the header compilable?
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1854. $as_echo_n "checking $2 usability... " >&6; }
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. $4
  1858. #include <$2>
  1859. _ACEOF
  1860. if ac_fn_c_try_compile "$LINENO"; then :
  1861. ac_header_compiler=yes
  1862. else
  1863. ac_header_compiler=no
  1864. fi
  1865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1867. $as_echo "$ac_header_compiler" >&6; }
  1868. # Is the header present?
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1870. $as_echo_n "checking $2 presence... " >&6; }
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. #include <$2>
  1874. _ACEOF
  1875. if ac_fn_c_try_cpp "$LINENO"; then :
  1876. ac_header_preproc=yes
  1877. else
  1878. ac_header_preproc=no
  1879. fi
  1880. rm -f conftest.err conftest.i conftest.$ac_ext
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1882. $as_echo "$ac_header_preproc" >&6; }
  1883. # So? What about this header?
  1884. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1885. yes:no: )
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1887. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1889. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1890. ;;
  1891. no:yes:* )
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1893. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1895. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1897. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1899. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1901. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1902. ( $as_echo "## -------------------------------------------------------------------------- ##
  1903. ## Report this to https://github.com/libimobiledevice/libimobiledevice/issues ##
  1904. ## -------------------------------------------------------------------------- ##"
  1905. ) | sed "s/^/$as_me: WARNING: /" >&2
  1906. ;;
  1907. esac
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1909. $as_echo_n "checking for $2... " >&6; }
  1910. if eval \${$3+:} false; then :
  1911. $as_echo_n "(cached) " >&6
  1912. else
  1913. eval "$3=\$ac_header_compiler"
  1914. fi
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. fi
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. } # ac_fn_c_check_header_mongrel
  1921. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1922. # -------------------------------------------
  1923. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1924. # variable VAR accordingly.
  1925. ac_fn_c_check_type ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1929. $as_echo_n "checking for $2... " >&6; }
  1930. if eval \${$3+:} false; then :
  1931. $as_echo_n "(cached) " >&6
  1932. else
  1933. eval "$3=no"
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. $4
  1937. int
  1938. main ()
  1939. {
  1940. if (sizeof ($2))
  1941. return 0;
  1942. ;
  1943. return 0;
  1944. }
  1945. _ACEOF
  1946. if ac_fn_c_try_compile "$LINENO"; then :
  1947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1948. /* end confdefs.h. */
  1949. $4
  1950. int
  1951. main ()
  1952. {
  1953. if (sizeof (($2)))
  1954. return 0;
  1955. ;
  1956. return 0;
  1957. }
  1958. _ACEOF
  1959. if ac_fn_c_try_compile "$LINENO"; then :
  1960. else
  1961. eval "$3=yes"
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1964. fi
  1965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1966. fi
  1967. eval ac_res=\$$3
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. $as_echo "$ac_res" >&6; }
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. } # ac_fn_c_check_type
  1972. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1973. # ------------------------------------
  1974. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1975. # accordingly.
  1976. ac_fn_c_find_uintX_t ()
  1977. {
  1978. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1980. $as_echo_n "checking for uint$2_t... " >&6; }
  1981. if eval \${$3+:} false; then :
  1982. $as_echo_n "(cached) " >&6
  1983. else
  1984. eval "$3=no"
  1985. # Order is important - never check a type that is potentially smaller
  1986. # than half of the expected target width.
  1987. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1988. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1990. /* end confdefs.h. */
  1991. $ac_includes_default
  1992. int
  1993. main ()
  1994. {
  1995. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1996. test_array [0] = 0;
  1997. return test_array [0];
  1998. ;
  1999. return 0;
  2000. }
  2001. _ACEOF
  2002. if ac_fn_c_try_compile "$LINENO"; then :
  2003. case $ac_type in #(
  2004. uint$2_t) :
  2005. eval "$3=yes" ;; #(
  2006. *) :
  2007. eval "$3=\$ac_type" ;;
  2008. esac
  2009. fi
  2010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2011. if eval test \"x\$"$3"\" = x"no"; then :
  2012. else
  2013. break
  2014. fi
  2015. done
  2016. fi
  2017. eval ac_res=\$$3
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. $as_echo "$ac_res" >&6; }
  2020. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2021. } # ac_fn_c_find_uintX_t
  2022. cat >config.log <<_ACEOF
  2023. This file contains any messages produced by compilers while
  2024. running configure, to aid debugging if configure makes a mistake.
  2025. It was created by libimobiledevice $as_me 1.2.0, which was
  2026. generated by GNU Autoconf 2.69. Invocation command line was
  2027. $ $0 $@
  2028. _ACEOF
  2029. exec 5>>config.log
  2030. {
  2031. cat <<_ASUNAME
  2032. ## --------- ##
  2033. ## Platform. ##
  2034. ## --------- ##
  2035. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2036. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2037. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2038. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2039. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2040. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2041. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2042. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2043. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2044. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2045. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2046. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2047. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2048. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2049. _ASUNAME
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. $as_echo "PATH: $as_dir"
  2056. done
  2057. IFS=$as_save_IFS
  2058. } >&5
  2059. cat >&5 <<_ACEOF
  2060. ## ----------- ##
  2061. ## Core tests. ##
  2062. ## ----------- ##
  2063. _ACEOF
  2064. # Keep a trace of the command line.
  2065. # Strip out --no-create and --no-recursion so they do not pile up.
  2066. # Strip out --silent because we don't want to record it for future runs.
  2067. # Also quote any args containing shell meta-characters.
  2068. # Make two passes to allow for proper duplicate-argument suppression.
  2069. ac_configure_args=
  2070. ac_configure_args0=
  2071. ac_configure_args1=
  2072. ac_must_keep_next=false
  2073. for ac_pass in 1 2
  2074. do
  2075. for ac_arg
  2076. do
  2077. case $ac_arg in
  2078. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2080. | -silent | --silent | --silen | --sile | --sil)
  2081. continue ;;
  2082. *\'*)
  2083. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2084. esac
  2085. case $ac_pass in
  2086. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2087. 2)
  2088. as_fn_append ac_configure_args1 " '$ac_arg'"
  2089. if test $ac_must_keep_next = true; then
  2090. ac_must_keep_next=false # Got value, back to normal.
  2091. else
  2092. case $ac_arg in
  2093. *=* | --config-cache | -C | -disable-* | --disable-* \
  2094. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2095. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2096. | -with-* | --with-* | -without-* | --without-* | --x)
  2097. case "$ac_configure_args0 " in
  2098. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2099. esac
  2100. ;;
  2101. -* ) ac_must_keep_next=true ;;
  2102. esac
  2103. fi
  2104. as_fn_append ac_configure_args " '$ac_arg'"
  2105. ;;
  2106. esac
  2107. done
  2108. done
  2109. { ac_configure_args0=; unset ac_configure_args0;}
  2110. { ac_configure_args1=; unset ac_configure_args1;}
  2111. # When interrupted or exit'd, cleanup temporary files, and complete
  2112. # config.log. We remove comments because anyway the quotes in there
  2113. # would cause problems or look ugly.
  2114. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2115. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2116. trap 'exit_status=$?
  2117. # Save into config.log some information that might help in debugging.
  2118. {
  2119. echo
  2120. $as_echo "## ---------------- ##
  2121. ## Cache variables. ##
  2122. ## ---------------- ##"
  2123. echo
  2124. # The following way of writing the cache mishandles newlines in values,
  2125. (
  2126. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in #(
  2129. *${as_nl}*)
  2130. case $ac_var in #(
  2131. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2132. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2133. esac
  2134. case $ac_var in #(
  2135. _ | IFS | as_nl) ;; #(
  2136. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2137. *) { eval $ac_var=; unset $ac_var;} ;;
  2138. esac ;;
  2139. esac
  2140. done
  2141. (set) 2>&1 |
  2142. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2143. *${as_nl}ac_space=\ *)
  2144. sed -n \
  2145. "s/'\''/'\''\\\\'\'''\''/g;
  2146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2147. ;; #(
  2148. *)
  2149. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2150. ;;
  2151. esac |
  2152. sort
  2153. )
  2154. echo
  2155. $as_echo "## ----------------- ##
  2156. ## Output variables. ##
  2157. ## ----------------- ##"
  2158. echo
  2159. for ac_var in $ac_subst_vars
  2160. do
  2161. eval ac_val=\$$ac_var
  2162. case $ac_val in
  2163. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2164. esac
  2165. $as_echo "$ac_var='\''$ac_val'\''"
  2166. done | sort
  2167. echo
  2168. if test -n "$ac_subst_files"; then
  2169. $as_echo "## ------------------- ##
  2170. ## File substitutions. ##
  2171. ## ------------------- ##"
  2172. echo
  2173. for ac_var in $ac_subst_files
  2174. do
  2175. eval ac_val=\$$ac_var
  2176. case $ac_val in
  2177. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2178. esac
  2179. $as_echo "$ac_var='\''$ac_val'\''"
  2180. done | sort
  2181. echo
  2182. fi
  2183. if test -s confdefs.h; then
  2184. $as_echo "## ----------- ##
  2185. ## confdefs.h. ##
  2186. ## ----------- ##"
  2187. echo
  2188. cat confdefs.h
  2189. echo
  2190. fi
  2191. test "$ac_signal" != 0 &&
  2192. $as_echo "$as_me: caught signal $ac_signal"
  2193. $as_echo "$as_me: exit $exit_status"
  2194. } >&5
  2195. rm -f core *.core core.conftest.* &&
  2196. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2197. exit $exit_status
  2198. ' 0
  2199. for ac_signal in 1 2 13 15; do
  2200. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2201. done
  2202. ac_signal=0
  2203. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2204. rm -f -r conftest* confdefs.h
  2205. $as_echo "/* confdefs.h */" > confdefs.h
  2206. # Predefined preprocessor variables.
  2207. cat >>confdefs.h <<_ACEOF
  2208. #define PACKAGE_NAME "$PACKAGE_NAME"
  2209. _ACEOF
  2210. cat >>confdefs.h <<_ACEOF
  2211. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2212. _ACEOF
  2213. cat >>confdefs.h <<_ACEOF
  2214. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2215. _ACEOF
  2216. cat >>confdefs.h <<_ACEOF
  2217. #define PACKAGE_STRING "$PACKAGE_STRING"
  2218. _ACEOF
  2219. cat >>confdefs.h <<_ACEOF
  2220. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2221. _ACEOF
  2222. cat >>confdefs.h <<_ACEOF
  2223. #define PACKAGE_URL "$PACKAGE_URL"
  2224. _ACEOF
  2225. # Let the site file select an alternate cache file if it wants to.
  2226. # Prefer an explicitly selected file to automatically selected ones.
  2227. ac_site_file1=NONE
  2228. ac_site_file2=NONE
  2229. if test -n "$CONFIG_SITE"; then
  2230. # We do not want a PATH search for config.site.
  2231. case $CONFIG_SITE in #((
  2232. -*) ac_site_file1=./$CONFIG_SITE;;
  2233. */*) ac_site_file1=$CONFIG_SITE;;
  2234. *) ac_site_file1=./$CONFIG_SITE;;
  2235. esac
  2236. elif test "x$prefix" != xNONE; then
  2237. ac_site_file1=$prefix/share/config.site
  2238. ac_site_file2=$prefix/etc/config.site
  2239. else
  2240. ac_site_file1=$ac_default_prefix/share/config.site
  2241. ac_site_file2=$ac_default_prefix/etc/config.site
  2242. fi
  2243. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2244. do
  2245. test "x$ac_site_file" = xNONE && continue
  2246. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2248. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2249. sed 's/^/| /' "$ac_site_file" >&5
  2250. . "$ac_site_file" \
  2251. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2252. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2253. as_fn_error $? "failed to load site script $ac_site_file
  2254. See \`config.log' for more details" "$LINENO" 5; }
  2255. fi
  2256. done
  2257. if test -r "$cache_file"; then
  2258. # Some versions of bash will fail to source /dev/null (special files
  2259. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2260. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2262. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2263. case $cache_file in
  2264. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2265. *) . "./$cache_file";;
  2266. esac
  2267. fi
  2268. else
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2270. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2271. >$cache_file
  2272. fi
  2273. # Check that the precious variables saved in the cache have kept the same
  2274. # value.
  2275. ac_cache_corrupted=false
  2276. for ac_var in $ac_precious_vars; do
  2277. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2278. eval ac_new_set=\$ac_env_${ac_var}_set
  2279. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2280. eval ac_new_val=\$ac_env_${ac_var}_value
  2281. case $ac_old_set,$ac_new_set in
  2282. set,)
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2284. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2285. ac_cache_corrupted=: ;;
  2286. ,set)
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2288. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2289. ac_cache_corrupted=: ;;
  2290. ,);;
  2291. *)
  2292. if test "x$ac_old_val" != "x$ac_new_val"; then
  2293. # differences in whitespace do not lead to failure.
  2294. ac_old_val_w=`echo x $ac_old_val`
  2295. ac_new_val_w=`echo x $ac_new_val`
  2296. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2298. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2299. ac_cache_corrupted=:
  2300. else
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2302. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2303. eval $ac_var=\$ac_old_val
  2304. fi
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2306. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2308. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2309. fi;;
  2310. esac
  2311. # Pass precious variables to config.status.
  2312. if test "$ac_new_set" = set; then
  2313. case $ac_new_val in
  2314. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2315. *) ac_arg=$ac_var=$ac_new_val ;;
  2316. esac
  2317. case " $ac_configure_args " in
  2318. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2319. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2320. esac
  2321. fi
  2322. done
  2323. if $ac_cache_corrupted; then
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2325. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2327. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2328. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2329. fi
  2330. ## -------------------- ##
  2331. ## Main body of script. ##
  2332. ## -------------------- ##
  2333. ac_ext=c
  2334. ac_cpp='$CPP $CPPFLAGS'
  2335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2338. am__api_version='1.13'
  2339. ac_aux_dir=
  2340. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2341. if test -f "$ac_dir/install-sh"; then
  2342. ac_aux_dir=$ac_dir
  2343. ac_install_sh="$ac_aux_dir/install-sh -c"
  2344. break
  2345. elif test -f "$ac_dir/install.sh"; then
  2346. ac_aux_dir=$ac_dir
  2347. ac_install_sh="$ac_aux_dir/install.sh -c"
  2348. break
  2349. elif test -f "$ac_dir/shtool"; then
  2350. ac_aux_dir=$ac_dir
  2351. ac_install_sh="$ac_aux_dir/shtool install -c"
  2352. break
  2353. fi
  2354. done
  2355. if test -z "$ac_aux_dir"; then
  2356. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2357. fi
  2358. # These three variables are undocumented and unsupported,
  2359. # and are intended to be withdrawn in a future Autoconf release.
  2360. # They can cause serious problems if a builder's source tree is in a directory
  2361. # whose full name contains unusual characters.
  2362. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2363. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2364. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2365. # Find a good install program. We prefer a C program (faster),
  2366. # so one script is as good as another. But avoid the broken or
  2367. # incompatible versions:
  2368. # SysV /etc/install, /usr/sbin/install
  2369. # SunOS /usr/etc/install
  2370. # IRIX /sbin/install
  2371. # AIX /bin/install
  2372. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2373. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2374. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2375. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2376. # OS/2's system install, which has a completely different semantic
  2377. # ./install, which can be erroneously created by make from ./install.sh.
  2378. # Reject install programs that cannot install multiple files.
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2380. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2381. if test -z "$INSTALL"; then
  2382. if ${ac_cv_path_install+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2386. for as_dir in $PATH
  2387. do
  2388. IFS=$as_save_IFS
  2389. test -z "$as_dir" && as_dir=.
  2390. # Account for people who put trailing slashes in PATH elements.
  2391. case $as_dir/ in #((
  2392. ./ | .// | /[cC]/* | \
  2393. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2394. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2395. /usr/ucb/* ) ;;
  2396. *)
  2397. # OSF1 and SCO ODT 3.0 have their own names for install.
  2398. # Don't use installbsd from OSF since it installs stuff as root
  2399. # by default.
  2400. for ac_prog in ginstall scoinst install; do
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2403. if test $ac_prog = install &&
  2404. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2405. # AIX install. It has an incompatible calling convention.
  2406. :
  2407. elif test $ac_prog = install &&
  2408. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2409. # program-specific install script used by HP pwplus--don't use.
  2410. :
  2411. else
  2412. rm -rf conftest.one conftest.two conftest.dir
  2413. echo one > conftest.one
  2414. echo two > conftest.two
  2415. mkdir conftest.dir
  2416. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2417. test -s conftest.one && test -s conftest.two &&
  2418. test -s conftest.dir/conftest.one &&
  2419. test -s conftest.dir/conftest.two
  2420. then
  2421. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2422. break 3
  2423. fi
  2424. fi
  2425. fi
  2426. done
  2427. done
  2428. ;;
  2429. esac
  2430. done
  2431. IFS=$as_save_IFS
  2432. rm -rf conftest.one conftest.two conftest.dir
  2433. fi
  2434. if test "${ac_cv_path_install+set}" = set; then
  2435. INSTALL=$ac_cv_path_install
  2436. else
  2437. # As a last resort, use the slow shell script. Don't cache a
  2438. # value for INSTALL within a source directory, because that will
  2439. # break other packages using the cache if that directory is
  2440. # removed, or if the value is a relative name.
  2441. INSTALL=$ac_install_sh
  2442. fi
  2443. fi
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2445. $as_echo "$INSTALL" >&6; }
  2446. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2447. # It thinks the first close brace ends the variable substitution.
  2448. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2449. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2450. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2452. $as_echo_n "checking whether build environment is sane... " >&6; }
  2453. # Reject unsafe characters in $srcdir or the absolute working directory
  2454. # name. Accept space and tab only in the latter.
  2455. am_lf='
  2456. '
  2457. case `pwd` in
  2458. *[\\\"\#\$\&\'\`$am_lf]*)
  2459. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2460. esac
  2461. case $srcdir in
  2462. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2463. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2464. esac
  2465. # Do 'set' in a subshell so we don't clobber the current shell's
  2466. # arguments. Must try -L first in case configure is actually a
  2467. # symlink; some systems play weird games with the mod time of symlinks
  2468. # (eg FreeBSD returns the mod time of the symlink's containing
  2469. # directory).
  2470. if (
  2471. am_has_slept=no
  2472. for am_try in 1 2; do
  2473. echo "timestamp, slept: $am_has_slept" > conftest.file
  2474. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2475. if test "$*" = "X"; then
  2476. # -L didn't work.
  2477. set X `ls -t "$srcdir/configure" conftest.file`
  2478. fi
  2479. if test "$*" != "X $srcdir/configure conftest.file" \
  2480. && test "$*" != "X conftest.file $srcdir/configure"; then
  2481. # If neither matched, then we have a broken ls. This can happen
  2482. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2483. # broken ls alias from the environment. This has actually
  2484. # happened. Such a system could not be considered "sane".
  2485. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2486. alias in your environment" "$LINENO" 5
  2487. fi
  2488. if test "$2" = conftest.file || test $am_try -eq 2; then
  2489. break
  2490. fi
  2491. # Just in case.
  2492. sleep 1
  2493. am_has_slept=yes
  2494. done
  2495. test "$2" = conftest.file
  2496. )
  2497. then
  2498. # Ok.
  2499. :
  2500. else
  2501. as_fn_error $? "newly created file is older than distributed files!
  2502. Check your system clock" "$LINENO" 5
  2503. fi
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2505. $as_echo "yes" >&6; }
  2506. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2507. # generated files are strictly newer.
  2508. am_sleep_pid=
  2509. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2510. ( sleep 1 ) &
  2511. am_sleep_pid=$!
  2512. fi
  2513. rm -f conftest.file
  2514. test "$program_prefix" != NONE &&
  2515. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2516. # Use a double $ so make ignores it.
  2517. test "$program_suffix" != NONE &&
  2518. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2519. # Double any \ or $.
  2520. # By default was `s,x,x', remove it if useless.
  2521. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2522. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2523. # expand $ac_aux_dir to an absolute path
  2524. am_aux_dir=`cd $ac_aux_dir && pwd`
  2525. if test x"${MISSING+set}" != xset; then
  2526. case $am_aux_dir in
  2527. *\ * | *\ *)
  2528. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2529. *)
  2530. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2531. esac
  2532. fi
  2533. # Use eval to expand $SHELL
  2534. if eval "$MISSING --is-lightweight"; then
  2535. am_missing_run="$MISSING "
  2536. else
  2537. am_missing_run=
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2539. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2540. fi
  2541. if test x"${install_sh}" != xset; then
  2542. case $am_aux_dir in
  2543. *\ * | *\ *)
  2544. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2545. *)
  2546. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2547. esac
  2548. fi
  2549. # Installed binaries are usually stripped using 'strip' when the user
  2550. # run "make install-strip". However 'strip' might not be the right
  2551. # tool to use in cross-compilation environments, therefore Automake
  2552. # will honor the 'STRIP' environment variable to overrule this program.
  2553. if test "$cross_compiling" != no; then
  2554. if test -n "$ac_tool_prefix"; then
  2555. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2556. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2558. $as_echo_n "checking for $ac_word... " >&6; }
  2559. if ${ac_cv_prog_STRIP+:} false; then :
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. if test -n "$STRIP"; then
  2563. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2564. else
  2565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2566. for as_dir in $PATH
  2567. do
  2568. IFS=$as_save_IFS
  2569. test -z "$as_dir" && as_dir=.
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2572. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2574. break 2
  2575. fi
  2576. done
  2577. done
  2578. IFS=$as_save_IFS
  2579. fi
  2580. fi
  2581. STRIP=$ac_cv_prog_STRIP
  2582. if test -n "$STRIP"; then
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2584. $as_echo "$STRIP" >&6; }
  2585. else
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2587. $as_echo "no" >&6; }
  2588. fi
  2589. fi
  2590. if test -z "$ac_cv_prog_STRIP"; then
  2591. ac_ct_STRIP=$STRIP
  2592. # Extract the first word of "strip", so it can be a program name with args.
  2593. set dummy strip; ac_word=$2
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. $as_echo_n "checking for $ac_word... " >&6; }
  2596. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$ac_ct_STRIP"; then
  2600. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. test -z "$as_dir" && as_dir=.
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2609. ac_cv_prog_ac_ct_STRIP="strip"
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. break 2
  2612. fi
  2613. done
  2614. done
  2615. IFS=$as_save_IFS
  2616. fi
  2617. fi
  2618. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2619. if test -n "$ac_ct_STRIP"; then
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2621. $as_echo "$ac_ct_STRIP" >&6; }
  2622. else
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. $as_echo "no" >&6; }
  2625. fi
  2626. if test "x$ac_ct_STRIP" = x; then
  2627. STRIP=":"
  2628. else
  2629. case $cross_compiling:$ac_tool_warned in
  2630. yes:)
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2633. ac_tool_warned=yes ;;
  2634. esac
  2635. STRIP=$ac_ct_STRIP
  2636. fi
  2637. else
  2638. STRIP="$ac_cv_prog_STRIP"
  2639. fi
  2640. fi
  2641. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2643. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2644. if test -z "$MKDIR_P"; then
  2645. if ${ac_cv_path_mkdir+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_prog in mkdir gmkdir; do
  2654. for ac_exec_ext in '' $ac_executable_extensions; do
  2655. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2656. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2657. 'mkdir (GNU coreutils) '* | \
  2658. 'mkdir (coreutils) '* | \
  2659. 'mkdir (fileutils) '4.1*)
  2660. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2661. break 3;;
  2662. esac
  2663. done
  2664. done
  2665. done
  2666. IFS=$as_save_IFS
  2667. fi
  2668. test -d ./--version && rmdir ./--version
  2669. if test "${ac_cv_path_mkdir+set}" = set; then
  2670. MKDIR_P="$ac_cv_path_mkdir -p"
  2671. else
  2672. # As a last resort, use the slow shell script. Don't cache a
  2673. # value for MKDIR_P within a source directory, because that will
  2674. # break other packages using the cache if that directory is
  2675. # removed, or if the value is a relative name.
  2676. MKDIR_P="$ac_install_sh -d"
  2677. fi
  2678. fi
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2680. $as_echo "$MKDIR_P" >&6; }
  2681. for ac_prog in gawk mawk nawk awk
  2682. do
  2683. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2684. set dummy $ac_prog; ac_word=$2
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2686. $as_echo_n "checking for $ac_word... " >&6; }
  2687. if ${ac_cv_prog_AWK+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. if test -n "$AWK"; then
  2691. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2692. else
  2693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2694. for as_dir in $PATH
  2695. do
  2696. IFS=$as_save_IFS
  2697. test -z "$as_dir" && as_dir=.
  2698. for ac_exec_ext in '' $ac_executable_extensions; do
  2699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2700. ac_cv_prog_AWK="$ac_prog"
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. fi
  2708. fi
  2709. AWK=$ac_cv_prog_AWK
  2710. if test -n "$AWK"; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2712. $as_echo "$AWK" >&6; }
  2713. else
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2715. $as_echo "no" >&6; }
  2716. fi
  2717. test -n "$AWK" && break
  2718. done
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2720. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2721. set x ${MAKE-make}
  2722. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2723. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. cat >conftest.make <<\_ACEOF
  2727. SHELL = /bin/sh
  2728. all:
  2729. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2730. _ACEOF
  2731. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2732. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2733. *@@@%%%=?*=@@@%%%*)
  2734. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2735. *)
  2736. eval ac_cv_prog_make_${ac_make}_set=no;;
  2737. esac
  2738. rm -f conftest.make
  2739. fi
  2740. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2742. $as_echo "yes" >&6; }
  2743. SET_MAKE=
  2744. else
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. SET_MAKE="MAKE=${MAKE-make}"
  2748. fi
  2749. rm -rf .tst 2>/dev/null
  2750. mkdir .tst 2>/dev/null
  2751. if test -d .tst; then
  2752. am__leading_dot=.
  2753. else
  2754. am__leading_dot=_
  2755. fi
  2756. rmdir .tst 2>/dev/null
  2757. # Check whether --enable-silent-rules was given.
  2758. if test "${enable_silent_rules+set}" = set; then :
  2759. enableval=$enable_silent_rules;
  2760. fi
  2761. case $enable_silent_rules in # (((
  2762. yes) AM_DEFAULT_VERBOSITY=0;;
  2763. no) AM_DEFAULT_VERBOSITY=1;;
  2764. *) AM_DEFAULT_VERBOSITY=1;;
  2765. esac
  2766. am_make=${MAKE-make}
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2768. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2769. if ${am_cv_make_support_nested_variables+:} false; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if $as_echo 'TRUE=$(BAR$(V))
  2773. BAR0=false
  2774. BAR1=true
  2775. V=1
  2776. am__doit:
  2777. @$(TRUE)
  2778. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2779. am_cv_make_support_nested_variables=yes
  2780. else
  2781. am_cv_make_support_nested_variables=no
  2782. fi
  2783. fi
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2785. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2786. if test $am_cv_make_support_nested_variables = yes; then
  2787. AM_V='$(V)'
  2788. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2789. else
  2790. AM_V=$AM_DEFAULT_VERBOSITY
  2791. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2792. fi
  2793. AM_BACKSLASH='\'
  2794. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2795. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2796. # is not polluted with repeated "-I."
  2797. am__isrc=' -I$(srcdir)'
  2798. # test to see if srcdir already configured
  2799. if test -f $srcdir/config.status; then
  2800. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2801. fi
  2802. fi
  2803. # test whether we have cygpath
  2804. if test -z "$CYGPATH_W"; then
  2805. if (cygpath --version) >/dev/null 2>/dev/null; then
  2806. CYGPATH_W='cygpath -w'
  2807. else
  2808. CYGPATH_W=echo
  2809. fi
  2810. fi
  2811. # Define the identity of the package.
  2812. PACKAGE='libimobiledevice'
  2813. VERSION='1.2.0'
  2814. cat >>confdefs.h <<_ACEOF
  2815. #define PACKAGE "$PACKAGE"
  2816. _ACEOF
  2817. cat >>confdefs.h <<_ACEOF
  2818. #define VERSION "$VERSION"
  2819. _ACEOF
  2820. # Some tools Automake needs.
  2821. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2822. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2823. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2824. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2825. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2826. # For better backward compatibility. To be removed once Automake 1.9.x
  2827. # dies out for good. For more background, see:
  2828. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2829. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2830. mkdir_p='$(MKDIR_P)'
  2831. # We need awk for the "check" target. The system "awk" is bad on
  2832. # some platforms.
  2833. # Always define AMTAR for backward compatibility. Yes, it's still used
  2834. # in the wild :-( We should find a proper way to deprecate it ...
  2835. AMTAR='$${TAR-tar}'
  2836. # We'll loop over all known methods to create a tar archive until one works.
  2837. _am_tools='gnutar pax cpio none'
  2838. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2839. # Check whether --enable-silent-rules was given.
  2840. if test "${enable_silent_rules+set}" = set; then :
  2841. enableval=$enable_silent_rules;
  2842. fi
  2843. case $enable_silent_rules in # (((
  2844. yes) AM_DEFAULT_VERBOSITY=0;;
  2845. no) AM_DEFAULT_VERBOSITY=1;;
  2846. *) AM_DEFAULT_VERBOSITY=1;;
  2847. esac
  2848. am_make=${MAKE-make}
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2850. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2851. if ${am_cv_make_support_nested_variables+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. if $as_echo 'TRUE=$(BAR$(V))
  2855. BAR0=false
  2856. BAR1=true
  2857. V=1
  2858. am__doit:
  2859. @$(TRUE)
  2860. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2861. am_cv_make_support_nested_variables=yes
  2862. else
  2863. am_cv_make_support_nested_variables=no
  2864. fi
  2865. fi
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2867. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2868. if test $am_cv_make_support_nested_variables = yes; then
  2869. AM_V='$(V)'
  2870. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2871. else
  2872. AM_V=$AM_DEFAULT_VERBOSITY
  2873. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2874. fi
  2875. AM_BACKSLASH='\'
  2876. ac_config_headers="$ac_config_headers config.h"
  2877. # +1 : 0 : +1 == adds new functions to the interface
  2878. # +1 : 0 : 0 == changes or removes functions (changes include both
  2879. # changes to the signature and the semantic)
  2880. # ? :+1 : ? == just internal changes
  2881. # CURRENT : REVISION : AGE
  2882. LIBIMOBILEDEVICE_SO_VERSION=6:0:0
  2883. LIBUSBMUXD_VERSION=1.0.9
  2884. LIBPLIST_VERSION=1.11
  2885. LIBPLISTMM_VERSION=1.11
  2886. # Checks for programs.
  2887. ac_ext=c
  2888. ac_cpp='$CPP $CPPFLAGS'
  2889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2892. if test -n "$ac_tool_prefix"; then
  2893. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2894. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2896. $as_echo_n "checking for $ac_word... " >&6; }
  2897. if ${ac_cv_prog_CC+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. if test -n "$CC"; then
  2901. ac_cv_prog_CC="$CC" # Let the user override the test.
  2902. else
  2903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2904. for as_dir in $PATH
  2905. do
  2906. IFS=$as_save_IFS
  2907. test -z "$as_dir" && as_dir=.
  2908. for ac_exec_ext in '' $ac_executable_extensions; do
  2909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2910. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2912. break 2
  2913. fi
  2914. done
  2915. done
  2916. IFS=$as_save_IFS
  2917. fi
  2918. fi
  2919. CC=$ac_cv_prog_CC
  2920. if test -n "$CC"; then
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2922. $as_echo "$CC" >&6; }
  2923. else
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2925. $as_echo "no" >&6; }
  2926. fi
  2927. fi
  2928. if test -z "$ac_cv_prog_CC"; then
  2929. ac_ct_CC=$CC
  2930. # Extract the first word of "gcc", so it can be a program name with args.
  2931. set dummy gcc; ac_word=$2
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2933. $as_echo_n "checking for $ac_word... " >&6; }
  2934. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. if test -n "$ac_ct_CC"; then
  2938. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2939. else
  2940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2941. for as_dir in $PATH
  2942. do
  2943. IFS=$as_save_IFS
  2944. test -z "$as_dir" && as_dir=.
  2945. for ac_exec_ext in '' $ac_executable_extensions; do
  2946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2947. ac_cv_prog_ac_ct_CC="gcc"
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2949. break 2
  2950. fi
  2951. done
  2952. done
  2953. IFS=$as_save_IFS
  2954. fi
  2955. fi
  2956. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2957. if test -n "$ac_ct_CC"; then
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2959. $as_echo "$ac_ct_CC" >&6; }
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. $as_echo "no" >&6; }
  2963. fi
  2964. if test "x$ac_ct_CC" = x; then
  2965. CC=""
  2966. else
  2967. case $cross_compiling:$ac_tool_warned in
  2968. yes:)
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2970. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2971. ac_tool_warned=yes ;;
  2972. esac
  2973. CC=$ac_ct_CC
  2974. fi
  2975. else
  2976. CC="$ac_cv_prog_CC"
  2977. fi
  2978. if test -z "$CC"; then
  2979. if test -n "$ac_tool_prefix"; then
  2980. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2981. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2983. $as_echo_n "checking for $ac_word... " >&6; }
  2984. if ${ac_cv_prog_CC+:} false; then :
  2985. $as_echo_n "(cached) " >&6
  2986. else
  2987. if test -n "$CC"; then
  2988. ac_cv_prog_CC="$CC" # Let the user override the test.
  2989. else
  2990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2991. for as_dir in $PATH
  2992. do
  2993. IFS=$as_save_IFS
  2994. test -z "$as_dir" && as_dir=.
  2995. for ac_exec_ext in '' $ac_executable_extensions; do
  2996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2997. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2999. break 2
  3000. fi
  3001. done
  3002. done
  3003. IFS=$as_save_IFS
  3004. fi
  3005. fi
  3006. CC=$ac_cv_prog_CC
  3007. if test -n "$CC"; then
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3009. $as_echo "$CC" >&6; }
  3010. else
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3012. $as_echo "no" >&6; }
  3013. fi
  3014. fi
  3015. fi
  3016. if test -z "$CC"; then
  3017. # Extract the first word of "cc", so it can be a program name with args.
  3018. set dummy cc; ac_word=$2
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3020. $as_echo_n "checking for $ac_word... " >&6; }
  3021. if ${ac_cv_prog_CC+:} false; then :
  3022. $as_echo_n "(cached) " >&6
  3023. else
  3024. if test -n "$CC"; then
  3025. ac_cv_prog_CC="$CC" # Let the user override the test.
  3026. else
  3027. ac_prog_rejected=no
  3028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3029. for as_dir in $PATH
  3030. do
  3031. IFS=$as_save_IFS
  3032. test -z "$as_dir" && as_dir=.
  3033. for ac_exec_ext in '' $ac_executable_extensions; do
  3034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3035. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3036. ac_prog_rejected=yes
  3037. continue
  3038. fi
  3039. ac_cv_prog_CC="cc"
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3041. break 2
  3042. fi
  3043. done
  3044. done
  3045. IFS=$as_save_IFS
  3046. if test $ac_prog_rejected = yes; then
  3047. # We found a bogon in the path, so make sure we never use it.
  3048. set dummy $ac_cv_prog_CC
  3049. shift
  3050. if test $# != 0; then
  3051. # We chose a different compiler from the bogus one.
  3052. # However, it has the same basename, so the bogon will be chosen
  3053. # first if we set CC to just the basename; use the full file name.
  3054. shift
  3055. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3056. fi
  3057. fi
  3058. fi
  3059. fi
  3060. CC=$ac_cv_prog_CC
  3061. if test -n "$CC"; then
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3063. $as_echo "$CC" >&6; }
  3064. else
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3066. $as_echo "no" >&6; }
  3067. fi
  3068. fi
  3069. if test -z "$CC"; then
  3070. if test -n "$ac_tool_prefix"; then
  3071. for ac_prog in cl.exe
  3072. do
  3073. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3074. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3076. $as_echo_n "checking for $ac_word... " >&6; }
  3077. if ${ac_cv_prog_CC+:} false; then :
  3078. $as_echo_n "(cached) " >&6
  3079. else
  3080. if test -n "$CC"; then
  3081. ac_cv_prog_CC="$CC" # Let the user override the test.
  3082. else
  3083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3084. for as_dir in $PATH
  3085. do
  3086. IFS=$as_save_IFS
  3087. test -z "$as_dir" && as_dir=.
  3088. for ac_exec_ext in '' $ac_executable_extensions; do
  3089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3090. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3092. break 2
  3093. fi
  3094. done
  3095. done
  3096. IFS=$as_save_IFS
  3097. fi
  3098. fi
  3099. CC=$ac_cv_prog_CC
  3100. if test -n "$CC"; then
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3102. $as_echo "$CC" >&6; }
  3103. else
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3105. $as_echo "no" >&6; }
  3106. fi
  3107. test -n "$CC" && break
  3108. done
  3109. fi
  3110. if test -z "$CC"; then
  3111. ac_ct_CC=$CC
  3112. for ac_prog in cl.exe
  3113. do
  3114. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3115. set dummy $ac_prog; ac_word=$2
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3117. $as_echo_n "checking for $ac_word... " >&6; }
  3118. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3119. $as_echo_n "(cached) " >&6
  3120. else
  3121. if test -n "$ac_ct_CC"; then
  3122. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3123. else
  3124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3125. for as_dir in $PATH
  3126. do
  3127. IFS=$as_save_IFS
  3128. test -z "$as_dir" && as_dir=.
  3129. for ac_exec_ext in '' $ac_executable_extensions; do
  3130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3131. ac_cv_prog_ac_ct_CC="$ac_prog"
  3132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3133. break 2
  3134. fi
  3135. done
  3136. done
  3137. IFS=$as_save_IFS
  3138. fi
  3139. fi
  3140. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3141. if test -n "$ac_ct_CC"; then
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3143. $as_echo "$ac_ct_CC" >&6; }
  3144. else
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3146. $as_echo "no" >&6; }
  3147. fi
  3148. test -n "$ac_ct_CC" && break
  3149. done
  3150. if test "x$ac_ct_CC" = x; then
  3151. CC=""
  3152. else
  3153. case $cross_compiling:$ac_tool_warned in
  3154. yes:)
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3157. ac_tool_warned=yes ;;
  3158. esac
  3159. CC=$ac_ct_CC
  3160. fi
  3161. fi
  3162. fi
  3163. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3165. as_fn_error $? "no acceptable C compiler found in \$PATH
  3166. See \`config.log' for more details" "$LINENO" 5; }
  3167. # Provide some information about the compiler.
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3169. set X $ac_compile
  3170. ac_compiler=$2
  3171. for ac_option in --version -v -V -qversion; do
  3172. { { ac_try="$ac_compiler $ac_option >&5"
  3173. case "(($ac_try" in
  3174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3175. *) ac_try_echo=$ac_try;;
  3176. esac
  3177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3178. $as_echo "$ac_try_echo"; } >&5
  3179. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3180. ac_status=$?
  3181. if test -s conftest.err; then
  3182. sed '10a\
  3183. ... rest of stderr output deleted ...
  3184. 10q' conftest.err >conftest.er1
  3185. cat conftest.er1 >&5
  3186. fi
  3187. rm -f conftest.er1 conftest.err
  3188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3189. test $ac_status = 0; }
  3190. done
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. ac_clean_files_save=$ac_clean_files
  3201. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3202. # Try to create an executable without -o first, disregard a.out.
  3203. # It will help us diagnose broken compilers, and finding out an intuition
  3204. # of exeext.
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3206. $as_echo_n "checking whether the C compiler works... " >&6; }
  3207. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3208. # The possible output files:
  3209. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3210. ac_rmfiles=
  3211. for ac_file in $ac_files
  3212. do
  3213. case $ac_file in
  3214. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3215. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3216. esac
  3217. done
  3218. rm -f $ac_rmfiles
  3219. if { { ac_try="$ac_link_default"
  3220. case "(($ac_try" in
  3221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3222. *) ac_try_echo=$ac_try;;
  3223. esac
  3224. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3225. $as_echo "$ac_try_echo"; } >&5
  3226. (eval "$ac_link_default") 2>&5
  3227. ac_status=$?
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3229. test $ac_status = 0; }; then :
  3230. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3231. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3232. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3233. # so that the user can short-circuit this test for compilers unknown to
  3234. # Autoconf.
  3235. for ac_file in $ac_files ''
  3236. do
  3237. test -f "$ac_file" || continue
  3238. case $ac_file in
  3239. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3240. ;;
  3241. [ab].out )
  3242. # We found the default executable, but exeext='' is most
  3243. # certainly right.
  3244. break;;
  3245. *.* )
  3246. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3247. then :; else
  3248. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3249. fi
  3250. # We set ac_cv_exeext here because the later test for it is not
  3251. # safe: cross compilers may not add the suffix if given an `-o'
  3252. # argument, so we may need to know it at that point already.
  3253. # Even if this section looks crufty: it has the advantage of
  3254. # actually working.
  3255. break;;
  3256. * )
  3257. break;;
  3258. esac
  3259. done
  3260. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3261. else
  3262. ac_file=''
  3263. fi
  3264. if test -z "$ac_file"; then :
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3266. $as_echo "no" >&6; }
  3267. $as_echo "$as_me: failed program was:" >&5
  3268. sed 's/^/| /' conftest.$ac_ext >&5
  3269. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3271. as_fn_error 77 "C compiler cannot create executables
  3272. See \`config.log' for more details" "$LINENO" 5; }
  3273. else
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3275. $as_echo "yes" >&6; }
  3276. fi
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3278. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3280. $as_echo "$ac_file" >&6; }
  3281. ac_exeext=$ac_cv_exeext
  3282. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3283. ac_clean_files=$ac_clean_files_save
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3285. $as_echo_n "checking for suffix of executables... " >&6; }
  3286. if { { ac_try="$ac_link"
  3287. case "(($ac_try" in
  3288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3289. *) ac_try_echo=$ac_try;;
  3290. esac
  3291. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3292. $as_echo "$ac_try_echo"; } >&5
  3293. (eval "$ac_link") 2>&5
  3294. ac_status=$?
  3295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3296. test $ac_status = 0; }; then :
  3297. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3298. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3299. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3300. # `rm'.
  3301. for ac_file in conftest.exe conftest conftest.*; do
  3302. test -f "$ac_file" || continue
  3303. case $ac_file in
  3304. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3305. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3306. break;;
  3307. * ) break;;
  3308. esac
  3309. done
  3310. else
  3311. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3312. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3313. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3314. See \`config.log' for more details" "$LINENO" 5; }
  3315. fi
  3316. rm -f conftest conftest$ac_cv_exeext
  3317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3318. $as_echo "$ac_cv_exeext" >&6; }
  3319. rm -f conftest.$ac_ext
  3320. EXEEXT=$ac_cv_exeext
  3321. ac_exeext=$EXEEXT
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. #include <stdio.h>
  3325. int
  3326. main ()
  3327. {
  3328. FILE *f = fopen ("conftest.out", "w");
  3329. return ferror (f) || fclose (f) != 0;
  3330. ;
  3331. return 0;
  3332. }
  3333. _ACEOF
  3334. ac_clean_files="$ac_clean_files conftest.out"
  3335. # Check that the compiler produces executables we can run. If not, either
  3336. # the compiler is broken, or we cross compile.
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3338. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3339. if test "$cross_compiling" != yes; then
  3340. { { ac_try="$ac_link"
  3341. case "(($ac_try" in
  3342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3343. *) ac_try_echo=$ac_try;;
  3344. esac
  3345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3346. $as_echo "$ac_try_echo"; } >&5
  3347. (eval "$ac_link") 2>&5
  3348. ac_status=$?
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3350. test $ac_status = 0; }
  3351. if { ac_try='./conftest$ac_cv_exeext'
  3352. { { case "(($ac_try" in
  3353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3354. *) ac_try_echo=$ac_try;;
  3355. esac
  3356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3357. $as_echo "$ac_try_echo"; } >&5
  3358. (eval "$ac_try") 2>&5
  3359. ac_status=$?
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3361. test $ac_status = 0; }; }; then
  3362. cross_compiling=no
  3363. else
  3364. if test "$cross_compiling" = maybe; then
  3365. cross_compiling=yes
  3366. else
  3367. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3369. as_fn_error $? "cannot run C compiled programs.
  3370. If you meant to cross compile, use \`--host'.
  3371. See \`config.log' for more details" "$LINENO" 5; }
  3372. fi
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3376. $as_echo "$cross_compiling" >&6; }
  3377. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3378. ac_clean_files=$ac_clean_files_save
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3380. $as_echo_n "checking for suffix of object files... " >&6; }
  3381. if ${ac_cv_objext+:} false; then :
  3382. $as_echo_n "(cached) " >&6
  3383. else
  3384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3385. /* end confdefs.h. */
  3386. int
  3387. main ()
  3388. {
  3389. ;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. rm -f conftest.o conftest.obj
  3394. if { { ac_try="$ac_compile"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3400. $as_echo "$ac_try_echo"; } >&5
  3401. (eval "$ac_compile") 2>&5
  3402. ac_status=$?
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3404. test $ac_status = 0; }; then :
  3405. for ac_file in conftest.o conftest.obj conftest.*; do
  3406. test -f "$ac_file" || continue;
  3407. case $ac_file in
  3408. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3409. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3410. break;;
  3411. esac
  3412. done
  3413. else
  3414. $as_echo "$as_me: failed program was:" >&5
  3415. sed 's/^/| /' conftest.$ac_ext >&5
  3416. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3417. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3418. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3419. See \`config.log' for more details" "$LINENO" 5; }
  3420. fi
  3421. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3422. fi
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3424. $as_echo "$ac_cv_objext" >&6; }
  3425. OBJEXT=$ac_cv_objext
  3426. ac_objext=$OBJEXT
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3428. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3429. if ${ac_cv_c_compiler_gnu+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3433. /* end confdefs.h. */
  3434. int
  3435. main ()
  3436. {
  3437. #ifndef __GNUC__
  3438. choke me
  3439. #endif
  3440. ;
  3441. return 0;
  3442. }
  3443. _ACEOF
  3444. if ac_fn_c_try_compile "$LINENO"; then :
  3445. ac_compiler_gnu=yes
  3446. else
  3447. ac_compiler_gnu=no
  3448. fi
  3449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3450. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3451. fi
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3453. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3454. if test $ac_compiler_gnu = yes; then
  3455. GCC=yes
  3456. else
  3457. GCC=
  3458. fi
  3459. ac_test_CFLAGS=${CFLAGS+set}
  3460. ac_save_CFLAGS=$CFLAGS
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3462. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3463. if ${ac_cv_prog_cc_g+:} false; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. ac_save_c_werror_flag=$ac_c_werror_flag
  3467. ac_c_werror_flag=yes
  3468. ac_cv_prog_cc_g=no
  3469. CFLAGS="-g"
  3470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3471. /* end confdefs.h. */
  3472. int
  3473. main ()
  3474. {
  3475. ;
  3476. return 0;
  3477. }
  3478. _ACEOF
  3479. if ac_fn_c_try_compile "$LINENO"; then :
  3480. ac_cv_prog_cc_g=yes
  3481. else
  3482. CFLAGS=""
  3483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3484. /* end confdefs.h. */
  3485. int
  3486. main ()
  3487. {
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. if ac_fn_c_try_compile "$LINENO"; then :
  3493. else
  3494. ac_c_werror_flag=$ac_save_c_werror_flag
  3495. CFLAGS="-g"
  3496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3497. /* end confdefs.h. */
  3498. int
  3499. main ()
  3500. {
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. if ac_fn_c_try_compile "$LINENO"; then :
  3506. ac_cv_prog_cc_g=yes
  3507. fi
  3508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3509. fi
  3510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3511. fi
  3512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3513. ac_c_werror_flag=$ac_save_c_werror_flag
  3514. fi
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3516. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3517. if test "$ac_test_CFLAGS" = set; then
  3518. CFLAGS=$ac_save_CFLAGS
  3519. elif test $ac_cv_prog_cc_g = yes; then
  3520. if test "$GCC" = yes; then
  3521. CFLAGS="-g -O2"
  3522. else
  3523. CFLAGS="-g"
  3524. fi
  3525. else
  3526. if test "$GCC" = yes; then
  3527. CFLAGS="-O2"
  3528. else
  3529. CFLAGS=
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3533. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3534. if ${ac_cv_prog_cc_c89+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. ac_cv_prog_cc_c89=no
  3538. ac_save_CC=$CC
  3539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3540. /* end confdefs.h. */
  3541. #include <stdarg.h>
  3542. #include <stdio.h>
  3543. struct stat;
  3544. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3545. struct buf { int x; };
  3546. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3547. static char *e (p, i)
  3548. char **p;
  3549. int i;
  3550. {
  3551. return p[i];
  3552. }
  3553. static char *f (char * (*g) (char **, int), char **p, ...)
  3554. {
  3555. char *s;
  3556. va_list v;
  3557. va_start (v,p);
  3558. s = g (p, va_arg (v,int));
  3559. va_end (v);
  3560. return s;
  3561. }
  3562. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3563. function prototypes and stuff, but not '\xHH' hex character constants.
  3564. These don't provoke an error unfortunately, instead are silently treated
  3565. as 'x'. The following induces an error, until -std is added to get
  3566. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3567. array size at least. It's necessary to write '\x00'==0 to get something
  3568. that's true only with -std. */
  3569. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3570. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3571. inside strings and character constants. */
  3572. #define FOO(x) 'x'
  3573. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3574. int test (int i, double x);
  3575. struct s1 {int (*f) (int a);};
  3576. struct s2 {int (*f) (double a);};
  3577. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3578. int argc;
  3579. char **argv;
  3580. int
  3581. main ()
  3582. {
  3583. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3584. ;
  3585. return 0;
  3586. }
  3587. _ACEOF
  3588. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3589. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3590. do
  3591. CC="$ac_save_CC $ac_arg"
  3592. if ac_fn_c_try_compile "$LINENO"; then :
  3593. ac_cv_prog_cc_c89=$ac_arg
  3594. fi
  3595. rm -f core conftest.err conftest.$ac_objext
  3596. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3597. done
  3598. rm -f conftest.$ac_ext
  3599. CC=$ac_save_CC
  3600. fi
  3601. # AC_CACHE_VAL
  3602. case "x$ac_cv_prog_cc_c89" in
  3603. x)
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3605. $as_echo "none needed" >&6; } ;;
  3606. xno)
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3608. $as_echo "unsupported" >&6; } ;;
  3609. *)
  3610. CC="$CC $ac_cv_prog_cc_c89"
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3612. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3613. esac
  3614. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3615. fi
  3616. ac_ext=c
  3617. ac_cpp='$CPP $CPPFLAGS'
  3618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3621. DEPDIR="${am__leading_dot}deps"
  3622. ac_config_commands="$ac_config_commands depfiles"
  3623. am_make=${MAKE-make}
  3624. cat > confinc << 'END'
  3625. am__doit:
  3626. @echo this is the am__doit target
  3627. .PHONY: am__doit
  3628. END
  3629. # If we don't find an include directive, just comment out the code.
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3631. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3632. am__include="#"
  3633. am__quote=
  3634. _am_result=none
  3635. # First try GNU make style include.
  3636. echo "include confinc" > confmf
  3637. # Ignore all kinds of additional output from 'make'.
  3638. case `$am_make -s -f confmf 2> /dev/null` in #(
  3639. *the\ am__doit\ target*)
  3640. am__include=include
  3641. am__quote=
  3642. _am_result=GNU
  3643. ;;
  3644. esac
  3645. # Now try BSD make style include.
  3646. if test "$am__include" = "#"; then
  3647. echo '.include "confinc"' > confmf
  3648. case `$am_make -s -f confmf 2> /dev/null` in #(
  3649. *the\ am__doit\ target*)
  3650. am__include=.include
  3651. am__quote="\""
  3652. _am_result=BSD
  3653. ;;
  3654. esac
  3655. fi
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3657. $as_echo "$_am_result" >&6; }
  3658. rm -f confinc confmf
  3659. # Check whether --enable-dependency-tracking was given.
  3660. if test "${enable_dependency_tracking+set}" = set; then :
  3661. enableval=$enable_dependency_tracking;
  3662. fi
  3663. if test "x$enable_dependency_tracking" != xno; then
  3664. am_depcomp="$ac_aux_dir/depcomp"
  3665. AMDEPBACKSLASH='\'
  3666. am__nodep='_no'
  3667. fi
  3668. if test "x$enable_dependency_tracking" != xno; then
  3669. AMDEP_TRUE=
  3670. AMDEP_FALSE='#'
  3671. else
  3672. AMDEP_TRUE='#'
  3673. AMDEP_FALSE=
  3674. fi
  3675. depcc="$CC" am_compiler_list=
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3677. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3678. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3679. $as_echo_n "(cached) " >&6
  3680. else
  3681. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3682. # We make a subdir and do the tests there. Otherwise we can end up
  3683. # making bogus files that we don't know about and never remove. For
  3684. # instance it was reported that on HP-UX the gcc test will end up
  3685. # making a dummy file named 'D' -- because '-MD' means "put the output
  3686. # in D".
  3687. rm -rf conftest.dir
  3688. mkdir conftest.dir
  3689. # Copy depcomp to subdir because otherwise we won't find it if we're
  3690. # using a relative directory.
  3691. cp "$am_depcomp" conftest.dir
  3692. cd conftest.dir
  3693. # We will build objects and dependencies in a subdirectory because
  3694. # it helps to detect inapplicable dependency modes. For instance
  3695. # both Tru64's cc and ICC support -MD to output dependencies as a
  3696. # side effect of compilation, but ICC will put the dependencies in
  3697. # the current directory while Tru64 will put them in the object
  3698. # directory.
  3699. mkdir sub
  3700. am_cv_CC_dependencies_compiler_type=none
  3701. if test "$am_compiler_list" = ""; then
  3702. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3703. fi
  3704. am__universal=false
  3705. case " $depcc " in #(
  3706. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3707. esac
  3708. for depmode in $am_compiler_list; do
  3709. # Setup a source with many dependencies, because some compilers
  3710. # like to wrap large dependency lists on column 80 (with \), and
  3711. # we should not choose a depcomp mode which is confused by this.
  3712. #
  3713. # We need to recreate these files for each test, as the compiler may
  3714. # overwrite some of them when testing with obscure command lines.
  3715. # This happens at least with the AIX C compiler.
  3716. : > sub/conftest.c
  3717. for i in 1 2 3 4 5 6; do
  3718. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3719. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3720. # Solaris 10 /bin/sh.
  3721. echo '/* dummy */' > sub/conftst$i.h
  3722. done
  3723. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3724. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3725. # mode. It turns out that the SunPro C++ compiler does not properly
  3726. # handle '-M -o', and we need to detect this. Also, some Intel
  3727. # versions had trouble with output in subdirs.
  3728. am__obj=sub/conftest.${OBJEXT-o}
  3729. am__minus_obj="-o $am__obj"
  3730. case $depmode in
  3731. gcc)
  3732. # This depmode causes a compiler race in universal mode.
  3733. test "$am__universal" = false || continue
  3734. ;;
  3735. nosideeffect)
  3736. # After this tag, mechanisms are not by side-effect, so they'll
  3737. # only be used when explicitly requested.
  3738. if test "x$enable_dependency_tracking" = xyes; then
  3739. continue
  3740. else
  3741. break
  3742. fi
  3743. ;;
  3744. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3745. # This compiler won't grok '-c -o', but also, the minuso test has
  3746. # not run yet. These depmodes are late enough in the game, and
  3747. # so weak that their functioning should not be impacted.
  3748. am__obj=conftest.${OBJEXT-o}
  3749. am__minus_obj=
  3750. ;;
  3751. none) break ;;
  3752. esac
  3753. if depmode=$depmode \
  3754. source=sub/conftest.c object=$am__obj \
  3755. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3756. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3757. >/dev/null 2>conftest.err &&
  3758. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3759. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3760. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3761. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3762. # icc doesn't choke on unknown options, it will just issue warnings
  3763. # or remarks (even with -Werror). So we grep stderr for any message
  3764. # that says an option was ignored or not supported.
  3765. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3766. # icc: Command line warning: ignoring option '-M'; no argument required
  3767. # The diagnosis changed in icc 8.0:
  3768. # icc: Command line remark: option '-MP' not supported
  3769. if (grep 'ignoring option' conftest.err ||
  3770. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3771. am_cv_CC_dependencies_compiler_type=$depmode
  3772. break
  3773. fi
  3774. fi
  3775. done
  3776. cd ..
  3777. rm -rf conftest.dir
  3778. else
  3779. am_cv_CC_dependencies_compiler_type=none
  3780. fi
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3783. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3784. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3785. if
  3786. test "x$enable_dependency_tracking" != xno \
  3787. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3788. am__fastdepCC_TRUE=
  3789. am__fastdepCC_FALSE='#'
  3790. else
  3791. am__fastdepCC_TRUE='#'
  3792. am__fastdepCC_FALSE=
  3793. fi
  3794. ac_ext=cpp
  3795. ac_cpp='$CXXCPP $CPPFLAGS'
  3796. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3797. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3798. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3799. if test -z "$CXX"; then
  3800. if test -n "$CCC"; then
  3801. CXX=$CCC
  3802. else
  3803. if test -n "$ac_tool_prefix"; then
  3804. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3805. do
  3806. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3807. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3809. $as_echo_n "checking for $ac_word... " >&6; }
  3810. if ${ac_cv_prog_CXX+:} false; then :
  3811. $as_echo_n "(cached) " >&6
  3812. else
  3813. if test -n "$CXX"; then
  3814. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3815. else
  3816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3817. for as_dir in $PATH
  3818. do
  3819. IFS=$as_save_IFS
  3820. test -z "$as_dir" && as_dir=.
  3821. for ac_exec_ext in '' $ac_executable_extensions; do
  3822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3823. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3825. break 2
  3826. fi
  3827. done
  3828. done
  3829. IFS=$as_save_IFS
  3830. fi
  3831. fi
  3832. CXX=$ac_cv_prog_CXX
  3833. if test -n "$CXX"; then
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3835. $as_echo "$CXX" >&6; }
  3836. else
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3838. $as_echo "no" >&6; }
  3839. fi
  3840. test -n "$CXX" && break
  3841. done
  3842. fi
  3843. if test -z "$CXX"; then
  3844. ac_ct_CXX=$CXX
  3845. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3846. do
  3847. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3848. set dummy $ac_prog; ac_word=$2
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3850. $as_echo_n "checking for $ac_word... " >&6; }
  3851. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. if test -n "$ac_ct_CXX"; then
  3855. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3856. else
  3857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3858. for as_dir in $PATH
  3859. do
  3860. IFS=$as_save_IFS
  3861. test -z "$as_dir" && as_dir=.
  3862. for ac_exec_ext in '' $ac_executable_extensions; do
  3863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3864. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3866. break 2
  3867. fi
  3868. done
  3869. done
  3870. IFS=$as_save_IFS
  3871. fi
  3872. fi
  3873. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3874. if test -n "$ac_ct_CXX"; then
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3876. $as_echo "$ac_ct_CXX" >&6; }
  3877. else
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3879. $as_echo "no" >&6; }
  3880. fi
  3881. test -n "$ac_ct_CXX" && break
  3882. done
  3883. if test "x$ac_ct_CXX" = x; then
  3884. CXX="g++"
  3885. else
  3886. case $cross_compiling:$ac_tool_warned in
  3887. yes:)
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3889. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3890. ac_tool_warned=yes ;;
  3891. esac
  3892. CXX=$ac_ct_CXX
  3893. fi
  3894. fi
  3895. fi
  3896. fi
  3897. # Provide some information about the compiler.
  3898. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3899. set X $ac_compile
  3900. ac_compiler=$2
  3901. for ac_option in --version -v -V -qversion; do
  3902. { { ac_try="$ac_compiler $ac_option >&5"
  3903. case "(($ac_try" in
  3904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3905. *) ac_try_echo=$ac_try;;
  3906. esac
  3907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3908. $as_echo "$ac_try_echo"; } >&5
  3909. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3910. ac_status=$?
  3911. if test -s conftest.err; then
  3912. sed '10a\
  3913. ... rest of stderr output deleted ...
  3914. 10q' conftest.err >conftest.er1
  3915. cat conftest.er1 >&5
  3916. fi
  3917. rm -f conftest.er1 conftest.err
  3918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3919. test $ac_status = 0; }
  3920. done
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3922. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3923. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h. */
  3928. int
  3929. main ()
  3930. {
  3931. #ifndef __GNUC__
  3932. choke me
  3933. #endif
  3934. ;
  3935. return 0;
  3936. }
  3937. _ACEOF
  3938. if ac_fn_cxx_try_compile "$LINENO"; then :
  3939. ac_compiler_gnu=yes
  3940. else
  3941. ac_compiler_gnu=no
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3944. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3945. fi
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3947. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3948. if test $ac_compiler_gnu = yes; then
  3949. GXX=yes
  3950. else
  3951. GXX=
  3952. fi
  3953. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3954. ac_save_CXXFLAGS=$CXXFLAGS
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3956. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3957. if ${ac_cv_prog_cxx_g+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3961. ac_cxx_werror_flag=yes
  3962. ac_cv_prog_cxx_g=no
  3963. CXXFLAGS="-g"
  3964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3965. /* end confdefs.h. */
  3966. int
  3967. main ()
  3968. {
  3969. ;
  3970. return 0;
  3971. }
  3972. _ACEOF
  3973. if ac_fn_cxx_try_compile "$LINENO"; then :
  3974. ac_cv_prog_cxx_g=yes
  3975. else
  3976. CXXFLAGS=""
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. int
  3980. main ()
  3981. {
  3982. ;
  3983. return 0;
  3984. }
  3985. _ACEOF
  3986. if ac_fn_cxx_try_compile "$LINENO"; then :
  3987. else
  3988. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3989. CXXFLAGS="-g"
  3990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3991. /* end confdefs.h. */
  3992. int
  3993. main ()
  3994. {
  3995. ;
  3996. return 0;
  3997. }
  3998. _ACEOF
  3999. if ac_fn_cxx_try_compile "$LINENO"; then :
  4000. ac_cv_prog_cxx_g=yes
  4001. fi
  4002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4003. fi
  4004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4005. fi
  4006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4007. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4010. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4011. if test "$ac_test_CXXFLAGS" = set; then
  4012. CXXFLAGS=$ac_save_CXXFLAGS
  4013. elif test $ac_cv_prog_cxx_g = yes; then
  4014. if test "$GXX" = yes; then
  4015. CXXFLAGS="-g -O2"
  4016. else
  4017. CXXFLAGS="-g"
  4018. fi
  4019. else
  4020. if test "$GXX" = yes; then
  4021. CXXFLAGS="-O2"
  4022. else
  4023. CXXFLAGS=
  4024. fi
  4025. fi
  4026. ac_ext=c
  4027. ac_cpp='$CPP $CPPFLAGS'
  4028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4031. depcc="$CXX" am_compiler_list=
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4033. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4034. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4035. $as_echo_n "(cached) " >&6
  4036. else
  4037. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4038. # We make a subdir and do the tests there. Otherwise we can end up
  4039. # making bogus files that we don't know about and never remove. For
  4040. # instance it was reported that on HP-UX the gcc test will end up
  4041. # making a dummy file named 'D' -- because '-MD' means "put the output
  4042. # in D".
  4043. rm -rf conftest.dir
  4044. mkdir conftest.dir
  4045. # Copy depcomp to subdir because otherwise we won't find it if we're
  4046. # using a relative directory.
  4047. cp "$am_depcomp" conftest.dir
  4048. cd conftest.dir
  4049. # We will build objects and dependencies in a subdirectory because
  4050. # it helps to detect inapplicable dependency modes. For instance
  4051. # both Tru64's cc and ICC support -MD to output dependencies as a
  4052. # side effect of compilation, but ICC will put the dependencies in
  4053. # the current directory while Tru64 will put them in the object
  4054. # directory.
  4055. mkdir sub
  4056. am_cv_CXX_dependencies_compiler_type=none
  4057. if test "$am_compiler_list" = ""; then
  4058. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4059. fi
  4060. am__universal=false
  4061. case " $depcc " in #(
  4062. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4063. esac
  4064. for depmode in $am_compiler_list; do
  4065. # Setup a source with many dependencies, because some compilers
  4066. # like to wrap large dependency lists on column 80 (with \), and
  4067. # we should not choose a depcomp mode which is confused by this.
  4068. #
  4069. # We need to recreate these files for each test, as the compiler may
  4070. # overwrite some of them when testing with obscure command lines.
  4071. # This happens at least with the AIX C compiler.
  4072. : > sub/conftest.c
  4073. for i in 1 2 3 4 5 6; do
  4074. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4075. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4076. # Solaris 10 /bin/sh.
  4077. echo '/* dummy */' > sub/conftst$i.h
  4078. done
  4079. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4080. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4081. # mode. It turns out that the SunPro C++ compiler does not properly
  4082. # handle '-M -o', and we need to detect this. Also, some Intel
  4083. # versions had trouble with output in subdirs.
  4084. am__obj=sub/conftest.${OBJEXT-o}
  4085. am__minus_obj="-o $am__obj"
  4086. case $depmode in
  4087. gcc)
  4088. # This depmode causes a compiler race in universal mode.
  4089. test "$am__universal" = false || continue
  4090. ;;
  4091. nosideeffect)
  4092. # After this tag, mechanisms are not by side-effect, so they'll
  4093. # only be used when explicitly requested.
  4094. if test "x$enable_dependency_tracking" = xyes; then
  4095. continue
  4096. else
  4097. break
  4098. fi
  4099. ;;
  4100. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4101. # This compiler won't grok '-c -o', but also, the minuso test has
  4102. # not run yet. These depmodes are late enough in the game, and
  4103. # so weak that their functioning should not be impacted.
  4104. am__obj=conftest.${OBJEXT-o}
  4105. am__minus_obj=
  4106. ;;
  4107. none) break ;;
  4108. esac
  4109. if depmode=$depmode \
  4110. source=sub/conftest.c object=$am__obj \
  4111. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4112. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4113. >/dev/null 2>conftest.err &&
  4114. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4115. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4116. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4117. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4118. # icc doesn't choke on unknown options, it will just issue warnings
  4119. # or remarks (even with -Werror). So we grep stderr for any message
  4120. # that says an option was ignored or not supported.
  4121. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4122. # icc: Command line warning: ignoring option '-M'; no argument required
  4123. # The diagnosis changed in icc 8.0:
  4124. # icc: Command line remark: option '-MP' not supported
  4125. if (grep 'ignoring option' conftest.err ||
  4126. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4127. am_cv_CXX_dependencies_compiler_type=$depmode
  4128. break
  4129. fi
  4130. fi
  4131. done
  4132. cd ..
  4133. rm -rf conftest.dir
  4134. else
  4135. am_cv_CXX_dependencies_compiler_type=none
  4136. fi
  4137. fi
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4139. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4140. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4141. if
  4142. test "x$enable_dependency_tracking" != xno \
  4143. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4144. am__fastdepCXX_TRUE=
  4145. am__fastdepCXX_FALSE='#'
  4146. else
  4147. am__fastdepCXX_TRUE='#'
  4148. am__fastdepCXX_FALSE=
  4149. fi
  4150. if test "x$CC" != xcc; then
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4152. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4153. else
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4155. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4156. fi
  4157. set dummy $CC; ac_cc=`$as_echo "$2" |
  4158. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4159. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4160. $as_echo_n "(cached) " >&6
  4161. else
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. int
  4165. main ()
  4166. {
  4167. ;
  4168. return 0;
  4169. }
  4170. _ACEOF
  4171. # Make sure it works both with $CC and with simple cc.
  4172. # We do the test twice because some compilers refuse to overwrite an
  4173. # existing .o file with -o, though they will create one.
  4174. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4175. rm -f conftest2.*
  4176. if { { case "(($ac_try" in
  4177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4178. *) ac_try_echo=$ac_try;;
  4179. esac
  4180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4181. $as_echo "$ac_try_echo"; } >&5
  4182. (eval "$ac_try") 2>&5
  4183. ac_status=$?
  4184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4185. test $ac_status = 0; } &&
  4186. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4191. $as_echo "$ac_try_echo"; } >&5
  4192. (eval "$ac_try") 2>&5
  4193. ac_status=$?
  4194. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4195. test $ac_status = 0; };
  4196. then
  4197. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4198. if test "x$CC" != xcc; then
  4199. # Test first that cc exists at all.
  4200. if { ac_try='cc -c conftest.$ac_ext >&5'
  4201. { { case "(($ac_try" in
  4202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4203. *) ac_try_echo=$ac_try;;
  4204. esac
  4205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4206. $as_echo "$ac_try_echo"; } >&5
  4207. (eval "$ac_try") 2>&5
  4208. ac_status=$?
  4209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4210. test $ac_status = 0; }; }; then
  4211. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4212. rm -f conftest2.*
  4213. if { { case "(($ac_try" in
  4214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4215. *) ac_try_echo=$ac_try;;
  4216. esac
  4217. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4218. $as_echo "$ac_try_echo"; } >&5
  4219. (eval "$ac_try") 2>&5
  4220. ac_status=$?
  4221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4222. test $ac_status = 0; } &&
  4223. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4225. *) ac_try_echo=$ac_try;;
  4226. esac
  4227. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4228. $as_echo "$ac_try_echo"; } >&5
  4229. (eval "$ac_try") 2>&5
  4230. ac_status=$?
  4231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4232. test $ac_status = 0; };
  4233. then
  4234. # cc works too.
  4235. :
  4236. else
  4237. # cc exists but doesn't like -o.
  4238. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4239. fi
  4240. fi
  4241. fi
  4242. else
  4243. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4244. fi
  4245. rm -f core conftest*
  4246. fi
  4247. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4249. $as_echo "yes" >&6; }
  4250. else
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4252. $as_echo "no" >&6; }
  4253. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4254. fi
  4255. # FIXME: we rely on the cache variable name because
  4256. # there is no other way.
  4257. set dummy $CC
  4258. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4259. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4260. if test "$am_t" != yes; then
  4261. # Losing compiler, so override with the script.
  4262. # FIXME: It is wrong to rewrite CC.
  4263. # But if we don't then we get into trouble of one sort or another.
  4264. # A longer-term fix would be to have automake use am__CC in this case,
  4265. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4266. CC="$am_aux_dir/compile $CC"
  4267. fi
  4268. case `pwd` in
  4269. *\ * | *\ *)
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4271. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4272. esac
  4273. macro_version='2.4.2'
  4274. macro_revision='1.3337'
  4275. ltmain="$ac_aux_dir/ltmain.sh"
  4276. # Make sure we can run config.sub.
  4277. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4278. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4280. $as_echo_n "checking build system type... " >&6; }
  4281. if ${ac_cv_build+:} false; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. ac_build_alias=$build_alias
  4285. test "x$ac_build_alias" = x &&
  4286. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4287. test "x$ac_build_alias" = x &&
  4288. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4289. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4290. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4291. fi
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4293. $as_echo "$ac_cv_build" >&6; }
  4294. case $ac_cv_build in
  4295. *-*-*) ;;
  4296. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4297. esac
  4298. build=$ac_cv_build
  4299. ac_save_IFS=$IFS; IFS='-'
  4300. set x $ac_cv_build
  4301. shift
  4302. build_cpu=$1
  4303. build_vendor=$2
  4304. shift; shift
  4305. # Remember, the first character of IFS is used to create $*,
  4306. # except with old shells:
  4307. build_os=$*
  4308. IFS=$ac_save_IFS
  4309. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4311. $as_echo_n "checking host system type... " >&6; }
  4312. if ${ac_cv_host+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. if test "x$host_alias" = x; then
  4316. ac_cv_host=$ac_cv_build
  4317. else
  4318. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4319. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4320. fi
  4321. fi
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4323. $as_echo "$ac_cv_host" >&6; }
  4324. case $ac_cv_host in
  4325. *-*-*) ;;
  4326. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4327. esac
  4328. host=$ac_cv_host
  4329. ac_save_IFS=$IFS; IFS='-'
  4330. set x $ac_cv_host
  4331. shift
  4332. host_cpu=$1
  4333. host_vendor=$2
  4334. shift; shift
  4335. # Remember, the first character of IFS is used to create $*,
  4336. # except with old shells:
  4337. host_os=$*
  4338. IFS=$ac_save_IFS
  4339. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4340. # Backslashify metacharacters that are still active within
  4341. # double-quoted strings.
  4342. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4343. # Same as above, but do not quote variable references.
  4344. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4345. # Sed substitution to delay expansion of an escaped shell variable in a
  4346. # double_quote_subst'ed string.
  4347. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4348. # Sed substitution to delay expansion of an escaped single quote.
  4349. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4350. # Sed substitution to avoid accidental globbing in evaled expressions
  4351. no_glob_subst='s/\*/\\\*/g'
  4352. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4353. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4354. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4356. $as_echo_n "checking how to print strings... " >&6; }
  4357. # Test print first, because it will be a builtin if present.
  4358. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4359. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4360. ECHO='print -r --'
  4361. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4362. ECHO='printf %s\n'
  4363. else
  4364. # Use this function as a fallback that always works.
  4365. func_fallback_echo ()
  4366. {
  4367. eval 'cat <<_LTECHO_EOF
  4368. $1
  4369. _LTECHO_EOF'
  4370. }
  4371. ECHO='func_fallback_echo'
  4372. fi
  4373. # func_echo_all arg...
  4374. # Invoke $ECHO with all args, space-separated.
  4375. func_echo_all ()
  4376. {
  4377. $ECHO ""
  4378. }
  4379. case "$ECHO" in
  4380. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4381. $as_echo "printf" >&6; } ;;
  4382. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4383. $as_echo "print -r" >&6; } ;;
  4384. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4385. $as_echo "cat" >&6; } ;;
  4386. esac
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4388. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4389. if ${ac_cv_path_SED+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4393. for ac_i in 1 2 3 4 5 6 7; do
  4394. ac_script="$ac_script$as_nl$ac_script"
  4395. done
  4396. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4397. { ac_script=; unset ac_script;}
  4398. if test -z "$SED"; then
  4399. ac_path_SED_found=false
  4400. # Loop through the user's path and test for each of PROGNAME-LIST
  4401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4402. for as_dir in $PATH
  4403. do
  4404. IFS=$as_save_IFS
  4405. test -z "$as_dir" && as_dir=.
  4406. for ac_prog in sed gsed; do
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4409. as_fn_executable_p "$ac_path_SED" || continue
  4410. # Check for GNU ac_path_SED and select it if it is found.
  4411. # Check for GNU $ac_path_SED
  4412. case `"$ac_path_SED" --version 2>&1` in
  4413. *GNU*)
  4414. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4415. *)
  4416. ac_count=0
  4417. $as_echo_n 0123456789 >"conftest.in"
  4418. while :
  4419. do
  4420. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4421. mv "conftest.tmp" "conftest.in"
  4422. cp "conftest.in" "conftest.nl"
  4423. $as_echo '' >> "conftest.nl"
  4424. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4425. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4426. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4427. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4428. # Best one so far, save it but keep looking for a better one
  4429. ac_cv_path_SED="$ac_path_SED"
  4430. ac_path_SED_max=$ac_count
  4431. fi
  4432. # 10*(2^10) chars as input seems more than enough
  4433. test $ac_count -gt 10 && break
  4434. done
  4435. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4436. esac
  4437. $ac_path_SED_found && break 3
  4438. done
  4439. done
  4440. done
  4441. IFS=$as_save_IFS
  4442. if test -z "$ac_cv_path_SED"; then
  4443. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4444. fi
  4445. else
  4446. ac_cv_path_SED=$SED
  4447. fi
  4448. fi
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4450. $as_echo "$ac_cv_path_SED" >&6; }
  4451. SED="$ac_cv_path_SED"
  4452. rm -f conftest.sed
  4453. test -z "$SED" && SED=sed
  4454. Xsed="$SED -e 1s/^X//"
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4456. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4457. if ${ac_cv_path_GREP+:} false; then :
  4458. $as_echo_n "(cached) " >&6
  4459. else
  4460. if test -z "$GREP"; then
  4461. ac_path_GREP_found=false
  4462. # Loop through the user's path and test for each of PROGNAME-LIST
  4463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4464. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4465. do
  4466. IFS=$as_save_IFS
  4467. test -z "$as_dir" && as_dir=.
  4468. for ac_prog in grep ggrep; do
  4469. for ac_exec_ext in '' $ac_executable_extensions; do
  4470. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4471. as_fn_executable_p "$ac_path_GREP" || continue
  4472. # Check for GNU ac_path_GREP and select it if it is found.
  4473. # Check for GNU $ac_path_GREP
  4474. case `"$ac_path_GREP" --version 2>&1` in
  4475. *GNU*)
  4476. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4477. *)
  4478. ac_count=0
  4479. $as_echo_n 0123456789 >"conftest.in"
  4480. while :
  4481. do
  4482. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4483. mv "conftest.tmp" "conftest.in"
  4484. cp "conftest.in" "conftest.nl"
  4485. $as_echo 'GREP' >> "conftest.nl"
  4486. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4487. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4488. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4489. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4490. # Best one so far, save it but keep looking for a better one
  4491. ac_cv_path_GREP="$ac_path_GREP"
  4492. ac_path_GREP_max=$ac_count
  4493. fi
  4494. # 10*(2^10) chars as input seems more than enough
  4495. test $ac_count -gt 10 && break
  4496. done
  4497. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4498. esac
  4499. $ac_path_GREP_found && break 3
  4500. done
  4501. done
  4502. done
  4503. IFS=$as_save_IFS
  4504. if test -z "$ac_cv_path_GREP"; then
  4505. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4506. fi
  4507. else
  4508. ac_cv_path_GREP=$GREP
  4509. fi
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4512. $as_echo "$ac_cv_path_GREP" >&6; }
  4513. GREP="$ac_cv_path_GREP"
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4515. $as_echo_n "checking for egrep... " >&6; }
  4516. if ${ac_cv_path_EGREP+:} false; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4520. then ac_cv_path_EGREP="$GREP -E"
  4521. else
  4522. if test -z "$EGREP"; then
  4523. ac_path_EGREP_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 egrep; do
  4531. for ac_exec_ext in '' $ac_executable_extensions; do
  4532. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4533. as_fn_executable_p "$ac_path_EGREP" || continue
  4534. # Check for GNU ac_path_EGREP and select it if it is found.
  4535. # Check for GNU $ac_path_EGREP
  4536. case `"$ac_path_EGREP" --version 2>&1` in
  4537. *GNU*)
  4538. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
  4548. "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
  4552. # Best one so far, save it but keep looking for a better one
  4553. ac_cv_path_EGREP="$ac_path_EGREP"
  4554. ac_path_EGREP_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_EGREP_found && break 3
  4562. done
  4563. done
  4564. done
  4565. IFS=$as_save_IFS
  4566. if test -z "$ac_cv_path_EGREP"; then
  4567. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4568. fi
  4569. else
  4570. ac_cv_path_EGREP=$EGREP
  4571. fi
  4572. fi
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4575. $as_echo "$ac_cv_path_EGREP" >&6; }
  4576. EGREP="$ac_cv_path_EGREP"
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4578. $as_echo_n "checking for fgrep... " >&6; }
  4579. if ${ac_cv_path_FGREP+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4583. then ac_cv_path_FGREP="$GREP -F"
  4584. else
  4585. if test -z "$FGREP"; then
  4586. ac_path_FGREP_found=false
  4587. # Loop through the user's path and test for each of PROGNAME-LIST
  4588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4589. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4590. do
  4591. IFS=$as_save_IFS
  4592. test -z "$as_dir" && as_dir=.
  4593. for ac_prog in fgrep; do
  4594. for ac_exec_ext in '' $ac_executable_extensions; do
  4595. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4596. as_fn_executable_p "$ac_path_FGREP" || continue
  4597. # Check for GNU ac_path_FGREP and select it if it is found.
  4598. # Check for GNU $ac_path_FGREP
  4599. case `"$ac_path_FGREP" --version 2>&1` in
  4600. *GNU*)
  4601. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4602. *)
  4603. ac_count=0
  4604. $as_echo_n 0123456789 >"conftest.in"
  4605. while :
  4606. do
  4607. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4608. mv "conftest.tmp" "conftest.in"
  4609. cp "conftest.in" "conftest.nl"
  4610. $as_echo 'FGREP' >> "conftest.nl"
  4611. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4612. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4613. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4614. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4615. # Best one so far, save it but keep looking for a better one
  4616. ac_cv_path_FGREP="$ac_path_FGREP"
  4617. ac_path_FGREP_max=$ac_count
  4618. fi
  4619. # 10*(2^10) chars as input seems more than enough
  4620. test $ac_count -gt 10 && break
  4621. done
  4622. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4623. esac
  4624. $ac_path_FGREP_found && break 3
  4625. done
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. if test -z "$ac_cv_path_FGREP"; then
  4630. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4631. fi
  4632. else
  4633. ac_cv_path_FGREP=$FGREP
  4634. fi
  4635. fi
  4636. fi
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4638. $as_echo "$ac_cv_path_FGREP" >&6; }
  4639. FGREP="$ac_cv_path_FGREP"
  4640. test -z "$GREP" && GREP=grep
  4641. # Check whether --with-gnu-ld was given.
  4642. if test "${with_gnu_ld+set}" = set; then :
  4643. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4644. else
  4645. with_gnu_ld=no
  4646. fi
  4647. ac_prog=ld
  4648. if test "$GCC" = yes; then
  4649. # Check if gcc -print-prog-name=ld gives a path.
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4651. $as_echo_n "checking for ld used by $CC... " >&6; }
  4652. case $host in
  4653. *-*-mingw*)
  4654. # gcc leaves a trailing carriage return which upsets mingw
  4655. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4656. *)
  4657. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4658. esac
  4659. case $ac_prog in
  4660. # Accept absolute paths.
  4661. [\\/]* | ?:[\\/]*)
  4662. re_direlt='/[^/][^/]*/\.\./'
  4663. # Canonicalize the pathname of ld
  4664. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4665. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4666. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4667. done
  4668. test -z "$LD" && LD="$ac_prog"
  4669. ;;
  4670. "")
  4671. # If it fails, then pretend we aren't using GCC.
  4672. ac_prog=ld
  4673. ;;
  4674. *)
  4675. # If it is relative, then search for the first ld in PATH.
  4676. with_gnu_ld=unknown
  4677. ;;
  4678. esac
  4679. elif test "$with_gnu_ld" = yes; then
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4681. $as_echo_n "checking for GNU ld... " >&6; }
  4682. else
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4684. $as_echo_n "checking for non-GNU ld... " >&6; }
  4685. fi
  4686. if ${lt_cv_path_LD+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. if test -z "$LD"; then
  4690. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4691. for ac_dir in $PATH; do
  4692. IFS="$lt_save_ifs"
  4693. test -z "$ac_dir" && ac_dir=.
  4694. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4695. lt_cv_path_LD="$ac_dir/$ac_prog"
  4696. # Check to see if the program is GNU ld. I'd rather use --version,
  4697. # but apparently some variants of GNU ld only accept -v.
  4698. # Break only if it was the GNU/non-GNU ld that we prefer.
  4699. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4700. *GNU* | *'with BFD'*)
  4701. test "$with_gnu_ld" != no && break
  4702. ;;
  4703. *)
  4704. test "$with_gnu_ld" != yes && break
  4705. ;;
  4706. esac
  4707. fi
  4708. done
  4709. IFS="$lt_save_ifs"
  4710. else
  4711. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4712. fi
  4713. fi
  4714. LD="$lt_cv_path_LD"
  4715. if test -n "$LD"; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4717. $as_echo "$LD" >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4724. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4725. if ${lt_cv_prog_gnu_ld+:} false; then :
  4726. $as_echo_n "(cached) " >&6
  4727. else
  4728. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4729. case `$LD -v 2>&1 </dev/null` in
  4730. *GNU* | *'with BFD'*)
  4731. lt_cv_prog_gnu_ld=yes
  4732. ;;
  4733. *)
  4734. lt_cv_prog_gnu_ld=no
  4735. ;;
  4736. esac
  4737. fi
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4739. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4740. with_gnu_ld=$lt_cv_prog_gnu_ld
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4742. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4743. if ${lt_cv_path_NM+:} false; then :
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. if test -n "$NM"; then
  4747. # Let the user override the test.
  4748. lt_cv_path_NM="$NM"
  4749. else
  4750. lt_nm_to_check="${ac_tool_prefix}nm"
  4751. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4752. lt_nm_to_check="$lt_nm_to_check nm"
  4753. fi
  4754. for lt_tmp_nm in $lt_nm_to_check; do
  4755. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4756. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4757. IFS="$lt_save_ifs"
  4758. test -z "$ac_dir" && ac_dir=.
  4759. tmp_nm="$ac_dir/$lt_tmp_nm"
  4760. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4761. # Check to see if the nm accepts a BSD-compat flag.
  4762. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4763. # nm: unknown option "B" ignored
  4764. # Tru64's nm complains that /dev/null is an invalid object file
  4765. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4766. */dev/null* | *'Invalid file or object type'*)
  4767. lt_cv_path_NM="$tmp_nm -B"
  4768. break
  4769. ;;
  4770. *)
  4771. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4772. */dev/null*)
  4773. lt_cv_path_NM="$tmp_nm -p"
  4774. break
  4775. ;;
  4776. *)
  4777. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4778. continue # so that we can try to find one that supports BSD flags
  4779. ;;
  4780. esac
  4781. ;;
  4782. esac
  4783. fi
  4784. done
  4785. IFS="$lt_save_ifs"
  4786. done
  4787. : ${lt_cv_path_NM=no}
  4788. fi
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4791. $as_echo "$lt_cv_path_NM" >&6; }
  4792. if test "$lt_cv_path_NM" != "no"; then
  4793. NM="$lt_cv_path_NM"
  4794. else
  4795. # Didn't find any BSD compatible name lister, look for dumpbin.
  4796. if test -n "$DUMPBIN"; then :
  4797. # Let the user override the test.
  4798. else
  4799. if test -n "$ac_tool_prefix"; then
  4800. for ac_prog in dumpbin "link -dump"
  4801. do
  4802. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4803. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4805. $as_echo_n "checking for $ac_word... " >&6; }
  4806. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. if test -n "$DUMPBIN"; then
  4810. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4811. else
  4812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4813. for as_dir in $PATH
  4814. do
  4815. IFS=$as_save_IFS
  4816. test -z "$as_dir" && as_dir=.
  4817. for ac_exec_ext in '' $ac_executable_extensions; do
  4818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4819. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4821. break 2
  4822. fi
  4823. done
  4824. done
  4825. IFS=$as_save_IFS
  4826. fi
  4827. fi
  4828. DUMPBIN=$ac_cv_prog_DUMPBIN
  4829. if test -n "$DUMPBIN"; then
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4831. $as_echo "$DUMPBIN" >&6; }
  4832. else
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4834. $as_echo "no" >&6; }
  4835. fi
  4836. test -n "$DUMPBIN" && break
  4837. done
  4838. fi
  4839. if test -z "$DUMPBIN"; then
  4840. ac_ct_DUMPBIN=$DUMPBIN
  4841. for ac_prog in dumpbin "link -dump"
  4842. do
  4843. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4844. set dummy $ac_prog; ac_word=$2
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4846. $as_echo_n "checking for $ac_word... " >&6; }
  4847. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4848. $as_echo_n "(cached) " >&6
  4849. else
  4850. if test -n "$ac_ct_DUMPBIN"; then
  4851. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4852. else
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_exec_ext in '' $ac_executable_extensions; do
  4859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4860. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4862. break 2
  4863. fi
  4864. done
  4865. done
  4866. IFS=$as_save_IFS
  4867. fi
  4868. fi
  4869. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4870. if test -n "$ac_ct_DUMPBIN"; then
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4872. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4873. else
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4875. $as_echo "no" >&6; }
  4876. fi
  4877. test -n "$ac_ct_DUMPBIN" && break
  4878. done
  4879. if test "x$ac_ct_DUMPBIN" = x; then
  4880. DUMPBIN=":"
  4881. else
  4882. case $cross_compiling:$ac_tool_warned in
  4883. yes:)
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4886. ac_tool_warned=yes ;;
  4887. esac
  4888. DUMPBIN=$ac_ct_DUMPBIN
  4889. fi
  4890. fi
  4891. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4892. *COFF*)
  4893. DUMPBIN="$DUMPBIN -symbols"
  4894. ;;
  4895. *)
  4896. DUMPBIN=:
  4897. ;;
  4898. esac
  4899. fi
  4900. if test "$DUMPBIN" != ":"; then
  4901. NM="$DUMPBIN"
  4902. fi
  4903. fi
  4904. test -z "$NM" && NM=nm
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4906. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4907. if ${lt_cv_nm_interface+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. lt_cv_nm_interface="BSD nm"
  4911. echo "int some_variable = 0;" > conftest.$ac_ext
  4912. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4913. (eval "$ac_compile" 2>conftest.err)
  4914. cat conftest.err >&5
  4915. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4916. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4917. cat conftest.err >&5
  4918. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4919. cat conftest.out >&5
  4920. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4921. lt_cv_nm_interface="MS dumpbin"
  4922. fi
  4923. rm -f conftest*
  4924. fi
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4926. $as_echo "$lt_cv_nm_interface" >&6; }
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4928. $as_echo_n "checking whether ln -s works... " >&6; }
  4929. LN_S=$as_ln_s
  4930. if test "$LN_S" = "ln -s"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4932. $as_echo "yes" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4935. $as_echo "no, using $LN_S" >&6; }
  4936. fi
  4937. # find the maximum length of command line arguments
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4939. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4940. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. i=0
  4944. teststring="ABCD"
  4945. case $build_os in
  4946. msdosdjgpp*)
  4947. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4948. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4949. # during glob expansion). Even if it were fixed, the result of this
  4950. # check would be larger than it should be.
  4951. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4952. ;;
  4953. gnu*)
  4954. # Under GNU Hurd, this test is not required because there is
  4955. # no limit to the length of command line arguments.
  4956. # Libtool will interpret -1 as no limit whatsoever
  4957. lt_cv_sys_max_cmd_len=-1;
  4958. ;;
  4959. cygwin* | mingw* | cegcc*)
  4960. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4961. # about 5 minutes as the teststring grows exponentially.
  4962. # Worse, since 9x/ME are not pre-emptively multitasking,
  4963. # you end up with a "frozen" computer, even though with patience
  4964. # the test eventually succeeds (with a max line length of 256k).
  4965. # Instead, let's just punt: use the minimum linelength reported by
  4966. # all of the supported platforms: 8192 (on NT/2K/XP).
  4967. lt_cv_sys_max_cmd_len=8192;
  4968. ;;
  4969. mint*)
  4970. # On MiNT this can take a long time and run out of memory.
  4971. lt_cv_sys_max_cmd_len=8192;
  4972. ;;
  4973. amigaos*)
  4974. # On AmigaOS with pdksh, this test takes hours, literally.
  4975. # So we just punt and use a minimum line length of 8192.
  4976. lt_cv_sys_max_cmd_len=8192;
  4977. ;;
  4978. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4979. # This has been around since 386BSD, at least. Likely further.
  4980. if test -x /sbin/sysctl; then
  4981. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4982. elif test -x /usr/sbin/sysctl; then
  4983. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4984. else
  4985. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4986. fi
  4987. # And add a safety zone
  4988. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4989. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4990. ;;
  4991. interix*)
  4992. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4993. lt_cv_sys_max_cmd_len=196608
  4994. ;;
  4995. os2*)
  4996. # The test takes a long time on OS/2.
  4997. lt_cv_sys_max_cmd_len=8192
  4998. ;;
  4999. osf*)
  5000. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5001. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5002. # nice to cause kernel panics so lets avoid the loop below.
  5003. # First set a reasonable default.
  5004. lt_cv_sys_max_cmd_len=16384
  5005. #
  5006. if test -x /sbin/sysconfig; then
  5007. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5008. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5009. esac
  5010. fi
  5011. ;;
  5012. sco3.2v5*)
  5013. lt_cv_sys_max_cmd_len=102400
  5014. ;;
  5015. sysv5* | sco5v6* | sysv4.2uw2*)
  5016. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5017. if test -n "$kargmax"; then
  5018. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5019. else
  5020. lt_cv_sys_max_cmd_len=32768
  5021. fi
  5022. ;;
  5023. *)
  5024. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5025. if test -n "$lt_cv_sys_max_cmd_len"; then
  5026. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5027. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5028. else
  5029. # Make teststring a little bigger before we do anything with it.
  5030. # a 1K string should be a reasonable start.
  5031. for i in 1 2 3 4 5 6 7 8 ; do
  5032. teststring=$teststring$teststring
  5033. done
  5034. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5035. # If test is not a shell built-in, we'll probably end up computing a
  5036. # maximum length that is only half of the actual maximum length, but
  5037. # we can't tell.
  5038. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5039. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5040. test $i != 17 # 1/2 MB should be enough
  5041. do
  5042. i=`expr $i + 1`
  5043. teststring=$teststring$teststring
  5044. done
  5045. # Only check the string length outside the loop.
  5046. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5047. teststring=
  5048. # Add a significant safety factor because C++ compilers can tack on
  5049. # massive amounts of additional arguments before passing them to the
  5050. # linker. It appears as though 1/2 is a usable value.
  5051. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5052. fi
  5053. ;;
  5054. esac
  5055. fi
  5056. if test -n $lt_cv_sys_max_cmd_len ; then
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5058. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5061. $as_echo "none" >&6; }
  5062. fi
  5063. max_cmd_len=$lt_cv_sys_max_cmd_len
  5064. : ${CP="cp -f"}
  5065. : ${MV="mv -f"}
  5066. : ${RM="rm -f"}
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5068. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5069. # Try some XSI features
  5070. xsi_shell=no
  5071. ( _lt_dummy="a/b/c"
  5072. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5073. = c,a/b,b/c, \
  5074. && eval 'test $(( 1 + 1 )) -eq 2 \
  5075. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5076. && xsi_shell=yes
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5078. $as_echo "$xsi_shell" >&6; }
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5080. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5081. lt_shell_append=no
  5082. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5083. >/dev/null 2>&1 \
  5084. && lt_shell_append=yes
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5086. $as_echo "$lt_shell_append" >&6; }
  5087. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5088. lt_unset=unset
  5089. else
  5090. lt_unset=false
  5091. fi
  5092. # test EBCDIC or ASCII
  5093. case `echo X|tr X '\101'` in
  5094. A) # ASCII based system
  5095. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5096. lt_SP2NL='tr \040 \012'
  5097. lt_NL2SP='tr \015\012 \040\040'
  5098. ;;
  5099. *) # EBCDIC based system
  5100. lt_SP2NL='tr \100 \n'
  5101. lt_NL2SP='tr \r\n \100\100'
  5102. ;;
  5103. esac
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5105. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5106. if ${lt_cv_to_host_file_cmd+:} false; then :
  5107. $as_echo_n "(cached) " >&6
  5108. else
  5109. case $host in
  5110. *-*-mingw* )
  5111. case $build in
  5112. *-*-mingw* ) # actually msys
  5113. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5114. ;;
  5115. *-*-cygwin* )
  5116. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5117. ;;
  5118. * ) # otherwise, assume *nix
  5119. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5120. ;;
  5121. esac
  5122. ;;
  5123. *-*-cygwin* )
  5124. case $build in
  5125. *-*-mingw* ) # actually msys
  5126. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5127. ;;
  5128. *-*-cygwin* )
  5129. lt_cv_to_host_file_cmd=func_convert_file_noop
  5130. ;;
  5131. * ) # otherwise, assume *nix
  5132. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5133. ;;
  5134. esac
  5135. ;;
  5136. * ) # unhandled hosts (and "normal" native builds)
  5137. lt_cv_to_host_file_cmd=func_convert_file_noop
  5138. ;;
  5139. esac
  5140. fi
  5141. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5143. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5145. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5146. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. #assume ordinary cross tools, or native build.
  5150. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5151. case $host in
  5152. *-*-mingw* )
  5153. case $build in
  5154. *-*-mingw* ) # actually msys
  5155. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5156. ;;
  5157. esac
  5158. ;;
  5159. esac
  5160. fi
  5161. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5163. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5165. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5166. if ${lt_cv_ld_reload_flag+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. lt_cv_ld_reload_flag='-r'
  5170. fi
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5172. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5173. reload_flag=$lt_cv_ld_reload_flag
  5174. case $reload_flag in
  5175. "" | " "*) ;;
  5176. *) reload_flag=" $reload_flag" ;;
  5177. esac
  5178. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5179. case $host_os in
  5180. cygwin* | mingw* | pw32* | cegcc*)
  5181. if test "$GCC" != yes; then
  5182. reload_cmds=false
  5183. fi
  5184. ;;
  5185. darwin*)
  5186. if test "$GCC" = yes; then
  5187. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5188. else
  5189. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5190. fi
  5191. ;;
  5192. esac
  5193. if test -n "$ac_tool_prefix"; then
  5194. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5195. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5197. $as_echo_n "checking for $ac_word... " >&6; }
  5198. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. if test -n "$OBJDUMP"; then
  5202. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5203. else
  5204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5205. for as_dir in $PATH
  5206. do
  5207. IFS=$as_save_IFS
  5208. test -z "$as_dir" && as_dir=.
  5209. for ac_exec_ext in '' $ac_executable_extensions; do
  5210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5211. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5213. break 2
  5214. fi
  5215. done
  5216. done
  5217. IFS=$as_save_IFS
  5218. fi
  5219. fi
  5220. OBJDUMP=$ac_cv_prog_OBJDUMP
  5221. if test -n "$OBJDUMP"; then
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5223. $as_echo "$OBJDUMP" >&6; }
  5224. else
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5226. $as_echo "no" >&6; }
  5227. fi
  5228. fi
  5229. if test -z "$ac_cv_prog_OBJDUMP"; then
  5230. ac_ct_OBJDUMP=$OBJDUMP
  5231. # Extract the first word of "objdump", so it can be a program name with args.
  5232. set dummy objdump; ac_word=$2
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5234. $as_echo_n "checking for $ac_word... " >&6; }
  5235. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5236. $as_echo_n "(cached) " >&6
  5237. else
  5238. if test -n "$ac_ct_OBJDUMP"; then
  5239. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5240. else
  5241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5242. for as_dir in $PATH
  5243. do
  5244. IFS=$as_save_IFS
  5245. test -z "$as_dir" && as_dir=.
  5246. for ac_exec_ext in '' $ac_executable_extensions; do
  5247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5248. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5250. break 2
  5251. fi
  5252. done
  5253. done
  5254. IFS=$as_save_IFS
  5255. fi
  5256. fi
  5257. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5258. if test -n "$ac_ct_OBJDUMP"; then
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5260. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5261. else
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5263. $as_echo "no" >&6; }
  5264. fi
  5265. if test "x$ac_ct_OBJDUMP" = x; then
  5266. OBJDUMP="false"
  5267. else
  5268. case $cross_compiling:$ac_tool_warned in
  5269. yes:)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5271. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5272. ac_tool_warned=yes ;;
  5273. esac
  5274. OBJDUMP=$ac_ct_OBJDUMP
  5275. fi
  5276. else
  5277. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5278. fi
  5279. test -z "$OBJDUMP" && OBJDUMP=objdump
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5281. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5282. if ${lt_cv_deplibs_check_method+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5286. lt_cv_file_magic_test_file=
  5287. lt_cv_deplibs_check_method='unknown'
  5288. # Need to set the preceding variable on all platforms that support
  5289. # interlibrary dependencies.
  5290. # 'none' -- dependencies not supported.
  5291. # `unknown' -- same as none, but documents that we really don't know.
  5292. # 'pass_all' -- all dependencies passed with no checks.
  5293. # 'test_compile' -- check by making test program.
  5294. # 'file_magic [[regex]]' -- check by looking for files in library path
  5295. # which responds to the $file_magic_cmd with a given extended regex.
  5296. # If you have `file' or equivalent on your system and you're not sure
  5297. # whether `pass_all' will *always* work, you probably want this one.
  5298. case $host_os in
  5299. aix[4-9]*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. beos*)
  5303. lt_cv_deplibs_check_method=pass_all
  5304. ;;
  5305. bsdi[45]*)
  5306. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5307. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5308. lt_cv_file_magic_test_file=/shlib/libc.so
  5309. ;;
  5310. cygwin*)
  5311. # func_win32_libid is a shell function defined in ltmain.sh
  5312. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5313. lt_cv_file_magic_cmd='func_win32_libid'
  5314. ;;
  5315. mingw* | pw32*)
  5316. # Base MSYS/MinGW do not provide the 'file' command needed by
  5317. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5318. # unless we find 'file', for example because we are cross-compiling.
  5319. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5320. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5321. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5322. lt_cv_file_magic_cmd='func_win32_libid'
  5323. else
  5324. # Keep this pattern in sync with the one in func_win32_libid.
  5325. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5326. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5327. fi
  5328. ;;
  5329. cegcc*)
  5330. # use the weaker test based on 'objdump'. See mingw*.
  5331. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5332. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5333. ;;
  5334. darwin* | rhapsody*)
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. freebsd* | dragonfly*)
  5338. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5339. case $host_cpu in
  5340. i*86 )
  5341. # Not sure whether the presence of OpenBSD here was a mistake.
  5342. # Let's accept both of them until this is cleared up.
  5343. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5344. lt_cv_file_magic_cmd=/usr/bin/file
  5345. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5346. ;;
  5347. esac
  5348. else
  5349. lt_cv_deplibs_check_method=pass_all
  5350. fi
  5351. ;;
  5352. gnu*)
  5353. lt_cv_deplibs_check_method=pass_all
  5354. ;;
  5355. haiku*)
  5356. lt_cv_deplibs_check_method=pass_all
  5357. ;;
  5358. hpux10.20* | hpux11*)
  5359. lt_cv_file_magic_cmd=/usr/bin/file
  5360. case $host_cpu in
  5361. ia64*)
  5362. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5363. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5364. ;;
  5365. hppa*64*)
  5366. 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]'
  5367. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5368. ;;
  5369. *)
  5370. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5371. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5372. ;;
  5373. esac
  5374. ;;
  5375. interix[3-9]*)
  5376. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5377. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5378. ;;
  5379. irix5* | irix6* | nonstopux*)
  5380. case $LD in
  5381. *-32|*"-32 ") libmagic=32-bit;;
  5382. *-n32|*"-n32 ") libmagic=N32;;
  5383. *-64|*"-64 ") libmagic=64-bit;;
  5384. *) libmagic=never-match;;
  5385. esac
  5386. lt_cv_deplibs_check_method=pass_all
  5387. ;;
  5388. # This must be glibc/ELF.
  5389. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5390. lt_cv_deplibs_check_method=pass_all
  5391. ;;
  5392. netbsd*)
  5393. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5394. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5395. else
  5396. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5397. fi
  5398. ;;
  5399. newos6*)
  5400. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5401. lt_cv_file_magic_cmd=/usr/bin/file
  5402. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5403. ;;
  5404. *nto* | *qnx*)
  5405. lt_cv_deplibs_check_method=pass_all
  5406. ;;
  5407. openbsd*)
  5408. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5409. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5410. else
  5411. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5412. fi
  5413. ;;
  5414. osf3* | osf4* | osf5*)
  5415. lt_cv_deplibs_check_method=pass_all
  5416. ;;
  5417. rdos*)
  5418. lt_cv_deplibs_check_method=pass_all
  5419. ;;
  5420. solaris*)
  5421. lt_cv_deplibs_check_method=pass_all
  5422. ;;
  5423. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5424. lt_cv_deplibs_check_method=pass_all
  5425. ;;
  5426. sysv4 | sysv4.3*)
  5427. case $host_vendor in
  5428. motorola)
  5429. 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]'
  5430. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5431. ;;
  5432. ncr)
  5433. lt_cv_deplibs_check_method=pass_all
  5434. ;;
  5435. sequent)
  5436. lt_cv_file_magic_cmd='/bin/file'
  5437. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5438. ;;
  5439. sni)
  5440. lt_cv_file_magic_cmd='/bin/file'
  5441. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5442. lt_cv_file_magic_test_file=/lib/libc.so
  5443. ;;
  5444. siemens)
  5445. lt_cv_deplibs_check_method=pass_all
  5446. ;;
  5447. pc)
  5448. lt_cv_deplibs_check_method=pass_all
  5449. ;;
  5450. esac
  5451. ;;
  5452. tpf*)
  5453. lt_cv_deplibs_check_method=pass_all
  5454. ;;
  5455. esac
  5456. fi
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5458. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5459. file_magic_glob=
  5460. want_nocaseglob=no
  5461. if test "$build" = "$host"; then
  5462. case $host_os in
  5463. mingw* | pw32*)
  5464. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5465. want_nocaseglob=yes
  5466. else
  5467. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5468. fi
  5469. ;;
  5470. esac
  5471. fi
  5472. file_magic_cmd=$lt_cv_file_magic_cmd
  5473. deplibs_check_method=$lt_cv_deplibs_check_method
  5474. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5475. if test -n "$ac_tool_prefix"; then
  5476. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5477. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5479. $as_echo_n "checking for $ac_word... " >&6; }
  5480. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. if test -n "$DLLTOOL"; then
  5484. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5485. else
  5486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5487. for as_dir in $PATH
  5488. do
  5489. IFS=$as_save_IFS
  5490. test -z "$as_dir" && as_dir=.
  5491. for ac_exec_ext in '' $ac_executable_extensions; do
  5492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5493. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5495. break 2
  5496. fi
  5497. done
  5498. done
  5499. IFS=$as_save_IFS
  5500. fi
  5501. fi
  5502. DLLTOOL=$ac_cv_prog_DLLTOOL
  5503. if test -n "$DLLTOOL"; then
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5505. $as_echo "$DLLTOOL" >&6; }
  5506. else
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5508. $as_echo "no" >&6; }
  5509. fi
  5510. fi
  5511. if test -z "$ac_cv_prog_DLLTOOL"; then
  5512. ac_ct_DLLTOOL=$DLLTOOL
  5513. # Extract the first word of "dlltool", so it can be a program name with args.
  5514. set dummy dlltool; ac_word=$2
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5516. $as_echo_n "checking for $ac_word... " >&6; }
  5517. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5518. $as_echo_n "(cached) " >&6
  5519. else
  5520. if test -n "$ac_ct_DLLTOOL"; then
  5521. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5522. else
  5523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5524. for as_dir in $PATH
  5525. do
  5526. IFS=$as_save_IFS
  5527. test -z "$as_dir" && as_dir=.
  5528. for ac_exec_ext in '' $ac_executable_extensions; do
  5529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5530. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5532. break 2
  5533. fi
  5534. done
  5535. done
  5536. IFS=$as_save_IFS
  5537. fi
  5538. fi
  5539. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5540. if test -n "$ac_ct_DLLTOOL"; then
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5542. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5543. else
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5545. $as_echo "no" >&6; }
  5546. fi
  5547. if test "x$ac_ct_DLLTOOL" = x; then
  5548. DLLTOOL="false"
  5549. else
  5550. case $cross_compiling:$ac_tool_warned in
  5551. yes:)
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5553. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5554. ac_tool_warned=yes ;;
  5555. esac
  5556. DLLTOOL=$ac_ct_DLLTOOL
  5557. fi
  5558. else
  5559. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5560. fi
  5561. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5563. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5564. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5568. case $host_os in
  5569. cygwin* | mingw* | pw32* | cegcc*)
  5570. # two different shell functions defined in ltmain.sh
  5571. # decide which to use based on capabilities of $DLLTOOL
  5572. case `$DLLTOOL --help 2>&1` in
  5573. *--identify-strict*)
  5574. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5575. ;;
  5576. *)
  5577. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5578. ;;
  5579. esac
  5580. ;;
  5581. *)
  5582. # fallback: assume linklib IS sharedlib
  5583. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5584. ;;
  5585. esac
  5586. fi
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5588. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5589. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5590. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5591. if test -n "$ac_tool_prefix"; then
  5592. for ac_prog in ar
  5593. do
  5594. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5595. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5597. $as_echo_n "checking for $ac_word... " >&6; }
  5598. if ${ac_cv_prog_AR+:} false; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. if test -n "$AR"; then
  5602. ac_cv_prog_AR="$AR" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. test -z "$as_dir" && as_dir=.
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5611. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5613. break 2
  5614. fi
  5615. done
  5616. done
  5617. IFS=$as_save_IFS
  5618. fi
  5619. fi
  5620. AR=$ac_cv_prog_AR
  5621. if test -n "$AR"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5623. $as_echo "$AR" >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. fi
  5628. test -n "$AR" && break
  5629. done
  5630. fi
  5631. if test -z "$AR"; then
  5632. ac_ct_AR=$AR
  5633. for ac_prog in ar
  5634. do
  5635. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5636. set dummy $ac_prog; ac_word=$2
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5638. $as_echo_n "checking for $ac_word... " >&6; }
  5639. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. if test -n "$ac_ct_AR"; then
  5643. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5652. ac_cv_prog_ac_ct_AR="$ac_prog"
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. IFS=$as_save_IFS
  5659. fi
  5660. fi
  5661. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5662. if test -n "$ac_ct_AR"; then
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5664. $as_echo "$ac_ct_AR" >&6; }
  5665. else
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5667. $as_echo "no" >&6; }
  5668. fi
  5669. test -n "$ac_ct_AR" && break
  5670. done
  5671. if test "x$ac_ct_AR" = x; then
  5672. AR="false"
  5673. else
  5674. case $cross_compiling:$ac_tool_warned in
  5675. yes:)
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5678. ac_tool_warned=yes ;;
  5679. esac
  5680. AR=$ac_ct_AR
  5681. fi
  5682. fi
  5683. : ${AR=ar}
  5684. : ${AR_FLAGS=cru}
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5686. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5687. if ${lt_cv_ar_at_file+:} false; then :
  5688. $as_echo_n "(cached) " >&6
  5689. else
  5690. lt_cv_ar_at_file=no
  5691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5692. /* end confdefs.h. */
  5693. int
  5694. main ()
  5695. {
  5696. ;
  5697. return 0;
  5698. }
  5699. _ACEOF
  5700. if ac_fn_c_try_compile "$LINENO"; then :
  5701. echo conftest.$ac_objext > conftest.lst
  5702. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5703. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5704. (eval $lt_ar_try) 2>&5
  5705. ac_status=$?
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5707. test $ac_status = 0; }
  5708. if test "$ac_status" -eq 0; then
  5709. # Ensure the archiver fails upon bogus file names.
  5710. rm -f conftest.$ac_objext libconftest.a
  5711. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5712. (eval $lt_ar_try) 2>&5
  5713. ac_status=$?
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5715. test $ac_status = 0; }
  5716. if test "$ac_status" -ne 0; then
  5717. lt_cv_ar_at_file=@
  5718. fi
  5719. fi
  5720. rm -f conftest.* libconftest.a
  5721. fi
  5722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5723. fi
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5725. $as_echo "$lt_cv_ar_at_file" >&6; }
  5726. if test "x$lt_cv_ar_at_file" = xno; then
  5727. archiver_list_spec=
  5728. else
  5729. archiver_list_spec=$lt_cv_ar_at_file
  5730. fi
  5731. if test -n "$ac_tool_prefix"; then
  5732. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5733. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if ${ac_cv_prog_STRIP+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$STRIP"; then
  5740. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5749. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. STRIP=$ac_cv_prog_STRIP
  5759. if test -n "$STRIP"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5761. $as_echo "$STRIP" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. fi
  5767. if test -z "$ac_cv_prog_STRIP"; then
  5768. ac_ct_STRIP=$STRIP
  5769. # Extract the first word of "strip", so it can be a program name with args.
  5770. set dummy strip; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$ac_ct_STRIP"; then
  5777. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_ac_ct_STRIP="strip"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5796. if test -n "$ac_ct_STRIP"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5798. $as_echo "$ac_ct_STRIP" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. if test "x$ac_ct_STRIP" = x; then
  5804. STRIP=":"
  5805. else
  5806. case $cross_compiling:$ac_tool_warned in
  5807. yes:)
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5810. ac_tool_warned=yes ;;
  5811. esac
  5812. STRIP=$ac_ct_STRIP
  5813. fi
  5814. else
  5815. STRIP="$ac_cv_prog_STRIP"
  5816. fi
  5817. test -z "$STRIP" && STRIP=:
  5818. if test -n "$ac_tool_prefix"; then
  5819. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5820. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if ${ac_cv_prog_RANLIB+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$RANLIB"; then
  5827. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. RANLIB=$ac_cv_prog_RANLIB
  5846. if test -n "$RANLIB"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5848. $as_echo "$RANLIB" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. fi
  5854. if test -z "$ac_cv_prog_RANLIB"; then
  5855. ac_ct_RANLIB=$RANLIB
  5856. # Extract the first word of "ranlib", so it can be a program name with args.
  5857. set dummy ranlib; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$ac_ct_RANLIB"; then
  5864. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5873. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5883. if test -n "$ac_ct_RANLIB"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5885. $as_echo "$ac_ct_RANLIB" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. if test "x$ac_ct_RANLIB" = x; then
  5891. RANLIB=":"
  5892. else
  5893. case $cross_compiling:$ac_tool_warned in
  5894. yes:)
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5897. ac_tool_warned=yes ;;
  5898. esac
  5899. RANLIB=$ac_ct_RANLIB
  5900. fi
  5901. else
  5902. RANLIB="$ac_cv_prog_RANLIB"
  5903. fi
  5904. test -z "$RANLIB" && RANLIB=:
  5905. # Determine commands to create old-style static archives.
  5906. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5907. old_postinstall_cmds='chmod 644 $oldlib'
  5908. old_postuninstall_cmds=
  5909. if test -n "$RANLIB"; then
  5910. case $host_os in
  5911. openbsd*)
  5912. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5913. ;;
  5914. *)
  5915. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5916. ;;
  5917. esac
  5918. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5919. fi
  5920. case $host_os in
  5921. darwin*)
  5922. lock_old_archive_extraction=yes ;;
  5923. *)
  5924. lock_old_archive_extraction=no ;;
  5925. esac
  5926. # If no C compiler was specified, use CC.
  5927. LTCC=${LTCC-"$CC"}
  5928. # If no C compiler flags were specified, use CFLAGS.
  5929. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5930. # Allow CC to be a program name with arguments.
  5931. compiler=$CC
  5932. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5934. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5935. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5936. $as_echo_n "(cached) " >&6
  5937. else
  5938. # These are sane defaults that work on at least a few old systems.
  5939. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5940. # Character class describing NM global symbol codes.
  5941. symcode='[BCDEGRST]'
  5942. # Regexp to match symbols that can be accessed directly from C.
  5943. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5944. # Define system-specific variables.
  5945. case $host_os in
  5946. aix*)
  5947. symcode='[BCDT]'
  5948. ;;
  5949. cygwin* | mingw* | pw32* | cegcc*)
  5950. symcode='[ABCDGISTW]'
  5951. ;;
  5952. hpux*)
  5953. if test "$host_cpu" = ia64; then
  5954. symcode='[ABCDEGRST]'
  5955. fi
  5956. ;;
  5957. irix* | nonstopux*)
  5958. symcode='[BCDEGRST]'
  5959. ;;
  5960. osf*)
  5961. symcode='[BCDEGQRST]'
  5962. ;;
  5963. solaris*)
  5964. symcode='[BDRT]'
  5965. ;;
  5966. sco3.2v5*)
  5967. symcode='[DT]'
  5968. ;;
  5969. sysv4.2uw2*)
  5970. symcode='[DT]'
  5971. ;;
  5972. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5973. symcode='[ABDT]'
  5974. ;;
  5975. sysv4)
  5976. symcode='[DFNSTU]'
  5977. ;;
  5978. esac
  5979. # If we're using GNU nm, then use its standard symbol codes.
  5980. case `$NM -V 2>&1` in
  5981. *GNU* | *'with BFD'*)
  5982. symcode='[ABCDGIRSTW]' ;;
  5983. esac
  5984. # Transform an extracted symbol line into a proper C declaration.
  5985. # Some systems (esp. on ia64) link data and code symbols differently,
  5986. # so use this general approach.
  5987. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5988. # Transform an extracted symbol line into symbol name and symbol address
  5989. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5990. 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'"
  5991. # Handle CRLF in mingw tool chain
  5992. opt_cr=
  5993. case $build_os in
  5994. mingw*)
  5995. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5996. ;;
  5997. esac
  5998. # Try without a prefix underscore, then with it.
  5999. for ac_symprfx in "" "_"; do
  6000. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6001. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6002. # Write the raw and C identifiers.
  6003. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6004. # Fake it for dumpbin and say T for any non-static function
  6005. # and D for any global variable.
  6006. # Also find C++ and __fastcall symbols from MSVC++,
  6007. # which start with @ or ?.
  6008. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6009. " {last_section=section; section=\$ 3};"\
  6010. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6011. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6012. " \$ 0!~/External *\|/{next};"\
  6013. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6014. " {if(hide[section]) next};"\
  6015. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6016. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6017. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6018. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6019. " ' prfx=^$ac_symprfx"
  6020. else
  6021. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6022. fi
  6023. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6024. # Check to see that the pipe works correctly.
  6025. pipe_works=no
  6026. rm -f conftest*
  6027. cat > conftest.$ac_ext <<_LT_EOF
  6028. #ifdef __cplusplus
  6029. extern "C" {
  6030. #endif
  6031. char nm_test_var;
  6032. void nm_test_func(void);
  6033. void nm_test_func(void){}
  6034. #ifdef __cplusplus
  6035. }
  6036. #endif
  6037. int main(){nm_test_var='a';nm_test_func();return(0);}
  6038. _LT_EOF
  6039. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6040. (eval $ac_compile) 2>&5
  6041. ac_status=$?
  6042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6043. test $ac_status = 0; }; then
  6044. # Now try to grab the symbols.
  6045. nlist=conftest.nm
  6046. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6047. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6048. ac_status=$?
  6049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6050. test $ac_status = 0; } && test -s "$nlist"; then
  6051. # Try sorting and uniquifying the output.
  6052. if sort "$nlist" | uniq > "$nlist"T; then
  6053. mv -f "$nlist"T "$nlist"
  6054. else
  6055. rm -f "$nlist"T
  6056. fi
  6057. # Make sure that we snagged all the symbols we need.
  6058. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6059. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6060. cat <<_LT_EOF > conftest.$ac_ext
  6061. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6062. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6063. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6064. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6065. # define LT_DLSYM_CONST
  6066. #elif defined(__osf__)
  6067. /* This system does not cope well with relocations in const data. */
  6068. # define LT_DLSYM_CONST
  6069. #else
  6070. # define LT_DLSYM_CONST const
  6071. #endif
  6072. #ifdef __cplusplus
  6073. extern "C" {
  6074. #endif
  6075. _LT_EOF
  6076. # Now generate the symbol file.
  6077. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6078. cat <<_LT_EOF >> conftest.$ac_ext
  6079. /* The mapping between symbol names and symbols. */
  6080. LT_DLSYM_CONST struct {
  6081. const char *name;
  6082. void *address;
  6083. }
  6084. lt__PROGRAM__LTX_preloaded_symbols[] =
  6085. {
  6086. { "@PROGRAM@", (void *) 0 },
  6087. _LT_EOF
  6088. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6089. cat <<\_LT_EOF >> conftest.$ac_ext
  6090. {0, (void *) 0}
  6091. };
  6092. /* This works around a problem in FreeBSD linker */
  6093. #ifdef FREEBSD_WORKAROUND
  6094. static const void *lt_preloaded_setup() {
  6095. return lt__PROGRAM__LTX_preloaded_symbols;
  6096. }
  6097. #endif
  6098. #ifdef __cplusplus
  6099. }
  6100. #endif
  6101. _LT_EOF
  6102. # Now try linking the two files.
  6103. mv conftest.$ac_objext conftstm.$ac_objext
  6104. lt_globsym_save_LIBS=$LIBS
  6105. lt_globsym_save_CFLAGS=$CFLAGS
  6106. LIBS="conftstm.$ac_objext"
  6107. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6108. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6109. (eval $ac_link) 2>&5
  6110. ac_status=$?
  6111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6112. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6113. pipe_works=yes
  6114. fi
  6115. LIBS=$lt_globsym_save_LIBS
  6116. CFLAGS=$lt_globsym_save_CFLAGS
  6117. else
  6118. echo "cannot find nm_test_func in $nlist" >&5
  6119. fi
  6120. else
  6121. echo "cannot find nm_test_var in $nlist" >&5
  6122. fi
  6123. else
  6124. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6125. fi
  6126. else
  6127. echo "$progname: failed program was:" >&5
  6128. cat conftest.$ac_ext >&5
  6129. fi
  6130. rm -rf conftest* conftst*
  6131. # Do not use the global_symbol_pipe unless it works.
  6132. if test "$pipe_works" = yes; then
  6133. break
  6134. else
  6135. lt_cv_sys_global_symbol_pipe=
  6136. fi
  6137. done
  6138. fi
  6139. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6140. lt_cv_sys_global_symbol_to_cdecl=
  6141. fi
  6142. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6144. $as_echo "failed" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6147. $as_echo "ok" >&6; }
  6148. fi
  6149. # Response file support.
  6150. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6151. nm_file_list_spec='@'
  6152. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6153. nm_file_list_spec='@'
  6154. fi
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6156. $as_echo_n "checking for sysroot... " >&6; }
  6157. # Check whether --with-sysroot was given.
  6158. if test "${with_sysroot+set}" = set; then :
  6159. withval=$with_sysroot;
  6160. else
  6161. with_sysroot=no
  6162. fi
  6163. lt_sysroot=
  6164. case ${with_sysroot} in #(
  6165. yes)
  6166. if test "$GCC" = yes; then
  6167. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6168. fi
  6169. ;; #(
  6170. /*)
  6171. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6172. ;; #(
  6173. no|'')
  6174. ;; #(
  6175. *)
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6177. $as_echo "${with_sysroot}" >&6; }
  6178. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6179. ;;
  6180. esac
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6182. $as_echo "${lt_sysroot:-no}" >&6; }
  6183. # Check whether --enable-libtool-lock was given.
  6184. if test "${enable_libtool_lock+set}" = set; then :
  6185. enableval=$enable_libtool_lock;
  6186. fi
  6187. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6188. # Some flags need to be propagated to the compiler or linker for good
  6189. # libtool support.
  6190. case $host in
  6191. ia64-*-hpux*)
  6192. # Find out which ABI we are using.
  6193. echo 'int i;' > conftest.$ac_ext
  6194. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6195. (eval $ac_compile) 2>&5
  6196. ac_status=$?
  6197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6198. test $ac_status = 0; }; then
  6199. case `/usr/bin/file conftest.$ac_objext` in
  6200. *ELF-32*)
  6201. HPUX_IA64_MODE="32"
  6202. ;;
  6203. *ELF-64*)
  6204. HPUX_IA64_MODE="64"
  6205. ;;
  6206. esac
  6207. fi
  6208. rm -rf conftest*
  6209. ;;
  6210. *-*-irix6*)
  6211. # Find out which ABI we are using.
  6212. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6213. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6214. (eval $ac_compile) 2>&5
  6215. ac_status=$?
  6216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6217. test $ac_status = 0; }; then
  6218. if test "$lt_cv_prog_gnu_ld" = yes; then
  6219. case `/usr/bin/file conftest.$ac_objext` in
  6220. *32-bit*)
  6221. LD="${LD-ld} -melf32bsmip"
  6222. ;;
  6223. *N32*)
  6224. LD="${LD-ld} -melf32bmipn32"
  6225. ;;
  6226. *64-bit*)
  6227. LD="${LD-ld} -melf64bmip"
  6228. ;;
  6229. esac
  6230. else
  6231. case `/usr/bin/file conftest.$ac_objext` in
  6232. *32-bit*)
  6233. LD="${LD-ld} -32"
  6234. ;;
  6235. *N32*)
  6236. LD="${LD-ld} -n32"
  6237. ;;
  6238. *64-bit*)
  6239. LD="${LD-ld} -64"
  6240. ;;
  6241. esac
  6242. fi
  6243. fi
  6244. rm -rf conftest*
  6245. ;;
  6246. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6247. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6248. # Find out which ABI we are using.
  6249. echo 'int i;' > conftest.$ac_ext
  6250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6251. (eval $ac_compile) 2>&5
  6252. ac_status=$?
  6253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6254. test $ac_status = 0; }; then
  6255. case `/usr/bin/file conftest.o` in
  6256. *32-bit*)
  6257. case $host in
  6258. x86_64-*kfreebsd*-gnu)
  6259. LD="${LD-ld} -m elf_i386_fbsd"
  6260. ;;
  6261. x86_64-*linux*)
  6262. LD="${LD-ld} -m elf_i386"
  6263. ;;
  6264. powerpc64le-*linux*)
  6265. LD="${LD-ld} -m elf32lppclinux"
  6266. ;;
  6267. powerpc64-*linux*)
  6268. LD="${LD-ld} -m elf32ppclinux"
  6269. ;;
  6270. s390x-*linux*)
  6271. LD="${LD-ld} -m elf_s390"
  6272. ;;
  6273. sparc64-*linux*)
  6274. LD="${LD-ld} -m elf32_sparc"
  6275. ;;
  6276. esac
  6277. ;;
  6278. *64-bit*)
  6279. case $host in
  6280. x86_64-*kfreebsd*-gnu)
  6281. LD="${LD-ld} -m elf_x86_64_fbsd"
  6282. ;;
  6283. x86_64-*linux*)
  6284. LD="${LD-ld} -m elf_x86_64"
  6285. ;;
  6286. powerpcle-*linux*)
  6287. LD="${LD-ld} -m elf64lppc"
  6288. ;;
  6289. powerpc-*linux*)
  6290. LD="${LD-ld} -m elf64ppc"
  6291. ;;
  6292. s390*-*linux*|s390*-*tpf*)
  6293. LD="${LD-ld} -m elf64_s390"
  6294. ;;
  6295. sparc*-*linux*)
  6296. LD="${LD-ld} -m elf64_sparc"
  6297. ;;
  6298. esac
  6299. ;;
  6300. esac
  6301. fi
  6302. rm -rf conftest*
  6303. ;;
  6304. *-*-sco3.2v5*)
  6305. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6306. SAVE_CFLAGS="$CFLAGS"
  6307. CFLAGS="$CFLAGS -belf"
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6309. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6310. if ${lt_cv_cc_needs_belf+:} false; then :
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. ac_ext=c
  6314. ac_cpp='$CPP $CPPFLAGS'
  6315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6319. /* end confdefs.h. */
  6320. int
  6321. main ()
  6322. {
  6323. ;
  6324. return 0;
  6325. }
  6326. _ACEOF
  6327. if ac_fn_c_try_link "$LINENO"; then :
  6328. lt_cv_cc_needs_belf=yes
  6329. else
  6330. lt_cv_cc_needs_belf=no
  6331. fi
  6332. rm -f core conftest.err conftest.$ac_objext \
  6333. conftest$ac_exeext conftest.$ac_ext
  6334. ac_ext=c
  6335. ac_cpp='$CPP $CPPFLAGS'
  6336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6339. fi
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6341. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6342. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6343. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6344. CFLAGS="$SAVE_CFLAGS"
  6345. fi
  6346. ;;
  6347. *-*solaris*)
  6348. # Find out which ABI we are using.
  6349. echo 'int i;' > conftest.$ac_ext
  6350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6351. (eval $ac_compile) 2>&5
  6352. ac_status=$?
  6353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6354. test $ac_status = 0; }; then
  6355. case `/usr/bin/file conftest.o` in
  6356. *64-bit*)
  6357. case $lt_cv_prog_gnu_ld in
  6358. yes*)
  6359. case $host in
  6360. i?86-*-solaris*)
  6361. LD="${LD-ld} -m elf_x86_64"
  6362. ;;
  6363. sparc*-*-solaris*)
  6364. LD="${LD-ld} -m elf64_sparc"
  6365. ;;
  6366. esac
  6367. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6368. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6369. LD="${LD-ld}_sol2"
  6370. fi
  6371. ;;
  6372. *)
  6373. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6374. LD="${LD-ld} -64"
  6375. fi
  6376. ;;
  6377. esac
  6378. ;;
  6379. esac
  6380. fi
  6381. rm -rf conftest*
  6382. ;;
  6383. esac
  6384. need_locks="$enable_libtool_lock"
  6385. if test -n "$ac_tool_prefix"; then
  6386. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6387. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6389. $as_echo_n "checking for $ac_word... " >&6; }
  6390. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6391. $as_echo_n "(cached) " >&6
  6392. else
  6393. if test -n "$MANIFEST_TOOL"; then
  6394. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6395. else
  6396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6397. for as_dir in $PATH
  6398. do
  6399. IFS=$as_save_IFS
  6400. test -z "$as_dir" && as_dir=.
  6401. for ac_exec_ext in '' $ac_executable_extensions; do
  6402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6403. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6405. break 2
  6406. fi
  6407. done
  6408. done
  6409. IFS=$as_save_IFS
  6410. fi
  6411. fi
  6412. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6413. if test -n "$MANIFEST_TOOL"; then
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6415. $as_echo "$MANIFEST_TOOL" >&6; }
  6416. else
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6418. $as_echo "no" >&6; }
  6419. fi
  6420. fi
  6421. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6422. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6423. # Extract the first word of "mt", so it can be a program name with args.
  6424. set dummy mt; ac_word=$2
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6426. $as_echo_n "checking for $ac_word... " >&6; }
  6427. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6428. $as_echo_n "(cached) " >&6
  6429. else
  6430. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6431. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6432. else
  6433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6434. for as_dir in $PATH
  6435. do
  6436. IFS=$as_save_IFS
  6437. test -z "$as_dir" && as_dir=.
  6438. for ac_exec_ext in '' $ac_executable_extensions; do
  6439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6440. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6442. break 2
  6443. fi
  6444. done
  6445. done
  6446. IFS=$as_save_IFS
  6447. fi
  6448. fi
  6449. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6450. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6452. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6453. else
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6455. $as_echo "no" >&6; }
  6456. fi
  6457. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6458. MANIFEST_TOOL=":"
  6459. else
  6460. case $cross_compiling:$ac_tool_warned in
  6461. yes:)
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6464. ac_tool_warned=yes ;;
  6465. esac
  6466. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6467. fi
  6468. else
  6469. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6470. fi
  6471. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6473. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6474. if ${lt_cv_path_mainfest_tool+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. lt_cv_path_mainfest_tool=no
  6478. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6479. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6480. cat conftest.err >&5
  6481. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6482. lt_cv_path_mainfest_tool=yes
  6483. fi
  6484. rm -f conftest*
  6485. fi
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6487. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6488. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6489. MANIFEST_TOOL=:
  6490. fi
  6491. case $host_os in
  6492. rhapsody* | darwin*)
  6493. if test -n "$ac_tool_prefix"; then
  6494. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6495. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6497. $as_echo_n "checking for $ac_word... " >&6; }
  6498. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. if test -n "$DSYMUTIL"; then
  6502. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6503. else
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. test -z "$as_dir" && as_dir=.
  6509. for ac_exec_ext in '' $ac_executable_extensions; do
  6510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6511. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6513. break 2
  6514. fi
  6515. done
  6516. done
  6517. IFS=$as_save_IFS
  6518. fi
  6519. fi
  6520. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6521. if test -n "$DSYMUTIL"; then
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6523. $as_echo "$DSYMUTIL" >&6; }
  6524. else
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6526. $as_echo "no" >&6; }
  6527. fi
  6528. fi
  6529. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6530. ac_ct_DSYMUTIL=$DSYMUTIL
  6531. # Extract the first word of "dsymutil", so it can be a program name with args.
  6532. set dummy dsymutil; ac_word=$2
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6534. $as_echo_n "checking for $ac_word... " >&6; }
  6535. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. if test -n "$ac_ct_DSYMUTIL"; then
  6539. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6540. else
  6541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6542. for as_dir in $PATH
  6543. do
  6544. IFS=$as_save_IFS
  6545. test -z "$as_dir" && as_dir=.
  6546. for ac_exec_ext in '' $ac_executable_extensions; do
  6547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6548. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6550. break 2
  6551. fi
  6552. done
  6553. done
  6554. IFS=$as_save_IFS
  6555. fi
  6556. fi
  6557. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6558. if test -n "$ac_ct_DSYMUTIL"; then
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6560. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6561. else
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6563. $as_echo "no" >&6; }
  6564. fi
  6565. if test "x$ac_ct_DSYMUTIL" = x; then
  6566. DSYMUTIL=":"
  6567. else
  6568. case $cross_compiling:$ac_tool_warned in
  6569. yes:)
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6572. ac_tool_warned=yes ;;
  6573. esac
  6574. DSYMUTIL=$ac_ct_DSYMUTIL
  6575. fi
  6576. else
  6577. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6578. fi
  6579. if test -n "$ac_tool_prefix"; then
  6580. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6581. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6583. $as_echo_n "checking for $ac_word... " >&6; }
  6584. if ${ac_cv_prog_NMEDIT+:} false; then :
  6585. $as_echo_n "(cached) " >&6
  6586. else
  6587. if test -n "$NMEDIT"; then
  6588. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6589. else
  6590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6591. for as_dir in $PATH
  6592. do
  6593. IFS=$as_save_IFS
  6594. test -z "$as_dir" && as_dir=.
  6595. for ac_exec_ext in '' $ac_executable_extensions; do
  6596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6597. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6599. break 2
  6600. fi
  6601. done
  6602. done
  6603. IFS=$as_save_IFS
  6604. fi
  6605. fi
  6606. NMEDIT=$ac_cv_prog_NMEDIT
  6607. if test -n "$NMEDIT"; then
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6609. $as_echo "$NMEDIT" >&6; }
  6610. else
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6612. $as_echo "no" >&6; }
  6613. fi
  6614. fi
  6615. if test -z "$ac_cv_prog_NMEDIT"; then
  6616. ac_ct_NMEDIT=$NMEDIT
  6617. # Extract the first word of "nmedit", so it can be a program name with args.
  6618. set dummy nmedit; ac_word=$2
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6620. $as_echo_n "checking for $ac_word... " >&6; }
  6621. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6622. $as_echo_n "(cached) " >&6
  6623. else
  6624. if test -n "$ac_ct_NMEDIT"; then
  6625. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. test -z "$as_dir" && as_dir=.
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6644. if test -n "$ac_ct_NMEDIT"; then
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6646. $as_echo "$ac_ct_NMEDIT" >&6; }
  6647. else
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. $as_echo "no" >&6; }
  6650. fi
  6651. if test "x$ac_ct_NMEDIT" = x; then
  6652. NMEDIT=":"
  6653. else
  6654. case $cross_compiling:$ac_tool_warned in
  6655. yes:)
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6658. ac_tool_warned=yes ;;
  6659. esac
  6660. NMEDIT=$ac_ct_NMEDIT
  6661. fi
  6662. else
  6663. NMEDIT="$ac_cv_prog_NMEDIT"
  6664. fi
  6665. if test -n "$ac_tool_prefix"; then
  6666. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6667. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6669. $as_echo_n "checking for $ac_word... " >&6; }
  6670. if ${ac_cv_prog_LIPO+:} false; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. if test -n "$LIPO"; then
  6674. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6675. else
  6676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677. for as_dir in $PATH
  6678. do
  6679. IFS=$as_save_IFS
  6680. test -z "$as_dir" && as_dir=.
  6681. for ac_exec_ext in '' $ac_executable_extensions; do
  6682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6683. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6685. break 2
  6686. fi
  6687. done
  6688. done
  6689. IFS=$as_save_IFS
  6690. fi
  6691. fi
  6692. LIPO=$ac_cv_prog_LIPO
  6693. if test -n "$LIPO"; then
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6695. $as_echo "$LIPO" >&6; }
  6696. else
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6698. $as_echo "no" >&6; }
  6699. fi
  6700. fi
  6701. if test -z "$ac_cv_prog_LIPO"; then
  6702. ac_ct_LIPO=$LIPO
  6703. # Extract the first word of "lipo", so it can be a program name with args.
  6704. set dummy lipo; ac_word=$2
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6706. $as_echo_n "checking for $ac_word... " >&6; }
  6707. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6708. $as_echo_n "(cached) " >&6
  6709. else
  6710. if test -n "$ac_ct_LIPO"; then
  6711. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6712. else
  6713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6714. for as_dir in $PATH
  6715. do
  6716. IFS=$as_save_IFS
  6717. test -z "$as_dir" && as_dir=.
  6718. for ac_exec_ext in '' $ac_executable_extensions; do
  6719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6720. ac_cv_prog_ac_ct_LIPO="lipo"
  6721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6722. break 2
  6723. fi
  6724. done
  6725. done
  6726. IFS=$as_save_IFS
  6727. fi
  6728. fi
  6729. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6730. if test -n "$ac_ct_LIPO"; then
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6732. $as_echo "$ac_ct_LIPO" >&6; }
  6733. else
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6735. $as_echo "no" >&6; }
  6736. fi
  6737. if test "x$ac_ct_LIPO" = x; then
  6738. LIPO=":"
  6739. else
  6740. case $cross_compiling:$ac_tool_warned in
  6741. yes:)
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6744. ac_tool_warned=yes ;;
  6745. esac
  6746. LIPO=$ac_ct_LIPO
  6747. fi
  6748. else
  6749. LIPO="$ac_cv_prog_LIPO"
  6750. fi
  6751. if test -n "$ac_tool_prefix"; then
  6752. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6753. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6755. $as_echo_n "checking for $ac_word... " >&6; }
  6756. if ${ac_cv_prog_OTOOL+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. if test -n "$OTOOL"; then
  6760. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6761. else
  6762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6763. for as_dir in $PATH
  6764. do
  6765. IFS=$as_save_IFS
  6766. test -z "$as_dir" && as_dir=.
  6767. for ac_exec_ext in '' $ac_executable_extensions; do
  6768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6769. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6771. break 2
  6772. fi
  6773. done
  6774. done
  6775. IFS=$as_save_IFS
  6776. fi
  6777. fi
  6778. OTOOL=$ac_cv_prog_OTOOL
  6779. if test -n "$OTOOL"; then
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6781. $as_echo "$OTOOL" >&6; }
  6782. else
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6784. $as_echo "no" >&6; }
  6785. fi
  6786. fi
  6787. if test -z "$ac_cv_prog_OTOOL"; then
  6788. ac_ct_OTOOL=$OTOOL
  6789. # Extract the first word of "otool", so it can be a program name with args.
  6790. set dummy otool; ac_word=$2
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6792. $as_echo_n "checking for $ac_word... " >&6; }
  6793. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6794. $as_echo_n "(cached) " >&6
  6795. else
  6796. if test -n "$ac_ct_OTOOL"; then
  6797. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6798. else
  6799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6800. for as_dir in $PATH
  6801. do
  6802. IFS=$as_save_IFS
  6803. test -z "$as_dir" && as_dir=.
  6804. for ac_exec_ext in '' $ac_executable_extensions; do
  6805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6806. ac_cv_prog_ac_ct_OTOOL="otool"
  6807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6808. break 2
  6809. fi
  6810. done
  6811. done
  6812. IFS=$as_save_IFS
  6813. fi
  6814. fi
  6815. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6816. if test -n "$ac_ct_OTOOL"; then
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6818. $as_echo "$ac_ct_OTOOL" >&6; }
  6819. else
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6821. $as_echo "no" >&6; }
  6822. fi
  6823. if test "x$ac_ct_OTOOL" = x; then
  6824. OTOOL=":"
  6825. else
  6826. case $cross_compiling:$ac_tool_warned in
  6827. yes:)
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6829. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6830. ac_tool_warned=yes ;;
  6831. esac
  6832. OTOOL=$ac_ct_OTOOL
  6833. fi
  6834. else
  6835. OTOOL="$ac_cv_prog_OTOOL"
  6836. fi
  6837. if test -n "$ac_tool_prefix"; then
  6838. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6839. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6841. $as_echo_n "checking for $ac_word... " >&6; }
  6842. if ${ac_cv_prog_OTOOL64+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. if test -n "$OTOOL64"; then
  6846. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6847. else
  6848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6849. for as_dir in $PATH
  6850. do
  6851. IFS=$as_save_IFS
  6852. test -z "$as_dir" && as_dir=.
  6853. for ac_exec_ext in '' $ac_executable_extensions; do
  6854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6855. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6857. break 2
  6858. fi
  6859. done
  6860. done
  6861. IFS=$as_save_IFS
  6862. fi
  6863. fi
  6864. OTOOL64=$ac_cv_prog_OTOOL64
  6865. if test -n "$OTOOL64"; then
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6867. $as_echo "$OTOOL64" >&6; }
  6868. else
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6870. $as_echo "no" >&6; }
  6871. fi
  6872. fi
  6873. if test -z "$ac_cv_prog_OTOOL64"; then
  6874. ac_ct_OTOOL64=$OTOOL64
  6875. # Extract the first word of "otool64", so it can be a program name with args.
  6876. set dummy otool64; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$ac_ct_OTOOL64"; then
  6883. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6902. if test -n "$ac_ct_OTOOL64"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6904. $as_echo "$ac_ct_OTOOL64" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. if test "x$ac_ct_OTOOL64" = x; then
  6910. OTOOL64=":"
  6911. else
  6912. case $cross_compiling:$ac_tool_warned in
  6913. yes:)
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6916. ac_tool_warned=yes ;;
  6917. esac
  6918. OTOOL64=$ac_ct_OTOOL64
  6919. fi
  6920. else
  6921. OTOOL64="$ac_cv_prog_OTOOL64"
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6924. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6925. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. lt_cv_apple_cc_single_mod=no
  6929. if test -z "${LT_MULTI_MODULE}"; then
  6930. # By default we will add the -single_module flag. You can override
  6931. # by either setting the environment variable LT_MULTI_MODULE
  6932. # non-empty at configure time, or by adding -multi_module to the
  6933. # link flags.
  6934. rm -rf libconftest.dylib*
  6935. echo "int foo(void){return 1;}" > conftest.c
  6936. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6937. -dynamiclib -Wl,-single_module conftest.c" >&5
  6938. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6939. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6940. _lt_result=$?
  6941. # If there is a non-empty error log, and "single_module"
  6942. # appears in it, assume the flag caused a linker warning
  6943. if test -s conftest.err && $GREP single_module conftest.err; then
  6944. cat conftest.err >&5
  6945. # Otherwise, if the output was created with a 0 exit code from
  6946. # the compiler, it worked.
  6947. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6948. lt_cv_apple_cc_single_mod=yes
  6949. else
  6950. cat conftest.err >&5
  6951. fi
  6952. rm -rf libconftest.dylib*
  6953. rm -f conftest.*
  6954. fi
  6955. fi
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6957. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6959. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6960. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6961. $as_echo_n "(cached) " >&6
  6962. else
  6963. lt_cv_ld_exported_symbols_list=no
  6964. save_LDFLAGS=$LDFLAGS
  6965. echo "_main" > conftest.sym
  6966. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6968. /* end confdefs.h. */
  6969. int
  6970. main ()
  6971. {
  6972. ;
  6973. return 0;
  6974. }
  6975. _ACEOF
  6976. if ac_fn_c_try_link "$LINENO"; then :
  6977. lt_cv_ld_exported_symbols_list=yes
  6978. else
  6979. lt_cv_ld_exported_symbols_list=no
  6980. fi
  6981. rm -f core conftest.err conftest.$ac_objext \
  6982. conftest$ac_exeext conftest.$ac_ext
  6983. LDFLAGS="$save_LDFLAGS"
  6984. fi
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6986. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6988. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6989. if ${lt_cv_ld_force_load+:} false; then :
  6990. $as_echo_n "(cached) " >&6
  6991. else
  6992. lt_cv_ld_force_load=no
  6993. cat > conftest.c << _LT_EOF
  6994. int forced_loaded() { return 2;}
  6995. _LT_EOF
  6996. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6997. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6998. echo "$AR cru libconftest.a conftest.o" >&5
  6999. $AR cru libconftest.a conftest.o 2>&5
  7000. echo "$RANLIB libconftest.a" >&5
  7001. $RANLIB libconftest.a 2>&5
  7002. cat > conftest.c << _LT_EOF
  7003. int main() { return 0;}
  7004. _LT_EOF
  7005. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7006. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7007. _lt_result=$?
  7008. if test -s conftest.err && $GREP force_load conftest.err; then
  7009. cat conftest.err >&5
  7010. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7011. lt_cv_ld_force_load=yes
  7012. else
  7013. cat conftest.err >&5
  7014. fi
  7015. rm -f conftest.err libconftest.a conftest conftest.c
  7016. rm -rf conftest.dSYM
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7019. $as_echo "$lt_cv_ld_force_load" >&6; }
  7020. case $host_os in
  7021. rhapsody* | darwin1.[012])
  7022. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7023. darwin1.*)
  7024. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7025. darwin*) # darwin 5.x on
  7026. # if running on 10.5 or later, the deployment target defaults
  7027. # to the OS version, if on x86, and 10.4, the deployment
  7028. # target defaults to 10.4. Don't you love it?
  7029. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7030. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7031. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7032. 10.[012]*)
  7033. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7034. 10.*)
  7035. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7036. esac
  7037. ;;
  7038. esac
  7039. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7040. _lt_dar_single_mod='$single_module'
  7041. fi
  7042. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7043. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7044. else
  7045. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7046. fi
  7047. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7048. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7049. else
  7050. _lt_dsymutil=
  7051. fi
  7052. ;;
  7053. esac
  7054. ac_ext=c
  7055. ac_cpp='$CPP $CPPFLAGS'
  7056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7060. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7061. # On Suns, sometimes $CPP names a directory.
  7062. if test -n "$CPP" && test -d "$CPP"; then
  7063. CPP=
  7064. fi
  7065. if test -z "$CPP"; then
  7066. if ${ac_cv_prog_CPP+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. # Double quotes because CPP needs to be expanded
  7070. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7071. do
  7072. ac_preproc_ok=false
  7073. for ac_c_preproc_warn_flag in '' yes
  7074. do
  7075. # Use a header file that comes with gcc, so configuring glibc
  7076. # with a fresh cross-compiler works.
  7077. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7078. # <limits.h> exists even on freestanding compilers.
  7079. # On the NeXT, cc -E runs the code through the compiler's parser,
  7080. # not just through cpp. "Syntax error" is here to catch this case.
  7081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7082. /* end confdefs.h. */
  7083. #ifdef __STDC__
  7084. # include <limits.h>
  7085. #else
  7086. # include <assert.h>
  7087. #endif
  7088. Syntax error
  7089. _ACEOF
  7090. if ac_fn_c_try_cpp "$LINENO"; then :
  7091. else
  7092. # Broken: fails on valid input.
  7093. continue
  7094. fi
  7095. rm -f conftest.err conftest.i conftest.$ac_ext
  7096. # OK, works on sane cases. Now check whether nonexistent headers
  7097. # can be detected and how.
  7098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7099. /* end confdefs.h. */
  7100. #include <ac_nonexistent.h>
  7101. _ACEOF
  7102. if ac_fn_c_try_cpp "$LINENO"; then :
  7103. # Broken: success on invalid input.
  7104. continue
  7105. else
  7106. # Passes both tests.
  7107. ac_preproc_ok=:
  7108. break
  7109. fi
  7110. rm -f conftest.err conftest.i conftest.$ac_ext
  7111. done
  7112. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7113. rm -f conftest.i conftest.err conftest.$ac_ext
  7114. if $ac_preproc_ok; then :
  7115. break
  7116. fi
  7117. done
  7118. ac_cv_prog_CPP=$CPP
  7119. fi
  7120. CPP=$ac_cv_prog_CPP
  7121. else
  7122. ac_cv_prog_CPP=$CPP
  7123. fi
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7125. $as_echo "$CPP" >&6; }
  7126. ac_preproc_ok=false
  7127. for ac_c_preproc_warn_flag in '' yes
  7128. do
  7129. # Use a header file that comes with gcc, so configuring glibc
  7130. # with a fresh cross-compiler works.
  7131. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7132. # <limits.h> exists even on freestanding compilers.
  7133. # On the NeXT, cc -E runs the code through the compiler's parser,
  7134. # not just through cpp. "Syntax error" is here to catch this case.
  7135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7136. /* end confdefs.h. */
  7137. #ifdef __STDC__
  7138. # include <limits.h>
  7139. #else
  7140. # include <assert.h>
  7141. #endif
  7142. Syntax error
  7143. _ACEOF
  7144. if ac_fn_c_try_cpp "$LINENO"; then :
  7145. else
  7146. # Broken: fails on valid input.
  7147. continue
  7148. fi
  7149. rm -f conftest.err conftest.i conftest.$ac_ext
  7150. # OK, works on sane cases. Now check whether nonexistent headers
  7151. # can be detected and how.
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. #include <ac_nonexistent.h>
  7155. _ACEOF
  7156. if ac_fn_c_try_cpp "$LINENO"; then :
  7157. # Broken: success on invalid input.
  7158. continue
  7159. else
  7160. # Passes both tests.
  7161. ac_preproc_ok=:
  7162. break
  7163. fi
  7164. rm -f conftest.err conftest.i conftest.$ac_ext
  7165. done
  7166. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7167. rm -f conftest.i conftest.err conftest.$ac_ext
  7168. if $ac_preproc_ok; then :
  7169. else
  7170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7172. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7173. See \`config.log' for more details" "$LINENO" 5; }
  7174. fi
  7175. ac_ext=c
  7176. ac_cpp='$CPP $CPPFLAGS'
  7177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7181. $as_echo_n "checking for ANSI C header files... " >&6; }
  7182. if ${ac_cv_header_stdc+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7186. /* end confdefs.h. */
  7187. #include <stdlib.h>
  7188. #include <stdarg.h>
  7189. #include <string.h>
  7190. #include <float.h>
  7191. int
  7192. main ()
  7193. {
  7194. ;
  7195. return 0;
  7196. }
  7197. _ACEOF
  7198. if ac_fn_c_try_compile "$LINENO"; then :
  7199. ac_cv_header_stdc=yes
  7200. else
  7201. ac_cv_header_stdc=no
  7202. fi
  7203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7204. if test $ac_cv_header_stdc = yes; then
  7205. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7207. /* end confdefs.h. */
  7208. #include <string.h>
  7209. _ACEOF
  7210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7211. $EGREP "memchr" >/dev/null 2>&1; then :
  7212. else
  7213. ac_cv_header_stdc=no
  7214. fi
  7215. rm -f conftest*
  7216. fi
  7217. if test $ac_cv_header_stdc = yes; then
  7218. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7220. /* end confdefs.h. */
  7221. #include <stdlib.h>
  7222. _ACEOF
  7223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7224. $EGREP "free" >/dev/null 2>&1; then :
  7225. else
  7226. ac_cv_header_stdc=no
  7227. fi
  7228. rm -f conftest*
  7229. fi
  7230. if test $ac_cv_header_stdc = yes; then
  7231. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7232. if test "$cross_compiling" = yes; then :
  7233. :
  7234. else
  7235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7236. /* end confdefs.h. */
  7237. #include <ctype.h>
  7238. #include <stdlib.h>
  7239. #if ((' ' & 0x0FF) == 0x020)
  7240. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7241. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7242. #else
  7243. # define ISLOWER(c) \
  7244. (('a' <= (c) && (c) <= 'i') \
  7245. || ('j' <= (c) && (c) <= 'r') \
  7246. || ('s' <= (c) && (c) <= 'z'))
  7247. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7248. #endif
  7249. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7250. int
  7251. main ()
  7252. {
  7253. int i;
  7254. for (i = 0; i < 256; i++)
  7255. if (XOR (islower (i), ISLOWER (i))
  7256. || toupper (i) != TOUPPER (i))
  7257. return 2;
  7258. return 0;
  7259. }
  7260. _ACEOF
  7261. if ac_fn_c_try_run "$LINENO"; then :
  7262. else
  7263. ac_cv_header_stdc=no
  7264. fi
  7265. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7266. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7267. fi
  7268. fi
  7269. fi
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7271. $as_echo "$ac_cv_header_stdc" >&6; }
  7272. if test $ac_cv_header_stdc = yes; then
  7273. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7274. fi
  7275. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7276. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7277. inttypes.h stdint.h unistd.h
  7278. do :
  7279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7280. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7281. "
  7282. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7283. cat >>confdefs.h <<_ACEOF
  7284. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7285. _ACEOF
  7286. fi
  7287. done
  7288. for ac_header in dlfcn.h
  7289. do :
  7290. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7291. "
  7292. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7293. cat >>confdefs.h <<_ACEOF
  7294. #define HAVE_DLFCN_H 1
  7295. _ACEOF
  7296. fi
  7297. done
  7298. func_stripname_cnf ()
  7299. {
  7300. case ${2} in
  7301. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7302. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7303. esac
  7304. } # func_stripname_cnf
  7305. # Set options
  7306. enable_dlopen=no
  7307. enable_win32_dll=no
  7308. # Check whether --enable-shared was given.
  7309. if test "${enable_shared+set}" = set; then :
  7310. enableval=$enable_shared; p=${PACKAGE-default}
  7311. case $enableval in
  7312. yes) enable_shared=yes ;;
  7313. no) enable_shared=no ;;
  7314. *)
  7315. enable_shared=no
  7316. # Look at the argument we got. We use all the common list separators.
  7317. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7318. for pkg in $enableval; do
  7319. IFS="$lt_save_ifs"
  7320. if test "X$pkg" = "X$p"; then
  7321. enable_shared=yes
  7322. fi
  7323. done
  7324. IFS="$lt_save_ifs"
  7325. ;;
  7326. esac
  7327. else
  7328. enable_shared=yes
  7329. fi
  7330. # Check whether --enable-static was given.
  7331. if test "${enable_static+set}" = set; then :
  7332. enableval=$enable_static; p=${PACKAGE-default}
  7333. case $enableval in
  7334. yes) enable_static=yes ;;
  7335. no) enable_static=no ;;
  7336. *)
  7337. enable_static=no
  7338. # Look at the argument we got. We use all the common list separators.
  7339. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7340. for pkg in $enableval; do
  7341. IFS="$lt_save_ifs"
  7342. if test "X$pkg" = "X$p"; then
  7343. enable_static=yes
  7344. fi
  7345. done
  7346. IFS="$lt_save_ifs"
  7347. ;;
  7348. esac
  7349. else
  7350. enable_static=yes
  7351. fi
  7352. # Check whether --with-pic was given.
  7353. if test "${with_pic+set}" = set; then :
  7354. withval=$with_pic; lt_p=${PACKAGE-default}
  7355. case $withval in
  7356. yes|no) pic_mode=$withval ;;
  7357. *)
  7358. pic_mode=default
  7359. # Look at the argument we got. We use all the common list separators.
  7360. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7361. for lt_pkg in $withval; do
  7362. IFS="$lt_save_ifs"
  7363. if test "X$lt_pkg" = "X$lt_p"; then
  7364. pic_mode=yes
  7365. fi
  7366. done
  7367. IFS="$lt_save_ifs"
  7368. ;;
  7369. esac
  7370. else
  7371. pic_mode=default
  7372. fi
  7373. test -z "$pic_mode" && pic_mode=default
  7374. # Check whether --enable-fast-install was given.
  7375. if test "${enable_fast_install+set}" = set; then :
  7376. enableval=$enable_fast_install; p=${PACKAGE-default}
  7377. case $enableval in
  7378. yes) enable_fast_install=yes ;;
  7379. no) enable_fast_install=no ;;
  7380. *)
  7381. enable_fast_install=no
  7382. # Look at the argument we got. We use all the common list separators.
  7383. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7384. for pkg in $enableval; do
  7385. IFS="$lt_save_ifs"
  7386. if test "X$pkg" = "X$p"; then
  7387. enable_fast_install=yes
  7388. fi
  7389. done
  7390. IFS="$lt_save_ifs"
  7391. ;;
  7392. esac
  7393. else
  7394. enable_fast_install=yes
  7395. fi
  7396. # This can be used to rebuild libtool when needed
  7397. LIBTOOL_DEPS="$ltmain"
  7398. # Always use our own libtool.
  7399. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7400. test -z "$LN_S" && LN_S="ln -s"
  7401. if test -n "${ZSH_VERSION+set}" ; then
  7402. setopt NO_GLOB_SUBST
  7403. fi
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7405. $as_echo_n "checking for objdir... " >&6; }
  7406. if ${lt_cv_objdir+:} false; then :
  7407. $as_echo_n "(cached) " >&6
  7408. else
  7409. rm -f .libs 2>/dev/null
  7410. mkdir .libs 2>/dev/null
  7411. if test -d .libs; then
  7412. lt_cv_objdir=.libs
  7413. else
  7414. # MS-DOS does not allow filenames that begin with a dot.
  7415. lt_cv_objdir=_libs
  7416. fi
  7417. rmdir .libs 2>/dev/null
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7420. $as_echo "$lt_cv_objdir" >&6; }
  7421. objdir=$lt_cv_objdir
  7422. cat >>confdefs.h <<_ACEOF
  7423. #define LT_OBJDIR "$lt_cv_objdir/"
  7424. _ACEOF
  7425. case $host_os in
  7426. aix3*)
  7427. # AIX sometimes has problems with the GCC collect2 program. For some
  7428. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7429. # vanish in a puff of smoke.
  7430. if test "X${COLLECT_NAMES+set}" != Xset; then
  7431. COLLECT_NAMES=
  7432. export COLLECT_NAMES
  7433. fi
  7434. ;;
  7435. esac
  7436. # Global variables:
  7437. ofile=libtool
  7438. can_build_shared=yes
  7439. # All known linkers require a `.a' archive for static linking (except MSVC,
  7440. # which needs '.lib').
  7441. libext=a
  7442. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7443. old_CC="$CC"
  7444. old_CFLAGS="$CFLAGS"
  7445. # Set sane defaults for various variables
  7446. test -z "$CC" && CC=cc
  7447. test -z "$LTCC" && LTCC=$CC
  7448. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7449. test -z "$LD" && LD=ld
  7450. test -z "$ac_objext" && ac_objext=o
  7451. for cc_temp in $compiler""; do
  7452. case $cc_temp in
  7453. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7454. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7455. \-*) ;;
  7456. *) break;;
  7457. esac
  7458. done
  7459. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7460. # Only perform the check for file, if the check method requires it
  7461. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7462. case $deplibs_check_method in
  7463. file_magic*)
  7464. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7466. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7467. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7468. $as_echo_n "(cached) " >&6
  7469. else
  7470. case $MAGIC_CMD in
  7471. [\\/*] | ?:[\\/]*)
  7472. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7473. ;;
  7474. *)
  7475. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7476. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7477. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7478. for ac_dir in $ac_dummy; do
  7479. IFS="$lt_save_ifs"
  7480. test -z "$ac_dir" && ac_dir=.
  7481. if test -f $ac_dir/${ac_tool_prefix}file; then
  7482. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7483. if test -n "$file_magic_test_file"; then
  7484. case $deplibs_check_method in
  7485. "file_magic "*)
  7486. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7487. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7488. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7489. $EGREP "$file_magic_regex" > /dev/null; then
  7490. :
  7491. else
  7492. cat <<_LT_EOF 1>&2
  7493. *** Warning: the command libtool uses to detect shared libraries,
  7494. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7495. *** The result is that libtool may fail to recognize shared libraries
  7496. *** as such. This will affect the creation of libtool libraries that
  7497. *** depend on shared libraries, but programs linked with such libtool
  7498. *** libraries will work regardless of this problem. Nevertheless, you
  7499. *** may want to report the problem to your system manager and/or to
  7500. *** bug-libtool@gnu.org
  7501. _LT_EOF
  7502. fi ;;
  7503. esac
  7504. fi
  7505. break
  7506. fi
  7507. done
  7508. IFS="$lt_save_ifs"
  7509. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7510. ;;
  7511. esac
  7512. fi
  7513. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7514. if test -n "$MAGIC_CMD"; then
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7516. $as_echo "$MAGIC_CMD" >&6; }
  7517. else
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7519. $as_echo "no" >&6; }
  7520. fi
  7521. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7522. if test -n "$ac_tool_prefix"; then
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7524. $as_echo_n "checking for file... " >&6; }
  7525. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7526. $as_echo_n "(cached) " >&6
  7527. else
  7528. case $MAGIC_CMD in
  7529. [\\/*] | ?:[\\/]*)
  7530. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7531. ;;
  7532. *)
  7533. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7534. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7535. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7536. for ac_dir in $ac_dummy; do
  7537. IFS="$lt_save_ifs"
  7538. test -z "$ac_dir" && ac_dir=.
  7539. if test -f $ac_dir/file; then
  7540. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7541. if test -n "$file_magic_test_file"; then
  7542. case $deplibs_check_method in
  7543. "file_magic "*)
  7544. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7545. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7546. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7547. $EGREP "$file_magic_regex" > /dev/null; then
  7548. :
  7549. else
  7550. cat <<_LT_EOF 1>&2
  7551. *** Warning: the command libtool uses to detect shared libraries,
  7552. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7553. *** The result is that libtool may fail to recognize shared libraries
  7554. *** as such. This will affect the creation of libtool libraries that
  7555. *** depend on shared libraries, but programs linked with such libtool
  7556. *** libraries will work regardless of this problem. Nevertheless, you
  7557. *** may want to report the problem to your system manager and/or to
  7558. *** bug-libtool@gnu.org
  7559. _LT_EOF
  7560. fi ;;
  7561. esac
  7562. fi
  7563. break
  7564. fi
  7565. done
  7566. IFS="$lt_save_ifs"
  7567. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7568. ;;
  7569. esac
  7570. fi
  7571. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7572. if test -n "$MAGIC_CMD"; then
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7574. $as_echo "$MAGIC_CMD" >&6; }
  7575. else
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7577. $as_echo "no" >&6; }
  7578. fi
  7579. else
  7580. MAGIC_CMD=:
  7581. fi
  7582. fi
  7583. fi
  7584. ;;
  7585. esac
  7586. # Use C for the default configuration in the libtool script
  7587. lt_save_CC="$CC"
  7588. ac_ext=c
  7589. ac_cpp='$CPP $CPPFLAGS'
  7590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7593. # Source file extension for C test sources.
  7594. ac_ext=c
  7595. # Object file extension for compiled C test sources.
  7596. objext=o
  7597. objext=$objext
  7598. # Code to be used in simple compile tests
  7599. lt_simple_compile_test_code="int some_variable = 0;"
  7600. # Code to be used in simple link tests
  7601. lt_simple_link_test_code='int main(){return(0);}'
  7602. # If no C compiler was specified, use CC.
  7603. LTCC=${LTCC-"$CC"}
  7604. # If no C compiler flags were specified, use CFLAGS.
  7605. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7606. # Allow CC to be a program name with arguments.
  7607. compiler=$CC
  7608. # Save the default compiler, since it gets overwritten when the other
  7609. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7610. compiler_DEFAULT=$CC
  7611. # save warnings/boilerplate of simple test code
  7612. ac_outfile=conftest.$ac_objext
  7613. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7614. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7615. _lt_compiler_boilerplate=`cat conftest.err`
  7616. $RM conftest*
  7617. ac_outfile=conftest.$ac_objext
  7618. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7619. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7620. _lt_linker_boilerplate=`cat conftest.err`
  7621. $RM -r conftest*
  7622. ## CAVEAT EMPTOR:
  7623. ## There is no encapsulation within the following macros, do not change
  7624. ## the running order or otherwise move them around unless you know exactly
  7625. ## what you are doing...
  7626. if test -n "$compiler"; then
  7627. lt_prog_compiler_no_builtin_flag=
  7628. if test "$GCC" = yes; then
  7629. case $cc_basename in
  7630. nvcc*)
  7631. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7632. *)
  7633. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7634. esac
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7636. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7637. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. lt_cv_prog_compiler_rtti_exceptions=no
  7641. ac_outfile=conftest.$ac_objext
  7642. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7643. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7644. # Insert the option either (1) after the last *FLAGS variable, or
  7645. # (2) before a word containing "conftest.", or (3) at the end.
  7646. # Note that $ac_compile itself does not contain backslashes and begins
  7647. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7648. # The option is referenced via a variable to avoid confusing sed.
  7649. lt_compile=`echo "$ac_compile" | $SED \
  7650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7652. -e 's:$: $lt_compiler_flag:'`
  7653. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7654. (eval "$lt_compile" 2>conftest.err)
  7655. ac_status=$?
  7656. cat conftest.err >&5
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. if (exit $ac_status) && test -s "$ac_outfile"; then
  7659. # The compiler can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings other than the usual output.
  7661. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7662. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7663. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7664. lt_cv_prog_compiler_rtti_exceptions=yes
  7665. fi
  7666. fi
  7667. $RM conftest*
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7670. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7671. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7672. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7673. else
  7674. :
  7675. fi
  7676. fi
  7677. lt_prog_compiler_wl=
  7678. lt_prog_compiler_pic=
  7679. lt_prog_compiler_static=
  7680. if test "$GCC" = yes; then
  7681. lt_prog_compiler_wl='-Wl,'
  7682. lt_prog_compiler_static='-static'
  7683. case $host_os in
  7684. aix*)
  7685. # All AIX code is PIC.
  7686. if test "$host_cpu" = ia64; then
  7687. # AIX 5 now supports IA64 processor
  7688. lt_prog_compiler_static='-Bstatic'
  7689. fi
  7690. ;;
  7691. amigaos*)
  7692. case $host_cpu in
  7693. powerpc)
  7694. # see comment about AmigaOS4 .so support
  7695. lt_prog_compiler_pic='-fPIC'
  7696. ;;
  7697. m68k)
  7698. # FIXME: we need at least 68020 code to build shared libraries, but
  7699. # adding the `-m68020' flag to GCC prevents building anything better,
  7700. # like `-m68040'.
  7701. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7702. ;;
  7703. esac
  7704. ;;
  7705. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7706. # PIC is the default for these OSes.
  7707. ;;
  7708. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7709. # This hack is so that the source file can tell whether it is being
  7710. # built for inclusion in a dll (and should export symbols for example).
  7711. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7712. # (--disable-auto-import) libraries
  7713. lt_prog_compiler_pic='-DDLL_EXPORT'
  7714. ;;
  7715. darwin* | rhapsody*)
  7716. # PIC is the default on this platform
  7717. # Common symbols not allowed in MH_DYLIB files
  7718. lt_prog_compiler_pic='-fno-common'
  7719. ;;
  7720. haiku*)
  7721. # PIC is the default for Haiku.
  7722. # The "-static" flag exists, but is broken.
  7723. lt_prog_compiler_static=
  7724. ;;
  7725. hpux*)
  7726. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7727. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7728. # sets the default TLS model and affects inlining.
  7729. case $host_cpu in
  7730. hppa*64*)
  7731. # +Z the default
  7732. ;;
  7733. *)
  7734. lt_prog_compiler_pic='-fPIC'
  7735. ;;
  7736. esac
  7737. ;;
  7738. interix[3-9]*)
  7739. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7740. # Instead, we relocate shared libraries at runtime.
  7741. ;;
  7742. msdosdjgpp*)
  7743. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7744. # on systems that don't support them.
  7745. lt_prog_compiler_can_build_shared=no
  7746. enable_shared=no
  7747. ;;
  7748. *nto* | *qnx*)
  7749. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7750. # it will coredump.
  7751. lt_prog_compiler_pic='-fPIC -shared'
  7752. ;;
  7753. sysv4*MP*)
  7754. if test -d /usr/nec; then
  7755. lt_prog_compiler_pic=-Kconform_pic
  7756. fi
  7757. ;;
  7758. *)
  7759. lt_prog_compiler_pic='-fPIC'
  7760. ;;
  7761. esac
  7762. case $cc_basename in
  7763. nvcc*) # Cuda Compiler Driver 2.2
  7764. lt_prog_compiler_wl='-Xlinker '
  7765. if test -n "$lt_prog_compiler_pic"; then
  7766. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7767. fi
  7768. ;;
  7769. esac
  7770. else
  7771. # PORTME Check for flag to pass linker flags through the system compiler.
  7772. case $host_os in
  7773. aix*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. if test "$host_cpu" = ia64; then
  7776. # AIX 5 now supports IA64 processor
  7777. lt_prog_compiler_static='-Bstatic'
  7778. else
  7779. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7780. fi
  7781. ;;
  7782. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7783. # This hack is so that the source file can tell whether it is being
  7784. # built for inclusion in a dll (and should export symbols for example).
  7785. lt_prog_compiler_pic='-DDLL_EXPORT'
  7786. ;;
  7787. hpux9* | hpux10* | hpux11*)
  7788. lt_prog_compiler_wl='-Wl,'
  7789. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7790. # not for PA HP-UX.
  7791. case $host_cpu in
  7792. hppa*64*|ia64*)
  7793. # +Z the default
  7794. ;;
  7795. *)
  7796. lt_prog_compiler_pic='+Z'
  7797. ;;
  7798. esac
  7799. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7800. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7801. ;;
  7802. irix5* | irix6* | nonstopux*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. # PIC (with -KPIC) is the default.
  7805. lt_prog_compiler_static='-non_shared'
  7806. ;;
  7807. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7808. case $cc_basename in
  7809. # old Intel for x86_64 which still supported -KPIC.
  7810. ecc*)
  7811. lt_prog_compiler_wl='-Wl,'
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-static'
  7814. ;;
  7815. # icc used to be incompatible with GCC.
  7816. # ICC 10 doesn't accept -KPIC any more.
  7817. icc* | ifort*)
  7818. lt_prog_compiler_wl='-Wl,'
  7819. lt_prog_compiler_pic='-fPIC'
  7820. lt_prog_compiler_static='-static'
  7821. ;;
  7822. # Lahey Fortran 8.1.
  7823. lf95*)
  7824. lt_prog_compiler_wl='-Wl,'
  7825. lt_prog_compiler_pic='--shared'
  7826. lt_prog_compiler_static='--static'
  7827. ;;
  7828. nagfor*)
  7829. # NAG Fortran compiler
  7830. lt_prog_compiler_wl='-Wl,-Wl,,'
  7831. lt_prog_compiler_pic='-PIC'
  7832. lt_prog_compiler_static='-Bstatic'
  7833. ;;
  7834. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7835. # Portland Group compilers (*not* the Pentium gcc compiler,
  7836. # which looks to be a dead project)
  7837. lt_prog_compiler_wl='-Wl,'
  7838. lt_prog_compiler_pic='-fpic'
  7839. lt_prog_compiler_static='-Bstatic'
  7840. ;;
  7841. ccc*)
  7842. lt_prog_compiler_wl='-Wl,'
  7843. # All Alpha code is PIC.
  7844. lt_prog_compiler_static='-non_shared'
  7845. ;;
  7846. xl* | bgxl* | bgf* | mpixl*)
  7847. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7848. lt_prog_compiler_wl='-Wl,'
  7849. lt_prog_compiler_pic='-qpic'
  7850. lt_prog_compiler_static='-qstaticlink'
  7851. ;;
  7852. *)
  7853. case `$CC -V 2>&1 | sed 5q` in
  7854. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7855. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7856. lt_prog_compiler_pic='-KPIC'
  7857. lt_prog_compiler_static='-Bstatic'
  7858. lt_prog_compiler_wl=''
  7859. ;;
  7860. *Sun\ F* | *Sun*Fortran*)
  7861. lt_prog_compiler_pic='-KPIC'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. lt_prog_compiler_wl='-Qoption ld '
  7864. ;;
  7865. *Sun\ C*)
  7866. # Sun C 5.9
  7867. lt_prog_compiler_pic='-KPIC'
  7868. lt_prog_compiler_static='-Bstatic'
  7869. lt_prog_compiler_wl='-Wl,'
  7870. ;;
  7871. *Intel*\ [CF]*Compiler*)
  7872. lt_prog_compiler_wl='-Wl,'
  7873. lt_prog_compiler_pic='-fPIC'
  7874. lt_prog_compiler_static='-static'
  7875. ;;
  7876. *Portland\ Group*)
  7877. lt_prog_compiler_wl='-Wl,'
  7878. lt_prog_compiler_pic='-fpic'
  7879. lt_prog_compiler_static='-Bstatic'
  7880. ;;
  7881. esac
  7882. ;;
  7883. esac
  7884. ;;
  7885. newsos6)
  7886. lt_prog_compiler_pic='-KPIC'
  7887. lt_prog_compiler_static='-Bstatic'
  7888. ;;
  7889. *nto* | *qnx*)
  7890. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7891. # it will coredump.
  7892. lt_prog_compiler_pic='-fPIC -shared'
  7893. ;;
  7894. osf3* | osf4* | osf5*)
  7895. lt_prog_compiler_wl='-Wl,'
  7896. # All OSF/1 code is PIC.
  7897. lt_prog_compiler_static='-non_shared'
  7898. ;;
  7899. rdos*)
  7900. lt_prog_compiler_static='-non_shared'
  7901. ;;
  7902. solaris*)
  7903. lt_prog_compiler_pic='-KPIC'
  7904. lt_prog_compiler_static='-Bstatic'
  7905. case $cc_basename in
  7906. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7907. lt_prog_compiler_wl='-Qoption ld ';;
  7908. *)
  7909. lt_prog_compiler_wl='-Wl,';;
  7910. esac
  7911. ;;
  7912. sunos4*)
  7913. lt_prog_compiler_wl='-Qoption ld '
  7914. lt_prog_compiler_pic='-PIC'
  7915. lt_prog_compiler_static='-Bstatic'
  7916. ;;
  7917. sysv4 | sysv4.2uw2* | sysv4.3*)
  7918. lt_prog_compiler_wl='-Wl,'
  7919. lt_prog_compiler_pic='-KPIC'
  7920. lt_prog_compiler_static='-Bstatic'
  7921. ;;
  7922. sysv4*MP*)
  7923. if test -d /usr/nec ;then
  7924. lt_prog_compiler_pic='-Kconform_pic'
  7925. lt_prog_compiler_static='-Bstatic'
  7926. fi
  7927. ;;
  7928. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7929. lt_prog_compiler_wl='-Wl,'
  7930. lt_prog_compiler_pic='-KPIC'
  7931. lt_prog_compiler_static='-Bstatic'
  7932. ;;
  7933. unicos*)
  7934. lt_prog_compiler_wl='-Wl,'
  7935. lt_prog_compiler_can_build_shared=no
  7936. ;;
  7937. uts4*)
  7938. lt_prog_compiler_pic='-pic'
  7939. lt_prog_compiler_static='-Bstatic'
  7940. ;;
  7941. *)
  7942. lt_prog_compiler_can_build_shared=no
  7943. ;;
  7944. esac
  7945. fi
  7946. case $host_os in
  7947. # For platforms which do not support PIC, -DPIC is meaningless:
  7948. *djgpp*)
  7949. lt_prog_compiler_pic=
  7950. ;;
  7951. *)
  7952. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7953. ;;
  7954. esac
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7956. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7957. if ${lt_cv_prog_compiler_pic+:} false; then :
  7958. $as_echo_n "(cached) " >&6
  7959. else
  7960. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7961. fi
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7963. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7964. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7965. #
  7966. # Check to make sure the PIC flag actually works.
  7967. #
  7968. if test -n "$lt_prog_compiler_pic"; then
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7970. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7971. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7972. $as_echo_n "(cached) " >&6
  7973. else
  7974. lt_cv_prog_compiler_pic_works=no
  7975. ac_outfile=conftest.$ac_objext
  7976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7977. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7978. # Insert the option either (1) after the last *FLAGS variable, or
  7979. # (2) before a word containing "conftest.", or (3) at the end.
  7980. # Note that $ac_compile itself does not contain backslashes and begins
  7981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7982. # The option is referenced via a variable to avoid confusing sed.
  7983. lt_compile=`echo "$ac_compile" | $SED \
  7984. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7985. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7986. -e 's:$: $lt_compiler_flag:'`
  7987. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7988. (eval "$lt_compile" 2>conftest.err)
  7989. ac_status=$?
  7990. cat conftest.err >&5
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. if (exit $ac_status) && test -s "$ac_outfile"; then
  7993. # The compiler can only warn and ignore the option if not recognized
  7994. # So say no if there are warnings other than the usual output.
  7995. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7996. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7997. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7998. lt_cv_prog_compiler_pic_works=yes
  7999. fi
  8000. fi
  8001. $RM conftest*
  8002. fi
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8004. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8005. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8006. case $lt_prog_compiler_pic in
  8007. "" | " "*) ;;
  8008. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8009. esac
  8010. else
  8011. lt_prog_compiler_pic=
  8012. lt_prog_compiler_can_build_shared=no
  8013. fi
  8014. fi
  8015. #
  8016. # Check to make sure the static flag actually works.
  8017. #
  8018. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8020. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8021. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8022. $as_echo_n "(cached) " >&6
  8023. else
  8024. lt_cv_prog_compiler_static_works=no
  8025. save_LDFLAGS="$LDFLAGS"
  8026. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8027. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8028. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8029. # The linker can only warn and ignore the option if not recognized
  8030. # So say no if there are warnings
  8031. if test -s conftest.err; then
  8032. # Append any errors to the config.log.
  8033. cat conftest.err 1>&5
  8034. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8036. if diff conftest.exp conftest.er2 >/dev/null; then
  8037. lt_cv_prog_compiler_static_works=yes
  8038. fi
  8039. else
  8040. lt_cv_prog_compiler_static_works=yes
  8041. fi
  8042. fi
  8043. $RM -r conftest*
  8044. LDFLAGS="$save_LDFLAGS"
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8047. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8048. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8049. :
  8050. else
  8051. lt_prog_compiler_static=
  8052. fi
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8054. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8055. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. lt_cv_prog_compiler_c_o=no
  8059. $RM -r conftest 2>/dev/null
  8060. mkdir conftest
  8061. cd conftest
  8062. mkdir out
  8063. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8064. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8065. # Insert the option either (1) after the last *FLAGS variable, or
  8066. # (2) before a word containing "conftest.", or (3) at the end.
  8067. # Note that $ac_compile itself does not contain backslashes and begins
  8068. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8069. lt_compile=`echo "$ac_compile" | $SED \
  8070. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8071. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8072. -e 's:$: $lt_compiler_flag:'`
  8073. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8074. (eval "$lt_compile" 2>out/conftest.err)
  8075. ac_status=$?
  8076. cat out/conftest.err >&5
  8077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8079. then
  8080. # The compiler can only warn and ignore the option if not recognized
  8081. # So say no if there are warnings
  8082. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8083. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8084. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8085. lt_cv_prog_compiler_c_o=yes
  8086. fi
  8087. fi
  8088. chmod u+w . 2>&5
  8089. $RM conftest*
  8090. # SGI C++ compiler will create directory out/ii_files/ for
  8091. # template instantiation
  8092. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8093. $RM out/* && rmdir out
  8094. cd ..
  8095. $RM -r conftest
  8096. $RM conftest*
  8097. fi
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8099. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8101. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8102. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8103. $as_echo_n "(cached) " >&6
  8104. else
  8105. lt_cv_prog_compiler_c_o=no
  8106. $RM -r conftest 2>/dev/null
  8107. mkdir conftest
  8108. cd conftest
  8109. mkdir out
  8110. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8111. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8112. # Insert the option either (1) after the last *FLAGS variable, or
  8113. # (2) before a word containing "conftest.", or (3) at the end.
  8114. # Note that $ac_compile itself does not contain backslashes and begins
  8115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8116. lt_compile=`echo "$ac_compile" | $SED \
  8117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8119. -e 's:$: $lt_compiler_flag:'`
  8120. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8121. (eval "$lt_compile" 2>out/conftest.err)
  8122. ac_status=$?
  8123. cat out/conftest.err >&5
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8126. then
  8127. # The compiler can only warn and ignore the option if not recognized
  8128. # So say no if there are warnings
  8129. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8130. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8131. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8132. lt_cv_prog_compiler_c_o=yes
  8133. fi
  8134. fi
  8135. chmod u+w . 2>&5
  8136. $RM conftest*
  8137. # SGI C++ compiler will create directory out/ii_files/ for
  8138. # template instantiation
  8139. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8140. $RM out/* && rmdir out
  8141. cd ..
  8142. $RM -r conftest
  8143. $RM conftest*
  8144. fi
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8146. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8147. hard_links="nottested"
  8148. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8149. # do not overwrite the value of need_locks provided by the user
  8150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8151. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8152. hard_links=yes
  8153. $RM conftest*
  8154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8155. touch conftest.a
  8156. ln conftest.a conftest.b 2>&5 || hard_links=no
  8157. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8159. $as_echo "$hard_links" >&6; }
  8160. if test "$hard_links" = no; then
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8162. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8163. need_locks=warn
  8164. fi
  8165. else
  8166. need_locks=no
  8167. fi
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8169. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8170. runpath_var=
  8171. allow_undefined_flag=
  8172. always_export_symbols=no
  8173. archive_cmds=
  8174. archive_expsym_cmds=
  8175. compiler_needs_object=no
  8176. enable_shared_with_static_runtimes=no
  8177. export_dynamic_flag_spec=
  8178. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8179. hardcode_automatic=no
  8180. hardcode_direct=no
  8181. hardcode_direct_absolute=no
  8182. hardcode_libdir_flag_spec=
  8183. hardcode_libdir_separator=
  8184. hardcode_minus_L=no
  8185. hardcode_shlibpath_var=unsupported
  8186. inherit_rpath=no
  8187. link_all_deplibs=unknown
  8188. module_cmds=
  8189. module_expsym_cmds=
  8190. old_archive_from_new_cmds=
  8191. old_archive_from_expsyms_cmds=
  8192. thread_safe_flag_spec=
  8193. whole_archive_flag_spec=
  8194. # include_expsyms should be a list of space-separated symbols to be *always*
  8195. # included in the symbol list
  8196. include_expsyms=
  8197. # exclude_expsyms can be an extended regexp of symbols to exclude
  8198. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8199. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8200. # as well as any symbol that contains `d'.
  8201. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8202. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8203. # platforms (ab)use it in PIC code, but their linkers get confused if
  8204. # the symbol is explicitly referenced. Since portable code cannot
  8205. # rely on this symbol name, it's probably fine to never include it in
  8206. # preloaded symbol tables.
  8207. # Exclude shared library initialization/finalization symbols.
  8208. extract_expsyms_cmds=
  8209. case $host_os in
  8210. cygwin* | mingw* | pw32* | cegcc*)
  8211. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8212. # When not using gcc, we currently assume that we are using
  8213. # Microsoft Visual C++.
  8214. if test "$GCC" != yes; then
  8215. with_gnu_ld=no
  8216. fi
  8217. ;;
  8218. interix*)
  8219. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8220. with_gnu_ld=yes
  8221. ;;
  8222. openbsd*)
  8223. with_gnu_ld=no
  8224. ;;
  8225. esac
  8226. ld_shlibs=yes
  8227. # On some targets, GNU ld is compatible enough with the native linker
  8228. # that we're better off using the native interface for both.
  8229. lt_use_gnu_ld_interface=no
  8230. if test "$with_gnu_ld" = yes; then
  8231. case $host_os in
  8232. aix*)
  8233. # The AIX port of GNU ld has always aspired to compatibility
  8234. # with the native linker. However, as the warning in the GNU ld
  8235. # block says, versions before 2.19.5* couldn't really create working
  8236. # shared libraries, regardless of the interface used.
  8237. case `$LD -v 2>&1` in
  8238. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8239. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8240. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8241. *)
  8242. lt_use_gnu_ld_interface=yes
  8243. ;;
  8244. esac
  8245. ;;
  8246. *)
  8247. lt_use_gnu_ld_interface=yes
  8248. ;;
  8249. esac
  8250. fi
  8251. if test "$lt_use_gnu_ld_interface" = yes; then
  8252. # If archive_cmds runs LD, not CC, wlarc should be empty
  8253. wlarc='${wl}'
  8254. # Set some defaults for GNU ld with shared library support. These
  8255. # are reset later if shared libraries are not supported. Putting them
  8256. # here allows them to be overridden if necessary.
  8257. runpath_var=LD_RUN_PATH
  8258. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8259. export_dynamic_flag_spec='${wl}--export-dynamic'
  8260. # ancient GNU ld didn't support --whole-archive et. al.
  8261. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8262. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8263. else
  8264. whole_archive_flag_spec=
  8265. fi
  8266. supports_anon_versioning=no
  8267. case `$LD -v 2>&1` in
  8268. *GNU\ gold*) supports_anon_versioning=yes ;;
  8269. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8270. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8271. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8272. *\ 2.11.*) ;; # other 2.11 versions
  8273. *) supports_anon_versioning=yes ;;
  8274. esac
  8275. # See if GNU ld supports shared libraries.
  8276. case $host_os in
  8277. aix[3-9]*)
  8278. # On AIX/PPC, the GNU linker is very broken
  8279. if test "$host_cpu" != ia64; then
  8280. ld_shlibs=no
  8281. cat <<_LT_EOF 1>&2
  8282. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8283. *** to be unable to reliably create shared libraries on AIX.
  8284. *** Therefore, libtool is disabling shared libraries support. If you
  8285. *** really care for shared libraries, you may want to install binutils
  8286. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8287. *** You will then need to restart the configuration process.
  8288. _LT_EOF
  8289. fi
  8290. ;;
  8291. amigaos*)
  8292. case $host_cpu in
  8293. powerpc)
  8294. # see comment about AmigaOS4 .so support
  8295. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8296. archive_expsym_cmds=''
  8297. ;;
  8298. m68k)
  8299. 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)'
  8300. hardcode_libdir_flag_spec='-L$libdir'
  8301. hardcode_minus_L=yes
  8302. ;;
  8303. esac
  8304. ;;
  8305. beos*)
  8306. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8307. allow_undefined_flag=unsupported
  8308. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8309. # support --undefined. This deserves some investigation. FIXME
  8310. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8311. else
  8312. ld_shlibs=no
  8313. fi
  8314. ;;
  8315. cygwin* | mingw* | pw32* | cegcc*)
  8316. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8317. # as there is no search path for DLLs.
  8318. hardcode_libdir_flag_spec='-L$libdir'
  8319. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8320. allow_undefined_flag=unsupported
  8321. always_export_symbols=no
  8322. enable_shared_with_static_runtimes=yes
  8323. 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'
  8324. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8325. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8326. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8327. # If the export-symbols file already is a .def file (1st line
  8328. # is EXPORTS), use it as is; otherwise, prepend...
  8329. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8330. cp $export_symbols $output_objdir/$soname.def;
  8331. else
  8332. echo EXPORTS > $output_objdir/$soname.def;
  8333. cat $export_symbols >> $output_objdir/$soname.def;
  8334. fi~
  8335. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8336. else
  8337. ld_shlibs=no
  8338. fi
  8339. ;;
  8340. haiku*)
  8341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. link_all_deplibs=yes
  8343. ;;
  8344. interix[3-9]*)
  8345. hardcode_direct=no
  8346. hardcode_shlibpath_var=no
  8347. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8348. export_dynamic_flag_spec='${wl}-E'
  8349. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8350. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8351. # default) and relocated if they conflict, which is a slow very memory
  8352. # consuming and fragmenting process. To avoid this, we pick a random,
  8353. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8354. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8355. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8356. 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'
  8357. ;;
  8358. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8359. tmp_diet=no
  8360. if test "$host_os" = linux-dietlibc; then
  8361. case $cc_basename in
  8362. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8363. esac
  8364. fi
  8365. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8366. && test "$tmp_diet" = no
  8367. then
  8368. tmp_addflag=' $pic_flag'
  8369. tmp_sharedflag='-shared'
  8370. case $cc_basename,$host_cpu in
  8371. pgcc*) # Portland Group C compiler
  8372. 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'
  8373. tmp_addflag=' $pic_flag'
  8374. ;;
  8375. pgf77* | pgf90* | pgf95* | pgfortran*)
  8376. # Portland Group f77 and f90 compilers
  8377. 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'
  8378. tmp_addflag=' $pic_flag -Mnomain' ;;
  8379. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8380. tmp_addflag=' -i_dynamic' ;;
  8381. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8382. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8383. ifc* | ifort*) # Intel Fortran compiler
  8384. tmp_addflag=' -nofor_main' ;;
  8385. lf95*) # Lahey Fortran 8.1
  8386. whole_archive_flag_spec=
  8387. tmp_sharedflag='--shared' ;;
  8388. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8389. tmp_sharedflag='-qmkshrobj'
  8390. tmp_addflag= ;;
  8391. nvcc*) # Cuda Compiler Driver 2.2
  8392. 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'
  8393. compiler_needs_object=yes
  8394. ;;
  8395. esac
  8396. case `$CC -V 2>&1 | sed 5q` in
  8397. *Sun\ C*) # Sun C 5.9
  8398. 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'
  8399. compiler_needs_object=yes
  8400. tmp_sharedflag='-G' ;;
  8401. *Sun\ F*) # Sun Fortran 8.3
  8402. tmp_sharedflag='-G' ;;
  8403. esac
  8404. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8405. if test "x$supports_anon_versioning" = xyes; then
  8406. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8407. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8408. echo "local: *; };" >> $output_objdir/$libname.ver~
  8409. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8410. fi
  8411. case $cc_basename in
  8412. xlf* | bgf* | bgxlf* | mpixlf*)
  8413. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8414. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8415. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8416. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8417. if test "x$supports_anon_versioning" = xyes; then
  8418. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8419. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8420. echo "local: *; };" >> $output_objdir/$libname.ver~
  8421. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8422. fi
  8423. ;;
  8424. esac
  8425. else
  8426. ld_shlibs=no
  8427. fi
  8428. ;;
  8429. netbsd*)
  8430. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8431. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8432. wlarc=
  8433. else
  8434. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8435. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8436. fi
  8437. ;;
  8438. solaris*)
  8439. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8440. ld_shlibs=no
  8441. cat <<_LT_EOF 1>&2
  8442. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8443. *** create shared libraries on Solaris systems. Therefore, libtool
  8444. *** is disabling shared libraries support. We urge you to upgrade GNU
  8445. *** binutils to release 2.9.1 or newer. Another option is to modify
  8446. *** your PATH or compiler configuration so that the native linker is
  8447. *** used, and then restart.
  8448. _LT_EOF
  8449. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8450. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8451. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8452. else
  8453. ld_shlibs=no
  8454. fi
  8455. ;;
  8456. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8457. case `$LD -v 2>&1` in
  8458. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8459. ld_shlibs=no
  8460. cat <<_LT_EOF 1>&2
  8461. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8462. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8463. *** is disabling shared libraries support. We urge you to upgrade GNU
  8464. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8465. *** your PATH or compiler configuration so that the native linker is
  8466. *** used, and then restart.
  8467. _LT_EOF
  8468. ;;
  8469. *)
  8470. # For security reasons, it is highly recommended that you always
  8471. # use absolute paths for naming shared libraries, and exclude the
  8472. # DT_RUNPATH tag from executables and libraries. But doing so
  8473. # requires that you compile everything twice, which is a pain.
  8474. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8475. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8476. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8477. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8478. else
  8479. ld_shlibs=no
  8480. fi
  8481. ;;
  8482. esac
  8483. ;;
  8484. sunos4*)
  8485. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8486. wlarc=
  8487. hardcode_direct=yes
  8488. hardcode_shlibpath_var=no
  8489. ;;
  8490. *)
  8491. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8492. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8493. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8494. else
  8495. ld_shlibs=no
  8496. fi
  8497. ;;
  8498. esac
  8499. if test "$ld_shlibs" = no; then
  8500. runpath_var=
  8501. hardcode_libdir_flag_spec=
  8502. export_dynamic_flag_spec=
  8503. whole_archive_flag_spec=
  8504. fi
  8505. else
  8506. # PORTME fill in a description of your system's linker (not GNU ld)
  8507. case $host_os in
  8508. aix3*)
  8509. allow_undefined_flag=unsupported
  8510. always_export_symbols=yes
  8511. 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'
  8512. # Note: this linker hardcodes the directories in LIBPATH if there
  8513. # are no directories specified by -L.
  8514. hardcode_minus_L=yes
  8515. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8516. # Neither direct hardcoding nor static linking is supported with a
  8517. # broken collect2.
  8518. hardcode_direct=unsupported
  8519. fi
  8520. ;;
  8521. aix[4-9]*)
  8522. if test "$host_cpu" = ia64; then
  8523. # On IA64, the linker does run time linking by default, so we don't
  8524. # have to do anything special.
  8525. aix_use_runtimelinking=no
  8526. exp_sym_flag='-Bexport'
  8527. no_entry_flag=""
  8528. else
  8529. # If we're using GNU nm, then we don't want the "-C" option.
  8530. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8531. # Also, AIX nm treats weak defined symbols like other global
  8532. # defined symbols, whereas GNU nm marks them as "W".
  8533. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8534. 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'
  8535. else
  8536. 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'
  8537. fi
  8538. aix_use_runtimelinking=no
  8539. # Test if we are trying to use run time linking or normal
  8540. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8541. # need to do runtime linking.
  8542. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8543. for ld_flag in $LDFLAGS; do
  8544. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8545. aix_use_runtimelinking=yes
  8546. break
  8547. fi
  8548. done
  8549. ;;
  8550. esac
  8551. exp_sym_flag='-bexport'
  8552. no_entry_flag='-bnoentry'
  8553. fi
  8554. # When large executables or shared objects are built, AIX ld can
  8555. # have problems creating the table of contents. If linking a library
  8556. # or program results in "error TOC overflow" add -mminimal-toc to
  8557. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8558. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8559. archive_cmds=''
  8560. hardcode_direct=yes
  8561. hardcode_direct_absolute=yes
  8562. hardcode_libdir_separator=':'
  8563. link_all_deplibs=yes
  8564. file_list_spec='${wl}-f,'
  8565. if test "$GCC" = yes; then
  8566. case $host_os in aix4.[012]|aix4.[012].*)
  8567. # We only want to do this on AIX 4.2 and lower, the check
  8568. # below for broken collect2 doesn't work under 4.3+
  8569. collect2name=`${CC} -print-prog-name=collect2`
  8570. if test -f "$collect2name" &&
  8571. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8572. then
  8573. # We have reworked collect2
  8574. :
  8575. else
  8576. # We have old collect2
  8577. hardcode_direct=unsupported
  8578. # It fails to find uninstalled libraries when the uninstalled
  8579. # path is not listed in the libpath. Setting hardcode_minus_L
  8580. # to unsupported forces relinking
  8581. hardcode_minus_L=yes
  8582. hardcode_libdir_flag_spec='-L$libdir'
  8583. hardcode_libdir_separator=
  8584. fi
  8585. ;;
  8586. esac
  8587. shared_flag='-shared'
  8588. if test "$aix_use_runtimelinking" = yes; then
  8589. shared_flag="$shared_flag "'${wl}-G'
  8590. fi
  8591. else
  8592. # not using gcc
  8593. if test "$host_cpu" = ia64; then
  8594. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8595. # chokes on -Wl,-G. The following line is correct:
  8596. shared_flag='-G'
  8597. else
  8598. if test "$aix_use_runtimelinking" = yes; then
  8599. shared_flag='${wl}-G'
  8600. else
  8601. shared_flag='${wl}-bM:SRE'
  8602. fi
  8603. fi
  8604. fi
  8605. export_dynamic_flag_spec='${wl}-bexpall'
  8606. # It seems that -bexpall does not export symbols beginning with
  8607. # underscore (_), so it is better to generate a list of symbols to export.
  8608. always_export_symbols=yes
  8609. if test "$aix_use_runtimelinking" = yes; then
  8610. # Warning - without using the other runtime loading flags (-brtl),
  8611. # -berok will link without error, but may produce a broken library.
  8612. allow_undefined_flag='-berok'
  8613. # Determine the default libpath from the value encoded in an
  8614. # empty executable.
  8615. if test "${lt_cv_aix_libpath+set}" = set; then
  8616. aix_libpath=$lt_cv_aix_libpath
  8617. else
  8618. if ${lt_cv_aix_libpath_+:} false; then :
  8619. $as_echo_n "(cached) " >&6
  8620. else
  8621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8622. /* end confdefs.h. */
  8623. int
  8624. main ()
  8625. {
  8626. ;
  8627. return 0;
  8628. }
  8629. _ACEOF
  8630. if ac_fn_c_try_link "$LINENO"; then :
  8631. lt_aix_libpath_sed='
  8632. /Import File Strings/,/^$/ {
  8633. /^0/ {
  8634. s/^0 *\([^ ]*\) *$/\1/
  8635. p
  8636. }
  8637. }'
  8638. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8639. # Check for a 64-bit object if we didn't find anything.
  8640. if test -z "$lt_cv_aix_libpath_"; then
  8641. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8642. fi
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext \
  8645. conftest$ac_exeext conftest.$ac_ext
  8646. if test -z "$lt_cv_aix_libpath_"; then
  8647. lt_cv_aix_libpath_="/usr/lib:/lib"
  8648. fi
  8649. fi
  8650. aix_libpath=$lt_cv_aix_libpath_
  8651. fi
  8652. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8653. 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"
  8654. else
  8655. if test "$host_cpu" = ia64; then
  8656. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8657. allow_undefined_flag="-z nodefs"
  8658. 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"
  8659. else
  8660. # Determine the default libpath from the value encoded in an
  8661. # empty executable.
  8662. if test "${lt_cv_aix_libpath+set}" = set; then
  8663. aix_libpath=$lt_cv_aix_libpath
  8664. else
  8665. if ${lt_cv_aix_libpath_+:} false; then :
  8666. $as_echo_n "(cached) " >&6
  8667. else
  8668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8669. /* end confdefs.h. */
  8670. int
  8671. main ()
  8672. {
  8673. ;
  8674. return 0;
  8675. }
  8676. _ACEOF
  8677. if ac_fn_c_try_link "$LINENO"; then :
  8678. lt_aix_libpath_sed='
  8679. /Import File Strings/,/^$/ {
  8680. /^0/ {
  8681. s/^0 *\([^ ]*\) *$/\1/
  8682. p
  8683. }
  8684. }'
  8685. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8686. # Check for a 64-bit object if we didn't find anything.
  8687. if test -z "$lt_cv_aix_libpath_"; then
  8688. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8689. fi
  8690. fi
  8691. rm -f core conftest.err conftest.$ac_objext \
  8692. conftest$ac_exeext conftest.$ac_ext
  8693. if test -z "$lt_cv_aix_libpath_"; then
  8694. lt_cv_aix_libpath_="/usr/lib:/lib"
  8695. fi
  8696. fi
  8697. aix_libpath=$lt_cv_aix_libpath_
  8698. fi
  8699. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8700. # Warning - without using the other run time loading flags,
  8701. # -berok will link without error, but may produce a broken library.
  8702. no_undefined_flag=' ${wl}-bernotok'
  8703. allow_undefined_flag=' ${wl}-berok'
  8704. if test "$with_gnu_ld" = yes; then
  8705. # We only use this code for GNU lds that support --whole-archive.
  8706. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8707. else
  8708. # Exported symbols can be pulled into shared objects from archives
  8709. whole_archive_flag_spec='$convenience'
  8710. fi
  8711. archive_cmds_need_lc=yes
  8712. # This is similar to how AIX traditionally builds its shared libraries.
  8713. 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'
  8714. fi
  8715. fi
  8716. ;;
  8717. amigaos*)
  8718. case $host_cpu in
  8719. powerpc)
  8720. # see comment about AmigaOS4 .so support
  8721. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8722. archive_expsym_cmds=''
  8723. ;;
  8724. m68k)
  8725. 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)'
  8726. hardcode_libdir_flag_spec='-L$libdir'
  8727. hardcode_minus_L=yes
  8728. ;;
  8729. esac
  8730. ;;
  8731. bsdi[45]*)
  8732. export_dynamic_flag_spec=-rdynamic
  8733. ;;
  8734. cygwin* | mingw* | pw32* | cegcc*)
  8735. # When not using gcc, we currently assume that we are using
  8736. # Microsoft Visual C++.
  8737. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8738. # no search path for DLLs.
  8739. case $cc_basename in
  8740. cl*)
  8741. # Native MSVC
  8742. hardcode_libdir_flag_spec=' '
  8743. allow_undefined_flag=unsupported
  8744. always_export_symbols=yes
  8745. file_list_spec='@'
  8746. # Tell ltmain to make .lib files, not .a files.
  8747. libext=lib
  8748. # Tell ltmain to make .dll files, not .so files.
  8749. shrext_cmds=".dll"
  8750. # FIXME: Setting linknames here is a bad hack.
  8751. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8752. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8753. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8754. else
  8755. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8756. fi~
  8757. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8758. linknames='
  8759. # The linker will not automatically build a static lib if we build a DLL.
  8760. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8761. enable_shared_with_static_runtimes=yes
  8762. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8763. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8764. # Don't use ranlib
  8765. old_postinstall_cmds='chmod 644 $oldlib'
  8766. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8767. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8768. case $lt_outputfile in
  8769. *.exe|*.EXE) ;;
  8770. *)
  8771. lt_outputfile="$lt_outputfile.exe"
  8772. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8773. ;;
  8774. esac~
  8775. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8776. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8777. $RM "$lt_outputfile.manifest";
  8778. fi'
  8779. ;;
  8780. *)
  8781. # Assume MSVC wrapper
  8782. hardcode_libdir_flag_spec=' '
  8783. allow_undefined_flag=unsupported
  8784. # Tell ltmain to make .lib files, not .a files.
  8785. libext=lib
  8786. # Tell ltmain to make .dll files, not .so files.
  8787. shrext_cmds=".dll"
  8788. # FIXME: Setting linknames here is a bad hack.
  8789. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8790. # The linker will automatically build a .lib file if we build a DLL.
  8791. old_archive_from_new_cmds='true'
  8792. # FIXME: Should let the user specify the lib program.
  8793. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8794. enable_shared_with_static_runtimes=yes
  8795. ;;
  8796. esac
  8797. ;;
  8798. darwin* | rhapsody*)
  8799. archive_cmds_need_lc=no
  8800. hardcode_direct=no
  8801. hardcode_automatic=yes
  8802. hardcode_shlibpath_var=unsupported
  8803. if test "$lt_cv_ld_force_load" = "yes"; then
  8804. 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\"`'
  8805. else
  8806. whole_archive_flag_spec=''
  8807. fi
  8808. link_all_deplibs=yes
  8809. allow_undefined_flag="$_lt_dar_allow_undefined"
  8810. case $cc_basename in
  8811. ifort*) _lt_dar_can_shared=yes ;;
  8812. *) _lt_dar_can_shared=$GCC ;;
  8813. esac
  8814. if test "$_lt_dar_can_shared" = "yes"; then
  8815. output_verbose_link_cmd=func_echo_all
  8816. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8817. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8818. 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}"
  8819. 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}"
  8820. else
  8821. ld_shlibs=no
  8822. fi
  8823. ;;
  8824. dgux*)
  8825. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8826. hardcode_libdir_flag_spec='-L$libdir'
  8827. hardcode_shlibpath_var=no
  8828. ;;
  8829. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8830. # support. Future versions do this automatically, but an explicit c++rt0.o
  8831. # does not break anything, and helps significantly (at the cost of a little
  8832. # extra space).
  8833. freebsd2.2*)
  8834. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8835. hardcode_libdir_flag_spec='-R$libdir'
  8836. hardcode_direct=yes
  8837. hardcode_shlibpath_var=no
  8838. ;;
  8839. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8840. freebsd2.*)
  8841. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8842. hardcode_direct=yes
  8843. hardcode_minus_L=yes
  8844. hardcode_shlibpath_var=no
  8845. ;;
  8846. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8847. freebsd* | dragonfly*)
  8848. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8849. hardcode_libdir_flag_spec='-R$libdir'
  8850. hardcode_direct=yes
  8851. hardcode_shlibpath_var=no
  8852. ;;
  8853. hpux9*)
  8854. if test "$GCC" = yes; then
  8855. 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'
  8856. else
  8857. 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'
  8858. fi
  8859. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8860. hardcode_libdir_separator=:
  8861. hardcode_direct=yes
  8862. # hardcode_minus_L: Not really in the search PATH,
  8863. # but as the default location of the library.
  8864. hardcode_minus_L=yes
  8865. export_dynamic_flag_spec='${wl}-E'
  8866. ;;
  8867. hpux10*)
  8868. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8869. archive_cmds='$CC -shared $pic_flag ${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. if test "$with_gnu_ld" = no; then
  8874. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8875. hardcode_libdir_separator=:
  8876. hardcode_direct=yes
  8877. hardcode_direct_absolute=yes
  8878. export_dynamic_flag_spec='${wl}-E'
  8879. # hardcode_minus_L: Not really in the search PATH,
  8880. # but as the default location of the library.
  8881. hardcode_minus_L=yes
  8882. fi
  8883. ;;
  8884. hpux11*)
  8885. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8886. case $host_cpu in
  8887. hppa*64*)
  8888. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8889. ;;
  8890. ia64*)
  8891. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8892. ;;
  8893. *)
  8894. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8895. ;;
  8896. esac
  8897. else
  8898. case $host_cpu in
  8899. hppa*64*)
  8900. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8901. ;;
  8902. ia64*)
  8903. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8904. ;;
  8905. *)
  8906. # Older versions of the 11.00 compiler do not understand -b yet
  8907. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8909. $as_echo_n "checking if $CC understands -b... " >&6; }
  8910. if ${lt_cv_prog_compiler__b+:} false; then :
  8911. $as_echo_n "(cached) " >&6
  8912. else
  8913. lt_cv_prog_compiler__b=no
  8914. save_LDFLAGS="$LDFLAGS"
  8915. LDFLAGS="$LDFLAGS -b"
  8916. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8917. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8918. # The linker can only warn and ignore the option if not recognized
  8919. # So say no if there are warnings
  8920. if test -s conftest.err; then
  8921. # Append any errors to the config.log.
  8922. cat conftest.err 1>&5
  8923. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8924. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8925. if diff conftest.exp conftest.er2 >/dev/null; then
  8926. lt_cv_prog_compiler__b=yes
  8927. fi
  8928. else
  8929. lt_cv_prog_compiler__b=yes
  8930. fi
  8931. fi
  8932. $RM -r conftest*
  8933. LDFLAGS="$save_LDFLAGS"
  8934. fi
  8935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8936. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8937. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8938. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8939. else
  8940. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8941. fi
  8942. ;;
  8943. esac
  8944. fi
  8945. if test "$with_gnu_ld" = no; then
  8946. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8947. hardcode_libdir_separator=:
  8948. case $host_cpu in
  8949. hppa*64*|ia64*)
  8950. hardcode_direct=no
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. hardcode_direct=yes
  8955. hardcode_direct_absolute=yes
  8956. export_dynamic_flag_spec='${wl}-E'
  8957. # hardcode_minus_L: Not really in the search PATH,
  8958. # but as the default location of the library.
  8959. hardcode_minus_L=yes
  8960. ;;
  8961. esac
  8962. fi
  8963. ;;
  8964. irix5* | irix6* | nonstopux*)
  8965. if test "$GCC" = yes; then
  8966. 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'
  8967. # Try to use the -exported_symbol ld option, if it does not
  8968. # work, assume that -exports_file does not work either and
  8969. # implicitly export all symbols.
  8970. # This should be the same for all languages, so no per-tag cache variable.
  8971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8972. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8973. if ${lt_cv_irix_exported_symbol+:} false; then :
  8974. $as_echo_n "(cached) " >&6
  8975. else
  8976. save_LDFLAGS="$LDFLAGS"
  8977. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8979. /* end confdefs.h. */
  8980. int foo (void) { return 0; }
  8981. _ACEOF
  8982. if ac_fn_c_try_link "$LINENO"; then :
  8983. lt_cv_irix_exported_symbol=yes
  8984. else
  8985. lt_cv_irix_exported_symbol=no
  8986. fi
  8987. rm -f core conftest.err conftest.$ac_objext \
  8988. conftest$ac_exeext conftest.$ac_ext
  8989. LDFLAGS="$save_LDFLAGS"
  8990. fi
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8992. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8993. if test "$lt_cv_irix_exported_symbol" = yes; then
  8994. 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'
  8995. fi
  8996. else
  8997. 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'
  8998. 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'
  8999. fi
  9000. archive_cmds_need_lc='no'
  9001. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9002. hardcode_libdir_separator=:
  9003. inherit_rpath=yes
  9004. link_all_deplibs=yes
  9005. ;;
  9006. netbsd*)
  9007. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9008. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9009. else
  9010. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9011. fi
  9012. hardcode_libdir_flag_spec='-R$libdir'
  9013. hardcode_direct=yes
  9014. hardcode_shlibpath_var=no
  9015. ;;
  9016. newsos6)
  9017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9018. hardcode_direct=yes
  9019. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9020. hardcode_libdir_separator=:
  9021. hardcode_shlibpath_var=no
  9022. ;;
  9023. *nto* | *qnx*)
  9024. ;;
  9025. openbsd*)
  9026. if test -f /usr/libexec/ld.so; then
  9027. hardcode_direct=yes
  9028. hardcode_shlibpath_var=no
  9029. hardcode_direct_absolute=yes
  9030. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9031. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9032. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9033. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9034. export_dynamic_flag_spec='${wl}-E'
  9035. else
  9036. case $host_os in
  9037. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9038. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9039. hardcode_libdir_flag_spec='-R$libdir'
  9040. ;;
  9041. *)
  9042. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9043. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9044. ;;
  9045. esac
  9046. fi
  9047. else
  9048. ld_shlibs=no
  9049. fi
  9050. ;;
  9051. os2*)
  9052. hardcode_libdir_flag_spec='-L$libdir'
  9053. hardcode_minus_L=yes
  9054. allow_undefined_flag=unsupported
  9055. 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'
  9056. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9057. ;;
  9058. osf3*)
  9059. if test "$GCC" = yes; then
  9060. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9061. 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'
  9062. else
  9063. allow_undefined_flag=' -expect_unresolved \*'
  9064. 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'
  9065. fi
  9066. archive_cmds_need_lc='no'
  9067. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9068. hardcode_libdir_separator=:
  9069. ;;
  9070. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9071. if test "$GCC" = yes; then
  9072. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9073. 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'
  9074. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9075. else
  9076. allow_undefined_flag=' -expect_unresolved \*'
  9077. 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'
  9078. 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~
  9079. $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'
  9080. # Both c and cxx compiler support -rpath directly
  9081. hardcode_libdir_flag_spec='-rpath $libdir'
  9082. fi
  9083. archive_cmds_need_lc='no'
  9084. hardcode_libdir_separator=:
  9085. ;;
  9086. solaris*)
  9087. no_undefined_flag=' -z defs'
  9088. if test "$GCC" = yes; then
  9089. wlarc='${wl}'
  9090. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9091. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9092. $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'
  9093. else
  9094. case `$CC -V 2>&1` in
  9095. *"Compilers 5.0"*)
  9096. wlarc=''
  9097. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9098. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9099. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9100. ;;
  9101. *)
  9102. wlarc='${wl}'
  9103. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9104. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9105. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9106. ;;
  9107. esac
  9108. fi
  9109. hardcode_libdir_flag_spec='-R$libdir'
  9110. hardcode_shlibpath_var=no
  9111. case $host_os in
  9112. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9113. *)
  9114. # The compiler driver will combine and reorder linker options,
  9115. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9116. # but is careful enough not to reorder.
  9117. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9118. if test "$GCC" = yes; then
  9119. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9120. else
  9121. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9122. fi
  9123. ;;
  9124. esac
  9125. link_all_deplibs=yes
  9126. ;;
  9127. sunos4*)
  9128. if test "x$host_vendor" = xsequent; then
  9129. # Use $CC to link under sequent, because it throws in some extra .o
  9130. # files that make .init and .fini sections work.
  9131. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9132. else
  9133. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9134. fi
  9135. hardcode_libdir_flag_spec='-L$libdir'
  9136. hardcode_direct=yes
  9137. hardcode_minus_L=yes
  9138. hardcode_shlibpath_var=no
  9139. ;;
  9140. sysv4)
  9141. case $host_vendor in
  9142. sni)
  9143. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9144. hardcode_direct=yes # is this really true???
  9145. ;;
  9146. siemens)
  9147. ## LD is ld it makes a PLAMLIB
  9148. ## CC just makes a GrossModule.
  9149. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9150. reload_cmds='$CC -r -o $output$reload_objs'
  9151. hardcode_direct=no
  9152. ;;
  9153. motorola)
  9154. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9155. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9156. ;;
  9157. esac
  9158. runpath_var='LD_RUN_PATH'
  9159. hardcode_shlibpath_var=no
  9160. ;;
  9161. sysv4.3*)
  9162. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9163. hardcode_shlibpath_var=no
  9164. export_dynamic_flag_spec='-Bexport'
  9165. ;;
  9166. sysv4*MP*)
  9167. if test -d /usr/nec; then
  9168. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9169. hardcode_shlibpath_var=no
  9170. runpath_var=LD_RUN_PATH
  9171. hardcode_runpath_var=yes
  9172. ld_shlibs=yes
  9173. fi
  9174. ;;
  9175. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9176. no_undefined_flag='${wl}-z,text'
  9177. archive_cmds_need_lc=no
  9178. hardcode_shlibpath_var=no
  9179. runpath_var='LD_RUN_PATH'
  9180. if test "$GCC" = yes; then
  9181. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9182. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9183. else
  9184. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9185. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9186. fi
  9187. ;;
  9188. sysv5* | sco3.2v5* | sco5v6*)
  9189. # Note: We can NOT use -z defs as we might desire, because we do not
  9190. # link with -lc, and that would cause any symbols used from libc to
  9191. # always be unresolved, which means just about no library would
  9192. # ever link correctly. If we're not using GNU ld we use -z text
  9193. # though, which does catch some bad symbols but isn't as heavy-handed
  9194. # as -z defs.
  9195. no_undefined_flag='${wl}-z,text'
  9196. allow_undefined_flag='${wl}-z,nodefs'
  9197. archive_cmds_need_lc=no
  9198. hardcode_shlibpath_var=no
  9199. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9200. hardcode_libdir_separator=':'
  9201. link_all_deplibs=yes
  9202. export_dynamic_flag_spec='${wl}-Bexport'
  9203. runpath_var='LD_RUN_PATH'
  9204. if test "$GCC" = yes; then
  9205. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9206. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9207. else
  9208. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9209. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9210. fi
  9211. ;;
  9212. uts4*)
  9213. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9214. hardcode_libdir_flag_spec='-L$libdir'
  9215. hardcode_shlibpath_var=no
  9216. ;;
  9217. *)
  9218. ld_shlibs=no
  9219. ;;
  9220. esac
  9221. if test x$host_vendor = xsni; then
  9222. case $host in
  9223. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9224. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9225. ;;
  9226. esac
  9227. fi
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9230. $as_echo "$ld_shlibs" >&6; }
  9231. test "$ld_shlibs" = no && can_build_shared=no
  9232. with_gnu_ld=$with_gnu_ld
  9233. #
  9234. # Do we need to explicitly link libc?
  9235. #
  9236. case "x$archive_cmds_need_lc" in
  9237. x|xyes)
  9238. # Assume -lc should be added
  9239. archive_cmds_need_lc=yes
  9240. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9241. case $archive_cmds in
  9242. *'~'*)
  9243. # FIXME: we may have to deal with multi-command sequences.
  9244. ;;
  9245. '$CC '*)
  9246. # Test whether the compiler implicitly links with -lc since on some
  9247. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9248. # to ld, don't add -lc before -lgcc.
  9249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9250. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9251. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9252. $as_echo_n "(cached) " >&6
  9253. else
  9254. $RM conftest*
  9255. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9257. (eval $ac_compile) 2>&5
  9258. ac_status=$?
  9259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9260. test $ac_status = 0; } 2>conftest.err; then
  9261. soname=conftest
  9262. lib=conftest
  9263. libobjs=conftest.$ac_objext
  9264. deplibs=
  9265. wl=$lt_prog_compiler_wl
  9266. pic_flag=$lt_prog_compiler_pic
  9267. compiler_flags=-v
  9268. linker_flags=-v
  9269. verstring=
  9270. output_objdir=.
  9271. libname=conftest
  9272. lt_save_allow_undefined_flag=$allow_undefined_flag
  9273. allow_undefined_flag=
  9274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9275. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9276. ac_status=$?
  9277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9278. test $ac_status = 0; }
  9279. then
  9280. lt_cv_archive_cmds_need_lc=no
  9281. else
  9282. lt_cv_archive_cmds_need_lc=yes
  9283. fi
  9284. allow_undefined_flag=$lt_save_allow_undefined_flag
  9285. else
  9286. cat conftest.err 1>&5
  9287. fi
  9288. $RM conftest*
  9289. fi
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9291. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9292. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9293. ;;
  9294. esac
  9295. fi
  9296. ;;
  9297. esac
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9299. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9300. if test "$GCC" = yes; then
  9301. case $host_os in
  9302. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9303. *) lt_awk_arg="/^libraries:/" ;;
  9304. esac
  9305. case $host_os in
  9306. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9307. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9308. esac
  9309. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9310. case $lt_search_path_spec in
  9311. *\;*)
  9312. # if the path contains ";" then we assume it to be the separator
  9313. # otherwise default to the standard path separator (i.e. ":") - it is
  9314. # assumed that no part of a normal pathname contains ";" but that should
  9315. # okay in the real world where ";" in dirpaths is itself problematic.
  9316. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9317. ;;
  9318. *)
  9319. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9320. ;;
  9321. esac
  9322. # Ok, now we have the path, separated by spaces, we can step through it
  9323. # and add multilib dir if necessary.
  9324. lt_tmp_lt_search_path_spec=
  9325. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9326. for lt_sys_path in $lt_search_path_spec; do
  9327. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9328. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9329. else
  9330. test -d "$lt_sys_path" && \
  9331. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9332. fi
  9333. done
  9334. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9335. BEGIN {RS=" "; FS="/|\n";} {
  9336. lt_foo="";
  9337. lt_count=0;
  9338. for (lt_i = NF; lt_i > 0; lt_i--) {
  9339. if ($lt_i != "" && $lt_i != ".") {
  9340. if ($lt_i == "..") {
  9341. lt_count++;
  9342. } else {
  9343. if (lt_count == 0) {
  9344. lt_foo="/" $lt_i lt_foo;
  9345. } else {
  9346. lt_count--;
  9347. }
  9348. }
  9349. }
  9350. }
  9351. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9352. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9353. }'`
  9354. # AWK program above erroneously prepends '/' to C:/dos/paths
  9355. # for these hosts.
  9356. case $host_os in
  9357. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9358. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9359. esac
  9360. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9361. else
  9362. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9363. fi
  9364. library_names_spec=
  9365. libname_spec='lib$name'
  9366. soname_spec=
  9367. shrext_cmds=".so"
  9368. postinstall_cmds=
  9369. postuninstall_cmds=
  9370. finish_cmds=
  9371. finish_eval=
  9372. shlibpath_var=
  9373. shlibpath_overrides_runpath=unknown
  9374. version_type=none
  9375. dynamic_linker="$host_os ld.so"
  9376. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9377. need_lib_prefix=unknown
  9378. hardcode_into_libs=no
  9379. # when you set need_version to no, make sure it does not cause -set_version
  9380. # flags to be left without arguments
  9381. need_version=unknown
  9382. case $host_os in
  9383. aix3*)
  9384. version_type=linux # correct to gnu/linux during the next big refactor
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9386. shlibpath_var=LIBPATH
  9387. # AIX 3 has no versioning support, so we append a major version to the name.
  9388. soname_spec='${libname}${release}${shared_ext}$major'
  9389. ;;
  9390. aix[4-9]*)
  9391. version_type=linux # correct to gnu/linux during the next big refactor
  9392. need_lib_prefix=no
  9393. need_version=no
  9394. hardcode_into_libs=yes
  9395. if test "$host_cpu" = ia64; then
  9396. # AIX 5 supports IA64
  9397. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9398. shlibpath_var=LD_LIBRARY_PATH
  9399. else
  9400. # With GCC up to 2.95.x, collect2 would create an import file
  9401. # for dependence libraries. The import file would start with
  9402. # the line `#! .'. This would cause the generated library to
  9403. # depend on `.', always an invalid library. This was fixed in
  9404. # development snapshots of GCC prior to 3.0.
  9405. case $host_os in
  9406. aix4 | aix4.[01] | aix4.[01].*)
  9407. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9408. echo ' yes '
  9409. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9410. :
  9411. else
  9412. can_build_shared=no
  9413. fi
  9414. ;;
  9415. esac
  9416. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9417. # soname into executable. Probably we can add versioning support to
  9418. # collect2, so additional links can be useful in future.
  9419. if test "$aix_use_runtimelinking" = yes; then
  9420. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9421. # instead of lib<name>.a to let people know that these are not
  9422. # typical AIX shared libraries.
  9423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9424. else
  9425. # We preserve .a as extension for shared libraries through AIX4.2
  9426. # and later when we are not doing run time linking.
  9427. library_names_spec='${libname}${release}.a $libname.a'
  9428. soname_spec='${libname}${release}${shared_ext}$major'
  9429. fi
  9430. shlibpath_var=LIBPATH
  9431. fi
  9432. ;;
  9433. amigaos*)
  9434. case $host_cpu in
  9435. powerpc)
  9436. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9437. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9439. ;;
  9440. m68k)
  9441. library_names_spec='$libname.ixlibrary $libname.a'
  9442. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9443. 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'
  9444. ;;
  9445. esac
  9446. ;;
  9447. beos*)
  9448. library_names_spec='${libname}${shared_ext}'
  9449. dynamic_linker="$host_os ld.so"
  9450. shlibpath_var=LIBRARY_PATH
  9451. ;;
  9452. bsdi[45]*)
  9453. version_type=linux # correct to gnu/linux during the next big refactor
  9454. need_version=no
  9455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9456. soname_spec='${libname}${release}${shared_ext}$major'
  9457. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9458. shlibpath_var=LD_LIBRARY_PATH
  9459. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9460. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9461. # the default ld.so.conf also contains /usr/contrib/lib and
  9462. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9463. # libtool to hard-code these into programs
  9464. ;;
  9465. cygwin* | mingw* | pw32* | cegcc*)
  9466. version_type=windows
  9467. shrext_cmds=".dll"
  9468. need_version=no
  9469. need_lib_prefix=no
  9470. case $GCC,$cc_basename in
  9471. yes,*)
  9472. # gcc
  9473. library_names_spec='$libname.dll.a'
  9474. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9475. postinstall_cmds='base_file=`basename \${file}`~
  9476. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9477. dldir=$destdir/`dirname \$dlpath`~
  9478. test -d \$dldir || mkdir -p \$dldir~
  9479. $install_prog $dir/$dlname \$dldir/$dlname~
  9480. chmod a+x \$dldir/$dlname~
  9481. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9482. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9483. fi'
  9484. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9485. dlpath=$dir/\$dldll~
  9486. $RM \$dlpath'
  9487. shlibpath_overrides_runpath=yes
  9488. case $host_os in
  9489. cygwin*)
  9490. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9491. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9492. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9493. ;;
  9494. mingw* | cegcc*)
  9495. # MinGW DLLs use traditional 'lib' prefix
  9496. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9497. ;;
  9498. pw32*)
  9499. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9500. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9501. ;;
  9502. esac
  9503. dynamic_linker='Win32 ld.exe'
  9504. ;;
  9505. *,cl*)
  9506. # Native MSVC
  9507. libname_spec='$name'
  9508. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9509. library_names_spec='${libname}.dll.lib'
  9510. case $build_os in
  9511. mingw*)
  9512. sys_lib_search_path_spec=
  9513. lt_save_ifs=$IFS
  9514. IFS=';'
  9515. for lt_path in $LIB
  9516. do
  9517. IFS=$lt_save_ifs
  9518. # Let DOS variable expansion print the short 8.3 style file name.
  9519. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9520. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9521. done
  9522. IFS=$lt_save_ifs
  9523. # Convert to MSYS style.
  9524. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9525. ;;
  9526. cygwin*)
  9527. # Convert to unix form, then to dos form, then back to unix form
  9528. # but this time dos style (no spaces!) so that the unix form looks
  9529. # like /cygdrive/c/PROGRA~1:/cygdr...
  9530. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9531. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9532. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9533. ;;
  9534. *)
  9535. sys_lib_search_path_spec="$LIB"
  9536. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9537. # It is most probably a Windows format PATH.
  9538. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9539. else
  9540. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9541. fi
  9542. # FIXME: find the short name or the path components, as spaces are
  9543. # common. (e.g. "Program Files" -> "PROGRA~1")
  9544. ;;
  9545. esac
  9546. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9547. postinstall_cmds='base_file=`basename \${file}`~
  9548. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9549. dldir=$destdir/`dirname \$dlpath`~
  9550. test -d \$dldir || mkdir -p \$dldir~
  9551. $install_prog $dir/$dlname \$dldir/$dlname'
  9552. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9553. dlpath=$dir/\$dldll~
  9554. $RM \$dlpath'
  9555. shlibpath_overrides_runpath=yes
  9556. dynamic_linker='Win32 link.exe'
  9557. ;;
  9558. *)
  9559. # Assume MSVC wrapper
  9560. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9561. dynamic_linker='Win32 ld.exe'
  9562. ;;
  9563. esac
  9564. # FIXME: first we should search . and the directory the executable is in
  9565. shlibpath_var=PATH
  9566. ;;
  9567. darwin* | rhapsody*)
  9568. dynamic_linker="$host_os dyld"
  9569. version_type=darwin
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9573. soname_spec='${libname}${release}${major}$shared_ext'
  9574. shlibpath_overrides_runpath=yes
  9575. shlibpath_var=DYLD_LIBRARY_PATH
  9576. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9577. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9578. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9579. ;;
  9580. dgux*)
  9581. version_type=linux # correct to gnu/linux during the next big refactor
  9582. need_lib_prefix=no
  9583. need_version=no
  9584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9585. soname_spec='${libname}${release}${shared_ext}$major'
  9586. shlibpath_var=LD_LIBRARY_PATH
  9587. ;;
  9588. freebsd* | dragonfly*)
  9589. # DragonFly does not have aout. When/if they implement a new
  9590. # versioning mechanism, adjust this.
  9591. if test -x /usr/bin/objformat; then
  9592. objformat=`/usr/bin/objformat`
  9593. else
  9594. case $host_os in
  9595. freebsd[23].*) objformat=aout ;;
  9596. *) objformat=elf ;;
  9597. esac
  9598. fi
  9599. version_type=freebsd-$objformat
  9600. case $version_type in
  9601. freebsd-elf*)
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9603. need_version=no
  9604. need_lib_prefix=no
  9605. ;;
  9606. freebsd-*)
  9607. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9608. need_version=yes
  9609. ;;
  9610. esac
  9611. shlibpath_var=LD_LIBRARY_PATH
  9612. case $host_os in
  9613. freebsd2.*)
  9614. shlibpath_overrides_runpath=yes
  9615. ;;
  9616. freebsd3.[01]* | freebsdelf3.[01]*)
  9617. shlibpath_overrides_runpath=yes
  9618. hardcode_into_libs=yes
  9619. ;;
  9620. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9621. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9622. shlibpath_overrides_runpath=no
  9623. hardcode_into_libs=yes
  9624. ;;
  9625. *) # from 4.6 on, and DragonFly
  9626. shlibpath_overrides_runpath=yes
  9627. hardcode_into_libs=yes
  9628. ;;
  9629. esac
  9630. ;;
  9631. gnu*)
  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. shlibpath_var=LD_LIBRARY_PATH
  9638. shlibpath_overrides_runpath=no
  9639. hardcode_into_libs=yes
  9640. ;;
  9641. haiku*)
  9642. version_type=linux # correct to gnu/linux during the next big refactor
  9643. need_lib_prefix=no
  9644. need_version=no
  9645. dynamic_linker="$host_os runtime_loader"
  9646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9647. soname_spec='${libname}${release}${shared_ext}$major'
  9648. shlibpath_var=LIBRARY_PATH
  9649. shlibpath_overrides_runpath=yes
  9650. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9651. hardcode_into_libs=yes
  9652. ;;
  9653. hpux9* | hpux10* | hpux11*)
  9654. # Give a soname corresponding to the major version so that dld.sl refuses to
  9655. # link against other versions.
  9656. version_type=sunos
  9657. need_lib_prefix=no
  9658. need_version=no
  9659. case $host_cpu in
  9660. ia64*)
  9661. shrext_cmds='.so'
  9662. hardcode_into_libs=yes
  9663. dynamic_linker="$host_os dld.so"
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9667. soname_spec='${libname}${release}${shared_ext}$major'
  9668. if test "X$HPUX_IA64_MODE" = X32; then
  9669. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9670. else
  9671. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9672. fi
  9673. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9674. ;;
  9675. hppa*64*)
  9676. shrext_cmds='.sl'
  9677. hardcode_into_libs=yes
  9678. dynamic_linker="$host_os dld.sl"
  9679. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9680. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9682. soname_spec='${libname}${release}${shared_ext}$major'
  9683. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9684. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9685. ;;
  9686. *)
  9687. shrext_cmds='.sl'
  9688. dynamic_linker="$host_os dld.sl"
  9689. shlibpath_var=SHLIB_PATH
  9690. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9692. soname_spec='${libname}${release}${shared_ext}$major'
  9693. ;;
  9694. esac
  9695. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9696. postinstall_cmds='chmod 555 $lib'
  9697. # or fails outright, so override atomically:
  9698. install_override_mode=555
  9699. ;;
  9700. interix[3-9]*)
  9701. version_type=linux # correct to gnu/linux during the next big refactor
  9702. need_lib_prefix=no
  9703. need_version=no
  9704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9705. soname_spec='${libname}${release}${shared_ext}$major'
  9706. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9707. shlibpath_var=LD_LIBRARY_PATH
  9708. shlibpath_overrides_runpath=no
  9709. hardcode_into_libs=yes
  9710. ;;
  9711. irix5* | irix6* | nonstopux*)
  9712. case $host_os in
  9713. nonstopux*) version_type=nonstopux ;;
  9714. *)
  9715. if test "$lt_cv_prog_gnu_ld" = yes; then
  9716. version_type=linux # correct to gnu/linux during the next big refactor
  9717. else
  9718. version_type=irix
  9719. fi ;;
  9720. esac
  9721. need_lib_prefix=no
  9722. need_version=no
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9725. case $host_os in
  9726. irix5* | nonstopux*)
  9727. libsuff= shlibsuff=
  9728. ;;
  9729. *)
  9730. case $LD in # libtool.m4 will add one of these switches to LD
  9731. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9732. libsuff= shlibsuff= libmagic=32-bit;;
  9733. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9734. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9735. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9736. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9737. *) libsuff= shlibsuff= libmagic=never-match;;
  9738. esac
  9739. ;;
  9740. esac
  9741. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9742. shlibpath_overrides_runpath=no
  9743. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9744. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9745. hardcode_into_libs=yes
  9746. ;;
  9747. # No shared lib support for Linux oldld, aout, or coff.
  9748. linux*oldld* | linux*aout* | linux*coff*)
  9749. dynamic_linker=no
  9750. ;;
  9751. # This must be glibc/ELF.
  9752. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9753. version_type=linux # correct to gnu/linux during the next big refactor
  9754. need_lib_prefix=no
  9755. need_version=no
  9756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9757. soname_spec='${libname}${release}${shared_ext}$major'
  9758. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. shlibpath_overrides_runpath=no
  9761. # Some binutils ld are patched to set DT_RUNPATH
  9762. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9763. $as_echo_n "(cached) " >&6
  9764. else
  9765. lt_cv_shlibpath_overrides_runpath=no
  9766. save_LDFLAGS=$LDFLAGS
  9767. save_libdir=$libdir
  9768. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9769. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9771. /* end confdefs.h. */
  9772. int
  9773. main ()
  9774. {
  9775. ;
  9776. return 0;
  9777. }
  9778. _ACEOF
  9779. if ac_fn_c_try_link "$LINENO"; then :
  9780. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9781. lt_cv_shlibpath_overrides_runpath=yes
  9782. fi
  9783. fi
  9784. rm -f core conftest.err conftest.$ac_objext \
  9785. conftest$ac_exeext conftest.$ac_ext
  9786. LDFLAGS=$save_LDFLAGS
  9787. libdir=$save_libdir
  9788. fi
  9789. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9790. # This implies no fast_install, which is unacceptable.
  9791. # Some rework will be needed to allow for fast_install
  9792. # before this can be enabled.
  9793. hardcode_into_libs=yes
  9794. # Append ld.so.conf contents to the search path
  9795. if test -f /etc/ld.so.conf; then
  9796. 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' ' '`
  9797. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9798. fi
  9799. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9800. # powerpc, because MkLinux only supported shared libraries with the
  9801. # GNU dynamic linker. Since this was broken with cross compilers,
  9802. # most powerpc-linux boxes support dynamic linking these days and
  9803. # people can always --disable-shared, the test was removed, and we
  9804. # assume the GNU/Linux dynamic linker is in use.
  9805. dynamic_linker='GNU/Linux ld.so'
  9806. ;;
  9807. netbsd*)
  9808. version_type=sunos
  9809. need_lib_prefix=no
  9810. need_version=no
  9811. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9812. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9813. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9814. dynamic_linker='NetBSD (a.out) ld.so'
  9815. else
  9816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9817. soname_spec='${libname}${release}${shared_ext}$major'
  9818. dynamic_linker='NetBSD ld.elf_so'
  9819. fi
  9820. shlibpath_var=LD_LIBRARY_PATH
  9821. shlibpath_overrides_runpath=yes
  9822. hardcode_into_libs=yes
  9823. ;;
  9824. newsos6)
  9825. version_type=linux # correct to gnu/linux during the next big refactor
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. shlibpath_overrides_runpath=yes
  9829. ;;
  9830. *nto* | *qnx*)
  9831. version_type=qnx
  9832. need_lib_prefix=no
  9833. need_version=no
  9834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9835. soname_spec='${libname}${release}${shared_ext}$major'
  9836. shlibpath_var=LD_LIBRARY_PATH
  9837. shlibpath_overrides_runpath=no
  9838. hardcode_into_libs=yes
  9839. dynamic_linker='ldqnx.so'
  9840. ;;
  9841. openbsd*)
  9842. version_type=sunos
  9843. sys_lib_dlsearch_path_spec="/usr/lib"
  9844. need_lib_prefix=no
  9845. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9846. case $host_os in
  9847. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9848. *) need_version=no ;;
  9849. esac
  9850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9851. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9852. shlibpath_var=LD_LIBRARY_PATH
  9853. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9854. case $host_os in
  9855. openbsd2.[89] | openbsd2.[89].*)
  9856. shlibpath_overrides_runpath=no
  9857. ;;
  9858. *)
  9859. shlibpath_overrides_runpath=yes
  9860. ;;
  9861. esac
  9862. else
  9863. shlibpath_overrides_runpath=yes
  9864. fi
  9865. ;;
  9866. os2*)
  9867. libname_spec='$name'
  9868. shrext_cmds=".dll"
  9869. need_lib_prefix=no
  9870. library_names_spec='$libname${shared_ext} $libname.a'
  9871. dynamic_linker='OS/2 ld.exe'
  9872. shlibpath_var=LIBPATH
  9873. ;;
  9874. osf3* | osf4* | osf5*)
  9875. version_type=osf
  9876. need_lib_prefix=no
  9877. need_version=no
  9878. soname_spec='${libname}${release}${shared_ext}$major'
  9879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9880. shlibpath_var=LD_LIBRARY_PATH
  9881. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9882. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9883. ;;
  9884. rdos*)
  9885. dynamic_linker=no
  9886. ;;
  9887. solaris*)
  9888. version_type=linux # correct to gnu/linux during the next big refactor
  9889. need_lib_prefix=no
  9890. need_version=no
  9891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9892. soname_spec='${libname}${release}${shared_ext}$major'
  9893. shlibpath_var=LD_LIBRARY_PATH
  9894. shlibpath_overrides_runpath=yes
  9895. hardcode_into_libs=yes
  9896. # ldd complains unless libraries are executable
  9897. postinstall_cmds='chmod +x $lib'
  9898. ;;
  9899. sunos4*)
  9900. version_type=sunos
  9901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9902. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9903. shlibpath_var=LD_LIBRARY_PATH
  9904. shlibpath_overrides_runpath=yes
  9905. if test "$with_gnu_ld" = yes; then
  9906. need_lib_prefix=no
  9907. fi
  9908. need_version=yes
  9909. ;;
  9910. sysv4 | sysv4.3*)
  9911. version_type=linux # correct to gnu/linux during the next big refactor
  9912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9913. soname_spec='${libname}${release}${shared_ext}$major'
  9914. shlibpath_var=LD_LIBRARY_PATH
  9915. case $host_vendor in
  9916. sni)
  9917. shlibpath_overrides_runpath=no
  9918. need_lib_prefix=no
  9919. runpath_var=LD_RUN_PATH
  9920. ;;
  9921. siemens)
  9922. need_lib_prefix=no
  9923. ;;
  9924. motorola)
  9925. need_lib_prefix=no
  9926. need_version=no
  9927. shlibpath_overrides_runpath=no
  9928. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9929. ;;
  9930. esac
  9931. ;;
  9932. sysv4*MP*)
  9933. if test -d /usr/nec ;then
  9934. version_type=linux # correct to gnu/linux during the next big refactor
  9935. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9936. soname_spec='$libname${shared_ext}.$major'
  9937. shlibpath_var=LD_LIBRARY_PATH
  9938. fi
  9939. ;;
  9940. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9941. version_type=freebsd-elf
  9942. need_lib_prefix=no
  9943. need_version=no
  9944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9945. soname_spec='${libname}${release}${shared_ext}$major'
  9946. shlibpath_var=LD_LIBRARY_PATH
  9947. shlibpath_overrides_runpath=yes
  9948. hardcode_into_libs=yes
  9949. if test "$with_gnu_ld" = yes; then
  9950. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9951. else
  9952. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9953. case $host_os in
  9954. sco3.2v5*)
  9955. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9956. ;;
  9957. esac
  9958. fi
  9959. sys_lib_dlsearch_path_spec='/usr/lib'
  9960. ;;
  9961. tpf*)
  9962. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9963. version_type=linux # correct to gnu/linux during the next big refactor
  9964. need_lib_prefix=no
  9965. need_version=no
  9966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9967. shlibpath_var=LD_LIBRARY_PATH
  9968. shlibpath_overrides_runpath=no
  9969. hardcode_into_libs=yes
  9970. ;;
  9971. uts4*)
  9972. version_type=linux # correct to gnu/linux during the next big refactor
  9973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9974. soname_spec='${libname}${release}${shared_ext}$major'
  9975. shlibpath_var=LD_LIBRARY_PATH
  9976. ;;
  9977. *)
  9978. dynamic_linker=no
  9979. ;;
  9980. esac
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9982. $as_echo "$dynamic_linker" >&6; }
  9983. test "$dynamic_linker" = no && can_build_shared=no
  9984. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9985. if test "$GCC" = yes; then
  9986. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9987. fi
  9988. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9989. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9990. fi
  9991. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9992. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9993. fi
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9995. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9996. hardcode_action=
  9997. if test -n "$hardcode_libdir_flag_spec" ||
  9998. test -n "$runpath_var" ||
  9999. test "X$hardcode_automatic" = "Xyes" ; then
  10000. # We can hardcode non-existent directories.
  10001. if test "$hardcode_direct" != no &&
  10002. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10003. # have to relink, otherwise we might link with an installed library
  10004. # when we should be linking with a yet-to-be-installed one
  10005. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10006. test "$hardcode_minus_L" != no; then
  10007. # Linking always hardcodes the temporary library directory.
  10008. hardcode_action=relink
  10009. else
  10010. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10011. hardcode_action=immediate
  10012. fi
  10013. else
  10014. # We cannot hardcode anything, or else we can only hardcode existing
  10015. # directories.
  10016. hardcode_action=unsupported
  10017. fi
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10019. $as_echo "$hardcode_action" >&6; }
  10020. if test "$hardcode_action" = relink ||
  10021. test "$inherit_rpath" = yes; then
  10022. # Fast installation is not supported
  10023. enable_fast_install=no
  10024. elif test "$shlibpath_overrides_runpath" = yes ||
  10025. test "$enable_shared" = no; then
  10026. # Fast installation is not necessary
  10027. enable_fast_install=needless
  10028. fi
  10029. if test "x$enable_dlopen" != xyes; then
  10030. enable_dlopen=unknown
  10031. enable_dlopen_self=unknown
  10032. enable_dlopen_self_static=unknown
  10033. else
  10034. lt_cv_dlopen=no
  10035. lt_cv_dlopen_libs=
  10036. case $host_os in
  10037. beos*)
  10038. lt_cv_dlopen="load_add_on"
  10039. lt_cv_dlopen_libs=
  10040. lt_cv_dlopen_self=yes
  10041. ;;
  10042. mingw* | pw32* | cegcc*)
  10043. lt_cv_dlopen="LoadLibrary"
  10044. lt_cv_dlopen_libs=
  10045. ;;
  10046. cygwin*)
  10047. lt_cv_dlopen="dlopen"
  10048. lt_cv_dlopen_libs=
  10049. ;;
  10050. darwin*)
  10051. # if libdl is installed we need to link against it
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10053. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10054. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10055. $as_echo_n "(cached) " >&6
  10056. else
  10057. ac_check_lib_save_LIBS=$LIBS
  10058. LIBS="-ldl $LIBS"
  10059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10060. /* end confdefs.h. */
  10061. /* Override any GCC internal prototype to avoid an error.
  10062. Use char because int might match the return type of a GCC
  10063. builtin and then its argument prototype would still apply. */
  10064. #ifdef __cplusplus
  10065. extern "C"
  10066. #endif
  10067. char dlopen ();
  10068. int
  10069. main ()
  10070. {
  10071. return dlopen ();
  10072. ;
  10073. return 0;
  10074. }
  10075. _ACEOF
  10076. if ac_fn_c_try_link "$LINENO"; then :
  10077. ac_cv_lib_dl_dlopen=yes
  10078. else
  10079. ac_cv_lib_dl_dlopen=no
  10080. fi
  10081. rm -f core conftest.err conftest.$ac_objext \
  10082. conftest$ac_exeext conftest.$ac_ext
  10083. LIBS=$ac_check_lib_save_LIBS
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10086. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10087. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10088. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10089. else
  10090. lt_cv_dlopen="dyld"
  10091. lt_cv_dlopen_libs=
  10092. lt_cv_dlopen_self=yes
  10093. fi
  10094. ;;
  10095. *)
  10096. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10097. if test "x$ac_cv_func_shl_load" = xyes; then :
  10098. lt_cv_dlopen="shl_load"
  10099. else
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10101. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10102. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10103. $as_echo_n "(cached) " >&6
  10104. else
  10105. ac_check_lib_save_LIBS=$LIBS
  10106. LIBS="-ldld $LIBS"
  10107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10108. /* end confdefs.h. */
  10109. /* Override any GCC internal prototype to avoid an error.
  10110. Use char because int might match the return type of a GCC
  10111. builtin and then its argument prototype would still apply. */
  10112. #ifdef __cplusplus
  10113. extern "C"
  10114. #endif
  10115. char shl_load ();
  10116. int
  10117. main ()
  10118. {
  10119. return shl_load ();
  10120. ;
  10121. return 0;
  10122. }
  10123. _ACEOF
  10124. if ac_fn_c_try_link "$LINENO"; then :
  10125. ac_cv_lib_dld_shl_load=yes
  10126. else
  10127. ac_cv_lib_dld_shl_load=no
  10128. fi
  10129. rm -f core conftest.err conftest.$ac_objext \
  10130. conftest$ac_exeext conftest.$ac_ext
  10131. LIBS=$ac_check_lib_save_LIBS
  10132. fi
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10134. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10135. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10136. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10137. else
  10138. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10139. if test "x$ac_cv_func_dlopen" = xyes; then :
  10140. lt_cv_dlopen="dlopen"
  10141. else
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10143. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10144. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10145. $as_echo_n "(cached) " >&6
  10146. else
  10147. ac_check_lib_save_LIBS=$LIBS
  10148. LIBS="-ldl $LIBS"
  10149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10150. /* end confdefs.h. */
  10151. /* Override any GCC internal prototype to avoid an error.
  10152. Use char because int might match the return type of a GCC
  10153. builtin and then its argument prototype would still apply. */
  10154. #ifdef __cplusplus
  10155. extern "C"
  10156. #endif
  10157. char dlopen ();
  10158. int
  10159. main ()
  10160. {
  10161. return dlopen ();
  10162. ;
  10163. return 0;
  10164. }
  10165. _ACEOF
  10166. if ac_fn_c_try_link "$LINENO"; then :
  10167. ac_cv_lib_dl_dlopen=yes
  10168. else
  10169. ac_cv_lib_dl_dlopen=no
  10170. fi
  10171. rm -f core conftest.err conftest.$ac_objext \
  10172. conftest$ac_exeext conftest.$ac_ext
  10173. LIBS=$ac_check_lib_save_LIBS
  10174. fi
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10176. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10177. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10178. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10179. else
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10181. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10182. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10183. $as_echo_n "(cached) " >&6
  10184. else
  10185. ac_check_lib_save_LIBS=$LIBS
  10186. LIBS="-lsvld $LIBS"
  10187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10188. /* end confdefs.h. */
  10189. /* Override any GCC internal prototype to avoid an error.
  10190. Use char because int might match the return type of a GCC
  10191. builtin and then its argument prototype would still apply. */
  10192. #ifdef __cplusplus
  10193. extern "C"
  10194. #endif
  10195. char dlopen ();
  10196. int
  10197. main ()
  10198. {
  10199. return dlopen ();
  10200. ;
  10201. return 0;
  10202. }
  10203. _ACEOF
  10204. if ac_fn_c_try_link "$LINENO"; then :
  10205. ac_cv_lib_svld_dlopen=yes
  10206. else
  10207. ac_cv_lib_svld_dlopen=no
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext \
  10210. conftest$ac_exeext conftest.$ac_ext
  10211. LIBS=$ac_check_lib_save_LIBS
  10212. fi
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10214. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10215. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10216. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10217. else
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10219. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10220. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10221. $as_echo_n "(cached) " >&6
  10222. else
  10223. ac_check_lib_save_LIBS=$LIBS
  10224. LIBS="-ldld $LIBS"
  10225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10226. /* end confdefs.h. */
  10227. /* Override any GCC internal prototype to avoid an error.
  10228. Use char because int might match the return type of a GCC
  10229. builtin and then its argument prototype would still apply. */
  10230. #ifdef __cplusplus
  10231. extern "C"
  10232. #endif
  10233. char dld_link ();
  10234. int
  10235. main ()
  10236. {
  10237. return dld_link ();
  10238. ;
  10239. return 0;
  10240. }
  10241. _ACEOF
  10242. if ac_fn_c_try_link "$LINENO"; then :
  10243. ac_cv_lib_dld_dld_link=yes
  10244. else
  10245. ac_cv_lib_dld_dld_link=no
  10246. fi
  10247. rm -f core conftest.err conftest.$ac_objext \
  10248. conftest$ac_exeext conftest.$ac_ext
  10249. LIBS=$ac_check_lib_save_LIBS
  10250. fi
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10252. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10253. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10254. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10255. fi
  10256. fi
  10257. fi
  10258. fi
  10259. fi
  10260. fi
  10261. ;;
  10262. esac
  10263. if test "x$lt_cv_dlopen" != xno; then
  10264. enable_dlopen=yes
  10265. else
  10266. enable_dlopen=no
  10267. fi
  10268. case $lt_cv_dlopen in
  10269. dlopen)
  10270. save_CPPFLAGS="$CPPFLAGS"
  10271. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10272. save_LDFLAGS="$LDFLAGS"
  10273. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10274. save_LIBS="$LIBS"
  10275. LIBS="$lt_cv_dlopen_libs $LIBS"
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10277. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10278. if ${lt_cv_dlopen_self+:} false; then :
  10279. $as_echo_n "(cached) " >&6
  10280. else
  10281. if test "$cross_compiling" = yes; then :
  10282. lt_cv_dlopen_self=cross
  10283. else
  10284. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10285. lt_status=$lt_dlunknown
  10286. cat > conftest.$ac_ext <<_LT_EOF
  10287. #line $LINENO "configure"
  10288. #include "confdefs.h"
  10289. #if HAVE_DLFCN_H
  10290. #include <dlfcn.h>
  10291. #endif
  10292. #include <stdio.h>
  10293. #ifdef RTLD_GLOBAL
  10294. # define LT_DLGLOBAL RTLD_GLOBAL
  10295. #else
  10296. # ifdef DL_GLOBAL
  10297. # define LT_DLGLOBAL DL_GLOBAL
  10298. # else
  10299. # define LT_DLGLOBAL 0
  10300. # endif
  10301. #endif
  10302. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10303. find out it does not work in some platform. */
  10304. #ifndef LT_DLLAZY_OR_NOW
  10305. # ifdef RTLD_LAZY
  10306. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10307. # else
  10308. # ifdef DL_LAZY
  10309. # define LT_DLLAZY_OR_NOW DL_LAZY
  10310. # else
  10311. # ifdef RTLD_NOW
  10312. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10313. # else
  10314. # ifdef DL_NOW
  10315. # define LT_DLLAZY_OR_NOW DL_NOW
  10316. # else
  10317. # define LT_DLLAZY_OR_NOW 0
  10318. # endif
  10319. # endif
  10320. # endif
  10321. # endif
  10322. #endif
  10323. /* When -fvisbility=hidden is used, assume the code has been annotated
  10324. correspondingly for the symbols needed. */
  10325. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10326. int fnord () __attribute__((visibility("default")));
  10327. #endif
  10328. int fnord () { return 42; }
  10329. int main ()
  10330. {
  10331. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10332. int status = $lt_dlunknown;
  10333. if (self)
  10334. {
  10335. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10336. else
  10337. {
  10338. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10339. else puts (dlerror ());
  10340. }
  10341. /* dlclose (self); */
  10342. }
  10343. else
  10344. puts (dlerror ());
  10345. return status;
  10346. }
  10347. _LT_EOF
  10348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10349. (eval $ac_link) 2>&5
  10350. ac_status=$?
  10351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10352. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10353. (./conftest; exit; ) >&5 2>/dev/null
  10354. lt_status=$?
  10355. case x$lt_status in
  10356. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10357. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10358. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10359. esac
  10360. else :
  10361. # compilation failed
  10362. lt_cv_dlopen_self=no
  10363. fi
  10364. fi
  10365. rm -fr conftest*
  10366. fi
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10368. $as_echo "$lt_cv_dlopen_self" >&6; }
  10369. if test "x$lt_cv_dlopen_self" = xyes; then
  10370. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10372. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10373. if ${lt_cv_dlopen_self_static+:} false; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. if test "$cross_compiling" = yes; then :
  10377. lt_cv_dlopen_self_static=cross
  10378. else
  10379. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10380. lt_status=$lt_dlunknown
  10381. cat > conftest.$ac_ext <<_LT_EOF
  10382. #line $LINENO "configure"
  10383. #include "confdefs.h"
  10384. #if HAVE_DLFCN_H
  10385. #include <dlfcn.h>
  10386. #endif
  10387. #include <stdio.h>
  10388. #ifdef RTLD_GLOBAL
  10389. # define LT_DLGLOBAL RTLD_GLOBAL
  10390. #else
  10391. # ifdef DL_GLOBAL
  10392. # define LT_DLGLOBAL DL_GLOBAL
  10393. # else
  10394. # define LT_DLGLOBAL 0
  10395. # endif
  10396. #endif
  10397. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10398. find out it does not work in some platform. */
  10399. #ifndef LT_DLLAZY_OR_NOW
  10400. # ifdef RTLD_LAZY
  10401. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10402. # else
  10403. # ifdef DL_LAZY
  10404. # define LT_DLLAZY_OR_NOW DL_LAZY
  10405. # else
  10406. # ifdef RTLD_NOW
  10407. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10408. # else
  10409. # ifdef DL_NOW
  10410. # define LT_DLLAZY_OR_NOW DL_NOW
  10411. # else
  10412. # define LT_DLLAZY_OR_NOW 0
  10413. # endif
  10414. # endif
  10415. # endif
  10416. # endif
  10417. #endif
  10418. /* When -fvisbility=hidden is used, assume the code has been annotated
  10419. correspondingly for the symbols needed. */
  10420. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10421. int fnord () __attribute__((visibility("default")));
  10422. #endif
  10423. int fnord () { return 42; }
  10424. int main ()
  10425. {
  10426. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10427. int status = $lt_dlunknown;
  10428. if (self)
  10429. {
  10430. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10431. else
  10432. {
  10433. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10434. else puts (dlerror ());
  10435. }
  10436. /* dlclose (self); */
  10437. }
  10438. else
  10439. puts (dlerror ());
  10440. return status;
  10441. }
  10442. _LT_EOF
  10443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10444. (eval $ac_link) 2>&5
  10445. ac_status=$?
  10446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10447. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10448. (./conftest; exit; ) >&5 2>/dev/null
  10449. lt_status=$?
  10450. case x$lt_status in
  10451. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10452. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10453. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10454. esac
  10455. else :
  10456. # compilation failed
  10457. lt_cv_dlopen_self_static=no
  10458. fi
  10459. fi
  10460. rm -fr conftest*
  10461. fi
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10463. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10464. fi
  10465. CPPFLAGS="$save_CPPFLAGS"
  10466. LDFLAGS="$save_LDFLAGS"
  10467. LIBS="$save_LIBS"
  10468. ;;
  10469. esac
  10470. case $lt_cv_dlopen_self in
  10471. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10472. *) enable_dlopen_self=unknown ;;
  10473. esac
  10474. case $lt_cv_dlopen_self_static in
  10475. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10476. *) enable_dlopen_self_static=unknown ;;
  10477. esac
  10478. fi
  10479. striplib=
  10480. old_striplib=
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10482. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10483. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10484. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10485. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10487. $as_echo "yes" >&6; }
  10488. else
  10489. # FIXME - insert some real tests, host_os isn't really good enough
  10490. case $host_os in
  10491. darwin*)
  10492. if test -n "$STRIP" ; then
  10493. striplib="$STRIP -x"
  10494. old_striplib="$STRIP -S"
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10496. $as_echo "yes" >&6; }
  10497. else
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. fi
  10501. ;;
  10502. *)
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10504. $as_echo "no" >&6; }
  10505. ;;
  10506. esac
  10507. fi
  10508. # Report which library types will actually be built
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10510. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10512. $as_echo "$can_build_shared" >&6; }
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10514. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10515. test "$can_build_shared" = "no" && enable_shared=no
  10516. # On AIX, shared libraries and static libraries use the same namespace, and
  10517. # are all built from PIC.
  10518. case $host_os in
  10519. aix3*)
  10520. test "$enable_shared" = yes && enable_static=no
  10521. if test -n "$RANLIB"; then
  10522. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10523. postinstall_cmds='$RANLIB $lib'
  10524. fi
  10525. ;;
  10526. aix[4-9]*)
  10527. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10528. test "$enable_shared" = yes && enable_static=no
  10529. fi
  10530. ;;
  10531. esac
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10533. $as_echo "$enable_shared" >&6; }
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10535. $as_echo_n "checking whether to build static libraries... " >&6; }
  10536. # Make sure either enable_shared or enable_static is yes.
  10537. test "$enable_shared" = yes || enable_static=yes
  10538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10539. $as_echo "$enable_static" >&6; }
  10540. fi
  10541. ac_ext=c
  10542. ac_cpp='$CPP $CPPFLAGS'
  10543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10546. CC="$lt_save_CC"
  10547. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10548. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10549. (test "X$CXX" != "Xg++"))) ; then
  10550. ac_ext=cpp
  10551. ac_cpp='$CXXCPP $CPPFLAGS'
  10552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10556. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10557. if test -z "$CXXCPP"; then
  10558. if ${ac_cv_prog_CXXCPP+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. # Double quotes because CXXCPP needs to be expanded
  10562. for CXXCPP in "$CXX -E" "/lib/cpp"
  10563. do
  10564. ac_preproc_ok=false
  10565. for ac_cxx_preproc_warn_flag in '' yes
  10566. do
  10567. # Use a header file that comes with gcc, so configuring glibc
  10568. # with a fresh cross-compiler works.
  10569. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10570. # <limits.h> exists even on freestanding compilers.
  10571. # On the NeXT, cc -E runs the code through the compiler's parser,
  10572. # not just through cpp. "Syntax error" is here to catch this case.
  10573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10574. /* end confdefs.h. */
  10575. #ifdef __STDC__
  10576. # include <limits.h>
  10577. #else
  10578. # include <assert.h>
  10579. #endif
  10580. Syntax error
  10581. _ACEOF
  10582. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10583. else
  10584. # Broken: fails on valid input.
  10585. continue
  10586. fi
  10587. rm -f conftest.err conftest.i conftest.$ac_ext
  10588. # OK, works on sane cases. Now check whether nonexistent headers
  10589. # can be detected and how.
  10590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10591. /* end confdefs.h. */
  10592. #include <ac_nonexistent.h>
  10593. _ACEOF
  10594. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10595. # Broken: success on invalid input.
  10596. continue
  10597. else
  10598. # Passes both tests.
  10599. ac_preproc_ok=:
  10600. break
  10601. fi
  10602. rm -f conftest.err conftest.i conftest.$ac_ext
  10603. done
  10604. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10605. rm -f conftest.i conftest.err conftest.$ac_ext
  10606. if $ac_preproc_ok; then :
  10607. break
  10608. fi
  10609. done
  10610. ac_cv_prog_CXXCPP=$CXXCPP
  10611. fi
  10612. CXXCPP=$ac_cv_prog_CXXCPP
  10613. else
  10614. ac_cv_prog_CXXCPP=$CXXCPP
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10617. $as_echo "$CXXCPP" >&6; }
  10618. ac_preproc_ok=false
  10619. for ac_cxx_preproc_warn_flag in '' yes
  10620. do
  10621. # Use a header file that comes with gcc, so configuring glibc
  10622. # with a fresh cross-compiler works.
  10623. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10624. # <limits.h> exists even on freestanding compilers.
  10625. # On the NeXT, cc -E runs the code through the compiler's parser,
  10626. # not just through cpp. "Syntax error" is here to catch this case.
  10627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10628. /* end confdefs.h. */
  10629. #ifdef __STDC__
  10630. # include <limits.h>
  10631. #else
  10632. # include <assert.h>
  10633. #endif
  10634. Syntax error
  10635. _ACEOF
  10636. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10637. else
  10638. # Broken: fails on valid input.
  10639. continue
  10640. fi
  10641. rm -f conftest.err conftest.i conftest.$ac_ext
  10642. # OK, works on sane cases. Now check whether nonexistent headers
  10643. # can be detected and how.
  10644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10645. /* end confdefs.h. */
  10646. #include <ac_nonexistent.h>
  10647. _ACEOF
  10648. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10649. # Broken: success on invalid input.
  10650. continue
  10651. else
  10652. # Passes both tests.
  10653. ac_preproc_ok=:
  10654. break
  10655. fi
  10656. rm -f conftest.err conftest.i conftest.$ac_ext
  10657. done
  10658. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10659. rm -f conftest.i conftest.err conftest.$ac_ext
  10660. if $ac_preproc_ok; then :
  10661. else
  10662. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10664. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10665. See \`config.log' for more details" "$LINENO" 5; }
  10666. fi
  10667. ac_ext=c
  10668. ac_cpp='$CPP $CPPFLAGS'
  10669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10672. else
  10673. _lt_caught_CXX_error=yes
  10674. fi
  10675. ac_ext=cpp
  10676. ac_cpp='$CXXCPP $CPPFLAGS'
  10677. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10678. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10679. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10680. archive_cmds_need_lc_CXX=no
  10681. allow_undefined_flag_CXX=
  10682. always_export_symbols_CXX=no
  10683. archive_expsym_cmds_CXX=
  10684. compiler_needs_object_CXX=no
  10685. export_dynamic_flag_spec_CXX=
  10686. hardcode_direct_CXX=no
  10687. hardcode_direct_absolute_CXX=no
  10688. hardcode_libdir_flag_spec_CXX=
  10689. hardcode_libdir_separator_CXX=
  10690. hardcode_minus_L_CXX=no
  10691. hardcode_shlibpath_var_CXX=unsupported
  10692. hardcode_automatic_CXX=no
  10693. inherit_rpath_CXX=no
  10694. module_cmds_CXX=
  10695. module_expsym_cmds_CXX=
  10696. link_all_deplibs_CXX=unknown
  10697. old_archive_cmds_CXX=$old_archive_cmds
  10698. reload_flag_CXX=$reload_flag
  10699. reload_cmds_CXX=$reload_cmds
  10700. no_undefined_flag_CXX=
  10701. whole_archive_flag_spec_CXX=
  10702. enable_shared_with_static_runtimes_CXX=no
  10703. # Source file extension for C++ test sources.
  10704. ac_ext=cpp
  10705. # Object file extension for compiled C++ test sources.
  10706. objext=o
  10707. objext_CXX=$objext
  10708. # No sense in running all these tests if we already determined that
  10709. # the CXX compiler isn't working. Some variables (like enable_shared)
  10710. # are currently assumed to apply to all compilers on this platform,
  10711. # and will be corrupted by setting them based on a non-working compiler.
  10712. if test "$_lt_caught_CXX_error" != yes; then
  10713. # Code to be used in simple compile tests
  10714. lt_simple_compile_test_code="int some_variable = 0;"
  10715. # Code to be used in simple link tests
  10716. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10717. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10718. # If no C compiler was specified, use CC.
  10719. LTCC=${LTCC-"$CC"}
  10720. # If no C compiler flags were specified, use CFLAGS.
  10721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10722. # Allow CC to be a program name with arguments.
  10723. compiler=$CC
  10724. # save warnings/boilerplate of simple test code
  10725. ac_outfile=conftest.$ac_objext
  10726. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10727. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10728. _lt_compiler_boilerplate=`cat conftest.err`
  10729. $RM conftest*
  10730. ac_outfile=conftest.$ac_objext
  10731. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10732. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10733. _lt_linker_boilerplate=`cat conftest.err`
  10734. $RM -r conftest*
  10735. # Allow CC to be a program name with arguments.
  10736. lt_save_CC=$CC
  10737. lt_save_CFLAGS=$CFLAGS
  10738. lt_save_LD=$LD
  10739. lt_save_GCC=$GCC
  10740. GCC=$GXX
  10741. lt_save_with_gnu_ld=$with_gnu_ld
  10742. lt_save_path_LD=$lt_cv_path_LD
  10743. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10744. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10745. else
  10746. $as_unset lt_cv_prog_gnu_ld
  10747. fi
  10748. if test -n "${lt_cv_path_LDCXX+set}"; then
  10749. lt_cv_path_LD=$lt_cv_path_LDCXX
  10750. else
  10751. $as_unset lt_cv_path_LD
  10752. fi
  10753. test -z "${LDCXX+set}" || LD=$LDCXX
  10754. CC=${CXX-"c++"}
  10755. CFLAGS=$CXXFLAGS
  10756. compiler=$CC
  10757. compiler_CXX=$CC
  10758. for cc_temp in $compiler""; do
  10759. case $cc_temp in
  10760. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10761. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10762. \-*) ;;
  10763. *) break;;
  10764. esac
  10765. done
  10766. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10767. if test -n "$compiler"; then
  10768. # We don't want -fno-exception when compiling C++ code, so set the
  10769. # no_builtin_flag separately
  10770. if test "$GXX" = yes; then
  10771. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10772. else
  10773. lt_prog_compiler_no_builtin_flag_CXX=
  10774. fi
  10775. if test "$GXX" = yes; then
  10776. # Set up default GNU C++ configuration
  10777. # Check whether --with-gnu-ld was given.
  10778. if test "${with_gnu_ld+set}" = set; then :
  10779. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10780. else
  10781. with_gnu_ld=no
  10782. fi
  10783. ac_prog=ld
  10784. if test "$GCC" = yes; then
  10785. # Check if gcc -print-prog-name=ld gives a path.
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10787. $as_echo_n "checking for ld used by $CC... " >&6; }
  10788. case $host in
  10789. *-*-mingw*)
  10790. # gcc leaves a trailing carriage return which upsets mingw
  10791. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10792. *)
  10793. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10794. esac
  10795. case $ac_prog in
  10796. # Accept absolute paths.
  10797. [\\/]* | ?:[\\/]*)
  10798. re_direlt='/[^/][^/]*/\.\./'
  10799. # Canonicalize the pathname of ld
  10800. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10801. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10802. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10803. done
  10804. test -z "$LD" && LD="$ac_prog"
  10805. ;;
  10806. "")
  10807. # If it fails, then pretend we aren't using GCC.
  10808. ac_prog=ld
  10809. ;;
  10810. *)
  10811. # If it is relative, then search for the first ld in PATH.
  10812. with_gnu_ld=unknown
  10813. ;;
  10814. esac
  10815. elif test "$with_gnu_ld" = yes; then
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10817. $as_echo_n "checking for GNU ld... " >&6; }
  10818. else
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10820. $as_echo_n "checking for non-GNU ld... " >&6; }
  10821. fi
  10822. if ${lt_cv_path_LD+:} false; then :
  10823. $as_echo_n "(cached) " >&6
  10824. else
  10825. if test -z "$LD"; then
  10826. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10827. for ac_dir in $PATH; do
  10828. IFS="$lt_save_ifs"
  10829. test -z "$ac_dir" && ac_dir=.
  10830. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10831. lt_cv_path_LD="$ac_dir/$ac_prog"
  10832. # Check to see if the program is GNU ld. I'd rather use --version,
  10833. # but apparently some variants of GNU ld only accept -v.
  10834. # Break only if it was the GNU/non-GNU ld that we prefer.
  10835. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10836. *GNU* | *'with BFD'*)
  10837. test "$with_gnu_ld" != no && break
  10838. ;;
  10839. *)
  10840. test "$with_gnu_ld" != yes && break
  10841. ;;
  10842. esac
  10843. fi
  10844. done
  10845. IFS="$lt_save_ifs"
  10846. else
  10847. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10848. fi
  10849. fi
  10850. LD="$lt_cv_path_LD"
  10851. if test -n "$LD"; then
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10853. $as_echo "$LD" >&6; }
  10854. else
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10856. $as_echo "no" >&6; }
  10857. fi
  10858. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10860. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10861. if ${lt_cv_prog_gnu_ld+:} false; then :
  10862. $as_echo_n "(cached) " >&6
  10863. else
  10864. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10865. case `$LD -v 2>&1 </dev/null` in
  10866. *GNU* | *'with BFD'*)
  10867. lt_cv_prog_gnu_ld=yes
  10868. ;;
  10869. *)
  10870. lt_cv_prog_gnu_ld=no
  10871. ;;
  10872. esac
  10873. fi
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10875. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10876. with_gnu_ld=$lt_cv_prog_gnu_ld
  10877. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10878. # archiving commands below assume that GNU ld is being used.
  10879. if test "$with_gnu_ld" = yes; then
  10880. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10881. 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'
  10882. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10883. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10884. # If archive_cmds runs LD, not CC, wlarc should be empty
  10885. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10886. # investigate it a little bit more. (MM)
  10887. wlarc='${wl}'
  10888. # ancient GNU ld didn't support --whole-archive et. al.
  10889. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10890. $GREP 'no-whole-archive' > /dev/null; then
  10891. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10892. else
  10893. whole_archive_flag_spec_CXX=
  10894. fi
  10895. else
  10896. with_gnu_ld=no
  10897. wlarc=
  10898. # A generic and very simple default shared library creation
  10899. # command for GNU C++ for the case where it uses the native
  10900. # linker, instead of GNU ld. If possible, this setting should
  10901. # overridden to take advantage of the native linker features on
  10902. # the platform it is being used on.
  10903. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10904. fi
  10905. # Commands to make compiler produce verbose output that lists
  10906. # what "hidden" libraries, object files and flags are used when
  10907. # linking a shared library.
  10908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10909. else
  10910. GXX=no
  10911. with_gnu_ld=no
  10912. wlarc=
  10913. fi
  10914. # PORTME: fill in a description of your system's C++ link characteristics
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10916. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10917. ld_shlibs_CXX=yes
  10918. case $host_os in
  10919. aix3*)
  10920. # FIXME: insert proper C++ library support
  10921. ld_shlibs_CXX=no
  10922. ;;
  10923. aix[4-9]*)
  10924. if test "$host_cpu" = ia64; then
  10925. # On IA64, the linker does run time linking by default, so we don't
  10926. # have to do anything special.
  10927. aix_use_runtimelinking=no
  10928. exp_sym_flag='-Bexport'
  10929. no_entry_flag=""
  10930. else
  10931. aix_use_runtimelinking=no
  10932. # Test if we are trying to use run time linking or normal
  10933. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10934. # need to do runtime linking.
  10935. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10936. for ld_flag in $LDFLAGS; do
  10937. case $ld_flag in
  10938. *-brtl*)
  10939. aix_use_runtimelinking=yes
  10940. break
  10941. ;;
  10942. esac
  10943. done
  10944. ;;
  10945. esac
  10946. exp_sym_flag='-bexport'
  10947. no_entry_flag='-bnoentry'
  10948. fi
  10949. # When large executables or shared objects are built, AIX ld can
  10950. # have problems creating the table of contents. If linking a library
  10951. # or program results in "error TOC overflow" add -mminimal-toc to
  10952. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10953. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10954. archive_cmds_CXX=''
  10955. hardcode_direct_CXX=yes
  10956. hardcode_direct_absolute_CXX=yes
  10957. hardcode_libdir_separator_CXX=':'
  10958. link_all_deplibs_CXX=yes
  10959. file_list_spec_CXX='${wl}-f,'
  10960. if test "$GXX" = yes; then
  10961. case $host_os in aix4.[012]|aix4.[012].*)
  10962. # We only want to do this on AIX 4.2 and lower, the check
  10963. # below for broken collect2 doesn't work under 4.3+
  10964. collect2name=`${CC} -print-prog-name=collect2`
  10965. if test -f "$collect2name" &&
  10966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10967. then
  10968. # We have reworked collect2
  10969. :
  10970. else
  10971. # We have old collect2
  10972. hardcode_direct_CXX=unsupported
  10973. # It fails to find uninstalled libraries when the uninstalled
  10974. # path is not listed in the libpath. Setting hardcode_minus_L
  10975. # to unsupported forces relinking
  10976. hardcode_minus_L_CXX=yes
  10977. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10978. hardcode_libdir_separator_CXX=
  10979. fi
  10980. esac
  10981. shared_flag='-shared'
  10982. if test "$aix_use_runtimelinking" = yes; then
  10983. shared_flag="$shared_flag "'${wl}-G'
  10984. fi
  10985. else
  10986. # not using gcc
  10987. if test "$host_cpu" = ia64; then
  10988. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10989. # chokes on -Wl,-G. The following line is correct:
  10990. shared_flag='-G'
  10991. else
  10992. if test "$aix_use_runtimelinking" = yes; then
  10993. shared_flag='${wl}-G'
  10994. else
  10995. shared_flag='${wl}-bM:SRE'
  10996. fi
  10997. fi
  10998. fi
  10999. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11000. # It seems that -bexpall does not export symbols beginning with
  11001. # underscore (_), so it is better to generate a list of symbols to
  11002. # export.
  11003. always_export_symbols_CXX=yes
  11004. if test "$aix_use_runtimelinking" = yes; then
  11005. # Warning - without using the other runtime loading flags (-brtl),
  11006. # -berok will link without error, but may produce a broken library.
  11007. allow_undefined_flag_CXX='-berok'
  11008. # Determine the default libpath from the value encoded in an empty
  11009. # executable.
  11010. if test "${lt_cv_aix_libpath+set}" = set; then
  11011. aix_libpath=$lt_cv_aix_libpath
  11012. else
  11013. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. int
  11019. main ()
  11020. {
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_cxx_try_link "$LINENO"; then :
  11026. lt_aix_libpath_sed='
  11027. /Import File Strings/,/^$/ {
  11028. /^0/ {
  11029. s/^0 *\([^ ]*\) *$/\1/
  11030. p
  11031. }
  11032. }'
  11033. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. # Check for a 64-bit object if we didn't find anything.
  11035. if test -z "$lt_cv_aix_libpath__CXX"; then
  11036. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11037. fi
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. if test -z "$lt_cv_aix_libpath__CXX"; then
  11042. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11043. fi
  11044. fi
  11045. aix_libpath=$lt_cv_aix_libpath__CXX
  11046. fi
  11047. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11048. 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"
  11049. else
  11050. if test "$host_cpu" = ia64; then
  11051. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11052. allow_undefined_flag_CXX="-z nodefs"
  11053. 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"
  11054. else
  11055. # Determine the default libpath from the value encoded in an
  11056. # empty executable.
  11057. if test "${lt_cv_aix_libpath+set}" = set; then
  11058. aix_libpath=$lt_cv_aix_libpath
  11059. else
  11060. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main ()
  11067. {
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. if ac_fn_cxx_try_link "$LINENO"; then :
  11073. lt_aix_libpath_sed='
  11074. /Import File Strings/,/^$/ {
  11075. /^0/ {
  11076. s/^0 *\([^ ]*\) *$/\1/
  11077. p
  11078. }
  11079. }'
  11080. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11081. # Check for a 64-bit object if we didn't find anything.
  11082. if test -z "$lt_cv_aix_libpath__CXX"; then
  11083. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11084. fi
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. if test -z "$lt_cv_aix_libpath__CXX"; then
  11089. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11090. fi
  11091. fi
  11092. aix_libpath=$lt_cv_aix_libpath__CXX
  11093. fi
  11094. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11095. # Warning - without using the other run time loading flags,
  11096. # -berok will link without error, but may produce a broken library.
  11097. no_undefined_flag_CXX=' ${wl}-bernotok'
  11098. allow_undefined_flag_CXX=' ${wl}-berok'
  11099. if test "$with_gnu_ld" = yes; then
  11100. # We only use this code for GNU lds that support --whole-archive.
  11101. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11102. else
  11103. # Exported symbols can be pulled into shared objects from archives
  11104. whole_archive_flag_spec_CXX='$convenience'
  11105. fi
  11106. archive_cmds_need_lc_CXX=yes
  11107. # This is similar to how AIX traditionally builds its shared
  11108. # libraries.
  11109. 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'
  11110. fi
  11111. fi
  11112. ;;
  11113. beos*)
  11114. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11115. allow_undefined_flag_CXX=unsupported
  11116. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11117. # support --undefined. This deserves some investigation. FIXME
  11118. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11119. else
  11120. ld_shlibs_CXX=no
  11121. fi
  11122. ;;
  11123. chorus*)
  11124. case $cc_basename in
  11125. *)
  11126. # FIXME: insert proper C++ library support
  11127. ld_shlibs_CXX=no
  11128. ;;
  11129. esac
  11130. ;;
  11131. cygwin* | mingw* | pw32* | cegcc*)
  11132. case $GXX,$cc_basename in
  11133. ,cl* | no,cl*)
  11134. # Native MSVC
  11135. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11136. # no search path for DLLs.
  11137. hardcode_libdir_flag_spec_CXX=' '
  11138. allow_undefined_flag_CXX=unsupported
  11139. always_export_symbols_CXX=yes
  11140. file_list_spec_CXX='@'
  11141. # Tell ltmain to make .lib files, not .a files.
  11142. libext=lib
  11143. # Tell ltmain to make .dll files, not .so files.
  11144. shrext_cmds=".dll"
  11145. # FIXME: Setting linknames here is a bad hack.
  11146. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11147. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11148. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11149. else
  11150. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11151. fi~
  11152. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11153. linknames='
  11154. # The linker will not automatically build a static lib if we build a DLL.
  11155. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11156. enable_shared_with_static_runtimes_CXX=yes
  11157. # Don't use ranlib
  11158. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11159. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11160. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11161. case $lt_outputfile in
  11162. *.exe|*.EXE) ;;
  11163. *)
  11164. lt_outputfile="$lt_outputfile.exe"
  11165. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11166. ;;
  11167. esac~
  11168. func_to_tool_file "$lt_outputfile"~
  11169. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11170. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11171. $RM "$lt_outputfile.manifest";
  11172. fi'
  11173. ;;
  11174. *)
  11175. # g++
  11176. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11177. # as there is no search path for DLLs.
  11178. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11179. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11180. allow_undefined_flag_CXX=unsupported
  11181. always_export_symbols_CXX=no
  11182. enable_shared_with_static_runtimes_CXX=yes
  11183. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11184. 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'
  11185. # If the export-symbols file already is a .def file (1st line
  11186. # is EXPORTS), use it as is; otherwise, prepend...
  11187. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11188. cp $export_symbols $output_objdir/$soname.def;
  11189. else
  11190. echo EXPORTS > $output_objdir/$soname.def;
  11191. cat $export_symbols >> $output_objdir/$soname.def;
  11192. fi~
  11193. $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'
  11194. else
  11195. ld_shlibs_CXX=no
  11196. fi
  11197. ;;
  11198. esac
  11199. ;;
  11200. darwin* | rhapsody*)
  11201. archive_cmds_need_lc_CXX=no
  11202. hardcode_direct_CXX=no
  11203. hardcode_automatic_CXX=yes
  11204. hardcode_shlibpath_var_CXX=unsupported
  11205. if test "$lt_cv_ld_force_load" = "yes"; then
  11206. 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\"`'
  11207. else
  11208. whole_archive_flag_spec_CXX=''
  11209. fi
  11210. link_all_deplibs_CXX=yes
  11211. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11212. case $cc_basename in
  11213. ifort*) _lt_dar_can_shared=yes ;;
  11214. *) _lt_dar_can_shared=$GCC ;;
  11215. esac
  11216. if test "$_lt_dar_can_shared" = "yes"; then
  11217. output_verbose_link_cmd=func_echo_all
  11218. 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}"
  11219. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11220. 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}"
  11221. 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}"
  11222. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11223. 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}"
  11224. 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}"
  11225. fi
  11226. else
  11227. ld_shlibs_CXX=no
  11228. fi
  11229. ;;
  11230. dgux*)
  11231. case $cc_basename in
  11232. ec++*)
  11233. # FIXME: insert proper C++ library support
  11234. ld_shlibs_CXX=no
  11235. ;;
  11236. ghcx*)
  11237. # Green Hills C++ Compiler
  11238. # FIXME: insert proper C++ library support
  11239. ld_shlibs_CXX=no
  11240. ;;
  11241. *)
  11242. # FIXME: insert proper C++ library support
  11243. ld_shlibs_CXX=no
  11244. ;;
  11245. esac
  11246. ;;
  11247. freebsd2.*)
  11248. # C++ shared libraries reported to be fairly broken before
  11249. # switch to ELF
  11250. ld_shlibs_CXX=no
  11251. ;;
  11252. freebsd-elf*)
  11253. archive_cmds_need_lc_CXX=no
  11254. ;;
  11255. freebsd* | dragonfly*)
  11256. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11257. # conventions
  11258. ld_shlibs_CXX=yes
  11259. ;;
  11260. gnu*)
  11261. ;;
  11262. haiku*)
  11263. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11264. link_all_deplibs_CXX=yes
  11265. ;;
  11266. hpux9*)
  11267. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11268. hardcode_libdir_separator_CXX=:
  11269. export_dynamic_flag_spec_CXX='${wl}-E'
  11270. hardcode_direct_CXX=yes
  11271. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11272. # but as the default
  11273. # location of the library.
  11274. case $cc_basename in
  11275. CC*)
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. ;;
  11279. aCC*)
  11280. 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'
  11281. # Commands to make compiler produce verbose output that lists
  11282. # what "hidden" libraries, object files and flags are used when
  11283. # linking a shared library.
  11284. #
  11285. # There doesn't appear to be a way to prevent this compiler from
  11286. # explicitly linking system object files so we need to strip them
  11287. # from the output so that they don't get included in the library
  11288. # dependencies.
  11289. 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"'
  11290. ;;
  11291. *)
  11292. if test "$GXX" = yes; then
  11293. 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'
  11294. else
  11295. # FIXME: insert proper C++ library support
  11296. ld_shlibs_CXX=no
  11297. fi
  11298. ;;
  11299. esac
  11300. ;;
  11301. hpux10*|hpux11*)
  11302. if test $with_gnu_ld = no; then
  11303. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11304. hardcode_libdir_separator_CXX=:
  11305. case $host_cpu in
  11306. hppa*64*|ia64*)
  11307. ;;
  11308. *)
  11309. export_dynamic_flag_spec_CXX='${wl}-E'
  11310. ;;
  11311. esac
  11312. fi
  11313. case $host_cpu in
  11314. hppa*64*|ia64*)
  11315. hardcode_direct_CXX=no
  11316. hardcode_shlibpath_var_CXX=no
  11317. ;;
  11318. *)
  11319. hardcode_direct_CXX=yes
  11320. hardcode_direct_absolute_CXX=yes
  11321. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11322. # but as the default
  11323. # location of the library.
  11324. ;;
  11325. esac
  11326. case $cc_basename in
  11327. CC*)
  11328. # FIXME: insert proper C++ library support
  11329. ld_shlibs_CXX=no
  11330. ;;
  11331. aCC*)
  11332. case $host_cpu in
  11333. hppa*64*)
  11334. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11335. ;;
  11336. ia64*)
  11337. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11338. ;;
  11339. *)
  11340. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11341. ;;
  11342. esac
  11343. # Commands to make compiler produce verbose output that lists
  11344. # what "hidden" libraries, object files and flags are used when
  11345. # linking a shared library.
  11346. #
  11347. # There doesn't appear to be a way to prevent this compiler from
  11348. # explicitly linking system object files so we need to strip them
  11349. # from the output so that they don't get included in the library
  11350. # dependencies.
  11351. 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"'
  11352. ;;
  11353. *)
  11354. if test "$GXX" = yes; then
  11355. if test $with_gnu_ld = no; then
  11356. case $host_cpu in
  11357. hppa*64*)
  11358. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11359. ;;
  11360. ia64*)
  11361. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11362. ;;
  11363. *)
  11364. 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'
  11365. ;;
  11366. esac
  11367. fi
  11368. else
  11369. # FIXME: insert proper C++ library support
  11370. ld_shlibs_CXX=no
  11371. fi
  11372. ;;
  11373. esac
  11374. ;;
  11375. interix[3-9]*)
  11376. hardcode_direct_CXX=no
  11377. hardcode_shlibpath_var_CXX=no
  11378. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11379. export_dynamic_flag_spec_CXX='${wl}-E'
  11380. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11381. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11382. # default) and relocated if they conflict, which is a slow very memory
  11383. # consuming and fragmenting process. To avoid this, we pick a random,
  11384. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11385. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11386. 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'
  11387. 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'
  11388. ;;
  11389. irix5* | irix6*)
  11390. case $cc_basename in
  11391. CC*)
  11392. # SGI C++
  11393. 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'
  11394. # Archives containing C++ object files must be created using
  11395. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11396. # necessary to make sure instantiated templates are included
  11397. # in the archive.
  11398. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11399. ;;
  11400. *)
  11401. if test "$GXX" = yes; then
  11402. if test "$with_gnu_ld" = no; then
  11403. 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'
  11404. else
  11405. 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'
  11406. fi
  11407. fi
  11408. link_all_deplibs_CXX=yes
  11409. ;;
  11410. esac
  11411. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11412. hardcode_libdir_separator_CXX=:
  11413. inherit_rpath_CXX=yes
  11414. ;;
  11415. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11416. case $cc_basename in
  11417. KCC*)
  11418. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11419. # KCC will only create a shared library if the output file
  11420. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11421. # to its proper name (with version) after linking.
  11422. 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'
  11423. 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'
  11424. # Commands to make compiler produce verbose output that lists
  11425. # what "hidden" libraries, object files and flags are used when
  11426. # linking a shared library.
  11427. #
  11428. # There doesn't appear to be a way to prevent this compiler from
  11429. # explicitly linking system object files so we need to strip them
  11430. # from the output so that they don't get included in the library
  11431. # dependencies.
  11432. 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"'
  11433. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11434. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11435. # Archives containing C++ object files must be created using
  11436. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11437. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11438. ;;
  11439. icpc* | ecpc* )
  11440. # Intel C++
  11441. with_gnu_ld=yes
  11442. # version 8.0 and above of icpc choke on multiply defined symbols
  11443. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11444. # earlier do not add the objects themselves.
  11445. case `$CC -V 2>&1` in
  11446. *"Version 7."*)
  11447. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11448. 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'
  11449. ;;
  11450. *) # Version 8.0 or newer
  11451. tmp_idyn=
  11452. case $host_cpu in
  11453. ia64*) tmp_idyn=' -i_dynamic';;
  11454. esac
  11455. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11456. 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'
  11457. ;;
  11458. esac
  11459. archive_cmds_need_lc_CXX=no
  11460. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11461. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11462. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11463. ;;
  11464. pgCC* | pgcpp*)
  11465. # Portland Group C++ compiler
  11466. case `$CC -V` in
  11467. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11468. prelink_cmds_CXX='tpldir=Template.dir~
  11469. rm -rf $tpldir~
  11470. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11471. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11472. old_archive_cmds_CXX='tpldir=Template.dir~
  11473. rm -rf $tpldir~
  11474. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11475. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11476. $RANLIB $oldlib'
  11477. archive_cmds_CXX='tpldir=Template.dir~
  11478. rm -rf $tpldir~
  11479. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11480. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11481. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11482. rm -rf $tpldir~
  11483. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11484. $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'
  11485. ;;
  11486. *) # Version 6 and above use weak symbols
  11487. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11488. 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'
  11489. ;;
  11490. esac
  11491. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11492. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11493. 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'
  11494. ;;
  11495. cxx*)
  11496. # Compaq C++
  11497. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11498. 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'
  11499. runpath_var=LD_RUN_PATH
  11500. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11501. hardcode_libdir_separator_CXX=:
  11502. # Commands to make compiler produce verbose output that lists
  11503. # what "hidden" libraries, object files and flags are used when
  11504. # linking a shared library.
  11505. #
  11506. # There doesn't appear to be a way to prevent this compiler from
  11507. # explicitly linking system object files so we need to strip them
  11508. # from the output so that they don't get included in the library
  11509. # dependencies.
  11510. 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'
  11511. ;;
  11512. xl* | mpixl* | bgxl*)
  11513. # IBM XL 8.0 on PPC, with GNU ld
  11514. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11515. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11516. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11517. if test "x$supports_anon_versioning" = xyes; then
  11518. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11519. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11520. echo "local: *; };" >> $output_objdir/$libname.ver~
  11521. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11522. fi
  11523. ;;
  11524. *)
  11525. case `$CC -V 2>&1 | sed 5q` in
  11526. *Sun\ C*)
  11527. # Sun C++ 5.9
  11528. no_undefined_flag_CXX=' -zdefs'
  11529. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11530. 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'
  11531. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11532. 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'
  11533. compiler_needs_object_CXX=yes
  11534. # Not sure whether something based on
  11535. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11536. # would be better.
  11537. output_verbose_link_cmd='func_echo_all'
  11538. # Archives containing C++ object files must be created using
  11539. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11540. # necessary to make sure instantiated templates are included
  11541. # in the archive.
  11542. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11543. ;;
  11544. esac
  11545. ;;
  11546. esac
  11547. ;;
  11548. lynxos*)
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. ;;
  11552. m88k*)
  11553. # FIXME: insert proper C++ library support
  11554. ld_shlibs_CXX=no
  11555. ;;
  11556. mvs*)
  11557. case $cc_basename in
  11558. cxx*)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. *)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. esac
  11567. ;;
  11568. netbsd*)
  11569. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11570. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11571. wlarc=
  11572. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11573. hardcode_direct_CXX=yes
  11574. hardcode_shlibpath_var_CXX=no
  11575. fi
  11576. # Workaround some broken pre-1.5 toolchains
  11577. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11578. ;;
  11579. *nto* | *qnx*)
  11580. ld_shlibs_CXX=yes
  11581. ;;
  11582. openbsd2*)
  11583. # C++ shared libraries are fairly broken
  11584. ld_shlibs_CXX=no
  11585. ;;
  11586. openbsd*)
  11587. if test -f /usr/libexec/ld.so; then
  11588. hardcode_direct_CXX=yes
  11589. hardcode_shlibpath_var_CXX=no
  11590. hardcode_direct_absolute_CXX=yes
  11591. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11592. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11593. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11594. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11595. export_dynamic_flag_spec_CXX='${wl}-E'
  11596. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11597. fi
  11598. output_verbose_link_cmd=func_echo_all
  11599. else
  11600. ld_shlibs_CXX=no
  11601. fi
  11602. ;;
  11603. osf3* | osf4* | osf5*)
  11604. case $cc_basename in
  11605. KCC*)
  11606. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11607. # KCC will only create a shared library if the output file
  11608. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11609. # to its proper name (with version) after linking.
  11610. 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'
  11611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11612. hardcode_libdir_separator_CXX=:
  11613. # Archives containing C++ object files must be created using
  11614. # the KAI C++ compiler.
  11615. case $host in
  11616. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11617. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11618. esac
  11619. ;;
  11620. RCC*)
  11621. # Rational C++ 2.4.1
  11622. # FIXME: insert proper C++ library support
  11623. ld_shlibs_CXX=no
  11624. ;;
  11625. cxx*)
  11626. case $host in
  11627. osf3*)
  11628. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11629. 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'
  11630. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11631. ;;
  11632. *)
  11633. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11634. 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'
  11635. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11636. echo "-hidden">> $lib.exp~
  11637. $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~
  11638. $RM $lib.exp'
  11639. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11640. ;;
  11641. esac
  11642. hardcode_libdir_separator_CXX=:
  11643. # Commands to make compiler produce verbose output that lists
  11644. # what "hidden" libraries, object files and flags are used when
  11645. # linking a shared library.
  11646. #
  11647. # There doesn't appear to be a way to prevent this compiler from
  11648. # explicitly linking system object files so we need to strip them
  11649. # from the output so that they don't get included in the library
  11650. # dependencies.
  11651. 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"'
  11652. ;;
  11653. *)
  11654. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11655. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11656. case $host in
  11657. osf3*)
  11658. 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'
  11659. ;;
  11660. *)
  11661. 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'
  11662. ;;
  11663. esac
  11664. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11665. hardcode_libdir_separator_CXX=:
  11666. # Commands to make compiler produce verbose output that lists
  11667. # what "hidden" libraries, object files and flags are used when
  11668. # linking a shared library.
  11669. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11670. else
  11671. # FIXME: insert proper C++ library support
  11672. ld_shlibs_CXX=no
  11673. fi
  11674. ;;
  11675. esac
  11676. ;;
  11677. psos*)
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. ;;
  11681. sunos4*)
  11682. case $cc_basename in
  11683. CC*)
  11684. # Sun C++ 4.x
  11685. # FIXME: insert proper C++ library support
  11686. ld_shlibs_CXX=no
  11687. ;;
  11688. lcc*)
  11689. # Lucid
  11690. # FIXME: insert proper C++ library support
  11691. ld_shlibs_CXX=no
  11692. ;;
  11693. *)
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. esac
  11698. ;;
  11699. solaris*)
  11700. case $cc_basename in
  11701. CC* | sunCC*)
  11702. # Sun C++ 4.2, 5.x and Centerline C++
  11703. archive_cmds_need_lc_CXX=yes
  11704. no_undefined_flag_CXX=' -zdefs'
  11705. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11706. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11707. $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'
  11708. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11709. hardcode_shlibpath_var_CXX=no
  11710. case $host_os in
  11711. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11712. *)
  11713. # The compiler driver will combine and reorder linker options,
  11714. # but understands `-z linker_flag'.
  11715. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11716. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11717. ;;
  11718. esac
  11719. link_all_deplibs_CXX=yes
  11720. output_verbose_link_cmd='func_echo_all'
  11721. # Archives containing C++ object files must be created using
  11722. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11723. # necessary to make sure instantiated templates are included
  11724. # in the archive.
  11725. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11726. ;;
  11727. gcx*)
  11728. # Green Hills C++ Compiler
  11729. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11730. # The C++ compiler must be used to create the archive.
  11731. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11732. ;;
  11733. *)
  11734. # GNU C++ compiler with Solaris linker
  11735. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11736. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11737. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11738. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11739. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11740. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11741. # Commands to make compiler produce verbose output that lists
  11742. # what "hidden" libraries, object files and flags are used when
  11743. # linking a shared library.
  11744. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11745. else
  11746. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11747. # platform.
  11748. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11749. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11750. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11751. # Commands to make compiler produce verbose output that lists
  11752. # what "hidden" libraries, object files and flags are used when
  11753. # linking a shared library.
  11754. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11755. fi
  11756. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11757. case $host_os in
  11758. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11759. *)
  11760. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11761. ;;
  11762. esac
  11763. fi
  11764. ;;
  11765. esac
  11766. ;;
  11767. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11768. no_undefined_flag_CXX='${wl}-z,text'
  11769. archive_cmds_need_lc_CXX=no
  11770. hardcode_shlibpath_var_CXX=no
  11771. runpath_var='LD_RUN_PATH'
  11772. case $cc_basename in
  11773. CC*)
  11774. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11775. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11776. ;;
  11777. *)
  11778. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11779. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11780. ;;
  11781. esac
  11782. ;;
  11783. sysv5* | sco3.2v5* | sco5v6*)
  11784. # Note: We can NOT use -z defs as we might desire, because we do not
  11785. # link with -lc, and that would cause any symbols used from libc to
  11786. # always be unresolved, which means just about no library would
  11787. # ever link correctly. If we're not using GNU ld we use -z text
  11788. # though, which does catch some bad symbols but isn't as heavy-handed
  11789. # as -z defs.
  11790. no_undefined_flag_CXX='${wl}-z,text'
  11791. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11792. archive_cmds_need_lc_CXX=no
  11793. hardcode_shlibpath_var_CXX=no
  11794. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11795. hardcode_libdir_separator_CXX=':'
  11796. link_all_deplibs_CXX=yes
  11797. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11798. runpath_var='LD_RUN_PATH'
  11799. case $cc_basename in
  11800. CC*)
  11801. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11802. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11803. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11804. '"$old_archive_cmds_CXX"
  11805. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11806. '"$reload_cmds_CXX"
  11807. ;;
  11808. *)
  11809. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11810. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11811. ;;
  11812. esac
  11813. ;;
  11814. tandem*)
  11815. case $cc_basename in
  11816. NCC*)
  11817. # NonStop-UX NCC 3.20
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. *)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. esac
  11826. ;;
  11827. vxworks*)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. *)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. esac
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11837. $as_echo "$ld_shlibs_CXX" >&6; }
  11838. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11839. GCC_CXX="$GXX"
  11840. LD_CXX="$LD"
  11841. ## CAVEAT EMPTOR:
  11842. ## There is no encapsulation within the following macros, do not change
  11843. ## the running order or otherwise move them around unless you know exactly
  11844. ## what you are doing...
  11845. # Dependencies to place before and after the object being linked:
  11846. predep_objects_CXX=
  11847. postdep_objects_CXX=
  11848. predeps_CXX=
  11849. postdeps_CXX=
  11850. compiler_lib_search_path_CXX=
  11851. cat > conftest.$ac_ext <<_LT_EOF
  11852. class Foo
  11853. {
  11854. public:
  11855. Foo (void) { a = 0; }
  11856. private:
  11857. int a;
  11858. };
  11859. _LT_EOF
  11860. _lt_libdeps_save_CFLAGS=$CFLAGS
  11861. case "$CC $CFLAGS " in #(
  11862. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11863. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11864. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11865. esac
  11866. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11867. (eval $ac_compile) 2>&5
  11868. ac_status=$?
  11869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11870. test $ac_status = 0; }; then
  11871. # Parse the compiler output and extract the necessary
  11872. # objects, libraries and library flags.
  11873. # Sentinel used to keep track of whether or not we are before
  11874. # the conftest object file.
  11875. pre_test_object_deps_done=no
  11876. for p in `eval "$output_verbose_link_cmd"`; do
  11877. case ${prev}${p} in
  11878. -L* | -R* | -l*)
  11879. # Some compilers place space between "-{L,R}" and the path.
  11880. # Remove the space.
  11881. if test $p = "-L" ||
  11882. test $p = "-R"; then
  11883. prev=$p
  11884. continue
  11885. fi
  11886. # Expand the sysroot to ease extracting the directories later.
  11887. if test -z "$prev"; then
  11888. case $p in
  11889. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11890. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11891. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11892. esac
  11893. fi
  11894. case $p in
  11895. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11896. esac
  11897. if test "$pre_test_object_deps_done" = no; then
  11898. case ${prev} in
  11899. -L | -R)
  11900. # Internal compiler library paths should come after those
  11901. # provided the user. The postdeps already come after the
  11902. # user supplied libs so there is no need to process them.
  11903. if test -z "$compiler_lib_search_path_CXX"; then
  11904. compiler_lib_search_path_CXX="${prev}${p}"
  11905. else
  11906. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11907. fi
  11908. ;;
  11909. # The "-l" case would never come before the object being
  11910. # linked, so don't bother handling this case.
  11911. esac
  11912. else
  11913. if test -z "$postdeps_CXX"; then
  11914. postdeps_CXX="${prev}${p}"
  11915. else
  11916. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11917. fi
  11918. fi
  11919. prev=
  11920. ;;
  11921. *.lto.$objext) ;; # Ignore GCC LTO objects
  11922. *.$objext)
  11923. # This assumes that the test object file only shows up
  11924. # once in the compiler output.
  11925. if test "$p" = "conftest.$objext"; then
  11926. pre_test_object_deps_done=yes
  11927. continue
  11928. fi
  11929. if test "$pre_test_object_deps_done" = no; then
  11930. if test -z "$predep_objects_CXX"; then
  11931. predep_objects_CXX="$p"
  11932. else
  11933. predep_objects_CXX="$predep_objects_CXX $p"
  11934. fi
  11935. else
  11936. if test -z "$postdep_objects_CXX"; then
  11937. postdep_objects_CXX="$p"
  11938. else
  11939. postdep_objects_CXX="$postdep_objects_CXX $p"
  11940. fi
  11941. fi
  11942. ;;
  11943. *) ;; # Ignore the rest.
  11944. esac
  11945. done
  11946. # Clean up.
  11947. rm -f a.out a.exe
  11948. else
  11949. echo "libtool.m4: error: problem compiling CXX test program"
  11950. fi
  11951. $RM -f confest.$objext
  11952. CFLAGS=$_lt_libdeps_save_CFLAGS
  11953. # PORTME: override above test on systems where it is broken
  11954. case $host_os in
  11955. interix[3-9]*)
  11956. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11957. # hack all around it, let's just trust "g++" to DTRT.
  11958. predep_objects_CXX=
  11959. postdep_objects_CXX=
  11960. postdeps_CXX=
  11961. ;;
  11962. linux*)
  11963. case `$CC -V 2>&1 | sed 5q` in
  11964. *Sun\ C*)
  11965. # Sun C++ 5.9
  11966. # The more standards-conforming stlport4 library is
  11967. # incompatible with the Cstd library. Avoid specifying
  11968. # it if it's in CXXFLAGS. Ignore libCrun as
  11969. # -library=stlport4 depends on it.
  11970. case " $CXX $CXXFLAGS " in
  11971. *" -library=stlport4 "*)
  11972. solaris_use_stlport4=yes
  11973. ;;
  11974. esac
  11975. if test "$solaris_use_stlport4" != yes; then
  11976. postdeps_CXX='-library=Cstd -library=Crun'
  11977. fi
  11978. ;;
  11979. esac
  11980. ;;
  11981. solaris*)
  11982. case $cc_basename in
  11983. CC* | sunCC*)
  11984. # The more standards-conforming stlport4 library is
  11985. # incompatible with the Cstd library. Avoid specifying
  11986. # it if it's in CXXFLAGS. Ignore libCrun as
  11987. # -library=stlport4 depends on it.
  11988. case " $CXX $CXXFLAGS " in
  11989. *" -library=stlport4 "*)
  11990. solaris_use_stlport4=yes
  11991. ;;
  11992. esac
  11993. # Adding this requires a known-good setup of shared libraries for
  11994. # Sun compiler versions before 5.6, else PIC objects from an old
  11995. # archive will be linked into the output, leading to subtle bugs.
  11996. if test "$solaris_use_stlport4" != yes; then
  11997. postdeps_CXX='-library=Cstd -library=Crun'
  11998. fi
  11999. ;;
  12000. esac
  12001. ;;
  12002. esac
  12003. case " $postdeps_CXX " in
  12004. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12005. esac
  12006. compiler_lib_search_dirs_CXX=
  12007. if test -n "${compiler_lib_search_path_CXX}"; then
  12008. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12009. fi
  12010. lt_prog_compiler_wl_CXX=
  12011. lt_prog_compiler_pic_CXX=
  12012. lt_prog_compiler_static_CXX=
  12013. # C++ specific cases for pic, static, wl, etc.
  12014. if test "$GXX" = yes; then
  12015. lt_prog_compiler_wl_CXX='-Wl,'
  12016. lt_prog_compiler_static_CXX='-static'
  12017. case $host_os in
  12018. aix*)
  12019. # All AIX code is PIC.
  12020. if test "$host_cpu" = ia64; then
  12021. # AIX 5 now supports IA64 processor
  12022. lt_prog_compiler_static_CXX='-Bstatic'
  12023. fi
  12024. ;;
  12025. amigaos*)
  12026. case $host_cpu in
  12027. powerpc)
  12028. # see comment about AmigaOS4 .so support
  12029. lt_prog_compiler_pic_CXX='-fPIC'
  12030. ;;
  12031. m68k)
  12032. # FIXME: we need at least 68020 code to build shared libraries, but
  12033. # adding the `-m68020' flag to GCC prevents building anything better,
  12034. # like `-m68040'.
  12035. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12036. ;;
  12037. esac
  12038. ;;
  12039. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12040. # PIC is the default for these OSes.
  12041. ;;
  12042. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12043. # This hack is so that the source file can tell whether it is being
  12044. # built for inclusion in a dll (and should export symbols for example).
  12045. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12046. # (--disable-auto-import) libraries
  12047. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12048. ;;
  12049. darwin* | rhapsody*)
  12050. # PIC is the default on this platform
  12051. # Common symbols not allowed in MH_DYLIB files
  12052. lt_prog_compiler_pic_CXX='-fno-common'
  12053. ;;
  12054. *djgpp*)
  12055. # DJGPP does not support shared libraries at all
  12056. lt_prog_compiler_pic_CXX=
  12057. ;;
  12058. haiku*)
  12059. # PIC is the default for Haiku.
  12060. # The "-static" flag exists, but is broken.
  12061. lt_prog_compiler_static_CXX=
  12062. ;;
  12063. interix[3-9]*)
  12064. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12065. # Instead, we relocate shared libraries at runtime.
  12066. ;;
  12067. sysv4*MP*)
  12068. if test -d /usr/nec; then
  12069. lt_prog_compiler_pic_CXX=-Kconform_pic
  12070. fi
  12071. ;;
  12072. hpux*)
  12073. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12074. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12075. # sets the default TLS model and affects inlining.
  12076. case $host_cpu in
  12077. hppa*64*)
  12078. ;;
  12079. *)
  12080. lt_prog_compiler_pic_CXX='-fPIC'
  12081. ;;
  12082. esac
  12083. ;;
  12084. *qnx* | *nto*)
  12085. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12086. # it will coredump.
  12087. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12088. ;;
  12089. *)
  12090. lt_prog_compiler_pic_CXX='-fPIC'
  12091. ;;
  12092. esac
  12093. else
  12094. case $host_os in
  12095. aix[4-9]*)
  12096. # All AIX code is PIC.
  12097. if test "$host_cpu" = ia64; then
  12098. # AIX 5 now supports IA64 processor
  12099. lt_prog_compiler_static_CXX='-Bstatic'
  12100. else
  12101. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12102. fi
  12103. ;;
  12104. chorus*)
  12105. case $cc_basename in
  12106. cxch68*)
  12107. # Green Hills C++ Compiler
  12108. # _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"
  12109. ;;
  12110. esac
  12111. ;;
  12112. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12113. # This hack is so that the source file can tell whether it is being
  12114. # built for inclusion in a dll (and should export symbols for example).
  12115. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12116. ;;
  12117. dgux*)
  12118. case $cc_basename in
  12119. ec++*)
  12120. lt_prog_compiler_pic_CXX='-KPIC'
  12121. ;;
  12122. ghcx*)
  12123. # Green Hills C++ Compiler
  12124. lt_prog_compiler_pic_CXX='-pic'
  12125. ;;
  12126. *)
  12127. ;;
  12128. esac
  12129. ;;
  12130. freebsd* | dragonfly*)
  12131. # FreeBSD uses GNU C++
  12132. ;;
  12133. hpux9* | hpux10* | hpux11*)
  12134. case $cc_basename in
  12135. CC*)
  12136. lt_prog_compiler_wl_CXX='-Wl,'
  12137. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12138. if test "$host_cpu" != ia64; then
  12139. lt_prog_compiler_pic_CXX='+Z'
  12140. fi
  12141. ;;
  12142. aCC*)
  12143. lt_prog_compiler_wl_CXX='-Wl,'
  12144. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12145. case $host_cpu in
  12146. hppa*64*|ia64*)
  12147. # +Z the default
  12148. ;;
  12149. *)
  12150. lt_prog_compiler_pic_CXX='+Z'
  12151. ;;
  12152. esac
  12153. ;;
  12154. *)
  12155. ;;
  12156. esac
  12157. ;;
  12158. interix*)
  12159. # This is c89, which is MS Visual C++ (no shared libs)
  12160. # Anyone wants to do a port?
  12161. ;;
  12162. irix5* | irix6* | nonstopux*)
  12163. case $cc_basename in
  12164. CC*)
  12165. lt_prog_compiler_wl_CXX='-Wl,'
  12166. lt_prog_compiler_static_CXX='-non_shared'
  12167. # CC pic flag -KPIC is the default.
  12168. ;;
  12169. *)
  12170. ;;
  12171. esac
  12172. ;;
  12173. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12174. case $cc_basename in
  12175. KCC*)
  12176. # KAI C++ Compiler
  12177. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12178. lt_prog_compiler_pic_CXX='-fPIC'
  12179. ;;
  12180. ecpc* )
  12181. # old Intel C++ for x86_64 which still supported -KPIC.
  12182. lt_prog_compiler_wl_CXX='-Wl,'
  12183. lt_prog_compiler_pic_CXX='-KPIC'
  12184. lt_prog_compiler_static_CXX='-static'
  12185. ;;
  12186. icpc* )
  12187. # Intel C++, used to be incompatible with GCC.
  12188. # ICC 10 doesn't accept -KPIC any more.
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_pic_CXX='-fPIC'
  12191. lt_prog_compiler_static_CXX='-static'
  12192. ;;
  12193. pgCC* | pgcpp*)
  12194. # Portland Group C++ compiler
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_pic_CXX='-fpic'
  12197. lt_prog_compiler_static_CXX='-Bstatic'
  12198. ;;
  12199. cxx*)
  12200. # Compaq C++
  12201. # Make sure the PIC flag is empty. It appears that all Alpha
  12202. # Linux and Compaq Tru64 Unix objects are PIC.
  12203. lt_prog_compiler_pic_CXX=
  12204. lt_prog_compiler_static_CXX='-non_shared'
  12205. ;;
  12206. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12207. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-qpic'
  12210. lt_prog_compiler_static_CXX='-qstaticlink'
  12211. ;;
  12212. *)
  12213. case `$CC -V 2>&1 | sed 5q` in
  12214. *Sun\ C*)
  12215. # Sun C++ 5.9
  12216. lt_prog_compiler_pic_CXX='-KPIC'
  12217. lt_prog_compiler_static_CXX='-Bstatic'
  12218. lt_prog_compiler_wl_CXX='-Qoption ld '
  12219. ;;
  12220. esac
  12221. ;;
  12222. esac
  12223. ;;
  12224. lynxos*)
  12225. ;;
  12226. m88k*)
  12227. ;;
  12228. mvs*)
  12229. case $cc_basename in
  12230. cxx*)
  12231. lt_prog_compiler_pic_CXX='-W c,exportall'
  12232. ;;
  12233. *)
  12234. ;;
  12235. esac
  12236. ;;
  12237. netbsd*)
  12238. ;;
  12239. *qnx* | *nto*)
  12240. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12241. # it will coredump.
  12242. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12243. ;;
  12244. osf3* | osf4* | osf5*)
  12245. case $cc_basename in
  12246. KCC*)
  12247. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12248. ;;
  12249. RCC*)
  12250. # Rational C++ 2.4.1
  12251. lt_prog_compiler_pic_CXX='-pic'
  12252. ;;
  12253. cxx*)
  12254. # Digital/Compaq C++
  12255. lt_prog_compiler_wl_CXX='-Wl,'
  12256. # Make sure the PIC flag is empty. It appears that all Alpha
  12257. # Linux and Compaq Tru64 Unix objects are PIC.
  12258. lt_prog_compiler_pic_CXX=
  12259. lt_prog_compiler_static_CXX='-non_shared'
  12260. ;;
  12261. *)
  12262. ;;
  12263. esac
  12264. ;;
  12265. psos*)
  12266. ;;
  12267. solaris*)
  12268. case $cc_basename in
  12269. CC* | sunCC*)
  12270. # Sun C++ 4.2, 5.x and Centerline C++
  12271. lt_prog_compiler_pic_CXX='-KPIC'
  12272. lt_prog_compiler_static_CXX='-Bstatic'
  12273. lt_prog_compiler_wl_CXX='-Qoption ld '
  12274. ;;
  12275. gcx*)
  12276. # Green Hills C++ Compiler
  12277. lt_prog_compiler_pic_CXX='-PIC'
  12278. ;;
  12279. *)
  12280. ;;
  12281. esac
  12282. ;;
  12283. sunos4*)
  12284. case $cc_basename in
  12285. CC*)
  12286. # Sun C++ 4.x
  12287. lt_prog_compiler_pic_CXX='-pic'
  12288. lt_prog_compiler_static_CXX='-Bstatic'
  12289. ;;
  12290. lcc*)
  12291. # Lucid
  12292. lt_prog_compiler_pic_CXX='-pic'
  12293. ;;
  12294. *)
  12295. ;;
  12296. esac
  12297. ;;
  12298. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12299. case $cc_basename in
  12300. CC*)
  12301. lt_prog_compiler_wl_CXX='-Wl,'
  12302. lt_prog_compiler_pic_CXX='-KPIC'
  12303. lt_prog_compiler_static_CXX='-Bstatic'
  12304. ;;
  12305. esac
  12306. ;;
  12307. tandem*)
  12308. case $cc_basename in
  12309. NCC*)
  12310. # NonStop-UX NCC 3.20
  12311. lt_prog_compiler_pic_CXX='-KPIC'
  12312. ;;
  12313. *)
  12314. ;;
  12315. esac
  12316. ;;
  12317. vxworks*)
  12318. ;;
  12319. *)
  12320. lt_prog_compiler_can_build_shared_CXX=no
  12321. ;;
  12322. esac
  12323. fi
  12324. case $host_os in
  12325. # For platforms which do not support PIC, -DPIC is meaningless:
  12326. *djgpp*)
  12327. lt_prog_compiler_pic_CXX=
  12328. ;;
  12329. *)
  12330. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12331. ;;
  12332. esac
  12333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12334. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12335. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12336. $as_echo_n "(cached) " >&6
  12337. else
  12338. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12341. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12342. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12343. #
  12344. # Check to make sure the PIC flag actually works.
  12345. #
  12346. if test -n "$lt_prog_compiler_pic_CXX"; then
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12348. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12349. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12350. $as_echo_n "(cached) " >&6
  12351. else
  12352. lt_cv_prog_compiler_pic_works_CXX=no
  12353. ac_outfile=conftest.$ac_objext
  12354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12355. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12356. # Insert the option either (1) after the last *FLAGS variable, or
  12357. # (2) before a word containing "conftest.", or (3) at the end.
  12358. # Note that $ac_compile itself does not contain backslashes and begins
  12359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12360. # The option is referenced via a variable to avoid confusing sed.
  12361. lt_compile=`echo "$ac_compile" | $SED \
  12362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12364. -e 's:$: $lt_compiler_flag:'`
  12365. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12366. (eval "$lt_compile" 2>conftest.err)
  12367. ac_status=$?
  12368. cat conftest.err >&5
  12369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. if (exit $ac_status) && test -s "$ac_outfile"; then
  12371. # The compiler can only warn and ignore the option if not recognized
  12372. # So say no if there are warnings other than the usual output.
  12373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12375. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12376. lt_cv_prog_compiler_pic_works_CXX=yes
  12377. fi
  12378. fi
  12379. $RM conftest*
  12380. fi
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12382. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12383. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12384. case $lt_prog_compiler_pic_CXX in
  12385. "" | " "*) ;;
  12386. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12387. esac
  12388. else
  12389. lt_prog_compiler_pic_CXX=
  12390. lt_prog_compiler_can_build_shared_CXX=no
  12391. fi
  12392. fi
  12393. #
  12394. # Check to make sure the static flag actually works.
  12395. #
  12396. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12398. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12399. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12400. $as_echo_n "(cached) " >&6
  12401. else
  12402. lt_cv_prog_compiler_static_works_CXX=no
  12403. save_LDFLAGS="$LDFLAGS"
  12404. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12405. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12406. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12407. # The linker can only warn and ignore the option if not recognized
  12408. # So say no if there are warnings
  12409. if test -s conftest.err; then
  12410. # Append any errors to the config.log.
  12411. cat conftest.err 1>&5
  12412. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12413. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12414. if diff conftest.exp conftest.er2 >/dev/null; then
  12415. lt_cv_prog_compiler_static_works_CXX=yes
  12416. fi
  12417. else
  12418. lt_cv_prog_compiler_static_works_CXX=yes
  12419. fi
  12420. fi
  12421. $RM -r conftest*
  12422. LDFLAGS="$save_LDFLAGS"
  12423. fi
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12425. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12426. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12427. :
  12428. else
  12429. lt_prog_compiler_static_CXX=
  12430. fi
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12432. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12433. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12434. $as_echo_n "(cached) " >&6
  12435. else
  12436. lt_cv_prog_compiler_c_o_CXX=no
  12437. $RM -r conftest 2>/dev/null
  12438. mkdir conftest
  12439. cd conftest
  12440. mkdir out
  12441. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12442. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12443. # Insert the option either (1) after the last *FLAGS variable, or
  12444. # (2) before a word containing "conftest.", or (3) at the end.
  12445. # Note that $ac_compile itself does not contain backslashes and begins
  12446. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12447. lt_compile=`echo "$ac_compile" | $SED \
  12448. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12449. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12450. -e 's:$: $lt_compiler_flag:'`
  12451. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12452. (eval "$lt_compile" 2>out/conftest.err)
  12453. ac_status=$?
  12454. cat out/conftest.err >&5
  12455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12456. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12457. then
  12458. # The compiler can only warn and ignore the option if not recognized
  12459. # So say no if there are warnings
  12460. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12461. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12462. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12463. lt_cv_prog_compiler_c_o_CXX=yes
  12464. fi
  12465. fi
  12466. chmod u+w . 2>&5
  12467. $RM conftest*
  12468. # SGI C++ compiler will create directory out/ii_files/ for
  12469. # template instantiation
  12470. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12471. $RM out/* && rmdir out
  12472. cd ..
  12473. $RM -r conftest
  12474. $RM conftest*
  12475. fi
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12477. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12479. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12480. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12481. $as_echo_n "(cached) " >&6
  12482. else
  12483. lt_cv_prog_compiler_c_o_CXX=no
  12484. $RM -r conftest 2>/dev/null
  12485. mkdir conftest
  12486. cd conftest
  12487. mkdir out
  12488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12489. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12490. # Insert the option either (1) after the last *FLAGS variable, or
  12491. # (2) before a word containing "conftest.", or (3) at the end.
  12492. # Note that $ac_compile itself does not contain backslashes and begins
  12493. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12494. lt_compile=`echo "$ac_compile" | $SED \
  12495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12497. -e 's:$: $lt_compiler_flag:'`
  12498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12499. (eval "$lt_compile" 2>out/conftest.err)
  12500. ac_status=$?
  12501. cat out/conftest.err >&5
  12502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12503. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12504. then
  12505. # The compiler can only warn and ignore the option if not recognized
  12506. # So say no if there are warnings
  12507. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12508. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12509. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12510. lt_cv_prog_compiler_c_o_CXX=yes
  12511. fi
  12512. fi
  12513. chmod u+w . 2>&5
  12514. $RM conftest*
  12515. # SGI C++ compiler will create directory out/ii_files/ for
  12516. # template instantiation
  12517. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12518. $RM out/* && rmdir out
  12519. cd ..
  12520. $RM -r conftest
  12521. $RM conftest*
  12522. fi
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12524. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12525. hard_links="nottested"
  12526. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12527. # do not overwrite the value of need_locks provided by the user
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12529. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12530. hard_links=yes
  12531. $RM conftest*
  12532. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12533. touch conftest.a
  12534. ln conftest.a conftest.b 2>&5 || hard_links=no
  12535. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12537. $as_echo "$hard_links" >&6; }
  12538. if test "$hard_links" = no; then
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12540. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12541. need_locks=warn
  12542. fi
  12543. else
  12544. need_locks=no
  12545. fi
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12547. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12548. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12549. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12550. case $host_os in
  12551. aix[4-9]*)
  12552. # If we're using GNU nm, then we don't want the "-C" option.
  12553. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12554. # Also, AIX nm treats weak defined symbols like other global defined
  12555. # symbols, whereas GNU nm marks them as "W".
  12556. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12557. 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'
  12558. else
  12559. 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'
  12560. fi
  12561. ;;
  12562. pw32*)
  12563. export_symbols_cmds_CXX="$ltdll_cmds"
  12564. ;;
  12565. cygwin* | mingw* | cegcc*)
  12566. case $cc_basename in
  12567. cl*)
  12568. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12569. ;;
  12570. *)
  12571. 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'
  12572. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12573. ;;
  12574. esac
  12575. ;;
  12576. *)
  12577. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12578. ;;
  12579. esac
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12581. $as_echo "$ld_shlibs_CXX" >&6; }
  12582. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12583. with_gnu_ld_CXX=$with_gnu_ld
  12584. #
  12585. # Do we need to explicitly link libc?
  12586. #
  12587. case "x$archive_cmds_need_lc_CXX" in
  12588. x|xyes)
  12589. # Assume -lc should be added
  12590. archive_cmds_need_lc_CXX=yes
  12591. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12592. case $archive_cmds_CXX in
  12593. *'~'*)
  12594. # FIXME: we may have to deal with multi-command sequences.
  12595. ;;
  12596. '$CC '*)
  12597. # Test whether the compiler implicitly links with -lc since on some
  12598. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12599. # to ld, don't add -lc before -lgcc.
  12600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12601. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12602. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12603. $as_echo_n "(cached) " >&6
  12604. else
  12605. $RM conftest*
  12606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12607. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12608. (eval $ac_compile) 2>&5
  12609. ac_status=$?
  12610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12611. test $ac_status = 0; } 2>conftest.err; then
  12612. soname=conftest
  12613. lib=conftest
  12614. libobjs=conftest.$ac_objext
  12615. deplibs=
  12616. wl=$lt_prog_compiler_wl_CXX
  12617. pic_flag=$lt_prog_compiler_pic_CXX
  12618. compiler_flags=-v
  12619. linker_flags=-v
  12620. verstring=
  12621. output_objdir=.
  12622. libname=conftest
  12623. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12624. allow_undefined_flag_CXX=
  12625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12626. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12627. ac_status=$?
  12628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12629. test $ac_status = 0; }
  12630. then
  12631. lt_cv_archive_cmds_need_lc_CXX=no
  12632. else
  12633. lt_cv_archive_cmds_need_lc_CXX=yes
  12634. fi
  12635. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12636. else
  12637. cat conftest.err 1>&5
  12638. fi
  12639. $RM conftest*
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12642. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12643. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12644. ;;
  12645. esac
  12646. fi
  12647. ;;
  12648. esac
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12650. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12651. library_names_spec=
  12652. libname_spec='lib$name'
  12653. soname_spec=
  12654. shrext_cmds=".so"
  12655. postinstall_cmds=
  12656. postuninstall_cmds=
  12657. finish_cmds=
  12658. finish_eval=
  12659. shlibpath_var=
  12660. shlibpath_overrides_runpath=unknown
  12661. version_type=none
  12662. dynamic_linker="$host_os ld.so"
  12663. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12664. need_lib_prefix=unknown
  12665. hardcode_into_libs=no
  12666. # when you set need_version to no, make sure it does not cause -set_version
  12667. # flags to be left without arguments
  12668. need_version=unknown
  12669. case $host_os in
  12670. aix3*)
  12671. version_type=linux # correct to gnu/linux during the next big refactor
  12672. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12673. shlibpath_var=LIBPATH
  12674. # AIX 3 has no versioning support, so we append a major version to the name.
  12675. soname_spec='${libname}${release}${shared_ext}$major'
  12676. ;;
  12677. aix[4-9]*)
  12678. version_type=linux # correct to gnu/linux during the next big refactor
  12679. need_lib_prefix=no
  12680. need_version=no
  12681. hardcode_into_libs=yes
  12682. if test "$host_cpu" = ia64; then
  12683. # AIX 5 supports IA64
  12684. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12685. shlibpath_var=LD_LIBRARY_PATH
  12686. else
  12687. # With GCC up to 2.95.x, collect2 would create an import file
  12688. # for dependence libraries. The import file would start with
  12689. # the line `#! .'. This would cause the generated library to
  12690. # depend on `.', always an invalid library. This was fixed in
  12691. # development snapshots of GCC prior to 3.0.
  12692. case $host_os in
  12693. aix4 | aix4.[01] | aix4.[01].*)
  12694. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12695. echo ' yes '
  12696. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12697. :
  12698. else
  12699. can_build_shared=no
  12700. fi
  12701. ;;
  12702. esac
  12703. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12704. # soname into executable. Probably we can add versioning support to
  12705. # collect2, so additional links can be useful in future.
  12706. if test "$aix_use_runtimelinking" = yes; then
  12707. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12708. # instead of lib<name>.a to let people know that these are not
  12709. # typical AIX shared libraries.
  12710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12711. else
  12712. # We preserve .a as extension for shared libraries through AIX4.2
  12713. # and later when we are not doing run time linking.
  12714. library_names_spec='${libname}${release}.a $libname.a'
  12715. soname_spec='${libname}${release}${shared_ext}$major'
  12716. fi
  12717. shlibpath_var=LIBPATH
  12718. fi
  12719. ;;
  12720. amigaos*)
  12721. case $host_cpu in
  12722. powerpc)
  12723. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12724. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12726. ;;
  12727. m68k)
  12728. library_names_spec='$libname.ixlibrary $libname.a'
  12729. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12730. 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'
  12731. ;;
  12732. esac
  12733. ;;
  12734. beos*)
  12735. library_names_spec='${libname}${shared_ext}'
  12736. dynamic_linker="$host_os ld.so"
  12737. shlibpath_var=LIBRARY_PATH
  12738. ;;
  12739. bsdi[45]*)
  12740. version_type=linux # correct to gnu/linux during the next big refactor
  12741. need_version=no
  12742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12743. soname_spec='${libname}${release}${shared_ext}$major'
  12744. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12745. shlibpath_var=LD_LIBRARY_PATH
  12746. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12747. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12748. # the default ld.so.conf also contains /usr/contrib/lib and
  12749. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12750. # libtool to hard-code these into programs
  12751. ;;
  12752. cygwin* | mingw* | pw32* | cegcc*)
  12753. version_type=windows
  12754. shrext_cmds=".dll"
  12755. need_version=no
  12756. need_lib_prefix=no
  12757. case $GCC,$cc_basename in
  12758. yes,*)
  12759. # gcc
  12760. library_names_spec='$libname.dll.a'
  12761. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12762. postinstall_cmds='base_file=`basename \${file}`~
  12763. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12764. dldir=$destdir/`dirname \$dlpath`~
  12765. test -d \$dldir || mkdir -p \$dldir~
  12766. $install_prog $dir/$dlname \$dldir/$dlname~
  12767. chmod a+x \$dldir/$dlname~
  12768. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12769. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12770. fi'
  12771. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12772. dlpath=$dir/\$dldll~
  12773. $RM \$dlpath'
  12774. shlibpath_overrides_runpath=yes
  12775. case $host_os in
  12776. cygwin*)
  12777. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12778. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12779. ;;
  12780. mingw* | cegcc*)
  12781. # MinGW DLLs use traditional 'lib' prefix
  12782. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12783. ;;
  12784. pw32*)
  12785. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12786. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12787. ;;
  12788. esac
  12789. dynamic_linker='Win32 ld.exe'
  12790. ;;
  12791. *,cl*)
  12792. # Native MSVC
  12793. libname_spec='$name'
  12794. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12795. library_names_spec='${libname}.dll.lib'
  12796. case $build_os in
  12797. mingw*)
  12798. sys_lib_search_path_spec=
  12799. lt_save_ifs=$IFS
  12800. IFS=';'
  12801. for lt_path in $LIB
  12802. do
  12803. IFS=$lt_save_ifs
  12804. # Let DOS variable expansion print the short 8.3 style file name.
  12805. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12806. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12807. done
  12808. IFS=$lt_save_ifs
  12809. # Convert to MSYS style.
  12810. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12811. ;;
  12812. cygwin*)
  12813. # Convert to unix form, then to dos form, then back to unix form
  12814. # but this time dos style (no spaces!) so that the unix form looks
  12815. # like /cygdrive/c/PROGRA~1:/cygdr...
  12816. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12817. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12818. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12819. ;;
  12820. *)
  12821. sys_lib_search_path_spec="$LIB"
  12822. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12823. # It is most probably a Windows format PATH.
  12824. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12825. else
  12826. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12827. fi
  12828. # FIXME: find the short name or the path components, as spaces are
  12829. # common. (e.g. "Program Files" -> "PROGRA~1")
  12830. ;;
  12831. esac
  12832. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12833. postinstall_cmds='base_file=`basename \${file}`~
  12834. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12835. dldir=$destdir/`dirname \$dlpath`~
  12836. test -d \$dldir || mkdir -p \$dldir~
  12837. $install_prog $dir/$dlname \$dldir/$dlname'
  12838. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12839. dlpath=$dir/\$dldll~
  12840. $RM \$dlpath'
  12841. shlibpath_overrides_runpath=yes
  12842. dynamic_linker='Win32 link.exe'
  12843. ;;
  12844. *)
  12845. # Assume MSVC wrapper
  12846. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12847. dynamic_linker='Win32 ld.exe'
  12848. ;;
  12849. esac
  12850. # FIXME: first we should search . and the directory the executable is in
  12851. shlibpath_var=PATH
  12852. ;;
  12853. darwin* | rhapsody*)
  12854. dynamic_linker="$host_os dyld"
  12855. version_type=darwin
  12856. need_lib_prefix=no
  12857. need_version=no
  12858. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12859. soname_spec='${libname}${release}${major}$shared_ext'
  12860. shlibpath_overrides_runpath=yes
  12861. shlibpath_var=DYLD_LIBRARY_PATH
  12862. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12863. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12864. ;;
  12865. dgux*)
  12866. version_type=linux # correct to gnu/linux during the next big refactor
  12867. need_lib_prefix=no
  12868. need_version=no
  12869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12870. soname_spec='${libname}${release}${shared_ext}$major'
  12871. shlibpath_var=LD_LIBRARY_PATH
  12872. ;;
  12873. freebsd* | dragonfly*)
  12874. # DragonFly does not have aout. When/if they implement a new
  12875. # versioning mechanism, adjust this.
  12876. if test -x /usr/bin/objformat; then
  12877. objformat=`/usr/bin/objformat`
  12878. else
  12879. case $host_os in
  12880. freebsd[23].*) objformat=aout ;;
  12881. *) objformat=elf ;;
  12882. esac
  12883. fi
  12884. version_type=freebsd-$objformat
  12885. case $version_type in
  12886. freebsd-elf*)
  12887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12888. need_version=no
  12889. need_lib_prefix=no
  12890. ;;
  12891. freebsd-*)
  12892. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12893. need_version=yes
  12894. ;;
  12895. esac
  12896. shlibpath_var=LD_LIBRARY_PATH
  12897. case $host_os in
  12898. freebsd2.*)
  12899. shlibpath_overrides_runpath=yes
  12900. ;;
  12901. freebsd3.[01]* | freebsdelf3.[01]*)
  12902. shlibpath_overrides_runpath=yes
  12903. hardcode_into_libs=yes
  12904. ;;
  12905. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12906. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12907. shlibpath_overrides_runpath=no
  12908. hardcode_into_libs=yes
  12909. ;;
  12910. *) # from 4.6 on, and DragonFly
  12911. shlibpath_overrides_runpath=yes
  12912. hardcode_into_libs=yes
  12913. ;;
  12914. esac
  12915. ;;
  12916. gnu*)
  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. shlibpath_var=LD_LIBRARY_PATH
  12923. shlibpath_overrides_runpath=no
  12924. hardcode_into_libs=yes
  12925. ;;
  12926. haiku*)
  12927. version_type=linux # correct to gnu/linux during the next big refactor
  12928. need_lib_prefix=no
  12929. need_version=no
  12930. dynamic_linker="$host_os runtime_loader"
  12931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. shlibpath_var=LIBRARY_PATH
  12934. shlibpath_overrides_runpath=yes
  12935. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12936. hardcode_into_libs=yes
  12937. ;;
  12938. hpux9* | hpux10* | hpux11*)
  12939. # Give a soname corresponding to the major version so that dld.sl refuses to
  12940. # link against other versions.
  12941. version_type=sunos
  12942. need_lib_prefix=no
  12943. need_version=no
  12944. case $host_cpu in
  12945. ia64*)
  12946. shrext_cmds='.so'
  12947. hardcode_into_libs=yes
  12948. dynamic_linker="$host_os dld.so"
  12949. shlibpath_var=LD_LIBRARY_PATH
  12950. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12952. soname_spec='${libname}${release}${shared_ext}$major'
  12953. if test "X$HPUX_IA64_MODE" = X32; then
  12954. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12955. else
  12956. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12957. fi
  12958. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12959. ;;
  12960. hppa*64*)
  12961. shrext_cmds='.sl'
  12962. hardcode_into_libs=yes
  12963. dynamic_linker="$host_os dld.sl"
  12964. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12965. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12969. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12970. ;;
  12971. *)
  12972. shrext_cmds='.sl'
  12973. dynamic_linker="$host_os dld.sl"
  12974. shlibpath_var=SHLIB_PATH
  12975. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12977. soname_spec='${libname}${release}${shared_ext}$major'
  12978. ;;
  12979. esac
  12980. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12981. postinstall_cmds='chmod 555 $lib'
  12982. # or fails outright, so override atomically:
  12983. install_override_mode=555
  12984. ;;
  12985. interix[3-9]*)
  12986. version_type=linux # correct to gnu/linux during the next big refactor
  12987. need_lib_prefix=no
  12988. need_version=no
  12989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12990. soname_spec='${libname}${release}${shared_ext}$major'
  12991. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12992. shlibpath_var=LD_LIBRARY_PATH
  12993. shlibpath_overrides_runpath=no
  12994. hardcode_into_libs=yes
  12995. ;;
  12996. irix5* | irix6* | nonstopux*)
  12997. case $host_os in
  12998. nonstopux*) version_type=nonstopux ;;
  12999. *)
  13000. if test "$lt_cv_prog_gnu_ld" = yes; then
  13001. version_type=linux # correct to gnu/linux during the next big refactor
  13002. else
  13003. version_type=irix
  13004. fi ;;
  13005. esac
  13006. need_lib_prefix=no
  13007. need_version=no
  13008. soname_spec='${libname}${release}${shared_ext}$major'
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13010. case $host_os in
  13011. irix5* | nonstopux*)
  13012. libsuff= shlibsuff=
  13013. ;;
  13014. *)
  13015. case $LD in # libtool.m4 will add one of these switches to LD
  13016. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13017. libsuff= shlibsuff= libmagic=32-bit;;
  13018. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13019. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13020. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13021. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13022. *) libsuff= shlibsuff= libmagic=never-match;;
  13023. esac
  13024. ;;
  13025. esac
  13026. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13027. shlibpath_overrides_runpath=no
  13028. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13029. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13030. hardcode_into_libs=yes
  13031. ;;
  13032. # No shared lib support for Linux oldld, aout, or coff.
  13033. linux*oldld* | linux*aout* | linux*coff*)
  13034. dynamic_linker=no
  13035. ;;
  13036. # This must be glibc/ELF.
  13037. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13038. version_type=linux # correct to gnu/linux during the next big refactor
  13039. need_lib_prefix=no
  13040. need_version=no
  13041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13042. soname_spec='${libname}${release}${shared_ext}$major'
  13043. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. shlibpath_overrides_runpath=no
  13046. # Some binutils ld are patched to set DT_RUNPATH
  13047. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13048. $as_echo_n "(cached) " >&6
  13049. else
  13050. lt_cv_shlibpath_overrides_runpath=no
  13051. save_LDFLAGS=$LDFLAGS
  13052. save_libdir=$libdir
  13053. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13054. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13056. /* end confdefs.h. */
  13057. int
  13058. main ()
  13059. {
  13060. ;
  13061. return 0;
  13062. }
  13063. _ACEOF
  13064. if ac_fn_cxx_try_link "$LINENO"; then :
  13065. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13066. lt_cv_shlibpath_overrides_runpath=yes
  13067. fi
  13068. fi
  13069. rm -f core conftest.err conftest.$ac_objext \
  13070. conftest$ac_exeext conftest.$ac_ext
  13071. LDFLAGS=$save_LDFLAGS
  13072. libdir=$save_libdir
  13073. fi
  13074. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13075. # This implies no fast_install, which is unacceptable.
  13076. # Some rework will be needed to allow for fast_install
  13077. # before this can be enabled.
  13078. hardcode_into_libs=yes
  13079. # Append ld.so.conf contents to the search path
  13080. if test -f /etc/ld.so.conf; then
  13081. 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' ' '`
  13082. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13083. fi
  13084. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13085. # powerpc, because MkLinux only supported shared libraries with the
  13086. # GNU dynamic linker. Since this was broken with cross compilers,
  13087. # most powerpc-linux boxes support dynamic linking these days and
  13088. # people can always --disable-shared, the test was removed, and we
  13089. # assume the GNU/Linux dynamic linker is in use.
  13090. dynamic_linker='GNU/Linux ld.so'
  13091. ;;
  13092. netbsd*)
  13093. version_type=sunos
  13094. need_lib_prefix=no
  13095. need_version=no
  13096. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13098. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13099. dynamic_linker='NetBSD (a.out) ld.so'
  13100. else
  13101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13102. soname_spec='${libname}${release}${shared_ext}$major'
  13103. dynamic_linker='NetBSD ld.elf_so'
  13104. fi
  13105. shlibpath_var=LD_LIBRARY_PATH
  13106. shlibpath_overrides_runpath=yes
  13107. hardcode_into_libs=yes
  13108. ;;
  13109. newsos6)
  13110. version_type=linux # correct to gnu/linux during the next big refactor
  13111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. shlibpath_overrides_runpath=yes
  13114. ;;
  13115. *nto* | *qnx*)
  13116. version_type=qnx
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13120. soname_spec='${libname}${release}${shared_ext}$major'
  13121. shlibpath_var=LD_LIBRARY_PATH
  13122. shlibpath_overrides_runpath=no
  13123. hardcode_into_libs=yes
  13124. dynamic_linker='ldqnx.so'
  13125. ;;
  13126. openbsd*)
  13127. version_type=sunos
  13128. sys_lib_dlsearch_path_spec="/usr/lib"
  13129. need_lib_prefix=no
  13130. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13131. case $host_os in
  13132. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13133. *) need_version=no ;;
  13134. esac
  13135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13136. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13137. shlibpath_var=LD_LIBRARY_PATH
  13138. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13139. case $host_os in
  13140. openbsd2.[89] | openbsd2.[89].*)
  13141. shlibpath_overrides_runpath=no
  13142. ;;
  13143. *)
  13144. shlibpath_overrides_runpath=yes
  13145. ;;
  13146. esac
  13147. else
  13148. shlibpath_overrides_runpath=yes
  13149. fi
  13150. ;;
  13151. os2*)
  13152. libname_spec='$name'
  13153. shrext_cmds=".dll"
  13154. need_lib_prefix=no
  13155. library_names_spec='$libname${shared_ext} $libname.a'
  13156. dynamic_linker='OS/2 ld.exe'
  13157. shlibpath_var=LIBPATH
  13158. ;;
  13159. osf3* | osf4* | osf5*)
  13160. version_type=osf
  13161. need_lib_prefix=no
  13162. need_version=no
  13163. soname_spec='${libname}${release}${shared_ext}$major'
  13164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13165. shlibpath_var=LD_LIBRARY_PATH
  13166. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13167. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13168. ;;
  13169. rdos*)
  13170. dynamic_linker=no
  13171. ;;
  13172. solaris*)
  13173. version_type=linux # correct to gnu/linux during the next big refactor
  13174. need_lib_prefix=no
  13175. need_version=no
  13176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13177. soname_spec='${libname}${release}${shared_ext}$major'
  13178. shlibpath_var=LD_LIBRARY_PATH
  13179. shlibpath_overrides_runpath=yes
  13180. hardcode_into_libs=yes
  13181. # ldd complains unless libraries are executable
  13182. postinstall_cmds='chmod +x $lib'
  13183. ;;
  13184. sunos4*)
  13185. version_type=sunos
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13187. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes
  13190. if test "$with_gnu_ld" = yes; then
  13191. need_lib_prefix=no
  13192. fi
  13193. need_version=yes
  13194. ;;
  13195. sysv4 | sysv4.3*)
  13196. version_type=linux # correct to gnu/linux during the next big refactor
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. case $host_vendor in
  13201. sni)
  13202. shlibpath_overrides_runpath=no
  13203. need_lib_prefix=no
  13204. runpath_var=LD_RUN_PATH
  13205. ;;
  13206. siemens)
  13207. need_lib_prefix=no
  13208. ;;
  13209. motorola)
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. shlibpath_overrides_runpath=no
  13213. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13214. ;;
  13215. esac
  13216. ;;
  13217. sysv4*MP*)
  13218. if test -d /usr/nec ;then
  13219. version_type=linux # correct to gnu/linux during the next big refactor
  13220. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13221. soname_spec='$libname${shared_ext}.$major'
  13222. shlibpath_var=LD_LIBRARY_PATH
  13223. fi
  13224. ;;
  13225. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13226. version_type=freebsd-elf
  13227. need_lib_prefix=no
  13228. need_version=no
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. shlibpath_overrides_runpath=yes
  13233. hardcode_into_libs=yes
  13234. if test "$with_gnu_ld" = yes; then
  13235. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13236. else
  13237. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13238. case $host_os in
  13239. sco3.2v5*)
  13240. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13241. ;;
  13242. esac
  13243. fi
  13244. sys_lib_dlsearch_path_spec='/usr/lib'
  13245. ;;
  13246. tpf*)
  13247. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13248. version_type=linux # correct to gnu/linux during the next big refactor
  13249. need_lib_prefix=no
  13250. need_version=no
  13251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13252. shlibpath_var=LD_LIBRARY_PATH
  13253. shlibpath_overrides_runpath=no
  13254. hardcode_into_libs=yes
  13255. ;;
  13256. uts4*)
  13257. version_type=linux # correct to gnu/linux during the next big refactor
  13258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. ;;
  13262. *)
  13263. dynamic_linker=no
  13264. ;;
  13265. esac
  13266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13267. $as_echo "$dynamic_linker" >&6; }
  13268. test "$dynamic_linker" = no && can_build_shared=no
  13269. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13270. if test "$GCC" = yes; then
  13271. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13272. fi
  13273. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13274. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13275. fi
  13276. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13277. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13278. fi
  13279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13280. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13281. hardcode_action_CXX=
  13282. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13283. test -n "$runpath_var_CXX" ||
  13284. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13285. # We can hardcode non-existent directories.
  13286. if test "$hardcode_direct_CXX" != no &&
  13287. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13288. # have to relink, otherwise we might link with an installed library
  13289. # when we should be linking with a yet-to-be-installed one
  13290. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13291. test "$hardcode_minus_L_CXX" != no; then
  13292. # Linking always hardcodes the temporary library directory.
  13293. hardcode_action_CXX=relink
  13294. else
  13295. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13296. hardcode_action_CXX=immediate
  13297. fi
  13298. else
  13299. # We cannot hardcode anything, or else we can only hardcode existing
  13300. # directories.
  13301. hardcode_action_CXX=unsupported
  13302. fi
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13304. $as_echo "$hardcode_action_CXX" >&6; }
  13305. if test "$hardcode_action_CXX" = relink ||
  13306. test "$inherit_rpath_CXX" = yes; then
  13307. # Fast installation is not supported
  13308. enable_fast_install=no
  13309. elif test "$shlibpath_overrides_runpath" = yes ||
  13310. test "$enable_shared" = no; then
  13311. # Fast installation is not necessary
  13312. enable_fast_install=needless
  13313. fi
  13314. fi # test -n "$compiler"
  13315. CC=$lt_save_CC
  13316. CFLAGS=$lt_save_CFLAGS
  13317. LDCXX=$LD
  13318. LD=$lt_save_LD
  13319. GCC=$lt_save_GCC
  13320. with_gnu_ld=$lt_save_with_gnu_ld
  13321. lt_cv_path_LDCXX=$lt_cv_path_LD
  13322. lt_cv_path_LD=$lt_save_path_LD
  13323. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13324. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13325. fi # test "$_lt_caught_CXX_error" != yes
  13326. ac_ext=c
  13327. ac_cpp='$CPP $CPPFLAGS'
  13328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13331. ac_config_commands="$ac_config_commands libtool"
  13332. # Only expand once:
  13333. # Checks for libraries.
  13334. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13335. if test -n "$ac_tool_prefix"; then
  13336. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13337. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13339. $as_echo_n "checking for $ac_word... " >&6; }
  13340. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13341. $as_echo_n "(cached) " >&6
  13342. else
  13343. case $PKG_CONFIG in
  13344. [\\/]* | ?:[\\/]*)
  13345. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13346. ;;
  13347. *)
  13348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13349. for as_dir in $PATH
  13350. do
  13351. IFS=$as_save_IFS
  13352. test -z "$as_dir" && as_dir=.
  13353. for ac_exec_ext in '' $ac_executable_extensions; do
  13354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13355. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13357. break 2
  13358. fi
  13359. done
  13360. done
  13361. IFS=$as_save_IFS
  13362. ;;
  13363. esac
  13364. fi
  13365. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13366. if test -n "$PKG_CONFIG"; then
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13368. $as_echo "$PKG_CONFIG" >&6; }
  13369. else
  13370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13371. $as_echo "no" >&6; }
  13372. fi
  13373. fi
  13374. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13375. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13376. # Extract the first word of "pkg-config", so it can be a program name with args.
  13377. set dummy pkg-config; ac_word=$2
  13378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13379. $as_echo_n "checking for $ac_word... " >&6; }
  13380. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13381. $as_echo_n "(cached) " >&6
  13382. else
  13383. case $ac_pt_PKG_CONFIG in
  13384. [\\/]* | ?:[\\/]*)
  13385. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13386. ;;
  13387. *)
  13388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13389. for as_dir in $PATH
  13390. do
  13391. IFS=$as_save_IFS
  13392. test -z "$as_dir" && as_dir=.
  13393. for ac_exec_ext in '' $ac_executable_extensions; do
  13394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13395. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13397. break 2
  13398. fi
  13399. done
  13400. done
  13401. IFS=$as_save_IFS
  13402. ;;
  13403. esac
  13404. fi
  13405. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13406. if test -n "$ac_pt_PKG_CONFIG"; then
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13408. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13409. else
  13410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13411. $as_echo "no" >&6; }
  13412. fi
  13413. if test "x$ac_pt_PKG_CONFIG" = x; then
  13414. PKG_CONFIG=""
  13415. else
  13416. case $cross_compiling:$ac_tool_warned in
  13417. yes:)
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13420. ac_tool_warned=yes ;;
  13421. esac
  13422. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13423. fi
  13424. else
  13425. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13426. fi
  13427. fi
  13428. if test -n "$PKG_CONFIG"; then
  13429. _pkg_min_version=0.9.0
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13431. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13432. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13434. $as_echo "yes" >&6; }
  13435. else
  13436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13437. $as_echo "no" >&6; }
  13438. PKG_CONFIG=""
  13439. fi
  13440. fi
  13441. pkg_failed=no
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusbmuxd" >&5
  13443. $as_echo_n "checking for libusbmuxd... " >&6; }
  13444. if test -n "$libusbmuxd_CFLAGS"; then
  13445. pkg_cv_libusbmuxd_CFLAGS="$libusbmuxd_CFLAGS"
  13446. elif test -n "$PKG_CONFIG"; then
  13447. if test -n "$PKG_CONFIG" && \
  13448. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusbmuxd >= \$LIBUSBMUXD_VERSION\""; } >&5
  13449. ($PKG_CONFIG --exists --print-errors "libusbmuxd >= $LIBUSBMUXD_VERSION") 2>&5
  13450. ac_status=$?
  13451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13452. test $ac_status = 0; }; then
  13453. pkg_cv_libusbmuxd_CFLAGS=`$PKG_CONFIG --cflags "libusbmuxd >= $LIBUSBMUXD_VERSION" 2>/dev/null`
  13454. test "x$?" != "x0" && pkg_failed=yes
  13455. else
  13456. pkg_failed=yes
  13457. fi
  13458. else
  13459. pkg_failed=untried
  13460. fi
  13461. if test -n "$libusbmuxd_LIBS"; then
  13462. pkg_cv_libusbmuxd_LIBS="$libusbmuxd_LIBS"
  13463. elif test -n "$PKG_CONFIG"; then
  13464. if test -n "$PKG_CONFIG" && \
  13465. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusbmuxd >= \$LIBUSBMUXD_VERSION\""; } >&5
  13466. ($PKG_CONFIG --exists --print-errors "libusbmuxd >= $LIBUSBMUXD_VERSION") 2>&5
  13467. ac_status=$?
  13468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13469. test $ac_status = 0; }; then
  13470. pkg_cv_libusbmuxd_LIBS=`$PKG_CONFIG --libs "libusbmuxd >= $LIBUSBMUXD_VERSION" 2>/dev/null`
  13471. test "x$?" != "x0" && pkg_failed=yes
  13472. else
  13473. pkg_failed=yes
  13474. fi
  13475. else
  13476. pkg_failed=untried
  13477. fi
  13478. if test $pkg_failed = yes; then
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13480. $as_echo "no" >&6; }
  13481. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13482. _pkg_short_errors_supported=yes
  13483. else
  13484. _pkg_short_errors_supported=no
  13485. fi
  13486. if test $_pkg_short_errors_supported = yes; then
  13487. libusbmuxd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusbmuxd >= $LIBUSBMUXD_VERSION" 2>&1`
  13488. else
  13489. libusbmuxd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusbmuxd >= $LIBUSBMUXD_VERSION" 2>&1`
  13490. fi
  13491. # Put the nasty error message in config.log where it belongs
  13492. echo "$libusbmuxd_PKG_ERRORS" >&5
  13493. as_fn_error $? "Package requirements (libusbmuxd >= $LIBUSBMUXD_VERSION) were not met:
  13494. $libusbmuxd_PKG_ERRORS
  13495. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13496. installed software in a non-standard prefix.
  13497. Alternatively, you may set the environment variables libusbmuxd_CFLAGS
  13498. and libusbmuxd_LIBS to avoid the need to call pkg-config.
  13499. See the pkg-config man page for more details." "$LINENO" 5
  13500. elif test $pkg_failed = untried; then
  13501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13502. $as_echo "no" >&6; }
  13503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13505. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13506. is in your PATH or set the PKG_CONFIG environment variable to the full
  13507. path to pkg-config.
  13508. Alternatively, you may set the environment variables libusbmuxd_CFLAGS
  13509. and libusbmuxd_LIBS to avoid the need to call pkg-config.
  13510. See the pkg-config man page for more details.
  13511. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13512. See \`config.log' for more details" "$LINENO" 5; }
  13513. else
  13514. libusbmuxd_CFLAGS=$pkg_cv_libusbmuxd_CFLAGS
  13515. libusbmuxd_LIBS=$pkg_cv_libusbmuxd_LIBS
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13517. $as_echo "yes" >&6; }
  13518. fi
  13519. pkg_failed=no
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplist" >&5
  13521. $as_echo_n "checking for libplist... " >&6; }
  13522. if test -n "$libplist_CFLAGS"; then
  13523. pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
  13524. elif test -n "$PKG_CONFIG"; then
  13525. if test -n "$PKG_CONFIG" && \
  13526. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= \$LIBPLIST_VERSION\""; } >&5
  13527. ($PKG_CONFIG --exists --print-errors "libplist >= $LIBPLIST_VERSION") 2>&5
  13528. ac_status=$?
  13529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13530. test $ac_status = 0; }; then
  13531. pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist >= $LIBPLIST_VERSION" 2>/dev/null`
  13532. test "x$?" != "x0" && pkg_failed=yes
  13533. else
  13534. pkg_failed=yes
  13535. fi
  13536. else
  13537. pkg_failed=untried
  13538. fi
  13539. if test -n "$libplist_LIBS"; then
  13540. pkg_cv_libplist_LIBS="$libplist_LIBS"
  13541. elif test -n "$PKG_CONFIG"; then
  13542. if test -n "$PKG_CONFIG" && \
  13543. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= \$LIBPLIST_VERSION\""; } >&5
  13544. ($PKG_CONFIG --exists --print-errors "libplist >= $LIBPLIST_VERSION") 2>&5
  13545. ac_status=$?
  13546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13547. test $ac_status = 0; }; then
  13548. pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist >= $LIBPLIST_VERSION" 2>/dev/null`
  13549. test "x$?" != "x0" && pkg_failed=yes
  13550. else
  13551. pkg_failed=yes
  13552. fi
  13553. else
  13554. pkg_failed=untried
  13555. fi
  13556. if test $pkg_failed = yes; then
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13558. $as_echo "no" >&6; }
  13559. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13560. _pkg_short_errors_supported=yes
  13561. else
  13562. _pkg_short_errors_supported=no
  13563. fi
  13564. if test $_pkg_short_errors_supported = yes; then
  13565. libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist >= $LIBPLIST_VERSION" 2>&1`
  13566. else
  13567. libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist >= $LIBPLIST_VERSION" 2>&1`
  13568. fi
  13569. # Put the nasty error message in config.log where it belongs
  13570. echo "$libplist_PKG_ERRORS" >&5
  13571. as_fn_error $? "Package requirements (libplist >= $LIBPLIST_VERSION) were not met:
  13572. $libplist_PKG_ERRORS
  13573. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13574. installed software in a non-standard prefix.
  13575. Alternatively, you may set the environment variables libplist_CFLAGS
  13576. and libplist_LIBS to avoid the need to call pkg-config.
  13577. See the pkg-config man page for more details." "$LINENO" 5
  13578. elif test $pkg_failed = untried; then
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13580. $as_echo "no" >&6; }
  13581. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13583. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13584. is in your PATH or set the PKG_CONFIG environment variable to the full
  13585. path to pkg-config.
  13586. Alternatively, you may set the environment variables libplist_CFLAGS
  13587. and libplist_LIBS to avoid the need to call pkg-config.
  13588. See the pkg-config man page for more details.
  13589. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13590. See \`config.log' for more details" "$LINENO" 5; }
  13591. else
  13592. libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
  13593. libplist_LIBS=$pkg_cv_libplist_LIBS
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13595. $as_echo "yes" >&6; }
  13596. fi
  13597. pkg_failed=no
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplistmm" >&5
  13599. $as_echo_n "checking for libplistmm... " >&6; }
  13600. if test -n "$libplistmm_CFLAGS"; then
  13601. pkg_cv_libplistmm_CFLAGS="$libplistmm_CFLAGS"
  13602. elif test -n "$PKG_CONFIG"; then
  13603. if test -n "$PKG_CONFIG" && \
  13604. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist++ >= \$LIBPLISTMM_VERSION\""; } >&5
  13605. ($PKG_CONFIG --exists --print-errors "libplist++ >= $LIBPLISTMM_VERSION") 2>&5
  13606. ac_status=$?
  13607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13608. test $ac_status = 0; }; then
  13609. pkg_cv_libplistmm_CFLAGS=`$PKG_CONFIG --cflags "libplist++ >= $LIBPLISTMM_VERSION" 2>/dev/null`
  13610. test "x$?" != "x0" && pkg_failed=yes
  13611. else
  13612. pkg_failed=yes
  13613. fi
  13614. else
  13615. pkg_failed=untried
  13616. fi
  13617. if test -n "$libplistmm_LIBS"; then
  13618. pkg_cv_libplistmm_LIBS="$libplistmm_LIBS"
  13619. elif test -n "$PKG_CONFIG"; then
  13620. if test -n "$PKG_CONFIG" && \
  13621. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist++ >= \$LIBPLISTMM_VERSION\""; } >&5
  13622. ($PKG_CONFIG --exists --print-errors "libplist++ >= $LIBPLISTMM_VERSION") 2>&5
  13623. ac_status=$?
  13624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13625. test $ac_status = 0; }; then
  13626. pkg_cv_libplistmm_LIBS=`$PKG_CONFIG --libs "libplist++ >= $LIBPLISTMM_VERSION" 2>/dev/null`
  13627. test "x$?" != "x0" && pkg_failed=yes
  13628. else
  13629. pkg_failed=yes
  13630. fi
  13631. else
  13632. pkg_failed=untried
  13633. fi
  13634. if test $pkg_failed = yes; then
  13635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13636. $as_echo "no" >&6; }
  13637. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13638. _pkg_short_errors_supported=yes
  13639. else
  13640. _pkg_short_errors_supported=no
  13641. fi
  13642. if test $_pkg_short_errors_supported = yes; then
  13643. libplistmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist++ >= $LIBPLISTMM_VERSION" 2>&1`
  13644. else
  13645. libplistmm_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist++ >= $LIBPLISTMM_VERSION" 2>&1`
  13646. fi
  13647. # Put the nasty error message in config.log where it belongs
  13648. echo "$libplistmm_PKG_ERRORS" >&5
  13649. as_fn_error $? "Package requirements (libplist++ >= $LIBPLISTMM_VERSION) were not met:
  13650. $libplistmm_PKG_ERRORS
  13651. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13652. installed software in a non-standard prefix.
  13653. Alternatively, you may set the environment variables libplistmm_CFLAGS
  13654. and libplistmm_LIBS to avoid the need to call pkg-config.
  13655. See the pkg-config man page for more details." "$LINENO" 5
  13656. elif test $pkg_failed = untried; then
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13658. $as_echo "no" >&6; }
  13659. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13660. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13661. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13662. is in your PATH or set the PKG_CONFIG environment variable to the full
  13663. path to pkg-config.
  13664. Alternatively, you may set the environment variables libplistmm_CFLAGS
  13665. and libplistmm_LIBS to avoid the need to call pkg-config.
  13666. See the pkg-config man page for more details.
  13667. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13668. See \`config.log' for more details" "$LINENO" 5; }
  13669. else
  13670. libplistmm_CFLAGS=$pkg_cv_libplistmm_CFLAGS
  13671. libplistmm_LIBS=$pkg_cv_libplistmm_LIBS
  13672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13673. $as_echo "yes" >&6; }
  13674. fi
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create, pthread_mutex_lock in -lpthread" >&5
  13676. $as_echo_n "checking for pthread_create, pthread_mutex_lock in -lpthread... " >&6; }
  13677. if ${ac_cv_lib_pthread_pthread_create__pthread_mutex_lock+:} false; then :
  13678. $as_echo_n "(cached) " >&6
  13679. else
  13680. ac_check_lib_save_LIBS=$LIBS
  13681. LIBS="-lpthread $LIBS"
  13682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13683. /* end confdefs.h. */
  13684. /* Override any GCC internal prototype to avoid an error.
  13685. Use char because int might match the return type of a GCC
  13686. builtin and then its argument prototype would still apply. */
  13687. #ifdef __cplusplus
  13688. extern "C"
  13689. #endif
  13690. char pthread_create, pthread_mutex_lock ();
  13691. int
  13692. main ()
  13693. {
  13694. return pthread_create, pthread_mutex_lock ();
  13695. ;
  13696. return 0;
  13697. }
  13698. _ACEOF
  13699. if ac_fn_c_try_link "$LINENO"; then :
  13700. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=yes
  13701. else
  13702. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=no
  13703. fi
  13704. rm -f core conftest.err conftest.$ac_objext \
  13705. conftest$ac_exeext conftest.$ac_ext
  13706. LIBS=$ac_check_lib_save_LIBS
  13707. fi
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&5
  13709. $as_echo "$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&6; }
  13710. if test "x$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" = xyes; then :
  13711. libpthread_LIBS=-lpthread
  13712. else
  13713. as_fn_error $? "libpthread is required to build libimobiledevice" "$LINENO" 5
  13714. fi
  13715. # Checks for header files.
  13716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13717. $as_echo_n "checking for ANSI C header files... " >&6; }
  13718. if ${ac_cv_header_stdc+:} false; then :
  13719. $as_echo_n "(cached) " >&6
  13720. else
  13721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13722. /* end confdefs.h. */
  13723. #include <stdlib.h>
  13724. #include <stdarg.h>
  13725. #include <string.h>
  13726. #include <float.h>
  13727. int
  13728. main ()
  13729. {
  13730. ;
  13731. return 0;
  13732. }
  13733. _ACEOF
  13734. if ac_fn_c_try_compile "$LINENO"; then :
  13735. ac_cv_header_stdc=yes
  13736. else
  13737. ac_cv_header_stdc=no
  13738. fi
  13739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13740. if test $ac_cv_header_stdc = yes; then
  13741. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13743. /* end confdefs.h. */
  13744. #include <string.h>
  13745. _ACEOF
  13746. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13747. $EGREP "memchr" >/dev/null 2>&1; then :
  13748. else
  13749. ac_cv_header_stdc=no
  13750. fi
  13751. rm -f conftest*
  13752. fi
  13753. if test $ac_cv_header_stdc = yes; then
  13754. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13756. /* end confdefs.h. */
  13757. #include <stdlib.h>
  13758. _ACEOF
  13759. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13760. $EGREP "free" >/dev/null 2>&1; then :
  13761. else
  13762. ac_cv_header_stdc=no
  13763. fi
  13764. rm -f conftest*
  13765. fi
  13766. if test $ac_cv_header_stdc = yes; then
  13767. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13768. if test "$cross_compiling" = yes; then :
  13769. :
  13770. else
  13771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13772. /* end confdefs.h. */
  13773. #include <ctype.h>
  13774. #include <stdlib.h>
  13775. #if ((' ' & 0x0FF) == 0x020)
  13776. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13777. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13778. #else
  13779. # define ISLOWER(c) \
  13780. (('a' <= (c) && (c) <= 'i') \
  13781. || ('j' <= (c) && (c) <= 'r') \
  13782. || ('s' <= (c) && (c) <= 'z'))
  13783. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13784. #endif
  13785. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13786. int
  13787. main ()
  13788. {
  13789. int i;
  13790. for (i = 0; i < 256; i++)
  13791. if (XOR (islower (i), ISLOWER (i))
  13792. || toupper (i) != TOUPPER (i))
  13793. return 2;
  13794. return 0;
  13795. }
  13796. _ACEOF
  13797. if ac_fn_c_try_run "$LINENO"; then :
  13798. else
  13799. ac_cv_header_stdc=no
  13800. fi
  13801. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13802. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13803. fi
  13804. fi
  13805. fi
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13807. $as_echo "$ac_cv_header_stdc" >&6; }
  13808. if test $ac_cv_header_stdc = yes; then
  13809. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13810. fi
  13811. for ac_header in stdint.h stdlib.h string.h gcrypt.h
  13812. do :
  13813. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13814. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13815. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13816. cat >>confdefs.h <<_ACEOF
  13817. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13818. _ACEOF
  13819. fi
  13820. done
  13821. # Checks for typedefs, structures, and compiler characteristics.
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13823. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13824. if ${ac_cv_c_const+:} false; then :
  13825. $as_echo_n "(cached) " >&6
  13826. else
  13827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13828. /* end confdefs.h. */
  13829. int
  13830. main ()
  13831. {
  13832. #ifndef __cplusplus
  13833. /* Ultrix mips cc rejects this sort of thing. */
  13834. typedef int charset[2];
  13835. const charset cs = { 0, 0 };
  13836. /* SunOS 4.1.1 cc rejects this. */
  13837. char const *const *pcpcc;
  13838. char **ppc;
  13839. /* NEC SVR4.0.2 mips cc rejects this. */
  13840. struct point {int x, y;};
  13841. static struct point const zero = {0,0};
  13842. /* AIX XL C 1.02.0.0 rejects this.
  13843. It does not let you subtract one const X* pointer from another in
  13844. an arm of an if-expression whose if-part is not a constant
  13845. expression */
  13846. const char *g = "string";
  13847. pcpcc = &g + (g ? g-g : 0);
  13848. /* HPUX 7.0 cc rejects these. */
  13849. ++pcpcc;
  13850. ppc = (char**) pcpcc;
  13851. pcpcc = (char const *const *) ppc;
  13852. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13853. char tx;
  13854. char *t = &tx;
  13855. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13856. *t++ = 0;
  13857. if (s) return 0;
  13858. }
  13859. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13860. int x[] = {25, 17};
  13861. const int *foo = &x[0];
  13862. ++foo;
  13863. }
  13864. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13865. typedef const int *iptr;
  13866. iptr p = 0;
  13867. ++p;
  13868. }
  13869. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13870. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13871. struct s { int j; const int *ap[3]; } bx;
  13872. struct s *b = &bx; b->j = 5;
  13873. }
  13874. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13875. const int foo = 10;
  13876. if (!foo) return 0;
  13877. }
  13878. return !cs[0] && !zero.x;
  13879. #endif
  13880. ;
  13881. return 0;
  13882. }
  13883. _ACEOF
  13884. if ac_fn_c_try_compile "$LINENO"; then :
  13885. ac_cv_c_const=yes
  13886. else
  13887. ac_cv_c_const=no
  13888. fi
  13889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13890. fi
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13892. $as_echo "$ac_cv_c_const" >&6; }
  13893. if test $ac_cv_c_const = no; then
  13894. $as_echo "#define const /**/" >>confdefs.h
  13895. fi
  13896. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13897. if test "x$ac_cv_type_size_t" = xyes; then :
  13898. else
  13899. cat >>confdefs.h <<_ACEOF
  13900. #define size_t unsigned int
  13901. _ACEOF
  13902. fi
  13903. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  13904. if test "x$ac_cv_type_ssize_t" = xyes; then :
  13905. else
  13906. cat >>confdefs.h <<_ACEOF
  13907. #define ssize_t int
  13908. _ACEOF
  13909. fi
  13910. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  13911. case $ac_cv_c_uint16_t in #(
  13912. no|yes) ;; #(
  13913. *)
  13914. cat >>confdefs.h <<_ACEOF
  13915. #define uint16_t $ac_cv_c_uint16_t
  13916. _ACEOF
  13917. ;;
  13918. esac
  13919. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  13920. case $ac_cv_c_uint32_t in #(
  13921. no|yes) ;; #(
  13922. *)
  13923. $as_echo "#define _UINT32_T 1" >>confdefs.h
  13924. cat >>confdefs.h <<_ACEOF
  13925. #define uint32_t $ac_cv_c_uint32_t
  13926. _ACEOF
  13927. ;;
  13928. esac
  13929. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  13930. case $ac_cv_c_uint8_t in #(
  13931. no|yes) ;; #(
  13932. *)
  13933. $as_echo "#define _UINT8_T 1" >>confdefs.h
  13934. cat >>confdefs.h <<_ACEOF
  13935. #define uint8_t $ac_cv_c_uint8_t
  13936. _ACEOF
  13937. ;;
  13938. esac
  13939. # Checks for library functions.
  13940. for ac_func in asprintf strcasecmp strdup strerror strndup stpcpy vasprintf
  13941. do :
  13942. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13943. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13944. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13945. cat >>confdefs.h <<_ACEOF
  13946. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13947. _ACEOF
  13948. fi
  13949. done
  13950. ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
  13951. if test "x$ac_cv_header_endian_h" = xyes; then :
  13952. ac_cv_have_endian_h="yes"
  13953. else
  13954. ac_cv_have_endian_h="no"
  13955. fi
  13956. if test "x$ac_cv_have_endian_h" = "xno"; then
  13957. $as_echo "#define __LITTLE_ENDIAN 1234" >>confdefs.h
  13958. $as_echo "#define __BIG_ENDIAN 4321" >>confdefs.h
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13960. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13961. if ${ac_cv_c_bigendian+:} false; then :
  13962. $as_echo_n "(cached) " >&6
  13963. else
  13964. ac_cv_c_bigendian=unknown
  13965. # See if we're dealing with a universal compiler.
  13966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13967. /* end confdefs.h. */
  13968. #ifndef __APPLE_CC__
  13969. not a universal capable compiler
  13970. #endif
  13971. typedef int dummy;
  13972. _ACEOF
  13973. if ac_fn_c_try_compile "$LINENO"; then :
  13974. # Check for potential -arch flags. It is not universal unless
  13975. # there are at least two -arch flags with different values.
  13976. ac_arch=
  13977. ac_prev=
  13978. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13979. if test -n "$ac_prev"; then
  13980. case $ac_word in
  13981. i?86 | x86_64 | ppc | ppc64)
  13982. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13983. ac_arch=$ac_word
  13984. else
  13985. ac_cv_c_bigendian=universal
  13986. break
  13987. fi
  13988. ;;
  13989. esac
  13990. ac_prev=
  13991. elif test "x$ac_word" = "x-arch"; then
  13992. ac_prev=arch
  13993. fi
  13994. done
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13997. if test $ac_cv_c_bigendian = unknown; then
  13998. # See if sys/param.h defines the BYTE_ORDER macro.
  13999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14000. /* end confdefs.h. */
  14001. #include <sys/types.h>
  14002. #include <sys/param.h>
  14003. int
  14004. main ()
  14005. {
  14006. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14007. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14008. && LITTLE_ENDIAN)
  14009. bogus endian macros
  14010. #endif
  14011. ;
  14012. return 0;
  14013. }
  14014. _ACEOF
  14015. if ac_fn_c_try_compile "$LINENO"; then :
  14016. # It does; now see whether it defined to BIG_ENDIAN or not.
  14017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14018. /* end confdefs.h. */
  14019. #include <sys/types.h>
  14020. #include <sys/param.h>
  14021. int
  14022. main ()
  14023. {
  14024. #if BYTE_ORDER != BIG_ENDIAN
  14025. not big endian
  14026. #endif
  14027. ;
  14028. return 0;
  14029. }
  14030. _ACEOF
  14031. if ac_fn_c_try_compile "$LINENO"; then :
  14032. ac_cv_c_bigendian=yes
  14033. else
  14034. ac_cv_c_bigendian=no
  14035. fi
  14036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14037. fi
  14038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14039. fi
  14040. if test $ac_cv_c_bigendian = unknown; then
  14041. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14043. /* end confdefs.h. */
  14044. #include <limits.h>
  14045. int
  14046. main ()
  14047. {
  14048. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14049. bogus endian macros
  14050. #endif
  14051. ;
  14052. return 0;
  14053. }
  14054. _ACEOF
  14055. if ac_fn_c_try_compile "$LINENO"; then :
  14056. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14058. /* end confdefs.h. */
  14059. #include <limits.h>
  14060. int
  14061. main ()
  14062. {
  14063. #ifndef _BIG_ENDIAN
  14064. not big endian
  14065. #endif
  14066. ;
  14067. return 0;
  14068. }
  14069. _ACEOF
  14070. if ac_fn_c_try_compile "$LINENO"; then :
  14071. ac_cv_c_bigendian=yes
  14072. else
  14073. ac_cv_c_bigendian=no
  14074. fi
  14075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14076. fi
  14077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14078. fi
  14079. if test $ac_cv_c_bigendian = unknown; then
  14080. # Compile a test program.
  14081. if test "$cross_compiling" = yes; then :
  14082. # Try to guess by grepping values from an object file.
  14083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14084. /* end confdefs.h. */
  14085. short int ascii_mm[] =
  14086. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14087. short int ascii_ii[] =
  14088. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14089. int use_ascii (int i) {
  14090. return ascii_mm[i] + ascii_ii[i];
  14091. }
  14092. short int ebcdic_ii[] =
  14093. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14094. short int ebcdic_mm[] =
  14095. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14096. int use_ebcdic (int i) {
  14097. return ebcdic_mm[i] + ebcdic_ii[i];
  14098. }
  14099. extern int foo;
  14100. int
  14101. main ()
  14102. {
  14103. return use_ascii (foo) == use_ebcdic (foo);
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_compile "$LINENO"; then :
  14109. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14110. ac_cv_c_bigendian=yes
  14111. fi
  14112. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14113. if test "$ac_cv_c_bigendian" = unknown; then
  14114. ac_cv_c_bigendian=no
  14115. else
  14116. # finding both strings is unlikely to happen, but who knows?
  14117. ac_cv_c_bigendian=unknown
  14118. fi
  14119. fi
  14120. fi
  14121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14122. else
  14123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14124. /* end confdefs.h. */
  14125. $ac_includes_default
  14126. int
  14127. main ()
  14128. {
  14129. /* Are we little or big endian? From Harbison&Steele. */
  14130. union
  14131. {
  14132. long int l;
  14133. char c[sizeof (long int)];
  14134. } u;
  14135. u.l = 1;
  14136. return u.c[sizeof (long int) - 1] == 1;
  14137. ;
  14138. return 0;
  14139. }
  14140. _ACEOF
  14141. if ac_fn_c_try_run "$LINENO"; then :
  14142. ac_cv_c_bigendian=no
  14143. else
  14144. ac_cv_c_bigendian=yes
  14145. fi
  14146. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14147. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14148. fi
  14149. fi
  14150. fi
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14152. $as_echo "$ac_cv_c_bigendian" >&6; }
  14153. case $ac_cv_c_bigendian in #(
  14154. yes)
  14155. ac_cv_c_bigendian="yes";; #(
  14156. no)
  14157. ac_cv_c_bigendian="no" ;; #(
  14158. universal)
  14159. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14160. ;; #(
  14161. *)
  14162. as_fn_error $? "unknown endianness
  14163. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14164. esac
  14165. if test "x$ac_cv_c_bigendian" = "xyes"; then
  14166. $as_echo "#define __BYTE_ORDER 4321" >>confdefs.h
  14167. else
  14168. $as_echo "#define __BYTE_ORDER 1234" >>confdefs.h
  14169. fi
  14170. fi
  14171. # Check for operating system
  14172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WIN32 build settings" >&5
  14173. $as_echo_n "checking whether to enable WIN32 build settings... " >&6; }
  14174. case ${host_os} in
  14175. *mingw32*|*cygwin*)
  14176. win32=true
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14178. $as_echo "yes" >&6; }
  14179. if test -n "$ac_tool_prefix"; then
  14180. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14181. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14183. $as_echo_n "checking for $ac_word... " >&6; }
  14184. if ${ac_cv_prog_WINDRES+:} false; then :
  14185. $as_echo_n "(cached) " >&6
  14186. else
  14187. if test -n "$WINDRES"; then
  14188. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14189. else
  14190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14191. for as_dir in $PATH
  14192. do
  14193. IFS=$as_save_IFS
  14194. test -z "$as_dir" && as_dir=.
  14195. for ac_exec_ext in '' $ac_executable_extensions; do
  14196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14197. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14199. break 2
  14200. fi
  14201. done
  14202. done
  14203. IFS=$as_save_IFS
  14204. fi
  14205. fi
  14206. WINDRES=$ac_cv_prog_WINDRES
  14207. if test -n "$WINDRES"; then
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  14209. $as_echo "$WINDRES" >&6; }
  14210. else
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14212. $as_echo "no" >&6; }
  14213. fi
  14214. fi
  14215. if test -z "$ac_cv_prog_WINDRES"; then
  14216. ac_ct_WINDRES=$WINDRES
  14217. # Extract the first word of "windres", so it can be a program name with args.
  14218. set dummy windres; ac_word=$2
  14219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14220. $as_echo_n "checking for $ac_word... " >&6; }
  14221. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  14222. $as_echo_n "(cached) " >&6
  14223. else
  14224. if test -n "$ac_ct_WINDRES"; then
  14225. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14226. else
  14227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14228. for as_dir in $PATH
  14229. do
  14230. IFS=$as_save_IFS
  14231. test -z "$as_dir" && as_dir=.
  14232. for ac_exec_ext in '' $ac_executable_extensions; do
  14233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14234. ac_cv_prog_ac_ct_WINDRES="windres"
  14235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14236. break 2
  14237. fi
  14238. done
  14239. done
  14240. IFS=$as_save_IFS
  14241. fi
  14242. fi
  14243. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14244. if test -n "$ac_ct_WINDRES"; then
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  14246. $as_echo "$ac_ct_WINDRES" >&6; }
  14247. else
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14249. $as_echo "no" >&6; }
  14250. fi
  14251. if test "x$ac_ct_WINDRES" = x; then
  14252. WINDRES="as_fn_error $? "windres not found" "$LINENO" 5"
  14253. else
  14254. case $cross_compiling:$ac_tool_warned in
  14255. yes:)
  14256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14257. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14258. ac_tool_warned=yes ;;
  14259. esac
  14260. WINDRES=$ac_ct_WINDRES
  14261. fi
  14262. else
  14263. WINDRES="$ac_cv_prog_WINDRES"
  14264. fi
  14265. ;;
  14266. *)
  14267. win32=false
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14269. $as_echo "no" >&6; }
  14270. ;;
  14271. esac
  14272. if test x$win32 = xtrue; then
  14273. WIN32_TRUE=
  14274. WIN32_FALSE='#'
  14275. else
  14276. WIN32_TRUE='#'
  14277. WIN32_FALSE=
  14278. fi
  14279. # Cython Python Bindings
  14280. # Check whether --with-cython was given.
  14281. if test "${with_cython+set}" = set; then :
  14282. withval=$with_cython; build_cython=false
  14283. else
  14284. build_cython=true
  14285. fi
  14286. if test "$build_cython" = "true"; then
  14287. if test -n "$PYTHON"; then
  14288. # If the user set $PYTHON, use it and don't search something else.
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
  14290. $as_echo_n "checking whether $PYTHON version is >= 2.3... " >&6; }
  14291. prog="import sys
  14292. # split strings by '.' and convert to numeric. Append some zeros
  14293. # because we need at least 4 digits for the hex conversion.
  14294. # map returns an iterator in Python 3.0 and a list in 2.x
  14295. minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
  14296. minverhex = 0
  14297. # xrange is not present in Python 3.0 and range returns an iterator
  14298. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  14299. sys.exit(sys.hexversion < minverhex)"
  14300. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  14301. ($PYTHON -c "$prog") >&5 2>&5
  14302. ac_status=$?
  14303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14304. (exit $ac_status); }; then :
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14306. $as_echo "yes" >&6; }
  14307. else
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14309. $as_echo "no" >&6; }
  14310. as_fn_error $? "Python interpreter is too old" "$LINENO" 5
  14311. fi
  14312. am_display_PYTHON=$PYTHON
  14313. else
  14314. # Otherwise, try each interpreter until we find one that satisfies
  14315. # VERSION.
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
  14317. $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
  14318. if ${am_cv_pathless_PYTHON+:} false; then :
  14319. $as_echo_n "(cached) " >&6
  14320. else
  14321. for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  14322. test "$am_cv_pathless_PYTHON" = none && break
  14323. prog="import sys
  14324. # split strings by '.' and convert to numeric. Append some zeros
  14325. # because we need at least 4 digits for the hex conversion.
  14326. # map returns an iterator in Python 3.0 and a list in 2.x
  14327. minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
  14328. minverhex = 0
  14329. # xrange is not present in Python 3.0 and range returns an iterator
  14330. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  14331. sys.exit(sys.hexversion < minverhex)"
  14332. if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  14333. ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  14334. ac_status=$?
  14335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14336. (exit $ac_status); }; then :
  14337. break
  14338. fi
  14339. done
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
  14342. $as_echo "$am_cv_pathless_PYTHON" >&6; }
  14343. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  14344. if test "$am_cv_pathless_PYTHON" = none; then
  14345. PYTHON=:
  14346. else
  14347. # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  14348. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14350. $as_echo_n "checking for $ac_word... " >&6; }
  14351. if ${ac_cv_path_PYTHON+:} false; then :
  14352. $as_echo_n "(cached) " >&6
  14353. else
  14354. case $PYTHON in
  14355. [\\/]* | ?:[\\/]*)
  14356. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  14357. ;;
  14358. *)
  14359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14360. for as_dir in $PATH
  14361. do
  14362. IFS=$as_save_IFS
  14363. test -z "$as_dir" && as_dir=.
  14364. for ac_exec_ext in '' $ac_executable_extensions; do
  14365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14366. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  14367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14368. break 2
  14369. fi
  14370. done
  14371. done
  14372. IFS=$as_save_IFS
  14373. ;;
  14374. esac
  14375. fi
  14376. PYTHON=$ac_cv_path_PYTHON
  14377. if test -n "$PYTHON"; then
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  14379. $as_echo "$PYTHON" >&6; }
  14380. else
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14382. $as_echo "no" >&6; }
  14383. fi
  14384. fi
  14385. am_display_PYTHON=$am_cv_pathless_PYTHON
  14386. fi
  14387. if test "$PYTHON" = :; then
  14388. as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
  14389. else
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
  14391. $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
  14392. if ${am_cv_python_version+:} false; then :
  14393. $as_echo_n "(cached) " >&6
  14394. else
  14395. am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
  14396. fi
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
  14398. $as_echo "$am_cv_python_version" >&6; }
  14399. PYTHON_VERSION=$am_cv_python_version
  14400. PYTHON_PREFIX='${prefix}'
  14401. PYTHON_EXEC_PREFIX='${exec_prefix}'
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
  14403. $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
  14404. if ${am_cv_python_platform+:} false; then :
  14405. $as_echo_n "(cached) " >&6
  14406. else
  14407. am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
  14408. fi
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
  14410. $as_echo "$am_cv_python_platform" >&6; }
  14411. PYTHON_PLATFORM=$am_cv_python_platform
  14412. # Just factor out some code duplication.
  14413. am_python_setup_sysconfig="\
  14414. import sys
  14415. # Prefer sysconfig over distutils.sysconfig, for better compatibility
  14416. # with python 3.x. See automake bug#10227.
  14417. try:
  14418. import sysconfig
  14419. except ImportError:
  14420. can_use_sysconfig = 0
  14421. else:
  14422. can_use_sysconfig = 1
  14423. # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
  14424. # <https://github.com/pypa/virtualenv/issues/118>
  14425. try:
  14426. from platform import python_implementation
  14427. if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
  14428. can_use_sysconfig = 0
  14429. except ImportError:
  14430. pass"
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
  14432. $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
  14433. if ${am_cv_python_pythondir+:} false; then :
  14434. $as_echo_n "(cached) " >&6
  14435. else
  14436. if test "x$prefix" = xNONE
  14437. then
  14438. am_py_prefix=$ac_default_prefix
  14439. else
  14440. am_py_prefix=$prefix
  14441. fi
  14442. am_cv_python_pythondir=`$PYTHON -c "
  14443. $am_python_setup_sysconfig
  14444. if can_use_sysconfig:
  14445. sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
  14446. else:
  14447. from distutils import sysconfig
  14448. sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
  14449. sys.stdout.write(sitedir)"`
  14450. case $am_cv_python_pythondir in
  14451. $am_py_prefix*)
  14452. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  14453. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  14454. ;;
  14455. *)
  14456. case $am_py_prefix in
  14457. /usr|/System*) ;;
  14458. *)
  14459. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  14460. ;;
  14461. esac
  14462. ;;
  14463. esac
  14464. fi
  14465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
  14466. $as_echo "$am_cv_python_pythondir" >&6; }
  14467. pythondir=$am_cv_python_pythondir
  14468. pkgpythondir=\${pythondir}/$PACKAGE
  14469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
  14470. $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
  14471. if ${am_cv_python_pyexecdir+:} false; then :
  14472. $as_echo_n "(cached) " >&6
  14473. else
  14474. if test "x$exec_prefix" = xNONE
  14475. then
  14476. am_py_exec_prefix=$am_py_prefix
  14477. else
  14478. am_py_exec_prefix=$exec_prefix
  14479. fi
  14480. am_cv_python_pyexecdir=`$PYTHON -c "
  14481. $am_python_setup_sysconfig
  14482. if can_use_sysconfig:
  14483. sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
  14484. else:
  14485. from distutils import sysconfig
  14486. sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
  14487. sys.stdout.write(sitedir)"`
  14488. case $am_cv_python_pyexecdir in
  14489. $am_py_exec_prefix*)
  14490. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  14491. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  14492. ;;
  14493. *)
  14494. case $am_py_exec_prefix in
  14495. /usr|/System*) ;;
  14496. *)
  14497. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  14498. ;;
  14499. esac
  14500. ;;
  14501. esac
  14502. fi
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
  14504. $as_echo "$am_cv_python_pyexecdir" >&6; }
  14505. pyexecdir=$am_cv_python_pyexecdir
  14506. pkgpyexecdir=\${pyexecdir}/$PACKAGE
  14507. fi
  14508. # Extract the first word of "cython", so it can be a program name with args.
  14509. set dummy cython; ac_word=$2
  14510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14511. $as_echo_n "checking for $ac_word... " >&6; }
  14512. if ${ac_cv_path_CYTHON+:} false; then :
  14513. $as_echo_n "(cached) " >&6
  14514. else
  14515. case $CYTHON in
  14516. [\\/]* | ?:[\\/]*)
  14517. ac_cv_path_CYTHON="$CYTHON" # Let the user override the test with a path.
  14518. ;;
  14519. *)
  14520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14521. for as_dir in $PATH
  14522. do
  14523. IFS=$as_save_IFS
  14524. test -z "$as_dir" && as_dir=.
  14525. for ac_exec_ext in '' $ac_executable_extensions; do
  14526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14527. ac_cv_path_CYTHON="$as_dir/$ac_word$ac_exec_ext"
  14528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14529. break 2
  14530. fi
  14531. done
  14532. done
  14533. IFS=$as_save_IFS
  14534. ;;
  14535. esac
  14536. fi
  14537. CYTHON=$ac_cv_path_CYTHON
  14538. if test -n "$CYTHON"; then
  14539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON" >&5
  14540. $as_echo "$CYTHON" >&6; }
  14541. else
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14543. $as_echo "no" >&6; }
  14544. fi
  14545. if test -z "$CYTHON" ; then
  14546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'cython' program. You should look at http://www.cython.org or install your distribution specific cython package." >&5
  14547. $as_echo "$as_me: WARNING: cannot find 'cython' program. You should look at http://www.cython.org or install your distribution specific cython package." >&2;}
  14548. CYTHON=false
  14549. elif test -n "0.17.0" ; then
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cython version" >&5
  14551. $as_echo_n "checking for Cython version... " >&6; }
  14552. cython_version=`$CYTHON --version 2>&1 | sed 's/Cython version \(.*\)$/\1/g'`
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cython_version" >&5
  14554. $as_echo "$cython_version" >&6; }
  14555. # Setup extra version string for parsing
  14556. cython_version_stripped=`echo $cython_version | sed 's/\([0-9]\+\)\.\([0-9]\+\)[^\.]*\(\.\([0-9]\+\)\)\?.*/0\1.0\2.0\4/g'`
  14557. if test -n "$cython_version" ; then
  14558. # Calculate the required version number components
  14559. required=0.17.0
  14560. required_major=`echo $required | sed 's/[^0-9].*//'`
  14561. if test -z "$required_major" ; then
  14562. required_major=0
  14563. fi
  14564. required=`echo $required | sed 's/[0-9]*[^0-9]//'`
  14565. required_minor=`echo $required | sed 's/[^0-9].*//'`
  14566. if test -z "$required_minor" ; then
  14567. required_minor=0
  14568. fi
  14569. required=`echo $required | sed 's/[0-9]*[^0-9]//'`
  14570. required_patch=`echo $required | sed 's/[^0-9].*//'`
  14571. if test -z "$required_patch" ; then
  14572. required_patch=0
  14573. fi
  14574. # Calculate the available version number components
  14575. available=$cython_version_stripped
  14576. available_major=`echo $available | sed 's/[^0-9].*//'`
  14577. if test -z "$available_major" ; then
  14578. available_major=0
  14579. fi
  14580. available=`echo $available | sed 's/[0-9]*[^0-9]//'`
  14581. available_minor=`echo $available | sed 's/[^0-9].*//'`
  14582. if test -z "$available_minor" ; then
  14583. available_minor=0
  14584. fi
  14585. available=`echo $available | sed 's/[0-9]*[^0-9]//'`
  14586. available_patch=`echo $available | sed 's/[^0-9].*//'`
  14587. if test -z "$available_patch" ; then
  14588. available_patch=0
  14589. fi
  14590. if test $available_major -gt $required_major || \
  14591. ( test $available_major -eq $required_major && \
  14592. test $available_minor -gt $required_minor ) || \
  14593. ( test $available_major -eq $required_major && \
  14594. test $available_minor -eq $required_minor && \
  14595. test $available_patch -ge $required_patch ) ; then
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: Cython executable is '$CYTHON'" >&5
  14597. $as_echo "$as_me: Cython executable is '$CYTHON'" >&6;}
  14598. else
  14599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cython version >= 0.17.0 is required. You have $cython_version. You should look at http://www.cython.org" >&5
  14600. $as_echo "$as_me: WARNING: Cython version >= 0.17.0 is required. You have $cython_version. You should look at http://www.cython.org" >&2;}
  14601. CYTHON='echo "Error: Cython version >= 0.17.0 is required. You have '"$cython_version"'. You should look at http://www.cython.org" ; false'
  14602. fi
  14603. else
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine Cython version" >&5
  14605. $as_echo "$as_me: WARNING: cannot determine Cython version" >&2;}
  14606. CYTHON=false
  14607. fi
  14608. fi
  14609. #
  14610. # Allow the use of a (user set) custom python version
  14611. #
  14612. # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
  14613. set dummy python$PYTHON_VERSION; ac_word=$2
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14615. $as_echo_n "checking for $ac_word... " >&6; }
  14616. if ${ac_cv_path_PYTHON+:} false; then :
  14617. $as_echo_n "(cached) " >&6
  14618. else
  14619. case $PYTHON in
  14620. [\\/]* | ?:[\\/]*)
  14621. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  14622. ;;
  14623. *)
  14624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14625. for as_dir in $PATH
  14626. do
  14627. IFS=$as_save_IFS
  14628. test -z "$as_dir" && as_dir=.
  14629. for ac_exec_ext in '' $ac_executable_extensions; do
  14630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14631. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  14632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14633. break 2
  14634. fi
  14635. done
  14636. done
  14637. IFS=$as_save_IFS
  14638. ;;
  14639. esac
  14640. fi
  14641. PYTHON=$ac_cv_path_PYTHON
  14642. if test -n "$PYTHON"; then
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  14644. $as_echo "$PYTHON" >&6; }
  14645. else
  14646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14647. $as_echo "no" >&6; }
  14648. fi
  14649. if test -z "$PYTHON"; then
  14650. as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
  14651. PYTHON_VERSION=""
  14652. fi
  14653. #
  14654. # Check for a version of Python >= 2.1.0
  14655. #
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
  14657. $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
  14658. ac_supports_python_ver=`$PYTHON -c "import sys; \
  14659. ver = sys.version.split()[0]; \
  14660. print(ver >= '2.1.0')"`
  14661. if test "$ac_supports_python_ver" != "True"; then
  14662. if test -z "$PYTHON_NOVERSIONCHECK"; then
  14663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14664. $as_echo "no" >&6; }
  14665. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14666. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14667. as_fn_error $? "
  14668. This version of the AC_PYTHON_DEVEL macro
  14669. doesn't work properly with versions of Python before
  14670. 2.1.0. You may need to re-run configure, setting the
  14671. variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
  14672. PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
  14673. Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
  14674. to something else than an empty string.
  14675. See \`config.log' for more details" "$LINENO" 5; }
  14676. else
  14677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
  14678. $as_echo "skip at user request" >&6; }
  14679. fi
  14680. else
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14682. $as_echo "yes" >&6; }
  14683. fi
  14684. #
  14685. # if the macro parameter ``version'' is set, honour it
  14686. #
  14687. if test -n ""; then
  14688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
  14689. $as_echo_n "checking for a version of Python ... " >&6; }
  14690. ac_supports_python_ver=`$PYTHON -c "import sys; \
  14691. ver = sys.version.split()[0]; \
  14692. print(ver >= '2.1.0')"`
  14693. if test "$ac_supports_python_ver" = "True"; then
  14694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14695. $as_echo "yes" >&6; }
  14696. else
  14697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14698. $as_echo "no" >&6; }
  14699. as_fn_error $? "this package requires Python .
  14700. If you have it installed, but it isn't the default Python
  14701. interpreter in your system path, please pass the PYTHON_VERSION
  14702. variable to configure. See \`\`configure --help'' for reference.
  14703. " "$LINENO" 5
  14704. PYTHON_VERSION=""
  14705. fi
  14706. fi
  14707. #
  14708. # Check if you have distutils, else fail
  14709. #
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
  14711. $as_echo_n "checking for the distutils Python package... " >&6; }
  14712. ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
  14713. if test -z "$ac_distutils_result"; then
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14715. $as_echo "yes" >&6; }
  14716. else
  14717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14718. $as_echo "no" >&6; }
  14719. as_fn_error $? "cannot import Python module \"distutils\".
  14720. Please check your Python installation. The error was:
  14721. $ac_distutils_result" "$LINENO" 5
  14722. PYTHON_VERSION=""
  14723. fi
  14724. #
  14725. # Check for Python include path
  14726. #
  14727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
  14728. $as_echo_n "checking for Python include path... " >&6; }
  14729. if test -z "$PYTHON_CPPFLAGS"; then
  14730. python_path=`$PYTHON -c "import distutils.sysconfig; \
  14731. print(distutils.sysconfig.get_python_inc());"`
  14732. if test -n "${python_path}"; then
  14733. python_path="-I$python_path"
  14734. fi
  14735. PYTHON_CPPFLAGS=$python_path
  14736. fi
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
  14738. $as_echo "$PYTHON_CPPFLAGS" >&6; }
  14739. #
  14740. # Check for Python library path
  14741. #
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
  14743. $as_echo_n "checking for Python library path... " >&6; }
  14744. if test -z "$PYTHON_LDFLAGS"; then
  14745. # (makes two attempts to ensure we've got a version number
  14746. # from the interpreter)
  14747. py_version=`$PYTHON -c "from distutils.sysconfig import *; \
  14748. print(' '.join(get_config_vars('VERSION')))"`
  14749. if test "$py_version" = "None"; then
  14750. if test -n "$PYTHON_VERSION"; then
  14751. py_version=$PYTHON_VERSION
  14752. else
  14753. py_version=`$PYTHON -c "import sys; \
  14754. print(sys.version[:3]")`
  14755. fi
  14756. fi
  14757. PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
  14758. print('-L' + get_python_lib(0,1) + \
  14759. ' -lpython');"`$py_version
  14760. fi
  14761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
  14762. $as_echo "$PYTHON_LDFLAGS" >&6; }
  14763. #
  14764. # Check for site packages
  14765. #
  14766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
  14767. $as_echo_n "checking for Python site-packages path... " >&6; }
  14768. if test -z "$PYTHON_SITE_PKG"; then
  14769. PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
  14770. print(distutils.sysconfig.get_python_lib(0,0))"`
  14771. fi
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
  14773. $as_echo "$PYTHON_SITE_PKG" >&6; }
  14774. #
  14775. # libraries which must be linked in when embedding
  14776. #
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
  14778. $as_echo_n "checking python extra libraries... " >&6; }
  14779. if test -z "$PYTHON_EXTRA_LIBS"; then
  14780. PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
  14781. conf = distutils.sysconfig.get_config_var; \
  14782. print(conf('LOCALMODLIBS'), conf('LIBS'))"`
  14783. fi
  14784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
  14785. $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
  14786. #
  14787. # linking flags needed when embedding
  14788. #
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
  14790. $as_echo_n "checking python extra linking flags... " >&6; }
  14791. if test -z "$PYTHON_EXTRA_LDFLAGS"; then
  14792. PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
  14793. conf = distutils.sysconfig.get_config_var; \
  14794. print(conf('LINKFORSHARED'))"`
  14795. fi
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
  14797. $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
  14798. #
  14799. # final check to see if everything compiles alright
  14800. #
  14801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
  14802. $as_echo_n "checking consistency of all components of python development environment... " >&6; }
  14803. ac_ext=c
  14804. ac_cpp='$CPP $CPPFLAGS'
  14805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14808. # save current global flags
  14809. LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
  14810. CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
  14811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14812. /* end confdefs.h. */
  14813. #include <Python.h>
  14814. int
  14815. main ()
  14816. {
  14817. Py_Initialize();
  14818. ;
  14819. return 0;
  14820. }
  14821. _ACEOF
  14822. if ac_fn_c_try_link "$LINENO"; then :
  14823. pythonexists=yes
  14824. else
  14825. pythonexists=no
  14826. fi
  14827. rm -f core conftest.err conftest.$ac_objext \
  14828. conftest$ac_exeext conftest.$ac_ext
  14829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
  14830. $as_echo "$pythonexists" >&6; }
  14831. if test ! "$pythonexists" = "yes"; then
  14832. as_fn_error $? "
  14833. Could not link test program to Python. Maybe the main Python library has been
  14834. installed in some non-standard library path. If so, pass it to configure,
  14835. via the LDFLAGS environment variable.
  14836. Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
  14837. ============================================================================
  14838. ERROR!
  14839. You probably have to install the development version of the Python package
  14840. for your distribution. The exact name of this package varies among them.
  14841. ============================================================================
  14842. " "$LINENO" 5
  14843. PYTHON_VERSION=""
  14844. fi
  14845. ac_ext=c
  14846. ac_cpp='$CPP $CPPFLAGS'
  14847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14850. # turn back to default flags
  14851. CPPFLAGS="$ac_save_CPPFLAGS"
  14852. LIBS="$ac_save_LIBS"
  14853. #
  14854. # all done!
  14855. #
  14856. test "x" != "xno" || cython_shadow=" -noproxy"
  14857. CYTHON_PYTHON_OPT=-python$cython_shadow
  14858. CYTHON_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
  14859. else
  14860. CYTHON=false
  14861. fi
  14862. if test "x$CYTHON" != "xfalse"; then
  14863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplist Cython bindings" >&5
  14864. $as_echo_n "checking for libplist Cython bindings... " >&6; }
  14865. CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist)/plist/cython
  14866. if test ! -d "$CYTHON_PLIST_INCLUDE_DIR"; then
  14867. CYTHON=false
  14868. CYTHON_SUB=
  14869. cython_python_bindings=no
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14871. $as_echo "no" >&6; }
  14872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find libplist Cython bindings. You should install your distribution specific libplist Cython bindings package." >&5
  14873. $as_echo "$as_me: WARNING: cannot find libplist Cython bindings. You should install your distribution specific libplist Cython bindings package." >&2;}
  14874. else
  14875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYTHON_PLIST_INCLUDE_DIR" >&5
  14876. $as_echo "$CYTHON_PLIST_INCLUDE_DIR" >&6; }
  14877. CYTHON_SUB=cython
  14878. cython_python_bindings=yes
  14879. fi
  14880. else
  14881. CYTHON_SUB=
  14882. cython_python_bindings=no
  14883. fi
  14884. if test "x$CYTHON_SUB" = "xcython"; then
  14885. HAVE_CYTHON_TRUE=
  14886. HAVE_CYTHON_FALSE='#'
  14887. else
  14888. HAVE_CYTHON_TRUE='#'
  14889. HAVE_CYTHON_FALSE=
  14890. fi
  14891. # Check whether --enable-openssl was given.
  14892. if test "${enable_openssl+set}" = set; then :
  14893. enableval=$enable_openssl; use_openssl=no
  14894. else
  14895. use_openssl=yes
  14896. fi
  14897. pkg_req_openssl="openssl >= 0.9.8"
  14898. pkg_failed=no
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
  14900. $as_echo_n "checking for openssl... " >&6; }
  14901. if test -n "$openssl_CFLAGS"; then
  14902. pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
  14903. elif test -n "$PKG_CONFIG"; then
  14904. if test -n "$PKG_CONFIG" && \
  14905. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_openssl\""; } >&5
  14906. ($PKG_CONFIG --exists --print-errors "$pkg_req_openssl") 2>&5
  14907. ac_status=$?
  14908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14909. test $ac_status = 0; }; then
  14910. pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "$pkg_req_openssl" 2>/dev/null`
  14911. test "x$?" != "x0" && pkg_failed=yes
  14912. else
  14913. pkg_failed=yes
  14914. fi
  14915. else
  14916. pkg_failed=untried
  14917. fi
  14918. if test -n "$openssl_LIBS"; then
  14919. pkg_cv_openssl_LIBS="$openssl_LIBS"
  14920. elif test -n "$PKG_CONFIG"; then
  14921. if test -n "$PKG_CONFIG" && \
  14922. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_openssl\""; } >&5
  14923. ($PKG_CONFIG --exists --print-errors "$pkg_req_openssl") 2>&5
  14924. ac_status=$?
  14925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14926. test $ac_status = 0; }; then
  14927. pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "$pkg_req_openssl" 2>/dev/null`
  14928. test "x$?" != "x0" && pkg_failed=yes
  14929. else
  14930. pkg_failed=yes
  14931. fi
  14932. else
  14933. pkg_failed=untried
  14934. fi
  14935. if test $pkg_failed = yes; then
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14937. $as_echo "no" >&6; }
  14938. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14939. _pkg_short_errors_supported=yes
  14940. else
  14941. _pkg_short_errors_supported=no
  14942. fi
  14943. if test $_pkg_short_errors_supported = yes; then
  14944. openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_req_openssl" 2>&1`
  14945. else
  14946. openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_req_openssl" 2>&1`
  14947. fi
  14948. # Put the nasty error message in config.log where it belongs
  14949. echo "$openssl_PKG_ERRORS" >&5
  14950. have_openssl=no
  14951. elif test $pkg_failed = untried; then
  14952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14953. $as_echo "no" >&6; }
  14954. have_openssl=no
  14955. else
  14956. openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
  14957. openssl_LIBS=$pkg_cv_openssl_LIBS
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14959. $as_echo "yes" >&6; }
  14960. have_openssl=yes
  14961. fi
  14962. if test "x$have_openssl" = "xyes"; then
  14963. if test "x$use_openssl" != "xyes"; then
  14964. enable_openssl=no
  14965. echo "*** Note: OpenSSL support explicitly disabled ***"
  14966. else
  14967. enable_openssl=yes
  14968. fi
  14969. else
  14970. if test "x$use_openssl" == "xyes" -a "x$have_openssl" != "xyes"; then
  14971. as_fn_error $? "OpenSSL support explicitly requested but OpenSSL could not be found" "$LINENO" 5
  14972. fi
  14973. fi
  14974. if test "x$enable_openssl" = "xyes"; then
  14975. $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
  14976. ssl_provider="OpenSSL";
  14977. ssl_requires="$pkg_req_openssl"
  14978. else
  14979. pkg_req_gnutls="gnutls >= 2.2.0"
  14980. pkg_req_libtasn1="libtasn1 >= 1.1"
  14981. pkg_failed=no
  14982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls" >&5
  14983. $as_echo_n "checking for libgnutls... " >&6; }
  14984. if test -n "$libgnutls_CFLAGS"; then
  14985. pkg_cv_libgnutls_CFLAGS="$libgnutls_CFLAGS"
  14986. elif test -n "$PKG_CONFIG"; then
  14987. if test -n "$PKG_CONFIG" && \
  14988. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_gnutls\""; } >&5
  14989. ($PKG_CONFIG --exists --print-errors "$pkg_req_gnutls") 2>&5
  14990. ac_status=$?
  14991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14992. test $ac_status = 0; }; then
  14993. pkg_cv_libgnutls_CFLAGS=`$PKG_CONFIG --cflags "$pkg_req_gnutls" 2>/dev/null`
  14994. test "x$?" != "x0" && pkg_failed=yes
  14995. else
  14996. pkg_failed=yes
  14997. fi
  14998. else
  14999. pkg_failed=untried
  15000. fi
  15001. if test -n "$libgnutls_LIBS"; then
  15002. pkg_cv_libgnutls_LIBS="$libgnutls_LIBS"
  15003. elif test -n "$PKG_CONFIG"; then
  15004. if test -n "$PKG_CONFIG" && \
  15005. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_gnutls\""; } >&5
  15006. ($PKG_CONFIG --exists --print-errors "$pkg_req_gnutls") 2>&5
  15007. ac_status=$?
  15008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15009. test $ac_status = 0; }; then
  15010. pkg_cv_libgnutls_LIBS=`$PKG_CONFIG --libs "$pkg_req_gnutls" 2>/dev/null`
  15011. test "x$?" != "x0" && pkg_failed=yes
  15012. else
  15013. pkg_failed=yes
  15014. fi
  15015. else
  15016. pkg_failed=untried
  15017. fi
  15018. if test $pkg_failed = yes; then
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15020. $as_echo "no" >&6; }
  15021. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15022. _pkg_short_errors_supported=yes
  15023. else
  15024. _pkg_short_errors_supported=no
  15025. fi
  15026. if test $_pkg_short_errors_supported = yes; then
  15027. libgnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_req_gnutls" 2>&1`
  15028. else
  15029. libgnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_req_gnutls" 2>&1`
  15030. fi
  15031. # Put the nasty error message in config.log where it belongs
  15032. echo "$libgnutls_PKG_ERRORS" >&5
  15033. as_fn_error $? "Package requirements ($pkg_req_gnutls) were not met:
  15034. $libgnutls_PKG_ERRORS
  15035. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15036. installed software in a non-standard prefix.
  15037. Alternatively, you may set the environment variables libgnutls_CFLAGS
  15038. and libgnutls_LIBS to avoid the need to call pkg-config.
  15039. See the pkg-config man page for more details." "$LINENO" 5
  15040. elif test $pkg_failed = untried; then
  15041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15042. $as_echo "no" >&6; }
  15043. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15045. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15046. is in your PATH or set the PKG_CONFIG environment variable to the full
  15047. path to pkg-config.
  15048. Alternatively, you may set the environment variables libgnutls_CFLAGS
  15049. and libgnutls_LIBS to avoid the need to call pkg-config.
  15050. See the pkg-config man page for more details.
  15051. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15052. See \`config.log' for more details" "$LINENO" 5; }
  15053. else
  15054. libgnutls_CFLAGS=$pkg_cv_libgnutls_CFLAGS
  15055. libgnutls_LIBS=$pkg_cv_libgnutls_LIBS
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15057. $as_echo "yes" >&6; }
  15058. fi
  15059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
  15060. $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
  15061. if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
  15062. $as_echo_n "(cached) " >&6
  15063. else
  15064. ac_check_lib_save_LIBS=$LIBS
  15065. LIBS="-lgcrypt $LIBS"
  15066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15067. /* end confdefs.h. */
  15068. /* Override any GCC internal prototype to avoid an error.
  15069. Use char because int might match the return type of a GCC
  15070. builtin and then its argument prototype would still apply. */
  15071. #ifdef __cplusplus
  15072. extern "C"
  15073. #endif
  15074. char gcry_control ();
  15075. int
  15076. main ()
  15077. {
  15078. return gcry_control ();
  15079. ;
  15080. return 0;
  15081. }
  15082. _ACEOF
  15083. if ac_fn_c_try_link "$LINENO"; then :
  15084. ac_cv_lib_gcrypt_gcry_control=yes
  15085. else
  15086. ac_cv_lib_gcrypt_gcry_control=no
  15087. fi
  15088. rm -f core conftest.err conftest.$ac_objext \
  15089. conftest$ac_exeext conftest.$ac_ext
  15090. LIBS=$ac_check_lib_save_LIBS
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
  15093. $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
  15094. if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
  15095. libgcrypt_LIBS=-lgcrypt
  15096. else
  15097. as_fn_error $? "libgcrypt is required to build libimobiledevice with GnuTLS" "$LINENO" 5
  15098. fi
  15099. pkg_failed=no
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtasn1" >&5
  15101. $as_echo_n "checking for libtasn1... " >&6; }
  15102. if test -n "$libtasn1_CFLAGS"; then
  15103. pkg_cv_libtasn1_CFLAGS="$libtasn1_CFLAGS"
  15104. elif test -n "$PKG_CONFIG"; then
  15105. if test -n "$PKG_CONFIG" && \
  15106. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_libtasn1\""; } >&5
  15107. ($PKG_CONFIG --exists --print-errors "$pkg_req_libtasn1") 2>&5
  15108. ac_status=$?
  15109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15110. test $ac_status = 0; }; then
  15111. pkg_cv_libtasn1_CFLAGS=`$PKG_CONFIG --cflags "$pkg_req_libtasn1" 2>/dev/null`
  15112. test "x$?" != "x0" && pkg_failed=yes
  15113. else
  15114. pkg_failed=yes
  15115. fi
  15116. else
  15117. pkg_failed=untried
  15118. fi
  15119. if test -n "$libtasn1_LIBS"; then
  15120. pkg_cv_libtasn1_LIBS="$libtasn1_LIBS"
  15121. elif test -n "$PKG_CONFIG"; then
  15122. if test -n "$PKG_CONFIG" && \
  15123. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_req_libtasn1\""; } >&5
  15124. ($PKG_CONFIG --exists --print-errors "$pkg_req_libtasn1") 2>&5
  15125. ac_status=$?
  15126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15127. test $ac_status = 0; }; then
  15128. pkg_cv_libtasn1_LIBS=`$PKG_CONFIG --libs "$pkg_req_libtasn1" 2>/dev/null`
  15129. test "x$?" != "x0" && pkg_failed=yes
  15130. else
  15131. pkg_failed=yes
  15132. fi
  15133. else
  15134. pkg_failed=untried
  15135. fi
  15136. if test $pkg_failed = yes; then
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15138. $as_echo "no" >&6; }
  15139. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15140. _pkg_short_errors_supported=yes
  15141. else
  15142. _pkg_short_errors_supported=no
  15143. fi
  15144. if test $_pkg_short_errors_supported = yes; then
  15145. libtasn1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$pkg_req_libtasn1" 2>&1`
  15146. else
  15147. libtasn1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$pkg_req_libtasn1" 2>&1`
  15148. fi
  15149. # Put the nasty error message in config.log where it belongs
  15150. echo "$libtasn1_PKG_ERRORS" >&5
  15151. as_fn_error $? "Package requirements ($pkg_req_libtasn1) were not met:
  15152. $libtasn1_PKG_ERRORS
  15153. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15154. installed software in a non-standard prefix.
  15155. Alternatively, you may set the environment variables libtasn1_CFLAGS
  15156. and libtasn1_LIBS to avoid the need to call pkg-config.
  15157. See the pkg-config man page for more details." "$LINENO" 5
  15158. elif test $pkg_failed = untried; then
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15160. $as_echo "no" >&6; }
  15161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15163. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15164. is in your PATH or set the PKG_CONFIG environment variable to the full
  15165. path to pkg-config.
  15166. Alternatively, you may set the environment variables libtasn1_CFLAGS
  15167. and libtasn1_LIBS to avoid the need to call pkg-config.
  15168. See the pkg-config man page for more details.
  15169. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15170. See \`config.log' for more details" "$LINENO" 5; }
  15171. else
  15172. libtasn1_CFLAGS=$pkg_cv_libtasn1_CFLAGS
  15173. libtasn1_LIBS=$pkg_cv_libtasn1_LIBS
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15175. $as_echo "yes" >&6; }
  15176. fi
  15177. ssl_provider="GnuTLS"
  15178. ssl_requires="$pkg_req_gnutls $pkg_req_libtasn1"
  15179. fi
  15180. # Check whether --enable-debug-code was given.
  15181. if test "${enable_debug_code+set}" = set; then :
  15182. enableval=$enable_debug_code; no_debug_code=false
  15183. else
  15184. no_debug_code=true
  15185. fi
  15186. if test "$no_debug_code" = true; then
  15187. building_debug_code=no
  15188. $as_echo "#define STRIP_DEBUG_CODE 1" >>confdefs.h
  15189. else
  15190. building_debug_code=yes
  15191. fi
  15192. list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden"
  15193. flags_supported=""
  15194. flags_unsupported=""
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
  15196. $as_echo_n "checking for supported compiler flags... " >&6; }
  15197. for each in $list
  15198. do
  15199. save_CFLAGS="$CFLAGS"
  15200. CFLAGS="$CFLAGS $each"
  15201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15202. /* end confdefs.h. */
  15203. int
  15204. main ()
  15205. {
  15206. ;
  15207. return 0;
  15208. }
  15209. _ACEOF
  15210. if ac_fn_c_try_compile "$LINENO"; then :
  15211. flag_ok=yes
  15212. else
  15213. flag_ok=no
  15214. fi
  15215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15216. CFLAGS="$save_CFLAGS"
  15217. if test "X$flag_ok" = Xyes ; then
  15218. flags_supported="$flags_supported $each"
  15219. else
  15220. flags_unsupported="$flags_unsupported $each"
  15221. fi
  15222. done
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
  15224. $as_echo "$flags_supported" >&6; }
  15225. if test "X$flags_unsupported" != X ; then
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
  15227. $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
  15228. fi
  15229. GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
  15230. case "$GLOBAL_CFLAGS" in
  15231. *-fvisibility=hidden*)
  15232. $as_echo "#define HAVE_FVISIBILITY 1" >>confdefs.h
  15233. esac
  15234. # check for large file support
  15235. # Check whether --enable-largefile was given.
  15236. if test "${enable_largefile+set}" = set; then :
  15237. enableval=$enable_largefile;
  15238. fi
  15239. if test "$enable_largefile" != no; then
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15241. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15242. if ${ac_cv_sys_largefile_CC+:} false; then :
  15243. $as_echo_n "(cached) " >&6
  15244. else
  15245. ac_cv_sys_largefile_CC=no
  15246. if test "$GCC" != yes; then
  15247. ac_save_CC=$CC
  15248. while :; do
  15249. # IRIX 6.2 and later do not support large files by default,
  15250. # so use the C compiler's -n32 option if that helps.
  15251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15252. /* end confdefs.h. */
  15253. #include <sys/types.h>
  15254. /* Check that off_t can represent 2**63 - 1 correctly.
  15255. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15256. since some C++ compilers masquerading as C compilers
  15257. incorrectly reject 9223372036854775807. */
  15258. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15259. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15260. && LARGE_OFF_T % 2147483647 == 1)
  15261. ? 1 : -1];
  15262. int
  15263. main ()
  15264. {
  15265. ;
  15266. return 0;
  15267. }
  15268. _ACEOF
  15269. if ac_fn_c_try_compile "$LINENO"; then :
  15270. break
  15271. fi
  15272. rm -f core conftest.err conftest.$ac_objext
  15273. CC="$CC -n32"
  15274. if ac_fn_c_try_compile "$LINENO"; then :
  15275. ac_cv_sys_largefile_CC=' -n32'; break
  15276. fi
  15277. rm -f core conftest.err conftest.$ac_objext
  15278. break
  15279. done
  15280. CC=$ac_save_CC
  15281. rm -f conftest.$ac_ext
  15282. fi
  15283. fi
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15285. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15286. if test "$ac_cv_sys_largefile_CC" != no; then
  15287. CC=$CC$ac_cv_sys_largefile_CC
  15288. fi
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15290. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15291. if ${ac_cv_sys_file_offset_bits+:} false; then :
  15292. $as_echo_n "(cached) " >&6
  15293. else
  15294. while :; do
  15295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15296. /* end confdefs.h. */
  15297. #include <sys/types.h>
  15298. /* Check that off_t can represent 2**63 - 1 correctly.
  15299. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15300. since some C++ compilers masquerading as C compilers
  15301. incorrectly reject 9223372036854775807. */
  15302. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15303. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15304. && LARGE_OFF_T % 2147483647 == 1)
  15305. ? 1 : -1];
  15306. int
  15307. main ()
  15308. {
  15309. ;
  15310. return 0;
  15311. }
  15312. _ACEOF
  15313. if ac_fn_c_try_compile "$LINENO"; then :
  15314. ac_cv_sys_file_offset_bits=no; break
  15315. fi
  15316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15318. /* end confdefs.h. */
  15319. #define _FILE_OFFSET_BITS 64
  15320. #include <sys/types.h>
  15321. /* Check that off_t can represent 2**63 - 1 correctly.
  15322. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15323. since some C++ compilers masquerading as C compilers
  15324. incorrectly reject 9223372036854775807. */
  15325. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15326. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15327. && LARGE_OFF_T % 2147483647 == 1)
  15328. ? 1 : -1];
  15329. int
  15330. main ()
  15331. {
  15332. ;
  15333. return 0;
  15334. }
  15335. _ACEOF
  15336. if ac_fn_c_try_compile "$LINENO"; then :
  15337. ac_cv_sys_file_offset_bits=64; break
  15338. fi
  15339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15340. ac_cv_sys_file_offset_bits=unknown
  15341. break
  15342. done
  15343. fi
  15344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15345. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15346. case $ac_cv_sys_file_offset_bits in #(
  15347. no | unknown) ;;
  15348. *)
  15349. cat >>confdefs.h <<_ACEOF
  15350. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15351. _ACEOF
  15352. ;;
  15353. esac
  15354. rm -rf conftest*
  15355. if test $ac_cv_sys_file_offset_bits = unknown; then
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15357. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15358. if ${ac_cv_sys_large_files+:} false; then :
  15359. $as_echo_n "(cached) " >&6
  15360. else
  15361. while :; do
  15362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15363. /* end confdefs.h. */
  15364. #include <sys/types.h>
  15365. /* Check that off_t can represent 2**63 - 1 correctly.
  15366. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15367. since some C++ compilers masquerading as C compilers
  15368. incorrectly reject 9223372036854775807. */
  15369. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15370. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15371. && LARGE_OFF_T % 2147483647 == 1)
  15372. ? 1 : -1];
  15373. int
  15374. main ()
  15375. {
  15376. ;
  15377. return 0;
  15378. }
  15379. _ACEOF
  15380. if ac_fn_c_try_compile "$LINENO"; then :
  15381. ac_cv_sys_large_files=no; break
  15382. fi
  15383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. #define _LARGE_FILES 1
  15387. #include <sys/types.h>
  15388. /* Check that off_t can represent 2**63 - 1 correctly.
  15389. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15390. since some C++ compilers masquerading as C compilers
  15391. incorrectly reject 9223372036854775807. */
  15392. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15393. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15394. && LARGE_OFF_T % 2147483647 == 1)
  15395. ? 1 : -1];
  15396. int
  15397. main ()
  15398. {
  15399. ;
  15400. return 0;
  15401. }
  15402. _ACEOF
  15403. if ac_fn_c_try_compile "$LINENO"; then :
  15404. ac_cv_sys_large_files=1; break
  15405. fi
  15406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15407. ac_cv_sys_large_files=unknown
  15408. break
  15409. done
  15410. fi
  15411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15412. $as_echo "$ac_cv_sys_large_files" >&6; }
  15413. case $ac_cv_sys_large_files in #(
  15414. no | unknown) ;;
  15415. *)
  15416. cat >>confdefs.h <<_ACEOF
  15417. #define _LARGE_FILES $ac_cv_sys_large_files
  15418. _ACEOF
  15419. ;;
  15420. esac
  15421. rm -rf conftest*
  15422. fi
  15423. fi
  15424. LFS_CFLAGS=''
  15425. if test "$enable_largefile" != no; then
  15426. if test "$ac_cv_sys_file_offset_bits" != 'no'; then
  15427. LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  15428. else
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
  15430. $as_echo_n "checking for native large file support... " >&6; }
  15431. if test "$cross_compiling" = yes; then :
  15432. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15433. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15434. as_fn_error $? "cannot run test program while cross compiling
  15435. See \`config.log' for more details" "$LINENO" 5; }
  15436. else
  15437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15438. /* end confdefs.h. */
  15439. #include <unistd.h>
  15440. int main (int argc, char **argv)
  15441. {
  15442. exit(!(sizeof(off_t) == 8));
  15443. }
  15444. _ACEOF
  15445. if ac_fn_c_try_run "$LINENO"; then :
  15446. ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15448. $as_echo "yes" >&6; }
  15449. else
  15450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15451. $as_echo "no" >&6; }
  15452. fi
  15453. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15454. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15455. fi
  15456. fi
  15457. if test "$ac_cv_sys_large_files" != 'no'; then
  15458. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1"
  15459. fi
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15461. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15462. if ${ac_cv_sys_largefile_source+:} false; then :
  15463. $as_echo_n "(cached) " >&6
  15464. else
  15465. while :; do
  15466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15467. /* end confdefs.h. */
  15468. #include <sys/types.h> /* for off_t */
  15469. #include <stdio.h>
  15470. int
  15471. main ()
  15472. {
  15473. int (*fp) (FILE *, off_t, int) = fseeko;
  15474. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15475. ;
  15476. return 0;
  15477. }
  15478. _ACEOF
  15479. if ac_fn_c_try_link "$LINENO"; then :
  15480. ac_cv_sys_largefile_source=no; break
  15481. fi
  15482. rm -f core conftest.err conftest.$ac_objext \
  15483. conftest$ac_exeext conftest.$ac_ext
  15484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15485. /* end confdefs.h. */
  15486. #define _LARGEFILE_SOURCE 1
  15487. #include <sys/types.h> /* for off_t */
  15488. #include <stdio.h>
  15489. int
  15490. main ()
  15491. {
  15492. int (*fp) (FILE *, off_t, int) = fseeko;
  15493. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15494. ;
  15495. return 0;
  15496. }
  15497. _ACEOF
  15498. if ac_fn_c_try_link "$LINENO"; then :
  15499. ac_cv_sys_largefile_source=1; break
  15500. fi
  15501. rm -f core conftest.err conftest.$ac_objext \
  15502. conftest$ac_exeext conftest.$ac_ext
  15503. ac_cv_sys_largefile_source=unknown
  15504. break
  15505. done
  15506. fi
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  15508. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15509. case $ac_cv_sys_largefile_source in #(
  15510. no | unknown) ;;
  15511. *)
  15512. cat >>confdefs.h <<_ACEOF
  15513. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15514. _ACEOF
  15515. ;;
  15516. esac
  15517. rm -rf conftest*
  15518. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15519. # in glibc 2.1.3, but that breaks too many other things.
  15520. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15521. if test $ac_cv_sys_largefile_source != unknown; then
  15522. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  15523. fi
  15524. if test "$ac_cv_sys_largefile_source" != 'no'; then
  15525. LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1"
  15526. fi
  15527. fi
  15528. # Check whether --enable-silent-rules was given.
  15529. if test "${enable_silent_rules+set}" = set; then :
  15530. enableval=$enable_silent_rules;
  15531. fi
  15532. case $enable_silent_rules in # (((
  15533. yes) AM_DEFAULT_VERBOSITY=0;;
  15534. no) AM_DEFAULT_VERBOSITY=1;;
  15535. *) AM_DEFAULT_VERBOSITY=0;;
  15536. esac
  15537. am_make=${MAKE-make}
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  15539. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  15540. if ${am_cv_make_support_nested_variables+:} false; then :
  15541. $as_echo_n "(cached) " >&6
  15542. else
  15543. if $as_echo 'TRUE=$(BAR$(V))
  15544. BAR0=false
  15545. BAR1=true
  15546. V=1
  15547. am__doit:
  15548. @$(TRUE)
  15549. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  15550. am_cv_make_support_nested_variables=yes
  15551. else
  15552. am_cv_make_support_nested_variables=no
  15553. fi
  15554. fi
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  15556. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  15557. if test $am_cv_make_support_nested_variables = yes; then
  15558. AM_V='$(V)'
  15559. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  15560. else
  15561. AM_V=$AM_DEFAULT_VERBOSITY
  15562. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  15563. fi
  15564. AM_BACKSLASH='\'
  15565. ac_config_files="$ac_config_files Makefile common/Makefile src/Makefile src/libimobiledevice-1.0.pc include/Makefile tools/Makefile cython/Makefile docs/Makefile doxygen.cfg"
  15566. cat >confcache <<\_ACEOF
  15567. # This file is a shell script that caches the results of configure
  15568. # tests run on this system so they can be shared between configure
  15569. # scripts and configure runs, see configure's option --config-cache.
  15570. # It is not useful on other systems. If it contains results you don't
  15571. # want to keep, you may remove or edit it.
  15572. #
  15573. # config.status only pays attention to the cache file if you give it
  15574. # the --recheck option to rerun configure.
  15575. #
  15576. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15577. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15578. # following values.
  15579. _ACEOF
  15580. # The following way of writing the cache mishandles newlines in values,
  15581. # but we know of no workaround that is simple, portable, and efficient.
  15582. # So, we kill variables containing newlines.
  15583. # Ultrix sh set writes to stderr and can't be redirected directly,
  15584. # and sets the high bit in the cache file unless we assign to the vars.
  15585. (
  15586. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15587. eval ac_val=\$$ac_var
  15588. case $ac_val in #(
  15589. *${as_nl}*)
  15590. case $ac_var in #(
  15591. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15592. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15593. esac
  15594. case $ac_var in #(
  15595. _ | IFS | as_nl) ;; #(
  15596. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15597. *) { eval $ac_var=; unset $ac_var;} ;;
  15598. esac ;;
  15599. esac
  15600. done
  15601. (set) 2>&1 |
  15602. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15603. *${as_nl}ac_space=\ *)
  15604. # `set' does not quote correctly, so add quotes: double-quote
  15605. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15606. sed -n \
  15607. "s/'/'\\\\''/g;
  15608. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15609. ;; #(
  15610. *)
  15611. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15612. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15613. ;;
  15614. esac |
  15615. sort
  15616. ) |
  15617. sed '
  15618. /^ac_cv_env_/b end
  15619. t clear
  15620. :clear
  15621. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15622. t end
  15623. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15624. :end' >>confcache
  15625. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15626. if test -w "$cache_file"; then
  15627. if test "x$cache_file" != "x/dev/null"; then
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15629. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15630. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15631. cat confcache >"$cache_file"
  15632. else
  15633. case $cache_file in #(
  15634. */* | ?:*)
  15635. mv -f confcache "$cache_file"$$ &&
  15636. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15637. *)
  15638. mv -f confcache "$cache_file" ;;
  15639. esac
  15640. fi
  15641. fi
  15642. else
  15643. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15644. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15645. fi
  15646. fi
  15647. rm -f confcache
  15648. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15649. # Let make expand exec_prefix.
  15650. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15651. DEFS=-DHAVE_CONFIG_H
  15652. ac_libobjs=
  15653. ac_ltlibobjs=
  15654. U=
  15655. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15656. # 1. Remove the extension, and $U if already installed.
  15657. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15658. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15659. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15660. # will be set to the directory where LIBOBJS objects are built.
  15661. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15662. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15663. done
  15664. LIBOBJS=$ac_libobjs
  15665. LTLIBOBJS=$ac_ltlibobjs
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15667. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15668. if test -n "$am_sleep_pid"; then
  15669. # Hide warnings about reused PIDs.
  15670. wait $am_sleep_pid 2>/dev/null
  15671. fi
  15672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15673. $as_echo "done" >&6; }
  15674. if test -n "$EXEEXT"; then
  15675. am__EXEEXT_TRUE=
  15676. am__EXEEXT_FALSE='#'
  15677. else
  15678. am__EXEEXT_TRUE='#'
  15679. am__EXEEXT_FALSE=
  15680. fi
  15681. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15682. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15684. fi
  15685. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15686. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15688. fi
  15689. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15690. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15691. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15692. fi
  15693. if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  15694. as_fn_error $? "conditional \"WIN32\" was never defined.
  15695. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15696. fi
  15697. if test -z "${HAVE_CYTHON_TRUE}" && test -z "${HAVE_CYTHON_FALSE}"; then
  15698. as_fn_error $? "conditional \"HAVE_CYTHON\" was never defined.
  15699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15700. fi
  15701. : "${CONFIG_STATUS=./config.status}"
  15702. ac_write_fail=0
  15703. ac_clean_files_save=$ac_clean_files
  15704. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15706. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15707. as_write_fail=0
  15708. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15709. #! $SHELL
  15710. # Generated by $as_me.
  15711. # Run this file to recreate the current configuration.
  15712. # Compiler output produced by configure, useful for debugging
  15713. # configure, is in config.log if it exists.
  15714. debug=false
  15715. ac_cs_recheck=false
  15716. ac_cs_silent=false
  15717. SHELL=\${CONFIG_SHELL-$SHELL}
  15718. export SHELL
  15719. _ASEOF
  15720. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15721. ## -------------------- ##
  15722. ## M4sh Initialization. ##
  15723. ## -------------------- ##
  15724. # Be more Bourne compatible
  15725. DUALCASE=1; export DUALCASE # for MKS sh
  15726. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15727. emulate sh
  15728. NULLCMD=:
  15729. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15730. # is contrary to our usage. Disable this feature.
  15731. alias -g '${1+"$@"}'='"$@"'
  15732. setopt NO_GLOB_SUBST
  15733. else
  15734. case `(set -o) 2>/dev/null` in #(
  15735. *posix*) :
  15736. set -o posix ;; #(
  15737. *) :
  15738. ;;
  15739. esac
  15740. fi
  15741. as_nl='
  15742. '
  15743. export as_nl
  15744. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15745. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15746. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15747. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15748. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15749. # but without wasting forks for bash or zsh.
  15750. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15751. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15752. as_echo='print -r --'
  15753. as_echo_n='print -rn --'
  15754. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15755. as_echo='printf %s\n'
  15756. as_echo_n='printf %s'
  15757. else
  15758. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15759. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15760. as_echo_n='/usr/ucb/echo -n'
  15761. else
  15762. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15763. as_echo_n_body='eval
  15764. arg=$1;
  15765. case $arg in #(
  15766. *"$as_nl"*)
  15767. expr "X$arg" : "X\\(.*\\)$as_nl";
  15768. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15769. esac;
  15770. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15771. '
  15772. export as_echo_n_body
  15773. as_echo_n='sh -c $as_echo_n_body as_echo'
  15774. fi
  15775. export as_echo_body
  15776. as_echo='sh -c $as_echo_body as_echo'
  15777. fi
  15778. # The user is always right.
  15779. if test "${PATH_SEPARATOR+set}" != set; then
  15780. PATH_SEPARATOR=:
  15781. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15782. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15783. PATH_SEPARATOR=';'
  15784. }
  15785. fi
  15786. # IFS
  15787. # We need space, tab and new line, in precisely that order. Quoting is
  15788. # there to prevent editors from complaining about space-tab.
  15789. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15790. # splitting by setting IFS to empty value.)
  15791. IFS=" "" $as_nl"
  15792. # Find who we are. Look in the path if we contain no directory separator.
  15793. as_myself=
  15794. case $0 in #((
  15795. *[\\/]* ) as_myself=$0 ;;
  15796. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15797. for as_dir in $PATH
  15798. do
  15799. IFS=$as_save_IFS
  15800. test -z "$as_dir" && as_dir=.
  15801. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15802. done
  15803. IFS=$as_save_IFS
  15804. ;;
  15805. esac
  15806. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15807. # in which case we are not to be found in the path.
  15808. if test "x$as_myself" = x; then
  15809. as_myself=$0
  15810. fi
  15811. if test ! -f "$as_myself"; then
  15812. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15813. exit 1
  15814. fi
  15815. # Unset variables that we do not need and which cause bugs (e.g. in
  15816. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15817. # suppresses any "Segmentation fault" message there. '((' could
  15818. # trigger a bug in pdksh 5.2.14.
  15819. for as_var in BASH_ENV ENV MAIL MAILPATH
  15820. do eval test x\${$as_var+set} = xset \
  15821. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15822. done
  15823. PS1='$ '
  15824. PS2='> '
  15825. PS4='+ '
  15826. # NLS nuisances.
  15827. LC_ALL=C
  15828. export LC_ALL
  15829. LANGUAGE=C
  15830. export LANGUAGE
  15831. # CDPATH.
  15832. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15833. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15834. # ----------------------------------------
  15835. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15836. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15837. # script with STATUS, using 1 if that was 0.
  15838. as_fn_error ()
  15839. {
  15840. as_status=$1; test $as_status -eq 0 && as_status=1
  15841. if test "$4"; then
  15842. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15843. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15844. fi
  15845. $as_echo "$as_me: error: $2" >&2
  15846. as_fn_exit $as_status
  15847. } # as_fn_error
  15848. # as_fn_set_status STATUS
  15849. # -----------------------
  15850. # Set $? to STATUS, without forking.
  15851. as_fn_set_status ()
  15852. {
  15853. return $1
  15854. } # as_fn_set_status
  15855. # as_fn_exit STATUS
  15856. # -----------------
  15857. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15858. as_fn_exit ()
  15859. {
  15860. set +e
  15861. as_fn_set_status $1
  15862. exit $1
  15863. } # as_fn_exit
  15864. # as_fn_unset VAR
  15865. # ---------------
  15866. # Portably unset VAR.
  15867. as_fn_unset ()
  15868. {
  15869. { eval $1=; unset $1;}
  15870. }
  15871. as_unset=as_fn_unset
  15872. # as_fn_append VAR VALUE
  15873. # ----------------------
  15874. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15875. # advantage of any shell optimizations that allow amortized linear growth over
  15876. # repeated appends, instead of the typical quadratic growth present in naive
  15877. # implementations.
  15878. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15879. eval 'as_fn_append ()
  15880. {
  15881. eval $1+=\$2
  15882. }'
  15883. else
  15884. as_fn_append ()
  15885. {
  15886. eval $1=\$$1\$2
  15887. }
  15888. fi # as_fn_append
  15889. # as_fn_arith ARG...
  15890. # ------------------
  15891. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15892. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15893. # must be portable across $(()) and expr.
  15894. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15895. eval 'as_fn_arith ()
  15896. {
  15897. as_val=$(( $* ))
  15898. }'
  15899. else
  15900. as_fn_arith ()
  15901. {
  15902. as_val=`expr "$@" || test $? -eq 1`
  15903. }
  15904. fi # as_fn_arith
  15905. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15906. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15907. as_expr=expr
  15908. else
  15909. as_expr=false
  15910. fi
  15911. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15912. as_basename=basename
  15913. else
  15914. as_basename=false
  15915. fi
  15916. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15917. as_dirname=dirname
  15918. else
  15919. as_dirname=false
  15920. fi
  15921. as_me=`$as_basename -- "$0" ||
  15922. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15923. X"$0" : 'X\(//\)$' \| \
  15924. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15925. $as_echo X/"$0" |
  15926. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15927. s//\1/
  15928. q
  15929. }
  15930. /^X\/\(\/\/\)$/{
  15931. s//\1/
  15932. q
  15933. }
  15934. /^X\/\(\/\).*/{
  15935. s//\1/
  15936. q
  15937. }
  15938. s/.*/./; q'`
  15939. # Avoid depending upon Character Ranges.
  15940. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15941. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15942. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15943. as_cr_digits='0123456789'
  15944. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15945. ECHO_C= ECHO_N= ECHO_T=
  15946. case `echo -n x` in #(((((
  15947. -n*)
  15948. case `echo 'xy\c'` in
  15949. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15950. xy) ECHO_C='\c';;
  15951. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15952. ECHO_T=' ';;
  15953. esac;;
  15954. *)
  15955. ECHO_N='-n';;
  15956. esac
  15957. rm -f conf$$ conf$$.exe conf$$.file
  15958. if test -d conf$$.dir; then
  15959. rm -f conf$$.dir/conf$$.file
  15960. else
  15961. rm -f conf$$.dir
  15962. mkdir conf$$.dir 2>/dev/null
  15963. fi
  15964. if (echo >conf$$.file) 2>/dev/null; then
  15965. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15966. as_ln_s='ln -s'
  15967. # ... but there are two gotchas:
  15968. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15969. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15970. # In both cases, we have to default to `cp -pR'.
  15971. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15972. as_ln_s='cp -pR'
  15973. elif ln conf$$.file conf$$ 2>/dev/null; then
  15974. as_ln_s=ln
  15975. else
  15976. as_ln_s='cp -pR'
  15977. fi
  15978. else
  15979. as_ln_s='cp -pR'
  15980. fi
  15981. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15982. rmdir conf$$.dir 2>/dev/null
  15983. # as_fn_mkdir_p
  15984. # -------------
  15985. # Create "$as_dir" as a directory, including parents if necessary.
  15986. as_fn_mkdir_p ()
  15987. {
  15988. case $as_dir in #(
  15989. -*) as_dir=./$as_dir;;
  15990. esac
  15991. test -d "$as_dir" || eval $as_mkdir_p || {
  15992. as_dirs=
  15993. while :; do
  15994. case $as_dir in #(
  15995. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15996. *) as_qdir=$as_dir;;
  15997. esac
  15998. as_dirs="'$as_qdir' $as_dirs"
  15999. as_dir=`$as_dirname -- "$as_dir" ||
  16000. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16001. X"$as_dir" : 'X\(//\)[^/]' \| \
  16002. X"$as_dir" : 'X\(//\)$' \| \
  16003. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16004. $as_echo X"$as_dir" |
  16005. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16006. s//\1/
  16007. q
  16008. }
  16009. /^X\(\/\/\)[^/].*/{
  16010. s//\1/
  16011. q
  16012. }
  16013. /^X\(\/\/\)$/{
  16014. s//\1/
  16015. q
  16016. }
  16017. /^X\(\/\).*/{
  16018. s//\1/
  16019. q
  16020. }
  16021. s/.*/./; q'`
  16022. test -d "$as_dir" && break
  16023. done
  16024. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16025. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16026. } # as_fn_mkdir_p
  16027. if mkdir -p . 2>/dev/null; then
  16028. as_mkdir_p='mkdir -p "$as_dir"'
  16029. else
  16030. test -d ./-p && rmdir ./-p
  16031. as_mkdir_p=false
  16032. fi
  16033. # as_fn_executable_p FILE
  16034. # -----------------------
  16035. # Test if FILE is an executable regular file.
  16036. as_fn_executable_p ()
  16037. {
  16038. test -f "$1" && test -x "$1"
  16039. } # as_fn_executable_p
  16040. as_test_x='test -x'
  16041. as_executable_p=as_fn_executable_p
  16042. # Sed expression to map a string onto a valid CPP name.
  16043. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16044. # Sed expression to map a string onto a valid variable name.
  16045. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16046. exec 6>&1
  16047. ## ----------------------------------- ##
  16048. ## Main body of $CONFIG_STATUS script. ##
  16049. ## ----------------------------------- ##
  16050. _ASEOF
  16051. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16053. # Save the log message, to keep $0 and so on meaningful, and to
  16054. # report actual input values of CONFIG_FILES etc. instead of their
  16055. # values after options handling.
  16056. ac_log="
  16057. This file was extended by libimobiledevice $as_me 1.2.0, which was
  16058. generated by GNU Autoconf 2.69. Invocation command line was
  16059. CONFIG_FILES = $CONFIG_FILES
  16060. CONFIG_HEADERS = $CONFIG_HEADERS
  16061. CONFIG_LINKS = $CONFIG_LINKS
  16062. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16063. $ $0 $@
  16064. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16065. "
  16066. _ACEOF
  16067. case $ac_config_files in *"
  16068. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16069. esac
  16070. case $ac_config_headers in *"
  16071. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16072. esac
  16073. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16074. # Files that config.status was made for.
  16075. config_files="$ac_config_files"
  16076. config_headers="$ac_config_headers"
  16077. config_commands="$ac_config_commands"
  16078. _ACEOF
  16079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16080. ac_cs_usage="\
  16081. \`$as_me' instantiates files and other configuration actions
  16082. from templates according to the current configuration. Unless the files
  16083. and actions are specified as TAGs, all are instantiated by default.
  16084. Usage: $0 [OPTION]... [TAG]...
  16085. -h, --help print this help, then exit
  16086. -V, --version print version number and configuration settings, then exit
  16087. --config print configuration, then exit
  16088. -q, --quiet, --silent
  16089. do not print progress messages
  16090. -d, --debug don't remove temporary files
  16091. --recheck update $as_me by reconfiguring in the same conditions
  16092. --file=FILE[:TEMPLATE]
  16093. instantiate the configuration file FILE
  16094. --header=FILE[:TEMPLATE]
  16095. instantiate the configuration header FILE
  16096. Configuration files:
  16097. $config_files
  16098. Configuration headers:
  16099. $config_headers
  16100. Configuration commands:
  16101. $config_commands
  16102. Report bugs to <https://github.com/libimobiledevice/libimobiledevice/issues>.
  16103. libimobiledevice home page: <http://libimobiledevice.org>."
  16104. _ACEOF
  16105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16106. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16107. ac_cs_version="\\
  16108. libimobiledevice config.status 1.2.0
  16109. configured by $0, generated by GNU Autoconf 2.69,
  16110. with options \\"\$ac_cs_config\\"
  16111. Copyright (C) 2012 Free Software Foundation, Inc.
  16112. This config.status script is free software; the Free Software Foundation
  16113. gives unlimited permission to copy, distribute and modify it."
  16114. ac_pwd='$ac_pwd'
  16115. srcdir='$srcdir'
  16116. INSTALL='$INSTALL'
  16117. MKDIR_P='$MKDIR_P'
  16118. AWK='$AWK'
  16119. test -n "\$AWK" || AWK=awk
  16120. _ACEOF
  16121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16122. # The default lists apply if the user does not specify any file.
  16123. ac_need_defaults=:
  16124. while test $# != 0
  16125. do
  16126. case $1 in
  16127. --*=?*)
  16128. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16129. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16130. ac_shift=:
  16131. ;;
  16132. --*=)
  16133. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16134. ac_optarg=
  16135. ac_shift=:
  16136. ;;
  16137. *)
  16138. ac_option=$1
  16139. ac_optarg=$2
  16140. ac_shift=shift
  16141. ;;
  16142. esac
  16143. case $ac_option in
  16144. # Handling of the options.
  16145. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16146. ac_cs_recheck=: ;;
  16147. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16148. $as_echo "$ac_cs_version"; exit ;;
  16149. --config | --confi | --conf | --con | --co | --c )
  16150. $as_echo "$ac_cs_config"; exit ;;
  16151. --debug | --debu | --deb | --de | --d | -d )
  16152. debug=: ;;
  16153. --file | --fil | --fi | --f )
  16154. $ac_shift
  16155. case $ac_optarg in
  16156. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16157. '') as_fn_error $? "missing file argument" ;;
  16158. esac
  16159. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16160. ac_need_defaults=false;;
  16161. --header | --heade | --head | --hea )
  16162. $ac_shift
  16163. case $ac_optarg in
  16164. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16165. esac
  16166. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16167. ac_need_defaults=false;;
  16168. --he | --h)
  16169. # Conflict between --help and --header
  16170. as_fn_error $? "ambiguous option: \`$1'
  16171. Try \`$0 --help' for more information.";;
  16172. --help | --hel | -h )
  16173. $as_echo "$ac_cs_usage"; exit ;;
  16174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16175. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16176. ac_cs_silent=: ;;
  16177. # This is an error.
  16178. -*) as_fn_error $? "unrecognized option: \`$1'
  16179. Try \`$0 --help' for more information." ;;
  16180. *) as_fn_append ac_config_targets " $1"
  16181. ac_need_defaults=false ;;
  16182. esac
  16183. shift
  16184. done
  16185. ac_configure_extra_args=
  16186. if $ac_cs_silent; then
  16187. exec 6>/dev/null
  16188. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16189. fi
  16190. _ACEOF
  16191. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16192. if \$ac_cs_recheck; then
  16193. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16194. shift
  16195. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16196. CONFIG_SHELL='$SHELL'
  16197. export CONFIG_SHELL
  16198. exec "\$@"
  16199. fi
  16200. _ACEOF
  16201. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16202. exec 5>>config.log
  16203. {
  16204. echo
  16205. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16206. ## Running $as_me. ##
  16207. _ASBOX
  16208. $as_echo "$ac_log"
  16209. } >&5
  16210. _ACEOF
  16211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16212. #
  16213. # INIT-COMMANDS
  16214. #
  16215. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16216. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16217. # if CDPATH is set.
  16218. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16219. sed_quote_subst='$sed_quote_subst'
  16220. double_quote_subst='$double_quote_subst'
  16221. delay_variable_subst='$delay_variable_subst'
  16222. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16223. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16224. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16225. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16226. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16227. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16228. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16229. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16230. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  16231. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16232. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16233. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16234. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16235. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16236. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16237. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16238. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16239. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16240. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16241. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16242. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16243. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16244. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16245. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16246. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16247. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16248. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16249. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16250. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16251. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  16252. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  16253. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16254. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16255. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16256. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16257. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16258. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  16259. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  16260. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  16261. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  16262. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16263. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16264. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  16265. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16266. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16267. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16268. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16269. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16270. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16271. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16272. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16273. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16274. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16275. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16276. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16277. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16278. 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"`'
  16279. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  16280. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  16281. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16282. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16283. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16284. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16285. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16286. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16287. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16288. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16289. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  16290. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16291. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16292. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16293. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16294. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16295. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16296. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16297. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16298. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16299. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16300. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16301. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16302. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16303. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16304. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16305. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16306. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16307. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16308. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16309. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16310. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16311. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16312. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16313. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16314. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16315. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16316. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16317. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16318. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16319. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16320. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16321. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16322. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16323. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16324. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16325. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16326. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  16327. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16328. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16329. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16330. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16331. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16332. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16333. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16334. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16335. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16336. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16337. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16338. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16339. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16340. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16341. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16342. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16343. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16344. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16345. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16346. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16347. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16348. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16349. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16350. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16351. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16352. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16353. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16354. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16355. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16356. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16357. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16358. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16359. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16360. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16361. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16362. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16363. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16364. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16365. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16366. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16367. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16368. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16369. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16370. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16371. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16372. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16373. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16374. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16375. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16376. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16377. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16378. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16379. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16380. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16381. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16382. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16383. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16384. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16385. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16386. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16387. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16388. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16389. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16390. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16391. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16392. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16393. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16394. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16395. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16396. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16397. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16398. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16399. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16400. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16401. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16402. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16403. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16404. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16405. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16406. LTCC='$LTCC'
  16407. LTCFLAGS='$LTCFLAGS'
  16408. compiler='$compiler_DEFAULT'
  16409. # A function that is used when there is no print builtin or printf.
  16410. func_fallback_echo ()
  16411. {
  16412. eval 'cat <<_LTECHO_EOF
  16413. \$1
  16414. _LTECHO_EOF'
  16415. }
  16416. # Quote evaled strings.
  16417. for var in SHELL \
  16418. ECHO \
  16419. PATH_SEPARATOR \
  16420. SED \
  16421. GREP \
  16422. EGREP \
  16423. FGREP \
  16424. LD \
  16425. NM \
  16426. LN_S \
  16427. lt_SP2NL \
  16428. lt_NL2SP \
  16429. reload_flag \
  16430. OBJDUMP \
  16431. deplibs_check_method \
  16432. file_magic_cmd \
  16433. file_magic_glob \
  16434. want_nocaseglob \
  16435. DLLTOOL \
  16436. sharedlib_from_linklib_cmd \
  16437. AR \
  16438. AR_FLAGS \
  16439. archiver_list_spec \
  16440. STRIP \
  16441. RANLIB \
  16442. CC \
  16443. CFLAGS \
  16444. compiler \
  16445. lt_cv_sys_global_symbol_pipe \
  16446. lt_cv_sys_global_symbol_to_cdecl \
  16447. lt_cv_sys_global_symbol_to_c_name_address \
  16448. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16449. nm_file_list_spec \
  16450. lt_prog_compiler_no_builtin_flag \
  16451. lt_prog_compiler_pic \
  16452. lt_prog_compiler_wl \
  16453. lt_prog_compiler_static \
  16454. lt_cv_prog_compiler_c_o \
  16455. need_locks \
  16456. MANIFEST_TOOL \
  16457. DSYMUTIL \
  16458. NMEDIT \
  16459. LIPO \
  16460. OTOOL \
  16461. OTOOL64 \
  16462. shrext_cmds \
  16463. export_dynamic_flag_spec \
  16464. whole_archive_flag_spec \
  16465. compiler_needs_object \
  16466. with_gnu_ld \
  16467. allow_undefined_flag \
  16468. no_undefined_flag \
  16469. hardcode_libdir_flag_spec \
  16470. hardcode_libdir_separator \
  16471. exclude_expsyms \
  16472. include_expsyms \
  16473. file_list_spec \
  16474. variables_saved_for_relink \
  16475. libname_spec \
  16476. library_names_spec \
  16477. soname_spec \
  16478. install_override_mode \
  16479. finish_eval \
  16480. old_striplib \
  16481. striplib \
  16482. compiler_lib_search_dirs \
  16483. predep_objects \
  16484. postdep_objects \
  16485. predeps \
  16486. postdeps \
  16487. compiler_lib_search_path \
  16488. LD_CXX \
  16489. reload_flag_CXX \
  16490. compiler_CXX \
  16491. lt_prog_compiler_no_builtin_flag_CXX \
  16492. lt_prog_compiler_pic_CXX \
  16493. lt_prog_compiler_wl_CXX \
  16494. lt_prog_compiler_static_CXX \
  16495. lt_cv_prog_compiler_c_o_CXX \
  16496. export_dynamic_flag_spec_CXX \
  16497. whole_archive_flag_spec_CXX \
  16498. compiler_needs_object_CXX \
  16499. with_gnu_ld_CXX \
  16500. allow_undefined_flag_CXX \
  16501. no_undefined_flag_CXX \
  16502. hardcode_libdir_flag_spec_CXX \
  16503. hardcode_libdir_separator_CXX \
  16504. exclude_expsyms_CXX \
  16505. include_expsyms_CXX \
  16506. file_list_spec_CXX \
  16507. compiler_lib_search_dirs_CXX \
  16508. predep_objects_CXX \
  16509. postdep_objects_CXX \
  16510. predeps_CXX \
  16511. postdeps_CXX \
  16512. compiler_lib_search_path_CXX; do
  16513. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16514. *[\\\\\\\`\\"\\\$]*)
  16515. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16516. ;;
  16517. *)
  16518. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16519. ;;
  16520. esac
  16521. done
  16522. # Double-quote double-evaled strings.
  16523. for var in reload_cmds \
  16524. old_postinstall_cmds \
  16525. old_postuninstall_cmds \
  16526. old_archive_cmds \
  16527. extract_expsyms_cmds \
  16528. old_archive_from_new_cmds \
  16529. old_archive_from_expsyms_cmds \
  16530. archive_cmds \
  16531. archive_expsym_cmds \
  16532. module_cmds \
  16533. module_expsym_cmds \
  16534. export_symbols_cmds \
  16535. prelink_cmds \
  16536. postlink_cmds \
  16537. postinstall_cmds \
  16538. postuninstall_cmds \
  16539. finish_cmds \
  16540. sys_lib_search_path_spec \
  16541. sys_lib_dlsearch_path_spec \
  16542. reload_cmds_CXX \
  16543. old_archive_cmds_CXX \
  16544. old_archive_from_new_cmds_CXX \
  16545. old_archive_from_expsyms_cmds_CXX \
  16546. archive_cmds_CXX \
  16547. archive_expsym_cmds_CXX \
  16548. module_cmds_CXX \
  16549. module_expsym_cmds_CXX \
  16550. export_symbols_cmds_CXX \
  16551. prelink_cmds_CXX \
  16552. postlink_cmds_CXX; do
  16553. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16554. *[\\\\\\\`\\"\\\$]*)
  16555. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16556. ;;
  16557. *)
  16558. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16559. ;;
  16560. esac
  16561. done
  16562. ac_aux_dir='$ac_aux_dir'
  16563. xsi_shell='$xsi_shell'
  16564. lt_shell_append='$lt_shell_append'
  16565. # See if we are running on zsh, and set the options which allow our
  16566. # commands through without removal of \ escapes INIT.
  16567. if test -n "\${ZSH_VERSION+set}" ; then
  16568. setopt NO_GLOB_SUBST
  16569. fi
  16570. PACKAGE='$PACKAGE'
  16571. VERSION='$VERSION'
  16572. TIMESTAMP='$TIMESTAMP'
  16573. RM='$RM'
  16574. ofile='$ofile'
  16575. _ACEOF
  16576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16577. # Handling of arguments.
  16578. for ac_config_target in $ac_config_targets
  16579. do
  16580. case $ac_config_target in
  16581. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16582. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16583. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16584. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16585. "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
  16586. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16587. "src/libimobiledevice-1.0.pc") CONFIG_FILES="$CONFIG_FILES src/libimobiledevice-1.0.pc" ;;
  16588. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  16589. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  16590. "cython/Makefile") CONFIG_FILES="$CONFIG_FILES cython/Makefile" ;;
  16591. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  16592. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  16593. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16594. esac
  16595. done
  16596. # If the user did not use the arguments to specify the items to instantiate,
  16597. # then the envvar interface is used. Set only those that are not.
  16598. # We use the long form for the default assignment because of an extremely
  16599. # bizarre bug on SunOS 4.1.3.
  16600. if $ac_need_defaults; then
  16601. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16602. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16603. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16604. fi
  16605. # Have a temporary directory for convenience. Make it in the build tree
  16606. # simply because there is no reason against having it here, and in addition,
  16607. # creating and moving files from /tmp can sometimes cause problems.
  16608. # Hook for its removal unless debugging.
  16609. # Note that there is a small window in which the directory will not be cleaned:
  16610. # after its creation but before its name has been assigned to `$tmp'.
  16611. $debug ||
  16612. {
  16613. tmp= ac_tmp=
  16614. trap 'exit_status=$?
  16615. : "${ac_tmp:=$tmp}"
  16616. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16617. ' 0
  16618. trap 'as_fn_exit 1' 1 2 13 15
  16619. }
  16620. # Create a (secure) tmp directory for tmp files.
  16621. {
  16622. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16623. test -d "$tmp"
  16624. } ||
  16625. {
  16626. tmp=./conf$$-$RANDOM
  16627. (umask 077 && mkdir "$tmp")
  16628. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16629. ac_tmp=$tmp
  16630. # Set up the scripts for CONFIG_FILES section.
  16631. # No need to generate them if there are no CONFIG_FILES.
  16632. # This happens for instance with `./config.status config.h'.
  16633. if test -n "$CONFIG_FILES"; then
  16634. ac_cr=`echo X | tr X '\015'`
  16635. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16636. # But we know of no other shell where ac_cr would be empty at this
  16637. # point, so we can use a bashism as a fallback.
  16638. if test "x$ac_cr" = x; then
  16639. eval ac_cr=\$\'\\r\'
  16640. fi
  16641. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16642. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16643. ac_cs_awk_cr='\\r'
  16644. else
  16645. ac_cs_awk_cr=$ac_cr
  16646. fi
  16647. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16648. _ACEOF
  16649. {
  16650. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16651. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16652. echo "_ACEOF"
  16653. } >conf$$subs.sh ||
  16654. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16655. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16656. ac_delim='%!_!# '
  16657. for ac_last_try in false false false false false :; do
  16658. . ./conf$$subs.sh ||
  16659. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16660. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16661. if test $ac_delim_n = $ac_delim_num; then
  16662. break
  16663. elif $ac_last_try; then
  16664. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16665. else
  16666. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16667. fi
  16668. done
  16669. rm -f conf$$subs.sh
  16670. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16671. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16672. _ACEOF
  16673. sed -n '
  16674. h
  16675. s/^/S["/; s/!.*/"]=/
  16676. p
  16677. g
  16678. s/^[^!]*!//
  16679. :repl
  16680. t repl
  16681. s/'"$ac_delim"'$//
  16682. t delim
  16683. :nl
  16684. h
  16685. s/\(.\{148\}\)..*/\1/
  16686. t more1
  16687. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16688. p
  16689. n
  16690. b repl
  16691. :more1
  16692. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16693. p
  16694. g
  16695. s/.\{148\}//
  16696. t nl
  16697. :delim
  16698. h
  16699. s/\(.\{148\}\)..*/\1/
  16700. t more2
  16701. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16702. p
  16703. b
  16704. :more2
  16705. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16706. p
  16707. g
  16708. s/.\{148\}//
  16709. t delim
  16710. ' <conf$$subs.awk | sed '
  16711. /^[^""]/{
  16712. N
  16713. s/\n//
  16714. }
  16715. ' >>$CONFIG_STATUS || ac_write_fail=1
  16716. rm -f conf$$subs.awk
  16717. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16718. _ACAWK
  16719. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16720. for (key in S) S_is_set[key] = 1
  16721. FS = ""
  16722. }
  16723. {
  16724. line = $ 0
  16725. nfields = split(line, field, "@")
  16726. substed = 0
  16727. len = length(field[1])
  16728. for (i = 2; i < nfields; i++) {
  16729. key = field[i]
  16730. keylen = length(key)
  16731. if (S_is_set[key]) {
  16732. value = S[key]
  16733. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16734. len += length(value) + length(field[++i])
  16735. substed = 1
  16736. } else
  16737. len += 1 + keylen
  16738. }
  16739. print line
  16740. }
  16741. _ACAWK
  16742. _ACEOF
  16743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16744. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16745. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16746. else
  16747. cat
  16748. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16749. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16750. _ACEOF
  16751. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16752. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16753. # trailing colons and then remove the whole line if VPATH becomes empty
  16754. # (actually we leave an empty line to preserve line numbers).
  16755. if test "x$srcdir" = x.; then
  16756. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16757. h
  16758. s///
  16759. s/^/:/
  16760. s/[ ]*$/:/
  16761. s/:\$(srcdir):/:/g
  16762. s/:\${srcdir}:/:/g
  16763. s/:@srcdir@:/:/g
  16764. s/^:*//
  16765. s/:*$//
  16766. x
  16767. s/\(=[ ]*\).*/\1/
  16768. G
  16769. s/\n//
  16770. s/^[^=]*=[ ]*$//
  16771. }'
  16772. fi
  16773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16774. fi # test -n "$CONFIG_FILES"
  16775. # Set up the scripts for CONFIG_HEADERS section.
  16776. # No need to generate them if there are no CONFIG_HEADERS.
  16777. # This happens for instance with `./config.status Makefile'.
  16778. if test -n "$CONFIG_HEADERS"; then
  16779. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16780. BEGIN {
  16781. _ACEOF
  16782. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16783. # here-document in config.status, that substitutes the proper values into
  16784. # config.h.in to produce config.h.
  16785. # Create a delimiter string that does not exist in confdefs.h, to ease
  16786. # handling of long lines.
  16787. ac_delim='%!_!# '
  16788. for ac_last_try in false false :; do
  16789. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16790. if test -z "$ac_tt"; then
  16791. break
  16792. elif $ac_last_try; then
  16793. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16794. else
  16795. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16796. fi
  16797. done
  16798. # For the awk script, D is an array of macro values keyed by name,
  16799. # likewise P contains macro parameters if any. Preserve backslash
  16800. # newline sequences.
  16801. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16802. sed -n '
  16803. s/.\{148\}/&'"$ac_delim"'/g
  16804. t rset
  16805. :rset
  16806. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16807. t def
  16808. d
  16809. :def
  16810. s/\\$//
  16811. t bsnl
  16812. s/["\\]/\\&/g
  16813. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16814. D["\1"]=" \3"/p
  16815. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16816. d
  16817. :bsnl
  16818. s/["\\]/\\&/g
  16819. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16820. D["\1"]=" \3\\\\\\n"\\/p
  16821. t cont
  16822. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16823. t cont
  16824. d
  16825. :cont
  16826. n
  16827. s/.\{148\}/&'"$ac_delim"'/g
  16828. t clear
  16829. :clear
  16830. s/\\$//
  16831. t bsnlc
  16832. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16833. d
  16834. :bsnlc
  16835. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16836. b cont
  16837. ' <confdefs.h | sed '
  16838. s/'"$ac_delim"'/"\\\
  16839. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16840. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16841. for (key in D) D_is_set[key] = 1
  16842. FS = ""
  16843. }
  16844. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16845. line = \$ 0
  16846. split(line, arg, " ")
  16847. if (arg[1] == "#") {
  16848. defundef = arg[2]
  16849. mac1 = arg[3]
  16850. } else {
  16851. defundef = substr(arg[1], 2)
  16852. mac1 = arg[2]
  16853. }
  16854. split(mac1, mac2, "(") #)
  16855. macro = mac2[1]
  16856. prefix = substr(line, 1, index(line, defundef) - 1)
  16857. if (D_is_set[macro]) {
  16858. # Preserve the white space surrounding the "#".
  16859. print prefix "define", macro P[macro] D[macro]
  16860. next
  16861. } else {
  16862. # Replace #undef with comments. This is necessary, for example,
  16863. # in the case of _POSIX_SOURCE, which is predefined and required
  16864. # on some systems where configure will not decide to define it.
  16865. if (defundef == "undef") {
  16866. print "/*", prefix defundef, macro, "*/"
  16867. next
  16868. }
  16869. }
  16870. }
  16871. { print }
  16872. _ACAWK
  16873. _ACEOF
  16874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16875. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16876. fi # test -n "$CONFIG_HEADERS"
  16877. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16878. shift
  16879. for ac_tag
  16880. do
  16881. case $ac_tag in
  16882. :[FHLC]) ac_mode=$ac_tag; continue;;
  16883. esac
  16884. case $ac_mode$ac_tag in
  16885. :[FHL]*:*);;
  16886. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16887. :[FH]-) ac_tag=-:-;;
  16888. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16889. esac
  16890. ac_save_IFS=$IFS
  16891. IFS=:
  16892. set x $ac_tag
  16893. IFS=$ac_save_IFS
  16894. shift
  16895. ac_file=$1
  16896. shift
  16897. case $ac_mode in
  16898. :L) ac_source=$1;;
  16899. :[FH])
  16900. ac_file_inputs=
  16901. for ac_f
  16902. do
  16903. case $ac_f in
  16904. -) ac_f="$ac_tmp/stdin";;
  16905. *) # Look for the file first in the build tree, then in the source tree
  16906. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16907. # because $ac_f cannot contain `:'.
  16908. test -f "$ac_f" ||
  16909. case $ac_f in
  16910. [\\/$]*) false;;
  16911. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16912. esac ||
  16913. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16914. esac
  16915. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16916. as_fn_append ac_file_inputs " '$ac_f'"
  16917. done
  16918. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16919. # use $as_me), people would be surprised to read:
  16920. # /* config.h. Generated by config.status. */
  16921. configure_input='Generated from '`
  16922. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16923. `' by configure.'
  16924. if test x"$ac_file" != x-; then
  16925. configure_input="$ac_file. $configure_input"
  16926. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16927. $as_echo "$as_me: creating $ac_file" >&6;}
  16928. fi
  16929. # Neutralize special characters interpreted by sed in replacement strings.
  16930. case $configure_input in #(
  16931. *\&* | *\|* | *\\* )
  16932. ac_sed_conf_input=`$as_echo "$configure_input" |
  16933. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16934. *) ac_sed_conf_input=$configure_input;;
  16935. esac
  16936. case $ac_tag in
  16937. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16938. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16939. esac
  16940. ;;
  16941. esac
  16942. ac_dir=`$as_dirname -- "$ac_file" ||
  16943. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16944. X"$ac_file" : 'X\(//\)[^/]' \| \
  16945. X"$ac_file" : 'X\(//\)$' \| \
  16946. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16947. $as_echo X"$ac_file" |
  16948. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16949. s//\1/
  16950. q
  16951. }
  16952. /^X\(\/\/\)[^/].*/{
  16953. s//\1/
  16954. q
  16955. }
  16956. /^X\(\/\/\)$/{
  16957. s//\1/
  16958. q
  16959. }
  16960. /^X\(\/\).*/{
  16961. s//\1/
  16962. q
  16963. }
  16964. s/.*/./; q'`
  16965. as_dir="$ac_dir"; as_fn_mkdir_p
  16966. ac_builddir=.
  16967. case "$ac_dir" in
  16968. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16969. *)
  16970. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16971. # A ".." for each directory in $ac_dir_suffix.
  16972. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16973. case $ac_top_builddir_sub in
  16974. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16975. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16976. esac ;;
  16977. esac
  16978. ac_abs_top_builddir=$ac_pwd
  16979. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16980. # for backward compatibility:
  16981. ac_top_builddir=$ac_top_build_prefix
  16982. case $srcdir in
  16983. .) # We are building in place.
  16984. ac_srcdir=.
  16985. ac_top_srcdir=$ac_top_builddir_sub
  16986. ac_abs_top_srcdir=$ac_pwd ;;
  16987. [\\/]* | ?:[\\/]* ) # Absolute name.
  16988. ac_srcdir=$srcdir$ac_dir_suffix;
  16989. ac_top_srcdir=$srcdir
  16990. ac_abs_top_srcdir=$srcdir ;;
  16991. *) # Relative name.
  16992. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16993. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16994. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16995. esac
  16996. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16997. case $ac_mode in
  16998. :F)
  16999. #
  17000. # CONFIG_FILE
  17001. #
  17002. case $INSTALL in
  17003. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17004. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17005. esac
  17006. ac_MKDIR_P=$MKDIR_P
  17007. case $MKDIR_P in
  17008. [\\/$]* | ?:[\\/]* ) ;;
  17009. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17010. esac
  17011. _ACEOF
  17012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17013. # If the template does not know about datarootdir, expand it.
  17014. # FIXME: This hack should be removed a few years after 2.60.
  17015. ac_datarootdir_hack=; ac_datarootdir_seen=
  17016. ac_sed_dataroot='
  17017. /datarootdir/ {
  17018. p
  17019. q
  17020. }
  17021. /@datadir@/p
  17022. /@docdir@/p
  17023. /@infodir@/p
  17024. /@localedir@/p
  17025. /@mandir@/p'
  17026. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17027. *datarootdir*) ac_datarootdir_seen=yes;;
  17028. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17030. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17031. _ACEOF
  17032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17033. ac_datarootdir_hack='
  17034. s&@datadir@&$datadir&g
  17035. s&@docdir@&$docdir&g
  17036. s&@infodir@&$infodir&g
  17037. s&@localedir@&$localedir&g
  17038. s&@mandir@&$mandir&g
  17039. s&\\\${datarootdir}&$datarootdir&g' ;;
  17040. esac
  17041. _ACEOF
  17042. # Neutralize VPATH when `$srcdir' = `.'.
  17043. # Shell code in configure.ac might set extrasub.
  17044. # FIXME: do we really want to maintain this feature?
  17045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17046. ac_sed_extra="$ac_vpsub
  17047. $extrasub
  17048. _ACEOF
  17049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17050. :t
  17051. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17052. s|@configure_input@|$ac_sed_conf_input|;t t
  17053. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17054. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17055. s&@srcdir@&$ac_srcdir&;t t
  17056. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17057. s&@top_srcdir@&$ac_top_srcdir&;t t
  17058. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17059. s&@builddir@&$ac_builddir&;t t
  17060. s&@abs_builddir@&$ac_abs_builddir&;t t
  17061. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17062. s&@INSTALL@&$ac_INSTALL&;t t
  17063. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17064. $ac_datarootdir_hack
  17065. "
  17066. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17067. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17068. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17069. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17070. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17071. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17073. which seems to be undefined. Please make sure it is defined" >&5
  17074. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17075. which seems to be undefined. Please make sure it is defined" >&2;}
  17076. rm -f "$ac_tmp/stdin"
  17077. case $ac_file in
  17078. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17079. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17080. esac \
  17081. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17082. ;;
  17083. :H)
  17084. #
  17085. # CONFIG_HEADER
  17086. #
  17087. if test x"$ac_file" != x-; then
  17088. {
  17089. $as_echo "/* $configure_input */" \
  17090. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17091. } >"$ac_tmp/config.h" \
  17092. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17093. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17094. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17095. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17096. else
  17097. rm -f "$ac_file"
  17098. mv "$ac_tmp/config.h" "$ac_file" \
  17099. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17100. fi
  17101. else
  17102. $as_echo "/* $configure_input */" \
  17103. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17104. || as_fn_error $? "could not create -" "$LINENO" 5
  17105. fi
  17106. # Compute "$ac_file"'s index in $config_headers.
  17107. _am_arg="$ac_file"
  17108. _am_stamp_count=1
  17109. for _am_header in $config_headers :; do
  17110. case $_am_header in
  17111. $_am_arg | $_am_arg:* )
  17112. break ;;
  17113. * )
  17114. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17115. esac
  17116. done
  17117. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17118. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17119. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17120. X"$_am_arg" : 'X\(//\)$' \| \
  17121. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17122. $as_echo X"$_am_arg" |
  17123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17124. s//\1/
  17125. q
  17126. }
  17127. /^X\(\/\/\)[^/].*/{
  17128. s//\1/
  17129. q
  17130. }
  17131. /^X\(\/\/\)$/{
  17132. s//\1/
  17133. q
  17134. }
  17135. /^X\(\/\).*/{
  17136. s//\1/
  17137. q
  17138. }
  17139. s/.*/./; q'`/stamp-h$_am_stamp_count
  17140. ;;
  17141. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17142. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17143. ;;
  17144. esac
  17145. case $ac_file$ac_mode in
  17146. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17147. # Older Autoconf quotes --file arguments for eval, but not when files
  17148. # are listed without --file. Let's play safe and only enable the eval
  17149. # if we detect the quoting.
  17150. case $CONFIG_FILES in
  17151. *\'*) eval set x "$CONFIG_FILES" ;;
  17152. *) set x $CONFIG_FILES ;;
  17153. esac
  17154. shift
  17155. for mf
  17156. do
  17157. # Strip MF so we end up with the name of the file.
  17158. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17159. # Check whether this is an Automake generated Makefile or not.
  17160. # We used to match only the files named 'Makefile.in', but
  17161. # some people rename them; so instead we look at the file content.
  17162. # Grep'ing the first line is not enough: some people post-process
  17163. # each Makefile.in and add a new line on top of each file to say so.
  17164. # Grep'ing the whole file is not good either: AIX grep has a line
  17165. # limit of 2048, but all sed's we know have understand at least 4000.
  17166. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17167. dirpart=`$as_dirname -- "$mf" ||
  17168. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17169. X"$mf" : 'X\(//\)[^/]' \| \
  17170. X"$mf" : 'X\(//\)$' \| \
  17171. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17172. $as_echo X"$mf" |
  17173. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17174. s//\1/
  17175. q
  17176. }
  17177. /^X\(\/\/\)[^/].*/{
  17178. s//\1/
  17179. q
  17180. }
  17181. /^X\(\/\/\)$/{
  17182. s//\1/
  17183. q
  17184. }
  17185. /^X\(\/\).*/{
  17186. s//\1/
  17187. q
  17188. }
  17189. s/.*/./; q'`
  17190. else
  17191. continue
  17192. fi
  17193. # Extract the definition of DEPDIR, am__include, and am__quote
  17194. # from the Makefile without running 'make'.
  17195. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17196. test -z "$DEPDIR" && continue
  17197. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17198. test -z "$am__include" && continue
  17199. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17200. # Find all dependency output files, they are included files with
  17201. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17202. # simplest approach to changing $(DEPDIR) to its actual value in the
  17203. # expansion.
  17204. for file in `sed -n "
  17205. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17206. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17207. # Make sure the directory exists.
  17208. test -f "$dirpart/$file" && continue
  17209. fdir=`$as_dirname -- "$file" ||
  17210. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17211. X"$file" : 'X\(//\)[^/]' \| \
  17212. X"$file" : 'X\(//\)$' \| \
  17213. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17214. $as_echo X"$file" |
  17215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17216. s//\1/
  17217. q
  17218. }
  17219. /^X\(\/\/\)[^/].*/{
  17220. s//\1/
  17221. q
  17222. }
  17223. /^X\(\/\/\)$/{
  17224. s//\1/
  17225. q
  17226. }
  17227. /^X\(\/\).*/{
  17228. s//\1/
  17229. q
  17230. }
  17231. s/.*/./; q'`
  17232. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17233. # echo "creating $dirpart/$file"
  17234. echo '# dummy' > "$dirpart/$file"
  17235. done
  17236. done
  17237. }
  17238. ;;
  17239. "libtool":C)
  17240. # See if we are running on zsh, and set the options which allow our
  17241. # commands through without removal of \ escapes.
  17242. if test -n "${ZSH_VERSION+set}" ; then
  17243. setopt NO_GLOB_SUBST
  17244. fi
  17245. cfgfile="${ofile}T"
  17246. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17247. $RM "$cfgfile"
  17248. cat <<_LT_EOF >> "$cfgfile"
  17249. #! $SHELL
  17250. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17251. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17252. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17253. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17254. #
  17255. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17256. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  17257. # Foundation, Inc.
  17258. # Written by Gordon Matzigkeit, 1996
  17259. #
  17260. # This file is part of GNU Libtool.
  17261. #
  17262. # GNU Libtool is free software; you can redistribute it and/or
  17263. # modify it under the terms of the GNU General Public License as
  17264. # published by the Free Software Foundation; either version 2 of
  17265. # the License, or (at your option) any later version.
  17266. #
  17267. # As a special exception to the GNU General Public License,
  17268. # if you distribute this file as part of a program or library that
  17269. # is built using GNU Libtool, you may include this file under the
  17270. # same distribution terms that you use for the rest of that program.
  17271. #
  17272. # GNU Libtool is distributed in the hope that it will be useful,
  17273. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17274. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17275. # GNU General Public License for more details.
  17276. #
  17277. # You should have received a copy of the GNU General Public License
  17278. # along with GNU Libtool; see the file COPYING. If not, a copy
  17279. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17280. # obtained by writing to the Free Software Foundation, Inc.,
  17281. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17282. # The names of the tagged configurations supported by this script.
  17283. available_tags="CXX "
  17284. # ### BEGIN LIBTOOL CONFIG
  17285. # Which release of libtool.m4 was used?
  17286. macro_version=$macro_version
  17287. macro_revision=$macro_revision
  17288. # Whether or not to build shared libraries.
  17289. build_libtool_libs=$enable_shared
  17290. # Whether or not to build static libraries.
  17291. build_old_libs=$enable_static
  17292. # What type of objects to build.
  17293. pic_mode=$pic_mode
  17294. # Whether or not to optimize for fast installation.
  17295. fast_install=$enable_fast_install
  17296. # Shell to use when invoking shell scripts.
  17297. SHELL=$lt_SHELL
  17298. # An echo program that protects backslashes.
  17299. ECHO=$lt_ECHO
  17300. # The PATH separator for the build system.
  17301. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  17302. # The host system.
  17303. host_alias=$host_alias
  17304. host=$host
  17305. host_os=$host_os
  17306. # The build system.
  17307. build_alias=$build_alias
  17308. build=$build
  17309. build_os=$build_os
  17310. # A sed program that does not truncate output.
  17311. SED=$lt_SED
  17312. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17313. Xsed="\$SED -e 1s/^X//"
  17314. # A grep program that handles long lines.
  17315. GREP=$lt_GREP
  17316. # An ERE matcher.
  17317. EGREP=$lt_EGREP
  17318. # A literal string matcher.
  17319. FGREP=$lt_FGREP
  17320. # A BSD- or MS-compatible name lister.
  17321. NM=$lt_NM
  17322. # Whether we need soft or hard links.
  17323. LN_S=$lt_LN_S
  17324. # What is the maximum length of a command?
  17325. max_cmd_len=$max_cmd_len
  17326. # Object file suffix (normally "o").
  17327. objext=$ac_objext
  17328. # Executable file suffix (normally "").
  17329. exeext=$exeext
  17330. # whether the shell understands "unset".
  17331. lt_unset=$lt_unset
  17332. # turn spaces into newlines.
  17333. SP2NL=$lt_lt_SP2NL
  17334. # turn newlines into spaces.
  17335. NL2SP=$lt_lt_NL2SP
  17336. # convert \$build file names to \$host format.
  17337. to_host_file_cmd=$lt_cv_to_host_file_cmd
  17338. # convert \$build files to toolchain format.
  17339. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  17340. # An object symbol dumper.
  17341. OBJDUMP=$lt_OBJDUMP
  17342. # Method to check whether dependent libraries are shared objects.
  17343. deplibs_check_method=$lt_deplibs_check_method
  17344. # Command to use when deplibs_check_method = "file_magic".
  17345. file_magic_cmd=$lt_file_magic_cmd
  17346. # How to find potential files when deplibs_check_method = "file_magic".
  17347. file_magic_glob=$lt_file_magic_glob
  17348. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  17349. want_nocaseglob=$lt_want_nocaseglob
  17350. # DLL creation program.
  17351. DLLTOOL=$lt_DLLTOOL
  17352. # Command to associate shared and link libraries.
  17353. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  17354. # The archiver.
  17355. AR=$lt_AR
  17356. # Flags to create an archive.
  17357. AR_FLAGS=$lt_AR_FLAGS
  17358. # How to feed a file listing to the archiver.
  17359. archiver_list_spec=$lt_archiver_list_spec
  17360. # A symbol stripping program.
  17361. STRIP=$lt_STRIP
  17362. # Commands used to install an old-style archive.
  17363. RANLIB=$lt_RANLIB
  17364. old_postinstall_cmds=$lt_old_postinstall_cmds
  17365. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17366. # Whether to use a lock for old archive extraction.
  17367. lock_old_archive_extraction=$lock_old_archive_extraction
  17368. # A C compiler.
  17369. LTCC=$lt_CC
  17370. # LTCC compiler flags.
  17371. LTCFLAGS=$lt_CFLAGS
  17372. # Take the output of nm and produce a listing of raw symbols and C names.
  17373. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17374. # Transform the output of nm in a proper C declaration.
  17375. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17376. # Transform the output of nm in a C name address pair.
  17377. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17378. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17379. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17380. # Specify filename containing input files for \$NM.
  17381. nm_file_list_spec=$lt_nm_file_list_spec
  17382. # The root where to search for dependent libraries,and in which our libraries should be installed.
  17383. lt_sysroot=$lt_sysroot
  17384. # The name of the directory that contains temporary libtool files.
  17385. objdir=$objdir
  17386. # Used to examine libraries when file_magic_cmd begins with "file".
  17387. MAGIC_CMD=$MAGIC_CMD
  17388. # Must we lock files when doing compilation?
  17389. need_locks=$lt_need_locks
  17390. # Manifest tool.
  17391. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  17392. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17393. DSYMUTIL=$lt_DSYMUTIL
  17394. # Tool to change global to local symbols on Mac OS X.
  17395. NMEDIT=$lt_NMEDIT
  17396. # Tool to manipulate fat objects and archives on Mac OS X.
  17397. LIPO=$lt_LIPO
  17398. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17399. OTOOL=$lt_OTOOL
  17400. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17401. OTOOL64=$lt_OTOOL64
  17402. # Old archive suffix (normally "a").
  17403. libext=$libext
  17404. # Shared library suffix (normally ".so").
  17405. shrext_cmds=$lt_shrext_cmds
  17406. # The commands to extract the exported symbol list from a shared archive.
  17407. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17408. # Variables whose values should be saved in libtool wrapper scripts and
  17409. # restored at link time.
  17410. variables_saved_for_relink=$lt_variables_saved_for_relink
  17411. # Do we need the "lib" prefix for modules?
  17412. need_lib_prefix=$need_lib_prefix
  17413. # Do we need a version for libraries?
  17414. need_version=$need_version
  17415. # Library versioning type.
  17416. version_type=$version_type
  17417. # Shared library runtime path variable.
  17418. runpath_var=$runpath_var
  17419. # Shared library path variable.
  17420. shlibpath_var=$shlibpath_var
  17421. # Is shlibpath searched before the hard-coded library search path?
  17422. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17423. # Format of library name prefix.
  17424. libname_spec=$lt_libname_spec
  17425. # List of archive names. First name is the real one, the rest are links.
  17426. # The last name is the one that the linker finds with -lNAME
  17427. library_names_spec=$lt_library_names_spec
  17428. # The coded name of the library, if different from the real name.
  17429. soname_spec=$lt_soname_spec
  17430. # Permission mode override for installation of shared libraries.
  17431. install_override_mode=$lt_install_override_mode
  17432. # Command to use after installation of a shared archive.
  17433. postinstall_cmds=$lt_postinstall_cmds
  17434. # Command to use after uninstallation of a shared archive.
  17435. postuninstall_cmds=$lt_postuninstall_cmds
  17436. # Commands used to finish a libtool library installation in a directory.
  17437. finish_cmds=$lt_finish_cmds
  17438. # As "finish_cmds", except a single script fragment to be evaled but
  17439. # not shown.
  17440. finish_eval=$lt_finish_eval
  17441. # Whether we should hardcode library paths into libraries.
  17442. hardcode_into_libs=$hardcode_into_libs
  17443. # Compile-time system search path for libraries.
  17444. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17445. # Run-time system search path for libraries.
  17446. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17447. # Whether dlopen is supported.
  17448. dlopen_support=$enable_dlopen
  17449. # Whether dlopen of programs is supported.
  17450. dlopen_self=$enable_dlopen_self
  17451. # Whether dlopen of statically linked programs is supported.
  17452. dlopen_self_static=$enable_dlopen_self_static
  17453. # Commands to strip libraries.
  17454. old_striplib=$lt_old_striplib
  17455. striplib=$lt_striplib
  17456. # The linker used to build libraries.
  17457. LD=$lt_LD
  17458. # How to create reloadable object files.
  17459. reload_flag=$lt_reload_flag
  17460. reload_cmds=$lt_reload_cmds
  17461. # Commands used to build an old-style archive.
  17462. old_archive_cmds=$lt_old_archive_cmds
  17463. # A language specific compiler.
  17464. CC=$lt_compiler
  17465. # Is the compiler the GNU compiler?
  17466. with_gcc=$GCC
  17467. # Compiler flag to turn off builtin functions.
  17468. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17469. # Additional compiler flags for building library objects.
  17470. pic_flag=$lt_lt_prog_compiler_pic
  17471. # How to pass a linker flag through the compiler.
  17472. wl=$lt_lt_prog_compiler_wl
  17473. # Compiler flag to prevent dynamic linking.
  17474. link_static_flag=$lt_lt_prog_compiler_static
  17475. # Does compiler simultaneously support -c and -o options?
  17476. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17477. # Whether or not to add -lc for building shared libraries.
  17478. build_libtool_need_lc=$archive_cmds_need_lc
  17479. # Whether or not to disallow shared libs when runtime libs are static.
  17480. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17481. # Compiler flag to allow reflexive dlopens.
  17482. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17483. # Compiler flag to generate shared objects directly from archives.
  17484. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17485. # Whether the compiler copes with passing no objects directly.
  17486. compiler_needs_object=$lt_compiler_needs_object
  17487. # Create an old-style archive from a shared archive.
  17488. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17489. # Create a temporary old-style archive to link instead of a shared archive.
  17490. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17491. # Commands used to build a shared archive.
  17492. archive_cmds=$lt_archive_cmds
  17493. archive_expsym_cmds=$lt_archive_expsym_cmds
  17494. # Commands used to build a loadable module if different from building
  17495. # a shared archive.
  17496. module_cmds=$lt_module_cmds
  17497. module_expsym_cmds=$lt_module_expsym_cmds
  17498. # Whether we are building with GNU ld or not.
  17499. with_gnu_ld=$lt_with_gnu_ld
  17500. # Flag that allows shared libraries with undefined symbols to be built.
  17501. allow_undefined_flag=$lt_allow_undefined_flag
  17502. # Flag that enforces no undefined symbols.
  17503. no_undefined_flag=$lt_no_undefined_flag
  17504. # Flag to hardcode \$libdir into a binary during linking.
  17505. # This must work even if \$libdir does not exist
  17506. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17507. # Whether we need a single "-rpath" flag with a separated argument.
  17508. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17509. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17510. # DIR into the resulting binary.
  17511. hardcode_direct=$hardcode_direct
  17512. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17513. # DIR into the resulting binary and the resulting library dependency is
  17514. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17515. # library is relocated.
  17516. hardcode_direct_absolute=$hardcode_direct_absolute
  17517. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17518. # into the resulting binary.
  17519. hardcode_minus_L=$hardcode_minus_L
  17520. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17521. # into the resulting binary.
  17522. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17523. # Set to "yes" if building a shared library automatically hardcodes DIR
  17524. # into the library and all subsequent libraries and executables linked
  17525. # against it.
  17526. hardcode_automatic=$hardcode_automatic
  17527. # Set to yes if linker adds runtime paths of dependent libraries
  17528. # to runtime path list.
  17529. inherit_rpath=$inherit_rpath
  17530. # Whether libtool must link a program against all its dependency libraries.
  17531. link_all_deplibs=$link_all_deplibs
  17532. # Set to "yes" if exported symbols are required.
  17533. always_export_symbols=$always_export_symbols
  17534. # The commands to list exported symbols.
  17535. export_symbols_cmds=$lt_export_symbols_cmds
  17536. # Symbols that should not be listed in the preloaded symbols.
  17537. exclude_expsyms=$lt_exclude_expsyms
  17538. # Symbols that must always be exported.
  17539. include_expsyms=$lt_include_expsyms
  17540. # Commands necessary for linking programs (against libraries) with templates.
  17541. prelink_cmds=$lt_prelink_cmds
  17542. # Commands necessary for finishing linking programs.
  17543. postlink_cmds=$lt_postlink_cmds
  17544. # Specify filename containing input files.
  17545. file_list_spec=$lt_file_list_spec
  17546. # How to hardcode a shared library path into an executable.
  17547. hardcode_action=$hardcode_action
  17548. # The directories searched by this compiler when creating a shared library.
  17549. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17550. # Dependencies to place before and after the objects being linked to
  17551. # create a shared library.
  17552. predep_objects=$lt_predep_objects
  17553. postdep_objects=$lt_postdep_objects
  17554. predeps=$lt_predeps
  17555. postdeps=$lt_postdeps
  17556. # The library search path used internally by the compiler when linking
  17557. # a shared library.
  17558. compiler_lib_search_path=$lt_compiler_lib_search_path
  17559. # ### END LIBTOOL CONFIG
  17560. _LT_EOF
  17561. case $host_os in
  17562. aix3*)
  17563. cat <<\_LT_EOF >> "$cfgfile"
  17564. # AIX sometimes has problems with the GCC collect2 program. For some
  17565. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17566. # vanish in a puff of smoke.
  17567. if test "X${COLLECT_NAMES+set}" != Xset; then
  17568. COLLECT_NAMES=
  17569. export COLLECT_NAMES
  17570. fi
  17571. _LT_EOF
  17572. ;;
  17573. esac
  17574. ltmain="$ac_aux_dir/ltmain.sh"
  17575. # We use sed instead of cat because bash on DJGPP gets confused if
  17576. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17577. # text mode, it properly converts lines to CR/LF. This bash problem
  17578. # is reportedly fixed, but why not run on old versions too?
  17579. sed '$q' "$ltmain" >> "$cfgfile" \
  17580. || (rm -f "$cfgfile"; exit 1)
  17581. if test x"$xsi_shell" = xyes; then
  17582. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17583. func_dirname ()\
  17584. {\
  17585. \ case ${1} in\
  17586. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17587. \ * ) func_dirname_result="${3}" ;;\
  17588. \ esac\
  17589. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17590. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17591. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17592. test 0 -eq $? || _lt_function_replace_fail=:
  17593. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17594. func_basename ()\
  17595. {\
  17596. \ func_basename_result="${1##*/}"\
  17597. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17598. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17599. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17600. test 0 -eq $? || _lt_function_replace_fail=:
  17601. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17602. func_dirname_and_basename ()\
  17603. {\
  17604. \ case ${1} in\
  17605. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17606. \ * ) func_dirname_result="${3}" ;;\
  17607. \ esac\
  17608. \ func_basename_result="${1##*/}"\
  17609. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17610. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17611. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17612. test 0 -eq $? || _lt_function_replace_fail=:
  17613. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17614. func_stripname ()\
  17615. {\
  17616. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17617. \ # positional parameters, so assign one to ordinary parameter first.\
  17618. \ func_stripname_result=${3}\
  17619. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17620. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17621. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17622. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17623. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17624. test 0 -eq $? || _lt_function_replace_fail=:
  17625. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17626. func_split_long_opt ()\
  17627. {\
  17628. \ func_split_long_opt_name=${1%%=*}\
  17629. \ func_split_long_opt_arg=${1#*=}\
  17630. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17631. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17632. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17633. test 0 -eq $? || _lt_function_replace_fail=:
  17634. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17635. func_split_short_opt ()\
  17636. {\
  17637. \ func_split_short_opt_arg=${1#??}\
  17638. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17639. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17640. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17641. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17642. test 0 -eq $? || _lt_function_replace_fail=:
  17643. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17644. func_lo2o ()\
  17645. {\
  17646. \ case ${1} in\
  17647. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17648. \ *) func_lo2o_result=${1} ;;\
  17649. \ esac\
  17650. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17651. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17652. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17653. test 0 -eq $? || _lt_function_replace_fail=:
  17654. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17655. func_xform ()\
  17656. {\
  17657. func_xform_result=${1%.*}.lo\
  17658. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17659. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17660. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17661. test 0 -eq $? || _lt_function_replace_fail=:
  17662. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17663. func_arith ()\
  17664. {\
  17665. func_arith_result=$(( $* ))\
  17666. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17667. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17668. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17669. test 0 -eq $? || _lt_function_replace_fail=:
  17670. sed -e '/^func_len ()$/,/^} # func_len /c\
  17671. func_len ()\
  17672. {\
  17673. func_len_result=${#1}\
  17674. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17675. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17676. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17677. test 0 -eq $? || _lt_function_replace_fail=:
  17678. fi
  17679. if test x"$lt_shell_append" = xyes; then
  17680. sed -e '/^func_append ()$/,/^} # func_append /c\
  17681. func_append ()\
  17682. {\
  17683. eval "${1}+=\\${2}"\
  17684. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17685. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17686. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17687. test 0 -eq $? || _lt_function_replace_fail=:
  17688. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17689. func_append_quoted ()\
  17690. {\
  17691. \ func_quote_for_eval "${2}"\
  17692. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17693. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17694. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17695. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17696. test 0 -eq $? || _lt_function_replace_fail=:
  17697. # Save a `func_append' function call where possible by direct use of '+='
  17698. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17699. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17700. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17701. test 0 -eq $? || _lt_function_replace_fail=:
  17702. else
  17703. # Save a `func_append' function call even when '+=' is not available
  17704. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17705. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17706. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17707. test 0 -eq $? || _lt_function_replace_fail=:
  17708. fi
  17709. if test x"$_lt_function_replace_fail" = x":"; then
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17711. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17712. fi
  17713. mv -f "$cfgfile" "$ofile" ||
  17714. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17715. chmod +x "$ofile"
  17716. cat <<_LT_EOF >> "$ofile"
  17717. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17718. # The linker used to build libraries.
  17719. LD=$lt_LD_CXX
  17720. # How to create reloadable object files.
  17721. reload_flag=$lt_reload_flag_CXX
  17722. reload_cmds=$lt_reload_cmds_CXX
  17723. # Commands used to build an old-style archive.
  17724. old_archive_cmds=$lt_old_archive_cmds_CXX
  17725. # A language specific compiler.
  17726. CC=$lt_compiler_CXX
  17727. # Is the compiler the GNU compiler?
  17728. with_gcc=$GCC_CXX
  17729. # Compiler flag to turn off builtin functions.
  17730. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17731. # Additional compiler flags for building library objects.
  17732. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17733. # How to pass a linker flag through the compiler.
  17734. wl=$lt_lt_prog_compiler_wl_CXX
  17735. # Compiler flag to prevent dynamic linking.
  17736. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17737. # Does compiler simultaneously support -c and -o options?
  17738. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17739. # Whether or not to add -lc for building shared libraries.
  17740. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17741. # Whether or not to disallow shared libs when runtime libs are static.
  17742. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17743. # Compiler flag to allow reflexive dlopens.
  17744. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17745. # Compiler flag to generate shared objects directly from archives.
  17746. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17747. # Whether the compiler copes with passing no objects directly.
  17748. compiler_needs_object=$lt_compiler_needs_object_CXX
  17749. # Create an old-style archive from a shared archive.
  17750. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17751. # Create a temporary old-style archive to link instead of a shared archive.
  17752. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17753. # Commands used to build a shared archive.
  17754. archive_cmds=$lt_archive_cmds_CXX
  17755. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17756. # Commands used to build a loadable module if different from building
  17757. # a shared archive.
  17758. module_cmds=$lt_module_cmds_CXX
  17759. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17760. # Whether we are building with GNU ld or not.
  17761. with_gnu_ld=$lt_with_gnu_ld_CXX
  17762. # Flag that allows shared libraries with undefined symbols to be built.
  17763. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17764. # Flag that enforces no undefined symbols.
  17765. no_undefined_flag=$lt_no_undefined_flag_CXX
  17766. # Flag to hardcode \$libdir into a binary during linking.
  17767. # This must work even if \$libdir does not exist
  17768. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17769. # Whether we need a single "-rpath" flag with a separated argument.
  17770. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17771. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17772. # DIR into the resulting binary.
  17773. hardcode_direct=$hardcode_direct_CXX
  17774. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17775. # DIR into the resulting binary and the resulting library dependency is
  17776. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17777. # library is relocated.
  17778. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17779. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17780. # into the resulting binary.
  17781. hardcode_minus_L=$hardcode_minus_L_CXX
  17782. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17783. # into the resulting binary.
  17784. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17785. # Set to "yes" if building a shared library automatically hardcodes DIR
  17786. # into the library and all subsequent libraries and executables linked
  17787. # against it.
  17788. hardcode_automatic=$hardcode_automatic_CXX
  17789. # Set to yes if linker adds runtime paths of dependent libraries
  17790. # to runtime path list.
  17791. inherit_rpath=$inherit_rpath_CXX
  17792. # Whether libtool must link a program against all its dependency libraries.
  17793. link_all_deplibs=$link_all_deplibs_CXX
  17794. # Set to "yes" if exported symbols are required.
  17795. always_export_symbols=$always_export_symbols_CXX
  17796. # The commands to list exported symbols.
  17797. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17798. # Symbols that should not be listed in the preloaded symbols.
  17799. exclude_expsyms=$lt_exclude_expsyms_CXX
  17800. # Symbols that must always be exported.
  17801. include_expsyms=$lt_include_expsyms_CXX
  17802. # Commands necessary for linking programs (against libraries) with templates.
  17803. prelink_cmds=$lt_prelink_cmds_CXX
  17804. # Commands necessary for finishing linking programs.
  17805. postlink_cmds=$lt_postlink_cmds_CXX
  17806. # Specify filename containing input files.
  17807. file_list_spec=$lt_file_list_spec_CXX
  17808. # How to hardcode a shared library path into an executable.
  17809. hardcode_action=$hardcode_action_CXX
  17810. # The directories searched by this compiler when creating a shared library.
  17811. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17812. # Dependencies to place before and after the objects being linked to
  17813. # create a shared library.
  17814. predep_objects=$lt_predep_objects_CXX
  17815. postdep_objects=$lt_postdep_objects_CXX
  17816. predeps=$lt_predeps_CXX
  17817. postdeps=$lt_postdeps_CXX
  17818. # The library search path used internally by the compiler when linking
  17819. # a shared library.
  17820. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17821. # ### END LIBTOOL TAG CONFIG: CXX
  17822. _LT_EOF
  17823. ;;
  17824. esac
  17825. done # for ac_tag
  17826. as_fn_exit 0
  17827. _ACEOF
  17828. ac_clean_files=$ac_clean_files_save
  17829. test $ac_write_fail = 0 ||
  17830. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17831. # configure is writing to config.log, and then calls config.status.
  17832. # config.status does its own redirection, appending to config.log.
  17833. # Unfortunately, on DOS this fails, as config.log is still kept open
  17834. # by configure, so config.status won't be able to write to it; its
  17835. # output is simply discarded. So we exec the FD to /dev/null,
  17836. # effectively closing config.log, so it can be properly (re)opened and
  17837. # appended to by config.status. When coming back to configure, we
  17838. # need to make the FD available again.
  17839. if test "$no_create" != yes; then
  17840. ac_cs_success=:
  17841. ac_config_status_args=
  17842. test "$silent" = yes &&
  17843. ac_config_status_args="$ac_config_status_args --quiet"
  17844. exec 5>/dev/null
  17845. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17846. exec 5>>config.log
  17847. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17848. # would make configure fail if this is the last instruction.
  17849. $ac_cs_success || as_fn_exit 1
  17850. fi
  17851. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17853. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17854. fi
  17855. echo "
  17856. Configuration for $PACKAGE $VERSION:
  17857. -------------------------------------------
  17858. Install prefix: .........: $prefix
  17859. Debug code ..............: $building_debug_code
  17860. Python bindings .........: $cython_python_bindings
  17861. SSL support backend .....: $ssl_provider
  17862. Now type 'make' to build $PACKAGE $VERSION,
  17863. and then 'make install' for installation.
  17864. "