configure 453 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libusb 1.0.16-rc10.
  4. #
  5. # Report bugs to <libusb-devel@lists.sourceforge.net>.
  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: libusb-devel@lists.sourceforge.net about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libusb'
  542. PACKAGE_TARNAME='libusb'
  543. PACKAGE_VERSION='1.0.16-rc10'
  544. PACKAGE_STRING='libusb 1.0.16-rc10'
  545. PACKAGE_BUGREPORT='libusb-devel@lists.sourceforge.net'
  546. PACKAGE_URL='http://www.libusb.org/'
  547. ac_unique_file="libusb/core.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. LTLDFLAGS
  588. AM_CFLAGS
  589. HAVE_SIGACTION_FALSE
  590. HAVE_SIGACTION_TRUE
  591. BUILD_EXAMPLES_FALSE
  592. BUILD_EXAMPLES_TRUE
  593. USE_UDEV_FALSE
  594. USE_UDEV_TRUE
  595. THREADS_POSIX_FALSE
  596. THREADS_POSIX_TRUE
  597. OS_WINDOWS_FALSE
  598. OS_WINDOWS_TRUE
  599. OS_OPENBSD_FALSE
  600. OS_OPENBSD_TRUE
  601. OS_DARWIN_FALSE
  602. OS_DARWIN_TRUE
  603. OS_LINUX_FALSE
  604. OS_LINUX_TRUE
  605. OS_WINDOWS
  606. OS_OPENBSD
  607. OS_DARWIN
  608. USE_UDEV
  609. OS_LINUX
  610. RC
  611. CPP
  612. LT_SYS_LIBRARY_PATH
  613. OTOOL64
  614. OTOOL
  615. LIPO
  616. NMEDIT
  617. DSYMUTIL
  618. MANIFEST_TOOL
  619. RANLIB
  620. ac_ct_AR
  621. AR
  622. DLLTOOL
  623. OBJDUMP
  624. LN_S
  625. NM
  626. ac_ct_DUMPBIN
  627. DUMPBIN
  628. LD
  629. FGREP
  630. EGREP
  631. GREP
  632. SED
  633. host_os
  634. host_vendor
  635. host_cpu
  636. host
  637. build_os
  638. build_vendor
  639. build_cpu
  640. build
  641. LIBTOOL
  642. am__fastdepCC_FALSE
  643. am__fastdepCC_TRUE
  644. CCDEPMODE
  645. am__nodep
  646. AMDEPBACKSLASH
  647. AMDEP_FALSE
  648. AMDEP_TRUE
  649. am__quote
  650. am__include
  651. DEPDIR
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. MAINT
  660. MAINTAINER_MODE_FALSE
  661. MAINTAINER_MODE_TRUE
  662. AM_BACKSLASH
  663. AM_DEFAULT_VERBOSITY
  664. AM_DEFAULT_V
  665. AM_V
  666. am__untar
  667. am__tar
  668. AMTAR
  669. am__leading_dot
  670. SET_MAKE
  671. AWK
  672. mkdir_p
  673. MKDIR_P
  674. INSTALL_STRIP_PROGRAM
  675. STRIP
  676. install_sh
  677. MAKEINFO
  678. AUTOHEADER
  679. AUTOMAKE
  680. AUTOCONF
  681. ACLOCAL
  682. VERSION
  683. PACKAGE
  684. CYGPATH_W
  685. am__isrc
  686. INSTALL_DATA
  687. INSTALL_SCRIPT
  688. INSTALL_PROGRAM
  689. target_alias
  690. host_alias
  691. build_alias
  692. LIBS
  693. ECHO_T
  694. ECHO_N
  695. ECHO_C
  696. DEFS
  697. mandir
  698. localedir
  699. libdir
  700. psdir
  701. pdfdir
  702. dvidir
  703. htmldir
  704. infodir
  705. docdir
  706. oldincludedir
  707. includedir
  708. runstatedir
  709. localstatedir
  710. sharedstatedir
  711. sysconfdir
  712. datadir
  713. datarootdir
  714. libexecdir
  715. sbindir
  716. bindir
  717. program_transform_name
  718. prefix
  719. exec_prefix
  720. PACKAGE_URL
  721. PACKAGE_BUGREPORT
  722. PACKAGE_STRING
  723. PACKAGE_VERSION
  724. PACKAGE_TARNAME
  725. PACKAGE_NAME
  726. PATH_SEPARATOR
  727. SHELL'
  728. ac_subst_files=''
  729. ac_user_opts='
  730. enable_option_checking
  731. enable_silent_rules
  732. enable_maintainer_mode
  733. enable_dependency_tracking
  734. enable_shared
  735. enable_static
  736. with_pic
  737. enable_fast_install
  738. with_aix_soname
  739. with_gnu_ld
  740. with_sysroot
  741. enable_libtool_lock
  742. enable_udev
  743. enable_timerfd
  744. enable_log
  745. enable_debug_log
  746. enable_examples_build
  747. '
  748. ac_precious_vars='build_alias
  749. host_alias
  750. target_alias
  751. CC
  752. CFLAGS
  753. LDFLAGS
  754. LIBS
  755. CPPFLAGS
  756. LT_SYS_LIBRARY_PATH
  757. CPP'
  758. # Initialize some variables set by options.
  759. ac_init_help=
  760. ac_init_version=false
  761. ac_unrecognized_opts=
  762. ac_unrecognized_sep=
  763. # The variables have the same names as the options, with
  764. # dashes changed to underlines.
  765. cache_file=/dev/null
  766. exec_prefix=NONE
  767. no_create=
  768. no_recursion=
  769. prefix=NONE
  770. program_prefix=NONE
  771. program_suffix=NONE
  772. program_transform_name=s,x,x,
  773. silent=
  774. site=
  775. srcdir=
  776. verbose=
  777. x_includes=NONE
  778. x_libraries=NONE
  779. # Installation directory options.
  780. # These are left unexpanded so users can "make install exec_prefix=/foo"
  781. # and all the variables that are supposed to be based on exec_prefix
  782. # by default will actually change.
  783. # Use braces instead of parens because sh, perl, etc. also accept them.
  784. # (The list follows the same order as the GNU Coding Standards.)
  785. bindir='${exec_prefix}/bin'
  786. sbindir='${exec_prefix}/sbin'
  787. libexecdir='${exec_prefix}/libexec'
  788. datarootdir='${prefix}/share'
  789. datadir='${datarootdir}'
  790. sysconfdir='${prefix}/etc'
  791. sharedstatedir='${prefix}/com'
  792. localstatedir='${prefix}/var'
  793. runstatedir='${localstatedir}/run'
  794. includedir='${prefix}/include'
  795. oldincludedir='/usr/include'
  796. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  797. infodir='${datarootdir}/info'
  798. htmldir='${docdir}'
  799. dvidir='${docdir}'
  800. pdfdir='${docdir}'
  801. psdir='${docdir}'
  802. libdir='${exec_prefix}/lib'
  803. localedir='${datarootdir}/locale'
  804. mandir='${datarootdir}/man'
  805. ac_prev=
  806. ac_dashdash=
  807. for ac_option
  808. do
  809. # If the previous option needs an argument, assign it.
  810. if test -n "$ac_prev"; then
  811. eval $ac_prev=\$ac_option
  812. ac_prev=
  813. continue
  814. fi
  815. case $ac_option in
  816. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  817. *=) ac_optarg= ;;
  818. *) ac_optarg=yes ;;
  819. esac
  820. # Accept the important Cygnus configure options, so we can diagnose typos.
  821. case $ac_dashdash$ac_option in
  822. --)
  823. ac_dashdash=yes ;;
  824. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  825. ac_prev=bindir ;;
  826. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  827. bindir=$ac_optarg ;;
  828. -build | --build | --buil | --bui | --bu)
  829. ac_prev=build_alias ;;
  830. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  831. build_alias=$ac_optarg ;;
  832. -cache-file | --cache-file | --cache-fil | --cache-fi \
  833. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  834. ac_prev=cache_file ;;
  835. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  836. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  837. cache_file=$ac_optarg ;;
  838. --config-cache | -C)
  839. cache_file=config.cache ;;
  840. -datadir | --datadir | --datadi | --datad)
  841. ac_prev=datadir ;;
  842. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  843. datadir=$ac_optarg ;;
  844. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  845. | --dataroo | --dataro | --datar)
  846. ac_prev=datarootdir ;;
  847. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  848. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  849. datarootdir=$ac_optarg ;;
  850. -disable-* | --disable-*)
  851. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  852. # Reject names that are not valid shell variable names.
  853. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  854. as_fn_error $? "invalid feature name: $ac_useropt"
  855. ac_useropt_orig=$ac_useropt
  856. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  857. case $ac_user_opts in
  858. *"
  859. "enable_$ac_useropt"
  860. "*) ;;
  861. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  862. ac_unrecognized_sep=', ';;
  863. esac
  864. eval enable_$ac_useropt=no ;;
  865. -docdir | --docdir | --docdi | --doc | --do)
  866. ac_prev=docdir ;;
  867. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  868. docdir=$ac_optarg ;;
  869. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  870. ac_prev=dvidir ;;
  871. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  872. dvidir=$ac_optarg ;;
  873. -enable-* | --enable-*)
  874. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  875. # Reject names that are not valid shell variable names.
  876. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  877. as_fn_error $? "invalid feature name: $ac_useropt"
  878. ac_useropt_orig=$ac_useropt
  879. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  880. case $ac_user_opts in
  881. *"
  882. "enable_$ac_useropt"
  883. "*) ;;
  884. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  885. ac_unrecognized_sep=', ';;
  886. esac
  887. eval enable_$ac_useropt=\$ac_optarg ;;
  888. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  889. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  890. | --exec | --exe | --ex)
  891. ac_prev=exec_prefix ;;
  892. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  893. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  894. | --exec=* | --exe=* | --ex=*)
  895. exec_prefix=$ac_optarg ;;
  896. -gas | --gas | --ga | --g)
  897. # Obsolete; use --with-gas.
  898. with_gas=yes ;;
  899. -help | --help | --hel | --he | -h)
  900. ac_init_help=long ;;
  901. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  902. ac_init_help=recursive ;;
  903. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  904. ac_init_help=short ;;
  905. -host | --host | --hos | --ho)
  906. ac_prev=host_alias ;;
  907. -host=* | --host=* | --hos=* | --ho=*)
  908. host_alias=$ac_optarg ;;
  909. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  910. ac_prev=htmldir ;;
  911. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  912. | --ht=*)
  913. htmldir=$ac_optarg ;;
  914. -includedir | --includedir | --includedi | --included | --include \
  915. | --includ | --inclu | --incl | --inc)
  916. ac_prev=includedir ;;
  917. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  918. | --includ=* | --inclu=* | --incl=* | --inc=*)
  919. includedir=$ac_optarg ;;
  920. -infodir | --infodir | --infodi | --infod | --info | --inf)
  921. ac_prev=infodir ;;
  922. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  923. infodir=$ac_optarg ;;
  924. -libdir | --libdir | --libdi | --libd)
  925. ac_prev=libdir ;;
  926. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  927. libdir=$ac_optarg ;;
  928. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  929. | --libexe | --libex | --libe)
  930. ac_prev=libexecdir ;;
  931. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  932. | --libexe=* | --libex=* | --libe=*)
  933. libexecdir=$ac_optarg ;;
  934. -localedir | --localedir | --localedi | --localed | --locale)
  935. ac_prev=localedir ;;
  936. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  937. localedir=$ac_optarg ;;
  938. -localstatedir | --localstatedir | --localstatedi | --localstated \
  939. | --localstate | --localstat | --localsta | --localst | --locals)
  940. ac_prev=localstatedir ;;
  941. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  942. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  943. localstatedir=$ac_optarg ;;
  944. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  945. ac_prev=mandir ;;
  946. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  947. mandir=$ac_optarg ;;
  948. -nfp | --nfp | --nf)
  949. # Obsolete; use --without-fp.
  950. with_fp=no ;;
  951. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  952. | --no-cr | --no-c | -n)
  953. no_create=yes ;;
  954. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  955. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  956. no_recursion=yes ;;
  957. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  958. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  959. | --oldin | --oldi | --old | --ol | --o)
  960. ac_prev=oldincludedir ;;
  961. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  962. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  963. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  964. oldincludedir=$ac_optarg ;;
  965. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  966. ac_prev=prefix ;;
  967. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  968. prefix=$ac_optarg ;;
  969. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  970. | --program-pre | --program-pr | --program-p)
  971. ac_prev=program_prefix ;;
  972. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  973. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  974. program_prefix=$ac_optarg ;;
  975. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  976. | --program-suf | --program-su | --program-s)
  977. ac_prev=program_suffix ;;
  978. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  979. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  980. program_suffix=$ac_optarg ;;
  981. -program-transform-name | --program-transform-name \
  982. | --program-transform-nam | --program-transform-na \
  983. | --program-transform-n | --program-transform- \
  984. | --program-transform | --program-transfor \
  985. | --program-transfo | --program-transf \
  986. | --program-trans | --program-tran \
  987. | --progr-tra | --program-tr | --program-t)
  988. ac_prev=program_transform_name ;;
  989. -program-transform-name=* | --program-transform-name=* \
  990. | --program-transform-nam=* | --program-transform-na=* \
  991. | --program-transform-n=* | --program-transform-=* \
  992. | --program-transform=* | --program-transfor=* \
  993. | --program-transfo=* | --program-transf=* \
  994. | --program-trans=* | --program-tran=* \
  995. | --progr-tra=* | --program-tr=* | --program-t=*)
  996. program_transform_name=$ac_optarg ;;
  997. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  998. ac_prev=pdfdir ;;
  999. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1000. pdfdir=$ac_optarg ;;
  1001. -psdir | --psdir | --psdi | --psd | --ps)
  1002. ac_prev=psdir ;;
  1003. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1004. psdir=$ac_optarg ;;
  1005. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1006. | -silent | --silent | --silen | --sile | --sil)
  1007. silent=yes ;;
  1008. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1009. | --runstate | --runstat | --runsta | --runst | --runs \
  1010. | --run | --ru | --r)
  1011. ac_prev=runstatedir ;;
  1012. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1013. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1014. | --run=* | --ru=* | --r=*)
  1015. runstatedir=$ac_optarg ;;
  1016. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1017. ac_prev=sbindir ;;
  1018. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1019. | --sbi=* | --sb=*)
  1020. sbindir=$ac_optarg ;;
  1021. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1022. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1023. | --sharedst | --shareds | --shared | --share | --shar \
  1024. | --sha | --sh)
  1025. ac_prev=sharedstatedir ;;
  1026. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1027. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1028. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1029. | --sha=* | --sh=*)
  1030. sharedstatedir=$ac_optarg ;;
  1031. -site | --site | --sit)
  1032. ac_prev=site ;;
  1033. -site=* | --site=* | --sit=*)
  1034. site=$ac_optarg ;;
  1035. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1036. ac_prev=srcdir ;;
  1037. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1038. srcdir=$ac_optarg ;;
  1039. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1040. | --syscon | --sysco | --sysc | --sys | --sy)
  1041. ac_prev=sysconfdir ;;
  1042. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1043. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1044. sysconfdir=$ac_optarg ;;
  1045. -target | --target | --targe | --targ | --tar | --ta | --t)
  1046. ac_prev=target_alias ;;
  1047. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1048. target_alias=$ac_optarg ;;
  1049. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1050. verbose=yes ;;
  1051. -version | --version | --versio | --versi | --vers | -V)
  1052. ac_init_version=: ;;
  1053. -with-* | --with-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid package name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "with_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval with_$ac_useropt=\$ac_optarg ;;
  1068. -without-* | --without-*)
  1069. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1070. # Reject names that are not valid shell variable names.
  1071. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1072. as_fn_error $? "invalid package name: $ac_useropt"
  1073. ac_useropt_orig=$ac_useropt
  1074. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1075. case $ac_user_opts in
  1076. *"
  1077. "with_$ac_useropt"
  1078. "*) ;;
  1079. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1080. ac_unrecognized_sep=', ';;
  1081. esac
  1082. eval with_$ac_useropt=no ;;
  1083. --x)
  1084. # Obsolete; use --with-x.
  1085. with_x=yes ;;
  1086. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1087. | --x-incl | --x-inc | --x-in | --x-i)
  1088. ac_prev=x_includes ;;
  1089. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1090. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1091. x_includes=$ac_optarg ;;
  1092. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1093. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1094. ac_prev=x_libraries ;;
  1095. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1096. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1097. x_libraries=$ac_optarg ;;
  1098. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1099. Try \`$0 --help' for more information"
  1100. ;;
  1101. *=*)
  1102. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1103. # Reject names that are not valid shell variable names.
  1104. case $ac_envvar in #(
  1105. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1106. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1107. esac
  1108. eval $ac_envvar=\$ac_optarg
  1109. export $ac_envvar ;;
  1110. *)
  1111. # FIXME: should be removed in autoconf 3.0.
  1112. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1113. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1114. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1115. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1116. ;;
  1117. esac
  1118. done
  1119. if test -n "$ac_prev"; then
  1120. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1121. as_fn_error $? "missing argument to $ac_option"
  1122. fi
  1123. if test -n "$ac_unrecognized_opts"; then
  1124. case $enable_option_checking in
  1125. no) ;;
  1126. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1127. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1128. esac
  1129. fi
  1130. # Check all directory arguments for consistency.
  1131. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1132. datadir sysconfdir sharedstatedir localstatedir includedir \
  1133. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1134. libdir localedir mandir runstatedir
  1135. do
  1136. eval ac_val=\$$ac_var
  1137. # Remove trailing slashes.
  1138. case $ac_val in
  1139. */ )
  1140. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1141. eval $ac_var=\$ac_val;;
  1142. esac
  1143. # Be sure to have absolute directory names.
  1144. case $ac_val in
  1145. [\\/$]* | ?:[\\/]* ) continue;;
  1146. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1147. esac
  1148. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1149. done
  1150. # There might be people who depend on the old broken behavior: `$host'
  1151. # used to hold the argument of --host etc.
  1152. # FIXME: To remove some day.
  1153. build=$build_alias
  1154. host=$host_alias
  1155. target=$target_alias
  1156. # FIXME: To remove some day.
  1157. if test "x$host_alias" != x; then
  1158. if test "x$build_alias" = x; then
  1159. cross_compiling=maybe
  1160. elif test "x$build_alias" != "x$host_alias"; then
  1161. cross_compiling=yes
  1162. fi
  1163. fi
  1164. ac_tool_prefix=
  1165. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1166. test "$silent" = yes && exec 6>/dev/null
  1167. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1168. ac_ls_di=`ls -di .` &&
  1169. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1170. as_fn_error $? "working directory cannot be determined"
  1171. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1172. as_fn_error $? "pwd does not report name of working directory"
  1173. # Find the source files, if location was not specified.
  1174. if test -z "$srcdir"; then
  1175. ac_srcdir_defaulted=yes
  1176. # Try the directory containing this script, then the parent directory.
  1177. ac_confdir=`$as_dirname -- "$as_myself" ||
  1178. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1179. X"$as_myself" : 'X\(//\)[^/]' \| \
  1180. X"$as_myself" : 'X\(//\)$' \| \
  1181. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1182. $as_echo X"$as_myself" |
  1183. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1184. s//\1/
  1185. q
  1186. }
  1187. /^X\(\/\/\)[^/].*/{
  1188. s//\1/
  1189. q
  1190. }
  1191. /^X\(\/\/\)$/{
  1192. s//\1/
  1193. q
  1194. }
  1195. /^X\(\/\).*/{
  1196. s//\1/
  1197. q
  1198. }
  1199. s/.*/./; q'`
  1200. srcdir=$ac_confdir
  1201. if test ! -r "$srcdir/$ac_unique_file"; then
  1202. srcdir=..
  1203. fi
  1204. else
  1205. ac_srcdir_defaulted=no
  1206. fi
  1207. if test ! -r "$srcdir/$ac_unique_file"; then
  1208. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1209. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1210. fi
  1211. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1212. ac_abs_confdir=`(
  1213. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1214. pwd)`
  1215. # When building in place, set srcdir=.
  1216. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1217. srcdir=.
  1218. fi
  1219. # Remove unnecessary trailing slashes from srcdir.
  1220. # Double slashes in file names in object file debugging info
  1221. # mess up M-x gdb in Emacs.
  1222. case $srcdir in
  1223. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1224. esac
  1225. for ac_var in $ac_precious_vars; do
  1226. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1227. eval ac_env_${ac_var}_value=\$${ac_var}
  1228. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1229. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1230. done
  1231. #
  1232. # Report the --help message.
  1233. #
  1234. if test "$ac_init_help" = "long"; then
  1235. # Omit some internal or obsolete options to make the list less imposing.
  1236. # This message is too long to be a string in the A/UX 3.1 sh.
  1237. cat <<_ACEOF
  1238. \`configure' configures libusb 1.0.16-rc10 to adapt to many kinds of systems.
  1239. Usage: $0 [OPTION]... [VAR=VALUE]...
  1240. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1241. VAR=VALUE. See below for descriptions of some of the useful variables.
  1242. Defaults for the options are specified in brackets.
  1243. Configuration:
  1244. -h, --help display this help and exit
  1245. --help=short display options specific to this package
  1246. --help=recursive display the short help of all the included packages
  1247. -V, --version display version information and exit
  1248. -q, --quiet, --silent do not print \`checking ...' messages
  1249. --cache-file=FILE cache test results in FILE [disabled]
  1250. -C, --config-cache alias for \`--cache-file=config.cache'
  1251. -n, --no-create do not create output files
  1252. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1253. Installation directories:
  1254. --prefix=PREFIX install architecture-independent files in PREFIX
  1255. [$ac_default_prefix]
  1256. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1257. [PREFIX]
  1258. By default, \`make install' will install all the files in
  1259. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1260. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1261. for instance \`--prefix=\$HOME'.
  1262. For better control, use the options below.
  1263. Fine tuning of the installation directories:
  1264. --bindir=DIR user executables [EPREFIX/bin]
  1265. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1266. --libexecdir=DIR program executables [EPREFIX/libexec]
  1267. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1268. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1269. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1270. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1271. --libdir=DIR object code libraries [EPREFIX/lib]
  1272. --includedir=DIR C header files [PREFIX/include]
  1273. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1274. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1275. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1276. --infodir=DIR info documentation [DATAROOTDIR/info]
  1277. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1278. --mandir=DIR man documentation [DATAROOTDIR/man]
  1279. --docdir=DIR documentation root [DATAROOTDIR/doc/libusb]
  1280. --htmldir=DIR html documentation [DOCDIR]
  1281. --dvidir=DIR dvi documentation [DOCDIR]
  1282. --pdfdir=DIR pdf documentation [DOCDIR]
  1283. --psdir=DIR ps documentation [DOCDIR]
  1284. _ACEOF
  1285. cat <<\_ACEOF
  1286. Program names:
  1287. --program-prefix=PREFIX prepend PREFIX to installed program names
  1288. --program-suffix=SUFFIX append SUFFIX to installed program names
  1289. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1290. System types:
  1291. --build=BUILD configure for building on BUILD [guessed]
  1292. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1293. _ACEOF
  1294. fi
  1295. if test -n "$ac_init_help"; then
  1296. case $ac_init_help in
  1297. short | recursive ) echo "Configuration of libusb 1.0.16-rc10:";;
  1298. esac
  1299. cat <<\_ACEOF
  1300. Optional Features:
  1301. --disable-option-checking ignore unrecognized --enable/--with options
  1302. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1303. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1304. --enable-silent-rules less verbose build output (undo: "make V=1")
  1305. --disable-silent-rules verbose build output (undo: "make V=0")
  1306. --enable-maintainer-mode
  1307. enable make rules and dependencies not useful (and
  1308. sometimes confusing) to the casual installer
  1309. --enable-dependency-tracking
  1310. do not reject slow dependency extractors
  1311. --disable-dependency-tracking
  1312. speeds up one-time build
  1313. --enable-shared[=PKGS] build shared libraries [default=yes]
  1314. --enable-static[=PKGS] build static libraries [default=yes]
  1315. --enable-fast-install[=PKGS]
  1316. optimize for fast installation [default=yes]
  1317. --disable-libtool-lock avoid locking (might break parallel builds)
  1318. --with-udev use udev for device enumeration and hotplug support
  1319. (recommended, default: yes)
  1320. --enable-timerfd use timerfd for timing (default auto)
  1321. --disable-log disable all logging
  1322. --enable-debug-log enable debug logging (default n)
  1323. --enable-examples-build build example applications (default n)
  1324. Optional Packages:
  1325. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1326. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1327. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1328. both]
  1329. --with-aix-soname=aix|svr4|both
  1330. shared library versioning (aka "SONAME") variant to
  1331. provide on AIX, [default=aix].
  1332. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1333. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1334. compiler's sysroot if not specified).
  1335. Some influential environment variables:
  1336. CC C compiler command
  1337. CFLAGS C compiler flags
  1338. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1339. nonstandard directory <lib dir>
  1340. LIBS libraries to pass to the linker, e.g. -l<library>
  1341. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1342. you have headers in a nonstandard directory <include dir>
  1343. LT_SYS_LIBRARY_PATH
  1344. User-defined run-time library search path.
  1345. CPP C preprocessor
  1346. Use these variables to override the choices made by `configure' or to help
  1347. it to find libraries and programs with nonstandard names/locations.
  1348. Report bugs to <libusb-devel@lists.sourceforge.net>.
  1349. libusb home page: <http://www.libusb.org/>.
  1350. _ACEOF
  1351. ac_status=$?
  1352. fi
  1353. if test "$ac_init_help" = "recursive"; then
  1354. # If there are subdirs, report their specific --help.
  1355. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1356. test -d "$ac_dir" ||
  1357. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1358. continue
  1359. ac_builddir=.
  1360. case "$ac_dir" in
  1361. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *)
  1363. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1364. # A ".." for each directory in $ac_dir_suffix.
  1365. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1366. case $ac_top_builddir_sub in
  1367. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1368. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1369. esac ;;
  1370. esac
  1371. ac_abs_top_builddir=$ac_pwd
  1372. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1373. # for backward compatibility:
  1374. ac_top_builddir=$ac_top_build_prefix
  1375. case $srcdir in
  1376. .) # We are building in place.
  1377. ac_srcdir=.
  1378. ac_top_srcdir=$ac_top_builddir_sub
  1379. ac_abs_top_srcdir=$ac_pwd ;;
  1380. [\\/]* | ?:[\\/]* ) # Absolute name.
  1381. ac_srcdir=$srcdir$ac_dir_suffix;
  1382. ac_top_srcdir=$srcdir
  1383. ac_abs_top_srcdir=$srcdir ;;
  1384. *) # Relative name.
  1385. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1386. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1387. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1388. esac
  1389. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1390. cd "$ac_dir" || { ac_status=$?; continue; }
  1391. # Check for guested configure.
  1392. if test -f "$ac_srcdir/configure.gnu"; then
  1393. echo &&
  1394. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1395. elif test -f "$ac_srcdir/configure"; then
  1396. echo &&
  1397. $SHELL "$ac_srcdir/configure" --help=recursive
  1398. else
  1399. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1400. fi || ac_status=$?
  1401. cd "$ac_pwd" || { ac_status=$?; break; }
  1402. done
  1403. fi
  1404. test -n "$ac_init_help" && exit $ac_status
  1405. if $ac_init_version; then
  1406. cat <<\_ACEOF
  1407. libusb configure 1.0.16-rc10
  1408. generated by GNU Autoconf 2.69
  1409. Copyright (C) 2012 Free Software Foundation, Inc.
  1410. This configure script is free software; the Free Software Foundation
  1411. gives unlimited permission to copy, distribute and modify it.
  1412. _ACEOF
  1413. exit
  1414. fi
  1415. ## ------------------------ ##
  1416. ## Autoconf initialization. ##
  1417. ## ------------------------ ##
  1418. # ac_fn_c_try_compile LINENO
  1419. # --------------------------
  1420. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1421. ac_fn_c_try_compile ()
  1422. {
  1423. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1424. rm -f conftest.$ac_objext
  1425. if { { ac_try="$ac_compile"
  1426. case "(($ac_try" in
  1427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1428. *) ac_try_echo=$ac_try;;
  1429. esac
  1430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1431. $as_echo "$ac_try_echo"; } >&5
  1432. (eval "$ac_compile") 2>conftest.err
  1433. ac_status=$?
  1434. if test -s conftest.err; then
  1435. grep -v '^ *+' conftest.err >conftest.er1
  1436. cat conftest.er1 >&5
  1437. mv -f conftest.er1 conftest.err
  1438. fi
  1439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1440. test $ac_status = 0; } && {
  1441. test -z "$ac_c_werror_flag" ||
  1442. test ! -s conftest.err
  1443. } && test -s conftest.$ac_objext; then :
  1444. ac_retval=0
  1445. else
  1446. $as_echo "$as_me: failed program was:" >&5
  1447. sed 's/^/| /' conftest.$ac_ext >&5
  1448. ac_retval=1
  1449. fi
  1450. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1451. as_fn_set_status $ac_retval
  1452. } # ac_fn_c_try_compile
  1453. # ac_fn_c_try_link LINENO
  1454. # -----------------------
  1455. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1456. ac_fn_c_try_link ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. rm -f conftest.$ac_objext conftest$ac_exeext
  1460. if { { ac_try="$ac_link"
  1461. case "(($ac_try" in
  1462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1463. *) ac_try_echo=$ac_try;;
  1464. esac
  1465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1466. $as_echo "$ac_try_echo"; } >&5
  1467. (eval "$ac_link") 2>conftest.err
  1468. ac_status=$?
  1469. if test -s conftest.err; then
  1470. grep -v '^ *+' conftest.err >conftest.er1
  1471. cat conftest.er1 >&5
  1472. mv -f conftest.er1 conftest.err
  1473. fi
  1474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1475. test $ac_status = 0; } && {
  1476. test -z "$ac_c_werror_flag" ||
  1477. test ! -s conftest.err
  1478. } && test -s conftest$ac_exeext && {
  1479. test "$cross_compiling" = yes ||
  1480. test -x conftest$ac_exeext
  1481. }; then :
  1482. ac_retval=0
  1483. else
  1484. $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486. ac_retval=1
  1487. fi
  1488. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1489. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1490. # interfere with the next link command; also delete a directory that is
  1491. # left behind by Apple's compiler. We do this before executing the actions.
  1492. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1493. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1494. as_fn_set_status $ac_retval
  1495. } # ac_fn_c_try_link
  1496. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1497. # -------------------------------------------------------
  1498. # Tests whether HEADER exists and can be compiled using the include files in
  1499. # INCLUDES, setting the cache variable VAR accordingly.
  1500. ac_fn_c_check_header_compile ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1504. $as_echo_n "checking for $2... " >&6; }
  1505. if eval \${$3+:} false; then :
  1506. $as_echo_n "(cached) " >&6
  1507. else
  1508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1509. /* end confdefs.h. */
  1510. $4
  1511. #include <$2>
  1512. _ACEOF
  1513. if ac_fn_c_try_compile "$LINENO"; then :
  1514. eval "$3=yes"
  1515. else
  1516. eval "$3=no"
  1517. fi
  1518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1519. fi
  1520. eval ac_res=\$$3
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1522. $as_echo "$ac_res" >&6; }
  1523. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1524. } # ac_fn_c_check_header_compile
  1525. # ac_fn_c_try_cpp LINENO
  1526. # ----------------------
  1527. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1528. ac_fn_c_try_cpp ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } > conftest.i && {
  1547. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1548. test ! -s conftest.err
  1549. }; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. as_fn_set_status $ac_retval
  1558. } # ac_fn_c_try_cpp
  1559. # ac_fn_c_try_run LINENO
  1560. # ----------------------
  1561. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1562. # that executables *can* be run.
  1563. ac_fn_c_try_run ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. if { { ac_try="$ac_link"
  1567. case "(($ac_try" in
  1568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1569. *) ac_try_echo=$ac_try;;
  1570. esac
  1571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1572. $as_echo "$ac_try_echo"; } >&5
  1573. (eval "$ac_link") 2>&5
  1574. ac_status=$?
  1575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1576. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1577. { { case "(($ac_try" in
  1578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1579. *) ac_try_echo=$ac_try;;
  1580. esac
  1581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1582. $as_echo "$ac_try_echo"; } >&5
  1583. (eval "$ac_try") 2>&5
  1584. ac_status=$?
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; }; }; then :
  1587. ac_retval=0
  1588. else
  1589. $as_echo "$as_me: program exited with status $ac_status" >&5
  1590. $as_echo "$as_me: failed program was:" >&5
  1591. sed 's/^/| /' conftest.$ac_ext >&5
  1592. ac_retval=$ac_status
  1593. fi
  1594. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1595. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1596. as_fn_set_status $ac_retval
  1597. } # ac_fn_c_try_run
  1598. # ac_fn_c_check_func LINENO FUNC VAR
  1599. # ----------------------------------
  1600. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1601. ac_fn_c_check_func ()
  1602. {
  1603. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1605. $as_echo_n "checking for $2... " >&6; }
  1606. if eval \${$3+:} false; then :
  1607. $as_echo_n "(cached) " >&6
  1608. else
  1609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1610. /* end confdefs.h. */
  1611. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1612. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1613. #define $2 innocuous_$2
  1614. /* System header to define __stub macros and hopefully few prototypes,
  1615. which can conflict with char $2 (); below.
  1616. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1617. <limits.h> exists even on freestanding compilers. */
  1618. #ifdef __STDC__
  1619. # include <limits.h>
  1620. #else
  1621. # include <assert.h>
  1622. #endif
  1623. #undef $2
  1624. /* Override any GCC internal prototype to avoid an error.
  1625. Use char because int might match the return type of a GCC
  1626. builtin and then its argument prototype would still apply. */
  1627. #ifdef __cplusplus
  1628. extern "C"
  1629. #endif
  1630. char $2 ();
  1631. /* The GNU C library defines this for functions which it implements
  1632. to always fail with ENOSYS. Some functions are actually named
  1633. something starting with __ and the normal name is an alias. */
  1634. #if defined __stub_$2 || defined __stub___$2
  1635. choke me
  1636. #endif
  1637. int
  1638. main ()
  1639. {
  1640. return $2 ();
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_c_try_link "$LINENO"; then :
  1646. eval "$3=yes"
  1647. else
  1648. eval "$3=no"
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext \
  1651. conftest$ac_exeext conftest.$ac_ext
  1652. fi
  1653. eval ac_res=\$$3
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1655. $as_echo "$ac_res" >&6; }
  1656. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1657. } # ac_fn_c_check_func
  1658. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1659. # -------------------------------------------------------
  1660. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1661. # the include files in INCLUDES and setting the cache variable VAR
  1662. # accordingly.
  1663. ac_fn_c_check_header_mongrel ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. if eval \${$3+:} false; then :
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1668. $as_echo_n "checking for $2... " >&6; }
  1669. if eval \${$3+:} false; then :
  1670. $as_echo_n "(cached) " >&6
  1671. fi
  1672. eval ac_res=\$$3
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1674. $as_echo "$ac_res" >&6; }
  1675. else
  1676. # Is the header compilable?
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1678. $as_echo_n "checking $2 usability... " >&6; }
  1679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1680. /* end confdefs.h. */
  1681. $4
  1682. #include <$2>
  1683. _ACEOF
  1684. if ac_fn_c_try_compile "$LINENO"; then :
  1685. ac_header_compiler=yes
  1686. else
  1687. ac_header_compiler=no
  1688. fi
  1689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1691. $as_echo "$ac_header_compiler" >&6; }
  1692. # Is the header present?
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1694. $as_echo_n "checking $2 presence... " >&6; }
  1695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1696. /* end confdefs.h. */
  1697. #include <$2>
  1698. _ACEOF
  1699. if ac_fn_c_try_cpp "$LINENO"; then :
  1700. ac_header_preproc=yes
  1701. else
  1702. ac_header_preproc=no
  1703. fi
  1704. rm -f conftest.err conftest.i conftest.$ac_ext
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1706. $as_echo "$ac_header_preproc" >&6; }
  1707. # So? What about this header?
  1708. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1709. yes:no: )
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1711. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1713. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1714. ;;
  1715. no:yes:* )
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1717. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1719. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1721. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1723. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1725. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1726. ( $as_echo "## ------------------------------------------------- ##
  1727. ## Report this to libusb-devel@lists.sourceforge.net ##
  1728. ## ------------------------------------------------- ##"
  1729. ) | sed "s/^/$as_me: WARNING: /" >&2
  1730. ;;
  1731. esac
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1733. $as_echo_n "checking for $2... " >&6; }
  1734. if eval \${$3+:} false; then :
  1735. $as_echo_n "(cached) " >&6
  1736. else
  1737. eval "$3=\$ac_header_compiler"
  1738. fi
  1739. eval ac_res=\$$3
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742. fi
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. } # ac_fn_c_check_header_mongrel
  1745. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1746. # -------------------------------------------
  1747. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1748. # variable VAR accordingly.
  1749. ac_fn_c_check_type ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1753. $as_echo_n "checking for $2... " >&6; }
  1754. if eval \${$3+:} false; then :
  1755. $as_echo_n "(cached) " >&6
  1756. else
  1757. eval "$3=no"
  1758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1759. /* end confdefs.h. */
  1760. $4
  1761. int
  1762. main ()
  1763. {
  1764. if (sizeof ($2))
  1765. return 0;
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. if ac_fn_c_try_compile "$LINENO"; then :
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. $4
  1774. int
  1775. main ()
  1776. {
  1777. if (sizeof (($2)))
  1778. return 0;
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_compile "$LINENO"; then :
  1784. else
  1785. eval "$3=yes"
  1786. fi
  1787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1788. fi
  1789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1790. fi
  1791. eval ac_res=\$$3
  1792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1793. $as_echo "$ac_res" >&6; }
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. } # ac_fn_c_check_type
  1796. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1797. # ---------------------------------------------
  1798. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1799. # accordingly.
  1800. ac_fn_c_check_decl ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1804. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1806. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1807. if eval \${$3+:} false; then :
  1808. $as_echo_n "(cached) " >&6
  1809. else
  1810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1811. /* end confdefs.h. */
  1812. $4
  1813. int
  1814. main ()
  1815. {
  1816. #ifndef $as_decl_name
  1817. #ifdef __cplusplus
  1818. (void) $as_decl_use;
  1819. #else
  1820. (void) $as_decl_name;
  1821. #endif
  1822. #endif
  1823. ;
  1824. return 0;
  1825. }
  1826. _ACEOF
  1827. if ac_fn_c_try_compile "$LINENO"; then :
  1828. eval "$3=yes"
  1829. else
  1830. eval "$3=no"
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. fi
  1834. eval ac_res=\$$3
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1836. $as_echo "$ac_res" >&6; }
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. } # ac_fn_c_check_decl
  1839. cat >config.log <<_ACEOF
  1840. This file contains any messages produced by compilers while
  1841. running configure, to aid debugging if configure makes a mistake.
  1842. It was created by libusb $as_me 1.0.16-rc10, which was
  1843. generated by GNU Autoconf 2.69. Invocation command line was
  1844. $ $0 $@
  1845. _ACEOF
  1846. exec 5>>config.log
  1847. {
  1848. cat <<_ASUNAME
  1849. ## --------- ##
  1850. ## Platform. ##
  1851. ## --------- ##
  1852. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1853. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1854. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1855. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1856. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1857. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1858. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1859. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1860. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1861. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1862. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1863. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1864. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1865. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1866. _ASUNAME
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. for as_dir in $PATH
  1869. do
  1870. IFS=$as_save_IFS
  1871. test -z "$as_dir" && as_dir=.
  1872. $as_echo "PATH: $as_dir"
  1873. done
  1874. IFS=$as_save_IFS
  1875. } >&5
  1876. cat >&5 <<_ACEOF
  1877. ## ----------- ##
  1878. ## Core tests. ##
  1879. ## ----------- ##
  1880. _ACEOF
  1881. # Keep a trace of the command line.
  1882. # Strip out --no-create and --no-recursion so they do not pile up.
  1883. # Strip out --silent because we don't want to record it for future runs.
  1884. # Also quote any args containing shell meta-characters.
  1885. # Make two passes to allow for proper duplicate-argument suppression.
  1886. ac_configure_args=
  1887. ac_configure_args0=
  1888. ac_configure_args1=
  1889. ac_must_keep_next=false
  1890. for ac_pass in 1 2
  1891. do
  1892. for ac_arg
  1893. do
  1894. case $ac_arg in
  1895. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1897. | -silent | --silent | --silen | --sile | --sil)
  1898. continue ;;
  1899. *\'*)
  1900. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1901. esac
  1902. case $ac_pass in
  1903. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1904. 2)
  1905. as_fn_append ac_configure_args1 " '$ac_arg'"
  1906. if test $ac_must_keep_next = true; then
  1907. ac_must_keep_next=false # Got value, back to normal.
  1908. else
  1909. case $ac_arg in
  1910. *=* | --config-cache | -C | -disable-* | --disable-* \
  1911. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1912. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1913. | -with-* | --with-* | -without-* | --without-* | --x)
  1914. case "$ac_configure_args0 " in
  1915. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1916. esac
  1917. ;;
  1918. -* ) ac_must_keep_next=true ;;
  1919. esac
  1920. fi
  1921. as_fn_append ac_configure_args " '$ac_arg'"
  1922. ;;
  1923. esac
  1924. done
  1925. done
  1926. { ac_configure_args0=; unset ac_configure_args0;}
  1927. { ac_configure_args1=; unset ac_configure_args1;}
  1928. # When interrupted or exit'd, cleanup temporary files, and complete
  1929. # config.log. We remove comments because anyway the quotes in there
  1930. # would cause problems or look ugly.
  1931. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1932. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1933. trap 'exit_status=$?
  1934. # Save into config.log some information that might help in debugging.
  1935. {
  1936. echo
  1937. $as_echo "## ---------------- ##
  1938. ## Cache variables. ##
  1939. ## ---------------- ##"
  1940. echo
  1941. # The following way of writing the cache mishandles newlines in values,
  1942. (
  1943. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1944. eval ac_val=\$$ac_var
  1945. case $ac_val in #(
  1946. *${as_nl}*)
  1947. case $ac_var in #(
  1948. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1949. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1950. esac
  1951. case $ac_var in #(
  1952. _ | IFS | as_nl) ;; #(
  1953. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1954. *) { eval $ac_var=; unset $ac_var;} ;;
  1955. esac ;;
  1956. esac
  1957. done
  1958. (set) 2>&1 |
  1959. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1960. *${as_nl}ac_space=\ *)
  1961. sed -n \
  1962. "s/'\''/'\''\\\\'\'''\''/g;
  1963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1964. ;; #(
  1965. *)
  1966. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1967. ;;
  1968. esac |
  1969. sort
  1970. )
  1971. echo
  1972. $as_echo "## ----------------- ##
  1973. ## Output variables. ##
  1974. ## ----------------- ##"
  1975. echo
  1976. for ac_var in $ac_subst_vars
  1977. do
  1978. eval ac_val=\$$ac_var
  1979. case $ac_val in
  1980. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1981. esac
  1982. $as_echo "$ac_var='\''$ac_val'\''"
  1983. done | sort
  1984. echo
  1985. if test -n "$ac_subst_files"; then
  1986. $as_echo "## ------------------- ##
  1987. ## File substitutions. ##
  1988. ## ------------------- ##"
  1989. echo
  1990. for ac_var in $ac_subst_files
  1991. do
  1992. eval ac_val=\$$ac_var
  1993. case $ac_val in
  1994. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1995. esac
  1996. $as_echo "$ac_var='\''$ac_val'\''"
  1997. done | sort
  1998. echo
  1999. fi
  2000. if test -s confdefs.h; then
  2001. $as_echo "## ----------- ##
  2002. ## confdefs.h. ##
  2003. ## ----------- ##"
  2004. echo
  2005. cat confdefs.h
  2006. echo
  2007. fi
  2008. test "$ac_signal" != 0 &&
  2009. $as_echo "$as_me: caught signal $ac_signal"
  2010. $as_echo "$as_me: exit $exit_status"
  2011. } >&5
  2012. rm -f core *.core core.conftest.* &&
  2013. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2014. exit $exit_status
  2015. ' 0
  2016. for ac_signal in 1 2 13 15; do
  2017. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2018. done
  2019. ac_signal=0
  2020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2021. rm -f -r conftest* confdefs.h
  2022. $as_echo "/* confdefs.h */" > confdefs.h
  2023. # Predefined preprocessor variables.
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_NAME "$PACKAGE_NAME"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_STRING "$PACKAGE_STRING"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2038. _ACEOF
  2039. cat >>confdefs.h <<_ACEOF
  2040. #define PACKAGE_URL "$PACKAGE_URL"
  2041. _ACEOF
  2042. # Let the site file select an alternate cache file if it wants to.
  2043. # Prefer an explicitly selected file to automatically selected ones.
  2044. ac_site_file1=NONE
  2045. ac_site_file2=NONE
  2046. if test -n "$CONFIG_SITE"; then
  2047. # We do not want a PATH search for config.site.
  2048. case $CONFIG_SITE in #((
  2049. -*) ac_site_file1=./$CONFIG_SITE;;
  2050. */*) ac_site_file1=$CONFIG_SITE;;
  2051. *) ac_site_file1=./$CONFIG_SITE;;
  2052. esac
  2053. elif test "x$prefix" != xNONE; then
  2054. ac_site_file1=$prefix/share/config.site
  2055. ac_site_file2=$prefix/etc/config.site
  2056. else
  2057. ac_site_file1=$ac_default_prefix/share/config.site
  2058. ac_site_file2=$ac_default_prefix/etc/config.site
  2059. fi
  2060. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2061. do
  2062. test "x$ac_site_file" = xNONE && continue
  2063. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2065. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2066. sed 's/^/| /' "$ac_site_file" >&5
  2067. . "$ac_site_file" \
  2068. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2070. as_fn_error $? "failed to load site script $ac_site_file
  2071. See \`config.log' for more details" "$LINENO" 5; }
  2072. fi
  2073. done
  2074. if test -r "$cache_file"; then
  2075. # Some versions of bash will fail to source /dev/null (special files
  2076. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2077. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2079. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2080. case $cache_file in
  2081. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2082. *) . "./$cache_file";;
  2083. esac
  2084. fi
  2085. else
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2087. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2088. >$cache_file
  2089. fi
  2090. # Check that the precious variables saved in the cache have kept the same
  2091. # value.
  2092. ac_cache_corrupted=false
  2093. for ac_var in $ac_precious_vars; do
  2094. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2095. eval ac_new_set=\$ac_env_${ac_var}_set
  2096. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2097. eval ac_new_val=\$ac_env_${ac_var}_value
  2098. case $ac_old_set,$ac_new_set in
  2099. set,)
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2101. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2102. ac_cache_corrupted=: ;;
  2103. ,set)
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2105. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2106. ac_cache_corrupted=: ;;
  2107. ,);;
  2108. *)
  2109. if test "x$ac_old_val" != "x$ac_new_val"; then
  2110. # differences in whitespace do not lead to failure.
  2111. ac_old_val_w=`echo x $ac_old_val`
  2112. ac_new_val_w=`echo x $ac_new_val`
  2113. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2115. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2116. ac_cache_corrupted=:
  2117. else
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2119. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2120. eval $ac_var=\$ac_old_val
  2121. fi
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2123. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2125. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2126. fi;;
  2127. esac
  2128. # Pass precious variables to config.status.
  2129. if test "$ac_new_set" = set; then
  2130. case $ac_new_val in
  2131. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2132. *) ac_arg=$ac_var=$ac_new_val ;;
  2133. esac
  2134. case " $ac_configure_args " in
  2135. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2136. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2137. esac
  2138. fi
  2139. done
  2140. if $ac_cache_corrupted; then
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2142. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2144. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2145. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2146. fi
  2147. ## -------------------- ##
  2148. ## Main body of script. ##
  2149. ## -------------------- ##
  2150. ac_ext=c
  2151. ac_cpp='$CPP $CPPFLAGS'
  2152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2155. # Library versioning
  2156. # These numbers should be tweaked on every release. Read carefully:
  2157. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2158. # http://sourceware.org/autobook/autobook/autobook_91.html
  2159. lt_current="2"
  2160. lt_revision="0"
  2161. lt_age="0"
  2162. LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
  2163. am__api_version='1.15'
  2164. ac_aux_dir=
  2165. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2166. if test -f "$ac_dir/install-sh"; then
  2167. ac_aux_dir=$ac_dir
  2168. ac_install_sh="$ac_aux_dir/install-sh -c"
  2169. break
  2170. elif test -f "$ac_dir/install.sh"; then
  2171. ac_aux_dir=$ac_dir
  2172. ac_install_sh="$ac_aux_dir/install.sh -c"
  2173. break
  2174. elif test -f "$ac_dir/shtool"; then
  2175. ac_aux_dir=$ac_dir
  2176. ac_install_sh="$ac_aux_dir/shtool install -c"
  2177. break
  2178. fi
  2179. done
  2180. if test -z "$ac_aux_dir"; then
  2181. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2182. fi
  2183. # These three variables are undocumented and unsupported,
  2184. # and are intended to be withdrawn in a future Autoconf release.
  2185. # They can cause serious problems if a builder's source tree is in a directory
  2186. # whose full name contains unusual characters.
  2187. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2188. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2189. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2190. # Find a good install program. We prefer a C program (faster),
  2191. # so one script is as good as another. But avoid the broken or
  2192. # incompatible versions:
  2193. # SysV /etc/install, /usr/sbin/install
  2194. # SunOS /usr/etc/install
  2195. # IRIX /sbin/install
  2196. # AIX /bin/install
  2197. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2198. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2199. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2200. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2201. # OS/2's system install, which has a completely different semantic
  2202. # ./install, which can be erroneously created by make from ./install.sh.
  2203. # Reject install programs that cannot install multiple files.
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2205. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2206. if test -z "$INSTALL"; then
  2207. if ${ac_cv_path_install+:} false; then :
  2208. $as_echo_n "(cached) " >&6
  2209. else
  2210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2211. for as_dir in $PATH
  2212. do
  2213. IFS=$as_save_IFS
  2214. test -z "$as_dir" && as_dir=.
  2215. # Account for people who put trailing slashes in PATH elements.
  2216. case $as_dir/ in #((
  2217. ./ | .// | /[cC]/* | \
  2218. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2219. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2220. /usr/ucb/* ) ;;
  2221. *)
  2222. # OSF1 and SCO ODT 3.0 have their own names for install.
  2223. # Don't use installbsd from OSF since it installs stuff as root
  2224. # by default.
  2225. for ac_prog in ginstall scoinst install; do
  2226. for ac_exec_ext in '' $ac_executable_extensions; do
  2227. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2228. if test $ac_prog = install &&
  2229. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2230. # AIX install. It has an incompatible calling convention.
  2231. :
  2232. elif test $ac_prog = install &&
  2233. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2234. # program-specific install script used by HP pwplus--don't use.
  2235. :
  2236. else
  2237. rm -rf conftest.one conftest.two conftest.dir
  2238. echo one > conftest.one
  2239. echo two > conftest.two
  2240. mkdir conftest.dir
  2241. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2242. test -s conftest.one && test -s conftest.two &&
  2243. test -s conftest.dir/conftest.one &&
  2244. test -s conftest.dir/conftest.two
  2245. then
  2246. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2247. break 3
  2248. fi
  2249. fi
  2250. fi
  2251. done
  2252. done
  2253. ;;
  2254. esac
  2255. done
  2256. IFS=$as_save_IFS
  2257. rm -rf conftest.one conftest.two conftest.dir
  2258. fi
  2259. if test "${ac_cv_path_install+set}" = set; then
  2260. INSTALL=$ac_cv_path_install
  2261. else
  2262. # As a last resort, use the slow shell script. Don't cache a
  2263. # value for INSTALL within a source directory, because that will
  2264. # break other packages using the cache if that directory is
  2265. # removed, or if the value is a relative name.
  2266. INSTALL=$ac_install_sh
  2267. fi
  2268. fi
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2270. $as_echo "$INSTALL" >&6; }
  2271. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2272. # It thinks the first close brace ends the variable substitution.
  2273. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2274. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2275. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2277. $as_echo_n "checking whether build environment is sane... " >&6; }
  2278. # Reject unsafe characters in $srcdir or the absolute working directory
  2279. # name. Accept space and tab only in the latter.
  2280. am_lf='
  2281. '
  2282. case `pwd` in
  2283. *[\\\"\#\$\&\'\`$am_lf]*)
  2284. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2285. esac
  2286. case $srcdir in
  2287. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2288. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2289. esac
  2290. # Do 'set' in a subshell so we don't clobber the current shell's
  2291. # arguments. Must try -L first in case configure is actually a
  2292. # symlink; some systems play weird games with the mod time of symlinks
  2293. # (eg FreeBSD returns the mod time of the symlink's containing
  2294. # directory).
  2295. if (
  2296. am_has_slept=no
  2297. for am_try in 1 2; do
  2298. echo "timestamp, slept: $am_has_slept" > conftest.file
  2299. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2300. if test "$*" = "X"; then
  2301. # -L didn't work.
  2302. set X `ls -t "$srcdir/configure" conftest.file`
  2303. fi
  2304. if test "$*" != "X $srcdir/configure conftest.file" \
  2305. && test "$*" != "X conftest.file $srcdir/configure"; then
  2306. # If neither matched, then we have a broken ls. This can happen
  2307. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2308. # broken ls alias from the environment. This has actually
  2309. # happened. Such a system could not be considered "sane".
  2310. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2311. alias in your environment" "$LINENO" 5
  2312. fi
  2313. if test "$2" = conftest.file || test $am_try -eq 2; then
  2314. break
  2315. fi
  2316. # Just in case.
  2317. sleep 1
  2318. am_has_slept=yes
  2319. done
  2320. test "$2" = conftest.file
  2321. )
  2322. then
  2323. # Ok.
  2324. :
  2325. else
  2326. as_fn_error $? "newly created file is older than distributed files!
  2327. Check your system clock" "$LINENO" 5
  2328. fi
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2330. $as_echo "yes" >&6; }
  2331. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2332. # generated files are strictly newer.
  2333. am_sleep_pid=
  2334. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2335. ( sleep 1 ) &
  2336. am_sleep_pid=$!
  2337. fi
  2338. rm -f conftest.file
  2339. test "$program_prefix" != NONE &&
  2340. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2341. # Use a double $ so make ignores it.
  2342. test "$program_suffix" != NONE &&
  2343. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2344. # Double any \ or $.
  2345. # By default was `s,x,x', remove it if useless.
  2346. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2347. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2348. # Expand $ac_aux_dir to an absolute path.
  2349. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2350. if test x"${MISSING+set}" != xset; then
  2351. case $am_aux_dir in
  2352. *\ * | *\ *)
  2353. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2354. *)
  2355. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2356. esac
  2357. fi
  2358. # Use eval to expand $SHELL
  2359. if eval "$MISSING --is-lightweight"; then
  2360. am_missing_run="$MISSING "
  2361. else
  2362. am_missing_run=
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2364. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2365. fi
  2366. if test x"${install_sh+set}" != xset; then
  2367. case $am_aux_dir in
  2368. *\ * | *\ *)
  2369. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2370. *)
  2371. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2372. esac
  2373. fi
  2374. # Installed binaries are usually stripped using 'strip' when the user
  2375. # run "make install-strip". However 'strip' might not be the right
  2376. # tool to use in cross-compilation environments, therefore Automake
  2377. # will honor the 'STRIP' environment variable to overrule this program.
  2378. if test "$cross_compiling" != no; then
  2379. if test -n "$ac_tool_prefix"; then
  2380. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2381. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2383. $as_echo_n "checking for $ac_word... " >&6; }
  2384. if ${ac_cv_prog_STRIP+:} false; then :
  2385. $as_echo_n "(cached) " >&6
  2386. else
  2387. if test -n "$STRIP"; then
  2388. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2389. else
  2390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2391. for as_dir in $PATH
  2392. do
  2393. IFS=$as_save_IFS
  2394. test -z "$as_dir" && as_dir=.
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2397. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2399. break 2
  2400. fi
  2401. done
  2402. done
  2403. IFS=$as_save_IFS
  2404. fi
  2405. fi
  2406. STRIP=$ac_cv_prog_STRIP
  2407. if test -n "$STRIP"; then
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2409. $as_echo "$STRIP" >&6; }
  2410. else
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2412. $as_echo "no" >&6; }
  2413. fi
  2414. fi
  2415. if test -z "$ac_cv_prog_STRIP"; then
  2416. ac_ct_STRIP=$STRIP
  2417. # Extract the first word of "strip", so it can be a program name with args.
  2418. set dummy strip; ac_word=$2
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2420. $as_echo_n "checking for $ac_word... " >&6; }
  2421. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. if test -n "$ac_ct_STRIP"; then
  2425. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2426. else
  2427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2428. for as_dir in $PATH
  2429. do
  2430. IFS=$as_save_IFS
  2431. test -z "$as_dir" && as_dir=.
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2434. ac_cv_prog_ac_ct_STRIP="strip"
  2435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2436. break 2
  2437. fi
  2438. done
  2439. done
  2440. IFS=$as_save_IFS
  2441. fi
  2442. fi
  2443. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2444. if test -n "$ac_ct_STRIP"; then
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2446. $as_echo "$ac_ct_STRIP" >&6; }
  2447. else
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2449. $as_echo "no" >&6; }
  2450. fi
  2451. if test "x$ac_ct_STRIP" = x; then
  2452. STRIP=":"
  2453. else
  2454. case $cross_compiling:$ac_tool_warned in
  2455. yes:)
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2458. ac_tool_warned=yes ;;
  2459. esac
  2460. STRIP=$ac_ct_STRIP
  2461. fi
  2462. else
  2463. STRIP="$ac_cv_prog_STRIP"
  2464. fi
  2465. fi
  2466. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2468. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2469. if test -z "$MKDIR_P"; then
  2470. if ${ac_cv_path_mkdir+:} false; then :
  2471. $as_echo_n "(cached) " >&6
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_prog in mkdir gmkdir; do
  2479. for ac_exec_ext in '' $ac_executable_extensions; do
  2480. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2481. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2482. 'mkdir (GNU coreutils) '* | \
  2483. 'mkdir (coreutils) '* | \
  2484. 'mkdir (fileutils) '4.1*)
  2485. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2486. break 3;;
  2487. esac
  2488. done
  2489. done
  2490. done
  2491. IFS=$as_save_IFS
  2492. fi
  2493. test -d ./--version && rmdir ./--version
  2494. if test "${ac_cv_path_mkdir+set}" = set; then
  2495. MKDIR_P="$ac_cv_path_mkdir -p"
  2496. else
  2497. # As a last resort, use the slow shell script. Don't cache a
  2498. # value for MKDIR_P within a source directory, because that will
  2499. # break other packages using the cache if that directory is
  2500. # removed, or if the value is a relative name.
  2501. MKDIR_P="$ac_install_sh -d"
  2502. fi
  2503. fi
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2505. $as_echo "$MKDIR_P" >&6; }
  2506. for ac_prog in gawk mawk nawk awk
  2507. do
  2508. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2509. set dummy $ac_prog; ac_word=$2
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511. $as_echo_n "checking for $ac_word... " >&6; }
  2512. if ${ac_cv_prog_AWK+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$AWK"; then
  2516. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2517. else
  2518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2519. for as_dir in $PATH
  2520. do
  2521. IFS=$as_save_IFS
  2522. test -z "$as_dir" && as_dir=.
  2523. for ac_exec_ext in '' $ac_executable_extensions; do
  2524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2525. ac_cv_prog_AWK="$ac_prog"
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2527. break 2
  2528. fi
  2529. done
  2530. done
  2531. IFS=$as_save_IFS
  2532. fi
  2533. fi
  2534. AWK=$ac_cv_prog_AWK
  2535. if test -n "$AWK"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2537. $as_echo "$AWK" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. test -n "$AWK" && break
  2543. done
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2545. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2546. set x ${MAKE-make}
  2547. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2548. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. cat >conftest.make <<\_ACEOF
  2552. SHELL = /bin/sh
  2553. all:
  2554. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2555. _ACEOF
  2556. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2557. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2558. *@@@%%%=?*=@@@%%%*)
  2559. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2560. *)
  2561. eval ac_cv_prog_make_${ac_make}_set=no;;
  2562. esac
  2563. rm -f conftest.make
  2564. fi
  2565. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2567. $as_echo "yes" >&6; }
  2568. SET_MAKE=
  2569. else
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2571. $as_echo "no" >&6; }
  2572. SET_MAKE="MAKE=${MAKE-make}"
  2573. fi
  2574. rm -rf .tst 2>/dev/null
  2575. mkdir .tst 2>/dev/null
  2576. if test -d .tst; then
  2577. am__leading_dot=.
  2578. else
  2579. am__leading_dot=_
  2580. fi
  2581. rmdir .tst 2>/dev/null
  2582. # Check whether --enable-silent-rules was given.
  2583. if test "${enable_silent_rules+set}" = set; then :
  2584. enableval=$enable_silent_rules;
  2585. fi
  2586. case $enable_silent_rules in # (((
  2587. yes) AM_DEFAULT_VERBOSITY=0;;
  2588. no) AM_DEFAULT_VERBOSITY=1;;
  2589. *) AM_DEFAULT_VERBOSITY=1;;
  2590. esac
  2591. am_make=${MAKE-make}
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2593. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2594. if ${am_cv_make_support_nested_variables+:} false; then :
  2595. $as_echo_n "(cached) " >&6
  2596. else
  2597. if $as_echo 'TRUE=$(BAR$(V))
  2598. BAR0=false
  2599. BAR1=true
  2600. V=1
  2601. am__doit:
  2602. @$(TRUE)
  2603. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2604. am_cv_make_support_nested_variables=yes
  2605. else
  2606. am_cv_make_support_nested_variables=no
  2607. fi
  2608. fi
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2610. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2611. if test $am_cv_make_support_nested_variables = yes; then
  2612. AM_V='$(V)'
  2613. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2614. else
  2615. AM_V=$AM_DEFAULT_VERBOSITY
  2616. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2617. fi
  2618. AM_BACKSLASH='\'
  2619. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2620. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2621. # is not polluted with repeated "-I."
  2622. am__isrc=' -I$(srcdir)'
  2623. # test to see if srcdir already configured
  2624. if test -f $srcdir/config.status; then
  2625. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2626. fi
  2627. fi
  2628. # test whether we have cygpath
  2629. if test -z "$CYGPATH_W"; then
  2630. if (cygpath --version) >/dev/null 2>/dev/null; then
  2631. CYGPATH_W='cygpath -w'
  2632. else
  2633. CYGPATH_W=echo
  2634. fi
  2635. fi
  2636. # Define the identity of the package.
  2637. PACKAGE='libusb'
  2638. VERSION='1.0.16-rc10'
  2639. cat >>confdefs.h <<_ACEOF
  2640. #define PACKAGE "$PACKAGE"
  2641. _ACEOF
  2642. cat >>confdefs.h <<_ACEOF
  2643. #define VERSION "$VERSION"
  2644. _ACEOF
  2645. # Some tools Automake needs.
  2646. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2647. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2648. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2649. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2650. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2651. # For better backward compatibility. To be removed once Automake 1.9.x
  2652. # dies out for good. For more background, see:
  2653. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2654. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2655. mkdir_p='$(MKDIR_P)'
  2656. # We need awk for the "check" target (and possibly the TAP driver). The
  2657. # system "awk" is bad on some platforms.
  2658. # Always define AMTAR for backward compatibility. Yes, it's still used
  2659. # in the wild :-( We should find a proper way to deprecate it ...
  2660. AMTAR='$${TAR-tar}'
  2661. # We'll loop over all known methods to create a tar archive until one works.
  2662. _am_tools='gnutar pax cpio none'
  2663. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2664. # POSIX will say in a future version that running "rm -f" with no argument
  2665. # is OK; and we want to be able to make that assumption in our Makefile
  2666. # recipes. So use an aggressive probe to check that the usage we want is
  2667. # actually supported "in the wild" to an acceptable degree.
  2668. # See automake bug#10828.
  2669. # To make any issue more visible, cause the running configure to be aborted
  2670. # by default if the 'rm' program in use doesn't match our expectations; the
  2671. # user can still override this though.
  2672. if rm -f && rm -fr && rm -rf; then : OK; else
  2673. cat >&2 <<'END'
  2674. Oops!
  2675. Your 'rm' program seems unable to run without file operands specified
  2676. on the command line, even when the '-f' option is present. This is contrary
  2677. to the behaviour of most rm programs out there, and not conforming with
  2678. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2679. Please tell bug-automake@gnu.org about your system, including the value
  2680. of your $PATH and any error possibly output before this message. This
  2681. can help us improve future automake versions.
  2682. END
  2683. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2684. echo 'Configuration will proceed anyway, since you have set the' >&2
  2685. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2686. echo >&2
  2687. else
  2688. cat >&2 <<'END'
  2689. Aborting the configuration process, to ensure you take notice of the issue.
  2690. You can download and install GNU coreutils to get an 'rm' implementation
  2691. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2692. If you want to complete the configuration process using your problematic
  2693. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2694. to "yes", and re-run configure.
  2695. END
  2696. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2700. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2701. # Check whether --enable-maintainer-mode was given.
  2702. if test "${enable_maintainer_mode+set}" = set; then :
  2703. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2704. else
  2705. USE_MAINTAINER_MODE=no
  2706. fi
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2708. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2709. if test $USE_MAINTAINER_MODE = yes; then
  2710. MAINTAINER_MODE_TRUE=
  2711. MAINTAINER_MODE_FALSE='#'
  2712. else
  2713. MAINTAINER_MODE_TRUE='#'
  2714. MAINTAINER_MODE_FALSE=
  2715. fi
  2716. MAINT=$MAINTAINER_MODE_TRUE
  2717. ac_config_headers="$ac_config_headers config.h"
  2718. # Check whether --enable-silent-rules was given.
  2719. if test "${enable_silent_rules+set}" = set; then :
  2720. enableval=$enable_silent_rules;
  2721. fi
  2722. case $enable_silent_rules in # (((
  2723. yes) AM_DEFAULT_VERBOSITY=0;;
  2724. no) AM_DEFAULT_VERBOSITY=1;;
  2725. *) AM_DEFAULT_VERBOSITY=0;;
  2726. esac
  2727. am_make=${MAKE-make}
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2729. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2730. if ${am_cv_make_support_nested_variables+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if $as_echo 'TRUE=$(BAR$(V))
  2734. BAR0=false
  2735. BAR1=true
  2736. V=1
  2737. am__doit:
  2738. @$(TRUE)
  2739. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2740. am_cv_make_support_nested_variables=yes
  2741. else
  2742. am_cv_make_support_nested_variables=no
  2743. fi
  2744. fi
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2746. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2747. if test $am_cv_make_support_nested_variables = yes; then
  2748. AM_V='$(V)'
  2749. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2750. else
  2751. AM_V=$AM_DEFAULT_VERBOSITY
  2752. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2753. fi
  2754. AM_BACKSLASH='\'
  2755. ac_ext=c
  2756. ac_cpp='$CPP $CPPFLAGS'
  2757. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2758. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2759. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2760. if test -n "$ac_tool_prefix"; then
  2761. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2762. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2764. $as_echo_n "checking for $ac_word... " >&6; }
  2765. if ${ac_cv_prog_CC+:} false; then :
  2766. $as_echo_n "(cached) " >&6
  2767. else
  2768. if test -n "$CC"; then
  2769. ac_cv_prog_CC="$CC" # Let the user override the test.
  2770. else
  2771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2772. for as_dir in $PATH
  2773. do
  2774. IFS=$as_save_IFS
  2775. test -z "$as_dir" && as_dir=.
  2776. for ac_exec_ext in '' $ac_executable_extensions; do
  2777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2778. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2780. break 2
  2781. fi
  2782. done
  2783. done
  2784. IFS=$as_save_IFS
  2785. fi
  2786. fi
  2787. CC=$ac_cv_prog_CC
  2788. if test -n "$CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2790. $as_echo "$CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. fi
  2796. if test -z "$ac_cv_prog_CC"; then
  2797. ac_ct_CC=$CC
  2798. # Extract the first word of "gcc", so it can be a program name with args.
  2799. set dummy gcc; ac_word=$2
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2801. $as_echo_n "checking for $ac_word... " >&6; }
  2802. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2803. $as_echo_n "(cached) " >&6
  2804. else
  2805. if test -n "$ac_ct_CC"; then
  2806. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2807. else
  2808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2809. for as_dir in $PATH
  2810. do
  2811. IFS=$as_save_IFS
  2812. test -z "$as_dir" && as_dir=.
  2813. for ac_exec_ext in '' $ac_executable_extensions; do
  2814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2815. ac_cv_prog_ac_ct_CC="gcc"
  2816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2817. break 2
  2818. fi
  2819. done
  2820. done
  2821. IFS=$as_save_IFS
  2822. fi
  2823. fi
  2824. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2825. if test -n "$ac_ct_CC"; then
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2827. $as_echo "$ac_ct_CC" >&6; }
  2828. else
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2830. $as_echo "no" >&6; }
  2831. fi
  2832. if test "x$ac_ct_CC" = x; then
  2833. CC=""
  2834. else
  2835. case $cross_compiling:$ac_tool_warned in
  2836. yes:)
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2839. ac_tool_warned=yes ;;
  2840. esac
  2841. CC=$ac_ct_CC
  2842. fi
  2843. else
  2844. CC="$ac_cv_prog_CC"
  2845. fi
  2846. if test -z "$CC"; then
  2847. if test -n "$ac_tool_prefix"; then
  2848. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2849. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2851. $as_echo_n "checking for $ac_word... " >&6; }
  2852. if ${ac_cv_prog_CC+:} false; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -n "$CC"; then
  2856. ac_cv_prog_CC="$CC" # Let the user override the test.
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2865. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. fi
  2873. fi
  2874. CC=$ac_cv_prog_CC
  2875. if test -n "$CC"; then
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2877. $as_echo "$CC" >&6; }
  2878. else
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2880. $as_echo "no" >&6; }
  2881. fi
  2882. fi
  2883. fi
  2884. if test -z "$CC"; then
  2885. # Extract the first word of "cc", so it can be a program name with args.
  2886. set dummy cc; ac_word=$2
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2888. $as_echo_n "checking for $ac_word... " >&6; }
  2889. if ${ac_cv_prog_CC+:} false; then :
  2890. $as_echo_n "(cached) " >&6
  2891. else
  2892. if test -n "$CC"; then
  2893. ac_cv_prog_CC="$CC" # Let the user override the test.
  2894. else
  2895. ac_prog_rejected=no
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. for ac_exec_ext in '' $ac_executable_extensions; do
  2902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2903. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2904. ac_prog_rejected=yes
  2905. continue
  2906. fi
  2907. ac_cv_prog_CC="cc"
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. IFS=$as_save_IFS
  2914. if test $ac_prog_rejected = yes; then
  2915. # We found a bogon in the path, so make sure we never use it.
  2916. set dummy $ac_cv_prog_CC
  2917. shift
  2918. if test $# != 0; then
  2919. # We chose a different compiler from the bogus one.
  2920. # However, it has the same basename, so the bogon will be chosen
  2921. # first if we set CC to just the basename; use the full file name.
  2922. shift
  2923. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2924. fi
  2925. fi
  2926. fi
  2927. fi
  2928. CC=$ac_cv_prog_CC
  2929. if test -n "$CC"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2931. $as_echo "$CC" >&6; }
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. fi
  2936. fi
  2937. if test -z "$CC"; then
  2938. if test -n "$ac_tool_prefix"; then
  2939. for ac_prog in cl.exe
  2940. do
  2941. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2942. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2944. $as_echo_n "checking for $ac_word... " >&6; }
  2945. if ${ac_cv_prog_CC+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. if test -n "$CC"; then
  2949. ac_cv_prog_CC="$CC" # Let the user override the test.
  2950. else
  2951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2952. for as_dir in $PATH
  2953. do
  2954. IFS=$as_save_IFS
  2955. test -z "$as_dir" && as_dir=.
  2956. for ac_exec_ext in '' $ac_executable_extensions; do
  2957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2958. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2960. break 2
  2961. fi
  2962. done
  2963. done
  2964. IFS=$as_save_IFS
  2965. fi
  2966. fi
  2967. CC=$ac_cv_prog_CC
  2968. if test -n "$CC"; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2970. $as_echo "$CC" >&6; }
  2971. else
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2973. $as_echo "no" >&6; }
  2974. fi
  2975. test -n "$CC" && break
  2976. done
  2977. fi
  2978. if test -z "$CC"; then
  2979. ac_ct_CC=$CC
  2980. for ac_prog in cl.exe
  2981. do
  2982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2983. set dummy $ac_prog; ac_word=$2
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2985. $as_echo_n "checking for $ac_word... " >&6; }
  2986. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2987. $as_echo_n "(cached) " >&6
  2988. else
  2989. if test -n "$ac_ct_CC"; then
  2990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_ac_ct_CC="$ac_prog"
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. IFS=$as_save_IFS
  3006. fi
  3007. fi
  3008. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3009. if test -n "$ac_ct_CC"; then
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3011. $as_echo "$ac_ct_CC" >&6; }
  3012. else
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. fi
  3016. test -n "$ac_ct_CC" && break
  3017. done
  3018. if test "x$ac_ct_CC" = x; then
  3019. CC=""
  3020. else
  3021. case $cross_compiling:$ac_tool_warned in
  3022. yes:)
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3025. ac_tool_warned=yes ;;
  3026. esac
  3027. CC=$ac_ct_CC
  3028. fi
  3029. fi
  3030. fi
  3031. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3032. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3033. as_fn_error $? "no acceptable C compiler found in \$PATH
  3034. See \`config.log' for more details" "$LINENO" 5; }
  3035. # Provide some information about the compiler.
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3037. set X $ac_compile
  3038. ac_compiler=$2
  3039. for ac_option in --version -v -V -qversion; do
  3040. { { ac_try="$ac_compiler $ac_option >&5"
  3041. case "(($ac_try" in
  3042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3043. *) ac_try_echo=$ac_try;;
  3044. esac
  3045. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3046. $as_echo "$ac_try_echo"; } >&5
  3047. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3048. ac_status=$?
  3049. if test -s conftest.err; then
  3050. sed '10a\
  3051. ... rest of stderr output deleted ...
  3052. 10q' conftest.err >conftest.er1
  3053. cat conftest.er1 >&5
  3054. fi
  3055. rm -f conftest.er1 conftest.err
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }
  3058. done
  3059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3060. /* end confdefs.h. */
  3061. int
  3062. main ()
  3063. {
  3064. ;
  3065. return 0;
  3066. }
  3067. _ACEOF
  3068. ac_clean_files_save=$ac_clean_files
  3069. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3070. # Try to create an executable without -o first, disregard a.out.
  3071. # It will help us diagnose broken compilers, and finding out an intuition
  3072. # of exeext.
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3074. $as_echo_n "checking whether the C compiler works... " >&6; }
  3075. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3076. # The possible output files:
  3077. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3078. ac_rmfiles=
  3079. for ac_file in $ac_files
  3080. do
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3083. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3084. esac
  3085. done
  3086. rm -f $ac_rmfiles
  3087. if { { ac_try="$ac_link_default"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_link_default") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; then :
  3098. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3099. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3100. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3101. # so that the user can short-circuit this test for compilers unknown to
  3102. # Autoconf.
  3103. for ac_file in $ac_files ''
  3104. do
  3105. test -f "$ac_file" || continue
  3106. case $ac_file in
  3107. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3108. ;;
  3109. [ab].out )
  3110. # We found the default executable, but exeext='' is most
  3111. # certainly right.
  3112. break;;
  3113. *.* )
  3114. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3115. then :; else
  3116. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3117. fi
  3118. # We set ac_cv_exeext here because the later test for it is not
  3119. # safe: cross compilers may not add the suffix if given an `-o'
  3120. # argument, so we may need to know it at that point already.
  3121. # Even if this section looks crufty: it has the advantage of
  3122. # actually working.
  3123. break;;
  3124. * )
  3125. break;;
  3126. esac
  3127. done
  3128. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3129. else
  3130. ac_file=''
  3131. fi
  3132. if test -z "$ac_file"; then :
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3134. $as_echo "no" >&6; }
  3135. $as_echo "$as_me: failed program was:" >&5
  3136. sed 's/^/| /' conftest.$ac_ext >&5
  3137. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3139. as_fn_error 77 "C compiler cannot create executables
  3140. See \`config.log' for more details" "$LINENO" 5; }
  3141. else
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3143. $as_echo "yes" >&6; }
  3144. fi
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3146. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3148. $as_echo "$ac_file" >&6; }
  3149. ac_exeext=$ac_cv_exeext
  3150. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3151. ac_clean_files=$ac_clean_files_save
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3153. $as_echo_n "checking for suffix of executables... " >&6; }
  3154. if { { ac_try="$ac_link"
  3155. case "(($ac_try" in
  3156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3157. *) ac_try_echo=$ac_try;;
  3158. esac
  3159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3160. $as_echo "$ac_try_echo"; } >&5
  3161. (eval "$ac_link") 2>&5
  3162. ac_status=$?
  3163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3164. test $ac_status = 0; }; then :
  3165. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3166. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3167. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3168. # `rm'.
  3169. for ac_file in conftest.exe conftest conftest.*; do
  3170. test -f "$ac_file" || continue
  3171. case $ac_file in
  3172. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3173. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3174. break;;
  3175. * ) break;;
  3176. esac
  3177. done
  3178. else
  3179. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3180. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3181. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3182. See \`config.log' for more details" "$LINENO" 5; }
  3183. fi
  3184. rm -f conftest conftest$ac_cv_exeext
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3186. $as_echo "$ac_cv_exeext" >&6; }
  3187. rm -f conftest.$ac_ext
  3188. EXEEXT=$ac_cv_exeext
  3189. ac_exeext=$EXEEXT
  3190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3191. /* end confdefs.h. */
  3192. #include <stdio.h>
  3193. int
  3194. main ()
  3195. {
  3196. FILE *f = fopen ("conftest.out", "w");
  3197. return ferror (f) || fclose (f) != 0;
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. ac_clean_files="$ac_clean_files conftest.out"
  3203. # Check that the compiler produces executables we can run. If not, either
  3204. # the compiler is broken, or we cross compile.
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3206. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3207. if test "$cross_compiling" != yes; then
  3208. { { ac_try="$ac_link"
  3209. case "(($ac_try" in
  3210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3211. *) ac_try_echo=$ac_try;;
  3212. esac
  3213. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3214. $as_echo "$ac_try_echo"; } >&5
  3215. (eval "$ac_link") 2>&5
  3216. ac_status=$?
  3217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3218. test $ac_status = 0; }
  3219. if { ac_try='./conftest$ac_cv_exeext'
  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_try") 2>&5
  3227. ac_status=$?
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3229. test $ac_status = 0; }; }; then
  3230. cross_compiling=no
  3231. else
  3232. if test "$cross_compiling" = maybe; then
  3233. cross_compiling=yes
  3234. else
  3235. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3236. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3237. as_fn_error $? "cannot run C compiled programs.
  3238. If you meant to cross compile, use \`--host'.
  3239. See \`config.log' for more details" "$LINENO" 5; }
  3240. fi
  3241. fi
  3242. fi
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3244. $as_echo "$cross_compiling" >&6; }
  3245. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3246. ac_clean_files=$ac_clean_files_save
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3248. $as_echo_n "checking for suffix of object files... " >&6; }
  3249. if ${ac_cv_objext+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. int
  3255. main ()
  3256. {
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. rm -f conftest.o conftest.obj
  3262. if { { ac_try="$ac_compile"
  3263. case "(($ac_try" in
  3264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3265. *) ac_try_echo=$ac_try;;
  3266. esac
  3267. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3268. $as_echo "$ac_try_echo"; } >&5
  3269. (eval "$ac_compile") 2>&5
  3270. ac_status=$?
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3272. test $ac_status = 0; }; then :
  3273. for ac_file in conftest.o conftest.obj conftest.*; do
  3274. test -f "$ac_file" || continue;
  3275. case $ac_file in
  3276. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3277. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3278. break;;
  3279. esac
  3280. done
  3281. else
  3282. $as_echo "$as_me: failed program was:" >&5
  3283. sed 's/^/| /' conftest.$ac_ext >&5
  3284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3286. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3287. See \`config.log' for more details" "$LINENO" 5; }
  3288. fi
  3289. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3290. fi
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3292. $as_echo "$ac_cv_objext" >&6; }
  3293. OBJEXT=$ac_cv_objext
  3294. ac_objext=$OBJEXT
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3296. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3297. if ${ac_cv_c_compiler_gnu+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. #ifndef __GNUC__
  3306. choke me
  3307. #endif
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. if ac_fn_c_try_compile "$LINENO"; then :
  3313. ac_compiler_gnu=yes
  3314. else
  3315. ac_compiler_gnu=no
  3316. fi
  3317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3318. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3321. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3322. if test $ac_compiler_gnu = yes; then
  3323. GCC=yes
  3324. else
  3325. GCC=
  3326. fi
  3327. ac_test_CFLAGS=${CFLAGS+set}
  3328. ac_save_CFLAGS=$CFLAGS
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3330. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3331. if ${ac_cv_prog_cc_g+:} false; then :
  3332. $as_echo_n "(cached) " >&6
  3333. else
  3334. ac_save_c_werror_flag=$ac_c_werror_flag
  3335. ac_c_werror_flag=yes
  3336. ac_cv_prog_cc_g=no
  3337. CFLAGS="-g"
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. int
  3341. main ()
  3342. {
  3343. ;
  3344. return 0;
  3345. }
  3346. _ACEOF
  3347. if ac_fn_c_try_compile "$LINENO"; then :
  3348. ac_cv_prog_cc_g=yes
  3349. else
  3350. CFLAGS=""
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. int
  3354. main ()
  3355. {
  3356. ;
  3357. return 0;
  3358. }
  3359. _ACEOF
  3360. if ac_fn_c_try_compile "$LINENO"; then :
  3361. else
  3362. ac_c_werror_flag=$ac_save_c_werror_flag
  3363. CFLAGS="-g"
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. ;
  3370. return 0;
  3371. }
  3372. _ACEOF
  3373. if ac_fn_c_try_compile "$LINENO"; then :
  3374. ac_cv_prog_cc_g=yes
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. ac_c_werror_flag=$ac_save_c_werror_flag
  3382. fi
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3384. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3385. if test "$ac_test_CFLAGS" = set; then
  3386. CFLAGS=$ac_save_CFLAGS
  3387. elif test $ac_cv_prog_cc_g = yes; then
  3388. if test "$GCC" = yes; then
  3389. CFLAGS="-g -O2"
  3390. else
  3391. CFLAGS="-g"
  3392. fi
  3393. else
  3394. if test "$GCC" = yes; then
  3395. CFLAGS="-O2"
  3396. else
  3397. CFLAGS=
  3398. fi
  3399. fi
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3401. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3402. if ${ac_cv_prog_cc_c89+:} false; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. ac_cv_prog_cc_c89=no
  3406. ac_save_CC=$CC
  3407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3408. /* end confdefs.h. */
  3409. #include <stdarg.h>
  3410. #include <stdio.h>
  3411. struct stat;
  3412. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3413. struct buf { int x; };
  3414. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3415. static char *e (p, i)
  3416. char **p;
  3417. int i;
  3418. {
  3419. return p[i];
  3420. }
  3421. static char *f (char * (*g) (char **, int), char **p, ...)
  3422. {
  3423. char *s;
  3424. va_list v;
  3425. va_start (v,p);
  3426. s = g (p, va_arg (v,int));
  3427. va_end (v);
  3428. return s;
  3429. }
  3430. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3431. function prototypes and stuff, but not '\xHH' hex character constants.
  3432. These don't provoke an error unfortunately, instead are silently treated
  3433. as 'x'. The following induces an error, until -std is added to get
  3434. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3435. array size at least. It's necessary to write '\x00'==0 to get something
  3436. that's true only with -std. */
  3437. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3438. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3439. inside strings and character constants. */
  3440. #define FOO(x) 'x'
  3441. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3442. int test (int i, double x);
  3443. struct s1 {int (*f) (int a);};
  3444. struct s2 {int (*f) (double a);};
  3445. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3446. int argc;
  3447. char **argv;
  3448. int
  3449. main ()
  3450. {
  3451. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3452. ;
  3453. return 0;
  3454. }
  3455. _ACEOF
  3456. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3457. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3458. do
  3459. CC="$ac_save_CC $ac_arg"
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. ac_cv_prog_cc_c89=$ac_arg
  3462. fi
  3463. rm -f core conftest.err conftest.$ac_objext
  3464. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3465. done
  3466. rm -f conftest.$ac_ext
  3467. CC=$ac_save_CC
  3468. fi
  3469. # AC_CACHE_VAL
  3470. case "x$ac_cv_prog_cc_c89" in
  3471. x)
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3473. $as_echo "none needed" >&6; } ;;
  3474. xno)
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3476. $as_echo "unsupported" >&6; } ;;
  3477. *)
  3478. CC="$CC $ac_cv_prog_cc_c89"
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3480. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3481. esac
  3482. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3483. fi
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. ac_ext=c
  3490. ac_cpp='$CPP $CPPFLAGS'
  3491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3495. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3496. if ${am_cv_prog_cc_c_o+:} false; then :
  3497. $as_echo_n "(cached) " >&6
  3498. else
  3499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3500. /* end confdefs.h. */
  3501. int
  3502. main ()
  3503. {
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. # Make sure it works both with $CC and with simple cc.
  3509. # Following AC_PROG_CC_C_O, we do the test twice because some
  3510. # compilers refuse to overwrite an existing .o file with -o,
  3511. # though they will create one.
  3512. am_cv_prog_cc_c_o=yes
  3513. for am_i in 1 2; do
  3514. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3515. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3516. ac_status=$?
  3517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3518. (exit $ac_status); } \
  3519. && test -f conftest2.$ac_objext; then
  3520. : OK
  3521. else
  3522. am_cv_prog_cc_c_o=no
  3523. break
  3524. fi
  3525. done
  3526. rm -f core conftest*
  3527. unset am_i
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3530. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3531. if test "$am_cv_prog_cc_c_o" != yes; then
  3532. # Losing compiler, so override with the script.
  3533. # FIXME: It is wrong to rewrite CC.
  3534. # But if we don't then we get into trouble of one sort or another.
  3535. # A longer-term fix would be to have automake use am__CC in this case,
  3536. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3537. CC="$am_aux_dir/compile $CC"
  3538. fi
  3539. ac_ext=c
  3540. ac_cpp='$CPP $CPPFLAGS'
  3541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3544. DEPDIR="${am__leading_dot}deps"
  3545. ac_config_commands="$ac_config_commands depfiles"
  3546. am_make=${MAKE-make}
  3547. cat > confinc << 'END'
  3548. am__doit:
  3549. @echo this is the am__doit target
  3550. .PHONY: am__doit
  3551. END
  3552. # If we don't find an include directive, just comment out the code.
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3554. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3555. am__include="#"
  3556. am__quote=
  3557. _am_result=none
  3558. # First try GNU make style include.
  3559. echo "include confinc" > confmf
  3560. # Ignore all kinds of additional output from 'make'.
  3561. case `$am_make -s -f confmf 2> /dev/null` in #(
  3562. *the\ am__doit\ target*)
  3563. am__include=include
  3564. am__quote=
  3565. _am_result=GNU
  3566. ;;
  3567. esac
  3568. # Now try BSD make style include.
  3569. if test "$am__include" = "#"; then
  3570. echo '.include "confinc"' > confmf
  3571. case `$am_make -s -f confmf 2> /dev/null` in #(
  3572. *the\ am__doit\ target*)
  3573. am__include=.include
  3574. am__quote="\""
  3575. _am_result=BSD
  3576. ;;
  3577. esac
  3578. fi
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3580. $as_echo "$_am_result" >&6; }
  3581. rm -f confinc confmf
  3582. # Check whether --enable-dependency-tracking was given.
  3583. if test "${enable_dependency_tracking+set}" = set; then :
  3584. enableval=$enable_dependency_tracking;
  3585. fi
  3586. if test "x$enable_dependency_tracking" != xno; then
  3587. am_depcomp="$ac_aux_dir/depcomp"
  3588. AMDEPBACKSLASH='\'
  3589. am__nodep='_no'
  3590. fi
  3591. if test "x$enable_dependency_tracking" != xno; then
  3592. AMDEP_TRUE=
  3593. AMDEP_FALSE='#'
  3594. else
  3595. AMDEP_TRUE='#'
  3596. AMDEP_FALSE=
  3597. fi
  3598. depcc="$CC" am_compiler_list=
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3600. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3601. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3602. $as_echo_n "(cached) " >&6
  3603. else
  3604. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3605. # We make a subdir and do the tests there. Otherwise we can end up
  3606. # making bogus files that we don't know about and never remove. For
  3607. # instance it was reported that on HP-UX the gcc test will end up
  3608. # making a dummy file named 'D' -- because '-MD' means "put the output
  3609. # in D".
  3610. rm -rf conftest.dir
  3611. mkdir conftest.dir
  3612. # Copy depcomp to subdir because otherwise we won't find it if we're
  3613. # using a relative directory.
  3614. cp "$am_depcomp" conftest.dir
  3615. cd conftest.dir
  3616. # We will build objects and dependencies in a subdirectory because
  3617. # it helps to detect inapplicable dependency modes. For instance
  3618. # both Tru64's cc and ICC support -MD to output dependencies as a
  3619. # side effect of compilation, but ICC will put the dependencies in
  3620. # the current directory while Tru64 will put them in the object
  3621. # directory.
  3622. mkdir sub
  3623. am_cv_CC_dependencies_compiler_type=none
  3624. if test "$am_compiler_list" = ""; then
  3625. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3626. fi
  3627. am__universal=false
  3628. case " $depcc " in #(
  3629. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3630. esac
  3631. for depmode in $am_compiler_list; do
  3632. # Setup a source with many dependencies, because some compilers
  3633. # like to wrap large dependency lists on column 80 (with \), and
  3634. # we should not choose a depcomp mode which is confused by this.
  3635. #
  3636. # We need to recreate these files for each test, as the compiler may
  3637. # overwrite some of them when testing with obscure command lines.
  3638. # This happens at least with the AIX C compiler.
  3639. : > sub/conftest.c
  3640. for i in 1 2 3 4 5 6; do
  3641. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3642. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3643. # Solaris 10 /bin/sh.
  3644. echo '/* dummy */' > sub/conftst$i.h
  3645. done
  3646. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3647. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3648. # mode. It turns out that the SunPro C++ compiler does not properly
  3649. # handle '-M -o', and we need to detect this. Also, some Intel
  3650. # versions had trouble with output in subdirs.
  3651. am__obj=sub/conftest.${OBJEXT-o}
  3652. am__minus_obj="-o $am__obj"
  3653. case $depmode in
  3654. gcc)
  3655. # This depmode causes a compiler race in universal mode.
  3656. test "$am__universal" = false || continue
  3657. ;;
  3658. nosideeffect)
  3659. # After this tag, mechanisms are not by side-effect, so they'll
  3660. # only be used when explicitly requested.
  3661. if test "x$enable_dependency_tracking" = xyes; then
  3662. continue
  3663. else
  3664. break
  3665. fi
  3666. ;;
  3667. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3668. # This compiler won't grok '-c -o', but also, the minuso test has
  3669. # not run yet. These depmodes are late enough in the game, and
  3670. # so weak that their functioning should not be impacted.
  3671. am__obj=conftest.${OBJEXT-o}
  3672. am__minus_obj=
  3673. ;;
  3674. none) break ;;
  3675. esac
  3676. if depmode=$depmode \
  3677. source=sub/conftest.c object=$am__obj \
  3678. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3679. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3680. >/dev/null 2>conftest.err &&
  3681. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3682. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3683. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3684. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3685. # icc doesn't choke on unknown options, it will just issue warnings
  3686. # or remarks (even with -Werror). So we grep stderr for any message
  3687. # that says an option was ignored or not supported.
  3688. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3689. # icc: Command line warning: ignoring option '-M'; no argument required
  3690. # The diagnosis changed in icc 8.0:
  3691. # icc: Command line remark: option '-MP' not supported
  3692. if (grep 'ignoring option' conftest.err ||
  3693. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3694. am_cv_CC_dependencies_compiler_type=$depmode
  3695. break
  3696. fi
  3697. fi
  3698. done
  3699. cd ..
  3700. rm -rf conftest.dir
  3701. else
  3702. am_cv_CC_dependencies_compiler_type=none
  3703. fi
  3704. fi
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3706. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3707. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3708. if
  3709. test "x$enable_dependency_tracking" != xno \
  3710. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3711. am__fastdepCC_TRUE=
  3712. am__fastdepCC_FALSE='#'
  3713. else
  3714. am__fastdepCC_TRUE='#'
  3715. am__fastdepCC_FALSE=
  3716. fi
  3717. case `pwd` in
  3718. *\ * | *\ *)
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3720. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3721. esac
  3722. macro_version='2.4.6'
  3723. macro_revision='2.4.6'
  3724. ltmain=$ac_aux_dir/ltmain.sh
  3725. # Make sure we can run config.sub.
  3726. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3727. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3729. $as_echo_n "checking build system type... " >&6; }
  3730. if ${ac_cv_build+:} false; then :
  3731. $as_echo_n "(cached) " >&6
  3732. else
  3733. ac_build_alias=$build_alias
  3734. test "x$ac_build_alias" = x &&
  3735. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3736. test "x$ac_build_alias" = x &&
  3737. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3738. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3739. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3742. $as_echo "$ac_cv_build" >&6; }
  3743. case $ac_cv_build in
  3744. *-*-*) ;;
  3745. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3746. esac
  3747. build=$ac_cv_build
  3748. ac_save_IFS=$IFS; IFS='-'
  3749. set x $ac_cv_build
  3750. shift
  3751. build_cpu=$1
  3752. build_vendor=$2
  3753. shift; shift
  3754. # Remember, the first character of IFS is used to create $*,
  3755. # except with old shells:
  3756. build_os=$*
  3757. IFS=$ac_save_IFS
  3758. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3760. $as_echo_n "checking host system type... " >&6; }
  3761. if ${ac_cv_host+:} false; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. if test "x$host_alias" = x; then
  3765. ac_cv_host=$ac_cv_build
  3766. else
  3767. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3768. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3769. fi
  3770. fi
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3772. $as_echo "$ac_cv_host" >&6; }
  3773. case $ac_cv_host in
  3774. *-*-*) ;;
  3775. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3776. esac
  3777. host=$ac_cv_host
  3778. ac_save_IFS=$IFS; IFS='-'
  3779. set x $ac_cv_host
  3780. shift
  3781. host_cpu=$1
  3782. host_vendor=$2
  3783. shift; shift
  3784. # Remember, the first character of IFS is used to create $*,
  3785. # except with old shells:
  3786. host_os=$*
  3787. IFS=$ac_save_IFS
  3788. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3789. # Backslashify metacharacters that are still active within
  3790. # double-quoted strings.
  3791. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3792. # Same as above, but do not quote variable references.
  3793. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3794. # Sed substitution to delay expansion of an escaped shell variable in a
  3795. # double_quote_subst'ed string.
  3796. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3797. # Sed substitution to delay expansion of an escaped single quote.
  3798. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3799. # Sed substitution to avoid accidental globbing in evaled expressions
  3800. no_glob_subst='s/\*/\\\*/g'
  3801. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3802. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3803. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3805. $as_echo_n "checking how to print strings... " >&6; }
  3806. # Test print first, because it will be a builtin if present.
  3807. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3808. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3809. ECHO='print -r --'
  3810. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3811. ECHO='printf %s\n'
  3812. else
  3813. # Use this function as a fallback that always works.
  3814. func_fallback_echo ()
  3815. {
  3816. eval 'cat <<_LTECHO_EOF
  3817. $1
  3818. _LTECHO_EOF'
  3819. }
  3820. ECHO='func_fallback_echo'
  3821. fi
  3822. # func_echo_all arg...
  3823. # Invoke $ECHO with all args, space-separated.
  3824. func_echo_all ()
  3825. {
  3826. $ECHO ""
  3827. }
  3828. case $ECHO in
  3829. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3830. $as_echo "printf" >&6; } ;;
  3831. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3832. $as_echo "print -r" >&6; } ;;
  3833. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3834. $as_echo "cat" >&6; } ;;
  3835. esac
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3837. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3838. if ${ac_cv_path_SED+:} false; then :
  3839. $as_echo_n "(cached) " >&6
  3840. else
  3841. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3842. for ac_i in 1 2 3 4 5 6 7; do
  3843. ac_script="$ac_script$as_nl$ac_script"
  3844. done
  3845. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3846. { ac_script=; unset ac_script;}
  3847. if test -z "$SED"; then
  3848. ac_path_SED_found=false
  3849. # Loop through the user's path and test for each of PROGNAME-LIST
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. test -z "$as_dir" && as_dir=.
  3855. for ac_prog in sed gsed; do
  3856. for ac_exec_ext in '' $ac_executable_extensions; do
  3857. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3858. as_fn_executable_p "$ac_path_SED" || continue
  3859. # Check for GNU ac_path_SED and select it if it is found.
  3860. # Check for GNU $ac_path_SED
  3861. case `"$ac_path_SED" --version 2>&1` in
  3862. *GNU*)
  3863. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3864. *)
  3865. ac_count=0
  3866. $as_echo_n 0123456789 >"conftest.in"
  3867. while :
  3868. do
  3869. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3870. mv "conftest.tmp" "conftest.in"
  3871. cp "conftest.in" "conftest.nl"
  3872. $as_echo '' >> "conftest.nl"
  3873. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3874. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3875. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3876. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3877. # Best one so far, save it but keep looking for a better one
  3878. ac_cv_path_SED="$ac_path_SED"
  3879. ac_path_SED_max=$ac_count
  3880. fi
  3881. # 10*(2^10) chars as input seems more than enough
  3882. test $ac_count -gt 10 && break
  3883. done
  3884. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3885. esac
  3886. $ac_path_SED_found && break 3
  3887. done
  3888. done
  3889. done
  3890. IFS=$as_save_IFS
  3891. if test -z "$ac_cv_path_SED"; then
  3892. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3893. fi
  3894. else
  3895. ac_cv_path_SED=$SED
  3896. fi
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3899. $as_echo "$ac_cv_path_SED" >&6; }
  3900. SED="$ac_cv_path_SED"
  3901. rm -f conftest.sed
  3902. test -z "$SED" && SED=sed
  3903. Xsed="$SED -e 1s/^X//"
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3905. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3906. if ${ac_cv_path_GREP+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -z "$GREP"; then
  3910. ac_path_GREP_found=false
  3911. # Loop through the user's path and test for each of PROGNAME-LIST
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_prog in grep ggrep; do
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3920. as_fn_executable_p "$ac_path_GREP" || continue
  3921. # Check for GNU ac_path_GREP and select it if it is found.
  3922. # Check for GNU $ac_path_GREP
  3923. case `"$ac_path_GREP" --version 2>&1` in
  3924. *GNU*)
  3925. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3926. *)
  3927. ac_count=0
  3928. $as_echo_n 0123456789 >"conftest.in"
  3929. while :
  3930. do
  3931. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3932. mv "conftest.tmp" "conftest.in"
  3933. cp "conftest.in" "conftest.nl"
  3934. $as_echo 'GREP' >> "conftest.nl"
  3935. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3936. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3937. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3938. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3939. # Best one so far, save it but keep looking for a better one
  3940. ac_cv_path_GREP="$ac_path_GREP"
  3941. ac_path_GREP_max=$ac_count
  3942. fi
  3943. # 10*(2^10) chars as input seems more than enough
  3944. test $ac_count -gt 10 && break
  3945. done
  3946. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3947. esac
  3948. $ac_path_GREP_found && break 3
  3949. done
  3950. done
  3951. done
  3952. IFS=$as_save_IFS
  3953. if test -z "$ac_cv_path_GREP"; then
  3954. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3955. fi
  3956. else
  3957. ac_cv_path_GREP=$GREP
  3958. fi
  3959. fi
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3961. $as_echo "$ac_cv_path_GREP" >&6; }
  3962. GREP="$ac_cv_path_GREP"
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3964. $as_echo_n "checking for egrep... " >&6; }
  3965. if ${ac_cv_path_EGREP+:} false; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3969. then ac_cv_path_EGREP="$GREP -E"
  3970. else
  3971. if test -z "$EGREP"; then
  3972. ac_path_EGREP_found=false
  3973. # Loop through the user's path and test for each of PROGNAME-LIST
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_prog in egrep; do
  3980. for ac_exec_ext in '' $ac_executable_extensions; do
  3981. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3982. as_fn_executable_p "$ac_path_EGREP" || continue
  3983. # Check for GNU ac_path_EGREP and select it if it is found.
  3984. # Check for GNU $ac_path_EGREP
  3985. case `"$ac_path_EGREP" --version 2>&1` in
  3986. *GNU*)
  3987. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3988. *)
  3989. ac_count=0
  3990. $as_echo_n 0123456789 >"conftest.in"
  3991. while :
  3992. do
  3993. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3994. mv "conftest.tmp" "conftest.in"
  3995. cp "conftest.in" "conftest.nl"
  3996. $as_echo 'EGREP' >> "conftest.nl"
  3997. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3998. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3999. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4000. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4001. # Best one so far, save it but keep looking for a better one
  4002. ac_cv_path_EGREP="$ac_path_EGREP"
  4003. ac_path_EGREP_max=$ac_count
  4004. fi
  4005. # 10*(2^10) chars as input seems more than enough
  4006. test $ac_count -gt 10 && break
  4007. done
  4008. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4009. esac
  4010. $ac_path_EGREP_found && break 3
  4011. done
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. if test -z "$ac_cv_path_EGREP"; then
  4016. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4017. fi
  4018. else
  4019. ac_cv_path_EGREP=$EGREP
  4020. fi
  4021. fi
  4022. fi
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4024. $as_echo "$ac_cv_path_EGREP" >&6; }
  4025. EGREP="$ac_cv_path_EGREP"
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4027. $as_echo_n "checking for fgrep... " >&6; }
  4028. if ${ac_cv_path_FGREP+:} false; then :
  4029. $as_echo_n "(cached) " >&6
  4030. else
  4031. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4032. then ac_cv_path_FGREP="$GREP -F"
  4033. else
  4034. if test -z "$FGREP"; then
  4035. ac_path_FGREP_found=false
  4036. # Loop through the user's path and test for each of PROGNAME-LIST
  4037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4038. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4039. do
  4040. IFS=$as_save_IFS
  4041. test -z "$as_dir" && as_dir=.
  4042. for ac_prog in fgrep; do
  4043. for ac_exec_ext in '' $ac_executable_extensions; do
  4044. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4045. as_fn_executable_p "$ac_path_FGREP" || continue
  4046. # Check for GNU ac_path_FGREP and select it if it is found.
  4047. # Check for GNU $ac_path_FGREP
  4048. case `"$ac_path_FGREP" --version 2>&1` in
  4049. *GNU*)
  4050. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4051. *)
  4052. ac_count=0
  4053. $as_echo_n 0123456789 >"conftest.in"
  4054. while :
  4055. do
  4056. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4057. mv "conftest.tmp" "conftest.in"
  4058. cp "conftest.in" "conftest.nl"
  4059. $as_echo 'FGREP' >> "conftest.nl"
  4060. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4061. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4062. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4063. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4064. # Best one so far, save it but keep looking for a better one
  4065. ac_cv_path_FGREP="$ac_path_FGREP"
  4066. ac_path_FGREP_max=$ac_count
  4067. fi
  4068. # 10*(2^10) chars as input seems more than enough
  4069. test $ac_count -gt 10 && break
  4070. done
  4071. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4072. esac
  4073. $ac_path_FGREP_found && break 3
  4074. done
  4075. done
  4076. done
  4077. IFS=$as_save_IFS
  4078. if test -z "$ac_cv_path_FGREP"; then
  4079. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4080. fi
  4081. else
  4082. ac_cv_path_FGREP=$FGREP
  4083. fi
  4084. fi
  4085. fi
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4087. $as_echo "$ac_cv_path_FGREP" >&6; }
  4088. FGREP="$ac_cv_path_FGREP"
  4089. test -z "$GREP" && GREP=grep
  4090. # Check whether --with-gnu-ld was given.
  4091. if test "${with_gnu_ld+set}" = set; then :
  4092. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4093. else
  4094. with_gnu_ld=no
  4095. fi
  4096. ac_prog=ld
  4097. if test yes = "$GCC"; then
  4098. # Check if gcc -print-prog-name=ld gives a path.
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4100. $as_echo_n "checking for ld used by $CC... " >&6; }
  4101. case $host in
  4102. *-*-mingw*)
  4103. # gcc leaves a trailing carriage return, which upsets mingw
  4104. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4105. *)
  4106. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4107. esac
  4108. case $ac_prog in
  4109. # Accept absolute paths.
  4110. [\\/]* | ?:[\\/]*)
  4111. re_direlt='/[^/][^/]*/\.\./'
  4112. # Canonicalize the pathname of ld
  4113. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4114. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4115. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4116. done
  4117. test -z "$LD" && LD=$ac_prog
  4118. ;;
  4119. "")
  4120. # If it fails, then pretend we aren't using GCC.
  4121. ac_prog=ld
  4122. ;;
  4123. *)
  4124. # If it is relative, then search for the first ld in PATH.
  4125. with_gnu_ld=unknown
  4126. ;;
  4127. esac
  4128. elif test yes = "$with_gnu_ld"; then
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4130. $as_echo_n "checking for GNU ld... " >&6; }
  4131. else
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4133. $as_echo_n "checking for non-GNU ld... " >&6; }
  4134. fi
  4135. if ${lt_cv_path_LD+:} false; then :
  4136. $as_echo_n "(cached) " >&6
  4137. else
  4138. if test -z "$LD"; then
  4139. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4140. for ac_dir in $PATH; do
  4141. IFS=$lt_save_ifs
  4142. test -z "$ac_dir" && ac_dir=.
  4143. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4144. lt_cv_path_LD=$ac_dir/$ac_prog
  4145. # Check to see if the program is GNU ld. I'd rather use --version,
  4146. # but apparently some variants of GNU ld only accept -v.
  4147. # Break only if it was the GNU/non-GNU ld that we prefer.
  4148. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4149. *GNU* | *'with BFD'*)
  4150. test no != "$with_gnu_ld" && break
  4151. ;;
  4152. *)
  4153. test yes != "$with_gnu_ld" && break
  4154. ;;
  4155. esac
  4156. fi
  4157. done
  4158. IFS=$lt_save_ifs
  4159. else
  4160. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4161. fi
  4162. fi
  4163. LD=$lt_cv_path_LD
  4164. if test -n "$LD"; then
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4166. $as_echo "$LD" >&6; }
  4167. else
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4169. $as_echo "no" >&6; }
  4170. fi
  4171. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4173. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4174. if ${lt_cv_prog_gnu_ld+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4178. case `$LD -v 2>&1 </dev/null` in
  4179. *GNU* | *'with BFD'*)
  4180. lt_cv_prog_gnu_ld=yes
  4181. ;;
  4182. *)
  4183. lt_cv_prog_gnu_ld=no
  4184. ;;
  4185. esac
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4188. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4189. with_gnu_ld=$lt_cv_prog_gnu_ld
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4191. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4192. if ${lt_cv_path_NM+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. if test -n "$NM"; then
  4196. # Let the user override the test.
  4197. lt_cv_path_NM=$NM
  4198. else
  4199. lt_nm_to_check=${ac_tool_prefix}nm
  4200. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4201. lt_nm_to_check="$lt_nm_to_check nm"
  4202. fi
  4203. for lt_tmp_nm in $lt_nm_to_check; do
  4204. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4205. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4206. IFS=$lt_save_ifs
  4207. test -z "$ac_dir" && ac_dir=.
  4208. tmp_nm=$ac_dir/$lt_tmp_nm
  4209. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4210. # Check to see if the nm accepts a BSD-compat flag.
  4211. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4212. # nm: unknown option "B" ignored
  4213. # Tru64's nm complains that /dev/null is an invalid object file
  4214. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4215. case $build_os in
  4216. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4217. *) lt_bad_file=/dev/null ;;
  4218. esac
  4219. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4220. *$lt_bad_file* | *'Invalid file or object type'*)
  4221. lt_cv_path_NM="$tmp_nm -B"
  4222. break 2
  4223. ;;
  4224. *)
  4225. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4226. */dev/null*)
  4227. lt_cv_path_NM="$tmp_nm -p"
  4228. break 2
  4229. ;;
  4230. *)
  4231. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4232. continue # so that we can try to find one that supports BSD flags
  4233. ;;
  4234. esac
  4235. ;;
  4236. esac
  4237. fi
  4238. done
  4239. IFS=$lt_save_ifs
  4240. done
  4241. : ${lt_cv_path_NM=no}
  4242. fi
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4245. $as_echo "$lt_cv_path_NM" >&6; }
  4246. if test no != "$lt_cv_path_NM"; then
  4247. NM=$lt_cv_path_NM
  4248. else
  4249. # Didn't find any BSD compatible name lister, look for dumpbin.
  4250. if test -n "$DUMPBIN"; then :
  4251. # Let the user override the test.
  4252. else
  4253. if test -n "$ac_tool_prefix"; then
  4254. for ac_prog in dumpbin "link -dump"
  4255. do
  4256. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4257. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4259. $as_echo_n "checking for $ac_word... " >&6; }
  4260. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. if test -n "$DUMPBIN"; then
  4264. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4265. else
  4266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4267. for as_dir in $PATH
  4268. do
  4269. IFS=$as_save_IFS
  4270. test -z "$as_dir" && as_dir=.
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4273. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4275. break 2
  4276. fi
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. fi
  4281. fi
  4282. DUMPBIN=$ac_cv_prog_DUMPBIN
  4283. if test -n "$DUMPBIN"; then
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4285. $as_echo "$DUMPBIN" >&6; }
  4286. else
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. fi
  4290. test -n "$DUMPBIN" && break
  4291. done
  4292. fi
  4293. if test -z "$DUMPBIN"; then
  4294. ac_ct_DUMPBIN=$DUMPBIN
  4295. for ac_prog in dumpbin "link -dump"
  4296. do
  4297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4298. set dummy $ac_prog; ac_word=$2
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4300. $as_echo_n "checking for $ac_word... " >&6; }
  4301. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. if test -n "$ac_ct_DUMPBIN"; then
  4305. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4306. else
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4314. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. fi
  4322. fi
  4323. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4324. if test -n "$ac_ct_DUMPBIN"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4326. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4329. $as_echo "no" >&6; }
  4330. fi
  4331. test -n "$ac_ct_DUMPBIN" && break
  4332. done
  4333. if test "x$ac_ct_DUMPBIN" = x; then
  4334. DUMPBIN=":"
  4335. else
  4336. case $cross_compiling:$ac_tool_warned in
  4337. yes:)
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4340. ac_tool_warned=yes ;;
  4341. esac
  4342. DUMPBIN=$ac_ct_DUMPBIN
  4343. fi
  4344. fi
  4345. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4346. *COFF*)
  4347. DUMPBIN="$DUMPBIN -symbols -headers"
  4348. ;;
  4349. *)
  4350. DUMPBIN=:
  4351. ;;
  4352. esac
  4353. fi
  4354. if test : != "$DUMPBIN"; then
  4355. NM=$DUMPBIN
  4356. fi
  4357. fi
  4358. test -z "$NM" && NM=nm
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4360. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4361. if ${lt_cv_nm_interface+:} false; then :
  4362. $as_echo_n "(cached) " >&6
  4363. else
  4364. lt_cv_nm_interface="BSD nm"
  4365. echo "int some_variable = 0;" > conftest.$ac_ext
  4366. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4367. (eval "$ac_compile" 2>conftest.err)
  4368. cat conftest.err >&5
  4369. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4370. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4371. cat conftest.err >&5
  4372. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4373. cat conftest.out >&5
  4374. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4375. lt_cv_nm_interface="MS dumpbin"
  4376. fi
  4377. rm -f conftest*
  4378. fi
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4380. $as_echo "$lt_cv_nm_interface" >&6; }
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4382. $as_echo_n "checking whether ln -s works... " >&6; }
  4383. LN_S=$as_ln_s
  4384. if test "$LN_S" = "ln -s"; then
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4386. $as_echo "yes" >&6; }
  4387. else
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4389. $as_echo "no, using $LN_S" >&6; }
  4390. fi
  4391. # find the maximum length of command line arguments
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4393. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4394. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. i=0
  4398. teststring=ABCD
  4399. case $build_os in
  4400. msdosdjgpp*)
  4401. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4402. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4403. # during glob expansion). Even if it were fixed, the result of this
  4404. # check would be larger than it should be.
  4405. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4406. ;;
  4407. gnu*)
  4408. # Under GNU Hurd, this test is not required because there is
  4409. # no limit to the length of command line arguments.
  4410. # Libtool will interpret -1 as no limit whatsoever
  4411. lt_cv_sys_max_cmd_len=-1;
  4412. ;;
  4413. cygwin* | mingw* | cegcc*)
  4414. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4415. # about 5 minutes as the teststring grows exponentially.
  4416. # Worse, since 9x/ME are not pre-emptively multitasking,
  4417. # you end up with a "frozen" computer, even though with patience
  4418. # the test eventually succeeds (with a max line length of 256k).
  4419. # Instead, let's just punt: use the minimum linelength reported by
  4420. # all of the supported platforms: 8192 (on NT/2K/XP).
  4421. lt_cv_sys_max_cmd_len=8192;
  4422. ;;
  4423. mint*)
  4424. # On MiNT this can take a long time and run out of memory.
  4425. lt_cv_sys_max_cmd_len=8192;
  4426. ;;
  4427. amigaos*)
  4428. # On AmigaOS with pdksh, this test takes hours, literally.
  4429. # So we just punt and use a minimum line length of 8192.
  4430. lt_cv_sys_max_cmd_len=8192;
  4431. ;;
  4432. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4433. # This has been around since 386BSD, at least. Likely further.
  4434. if test -x /sbin/sysctl; then
  4435. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4436. elif test -x /usr/sbin/sysctl; then
  4437. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4438. else
  4439. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4440. fi
  4441. # And add a safety zone
  4442. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4443. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4444. ;;
  4445. interix*)
  4446. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4447. lt_cv_sys_max_cmd_len=196608
  4448. ;;
  4449. os2*)
  4450. # The test takes a long time on OS/2.
  4451. lt_cv_sys_max_cmd_len=8192
  4452. ;;
  4453. osf*)
  4454. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4455. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4456. # nice to cause kernel panics so lets avoid the loop below.
  4457. # First set a reasonable default.
  4458. lt_cv_sys_max_cmd_len=16384
  4459. #
  4460. if test -x /sbin/sysconfig; then
  4461. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4462. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4463. esac
  4464. fi
  4465. ;;
  4466. sco3.2v5*)
  4467. lt_cv_sys_max_cmd_len=102400
  4468. ;;
  4469. sysv5* | sco5v6* | sysv4.2uw2*)
  4470. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4471. if test -n "$kargmax"; then
  4472. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4473. else
  4474. lt_cv_sys_max_cmd_len=32768
  4475. fi
  4476. ;;
  4477. *)
  4478. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4479. if test -n "$lt_cv_sys_max_cmd_len" && \
  4480. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4481. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4482. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4483. else
  4484. # Make teststring a little bigger before we do anything with it.
  4485. # a 1K string should be a reasonable start.
  4486. for i in 1 2 3 4 5 6 7 8; do
  4487. teststring=$teststring$teststring
  4488. done
  4489. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4490. # If test is not a shell built-in, we'll probably end up computing a
  4491. # maximum length that is only half of the actual maximum length, but
  4492. # we can't tell.
  4493. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4494. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4495. test 17 != "$i" # 1/2 MB should be enough
  4496. do
  4497. i=`expr $i + 1`
  4498. teststring=$teststring$teststring
  4499. done
  4500. # Only check the string length outside the loop.
  4501. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4502. teststring=
  4503. # Add a significant safety factor because C++ compilers can tack on
  4504. # massive amounts of additional arguments before passing them to the
  4505. # linker. It appears as though 1/2 is a usable value.
  4506. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4507. fi
  4508. ;;
  4509. esac
  4510. fi
  4511. if test -n "$lt_cv_sys_max_cmd_len"; then
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4513. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4514. else
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4516. $as_echo "none" >&6; }
  4517. fi
  4518. max_cmd_len=$lt_cv_sys_max_cmd_len
  4519. : ${CP="cp -f"}
  4520. : ${MV="mv -f"}
  4521. : ${RM="rm -f"}
  4522. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4523. lt_unset=unset
  4524. else
  4525. lt_unset=false
  4526. fi
  4527. # test EBCDIC or ASCII
  4528. case `echo X|tr X '\101'` in
  4529. A) # ASCII based system
  4530. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4531. lt_SP2NL='tr \040 \012'
  4532. lt_NL2SP='tr \015\012 \040\040'
  4533. ;;
  4534. *) # EBCDIC based system
  4535. lt_SP2NL='tr \100 \n'
  4536. lt_NL2SP='tr \r\n \100\100'
  4537. ;;
  4538. esac
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4540. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4541. if ${lt_cv_to_host_file_cmd+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. case $host in
  4545. *-*-mingw* )
  4546. case $build in
  4547. *-*-mingw* ) # actually msys
  4548. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4549. ;;
  4550. *-*-cygwin* )
  4551. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4552. ;;
  4553. * ) # otherwise, assume *nix
  4554. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4555. ;;
  4556. esac
  4557. ;;
  4558. *-*-cygwin* )
  4559. case $build in
  4560. *-*-mingw* ) # actually msys
  4561. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4562. ;;
  4563. *-*-cygwin* )
  4564. lt_cv_to_host_file_cmd=func_convert_file_noop
  4565. ;;
  4566. * ) # otherwise, assume *nix
  4567. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4568. ;;
  4569. esac
  4570. ;;
  4571. * ) # unhandled hosts (and "normal" native builds)
  4572. lt_cv_to_host_file_cmd=func_convert_file_noop
  4573. ;;
  4574. esac
  4575. fi
  4576. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4578. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4580. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4581. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4582. $as_echo_n "(cached) " >&6
  4583. else
  4584. #assume ordinary cross tools, or native build.
  4585. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4586. case $host in
  4587. *-*-mingw* )
  4588. case $build in
  4589. *-*-mingw* ) # actually msys
  4590. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4591. ;;
  4592. esac
  4593. ;;
  4594. esac
  4595. fi
  4596. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4598. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4600. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4601. if ${lt_cv_ld_reload_flag+:} false; then :
  4602. $as_echo_n "(cached) " >&6
  4603. else
  4604. lt_cv_ld_reload_flag='-r'
  4605. fi
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4607. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4608. reload_flag=$lt_cv_ld_reload_flag
  4609. case $reload_flag in
  4610. "" | " "*) ;;
  4611. *) reload_flag=" $reload_flag" ;;
  4612. esac
  4613. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4614. case $host_os in
  4615. cygwin* | mingw* | pw32* | cegcc*)
  4616. if test yes != "$GCC"; then
  4617. reload_cmds=false
  4618. fi
  4619. ;;
  4620. darwin*)
  4621. if test yes = "$GCC"; then
  4622. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4623. else
  4624. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4625. fi
  4626. ;;
  4627. esac
  4628. if test -n "$ac_tool_prefix"; then
  4629. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4630. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$OBJDUMP"; then
  4637. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4646. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. OBJDUMP=$ac_cv_prog_OBJDUMP
  4656. if test -n "$OBJDUMP"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4658. $as_echo "$OBJDUMP" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. fi
  4664. if test -z "$ac_cv_prog_OBJDUMP"; then
  4665. ac_ct_OBJDUMP=$OBJDUMP
  4666. # Extract the first word of "objdump", so it can be a program name with args.
  4667. set dummy objdump; ac_word=$2
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4669. $as_echo_n "checking for $ac_word... " >&6; }
  4670. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. if test -n "$ac_ct_OBJDUMP"; then
  4674. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4675. else
  4676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4677. for as_dir in $PATH
  4678. do
  4679. IFS=$as_save_IFS
  4680. test -z "$as_dir" && as_dir=.
  4681. for ac_exec_ext in '' $ac_executable_extensions; do
  4682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4683. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4685. break 2
  4686. fi
  4687. done
  4688. done
  4689. IFS=$as_save_IFS
  4690. fi
  4691. fi
  4692. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4693. if test -n "$ac_ct_OBJDUMP"; then
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4695. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4696. else
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4698. $as_echo "no" >&6; }
  4699. fi
  4700. if test "x$ac_ct_OBJDUMP" = x; then
  4701. OBJDUMP="false"
  4702. else
  4703. case $cross_compiling:$ac_tool_warned in
  4704. yes:)
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4706. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4707. ac_tool_warned=yes ;;
  4708. esac
  4709. OBJDUMP=$ac_ct_OBJDUMP
  4710. fi
  4711. else
  4712. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4713. fi
  4714. test -z "$OBJDUMP" && OBJDUMP=objdump
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4716. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4717. if ${lt_cv_deplibs_check_method+:} false; then :
  4718. $as_echo_n "(cached) " >&6
  4719. else
  4720. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4721. lt_cv_file_magic_test_file=
  4722. lt_cv_deplibs_check_method='unknown'
  4723. # Need to set the preceding variable on all platforms that support
  4724. # interlibrary dependencies.
  4725. # 'none' -- dependencies not supported.
  4726. # 'unknown' -- same as none, but documents that we really don't know.
  4727. # 'pass_all' -- all dependencies passed with no checks.
  4728. # 'test_compile' -- check by making test program.
  4729. # 'file_magic [[regex]]' -- check by looking for files in library path
  4730. # that responds to the $file_magic_cmd with a given extended regex.
  4731. # If you have 'file' or equivalent on your system and you're not sure
  4732. # whether 'pass_all' will *always* work, you probably want this one.
  4733. case $host_os in
  4734. aix[4-9]*)
  4735. lt_cv_deplibs_check_method=pass_all
  4736. ;;
  4737. beos*)
  4738. lt_cv_deplibs_check_method=pass_all
  4739. ;;
  4740. bsdi[45]*)
  4741. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4742. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4743. lt_cv_file_magic_test_file=/shlib/libc.so
  4744. ;;
  4745. cygwin*)
  4746. # func_win32_libid is a shell function defined in ltmain.sh
  4747. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4748. lt_cv_file_magic_cmd='func_win32_libid'
  4749. ;;
  4750. mingw* | pw32*)
  4751. # Base MSYS/MinGW do not provide the 'file' command needed by
  4752. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4753. # unless we find 'file', for example because we are cross-compiling.
  4754. if ( file / ) >/dev/null 2>&1; then
  4755. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4756. lt_cv_file_magic_cmd='func_win32_libid'
  4757. else
  4758. # Keep this pattern in sync with the one in func_win32_libid.
  4759. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4760. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4761. fi
  4762. ;;
  4763. cegcc*)
  4764. # use the weaker test based on 'objdump'. See mingw*.
  4765. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4766. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4767. ;;
  4768. darwin* | rhapsody*)
  4769. lt_cv_deplibs_check_method=pass_all
  4770. ;;
  4771. freebsd* | dragonfly*)
  4772. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4773. case $host_cpu in
  4774. i*86 )
  4775. # Not sure whether the presence of OpenBSD here was a mistake.
  4776. # Let's accept both of them until this is cleared up.
  4777. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4778. lt_cv_file_magic_cmd=/usr/bin/file
  4779. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4780. ;;
  4781. esac
  4782. else
  4783. lt_cv_deplibs_check_method=pass_all
  4784. fi
  4785. ;;
  4786. haiku*)
  4787. lt_cv_deplibs_check_method=pass_all
  4788. ;;
  4789. hpux10.20* | hpux11*)
  4790. lt_cv_file_magic_cmd=/usr/bin/file
  4791. case $host_cpu in
  4792. ia64*)
  4793. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4794. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4795. ;;
  4796. hppa*64*)
  4797. 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]'
  4798. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4799. ;;
  4800. *)
  4801. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4802. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4803. ;;
  4804. esac
  4805. ;;
  4806. interix[3-9]*)
  4807. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4809. ;;
  4810. irix5* | irix6* | nonstopux*)
  4811. case $LD in
  4812. *-32|*"-32 ") libmagic=32-bit;;
  4813. *-n32|*"-n32 ") libmagic=N32;;
  4814. *-64|*"-64 ") libmagic=64-bit;;
  4815. *) libmagic=never-match;;
  4816. esac
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. # This must be glibc/ELF.
  4820. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4821. lt_cv_deplibs_check_method=pass_all
  4822. ;;
  4823. netbsd* | netbsdelf*-gnu)
  4824. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4825. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4826. else
  4827. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4828. fi
  4829. ;;
  4830. newos6*)
  4831. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4832. lt_cv_file_magic_cmd=/usr/bin/file
  4833. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4834. ;;
  4835. *nto* | *qnx*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. openbsd* | bitrig*)
  4839. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4840. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4841. else
  4842. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4843. fi
  4844. ;;
  4845. osf3* | osf4* | osf5*)
  4846. lt_cv_deplibs_check_method=pass_all
  4847. ;;
  4848. rdos*)
  4849. lt_cv_deplibs_check_method=pass_all
  4850. ;;
  4851. solaris*)
  4852. lt_cv_deplibs_check_method=pass_all
  4853. ;;
  4854. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4855. lt_cv_deplibs_check_method=pass_all
  4856. ;;
  4857. sysv4 | sysv4.3*)
  4858. case $host_vendor in
  4859. motorola)
  4860. 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]'
  4861. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4862. ;;
  4863. ncr)
  4864. lt_cv_deplibs_check_method=pass_all
  4865. ;;
  4866. sequent)
  4867. lt_cv_file_magic_cmd='/bin/file'
  4868. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4869. ;;
  4870. sni)
  4871. lt_cv_file_magic_cmd='/bin/file'
  4872. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4873. lt_cv_file_magic_test_file=/lib/libc.so
  4874. ;;
  4875. siemens)
  4876. lt_cv_deplibs_check_method=pass_all
  4877. ;;
  4878. pc)
  4879. lt_cv_deplibs_check_method=pass_all
  4880. ;;
  4881. esac
  4882. ;;
  4883. tpf*)
  4884. lt_cv_deplibs_check_method=pass_all
  4885. ;;
  4886. os2*)
  4887. lt_cv_deplibs_check_method=pass_all
  4888. ;;
  4889. esac
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4892. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4893. file_magic_glob=
  4894. want_nocaseglob=no
  4895. if test "$build" = "$host"; then
  4896. case $host_os in
  4897. mingw* | pw32*)
  4898. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4899. want_nocaseglob=yes
  4900. else
  4901. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4902. fi
  4903. ;;
  4904. esac
  4905. fi
  4906. file_magic_cmd=$lt_cv_file_magic_cmd
  4907. deplibs_check_method=$lt_cv_deplibs_check_method
  4908. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4909. if test -n "$ac_tool_prefix"; then
  4910. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4911. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$DLLTOOL"; then
  4918. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. DLLTOOL=$ac_cv_prog_DLLTOOL
  4937. if test -n "$DLLTOOL"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4939. $as_echo "$DLLTOOL" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. fi
  4945. if test -z "$ac_cv_prog_DLLTOOL"; then
  4946. ac_ct_DLLTOOL=$DLLTOOL
  4947. # Extract the first word of "dlltool", so it can be a program name with args.
  4948. set dummy dlltool; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$ac_ct_DLLTOOL"; then
  4955. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4974. if test -n "$ac_ct_DLLTOOL"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4976. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. if test "x$ac_ct_DLLTOOL" = x; then
  4982. DLLTOOL="false"
  4983. else
  4984. case $cross_compiling:$ac_tool_warned in
  4985. yes:)
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4987. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4988. ac_tool_warned=yes ;;
  4989. esac
  4990. DLLTOOL=$ac_ct_DLLTOOL
  4991. fi
  4992. else
  4993. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4994. fi
  4995. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4997. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4998. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5002. case $host_os in
  5003. cygwin* | mingw* | pw32* | cegcc*)
  5004. # two different shell functions defined in ltmain.sh;
  5005. # decide which one to use based on capabilities of $DLLTOOL
  5006. case `$DLLTOOL --help 2>&1` in
  5007. *--identify-strict*)
  5008. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5009. ;;
  5010. *)
  5011. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5012. ;;
  5013. esac
  5014. ;;
  5015. *)
  5016. # fallback: assume linklib IS sharedlib
  5017. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5018. ;;
  5019. esac
  5020. fi
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5022. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5023. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5024. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5025. if test -n "$ac_tool_prefix"; then
  5026. for ac_prog in ar
  5027. do
  5028. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5029. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5031. $as_echo_n "checking for $ac_word... " >&6; }
  5032. if ${ac_cv_prog_AR+:} false; then :
  5033. $as_echo_n "(cached) " >&6
  5034. else
  5035. if test -n "$AR"; then
  5036. ac_cv_prog_AR="$AR" # Let the user override the test.
  5037. else
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH
  5040. do
  5041. IFS=$as_save_IFS
  5042. test -z "$as_dir" && as_dir=.
  5043. for ac_exec_ext in '' $ac_executable_extensions; do
  5044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5045. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5047. break 2
  5048. fi
  5049. done
  5050. done
  5051. IFS=$as_save_IFS
  5052. fi
  5053. fi
  5054. AR=$ac_cv_prog_AR
  5055. if test -n "$AR"; then
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5057. $as_echo "$AR" >&6; }
  5058. else
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5060. $as_echo "no" >&6; }
  5061. fi
  5062. test -n "$AR" && break
  5063. done
  5064. fi
  5065. if test -z "$AR"; then
  5066. ac_ct_AR=$AR
  5067. for ac_prog in ar
  5068. do
  5069. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5070. set dummy $ac_prog; ac_word=$2
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5072. $as_echo_n "checking for $ac_word... " >&6; }
  5073. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. if test -n "$ac_ct_AR"; then
  5077. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5078. else
  5079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5080. for as_dir in $PATH
  5081. do
  5082. IFS=$as_save_IFS
  5083. test -z "$as_dir" && as_dir=.
  5084. for ac_exec_ext in '' $ac_executable_extensions; do
  5085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5086. ac_cv_prog_ac_ct_AR="$ac_prog"
  5087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5088. break 2
  5089. fi
  5090. done
  5091. done
  5092. IFS=$as_save_IFS
  5093. fi
  5094. fi
  5095. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5096. if test -n "$ac_ct_AR"; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5098. $as_echo "$ac_ct_AR" >&6; }
  5099. else
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5101. $as_echo "no" >&6; }
  5102. fi
  5103. test -n "$ac_ct_AR" && break
  5104. done
  5105. if test "x$ac_ct_AR" = x; then
  5106. AR="false"
  5107. else
  5108. case $cross_compiling:$ac_tool_warned in
  5109. yes:)
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5111. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5112. ac_tool_warned=yes ;;
  5113. esac
  5114. AR=$ac_ct_AR
  5115. fi
  5116. fi
  5117. : ${AR=ar}
  5118. : ${AR_FLAGS=cru}
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5120. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5121. if ${lt_cv_ar_at_file+:} false; then :
  5122. $as_echo_n "(cached) " >&6
  5123. else
  5124. lt_cv_ar_at_file=no
  5125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5126. /* end confdefs.h. */
  5127. int
  5128. main ()
  5129. {
  5130. ;
  5131. return 0;
  5132. }
  5133. _ACEOF
  5134. if ac_fn_c_try_compile "$LINENO"; then :
  5135. echo conftest.$ac_objext > conftest.lst
  5136. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5137. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5138. (eval $lt_ar_try) 2>&5
  5139. ac_status=$?
  5140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5141. test $ac_status = 0; }
  5142. if test 0 -eq "$ac_status"; then
  5143. # Ensure the archiver fails upon bogus file names.
  5144. rm -f conftest.$ac_objext libconftest.a
  5145. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5146. (eval $lt_ar_try) 2>&5
  5147. ac_status=$?
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5149. test $ac_status = 0; }
  5150. if test 0 -ne "$ac_status"; then
  5151. lt_cv_ar_at_file=@
  5152. fi
  5153. fi
  5154. rm -f conftest.* libconftest.a
  5155. fi
  5156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5157. fi
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5159. $as_echo "$lt_cv_ar_at_file" >&6; }
  5160. if test no = "$lt_cv_ar_at_file"; then
  5161. archiver_list_spec=
  5162. else
  5163. archiver_list_spec=$lt_cv_ar_at_file
  5164. fi
  5165. if test -n "$ac_tool_prefix"; then
  5166. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5167. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if ${ac_cv_prog_STRIP+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. if test -n "$STRIP"; then
  5174. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5175. else
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_exec_ext in '' $ac_executable_extensions; do
  5182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5183. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5185. break 2
  5186. fi
  5187. done
  5188. done
  5189. IFS=$as_save_IFS
  5190. fi
  5191. fi
  5192. STRIP=$ac_cv_prog_STRIP
  5193. if test -n "$STRIP"; then
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5195. $as_echo "$STRIP" >&6; }
  5196. else
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5198. $as_echo "no" >&6; }
  5199. fi
  5200. fi
  5201. if test -z "$ac_cv_prog_STRIP"; then
  5202. ac_ct_STRIP=$STRIP
  5203. # Extract the first word of "strip", so it can be a program name with args.
  5204. set dummy strip; ac_word=$2
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5206. $as_echo_n "checking for $ac_word... " >&6; }
  5207. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. if test -n "$ac_ct_STRIP"; then
  5211. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5212. else
  5213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5214. for as_dir in $PATH
  5215. do
  5216. IFS=$as_save_IFS
  5217. test -z "$as_dir" && as_dir=.
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5220. ac_cv_prog_ac_ct_STRIP="strip"
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5222. break 2
  5223. fi
  5224. done
  5225. done
  5226. IFS=$as_save_IFS
  5227. fi
  5228. fi
  5229. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5230. if test -n "$ac_ct_STRIP"; then
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5232. $as_echo "$ac_ct_STRIP" >&6; }
  5233. else
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. $as_echo "no" >&6; }
  5236. fi
  5237. if test "x$ac_ct_STRIP" = x; then
  5238. STRIP=":"
  5239. else
  5240. case $cross_compiling:$ac_tool_warned in
  5241. yes:)
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5244. ac_tool_warned=yes ;;
  5245. esac
  5246. STRIP=$ac_ct_STRIP
  5247. fi
  5248. else
  5249. STRIP="$ac_cv_prog_STRIP"
  5250. fi
  5251. test -z "$STRIP" && STRIP=:
  5252. if test -n "$ac_tool_prefix"; then
  5253. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5254. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5256. $as_echo_n "checking for $ac_word... " >&6; }
  5257. if ${ac_cv_prog_RANLIB+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. if test -n "$RANLIB"; then
  5261. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5262. else
  5263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5264. for as_dir in $PATH
  5265. do
  5266. IFS=$as_save_IFS
  5267. test -z "$as_dir" && as_dir=.
  5268. for ac_exec_ext in '' $ac_executable_extensions; do
  5269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5270. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5272. break 2
  5273. fi
  5274. done
  5275. done
  5276. IFS=$as_save_IFS
  5277. fi
  5278. fi
  5279. RANLIB=$ac_cv_prog_RANLIB
  5280. if test -n "$RANLIB"; then
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5282. $as_echo "$RANLIB" >&6; }
  5283. else
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5285. $as_echo "no" >&6; }
  5286. fi
  5287. fi
  5288. if test -z "$ac_cv_prog_RANLIB"; then
  5289. ac_ct_RANLIB=$RANLIB
  5290. # Extract the first word of "ranlib", so it can be a program name with args.
  5291. set dummy ranlib; ac_word=$2
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5293. $as_echo_n "checking for $ac_word... " >&6; }
  5294. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5295. $as_echo_n "(cached) " >&6
  5296. else
  5297. if test -n "$ac_ct_RANLIB"; then
  5298. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5299. else
  5300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5301. for as_dir in $PATH
  5302. do
  5303. IFS=$as_save_IFS
  5304. test -z "$as_dir" && as_dir=.
  5305. for ac_exec_ext in '' $ac_executable_extensions; do
  5306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5307. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5309. break 2
  5310. fi
  5311. done
  5312. done
  5313. IFS=$as_save_IFS
  5314. fi
  5315. fi
  5316. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5317. if test -n "$ac_ct_RANLIB"; then
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5319. $as_echo "$ac_ct_RANLIB" >&6; }
  5320. else
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5322. $as_echo "no" >&6; }
  5323. fi
  5324. if test "x$ac_ct_RANLIB" = x; then
  5325. RANLIB=":"
  5326. else
  5327. case $cross_compiling:$ac_tool_warned in
  5328. yes:)
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5331. ac_tool_warned=yes ;;
  5332. esac
  5333. RANLIB=$ac_ct_RANLIB
  5334. fi
  5335. else
  5336. RANLIB="$ac_cv_prog_RANLIB"
  5337. fi
  5338. test -z "$RANLIB" && RANLIB=:
  5339. # Determine commands to create old-style static archives.
  5340. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5341. old_postinstall_cmds='chmod 644 $oldlib'
  5342. old_postuninstall_cmds=
  5343. if test -n "$RANLIB"; then
  5344. case $host_os in
  5345. bitrig* | openbsd*)
  5346. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5347. ;;
  5348. *)
  5349. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5350. ;;
  5351. esac
  5352. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5353. fi
  5354. case $host_os in
  5355. darwin*)
  5356. lock_old_archive_extraction=yes ;;
  5357. *)
  5358. lock_old_archive_extraction=no ;;
  5359. esac
  5360. # If no C compiler was specified, use CC.
  5361. LTCC=${LTCC-"$CC"}
  5362. # If no C compiler flags were specified, use CFLAGS.
  5363. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5364. # Allow CC to be a program name with arguments.
  5365. compiler=$CC
  5366. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5368. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5369. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5370. $as_echo_n "(cached) " >&6
  5371. else
  5372. # These are sane defaults that work on at least a few old systems.
  5373. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5374. # Character class describing NM global symbol codes.
  5375. symcode='[BCDEGRST]'
  5376. # Regexp to match symbols that can be accessed directly from C.
  5377. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5378. # Define system-specific variables.
  5379. case $host_os in
  5380. aix*)
  5381. symcode='[BCDT]'
  5382. ;;
  5383. cygwin* | mingw* | pw32* | cegcc*)
  5384. symcode='[ABCDGISTW]'
  5385. ;;
  5386. hpux*)
  5387. if test ia64 = "$host_cpu"; then
  5388. symcode='[ABCDEGRST]'
  5389. fi
  5390. ;;
  5391. irix* | nonstopux*)
  5392. symcode='[BCDEGRST]'
  5393. ;;
  5394. osf*)
  5395. symcode='[BCDEGQRST]'
  5396. ;;
  5397. solaris*)
  5398. symcode='[BDRT]'
  5399. ;;
  5400. sco3.2v5*)
  5401. symcode='[DT]'
  5402. ;;
  5403. sysv4.2uw2*)
  5404. symcode='[DT]'
  5405. ;;
  5406. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5407. symcode='[ABDT]'
  5408. ;;
  5409. sysv4)
  5410. symcode='[DFNSTU]'
  5411. ;;
  5412. esac
  5413. # If we're using GNU nm, then use its standard symbol codes.
  5414. case `$NM -V 2>&1` in
  5415. *GNU* | *'with BFD'*)
  5416. symcode='[ABCDGIRSTW]' ;;
  5417. esac
  5418. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5419. # Gets list of data symbols to import.
  5420. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5421. # Adjust the below global symbol transforms to fixup imported variables.
  5422. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5423. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5424. lt_c_name_lib_hook="\
  5425. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5426. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5427. else
  5428. # Disable hooks by default.
  5429. lt_cv_sys_global_symbol_to_import=
  5430. lt_cdecl_hook=
  5431. lt_c_name_hook=
  5432. lt_c_name_lib_hook=
  5433. fi
  5434. # Transform an extracted symbol line into a proper C declaration.
  5435. # Some systems (esp. on ia64) link data and code symbols differently,
  5436. # so use this general approach.
  5437. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5438. $lt_cdecl_hook\
  5439. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5440. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5441. # Transform an extracted symbol line into symbol name and symbol address
  5442. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5443. $lt_c_name_hook\
  5444. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5445. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5446. # Transform an extracted symbol line into symbol name with lib prefix and
  5447. # symbol address.
  5448. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5449. $lt_c_name_lib_hook\
  5450. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5451. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5452. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5453. # Handle CRLF in mingw tool chain
  5454. opt_cr=
  5455. case $build_os in
  5456. mingw*)
  5457. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5458. ;;
  5459. esac
  5460. # Try without a prefix underscore, then with it.
  5461. for ac_symprfx in "" "_"; do
  5462. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5463. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5464. # Write the raw and C identifiers.
  5465. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5466. # Fake it for dumpbin and say T for any non-static function,
  5467. # D for any global variable and I for any imported variable.
  5468. # Also find C++ and __fastcall symbols from MSVC++,
  5469. # which start with @ or ?.
  5470. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5471. " {last_section=section; section=\$ 3};"\
  5472. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5473. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5474. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5475. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5476. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5477. " \$ 0!~/External *\|/{next};"\
  5478. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5479. " {if(hide[section]) next};"\
  5480. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5481. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5482. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5483. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5484. " ' prfx=^$ac_symprfx"
  5485. else
  5486. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5487. fi
  5488. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5489. # Check to see that the pipe works correctly.
  5490. pipe_works=no
  5491. rm -f conftest*
  5492. cat > conftest.$ac_ext <<_LT_EOF
  5493. #ifdef __cplusplus
  5494. extern "C" {
  5495. #endif
  5496. char nm_test_var;
  5497. void nm_test_func(void);
  5498. void nm_test_func(void){}
  5499. #ifdef __cplusplus
  5500. }
  5501. #endif
  5502. int main(){nm_test_var='a';nm_test_func();return(0);}
  5503. _LT_EOF
  5504. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5505. (eval $ac_compile) 2>&5
  5506. ac_status=$?
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5508. test $ac_status = 0; }; then
  5509. # Now try to grab the symbols.
  5510. nlist=conftest.nm
  5511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5512. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5513. ac_status=$?
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5515. test $ac_status = 0; } && test -s "$nlist"; then
  5516. # Try sorting and uniquifying the output.
  5517. if sort "$nlist" | uniq > "$nlist"T; then
  5518. mv -f "$nlist"T "$nlist"
  5519. else
  5520. rm -f "$nlist"T
  5521. fi
  5522. # Make sure that we snagged all the symbols we need.
  5523. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5524. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5525. cat <<_LT_EOF > conftest.$ac_ext
  5526. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5527. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5528. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5529. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5530. # define LT_DLSYM_CONST
  5531. #elif defined __osf__
  5532. /* This system does not cope well with relocations in const data. */
  5533. # define LT_DLSYM_CONST
  5534. #else
  5535. # define LT_DLSYM_CONST const
  5536. #endif
  5537. #ifdef __cplusplus
  5538. extern "C" {
  5539. #endif
  5540. _LT_EOF
  5541. # Now generate the symbol file.
  5542. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5543. cat <<_LT_EOF >> conftest.$ac_ext
  5544. /* The mapping between symbol names and symbols. */
  5545. LT_DLSYM_CONST struct {
  5546. const char *name;
  5547. void *address;
  5548. }
  5549. lt__PROGRAM__LTX_preloaded_symbols[] =
  5550. {
  5551. { "@PROGRAM@", (void *) 0 },
  5552. _LT_EOF
  5553. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5554. cat <<\_LT_EOF >> conftest.$ac_ext
  5555. {0, (void *) 0}
  5556. };
  5557. /* This works around a problem in FreeBSD linker */
  5558. #ifdef FREEBSD_WORKAROUND
  5559. static const void *lt_preloaded_setup() {
  5560. return lt__PROGRAM__LTX_preloaded_symbols;
  5561. }
  5562. #endif
  5563. #ifdef __cplusplus
  5564. }
  5565. #endif
  5566. _LT_EOF
  5567. # Now try linking the two files.
  5568. mv conftest.$ac_objext conftstm.$ac_objext
  5569. lt_globsym_save_LIBS=$LIBS
  5570. lt_globsym_save_CFLAGS=$CFLAGS
  5571. LIBS=conftstm.$ac_objext
  5572. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5573. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5574. (eval $ac_link) 2>&5
  5575. ac_status=$?
  5576. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5577. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5578. pipe_works=yes
  5579. fi
  5580. LIBS=$lt_globsym_save_LIBS
  5581. CFLAGS=$lt_globsym_save_CFLAGS
  5582. else
  5583. echo "cannot find nm_test_func in $nlist" >&5
  5584. fi
  5585. else
  5586. echo "cannot find nm_test_var in $nlist" >&5
  5587. fi
  5588. else
  5589. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5590. fi
  5591. else
  5592. echo "$progname: failed program was:" >&5
  5593. cat conftest.$ac_ext >&5
  5594. fi
  5595. rm -rf conftest* conftst*
  5596. # Do not use the global_symbol_pipe unless it works.
  5597. if test yes = "$pipe_works"; then
  5598. break
  5599. else
  5600. lt_cv_sys_global_symbol_pipe=
  5601. fi
  5602. done
  5603. fi
  5604. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5605. lt_cv_sys_global_symbol_to_cdecl=
  5606. fi
  5607. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5609. $as_echo "failed" >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5612. $as_echo "ok" >&6; }
  5613. fi
  5614. # Response file support.
  5615. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5616. nm_file_list_spec='@'
  5617. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5618. nm_file_list_spec='@'
  5619. fi
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5621. $as_echo_n "checking for sysroot... " >&6; }
  5622. # Check whether --with-sysroot was given.
  5623. if test "${with_sysroot+set}" = set; then :
  5624. withval=$with_sysroot;
  5625. else
  5626. with_sysroot=no
  5627. fi
  5628. lt_sysroot=
  5629. case $with_sysroot in #(
  5630. yes)
  5631. if test yes = "$GCC"; then
  5632. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5633. fi
  5634. ;; #(
  5635. /*)
  5636. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5637. ;; #(
  5638. no|'')
  5639. ;; #(
  5640. *)
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5642. $as_echo "$with_sysroot" >&6; }
  5643. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5644. ;;
  5645. esac
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5647. $as_echo "${lt_sysroot:-no}" >&6; }
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5649. $as_echo_n "checking for a working dd... " >&6; }
  5650. if ${ac_cv_path_lt_DD+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. printf 0123456789abcdef0123456789abcdef >conftest.i
  5654. cat conftest.i conftest.i >conftest2.i
  5655. : ${lt_DD:=$DD}
  5656. if test -z "$lt_DD"; then
  5657. ac_path_lt_DD_found=false
  5658. # Loop through the user's path and test for each of PROGNAME-LIST
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. test -z "$as_dir" && as_dir=.
  5664. for ac_prog in dd; do
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5667. as_fn_executable_p "$ac_path_lt_DD" || continue
  5668. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5669. cmp -s conftest.i conftest.out \
  5670. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5671. fi
  5672. $ac_path_lt_DD_found && break 3
  5673. done
  5674. done
  5675. done
  5676. IFS=$as_save_IFS
  5677. if test -z "$ac_cv_path_lt_DD"; then
  5678. :
  5679. fi
  5680. else
  5681. ac_cv_path_lt_DD=$lt_DD
  5682. fi
  5683. rm -f conftest.i conftest2.i conftest.out
  5684. fi
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5686. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5688. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5689. if ${lt_cv_truncate_bin+:} false; then :
  5690. $as_echo_n "(cached) " >&6
  5691. else
  5692. printf 0123456789abcdef0123456789abcdef >conftest.i
  5693. cat conftest.i conftest.i >conftest2.i
  5694. lt_cv_truncate_bin=
  5695. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5696. cmp -s conftest.i conftest.out \
  5697. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5698. fi
  5699. rm -f conftest.i conftest2.i conftest.out
  5700. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5701. fi
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5703. $as_echo "$lt_cv_truncate_bin" >&6; }
  5704. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5705. func_cc_basename ()
  5706. {
  5707. for cc_temp in $*""; do
  5708. case $cc_temp in
  5709. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5710. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5711. \-*) ;;
  5712. *) break;;
  5713. esac
  5714. done
  5715. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5716. }
  5717. # Check whether --enable-libtool-lock was given.
  5718. if test "${enable_libtool_lock+set}" = set; then :
  5719. enableval=$enable_libtool_lock;
  5720. fi
  5721. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5722. # Some flags need to be propagated to the compiler or linker for good
  5723. # libtool support.
  5724. case $host in
  5725. ia64-*-hpux*)
  5726. # Find out what ABI is being produced by ac_compile, and set mode
  5727. # options accordingly.
  5728. echo 'int i;' > conftest.$ac_ext
  5729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5730. (eval $ac_compile) 2>&5
  5731. ac_status=$?
  5732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5733. test $ac_status = 0; }; then
  5734. case `/usr/bin/file conftest.$ac_objext` in
  5735. *ELF-32*)
  5736. HPUX_IA64_MODE=32
  5737. ;;
  5738. *ELF-64*)
  5739. HPUX_IA64_MODE=64
  5740. ;;
  5741. esac
  5742. fi
  5743. rm -rf conftest*
  5744. ;;
  5745. *-*-irix6*)
  5746. # Find out what ABI is being produced by ac_compile, and set linker
  5747. # options accordingly.
  5748. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5750. (eval $ac_compile) 2>&5
  5751. ac_status=$?
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5753. test $ac_status = 0; }; then
  5754. if test yes = "$lt_cv_prog_gnu_ld"; then
  5755. case `/usr/bin/file conftest.$ac_objext` in
  5756. *32-bit*)
  5757. LD="${LD-ld} -melf32bsmip"
  5758. ;;
  5759. *N32*)
  5760. LD="${LD-ld} -melf32bmipn32"
  5761. ;;
  5762. *64-bit*)
  5763. LD="${LD-ld} -melf64bmip"
  5764. ;;
  5765. esac
  5766. else
  5767. case `/usr/bin/file conftest.$ac_objext` in
  5768. *32-bit*)
  5769. LD="${LD-ld} -32"
  5770. ;;
  5771. *N32*)
  5772. LD="${LD-ld} -n32"
  5773. ;;
  5774. *64-bit*)
  5775. LD="${LD-ld} -64"
  5776. ;;
  5777. esac
  5778. fi
  5779. fi
  5780. rm -rf conftest*
  5781. ;;
  5782. mips64*-*linux*)
  5783. # Find out what ABI is being produced by ac_compile, and set linker
  5784. # options accordingly.
  5785. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5787. (eval $ac_compile) 2>&5
  5788. ac_status=$?
  5789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5790. test $ac_status = 0; }; then
  5791. emul=elf
  5792. case `/usr/bin/file conftest.$ac_objext` in
  5793. *32-bit*)
  5794. emul="${emul}32"
  5795. ;;
  5796. *64-bit*)
  5797. emul="${emul}64"
  5798. ;;
  5799. esac
  5800. case `/usr/bin/file conftest.$ac_objext` in
  5801. *MSB*)
  5802. emul="${emul}btsmip"
  5803. ;;
  5804. *LSB*)
  5805. emul="${emul}ltsmip"
  5806. ;;
  5807. esac
  5808. case `/usr/bin/file conftest.$ac_objext` in
  5809. *N32*)
  5810. emul="${emul}n32"
  5811. ;;
  5812. esac
  5813. LD="${LD-ld} -m $emul"
  5814. fi
  5815. rm -rf conftest*
  5816. ;;
  5817. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5818. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5819. # Find out what ABI is being produced by ac_compile, and set linker
  5820. # options accordingly. Note that the listed cases only cover the
  5821. # situations where additional linker options are needed (such as when
  5822. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5823. # vice versa); the common cases where no linker options are needed do
  5824. # not appear in the list.
  5825. echo 'int i;' > conftest.$ac_ext
  5826. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5827. (eval $ac_compile) 2>&5
  5828. ac_status=$?
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5830. test $ac_status = 0; }; then
  5831. case `/usr/bin/file conftest.o` in
  5832. *32-bit*)
  5833. case $host in
  5834. x86_64-*kfreebsd*-gnu)
  5835. LD="${LD-ld} -m elf_i386_fbsd"
  5836. ;;
  5837. x86_64-*linux*)
  5838. case `/usr/bin/file conftest.o` in
  5839. *x86-64*)
  5840. LD="${LD-ld} -m elf32_x86_64"
  5841. ;;
  5842. *)
  5843. LD="${LD-ld} -m elf_i386"
  5844. ;;
  5845. esac
  5846. ;;
  5847. powerpc64le-*linux*)
  5848. LD="${LD-ld} -m elf32lppclinux"
  5849. ;;
  5850. powerpc64-*linux*)
  5851. LD="${LD-ld} -m elf32ppclinux"
  5852. ;;
  5853. s390x-*linux*)
  5854. LD="${LD-ld} -m elf_s390"
  5855. ;;
  5856. sparc64-*linux*)
  5857. LD="${LD-ld} -m elf32_sparc"
  5858. ;;
  5859. esac
  5860. ;;
  5861. *64-bit*)
  5862. case $host in
  5863. x86_64-*kfreebsd*-gnu)
  5864. LD="${LD-ld} -m elf_x86_64_fbsd"
  5865. ;;
  5866. x86_64-*linux*)
  5867. LD="${LD-ld} -m elf_x86_64"
  5868. ;;
  5869. powerpcle-*linux*)
  5870. LD="${LD-ld} -m elf64lppc"
  5871. ;;
  5872. powerpc-*linux*)
  5873. LD="${LD-ld} -m elf64ppc"
  5874. ;;
  5875. s390*-*linux*|s390*-*tpf*)
  5876. LD="${LD-ld} -m elf64_s390"
  5877. ;;
  5878. sparc*-*linux*)
  5879. LD="${LD-ld} -m elf64_sparc"
  5880. ;;
  5881. esac
  5882. ;;
  5883. esac
  5884. fi
  5885. rm -rf conftest*
  5886. ;;
  5887. *-*-sco3.2v5*)
  5888. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5889. SAVE_CFLAGS=$CFLAGS
  5890. CFLAGS="$CFLAGS -belf"
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5892. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5893. if ${lt_cv_cc_needs_belf+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. ac_ext=c
  5897. ac_cpp='$CPP $CPPFLAGS'
  5898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5902. /* end confdefs.h. */
  5903. int
  5904. main ()
  5905. {
  5906. ;
  5907. return 0;
  5908. }
  5909. _ACEOF
  5910. if ac_fn_c_try_link "$LINENO"; then :
  5911. lt_cv_cc_needs_belf=yes
  5912. else
  5913. lt_cv_cc_needs_belf=no
  5914. fi
  5915. rm -f core conftest.err conftest.$ac_objext \
  5916. conftest$ac_exeext conftest.$ac_ext
  5917. ac_ext=c
  5918. ac_cpp='$CPP $CPPFLAGS'
  5919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5922. fi
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5924. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5925. if test yes != "$lt_cv_cc_needs_belf"; then
  5926. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5927. CFLAGS=$SAVE_CFLAGS
  5928. fi
  5929. ;;
  5930. *-*solaris*)
  5931. # Find out what ABI is being produced by ac_compile, and set linker
  5932. # options accordingly.
  5933. echo 'int i;' > conftest.$ac_ext
  5934. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5935. (eval $ac_compile) 2>&5
  5936. ac_status=$?
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5938. test $ac_status = 0; }; then
  5939. case `/usr/bin/file conftest.o` in
  5940. *64-bit*)
  5941. case $lt_cv_prog_gnu_ld in
  5942. yes*)
  5943. case $host in
  5944. i?86-*-solaris*|x86_64-*-solaris*)
  5945. LD="${LD-ld} -m elf_x86_64"
  5946. ;;
  5947. sparc*-*-solaris*)
  5948. LD="${LD-ld} -m elf64_sparc"
  5949. ;;
  5950. esac
  5951. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5952. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5953. LD=${LD-ld}_sol2
  5954. fi
  5955. ;;
  5956. *)
  5957. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5958. LD="${LD-ld} -64"
  5959. fi
  5960. ;;
  5961. esac
  5962. ;;
  5963. esac
  5964. fi
  5965. rm -rf conftest*
  5966. ;;
  5967. esac
  5968. need_locks=$enable_libtool_lock
  5969. if test -n "$ac_tool_prefix"; then
  5970. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5971. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5973. $as_echo_n "checking for $ac_word... " >&6; }
  5974. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. if test -n "$MANIFEST_TOOL"; then
  5978. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5979. else
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983. IFS=$as_save_IFS
  5984. test -z "$as_dir" && as_dir=.
  5985. for ac_exec_ext in '' $ac_executable_extensions; do
  5986. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5987. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989. break 2
  5990. fi
  5991. done
  5992. done
  5993. IFS=$as_save_IFS
  5994. fi
  5995. fi
  5996. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5997. if test -n "$MANIFEST_TOOL"; then
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5999. $as_echo "$MANIFEST_TOOL" >&6; }
  6000. else
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. $as_echo "no" >&6; }
  6003. fi
  6004. fi
  6005. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6006. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6007. # Extract the first word of "mt", so it can be a program name with args.
  6008. set dummy mt; ac_word=$2
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6010. $as_echo_n "checking for $ac_word... " >&6; }
  6011. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6012. $as_echo_n "(cached) " >&6
  6013. else
  6014. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6015. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6016. else
  6017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6018. for as_dir in $PATH
  6019. do
  6020. IFS=$as_save_IFS
  6021. test -z "$as_dir" && as_dir=.
  6022. for ac_exec_ext in '' $ac_executable_extensions; do
  6023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6024. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6026. break 2
  6027. fi
  6028. done
  6029. done
  6030. IFS=$as_save_IFS
  6031. fi
  6032. fi
  6033. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6034. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6036. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6037. else
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6039. $as_echo "no" >&6; }
  6040. fi
  6041. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6042. MANIFEST_TOOL=":"
  6043. else
  6044. case $cross_compiling:$ac_tool_warned in
  6045. yes:)
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6048. ac_tool_warned=yes ;;
  6049. esac
  6050. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6051. fi
  6052. else
  6053. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6054. fi
  6055. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6057. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6058. if ${lt_cv_path_mainfest_tool+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. lt_cv_path_mainfest_tool=no
  6062. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6063. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6064. cat conftest.err >&5
  6065. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6066. lt_cv_path_mainfest_tool=yes
  6067. fi
  6068. rm -f conftest*
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6071. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6072. if test yes != "$lt_cv_path_mainfest_tool"; then
  6073. MANIFEST_TOOL=:
  6074. fi
  6075. case $host_os in
  6076. rhapsody* | darwin*)
  6077. if test -n "$ac_tool_prefix"; then
  6078. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6079. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6081. $as_echo_n "checking for $ac_word... " >&6; }
  6082. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. if test -n "$DSYMUTIL"; then
  6086. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6087. else
  6088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6089. for as_dir in $PATH
  6090. do
  6091. IFS=$as_save_IFS
  6092. test -z "$as_dir" && as_dir=.
  6093. for ac_exec_ext in '' $ac_executable_extensions; do
  6094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6095. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6097. break 2
  6098. fi
  6099. done
  6100. done
  6101. IFS=$as_save_IFS
  6102. fi
  6103. fi
  6104. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6105. if test -n "$DSYMUTIL"; then
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6107. $as_echo "$DSYMUTIL" >&6; }
  6108. else
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6110. $as_echo "no" >&6; }
  6111. fi
  6112. fi
  6113. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6114. ac_ct_DSYMUTIL=$DSYMUTIL
  6115. # Extract the first word of "dsymutil", so it can be a program name with args.
  6116. set dummy dsymutil; ac_word=$2
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6118. $as_echo_n "checking for $ac_word... " >&6; }
  6119. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6120. $as_echo_n "(cached) " >&6
  6121. else
  6122. if test -n "$ac_ct_DSYMUTIL"; then
  6123. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6124. else
  6125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6126. for as_dir in $PATH
  6127. do
  6128. IFS=$as_save_IFS
  6129. test -z "$as_dir" && as_dir=.
  6130. for ac_exec_ext in '' $ac_executable_extensions; do
  6131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6132. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6134. break 2
  6135. fi
  6136. done
  6137. done
  6138. IFS=$as_save_IFS
  6139. fi
  6140. fi
  6141. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6142. if test -n "$ac_ct_DSYMUTIL"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6144. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6145. else
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6147. $as_echo "no" >&6; }
  6148. fi
  6149. if test "x$ac_ct_DSYMUTIL" = x; then
  6150. DSYMUTIL=":"
  6151. else
  6152. case $cross_compiling:$ac_tool_warned in
  6153. yes:)
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6156. ac_tool_warned=yes ;;
  6157. esac
  6158. DSYMUTIL=$ac_ct_DSYMUTIL
  6159. fi
  6160. else
  6161. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6162. fi
  6163. if test -n "$ac_tool_prefix"; then
  6164. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6165. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6167. $as_echo_n "checking for $ac_word... " >&6; }
  6168. if ${ac_cv_prog_NMEDIT+:} false; then :
  6169. $as_echo_n "(cached) " >&6
  6170. else
  6171. if test -n "$NMEDIT"; then
  6172. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6173. else
  6174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6175. for as_dir in $PATH
  6176. do
  6177. IFS=$as_save_IFS
  6178. test -z "$as_dir" && as_dir=.
  6179. for ac_exec_ext in '' $ac_executable_extensions; do
  6180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6181. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6183. break 2
  6184. fi
  6185. done
  6186. done
  6187. IFS=$as_save_IFS
  6188. fi
  6189. fi
  6190. NMEDIT=$ac_cv_prog_NMEDIT
  6191. if test -n "$NMEDIT"; then
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6193. $as_echo "$NMEDIT" >&6; }
  6194. else
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6196. $as_echo "no" >&6; }
  6197. fi
  6198. fi
  6199. if test -z "$ac_cv_prog_NMEDIT"; then
  6200. ac_ct_NMEDIT=$NMEDIT
  6201. # Extract the first word of "nmedit", so it can be a program name with args.
  6202. set dummy nmedit; ac_word=$2
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6204. $as_echo_n "checking for $ac_word... " >&6; }
  6205. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6206. $as_echo_n "(cached) " >&6
  6207. else
  6208. if test -n "$ac_ct_NMEDIT"; then
  6209. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6210. else
  6211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6212. for as_dir in $PATH
  6213. do
  6214. IFS=$as_save_IFS
  6215. test -z "$as_dir" && as_dir=.
  6216. for ac_exec_ext in '' $ac_executable_extensions; do
  6217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6218. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6220. break 2
  6221. fi
  6222. done
  6223. done
  6224. IFS=$as_save_IFS
  6225. fi
  6226. fi
  6227. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6228. if test -n "$ac_ct_NMEDIT"; then
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6230. $as_echo "$ac_ct_NMEDIT" >&6; }
  6231. else
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6233. $as_echo "no" >&6; }
  6234. fi
  6235. if test "x$ac_ct_NMEDIT" = x; then
  6236. NMEDIT=":"
  6237. else
  6238. case $cross_compiling:$ac_tool_warned in
  6239. yes:)
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6242. ac_tool_warned=yes ;;
  6243. esac
  6244. NMEDIT=$ac_ct_NMEDIT
  6245. fi
  6246. else
  6247. NMEDIT="$ac_cv_prog_NMEDIT"
  6248. fi
  6249. if test -n "$ac_tool_prefix"; then
  6250. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6251. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6253. $as_echo_n "checking for $ac_word... " >&6; }
  6254. if ${ac_cv_prog_LIPO+:} false; then :
  6255. $as_echo_n "(cached) " >&6
  6256. else
  6257. if test -n "$LIPO"; then
  6258. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6259. else
  6260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6261. for as_dir in $PATH
  6262. do
  6263. IFS=$as_save_IFS
  6264. test -z "$as_dir" && as_dir=.
  6265. for ac_exec_ext in '' $ac_executable_extensions; do
  6266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6267. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6269. break 2
  6270. fi
  6271. done
  6272. done
  6273. IFS=$as_save_IFS
  6274. fi
  6275. fi
  6276. LIPO=$ac_cv_prog_LIPO
  6277. if test -n "$LIPO"; then
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6279. $as_echo "$LIPO" >&6; }
  6280. else
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6282. $as_echo "no" >&6; }
  6283. fi
  6284. fi
  6285. if test -z "$ac_cv_prog_LIPO"; then
  6286. ac_ct_LIPO=$LIPO
  6287. # Extract the first word of "lipo", so it can be a program name with args.
  6288. set dummy lipo; ac_word=$2
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6290. $as_echo_n "checking for $ac_word... " >&6; }
  6291. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. if test -n "$ac_ct_LIPO"; then
  6295. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6296. else
  6297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6298. for as_dir in $PATH
  6299. do
  6300. IFS=$as_save_IFS
  6301. test -z "$as_dir" && as_dir=.
  6302. for ac_exec_ext in '' $ac_executable_extensions; do
  6303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6304. ac_cv_prog_ac_ct_LIPO="lipo"
  6305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6306. break 2
  6307. fi
  6308. done
  6309. done
  6310. IFS=$as_save_IFS
  6311. fi
  6312. fi
  6313. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6314. if test -n "$ac_ct_LIPO"; then
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6316. $as_echo "$ac_ct_LIPO" >&6; }
  6317. else
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6319. $as_echo "no" >&6; }
  6320. fi
  6321. if test "x$ac_ct_LIPO" = x; then
  6322. LIPO=":"
  6323. else
  6324. case $cross_compiling:$ac_tool_warned in
  6325. yes:)
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6327. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6328. ac_tool_warned=yes ;;
  6329. esac
  6330. LIPO=$ac_ct_LIPO
  6331. fi
  6332. else
  6333. LIPO="$ac_cv_prog_LIPO"
  6334. fi
  6335. if test -n "$ac_tool_prefix"; then
  6336. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6337. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6339. $as_echo_n "checking for $ac_word... " >&6; }
  6340. if ${ac_cv_prog_OTOOL+:} false; then :
  6341. $as_echo_n "(cached) " >&6
  6342. else
  6343. if test -n "$OTOOL"; then
  6344. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6345. else
  6346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6347. for as_dir in $PATH
  6348. do
  6349. IFS=$as_save_IFS
  6350. test -z "$as_dir" && as_dir=.
  6351. for ac_exec_ext in '' $ac_executable_extensions; do
  6352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6353. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6355. break 2
  6356. fi
  6357. done
  6358. done
  6359. IFS=$as_save_IFS
  6360. fi
  6361. fi
  6362. OTOOL=$ac_cv_prog_OTOOL
  6363. if test -n "$OTOOL"; then
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6365. $as_echo "$OTOOL" >&6; }
  6366. else
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6368. $as_echo "no" >&6; }
  6369. fi
  6370. fi
  6371. if test -z "$ac_cv_prog_OTOOL"; then
  6372. ac_ct_OTOOL=$OTOOL
  6373. # Extract the first word of "otool", so it can be a program name with args.
  6374. set dummy otool; ac_word=$2
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6376. $as_echo_n "checking for $ac_word... " >&6; }
  6377. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6378. $as_echo_n "(cached) " >&6
  6379. else
  6380. if test -n "$ac_ct_OTOOL"; then
  6381. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6382. else
  6383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6384. for as_dir in $PATH
  6385. do
  6386. IFS=$as_save_IFS
  6387. test -z "$as_dir" && as_dir=.
  6388. for ac_exec_ext in '' $ac_executable_extensions; do
  6389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6390. ac_cv_prog_ac_ct_OTOOL="otool"
  6391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6392. break 2
  6393. fi
  6394. done
  6395. done
  6396. IFS=$as_save_IFS
  6397. fi
  6398. fi
  6399. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6400. if test -n "$ac_ct_OTOOL"; then
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6402. $as_echo "$ac_ct_OTOOL" >&6; }
  6403. else
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6405. $as_echo "no" >&6; }
  6406. fi
  6407. if test "x$ac_ct_OTOOL" = x; then
  6408. OTOOL=":"
  6409. else
  6410. case $cross_compiling:$ac_tool_warned in
  6411. yes:)
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6414. ac_tool_warned=yes ;;
  6415. esac
  6416. OTOOL=$ac_ct_OTOOL
  6417. fi
  6418. else
  6419. OTOOL="$ac_cv_prog_OTOOL"
  6420. fi
  6421. if test -n "$ac_tool_prefix"; then
  6422. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6423. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. $as_echo_n "checking for $ac_word... " >&6; }
  6426. if ${ac_cv_prog_OTOOL64+:} false; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. if test -n "$OTOOL64"; then
  6430. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6431. else
  6432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6433. for as_dir in $PATH
  6434. do
  6435. IFS=$as_save_IFS
  6436. test -z "$as_dir" && as_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6439. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. OTOOL64=$ac_cv_prog_OTOOL64
  6449. if test -n "$OTOOL64"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6451. $as_echo "$OTOOL64" >&6; }
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. fi
  6457. if test -z "$ac_cv_prog_OTOOL64"; then
  6458. ac_ct_OTOOL64=$OTOOL64
  6459. # Extract the first word of "otool64", so it can be a program name with args.
  6460. set dummy otool64; ac_word=$2
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6462. $as_echo_n "checking for $ac_word... " >&6; }
  6463. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6464. $as_echo_n "(cached) " >&6
  6465. else
  6466. if test -n "$ac_ct_OTOOL64"; then
  6467. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6468. else
  6469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6470. for as_dir in $PATH
  6471. do
  6472. IFS=$as_save_IFS
  6473. test -z "$as_dir" && as_dir=.
  6474. for ac_exec_ext in '' $ac_executable_extensions; do
  6475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6476. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6478. break 2
  6479. fi
  6480. done
  6481. done
  6482. IFS=$as_save_IFS
  6483. fi
  6484. fi
  6485. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6486. if test -n "$ac_ct_OTOOL64"; then
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6488. $as_echo "$ac_ct_OTOOL64" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. if test "x$ac_ct_OTOOL64" = x; then
  6494. OTOOL64=":"
  6495. else
  6496. case $cross_compiling:$ac_tool_warned in
  6497. yes:)
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6500. ac_tool_warned=yes ;;
  6501. esac
  6502. OTOOL64=$ac_ct_OTOOL64
  6503. fi
  6504. else
  6505. OTOOL64="$ac_cv_prog_OTOOL64"
  6506. fi
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6508. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6509. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. lt_cv_apple_cc_single_mod=no
  6513. if test -z "$LT_MULTI_MODULE"; then
  6514. # By default we will add the -single_module flag. You can override
  6515. # by either setting the environment variable LT_MULTI_MODULE
  6516. # non-empty at configure time, or by adding -multi_module to the
  6517. # link flags.
  6518. rm -rf libconftest.dylib*
  6519. echo "int foo(void){return 1;}" > conftest.c
  6520. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6521. -dynamiclib -Wl,-single_module conftest.c" >&5
  6522. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6523. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6524. _lt_result=$?
  6525. # If there is a non-empty error log, and "single_module"
  6526. # appears in it, assume the flag caused a linker warning
  6527. if test -s conftest.err && $GREP single_module conftest.err; then
  6528. cat conftest.err >&5
  6529. # Otherwise, if the output was created with a 0 exit code from
  6530. # the compiler, it worked.
  6531. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6532. lt_cv_apple_cc_single_mod=yes
  6533. else
  6534. cat conftest.err >&5
  6535. fi
  6536. rm -rf libconftest.dylib*
  6537. rm -f conftest.*
  6538. fi
  6539. fi
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6541. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6543. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6544. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. lt_cv_ld_exported_symbols_list=no
  6548. save_LDFLAGS=$LDFLAGS
  6549. echo "_main" > conftest.sym
  6550. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6552. /* end confdefs.h. */
  6553. int
  6554. main ()
  6555. {
  6556. ;
  6557. return 0;
  6558. }
  6559. _ACEOF
  6560. if ac_fn_c_try_link "$LINENO"; then :
  6561. lt_cv_ld_exported_symbols_list=yes
  6562. else
  6563. lt_cv_ld_exported_symbols_list=no
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext \
  6566. conftest$ac_exeext conftest.$ac_ext
  6567. LDFLAGS=$save_LDFLAGS
  6568. fi
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6570. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6572. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6573. if ${lt_cv_ld_force_load+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. lt_cv_ld_force_load=no
  6577. cat > conftest.c << _LT_EOF
  6578. int forced_loaded() { return 2;}
  6579. _LT_EOF
  6580. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6581. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6582. echo "$AR cru libconftest.a conftest.o" >&5
  6583. $AR cru libconftest.a conftest.o 2>&5
  6584. echo "$RANLIB libconftest.a" >&5
  6585. $RANLIB libconftest.a 2>&5
  6586. cat > conftest.c << _LT_EOF
  6587. int main() { return 0;}
  6588. _LT_EOF
  6589. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6590. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6591. _lt_result=$?
  6592. if test -s conftest.err && $GREP force_load conftest.err; then
  6593. cat conftest.err >&5
  6594. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6595. lt_cv_ld_force_load=yes
  6596. else
  6597. cat conftest.err >&5
  6598. fi
  6599. rm -f conftest.err libconftest.a conftest conftest.c
  6600. rm -rf conftest.dSYM
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6603. $as_echo "$lt_cv_ld_force_load" >&6; }
  6604. case $host_os in
  6605. rhapsody* | darwin1.[012])
  6606. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6607. darwin1.*)
  6608. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6609. darwin*) # darwin 5.x on
  6610. # if running on 10.5 or later, the deployment target defaults
  6611. # to the OS version, if on x86, and 10.4, the deployment
  6612. # target defaults to 10.4. Don't you love it?
  6613. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6614. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6615. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6616. 10.[012][,.]*)
  6617. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6618. 10.*)
  6619. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6620. esac
  6621. ;;
  6622. esac
  6623. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6624. _lt_dar_single_mod='$single_module'
  6625. fi
  6626. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6627. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6628. else
  6629. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6630. fi
  6631. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6632. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6633. else
  6634. _lt_dsymutil=
  6635. fi
  6636. ;;
  6637. esac
  6638. # func_munge_path_list VARIABLE PATH
  6639. # -----------------------------------
  6640. # VARIABLE is name of variable containing _space_ separated list of
  6641. # directories to be munged by the contents of PATH, which is string
  6642. # having a format:
  6643. # "DIR[:DIR]:"
  6644. # string "DIR[ DIR]" will be prepended to VARIABLE
  6645. # ":DIR[:DIR]"
  6646. # string "DIR[ DIR]" will be appended to VARIABLE
  6647. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6648. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6649. # "DIRA[ DIRA]" will be appended to VARIABLE
  6650. # "DIR[:DIR]"
  6651. # VARIABLE will be replaced by "DIR[ DIR]"
  6652. func_munge_path_list ()
  6653. {
  6654. case x$2 in
  6655. x)
  6656. ;;
  6657. *:)
  6658. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6659. ;;
  6660. x:*)
  6661. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6662. ;;
  6663. *::*)
  6664. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6665. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6666. ;;
  6667. *)
  6668. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6669. ;;
  6670. esac
  6671. }
  6672. ac_ext=c
  6673. ac_cpp='$CPP $CPPFLAGS'
  6674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6678. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6679. # On Suns, sometimes $CPP names a directory.
  6680. if test -n "$CPP" && test -d "$CPP"; then
  6681. CPP=
  6682. fi
  6683. if test -z "$CPP"; then
  6684. if ${ac_cv_prog_CPP+:} false; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. # Double quotes because CPP needs to be expanded
  6688. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6689. do
  6690. ac_preproc_ok=false
  6691. for ac_c_preproc_warn_flag in '' yes
  6692. do
  6693. # Use a header file that comes with gcc, so configuring glibc
  6694. # with a fresh cross-compiler works.
  6695. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6696. # <limits.h> exists even on freestanding compilers.
  6697. # On the NeXT, cc -E runs the code through the compiler's parser,
  6698. # not just through cpp. "Syntax error" is here to catch this case.
  6699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6700. /* end confdefs.h. */
  6701. #ifdef __STDC__
  6702. # include <limits.h>
  6703. #else
  6704. # include <assert.h>
  6705. #endif
  6706. Syntax error
  6707. _ACEOF
  6708. if ac_fn_c_try_cpp "$LINENO"; then :
  6709. else
  6710. # Broken: fails on valid input.
  6711. continue
  6712. fi
  6713. rm -f conftest.err conftest.i conftest.$ac_ext
  6714. # OK, works on sane cases. Now check whether nonexistent headers
  6715. # can be detected and how.
  6716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6717. /* end confdefs.h. */
  6718. #include <ac_nonexistent.h>
  6719. _ACEOF
  6720. if ac_fn_c_try_cpp "$LINENO"; then :
  6721. # Broken: success on invalid input.
  6722. continue
  6723. else
  6724. # Passes both tests.
  6725. ac_preproc_ok=:
  6726. break
  6727. fi
  6728. rm -f conftest.err conftest.i conftest.$ac_ext
  6729. done
  6730. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6731. rm -f conftest.i conftest.err conftest.$ac_ext
  6732. if $ac_preproc_ok; then :
  6733. break
  6734. fi
  6735. done
  6736. ac_cv_prog_CPP=$CPP
  6737. fi
  6738. CPP=$ac_cv_prog_CPP
  6739. else
  6740. ac_cv_prog_CPP=$CPP
  6741. fi
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6743. $as_echo "$CPP" >&6; }
  6744. ac_preproc_ok=false
  6745. for ac_c_preproc_warn_flag in '' yes
  6746. do
  6747. # Use a header file that comes with gcc, so configuring glibc
  6748. # with a fresh cross-compiler works.
  6749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6750. # <limits.h> exists even on freestanding compilers.
  6751. # On the NeXT, cc -E runs the code through the compiler's parser,
  6752. # not just through cpp. "Syntax error" is here to catch this case.
  6753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6754. /* end confdefs.h. */
  6755. #ifdef __STDC__
  6756. # include <limits.h>
  6757. #else
  6758. # include <assert.h>
  6759. #endif
  6760. Syntax error
  6761. _ACEOF
  6762. if ac_fn_c_try_cpp "$LINENO"; then :
  6763. else
  6764. # Broken: fails on valid input.
  6765. continue
  6766. fi
  6767. rm -f conftest.err conftest.i conftest.$ac_ext
  6768. # OK, works on sane cases. Now check whether nonexistent headers
  6769. # can be detected and how.
  6770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6771. /* end confdefs.h. */
  6772. #include <ac_nonexistent.h>
  6773. _ACEOF
  6774. if ac_fn_c_try_cpp "$LINENO"; then :
  6775. # Broken: success on invalid input.
  6776. continue
  6777. else
  6778. # Passes both tests.
  6779. ac_preproc_ok=:
  6780. break
  6781. fi
  6782. rm -f conftest.err conftest.i conftest.$ac_ext
  6783. done
  6784. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6785. rm -f conftest.i conftest.err conftest.$ac_ext
  6786. if $ac_preproc_ok; then :
  6787. else
  6788. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6789. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6790. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6791. See \`config.log' for more details" "$LINENO" 5; }
  6792. fi
  6793. ac_ext=c
  6794. ac_cpp='$CPP $CPPFLAGS'
  6795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6799. $as_echo_n "checking for ANSI C header files... " >&6; }
  6800. if ${ac_cv_header_stdc+:} false; then :
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6804. /* end confdefs.h. */
  6805. #include <stdlib.h>
  6806. #include <stdarg.h>
  6807. #include <string.h>
  6808. #include <float.h>
  6809. int
  6810. main ()
  6811. {
  6812. ;
  6813. return 0;
  6814. }
  6815. _ACEOF
  6816. if ac_fn_c_try_compile "$LINENO"; then :
  6817. ac_cv_header_stdc=yes
  6818. else
  6819. ac_cv_header_stdc=no
  6820. fi
  6821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6822. if test $ac_cv_header_stdc = yes; then
  6823. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6825. /* end confdefs.h. */
  6826. #include <string.h>
  6827. _ACEOF
  6828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6829. $EGREP "memchr" >/dev/null 2>&1; then :
  6830. else
  6831. ac_cv_header_stdc=no
  6832. fi
  6833. rm -f conftest*
  6834. fi
  6835. if test $ac_cv_header_stdc = yes; then
  6836. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6838. /* end confdefs.h. */
  6839. #include <stdlib.h>
  6840. _ACEOF
  6841. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6842. $EGREP "free" >/dev/null 2>&1; then :
  6843. else
  6844. ac_cv_header_stdc=no
  6845. fi
  6846. rm -f conftest*
  6847. fi
  6848. if test $ac_cv_header_stdc = yes; then
  6849. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6850. if test "$cross_compiling" = yes; then :
  6851. :
  6852. else
  6853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6854. /* end confdefs.h. */
  6855. #include <ctype.h>
  6856. #include <stdlib.h>
  6857. #if ((' ' & 0x0FF) == 0x020)
  6858. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6859. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6860. #else
  6861. # define ISLOWER(c) \
  6862. (('a' <= (c) && (c) <= 'i') \
  6863. || ('j' <= (c) && (c) <= 'r') \
  6864. || ('s' <= (c) && (c) <= 'z'))
  6865. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6866. #endif
  6867. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6868. int
  6869. main ()
  6870. {
  6871. int i;
  6872. for (i = 0; i < 256; i++)
  6873. if (XOR (islower (i), ISLOWER (i))
  6874. || toupper (i) != TOUPPER (i))
  6875. return 2;
  6876. return 0;
  6877. }
  6878. _ACEOF
  6879. if ac_fn_c_try_run "$LINENO"; then :
  6880. else
  6881. ac_cv_header_stdc=no
  6882. fi
  6883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6884. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6885. fi
  6886. fi
  6887. fi
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6889. $as_echo "$ac_cv_header_stdc" >&6; }
  6890. if test $ac_cv_header_stdc = yes; then
  6891. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6892. fi
  6893. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6894. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6895. inttypes.h stdint.h unistd.h
  6896. do :
  6897. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6898. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6899. "
  6900. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6901. cat >>confdefs.h <<_ACEOF
  6902. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6903. _ACEOF
  6904. fi
  6905. done
  6906. for ac_header in dlfcn.h
  6907. do :
  6908. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6909. "
  6910. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6911. cat >>confdefs.h <<_ACEOF
  6912. #define HAVE_DLFCN_H 1
  6913. _ACEOF
  6914. fi
  6915. done
  6916. # Set options
  6917. enable_dlopen=no
  6918. enable_win32_dll=no
  6919. # Check whether --enable-shared was given.
  6920. if test "${enable_shared+set}" = set; then :
  6921. enableval=$enable_shared; p=${PACKAGE-default}
  6922. case $enableval in
  6923. yes) enable_shared=yes ;;
  6924. no) enable_shared=no ;;
  6925. *)
  6926. enable_shared=no
  6927. # Look at the argument we got. We use all the common list separators.
  6928. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6929. for pkg in $enableval; do
  6930. IFS=$lt_save_ifs
  6931. if test "X$pkg" = "X$p"; then
  6932. enable_shared=yes
  6933. fi
  6934. done
  6935. IFS=$lt_save_ifs
  6936. ;;
  6937. esac
  6938. else
  6939. enable_shared=yes
  6940. fi
  6941. # Check whether --enable-static was given.
  6942. if test "${enable_static+set}" = set; then :
  6943. enableval=$enable_static; p=${PACKAGE-default}
  6944. case $enableval in
  6945. yes) enable_static=yes ;;
  6946. no) enable_static=no ;;
  6947. *)
  6948. enable_static=no
  6949. # Look at the argument we got. We use all the common list separators.
  6950. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6951. for pkg in $enableval; do
  6952. IFS=$lt_save_ifs
  6953. if test "X$pkg" = "X$p"; then
  6954. enable_static=yes
  6955. fi
  6956. done
  6957. IFS=$lt_save_ifs
  6958. ;;
  6959. esac
  6960. else
  6961. enable_static=yes
  6962. fi
  6963. # Check whether --with-pic was given.
  6964. if test "${with_pic+set}" = set; then :
  6965. withval=$with_pic; lt_p=${PACKAGE-default}
  6966. case $withval in
  6967. yes|no) pic_mode=$withval ;;
  6968. *)
  6969. pic_mode=default
  6970. # Look at the argument we got. We use all the common list separators.
  6971. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6972. for lt_pkg in $withval; do
  6973. IFS=$lt_save_ifs
  6974. if test "X$lt_pkg" = "X$lt_p"; then
  6975. pic_mode=yes
  6976. fi
  6977. done
  6978. IFS=$lt_save_ifs
  6979. ;;
  6980. esac
  6981. else
  6982. pic_mode=default
  6983. fi
  6984. # Check whether --enable-fast-install was given.
  6985. if test "${enable_fast_install+set}" = set; then :
  6986. enableval=$enable_fast_install; p=${PACKAGE-default}
  6987. case $enableval in
  6988. yes) enable_fast_install=yes ;;
  6989. no) enable_fast_install=no ;;
  6990. *)
  6991. enable_fast_install=no
  6992. # Look at the argument we got. We use all the common list separators.
  6993. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6994. for pkg in $enableval; do
  6995. IFS=$lt_save_ifs
  6996. if test "X$pkg" = "X$p"; then
  6997. enable_fast_install=yes
  6998. fi
  6999. done
  7000. IFS=$lt_save_ifs
  7001. ;;
  7002. esac
  7003. else
  7004. enable_fast_install=yes
  7005. fi
  7006. shared_archive_member_spec=
  7007. case $host,$enable_shared in
  7008. power*-*-aix[5-9]*,yes)
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7010. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7011. # Check whether --with-aix-soname was given.
  7012. if test "${with_aix_soname+set}" = set; then :
  7013. withval=$with_aix_soname; case $withval in
  7014. aix|svr4|both)
  7015. ;;
  7016. *)
  7017. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7018. ;;
  7019. esac
  7020. lt_cv_with_aix_soname=$with_aix_soname
  7021. else
  7022. if ${lt_cv_with_aix_soname+:} false; then :
  7023. $as_echo_n "(cached) " >&6
  7024. else
  7025. lt_cv_with_aix_soname=aix
  7026. fi
  7027. with_aix_soname=$lt_cv_with_aix_soname
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7030. $as_echo "$with_aix_soname" >&6; }
  7031. if test aix != "$with_aix_soname"; then
  7032. # For the AIX way of multilib, we name the shared archive member
  7033. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7034. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7035. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7036. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7037. if test 64 = "${OBJECT_MODE-32}"; then
  7038. shared_archive_member_spec=shr_64
  7039. else
  7040. shared_archive_member_spec=shr
  7041. fi
  7042. fi
  7043. ;;
  7044. *)
  7045. with_aix_soname=aix
  7046. ;;
  7047. esac
  7048. # This can be used to rebuild libtool when needed
  7049. LIBTOOL_DEPS=$ltmain
  7050. # Always use our own libtool.
  7051. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7052. test -z "$LN_S" && LN_S="ln -s"
  7053. if test -n "${ZSH_VERSION+set}"; then
  7054. setopt NO_GLOB_SUBST
  7055. fi
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7057. $as_echo_n "checking for objdir... " >&6; }
  7058. if ${lt_cv_objdir+:} false; then :
  7059. $as_echo_n "(cached) " >&6
  7060. else
  7061. rm -f .libs 2>/dev/null
  7062. mkdir .libs 2>/dev/null
  7063. if test -d .libs; then
  7064. lt_cv_objdir=.libs
  7065. else
  7066. # MS-DOS does not allow filenames that begin with a dot.
  7067. lt_cv_objdir=_libs
  7068. fi
  7069. rmdir .libs 2>/dev/null
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7072. $as_echo "$lt_cv_objdir" >&6; }
  7073. objdir=$lt_cv_objdir
  7074. cat >>confdefs.h <<_ACEOF
  7075. #define LT_OBJDIR "$lt_cv_objdir/"
  7076. _ACEOF
  7077. case $host_os in
  7078. aix3*)
  7079. # AIX sometimes has problems with the GCC collect2 program. For some
  7080. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7081. # vanish in a puff of smoke.
  7082. if test set != "${COLLECT_NAMES+set}"; then
  7083. COLLECT_NAMES=
  7084. export COLLECT_NAMES
  7085. fi
  7086. ;;
  7087. esac
  7088. # Global variables:
  7089. ofile=libtool
  7090. can_build_shared=yes
  7091. # All known linkers require a '.a' archive for static linking (except MSVC,
  7092. # which needs '.lib').
  7093. libext=a
  7094. with_gnu_ld=$lt_cv_prog_gnu_ld
  7095. old_CC=$CC
  7096. old_CFLAGS=$CFLAGS
  7097. # Set sane defaults for various variables
  7098. test -z "$CC" && CC=cc
  7099. test -z "$LTCC" && LTCC=$CC
  7100. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7101. test -z "$LD" && LD=ld
  7102. test -z "$ac_objext" && ac_objext=o
  7103. func_cc_basename $compiler
  7104. cc_basename=$func_cc_basename_result
  7105. # Only perform the check for file, if the check method requires it
  7106. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7107. case $deplibs_check_method in
  7108. file_magic*)
  7109. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7111. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7112. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7113. $as_echo_n "(cached) " >&6
  7114. else
  7115. case $MAGIC_CMD in
  7116. [\\/*] | ?:[\\/]*)
  7117. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7118. ;;
  7119. *)
  7120. lt_save_MAGIC_CMD=$MAGIC_CMD
  7121. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7122. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7123. for ac_dir in $ac_dummy; do
  7124. IFS=$lt_save_ifs
  7125. test -z "$ac_dir" && ac_dir=.
  7126. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7127. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7128. if test -n "$file_magic_test_file"; then
  7129. case $deplibs_check_method in
  7130. "file_magic "*)
  7131. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7132. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7133. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7134. $EGREP "$file_magic_regex" > /dev/null; then
  7135. :
  7136. else
  7137. cat <<_LT_EOF 1>&2
  7138. *** Warning: the command libtool uses to detect shared libraries,
  7139. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7140. *** The result is that libtool may fail to recognize shared libraries
  7141. *** as such. This will affect the creation of libtool libraries that
  7142. *** depend on shared libraries, but programs linked with such libtool
  7143. *** libraries will work regardless of this problem. Nevertheless, you
  7144. *** may want to report the problem to your system manager and/or to
  7145. *** bug-libtool@gnu.org
  7146. _LT_EOF
  7147. fi ;;
  7148. esac
  7149. fi
  7150. break
  7151. fi
  7152. done
  7153. IFS=$lt_save_ifs
  7154. MAGIC_CMD=$lt_save_MAGIC_CMD
  7155. ;;
  7156. esac
  7157. fi
  7158. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7159. if test -n "$MAGIC_CMD"; then
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7161. $as_echo "$MAGIC_CMD" >&6; }
  7162. else
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7164. $as_echo "no" >&6; }
  7165. fi
  7166. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7167. if test -n "$ac_tool_prefix"; then
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7169. $as_echo_n "checking for file... " >&6; }
  7170. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7171. $as_echo_n "(cached) " >&6
  7172. else
  7173. case $MAGIC_CMD in
  7174. [\\/*] | ?:[\\/]*)
  7175. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7176. ;;
  7177. *)
  7178. lt_save_MAGIC_CMD=$MAGIC_CMD
  7179. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7180. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7181. for ac_dir in $ac_dummy; do
  7182. IFS=$lt_save_ifs
  7183. test -z "$ac_dir" && ac_dir=.
  7184. if test -f "$ac_dir/file"; then
  7185. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7186. if test -n "$file_magic_test_file"; then
  7187. case $deplibs_check_method in
  7188. "file_magic "*)
  7189. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7190. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7191. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7192. $EGREP "$file_magic_regex" > /dev/null; then
  7193. :
  7194. else
  7195. cat <<_LT_EOF 1>&2
  7196. *** Warning: the command libtool uses to detect shared libraries,
  7197. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7198. *** The result is that libtool may fail to recognize shared libraries
  7199. *** as such. This will affect the creation of libtool libraries that
  7200. *** depend on shared libraries, but programs linked with such libtool
  7201. *** libraries will work regardless of this problem. Nevertheless, you
  7202. *** may want to report the problem to your system manager and/or to
  7203. *** bug-libtool@gnu.org
  7204. _LT_EOF
  7205. fi ;;
  7206. esac
  7207. fi
  7208. break
  7209. fi
  7210. done
  7211. IFS=$lt_save_ifs
  7212. MAGIC_CMD=$lt_save_MAGIC_CMD
  7213. ;;
  7214. esac
  7215. fi
  7216. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7217. if test -n "$MAGIC_CMD"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7219. $as_echo "$MAGIC_CMD" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. else
  7225. MAGIC_CMD=:
  7226. fi
  7227. fi
  7228. fi
  7229. ;;
  7230. esac
  7231. # Use C for the default configuration in the libtool script
  7232. lt_save_CC=$CC
  7233. ac_ext=c
  7234. ac_cpp='$CPP $CPPFLAGS'
  7235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7238. # Source file extension for C test sources.
  7239. ac_ext=c
  7240. # Object file extension for compiled C test sources.
  7241. objext=o
  7242. objext=$objext
  7243. # Code to be used in simple compile tests
  7244. lt_simple_compile_test_code="int some_variable = 0;"
  7245. # Code to be used in simple link tests
  7246. lt_simple_link_test_code='int main(){return(0);}'
  7247. # If no C compiler was specified, use CC.
  7248. LTCC=${LTCC-"$CC"}
  7249. # If no C compiler flags were specified, use CFLAGS.
  7250. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7251. # Allow CC to be a program name with arguments.
  7252. compiler=$CC
  7253. # Save the default compiler, since it gets overwritten when the other
  7254. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7255. compiler_DEFAULT=$CC
  7256. # save warnings/boilerplate of simple test code
  7257. ac_outfile=conftest.$ac_objext
  7258. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7259. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7260. _lt_compiler_boilerplate=`cat conftest.err`
  7261. $RM conftest*
  7262. ac_outfile=conftest.$ac_objext
  7263. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7264. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7265. _lt_linker_boilerplate=`cat conftest.err`
  7266. $RM -r conftest*
  7267. ## CAVEAT EMPTOR:
  7268. ## There is no encapsulation within the following macros, do not change
  7269. ## the running order or otherwise move them around unless you know exactly
  7270. ## what you are doing...
  7271. if test -n "$compiler"; then
  7272. lt_prog_compiler_no_builtin_flag=
  7273. if test yes = "$GCC"; then
  7274. case $cc_basename in
  7275. nvcc*)
  7276. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7277. *)
  7278. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7279. esac
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7281. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7282. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. lt_cv_prog_compiler_rtti_exceptions=no
  7286. ac_outfile=conftest.$ac_objext
  7287. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7288. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7289. # Insert the option either (1) after the last *FLAGS variable, or
  7290. # (2) before a word containing "conftest.", or (3) at the end.
  7291. # Note that $ac_compile itself does not contain backslashes and begins
  7292. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7293. # The option is referenced via a variable to avoid confusing sed.
  7294. lt_compile=`echo "$ac_compile" | $SED \
  7295. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7296. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7297. -e 's:$: $lt_compiler_flag:'`
  7298. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7299. (eval "$lt_compile" 2>conftest.err)
  7300. ac_status=$?
  7301. cat conftest.err >&5
  7302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7303. if (exit $ac_status) && test -s "$ac_outfile"; then
  7304. # The compiler can only warn and ignore the option if not recognized
  7305. # So say no if there are warnings other than the usual output.
  7306. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7307. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7308. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7309. lt_cv_prog_compiler_rtti_exceptions=yes
  7310. fi
  7311. fi
  7312. $RM conftest*
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7315. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7316. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7317. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7318. else
  7319. :
  7320. fi
  7321. fi
  7322. lt_prog_compiler_wl=
  7323. lt_prog_compiler_pic=
  7324. lt_prog_compiler_static=
  7325. if test yes = "$GCC"; then
  7326. lt_prog_compiler_wl='-Wl,'
  7327. lt_prog_compiler_static='-static'
  7328. case $host_os in
  7329. aix*)
  7330. # All AIX code is PIC.
  7331. if test ia64 = "$host_cpu"; then
  7332. # AIX 5 now supports IA64 processor
  7333. lt_prog_compiler_static='-Bstatic'
  7334. fi
  7335. lt_prog_compiler_pic='-fPIC'
  7336. ;;
  7337. amigaos*)
  7338. case $host_cpu in
  7339. powerpc)
  7340. # see comment about AmigaOS4 .so support
  7341. lt_prog_compiler_pic='-fPIC'
  7342. ;;
  7343. m68k)
  7344. # FIXME: we need at least 68020 code to build shared libraries, but
  7345. # adding the '-m68020' flag to GCC prevents building anything better,
  7346. # like '-m68040'.
  7347. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7348. ;;
  7349. esac
  7350. ;;
  7351. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7352. # PIC is the default for these OSes.
  7353. ;;
  7354. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7355. # This hack is so that the source file can tell whether it is being
  7356. # built for inclusion in a dll (and should export symbols for example).
  7357. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7358. # (--disable-auto-import) libraries
  7359. lt_prog_compiler_pic='-DDLL_EXPORT'
  7360. case $host_os in
  7361. os2*)
  7362. lt_prog_compiler_static='$wl-static'
  7363. ;;
  7364. esac
  7365. ;;
  7366. darwin* | rhapsody*)
  7367. # PIC is the default on this platform
  7368. # Common symbols not allowed in MH_DYLIB files
  7369. lt_prog_compiler_pic='-fno-common'
  7370. ;;
  7371. haiku*)
  7372. # PIC is the default for Haiku.
  7373. # The "-static" flag exists, but is broken.
  7374. lt_prog_compiler_static=
  7375. ;;
  7376. hpux*)
  7377. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7378. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7379. # sets the default TLS model and affects inlining.
  7380. case $host_cpu in
  7381. hppa*64*)
  7382. # +Z the default
  7383. ;;
  7384. *)
  7385. lt_prog_compiler_pic='-fPIC'
  7386. ;;
  7387. esac
  7388. ;;
  7389. interix[3-9]*)
  7390. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7391. # Instead, we relocate shared libraries at runtime.
  7392. ;;
  7393. msdosdjgpp*)
  7394. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7395. # on systems that don't support them.
  7396. lt_prog_compiler_can_build_shared=no
  7397. enable_shared=no
  7398. ;;
  7399. *nto* | *qnx*)
  7400. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7401. # it will coredump.
  7402. lt_prog_compiler_pic='-fPIC -shared'
  7403. ;;
  7404. sysv4*MP*)
  7405. if test -d /usr/nec; then
  7406. lt_prog_compiler_pic=-Kconform_pic
  7407. fi
  7408. ;;
  7409. *)
  7410. lt_prog_compiler_pic='-fPIC'
  7411. ;;
  7412. esac
  7413. case $cc_basename in
  7414. nvcc*) # Cuda Compiler Driver 2.2
  7415. lt_prog_compiler_wl='-Xlinker '
  7416. if test -n "$lt_prog_compiler_pic"; then
  7417. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7418. fi
  7419. ;;
  7420. esac
  7421. else
  7422. # PORTME Check for flag to pass linker flags through the system compiler.
  7423. case $host_os in
  7424. aix*)
  7425. lt_prog_compiler_wl='-Wl,'
  7426. if test ia64 = "$host_cpu"; then
  7427. # AIX 5 now supports IA64 processor
  7428. lt_prog_compiler_static='-Bstatic'
  7429. else
  7430. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7431. fi
  7432. ;;
  7433. darwin* | rhapsody*)
  7434. # PIC is the default on this platform
  7435. # Common symbols not allowed in MH_DYLIB files
  7436. lt_prog_compiler_pic='-fno-common'
  7437. case $cc_basename in
  7438. nagfor*)
  7439. # NAG Fortran compiler
  7440. lt_prog_compiler_wl='-Wl,-Wl,,'
  7441. lt_prog_compiler_pic='-PIC'
  7442. lt_prog_compiler_static='-Bstatic'
  7443. ;;
  7444. esac
  7445. ;;
  7446. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7447. # This hack is so that the source file can tell whether it is being
  7448. # built for inclusion in a dll (and should export symbols for example).
  7449. lt_prog_compiler_pic='-DDLL_EXPORT'
  7450. case $host_os in
  7451. os2*)
  7452. lt_prog_compiler_static='$wl-static'
  7453. ;;
  7454. esac
  7455. ;;
  7456. hpux9* | hpux10* | hpux11*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7459. # not for PA HP-UX.
  7460. case $host_cpu in
  7461. hppa*64*|ia64*)
  7462. # +Z the default
  7463. ;;
  7464. *)
  7465. lt_prog_compiler_pic='+Z'
  7466. ;;
  7467. esac
  7468. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7469. lt_prog_compiler_static='$wl-a ${wl}archive'
  7470. ;;
  7471. irix5* | irix6* | nonstopux*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. # PIC (with -KPIC) is the default.
  7474. lt_prog_compiler_static='-non_shared'
  7475. ;;
  7476. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7477. case $cc_basename in
  7478. # old Intel for x86_64, which still supported -KPIC.
  7479. ecc*)
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_pic='-KPIC'
  7482. lt_prog_compiler_static='-static'
  7483. ;;
  7484. # icc used to be incompatible with GCC.
  7485. # ICC 10 doesn't accept -KPIC any more.
  7486. icc* | ifort*)
  7487. lt_prog_compiler_wl='-Wl,'
  7488. lt_prog_compiler_pic='-fPIC'
  7489. lt_prog_compiler_static='-static'
  7490. ;;
  7491. # Lahey Fortran 8.1.
  7492. lf95*)
  7493. lt_prog_compiler_wl='-Wl,'
  7494. lt_prog_compiler_pic='--shared'
  7495. lt_prog_compiler_static='--static'
  7496. ;;
  7497. nagfor*)
  7498. # NAG Fortran compiler
  7499. lt_prog_compiler_wl='-Wl,-Wl,,'
  7500. lt_prog_compiler_pic='-PIC'
  7501. lt_prog_compiler_static='-Bstatic'
  7502. ;;
  7503. tcc*)
  7504. # Fabrice Bellard et al's Tiny C Compiler
  7505. lt_prog_compiler_wl='-Wl,'
  7506. lt_prog_compiler_pic='-fPIC'
  7507. lt_prog_compiler_static='-static'
  7508. ;;
  7509. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7510. # Portland Group compilers (*not* the Pentium gcc compiler,
  7511. # which looks to be a dead project)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='-fpic'
  7514. lt_prog_compiler_static='-Bstatic'
  7515. ;;
  7516. ccc*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. # All Alpha code is PIC.
  7519. lt_prog_compiler_static='-non_shared'
  7520. ;;
  7521. xl* | bgxl* | bgf* | mpixl*)
  7522. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7523. lt_prog_compiler_wl='-Wl,'
  7524. lt_prog_compiler_pic='-qpic'
  7525. lt_prog_compiler_static='-qstaticlink'
  7526. ;;
  7527. *)
  7528. case `$CC -V 2>&1 | sed 5q` in
  7529. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7530. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7531. lt_prog_compiler_pic='-KPIC'
  7532. lt_prog_compiler_static='-Bstatic'
  7533. lt_prog_compiler_wl=''
  7534. ;;
  7535. *Sun\ F* | *Sun*Fortran*)
  7536. lt_prog_compiler_pic='-KPIC'
  7537. lt_prog_compiler_static='-Bstatic'
  7538. lt_prog_compiler_wl='-Qoption ld '
  7539. ;;
  7540. *Sun\ C*)
  7541. # Sun C 5.9
  7542. lt_prog_compiler_pic='-KPIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. lt_prog_compiler_wl='-Wl,'
  7545. ;;
  7546. *Intel*\ [CF]*Compiler*)
  7547. lt_prog_compiler_wl='-Wl,'
  7548. lt_prog_compiler_pic='-fPIC'
  7549. lt_prog_compiler_static='-static'
  7550. ;;
  7551. *Portland\ Group*)
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_pic='-fpic'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. esac
  7557. ;;
  7558. esac
  7559. ;;
  7560. newsos6)
  7561. lt_prog_compiler_pic='-KPIC'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. *nto* | *qnx*)
  7565. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7566. # it will coredump.
  7567. lt_prog_compiler_pic='-fPIC -shared'
  7568. ;;
  7569. osf3* | osf4* | osf5*)
  7570. lt_prog_compiler_wl='-Wl,'
  7571. # All OSF/1 code is PIC.
  7572. lt_prog_compiler_static='-non_shared'
  7573. ;;
  7574. rdos*)
  7575. lt_prog_compiler_static='-non_shared'
  7576. ;;
  7577. solaris*)
  7578. lt_prog_compiler_pic='-KPIC'
  7579. lt_prog_compiler_static='-Bstatic'
  7580. case $cc_basename in
  7581. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7582. lt_prog_compiler_wl='-Qoption ld ';;
  7583. *)
  7584. lt_prog_compiler_wl='-Wl,';;
  7585. esac
  7586. ;;
  7587. sunos4*)
  7588. lt_prog_compiler_wl='-Qoption ld '
  7589. lt_prog_compiler_pic='-PIC'
  7590. lt_prog_compiler_static='-Bstatic'
  7591. ;;
  7592. sysv4 | sysv4.2uw2* | sysv4.3*)
  7593. lt_prog_compiler_wl='-Wl,'
  7594. lt_prog_compiler_pic='-KPIC'
  7595. lt_prog_compiler_static='-Bstatic'
  7596. ;;
  7597. sysv4*MP*)
  7598. if test -d /usr/nec; then
  7599. lt_prog_compiler_pic='-Kconform_pic'
  7600. lt_prog_compiler_static='-Bstatic'
  7601. fi
  7602. ;;
  7603. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7604. lt_prog_compiler_wl='-Wl,'
  7605. lt_prog_compiler_pic='-KPIC'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. unicos*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. lt_prog_compiler_can_build_shared=no
  7611. ;;
  7612. uts4*)
  7613. lt_prog_compiler_pic='-pic'
  7614. lt_prog_compiler_static='-Bstatic'
  7615. ;;
  7616. *)
  7617. lt_prog_compiler_can_build_shared=no
  7618. ;;
  7619. esac
  7620. fi
  7621. case $host_os in
  7622. # For platforms that do not support PIC, -DPIC is meaningless:
  7623. *djgpp*)
  7624. lt_prog_compiler_pic=
  7625. ;;
  7626. *)
  7627. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7628. ;;
  7629. esac
  7630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7631. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7632. if ${lt_cv_prog_compiler_pic+:} false; then :
  7633. $as_echo_n "(cached) " >&6
  7634. else
  7635. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7636. fi
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7638. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7639. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7640. #
  7641. # Check to make sure the PIC flag actually works.
  7642. #
  7643. if test -n "$lt_prog_compiler_pic"; then
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7645. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7646. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7647. $as_echo_n "(cached) " >&6
  7648. else
  7649. lt_cv_prog_compiler_pic_works=no
  7650. ac_outfile=conftest.$ac_objext
  7651. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7652. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7653. # Insert the option either (1) after the last *FLAGS variable, or
  7654. # (2) before a word containing "conftest.", or (3) at the end.
  7655. # Note that $ac_compile itself does not contain backslashes and begins
  7656. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7657. # The option is referenced via a variable to avoid confusing sed.
  7658. lt_compile=`echo "$ac_compile" | $SED \
  7659. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7660. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7661. -e 's:$: $lt_compiler_flag:'`
  7662. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7663. (eval "$lt_compile" 2>conftest.err)
  7664. ac_status=$?
  7665. cat conftest.err >&5
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. if (exit $ac_status) && test -s "$ac_outfile"; then
  7668. # The compiler can only warn and ignore the option if not recognized
  7669. # So say no if there are warnings other than the usual output.
  7670. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7671. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7672. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7673. lt_cv_prog_compiler_pic_works=yes
  7674. fi
  7675. fi
  7676. $RM conftest*
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7679. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7680. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7681. case $lt_prog_compiler_pic in
  7682. "" | " "*) ;;
  7683. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7684. esac
  7685. else
  7686. lt_prog_compiler_pic=
  7687. lt_prog_compiler_can_build_shared=no
  7688. fi
  7689. fi
  7690. #
  7691. # Check to make sure the static flag actually works.
  7692. #
  7693. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7695. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7696. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7697. $as_echo_n "(cached) " >&6
  7698. else
  7699. lt_cv_prog_compiler_static_works=no
  7700. save_LDFLAGS=$LDFLAGS
  7701. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7702. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7703. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7704. # The linker can only warn and ignore the option if not recognized
  7705. # So say no if there are warnings
  7706. if test -s conftest.err; then
  7707. # Append any errors to the config.log.
  7708. cat conftest.err 1>&5
  7709. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7710. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7711. if diff conftest.exp conftest.er2 >/dev/null; then
  7712. lt_cv_prog_compiler_static_works=yes
  7713. fi
  7714. else
  7715. lt_cv_prog_compiler_static_works=yes
  7716. fi
  7717. fi
  7718. $RM -r conftest*
  7719. LDFLAGS=$save_LDFLAGS
  7720. fi
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7722. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7723. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7724. :
  7725. else
  7726. lt_prog_compiler_static=
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7729. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7730. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7731. $as_echo_n "(cached) " >&6
  7732. else
  7733. lt_cv_prog_compiler_c_o=no
  7734. $RM -r conftest 2>/dev/null
  7735. mkdir conftest
  7736. cd conftest
  7737. mkdir out
  7738. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7739. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7740. # Insert the option either (1) after the last *FLAGS variable, or
  7741. # (2) before a word containing "conftest.", or (3) at the end.
  7742. # Note that $ac_compile itself does not contain backslashes and begins
  7743. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7744. lt_compile=`echo "$ac_compile" | $SED \
  7745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7747. -e 's:$: $lt_compiler_flag:'`
  7748. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7749. (eval "$lt_compile" 2>out/conftest.err)
  7750. ac_status=$?
  7751. cat out/conftest.err >&5
  7752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7754. then
  7755. # The compiler can only warn and ignore the option if not recognized
  7756. # So say no if there are warnings
  7757. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7758. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7759. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7760. lt_cv_prog_compiler_c_o=yes
  7761. fi
  7762. fi
  7763. chmod u+w . 2>&5
  7764. $RM conftest*
  7765. # SGI C++ compiler will create directory out/ii_files/ for
  7766. # template instantiation
  7767. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7768. $RM out/* && rmdir out
  7769. cd ..
  7770. $RM -r conftest
  7771. $RM conftest*
  7772. fi
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7774. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7776. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7777. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. lt_cv_prog_compiler_c_o=no
  7781. $RM -r conftest 2>/dev/null
  7782. mkdir conftest
  7783. cd conftest
  7784. mkdir out
  7785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7786. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7787. # Insert the option either (1) after the last *FLAGS variable, or
  7788. # (2) before a word containing "conftest.", or (3) at the end.
  7789. # Note that $ac_compile itself does not contain backslashes and begins
  7790. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7791. lt_compile=`echo "$ac_compile" | $SED \
  7792. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7793. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7794. -e 's:$: $lt_compiler_flag:'`
  7795. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7796. (eval "$lt_compile" 2>out/conftest.err)
  7797. ac_status=$?
  7798. cat out/conftest.err >&5
  7799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7800. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7801. then
  7802. # The compiler can only warn and ignore the option if not recognized
  7803. # So say no if there are warnings
  7804. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7805. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7806. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7807. lt_cv_prog_compiler_c_o=yes
  7808. fi
  7809. fi
  7810. chmod u+w . 2>&5
  7811. $RM conftest*
  7812. # SGI C++ compiler will create directory out/ii_files/ for
  7813. # template instantiation
  7814. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7815. $RM out/* && rmdir out
  7816. cd ..
  7817. $RM -r conftest
  7818. $RM conftest*
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7821. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7822. hard_links=nottested
  7823. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7824. # do not overwrite the value of need_locks provided by the user
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7826. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7827. hard_links=yes
  7828. $RM conftest*
  7829. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7830. touch conftest.a
  7831. ln conftest.a conftest.b 2>&5 || hard_links=no
  7832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7834. $as_echo "$hard_links" >&6; }
  7835. if test no = "$hard_links"; then
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7837. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7838. need_locks=warn
  7839. fi
  7840. else
  7841. need_locks=no
  7842. fi
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7844. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7845. runpath_var=
  7846. allow_undefined_flag=
  7847. always_export_symbols=no
  7848. archive_cmds=
  7849. archive_expsym_cmds=
  7850. compiler_needs_object=no
  7851. enable_shared_with_static_runtimes=no
  7852. export_dynamic_flag_spec=
  7853. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7854. hardcode_automatic=no
  7855. hardcode_direct=no
  7856. hardcode_direct_absolute=no
  7857. hardcode_libdir_flag_spec=
  7858. hardcode_libdir_separator=
  7859. hardcode_minus_L=no
  7860. hardcode_shlibpath_var=unsupported
  7861. inherit_rpath=no
  7862. link_all_deplibs=unknown
  7863. module_cmds=
  7864. module_expsym_cmds=
  7865. old_archive_from_new_cmds=
  7866. old_archive_from_expsyms_cmds=
  7867. thread_safe_flag_spec=
  7868. whole_archive_flag_spec=
  7869. # include_expsyms should be a list of space-separated symbols to be *always*
  7870. # included in the symbol list
  7871. include_expsyms=
  7872. # exclude_expsyms can be an extended regexp of symbols to exclude
  7873. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7874. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7875. # as well as any symbol that contains 'd'.
  7876. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7877. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7878. # platforms (ab)use it in PIC code, but their linkers get confused if
  7879. # the symbol is explicitly referenced. Since portable code cannot
  7880. # rely on this symbol name, it's probably fine to never include it in
  7881. # preloaded symbol tables.
  7882. # Exclude shared library initialization/finalization symbols.
  7883. extract_expsyms_cmds=
  7884. case $host_os in
  7885. cygwin* | mingw* | pw32* | cegcc*)
  7886. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7887. # When not using gcc, we currently assume that we are using
  7888. # Microsoft Visual C++.
  7889. if test yes != "$GCC"; then
  7890. with_gnu_ld=no
  7891. fi
  7892. ;;
  7893. interix*)
  7894. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7895. with_gnu_ld=yes
  7896. ;;
  7897. openbsd* | bitrig*)
  7898. with_gnu_ld=no
  7899. ;;
  7900. linux* | k*bsd*-gnu | gnu*)
  7901. link_all_deplibs=no
  7902. ;;
  7903. esac
  7904. ld_shlibs=yes
  7905. # On some targets, GNU ld is compatible enough with the native linker
  7906. # that we're better off using the native interface for both.
  7907. lt_use_gnu_ld_interface=no
  7908. if test yes = "$with_gnu_ld"; then
  7909. case $host_os in
  7910. aix*)
  7911. # The AIX port of GNU ld has always aspired to compatibility
  7912. # with the native linker. However, as the warning in the GNU ld
  7913. # block says, versions before 2.19.5* couldn't really create working
  7914. # shared libraries, regardless of the interface used.
  7915. case `$LD -v 2>&1` in
  7916. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7917. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7918. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7919. *)
  7920. lt_use_gnu_ld_interface=yes
  7921. ;;
  7922. esac
  7923. ;;
  7924. *)
  7925. lt_use_gnu_ld_interface=yes
  7926. ;;
  7927. esac
  7928. fi
  7929. if test yes = "$lt_use_gnu_ld_interface"; then
  7930. # If archive_cmds runs LD, not CC, wlarc should be empty
  7931. wlarc='$wl'
  7932. # Set some defaults for GNU ld with shared library support. These
  7933. # are reset later if shared libraries are not supported. Putting them
  7934. # here allows them to be overridden if necessary.
  7935. runpath_var=LD_RUN_PATH
  7936. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7937. export_dynamic_flag_spec='$wl--export-dynamic'
  7938. # ancient GNU ld didn't support --whole-archive et. al.
  7939. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7940. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7941. else
  7942. whole_archive_flag_spec=
  7943. fi
  7944. supports_anon_versioning=no
  7945. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7946. *GNU\ gold*) supports_anon_versioning=yes ;;
  7947. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7948. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7949. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7950. *\ 2.11.*) ;; # other 2.11 versions
  7951. *) supports_anon_versioning=yes ;;
  7952. esac
  7953. # See if GNU ld supports shared libraries.
  7954. case $host_os in
  7955. aix[3-9]*)
  7956. # On AIX/PPC, the GNU linker is very broken
  7957. if test ia64 != "$host_cpu"; then
  7958. ld_shlibs=no
  7959. cat <<_LT_EOF 1>&2
  7960. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7961. *** to be unable to reliably create shared libraries on AIX.
  7962. *** Therefore, libtool is disabling shared libraries support. If you
  7963. *** really care for shared libraries, you may want to install binutils
  7964. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7965. *** You will then need to restart the configuration process.
  7966. _LT_EOF
  7967. fi
  7968. ;;
  7969. amigaos*)
  7970. case $host_cpu in
  7971. powerpc)
  7972. # see comment about AmigaOS4 .so support
  7973. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7974. archive_expsym_cmds=''
  7975. ;;
  7976. m68k)
  7977. 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)'
  7978. hardcode_libdir_flag_spec='-L$libdir'
  7979. hardcode_minus_L=yes
  7980. ;;
  7981. esac
  7982. ;;
  7983. beos*)
  7984. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7985. allow_undefined_flag=unsupported
  7986. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7987. # support --undefined. This deserves some investigation. FIXME
  7988. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7989. else
  7990. ld_shlibs=no
  7991. fi
  7992. ;;
  7993. cygwin* | mingw* | pw32* | cegcc*)
  7994. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7995. # as there is no search path for DLLs.
  7996. hardcode_libdir_flag_spec='-L$libdir'
  7997. export_dynamic_flag_spec='$wl--export-all-symbols'
  7998. allow_undefined_flag=unsupported
  7999. always_export_symbols=no
  8000. enable_shared_with_static_runtimes=yes
  8001. 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'
  8002. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8003. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8004. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8005. # If the export-symbols file already is a .def file, use it as
  8006. # is; otherwise, prepend EXPORTS...
  8007. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8008. cp $export_symbols $output_objdir/$soname.def;
  8009. else
  8010. echo EXPORTS > $output_objdir/$soname.def;
  8011. cat $export_symbols >> $output_objdir/$soname.def;
  8012. fi~
  8013. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8014. else
  8015. ld_shlibs=no
  8016. fi
  8017. ;;
  8018. haiku*)
  8019. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8020. link_all_deplibs=yes
  8021. ;;
  8022. os2*)
  8023. hardcode_libdir_flag_spec='-L$libdir'
  8024. hardcode_minus_L=yes
  8025. allow_undefined_flag=unsupported
  8026. shrext_cmds=.dll
  8027. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8028. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8029. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8030. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8031. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8032. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8033. emximp -o $lib $output_objdir/$libname.def'
  8034. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8035. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8036. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8037. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8038. prefix_cmds="$SED"~
  8039. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8040. prefix_cmds="$prefix_cmds -e 1d";
  8041. fi~
  8042. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8043. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8044. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8045. emximp -o $lib $output_objdir/$libname.def'
  8046. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8047. enable_shared_with_static_runtimes=yes
  8048. ;;
  8049. interix[3-9]*)
  8050. hardcode_direct=no
  8051. hardcode_shlibpath_var=no
  8052. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8053. export_dynamic_flag_spec='$wl-E'
  8054. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8055. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8056. # default) and relocated if they conflict, which is a slow very memory
  8057. # consuming and fragmenting process. To avoid this, we pick a random,
  8058. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8059. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8060. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8061. 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'
  8062. ;;
  8063. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8064. tmp_diet=no
  8065. if test linux-dietlibc = "$host_os"; then
  8066. case $cc_basename in
  8067. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8068. esac
  8069. fi
  8070. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8071. && test no = "$tmp_diet"
  8072. then
  8073. tmp_addflag=' $pic_flag'
  8074. tmp_sharedflag='-shared'
  8075. case $cc_basename,$host_cpu in
  8076. pgcc*) # Portland Group C compiler
  8077. 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'
  8078. tmp_addflag=' $pic_flag'
  8079. ;;
  8080. pgf77* | pgf90* | pgf95* | pgfortran*)
  8081. # Portland Group f77 and f90 compilers
  8082. 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'
  8083. tmp_addflag=' $pic_flag -Mnomain' ;;
  8084. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8085. tmp_addflag=' -i_dynamic' ;;
  8086. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8087. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8088. ifc* | ifort*) # Intel Fortran compiler
  8089. tmp_addflag=' -nofor_main' ;;
  8090. lf95*) # Lahey Fortran 8.1
  8091. whole_archive_flag_spec=
  8092. tmp_sharedflag='--shared' ;;
  8093. nagfor*) # NAGFOR 5.3
  8094. tmp_sharedflag='-Wl,-shared' ;;
  8095. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8096. tmp_sharedflag='-qmkshrobj'
  8097. tmp_addflag= ;;
  8098. nvcc*) # Cuda Compiler Driver 2.2
  8099. 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'
  8100. compiler_needs_object=yes
  8101. ;;
  8102. esac
  8103. case `$CC -V 2>&1 | sed 5q` in
  8104. *Sun\ C*) # Sun C 5.9
  8105. 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'
  8106. compiler_needs_object=yes
  8107. tmp_sharedflag='-G' ;;
  8108. *Sun\ F*) # Sun Fortran 8.3
  8109. tmp_sharedflag='-G' ;;
  8110. esac
  8111. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8112. if test yes = "$supports_anon_versioning"; then
  8113. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8114. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8115. echo "local: *; };" >> $output_objdir/$libname.ver~
  8116. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8117. fi
  8118. case $cc_basename in
  8119. tcc*)
  8120. export_dynamic_flag_spec='-rdynamic'
  8121. ;;
  8122. xlf* | bgf* | bgxlf* | mpixlf*)
  8123. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8124. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8125. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8126. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8127. if test yes = "$supports_anon_versioning"; then
  8128. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8129. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8130. echo "local: *; };" >> $output_objdir/$libname.ver~
  8131. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8132. fi
  8133. ;;
  8134. esac
  8135. else
  8136. ld_shlibs=no
  8137. fi
  8138. ;;
  8139. netbsd* | netbsdelf*-gnu)
  8140. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8141. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8142. wlarc=
  8143. else
  8144. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8145. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8146. fi
  8147. ;;
  8148. solaris*)
  8149. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8150. ld_shlibs=no
  8151. cat <<_LT_EOF 1>&2
  8152. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8153. *** create shared libraries on Solaris systems. Therefore, libtool
  8154. *** is disabling shared libraries support. We urge you to upgrade GNU
  8155. *** binutils to release 2.9.1 or newer. Another option is to modify
  8156. *** your PATH or compiler configuration so that the native linker is
  8157. *** used, and then restart.
  8158. _LT_EOF
  8159. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8160. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8161. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8162. else
  8163. ld_shlibs=no
  8164. fi
  8165. ;;
  8166. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8167. case `$LD -v 2>&1` in
  8168. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8169. ld_shlibs=no
  8170. cat <<_LT_EOF 1>&2
  8171. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8172. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8173. *** is disabling shared libraries support. We urge you to upgrade GNU
  8174. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8175. *** your PATH or compiler configuration so that the native linker is
  8176. *** used, and then restart.
  8177. _LT_EOF
  8178. ;;
  8179. *)
  8180. # For security reasons, it is highly recommended that you always
  8181. # use absolute paths for naming shared libraries, and exclude the
  8182. # DT_RUNPATH tag from executables and libraries. But doing so
  8183. # requires that you compile everything twice, which is a pain.
  8184. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8185. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8187. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8188. else
  8189. ld_shlibs=no
  8190. fi
  8191. ;;
  8192. esac
  8193. ;;
  8194. sunos4*)
  8195. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8196. wlarc=
  8197. hardcode_direct=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. *)
  8201. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8202. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8203. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8204. else
  8205. ld_shlibs=no
  8206. fi
  8207. ;;
  8208. esac
  8209. if test no = "$ld_shlibs"; then
  8210. runpath_var=
  8211. hardcode_libdir_flag_spec=
  8212. export_dynamic_flag_spec=
  8213. whole_archive_flag_spec=
  8214. fi
  8215. else
  8216. # PORTME fill in a description of your system's linker (not GNU ld)
  8217. case $host_os in
  8218. aix3*)
  8219. allow_undefined_flag=unsupported
  8220. always_export_symbols=yes
  8221. 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'
  8222. # Note: this linker hardcodes the directories in LIBPATH if there
  8223. # are no directories specified by -L.
  8224. hardcode_minus_L=yes
  8225. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8226. # Neither direct hardcoding nor static linking is supported with a
  8227. # broken collect2.
  8228. hardcode_direct=unsupported
  8229. fi
  8230. ;;
  8231. aix[4-9]*)
  8232. if test ia64 = "$host_cpu"; then
  8233. # On IA64, the linker does run time linking by default, so we don't
  8234. # have to do anything special.
  8235. aix_use_runtimelinking=no
  8236. exp_sym_flag='-Bexport'
  8237. no_entry_flag=
  8238. else
  8239. # If we're using GNU nm, then we don't want the "-C" option.
  8240. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8241. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8242. # weak defined symbols like other global defined symbols, whereas
  8243. # GNU nm marks them as "W".
  8244. # While the 'weak' keyword is ignored in the Export File, we need
  8245. # it in the Import File for the 'aix-soname' feature, so we have
  8246. # to replace the "-B" option with "-P" for AIX nm.
  8247. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8248. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8249. else
  8250. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8251. fi
  8252. aix_use_runtimelinking=no
  8253. # Test if we are trying to use run time linking or normal
  8254. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8255. # have runtime linking enabled, and use it for executables.
  8256. # For shared libraries, we enable/disable runtime linking
  8257. # depending on the kind of the shared library created -
  8258. # when "with_aix_soname,aix_use_runtimelinking" is:
  8259. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8260. # "aix,yes" lib.so shared, rtl:yes, for executables
  8261. # lib.a static archive
  8262. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8263. # lib.a(lib.so.V) shared, rtl:no, for executables
  8264. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8265. # lib.a(lib.so.V) shared, rtl:no
  8266. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8267. # lib.a static archive
  8268. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8269. for ld_flag in $LDFLAGS; do
  8270. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8271. aix_use_runtimelinking=yes
  8272. break
  8273. fi
  8274. done
  8275. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8276. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8277. # so we don't have lib.a shared libs to link our executables.
  8278. # We have to force runtime linking in this case.
  8279. aix_use_runtimelinking=yes
  8280. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8281. fi
  8282. ;;
  8283. esac
  8284. exp_sym_flag='-bexport'
  8285. no_entry_flag='-bnoentry'
  8286. fi
  8287. # When large executables or shared objects are built, AIX ld can
  8288. # have problems creating the table of contents. If linking a library
  8289. # or program results in "error TOC overflow" add -mminimal-toc to
  8290. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8291. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8292. archive_cmds=''
  8293. hardcode_direct=yes
  8294. hardcode_direct_absolute=yes
  8295. hardcode_libdir_separator=':'
  8296. link_all_deplibs=yes
  8297. file_list_spec='$wl-f,'
  8298. case $with_aix_soname,$aix_use_runtimelinking in
  8299. aix,*) ;; # traditional, no import file
  8300. svr4,* | *,yes) # use import file
  8301. # The Import File defines what to hardcode.
  8302. hardcode_direct=no
  8303. hardcode_direct_absolute=no
  8304. ;;
  8305. esac
  8306. if test yes = "$GCC"; then
  8307. case $host_os in aix4.[012]|aix4.[012].*)
  8308. # We only want to do this on AIX 4.2 and lower, the check
  8309. # below for broken collect2 doesn't work under 4.3+
  8310. collect2name=`$CC -print-prog-name=collect2`
  8311. if test -f "$collect2name" &&
  8312. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8313. then
  8314. # We have reworked collect2
  8315. :
  8316. else
  8317. # We have old collect2
  8318. hardcode_direct=unsupported
  8319. # It fails to find uninstalled libraries when the uninstalled
  8320. # path is not listed in the libpath. Setting hardcode_minus_L
  8321. # to unsupported forces relinking
  8322. hardcode_minus_L=yes
  8323. hardcode_libdir_flag_spec='-L$libdir'
  8324. hardcode_libdir_separator=
  8325. fi
  8326. ;;
  8327. esac
  8328. shared_flag='-shared'
  8329. if test yes = "$aix_use_runtimelinking"; then
  8330. shared_flag="$shared_flag "'$wl-G'
  8331. fi
  8332. # Need to ensure runtime linking is disabled for the traditional
  8333. # shared library, or the linker may eventually find shared libraries
  8334. # /with/ Import File - we do not want to mix them.
  8335. shared_flag_aix='-shared'
  8336. shared_flag_svr4='-shared $wl-G'
  8337. else
  8338. # not using gcc
  8339. if test ia64 = "$host_cpu"; then
  8340. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8341. # chokes on -Wl,-G. The following line is correct:
  8342. shared_flag='-G'
  8343. else
  8344. if test yes = "$aix_use_runtimelinking"; then
  8345. shared_flag='$wl-G'
  8346. else
  8347. shared_flag='$wl-bM:SRE'
  8348. fi
  8349. shared_flag_aix='$wl-bM:SRE'
  8350. shared_flag_svr4='$wl-G'
  8351. fi
  8352. fi
  8353. export_dynamic_flag_spec='$wl-bexpall'
  8354. # It seems that -bexpall does not export symbols beginning with
  8355. # underscore (_), so it is better to generate a list of symbols to export.
  8356. always_export_symbols=yes
  8357. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8358. # Warning - without using the other runtime loading flags (-brtl),
  8359. # -berok will link without error, but may produce a broken library.
  8360. allow_undefined_flag='-berok'
  8361. # Determine the default libpath from the value encoded in an
  8362. # empty executable.
  8363. if test set = "${lt_cv_aix_libpath+set}"; then
  8364. aix_libpath=$lt_cv_aix_libpath
  8365. else
  8366. if ${lt_cv_aix_libpath_+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int
  8372. main ()
  8373. {
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. if ac_fn_c_try_link "$LINENO"; then :
  8379. lt_aix_libpath_sed='
  8380. /Import File Strings/,/^$/ {
  8381. /^0/ {
  8382. s/^0 *\([^ ]*\) *$/\1/
  8383. p
  8384. }
  8385. }'
  8386. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8387. # Check for a 64-bit object if we didn't find anything.
  8388. if test -z "$lt_cv_aix_libpath_"; then
  8389. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8390. fi
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. if test -z "$lt_cv_aix_libpath_"; then
  8395. lt_cv_aix_libpath_=/usr/lib:/lib
  8396. fi
  8397. fi
  8398. aix_libpath=$lt_cv_aix_libpath_
  8399. fi
  8400. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8401. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8402. else
  8403. if test ia64 = "$host_cpu"; then
  8404. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8405. allow_undefined_flag="-z nodefs"
  8406. 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"
  8407. else
  8408. # Determine the default libpath from the value encoded in an
  8409. # empty executable.
  8410. if test set = "${lt_cv_aix_libpath+set}"; then
  8411. aix_libpath=$lt_cv_aix_libpath
  8412. else
  8413. if ${lt_cv_aix_libpath_+:} false; then :
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8417. /* end confdefs.h. */
  8418. int
  8419. main ()
  8420. {
  8421. ;
  8422. return 0;
  8423. }
  8424. _ACEOF
  8425. if ac_fn_c_try_link "$LINENO"; then :
  8426. lt_aix_libpath_sed='
  8427. /Import File Strings/,/^$/ {
  8428. /^0/ {
  8429. s/^0 *\([^ ]*\) *$/\1/
  8430. p
  8431. }
  8432. }'
  8433. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8434. # Check for a 64-bit object if we didn't find anything.
  8435. if test -z "$lt_cv_aix_libpath_"; then
  8436. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8437. fi
  8438. fi
  8439. rm -f core conftest.err conftest.$ac_objext \
  8440. conftest$ac_exeext conftest.$ac_ext
  8441. if test -z "$lt_cv_aix_libpath_"; then
  8442. lt_cv_aix_libpath_=/usr/lib:/lib
  8443. fi
  8444. fi
  8445. aix_libpath=$lt_cv_aix_libpath_
  8446. fi
  8447. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8448. # Warning - without using the other run time loading flags,
  8449. # -berok will link without error, but may produce a broken library.
  8450. no_undefined_flag=' $wl-bernotok'
  8451. allow_undefined_flag=' $wl-berok'
  8452. if test yes = "$with_gnu_ld"; then
  8453. # We only use this code for GNU lds that support --whole-archive.
  8454. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8455. else
  8456. # Exported symbols can be pulled into shared objects from archives
  8457. whole_archive_flag_spec='$convenience'
  8458. fi
  8459. archive_cmds_need_lc=yes
  8460. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8461. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8462. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8463. if test svr4 != "$with_aix_soname"; then
  8464. # This is similar to how AIX traditionally builds its shared libraries.
  8465. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8466. fi
  8467. if test aix != "$with_aix_soname"; then
  8468. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8469. else
  8470. # used by -dlpreopen to get the symbols
  8471. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8472. fi
  8473. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8474. fi
  8475. fi
  8476. ;;
  8477. amigaos*)
  8478. case $host_cpu in
  8479. powerpc)
  8480. # see comment about AmigaOS4 .so support
  8481. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8482. archive_expsym_cmds=''
  8483. ;;
  8484. m68k)
  8485. 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)'
  8486. hardcode_libdir_flag_spec='-L$libdir'
  8487. hardcode_minus_L=yes
  8488. ;;
  8489. esac
  8490. ;;
  8491. bsdi[45]*)
  8492. export_dynamic_flag_spec=-rdynamic
  8493. ;;
  8494. cygwin* | mingw* | pw32* | cegcc*)
  8495. # When not using gcc, we currently assume that we are using
  8496. # Microsoft Visual C++.
  8497. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8498. # no search path for DLLs.
  8499. case $cc_basename in
  8500. cl*)
  8501. # Native MSVC
  8502. hardcode_libdir_flag_spec=' '
  8503. allow_undefined_flag=unsupported
  8504. always_export_symbols=yes
  8505. file_list_spec='@'
  8506. # Tell ltmain to make .lib files, not .a files.
  8507. libext=lib
  8508. # Tell ltmain to make .dll files, not .so files.
  8509. shrext_cmds=.dll
  8510. # FIXME: Setting linknames here is a bad hack.
  8511. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8512. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8513. cp "$export_symbols" "$output_objdir/$soname.def";
  8514. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8515. else
  8516. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8517. fi~
  8518. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8519. linknames='
  8520. # The linker will not automatically build a static lib if we build a DLL.
  8521. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8522. enable_shared_with_static_runtimes=yes
  8523. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8524. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8525. # Don't use ranlib
  8526. old_postinstall_cmds='chmod 644 $oldlib'
  8527. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8528. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8529. case $lt_outputfile in
  8530. *.exe|*.EXE) ;;
  8531. *)
  8532. lt_outputfile=$lt_outputfile.exe
  8533. lt_tool_outputfile=$lt_tool_outputfile.exe
  8534. ;;
  8535. esac~
  8536. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8537. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8538. $RM "$lt_outputfile.manifest";
  8539. fi'
  8540. ;;
  8541. *)
  8542. # Assume MSVC wrapper
  8543. hardcode_libdir_flag_spec=' '
  8544. allow_undefined_flag=unsupported
  8545. # Tell ltmain to make .lib files, not .a files.
  8546. libext=lib
  8547. # Tell ltmain to make .dll files, not .so files.
  8548. shrext_cmds=.dll
  8549. # FIXME: Setting linknames here is a bad hack.
  8550. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8551. # The linker will automatically build a .lib file if we build a DLL.
  8552. old_archive_from_new_cmds='true'
  8553. # FIXME: Should let the user specify the lib program.
  8554. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8555. enable_shared_with_static_runtimes=yes
  8556. ;;
  8557. esac
  8558. ;;
  8559. darwin* | rhapsody*)
  8560. archive_cmds_need_lc=no
  8561. hardcode_direct=no
  8562. hardcode_automatic=yes
  8563. hardcode_shlibpath_var=unsupported
  8564. if test yes = "$lt_cv_ld_force_load"; then
  8565. 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\"`'
  8566. else
  8567. whole_archive_flag_spec=''
  8568. fi
  8569. link_all_deplibs=yes
  8570. allow_undefined_flag=$_lt_dar_allow_undefined
  8571. case $cc_basename in
  8572. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8573. *) _lt_dar_can_shared=$GCC ;;
  8574. esac
  8575. if test yes = "$_lt_dar_can_shared"; then
  8576. output_verbose_link_cmd=func_echo_all
  8577. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8578. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8579. 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"
  8580. 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"
  8581. else
  8582. ld_shlibs=no
  8583. fi
  8584. ;;
  8585. dgux*)
  8586. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8587. hardcode_libdir_flag_spec='-L$libdir'
  8588. hardcode_shlibpath_var=no
  8589. ;;
  8590. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8591. # support. Future versions do this automatically, but an explicit c++rt0.o
  8592. # does not break anything, and helps significantly (at the cost of a little
  8593. # extra space).
  8594. freebsd2.2*)
  8595. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8596. hardcode_libdir_flag_spec='-R$libdir'
  8597. hardcode_direct=yes
  8598. hardcode_shlibpath_var=no
  8599. ;;
  8600. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8601. freebsd2.*)
  8602. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8603. hardcode_direct=yes
  8604. hardcode_minus_L=yes
  8605. hardcode_shlibpath_var=no
  8606. ;;
  8607. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8608. freebsd* | dragonfly*)
  8609. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8610. hardcode_libdir_flag_spec='-R$libdir'
  8611. hardcode_direct=yes
  8612. hardcode_shlibpath_var=no
  8613. ;;
  8614. hpux9*)
  8615. if test yes = "$GCC"; then
  8616. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8617. else
  8618. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8619. fi
  8620. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8621. hardcode_libdir_separator=:
  8622. hardcode_direct=yes
  8623. # hardcode_minus_L: Not really in the search PATH,
  8624. # but as the default location of the library.
  8625. hardcode_minus_L=yes
  8626. export_dynamic_flag_spec='$wl-E'
  8627. ;;
  8628. hpux10*)
  8629. if test yes,no = "$GCC,$with_gnu_ld"; then
  8630. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8631. else
  8632. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8633. fi
  8634. if test no = "$with_gnu_ld"; then
  8635. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8636. hardcode_libdir_separator=:
  8637. hardcode_direct=yes
  8638. hardcode_direct_absolute=yes
  8639. export_dynamic_flag_spec='$wl-E'
  8640. # hardcode_minus_L: Not really in the search PATH,
  8641. # but as the default location of the library.
  8642. hardcode_minus_L=yes
  8643. fi
  8644. ;;
  8645. hpux11*)
  8646. if test yes,no = "$GCC,$with_gnu_ld"; then
  8647. case $host_cpu in
  8648. hppa*64*)
  8649. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8650. ;;
  8651. ia64*)
  8652. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8653. ;;
  8654. *)
  8655. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8656. ;;
  8657. esac
  8658. else
  8659. case $host_cpu in
  8660. hppa*64*)
  8661. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8662. ;;
  8663. ia64*)
  8664. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8665. ;;
  8666. *)
  8667. # Older versions of the 11.00 compiler do not understand -b yet
  8668. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8670. $as_echo_n "checking if $CC understands -b... " >&6; }
  8671. if ${lt_cv_prog_compiler__b+:} false; then :
  8672. $as_echo_n "(cached) " >&6
  8673. else
  8674. lt_cv_prog_compiler__b=no
  8675. save_LDFLAGS=$LDFLAGS
  8676. LDFLAGS="$LDFLAGS -b"
  8677. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8678. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8679. # The linker can only warn and ignore the option if not recognized
  8680. # So say no if there are warnings
  8681. if test -s conftest.err; then
  8682. # Append any errors to the config.log.
  8683. cat conftest.err 1>&5
  8684. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8685. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8686. if diff conftest.exp conftest.er2 >/dev/null; then
  8687. lt_cv_prog_compiler__b=yes
  8688. fi
  8689. else
  8690. lt_cv_prog_compiler__b=yes
  8691. fi
  8692. fi
  8693. $RM -r conftest*
  8694. LDFLAGS=$save_LDFLAGS
  8695. fi
  8696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8697. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8698. if test yes = "$lt_cv_prog_compiler__b"; then
  8699. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8700. else
  8701. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8702. fi
  8703. ;;
  8704. esac
  8705. fi
  8706. if test no = "$with_gnu_ld"; then
  8707. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8708. hardcode_libdir_separator=:
  8709. case $host_cpu in
  8710. hppa*64*|ia64*)
  8711. hardcode_direct=no
  8712. hardcode_shlibpath_var=no
  8713. ;;
  8714. *)
  8715. hardcode_direct=yes
  8716. hardcode_direct_absolute=yes
  8717. export_dynamic_flag_spec='$wl-E'
  8718. # hardcode_minus_L: Not really in the search PATH,
  8719. # but as the default location of the library.
  8720. hardcode_minus_L=yes
  8721. ;;
  8722. esac
  8723. fi
  8724. ;;
  8725. irix5* | irix6* | nonstopux*)
  8726. if test yes = "$GCC"; then
  8727. 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'
  8728. # Try to use the -exported_symbol ld option, if it does not
  8729. # work, assume that -exports_file does not work either and
  8730. # implicitly export all symbols.
  8731. # This should be the same for all languages, so no per-tag cache variable.
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8733. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8734. if ${lt_cv_irix_exported_symbol+:} false; then :
  8735. $as_echo_n "(cached) " >&6
  8736. else
  8737. save_LDFLAGS=$LDFLAGS
  8738. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8740. /* end confdefs.h. */
  8741. int foo (void) { return 0; }
  8742. _ACEOF
  8743. if ac_fn_c_try_link "$LINENO"; then :
  8744. lt_cv_irix_exported_symbol=yes
  8745. else
  8746. lt_cv_irix_exported_symbol=no
  8747. fi
  8748. rm -f core conftest.err conftest.$ac_objext \
  8749. conftest$ac_exeext conftest.$ac_ext
  8750. LDFLAGS=$save_LDFLAGS
  8751. fi
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8753. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8754. if test yes = "$lt_cv_irix_exported_symbol"; then
  8755. 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'
  8756. fi
  8757. link_all_deplibs=no
  8758. else
  8759. 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'
  8760. 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'
  8761. fi
  8762. archive_cmds_need_lc='no'
  8763. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8764. hardcode_libdir_separator=:
  8765. inherit_rpath=yes
  8766. link_all_deplibs=yes
  8767. ;;
  8768. linux*)
  8769. case $cc_basename in
  8770. tcc*)
  8771. # Fabrice Bellard et al's Tiny C Compiler
  8772. ld_shlibs=yes
  8773. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8774. ;;
  8775. esac
  8776. ;;
  8777. netbsd* | netbsdelf*-gnu)
  8778. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8779. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8780. else
  8781. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8782. fi
  8783. hardcode_libdir_flag_spec='-R$libdir'
  8784. hardcode_direct=yes
  8785. hardcode_shlibpath_var=no
  8786. ;;
  8787. newsos6)
  8788. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8789. hardcode_direct=yes
  8790. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8791. hardcode_libdir_separator=:
  8792. hardcode_shlibpath_var=no
  8793. ;;
  8794. *nto* | *qnx*)
  8795. ;;
  8796. openbsd* | bitrig*)
  8797. if test -f /usr/libexec/ld.so; then
  8798. hardcode_direct=yes
  8799. hardcode_shlibpath_var=no
  8800. hardcode_direct_absolute=yes
  8801. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8802. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8803. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8804. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8805. export_dynamic_flag_spec='$wl-E'
  8806. else
  8807. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8808. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8809. fi
  8810. else
  8811. ld_shlibs=no
  8812. fi
  8813. ;;
  8814. os2*)
  8815. hardcode_libdir_flag_spec='-L$libdir'
  8816. hardcode_minus_L=yes
  8817. allow_undefined_flag=unsupported
  8818. shrext_cmds=.dll
  8819. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8820. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8821. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8822. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8823. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8824. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8825. emximp -o $lib $output_objdir/$libname.def'
  8826. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8827. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8828. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8829. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8830. prefix_cmds="$SED"~
  8831. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8832. prefix_cmds="$prefix_cmds -e 1d";
  8833. fi~
  8834. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8835. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8836. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8837. emximp -o $lib $output_objdir/$libname.def'
  8838. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8839. enable_shared_with_static_runtimes=yes
  8840. ;;
  8841. osf3*)
  8842. if test yes = "$GCC"; then
  8843. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8844. 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'
  8845. else
  8846. allow_undefined_flag=' -expect_unresolved \*'
  8847. 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'
  8848. fi
  8849. archive_cmds_need_lc='no'
  8850. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8851. hardcode_libdir_separator=:
  8852. ;;
  8853. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8854. if test yes = "$GCC"; then
  8855. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8856. 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'
  8857. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8858. else
  8859. allow_undefined_flag=' -expect_unresolved \*'
  8860. 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'
  8861. 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~
  8862. $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'
  8863. # Both c and cxx compiler support -rpath directly
  8864. hardcode_libdir_flag_spec='-rpath $libdir'
  8865. fi
  8866. archive_cmds_need_lc='no'
  8867. hardcode_libdir_separator=:
  8868. ;;
  8869. solaris*)
  8870. no_undefined_flag=' -z defs'
  8871. if test yes = "$GCC"; then
  8872. wlarc='$wl'
  8873. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8874. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8875. $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'
  8876. else
  8877. case `$CC -V 2>&1` in
  8878. *"Compilers 5.0"*)
  8879. wlarc=''
  8880. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8881. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8882. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8883. ;;
  8884. *)
  8885. wlarc='$wl'
  8886. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8887. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8888. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8889. ;;
  8890. esac
  8891. fi
  8892. hardcode_libdir_flag_spec='-R$libdir'
  8893. hardcode_shlibpath_var=no
  8894. case $host_os in
  8895. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8896. *)
  8897. # The compiler driver will combine and reorder linker options,
  8898. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8899. # but is careful enough not to reorder.
  8900. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8901. if test yes = "$GCC"; then
  8902. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8903. else
  8904. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8905. fi
  8906. ;;
  8907. esac
  8908. link_all_deplibs=yes
  8909. ;;
  8910. sunos4*)
  8911. if test sequent = "$host_vendor"; then
  8912. # Use $CC to link under sequent, because it throws in some extra .o
  8913. # files that make .init and .fini sections work.
  8914. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8915. else
  8916. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8917. fi
  8918. hardcode_libdir_flag_spec='-L$libdir'
  8919. hardcode_direct=yes
  8920. hardcode_minus_L=yes
  8921. hardcode_shlibpath_var=no
  8922. ;;
  8923. sysv4)
  8924. case $host_vendor in
  8925. sni)
  8926. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8927. hardcode_direct=yes # is this really true???
  8928. ;;
  8929. siemens)
  8930. ## LD is ld it makes a PLAMLIB
  8931. ## CC just makes a GrossModule.
  8932. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8933. reload_cmds='$CC -r -o $output$reload_objs'
  8934. hardcode_direct=no
  8935. ;;
  8936. motorola)
  8937. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8938. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8939. ;;
  8940. esac
  8941. runpath_var='LD_RUN_PATH'
  8942. hardcode_shlibpath_var=no
  8943. ;;
  8944. sysv4.3*)
  8945. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8946. hardcode_shlibpath_var=no
  8947. export_dynamic_flag_spec='-Bexport'
  8948. ;;
  8949. sysv4*MP*)
  8950. if test -d /usr/nec; then
  8951. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8952. hardcode_shlibpath_var=no
  8953. runpath_var=LD_RUN_PATH
  8954. hardcode_runpath_var=yes
  8955. ld_shlibs=yes
  8956. fi
  8957. ;;
  8958. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8959. no_undefined_flag='$wl-z,text'
  8960. archive_cmds_need_lc=no
  8961. hardcode_shlibpath_var=no
  8962. runpath_var='LD_RUN_PATH'
  8963. if test yes = "$GCC"; then
  8964. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8965. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8966. else
  8967. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8968. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8969. fi
  8970. ;;
  8971. sysv5* | sco3.2v5* | sco5v6*)
  8972. # Note: We CANNOT use -z defs as we might desire, because we do not
  8973. # link with -lc, and that would cause any symbols used from libc to
  8974. # always be unresolved, which means just about no library would
  8975. # ever link correctly. If we're not using GNU ld we use -z text
  8976. # though, which does catch some bad symbols but isn't as heavy-handed
  8977. # as -z defs.
  8978. no_undefined_flag='$wl-z,text'
  8979. allow_undefined_flag='$wl-z,nodefs'
  8980. archive_cmds_need_lc=no
  8981. hardcode_shlibpath_var=no
  8982. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8983. hardcode_libdir_separator=':'
  8984. link_all_deplibs=yes
  8985. export_dynamic_flag_spec='$wl-Bexport'
  8986. runpath_var='LD_RUN_PATH'
  8987. if test yes = "$GCC"; then
  8988. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. else
  8991. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8992. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8993. fi
  8994. ;;
  8995. uts4*)
  8996. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8997. hardcode_libdir_flag_spec='-L$libdir'
  8998. hardcode_shlibpath_var=no
  8999. ;;
  9000. *)
  9001. ld_shlibs=no
  9002. ;;
  9003. esac
  9004. if test sni = "$host_vendor"; then
  9005. case $host in
  9006. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9007. export_dynamic_flag_spec='$wl-Blargedynsym'
  9008. ;;
  9009. esac
  9010. fi
  9011. fi
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9013. $as_echo "$ld_shlibs" >&6; }
  9014. test no = "$ld_shlibs" && can_build_shared=no
  9015. with_gnu_ld=$with_gnu_ld
  9016. #
  9017. # Do we need to explicitly link libc?
  9018. #
  9019. case "x$archive_cmds_need_lc" in
  9020. x|xyes)
  9021. # Assume -lc should be added
  9022. archive_cmds_need_lc=yes
  9023. if test yes,yes = "$GCC,$enable_shared"; then
  9024. case $archive_cmds in
  9025. *'~'*)
  9026. # FIXME: we may have to deal with multi-command sequences.
  9027. ;;
  9028. '$CC '*)
  9029. # Test whether the compiler implicitly links with -lc since on some
  9030. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9031. # to ld, don't add -lc before -lgcc.
  9032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9033. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9034. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9035. $as_echo_n "(cached) " >&6
  9036. else
  9037. $RM conftest*
  9038. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9039. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9040. (eval $ac_compile) 2>&5
  9041. ac_status=$?
  9042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9043. test $ac_status = 0; } 2>conftest.err; then
  9044. soname=conftest
  9045. lib=conftest
  9046. libobjs=conftest.$ac_objext
  9047. deplibs=
  9048. wl=$lt_prog_compiler_wl
  9049. pic_flag=$lt_prog_compiler_pic
  9050. compiler_flags=-v
  9051. linker_flags=-v
  9052. verstring=
  9053. output_objdir=.
  9054. libname=conftest
  9055. lt_save_allow_undefined_flag=$allow_undefined_flag
  9056. allow_undefined_flag=
  9057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9058. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9059. ac_status=$?
  9060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9061. test $ac_status = 0; }
  9062. then
  9063. lt_cv_archive_cmds_need_lc=no
  9064. else
  9065. lt_cv_archive_cmds_need_lc=yes
  9066. fi
  9067. allow_undefined_flag=$lt_save_allow_undefined_flag
  9068. else
  9069. cat conftest.err 1>&5
  9070. fi
  9071. $RM conftest*
  9072. fi
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9074. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9075. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9076. ;;
  9077. esac
  9078. fi
  9079. ;;
  9080. esac
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9082. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9083. if test yes = "$GCC"; then
  9084. case $host_os in
  9085. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9086. *) lt_awk_arg='/^libraries:/' ;;
  9087. esac
  9088. case $host_os in
  9089. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9090. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9091. esac
  9092. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9093. case $lt_search_path_spec in
  9094. *\;*)
  9095. # if the path contains ";" then we assume it to be the separator
  9096. # otherwise default to the standard path separator (i.e. ":") - it is
  9097. # assumed that no part of a normal pathname contains ";" but that should
  9098. # okay in the real world where ";" in dirpaths is itself problematic.
  9099. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9100. ;;
  9101. *)
  9102. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9103. ;;
  9104. esac
  9105. # Ok, now we have the path, separated by spaces, we can step through it
  9106. # and add multilib dir if necessary...
  9107. lt_tmp_lt_search_path_spec=
  9108. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9109. # ...but if some path component already ends with the multilib dir we assume
  9110. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9111. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9112. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9113. lt_multi_os_dir=
  9114. ;;
  9115. esac
  9116. for lt_sys_path in $lt_search_path_spec; do
  9117. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9118. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9119. elif test -n "$lt_multi_os_dir"; then
  9120. test -d "$lt_sys_path" && \
  9121. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9122. fi
  9123. done
  9124. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9125. BEGIN {RS = " "; FS = "/|\n";} {
  9126. lt_foo = "";
  9127. lt_count = 0;
  9128. for (lt_i = NF; lt_i > 0; lt_i--) {
  9129. if ($lt_i != "" && $lt_i != ".") {
  9130. if ($lt_i == "..") {
  9131. lt_count++;
  9132. } else {
  9133. if (lt_count == 0) {
  9134. lt_foo = "/" $lt_i lt_foo;
  9135. } else {
  9136. lt_count--;
  9137. }
  9138. }
  9139. }
  9140. }
  9141. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9142. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9143. }'`
  9144. # AWK program above erroneously prepends '/' to C:/dos/paths
  9145. # for these hosts.
  9146. case $host_os in
  9147. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9148. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9149. esac
  9150. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9151. else
  9152. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9153. fi
  9154. library_names_spec=
  9155. libname_spec='lib$name'
  9156. soname_spec=
  9157. shrext_cmds=.so
  9158. postinstall_cmds=
  9159. postuninstall_cmds=
  9160. finish_cmds=
  9161. finish_eval=
  9162. shlibpath_var=
  9163. shlibpath_overrides_runpath=unknown
  9164. version_type=none
  9165. dynamic_linker="$host_os ld.so"
  9166. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9167. need_lib_prefix=unknown
  9168. hardcode_into_libs=no
  9169. # when you set need_version to no, make sure it does not cause -set_version
  9170. # flags to be left without arguments
  9171. need_version=unknown
  9172. case $host_os in
  9173. aix3*)
  9174. version_type=linux # correct to gnu/linux during the next big refactor
  9175. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9176. shlibpath_var=LIBPATH
  9177. # AIX 3 has no versioning support, so we append a major version to the name.
  9178. soname_spec='$libname$release$shared_ext$major'
  9179. ;;
  9180. aix[4-9]*)
  9181. version_type=linux # correct to gnu/linux during the next big refactor
  9182. need_lib_prefix=no
  9183. need_version=no
  9184. hardcode_into_libs=yes
  9185. if test ia64 = "$host_cpu"; then
  9186. # AIX 5 supports IA64
  9187. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9188. shlibpath_var=LD_LIBRARY_PATH
  9189. else
  9190. # With GCC up to 2.95.x, collect2 would create an import file
  9191. # for dependence libraries. The import file would start with
  9192. # the line '#! .'. This would cause the generated library to
  9193. # depend on '.', always an invalid library. This was fixed in
  9194. # development snapshots of GCC prior to 3.0.
  9195. case $host_os in
  9196. aix4 | aix4.[01] | aix4.[01].*)
  9197. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9198. echo ' yes '
  9199. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9200. :
  9201. else
  9202. can_build_shared=no
  9203. fi
  9204. ;;
  9205. esac
  9206. # Using Import Files as archive members, it is possible to support
  9207. # filename-based versioning of shared library archives on AIX. While
  9208. # this would work for both with and without runtime linking, it will
  9209. # prevent static linking of such archives. So we do filename-based
  9210. # shared library versioning with .so extension only, which is used
  9211. # when both runtime linking and shared linking is enabled.
  9212. # Unfortunately, runtime linking may impact performance, so we do
  9213. # not want this to be the default eventually. Also, we use the
  9214. # versioned .so libs for executables only if there is the -brtl
  9215. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9216. # To allow for filename-based versioning support, we need to create
  9217. # libNAME.so.V as an archive file, containing:
  9218. # *) an Import File, referring to the versioned filename of the
  9219. # archive as well as the shared archive member, telling the
  9220. # bitwidth (32 or 64) of that shared object, and providing the
  9221. # list of exported symbols of that shared object, eventually
  9222. # decorated with the 'weak' keyword
  9223. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9224. # it being seen by the linker.
  9225. # At run time we better use the real file rather than another symlink,
  9226. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9227. case $with_aix_soname,$aix_use_runtimelinking in
  9228. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9229. # soname into executable. Probably we can add versioning support to
  9230. # collect2, so additional links can be useful in future.
  9231. aix,yes) # traditional libtool
  9232. dynamic_linker='AIX unversionable lib.so'
  9233. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9234. # instead of lib<name>.a to let people know that these are not
  9235. # typical AIX shared libraries.
  9236. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9237. ;;
  9238. aix,no) # traditional AIX only
  9239. dynamic_linker='AIX lib.a(lib.so.V)'
  9240. # We preserve .a as extension for shared libraries through AIX4.2
  9241. # and later when we are not doing run time linking.
  9242. library_names_spec='$libname$release.a $libname.a'
  9243. soname_spec='$libname$release$shared_ext$major'
  9244. ;;
  9245. svr4,*) # full svr4 only
  9246. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9247. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9248. # We do not specify a path in Import Files, so LIBPATH fires.
  9249. shlibpath_overrides_runpath=yes
  9250. ;;
  9251. *,yes) # both, prefer svr4
  9252. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9253. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9254. # unpreferred sharedlib libNAME.a needs extra handling
  9255. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9256. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9257. # We do not specify a path in Import Files, so LIBPATH fires.
  9258. shlibpath_overrides_runpath=yes
  9259. ;;
  9260. *,no) # both, prefer aix
  9261. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9262. library_names_spec='$libname$release.a $libname.a'
  9263. soname_spec='$libname$release$shared_ext$major'
  9264. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9265. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9266. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9267. ;;
  9268. esac
  9269. shlibpath_var=LIBPATH
  9270. fi
  9271. ;;
  9272. amigaos*)
  9273. case $host_cpu in
  9274. powerpc)
  9275. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9276. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9277. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9278. ;;
  9279. m68k)
  9280. library_names_spec='$libname.ixlibrary $libname.a'
  9281. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9282. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9283. ;;
  9284. esac
  9285. ;;
  9286. beos*)
  9287. library_names_spec='$libname$shared_ext'
  9288. dynamic_linker="$host_os ld.so"
  9289. shlibpath_var=LIBRARY_PATH
  9290. ;;
  9291. bsdi[45]*)
  9292. version_type=linux # correct to gnu/linux during the next big refactor
  9293. need_version=no
  9294. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9295. soname_spec='$libname$release$shared_ext$major'
  9296. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9299. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9300. # the default ld.so.conf also contains /usr/contrib/lib and
  9301. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9302. # libtool to hard-code these into programs
  9303. ;;
  9304. cygwin* | mingw* | pw32* | cegcc*)
  9305. version_type=windows
  9306. shrext_cmds=.dll
  9307. need_version=no
  9308. need_lib_prefix=no
  9309. case $GCC,$cc_basename in
  9310. yes,*)
  9311. # gcc
  9312. library_names_spec='$libname.dll.a'
  9313. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9314. postinstall_cmds='base_file=`basename \$file`~
  9315. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9316. dldir=$destdir/`dirname \$dlpath`~
  9317. test -d \$dldir || mkdir -p \$dldir~
  9318. $install_prog $dir/$dlname \$dldir/$dlname~
  9319. chmod a+x \$dldir/$dlname~
  9320. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9321. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9322. fi'
  9323. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9324. dlpath=$dir/\$dldll~
  9325. $RM \$dlpath'
  9326. shlibpath_overrides_runpath=yes
  9327. case $host_os in
  9328. cygwin*)
  9329. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9330. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9331. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9332. ;;
  9333. mingw* | cegcc*)
  9334. # MinGW DLLs use traditional 'lib' prefix
  9335. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9336. ;;
  9337. pw32*)
  9338. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9339. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9340. ;;
  9341. esac
  9342. dynamic_linker='Win32 ld.exe'
  9343. ;;
  9344. *,cl*)
  9345. # Native MSVC
  9346. libname_spec='$name'
  9347. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9348. library_names_spec='$libname.dll.lib'
  9349. case $build_os in
  9350. mingw*)
  9351. sys_lib_search_path_spec=
  9352. lt_save_ifs=$IFS
  9353. IFS=';'
  9354. for lt_path in $LIB
  9355. do
  9356. IFS=$lt_save_ifs
  9357. # Let DOS variable expansion print the short 8.3 style file name.
  9358. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9359. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9360. done
  9361. IFS=$lt_save_ifs
  9362. # Convert to MSYS style.
  9363. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9364. ;;
  9365. cygwin*)
  9366. # Convert to unix form, then to dos form, then back to unix form
  9367. # but this time dos style (no spaces!) so that the unix form looks
  9368. # like /cygdrive/c/PROGRA~1:/cygdr...
  9369. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9370. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9371. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9372. ;;
  9373. *)
  9374. sys_lib_search_path_spec=$LIB
  9375. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9376. # It is most probably a Windows format PATH.
  9377. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9378. else
  9379. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9380. fi
  9381. # FIXME: find the short name or the path components, as spaces are
  9382. # common. (e.g. "Program Files" -> "PROGRA~1")
  9383. ;;
  9384. esac
  9385. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9386. postinstall_cmds='base_file=`basename \$file`~
  9387. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9388. dldir=$destdir/`dirname \$dlpath`~
  9389. test -d \$dldir || mkdir -p \$dldir~
  9390. $install_prog $dir/$dlname \$dldir/$dlname'
  9391. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9392. dlpath=$dir/\$dldll~
  9393. $RM \$dlpath'
  9394. shlibpath_overrides_runpath=yes
  9395. dynamic_linker='Win32 link.exe'
  9396. ;;
  9397. *)
  9398. # Assume MSVC wrapper
  9399. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9400. dynamic_linker='Win32 ld.exe'
  9401. ;;
  9402. esac
  9403. # FIXME: first we should search . and the directory the executable is in
  9404. shlibpath_var=PATH
  9405. ;;
  9406. darwin* | rhapsody*)
  9407. dynamic_linker="$host_os dyld"
  9408. version_type=darwin
  9409. need_lib_prefix=no
  9410. need_version=no
  9411. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9412. soname_spec='$libname$release$major$shared_ext'
  9413. shlibpath_overrides_runpath=yes
  9414. shlibpath_var=DYLD_LIBRARY_PATH
  9415. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9416. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9417. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9418. ;;
  9419. dgux*)
  9420. version_type=linux # correct to gnu/linux during the next big refactor
  9421. need_lib_prefix=no
  9422. need_version=no
  9423. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9424. soname_spec='$libname$release$shared_ext$major'
  9425. shlibpath_var=LD_LIBRARY_PATH
  9426. ;;
  9427. freebsd* | dragonfly*)
  9428. # DragonFly does not have aout. When/if they implement a new
  9429. # versioning mechanism, adjust this.
  9430. if test -x /usr/bin/objformat; then
  9431. objformat=`/usr/bin/objformat`
  9432. else
  9433. case $host_os in
  9434. freebsd[23].*) objformat=aout ;;
  9435. *) objformat=elf ;;
  9436. esac
  9437. fi
  9438. version_type=freebsd-$objformat
  9439. case $version_type in
  9440. freebsd-elf*)
  9441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9442. soname_spec='$libname$release$shared_ext$major'
  9443. need_version=no
  9444. need_lib_prefix=no
  9445. ;;
  9446. freebsd-*)
  9447. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9448. need_version=yes
  9449. ;;
  9450. esac
  9451. shlibpath_var=LD_LIBRARY_PATH
  9452. case $host_os in
  9453. freebsd2.*)
  9454. shlibpath_overrides_runpath=yes
  9455. ;;
  9456. freebsd3.[01]* | freebsdelf3.[01]*)
  9457. shlibpath_overrides_runpath=yes
  9458. hardcode_into_libs=yes
  9459. ;;
  9460. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9461. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9462. shlibpath_overrides_runpath=no
  9463. hardcode_into_libs=yes
  9464. ;;
  9465. *) # from 4.6 on, and DragonFly
  9466. shlibpath_overrides_runpath=yes
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. esac
  9470. ;;
  9471. haiku*)
  9472. version_type=linux # correct to gnu/linux during the next big refactor
  9473. need_lib_prefix=no
  9474. need_version=no
  9475. dynamic_linker="$host_os runtime_loader"
  9476. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9477. soname_spec='$libname$release$shared_ext$major'
  9478. shlibpath_var=LIBRARY_PATH
  9479. shlibpath_overrides_runpath=no
  9480. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9481. hardcode_into_libs=yes
  9482. ;;
  9483. hpux9* | hpux10* | hpux11*)
  9484. # Give a soname corresponding to the major version so that dld.sl refuses to
  9485. # link against other versions.
  9486. version_type=sunos
  9487. need_lib_prefix=no
  9488. need_version=no
  9489. case $host_cpu in
  9490. ia64*)
  9491. shrext_cmds='.so'
  9492. hardcode_into_libs=yes
  9493. dynamic_linker="$host_os dld.so"
  9494. shlibpath_var=LD_LIBRARY_PATH
  9495. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9496. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9497. soname_spec='$libname$release$shared_ext$major'
  9498. if test 32 = "$HPUX_IA64_MODE"; then
  9499. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9500. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9501. else
  9502. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9503. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9504. fi
  9505. ;;
  9506. hppa*64*)
  9507. shrext_cmds='.sl'
  9508. hardcode_into_libs=yes
  9509. dynamic_linker="$host_os dld.sl"
  9510. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9511. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9512. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9513. soname_spec='$libname$release$shared_ext$major'
  9514. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9515. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9516. ;;
  9517. *)
  9518. shrext_cmds='.sl'
  9519. dynamic_linker="$host_os dld.sl"
  9520. shlibpath_var=SHLIB_PATH
  9521. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9523. soname_spec='$libname$release$shared_ext$major'
  9524. ;;
  9525. esac
  9526. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9527. postinstall_cmds='chmod 555 $lib'
  9528. # or fails outright, so override atomically:
  9529. install_override_mode=555
  9530. ;;
  9531. interix[3-9]*)
  9532. version_type=linux # correct to gnu/linux during the next big refactor
  9533. need_lib_prefix=no
  9534. need_version=no
  9535. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9536. soname_spec='$libname$release$shared_ext$major'
  9537. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9538. shlibpath_var=LD_LIBRARY_PATH
  9539. shlibpath_overrides_runpath=no
  9540. hardcode_into_libs=yes
  9541. ;;
  9542. irix5* | irix6* | nonstopux*)
  9543. case $host_os in
  9544. nonstopux*) version_type=nonstopux ;;
  9545. *)
  9546. if test yes = "$lt_cv_prog_gnu_ld"; then
  9547. version_type=linux # correct to gnu/linux during the next big refactor
  9548. else
  9549. version_type=irix
  9550. fi ;;
  9551. esac
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. soname_spec='$libname$release$shared_ext$major'
  9555. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9556. case $host_os in
  9557. irix5* | nonstopux*)
  9558. libsuff= shlibsuff=
  9559. ;;
  9560. *)
  9561. case $LD in # libtool.m4 will add one of these switches to LD
  9562. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9563. libsuff= shlibsuff= libmagic=32-bit;;
  9564. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9565. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9566. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9567. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9568. *) libsuff= shlibsuff= libmagic=never-match;;
  9569. esac
  9570. ;;
  9571. esac
  9572. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9573. shlibpath_overrides_runpath=no
  9574. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9575. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9576. hardcode_into_libs=yes
  9577. ;;
  9578. # No shared lib support for Linux oldld, aout, or coff.
  9579. linux*oldld* | linux*aout* | linux*coff*)
  9580. dynamic_linker=no
  9581. ;;
  9582. linux*android*)
  9583. version_type=none # Android doesn't support versioned libraries.
  9584. need_lib_prefix=no
  9585. need_version=no
  9586. library_names_spec='$libname$release$shared_ext'
  9587. soname_spec='$libname$release$shared_ext'
  9588. finish_cmds=
  9589. shlibpath_var=LD_LIBRARY_PATH
  9590. shlibpath_overrides_runpath=yes
  9591. # This implies no fast_install, which is unacceptable.
  9592. # Some rework will be needed to allow for fast_install
  9593. # before this can be enabled.
  9594. hardcode_into_libs=yes
  9595. dynamic_linker='Android linker'
  9596. # Don't embed -rpath directories since the linker doesn't support them.
  9597. hardcode_libdir_flag_spec='-L$libdir'
  9598. ;;
  9599. # This must be glibc/ELF.
  9600. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9601. version_type=linux # correct to gnu/linux during the next big refactor
  9602. need_lib_prefix=no
  9603. need_version=no
  9604. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9605. soname_spec='$libname$release$shared_ext$major'
  9606. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. shlibpath_overrides_runpath=no
  9609. # Some binutils ld are patched to set DT_RUNPATH
  9610. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9611. $as_echo_n "(cached) " >&6
  9612. else
  9613. lt_cv_shlibpath_overrides_runpath=no
  9614. save_LDFLAGS=$LDFLAGS
  9615. save_libdir=$libdir
  9616. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9617. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9619. /* end confdefs.h. */
  9620. int
  9621. main ()
  9622. {
  9623. ;
  9624. return 0;
  9625. }
  9626. _ACEOF
  9627. if ac_fn_c_try_link "$LINENO"; then :
  9628. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9629. lt_cv_shlibpath_overrides_runpath=yes
  9630. fi
  9631. fi
  9632. rm -f core conftest.err conftest.$ac_objext \
  9633. conftest$ac_exeext conftest.$ac_ext
  9634. LDFLAGS=$save_LDFLAGS
  9635. libdir=$save_libdir
  9636. fi
  9637. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9638. # This implies no fast_install, which is unacceptable.
  9639. # Some rework will be needed to allow for fast_install
  9640. # before this can be enabled.
  9641. hardcode_into_libs=yes
  9642. # Ideally, we could use ldconfig to report *all* directores which are
  9643. # searched for libraries, however this is still not possible. Aside from not
  9644. # being certain /sbin/ldconfig is available, command
  9645. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9646. # even though it is searched at run-time. Try to do the best guess by
  9647. # appending ld.so.conf contents (and includes) to the search path.
  9648. if test -f /etc/ld.so.conf; then
  9649. 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' ' '`
  9650. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9651. fi
  9652. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9653. # powerpc, because MkLinux only supported shared libraries with the
  9654. # GNU dynamic linker. Since this was broken with cross compilers,
  9655. # most powerpc-linux boxes support dynamic linking these days and
  9656. # people can always --disable-shared, the test was removed, and we
  9657. # assume the GNU/Linux dynamic linker is in use.
  9658. dynamic_linker='GNU/Linux ld.so'
  9659. ;;
  9660. netbsdelf*-gnu)
  9661. version_type=linux
  9662. need_lib_prefix=no
  9663. need_version=no
  9664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9665. soname_spec='${libname}${release}${shared_ext}$major'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=no
  9668. hardcode_into_libs=yes
  9669. dynamic_linker='NetBSD ld.elf_so'
  9670. ;;
  9671. netbsd*)
  9672. version_type=sunos
  9673. need_lib_prefix=no
  9674. need_version=no
  9675. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9676. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9677. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9678. dynamic_linker='NetBSD (a.out) ld.so'
  9679. else
  9680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9681. soname_spec='$libname$release$shared_ext$major'
  9682. dynamic_linker='NetBSD ld.elf_so'
  9683. fi
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. shlibpath_overrides_runpath=yes
  9686. hardcode_into_libs=yes
  9687. ;;
  9688. newsos6)
  9689. version_type=linux # correct to gnu/linux during the next big refactor
  9690. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9691. shlibpath_var=LD_LIBRARY_PATH
  9692. shlibpath_overrides_runpath=yes
  9693. ;;
  9694. *nto* | *qnx*)
  9695. version_type=qnx
  9696. need_lib_prefix=no
  9697. need_version=no
  9698. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9699. soname_spec='$libname$release$shared_ext$major'
  9700. shlibpath_var=LD_LIBRARY_PATH
  9701. shlibpath_overrides_runpath=no
  9702. hardcode_into_libs=yes
  9703. dynamic_linker='ldqnx.so'
  9704. ;;
  9705. openbsd* | bitrig*)
  9706. version_type=sunos
  9707. sys_lib_dlsearch_path_spec=/usr/lib
  9708. need_lib_prefix=no
  9709. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9710. need_version=no
  9711. else
  9712. need_version=yes
  9713. fi
  9714. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9715. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. shlibpath_overrides_runpath=yes
  9718. ;;
  9719. os2*)
  9720. libname_spec='$name'
  9721. version_type=windows
  9722. shrext_cmds=.dll
  9723. need_version=no
  9724. need_lib_prefix=no
  9725. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9726. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9727. v=$($ECHO $release$versuffix | tr -d .-);
  9728. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9729. $ECHO $n$v`$shared_ext'
  9730. library_names_spec='${libname}_dll.$libext'
  9731. dynamic_linker='OS/2 ld.exe'
  9732. shlibpath_var=BEGINLIBPATH
  9733. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9734. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9735. postinstall_cmds='base_file=`basename \$file`~
  9736. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9737. dldir=$destdir/`dirname \$dlpath`~
  9738. test -d \$dldir || mkdir -p \$dldir~
  9739. $install_prog $dir/$dlname \$dldir/$dlname~
  9740. chmod a+x \$dldir/$dlname~
  9741. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9742. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9743. fi'
  9744. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9745. dlpath=$dir/\$dldll~
  9746. $RM \$dlpath'
  9747. ;;
  9748. osf3* | osf4* | osf5*)
  9749. version_type=osf
  9750. need_lib_prefix=no
  9751. need_version=no
  9752. soname_spec='$libname$release$shared_ext$major'
  9753. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9754. shlibpath_var=LD_LIBRARY_PATH
  9755. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9756. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9757. ;;
  9758. rdos*)
  9759. dynamic_linker=no
  9760. ;;
  9761. solaris*)
  9762. version_type=linux # correct to gnu/linux during the next big refactor
  9763. need_lib_prefix=no
  9764. need_version=no
  9765. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9766. soname_spec='$libname$release$shared_ext$major'
  9767. shlibpath_var=LD_LIBRARY_PATH
  9768. shlibpath_overrides_runpath=yes
  9769. hardcode_into_libs=yes
  9770. # ldd complains unless libraries are executable
  9771. postinstall_cmds='chmod +x $lib'
  9772. ;;
  9773. sunos4*)
  9774. version_type=sunos
  9775. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9776. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. shlibpath_overrides_runpath=yes
  9779. if test yes = "$with_gnu_ld"; then
  9780. need_lib_prefix=no
  9781. fi
  9782. need_version=yes
  9783. ;;
  9784. sysv4 | sysv4.3*)
  9785. version_type=linux # correct to gnu/linux during the next big refactor
  9786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9787. soname_spec='$libname$release$shared_ext$major'
  9788. shlibpath_var=LD_LIBRARY_PATH
  9789. case $host_vendor in
  9790. sni)
  9791. shlibpath_overrides_runpath=no
  9792. need_lib_prefix=no
  9793. runpath_var=LD_RUN_PATH
  9794. ;;
  9795. siemens)
  9796. need_lib_prefix=no
  9797. ;;
  9798. motorola)
  9799. need_lib_prefix=no
  9800. need_version=no
  9801. shlibpath_overrides_runpath=no
  9802. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9803. ;;
  9804. esac
  9805. ;;
  9806. sysv4*MP*)
  9807. if test -d /usr/nec; then
  9808. version_type=linux # correct to gnu/linux during the next big refactor
  9809. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9810. soname_spec='$libname$shared_ext.$major'
  9811. shlibpath_var=LD_LIBRARY_PATH
  9812. fi
  9813. ;;
  9814. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9815. version_type=sco
  9816. need_lib_prefix=no
  9817. need_version=no
  9818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9819. soname_spec='$libname$release$shared_ext$major'
  9820. shlibpath_var=LD_LIBRARY_PATH
  9821. shlibpath_overrides_runpath=yes
  9822. hardcode_into_libs=yes
  9823. if test yes = "$with_gnu_ld"; then
  9824. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9825. else
  9826. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9827. case $host_os in
  9828. sco3.2v5*)
  9829. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9830. ;;
  9831. esac
  9832. fi
  9833. sys_lib_dlsearch_path_spec='/usr/lib'
  9834. ;;
  9835. tpf*)
  9836. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9837. version_type=linux # correct to gnu/linux during the next big refactor
  9838. need_lib_prefix=no
  9839. need_version=no
  9840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9841. shlibpath_var=LD_LIBRARY_PATH
  9842. shlibpath_overrides_runpath=no
  9843. hardcode_into_libs=yes
  9844. ;;
  9845. uts4*)
  9846. version_type=linux # correct to gnu/linux during the next big refactor
  9847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9848. soname_spec='$libname$release$shared_ext$major'
  9849. shlibpath_var=LD_LIBRARY_PATH
  9850. ;;
  9851. *)
  9852. dynamic_linker=no
  9853. ;;
  9854. esac
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9856. $as_echo "$dynamic_linker" >&6; }
  9857. test no = "$dynamic_linker" && can_build_shared=no
  9858. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9859. if test yes = "$GCC"; then
  9860. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9861. fi
  9862. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9863. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9864. fi
  9865. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9866. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9867. fi
  9868. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9869. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9870. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9871. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9872. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9873. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9875. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9876. hardcode_action=
  9877. if test -n "$hardcode_libdir_flag_spec" ||
  9878. test -n "$runpath_var" ||
  9879. test yes = "$hardcode_automatic"; then
  9880. # We can hardcode non-existent directories.
  9881. if test no != "$hardcode_direct" &&
  9882. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9883. # have to relink, otherwise we might link with an installed library
  9884. # when we should be linking with a yet-to-be-installed one
  9885. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9886. test no != "$hardcode_minus_L"; then
  9887. # Linking always hardcodes the temporary library directory.
  9888. hardcode_action=relink
  9889. else
  9890. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9891. hardcode_action=immediate
  9892. fi
  9893. else
  9894. # We cannot hardcode anything, or else we can only hardcode existing
  9895. # directories.
  9896. hardcode_action=unsupported
  9897. fi
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9899. $as_echo "$hardcode_action" >&6; }
  9900. if test relink = "$hardcode_action" ||
  9901. test yes = "$inherit_rpath"; then
  9902. # Fast installation is not supported
  9903. enable_fast_install=no
  9904. elif test yes = "$shlibpath_overrides_runpath" ||
  9905. test no = "$enable_shared"; then
  9906. # Fast installation is not necessary
  9907. enable_fast_install=needless
  9908. fi
  9909. if test yes != "$enable_dlopen"; then
  9910. enable_dlopen=unknown
  9911. enable_dlopen_self=unknown
  9912. enable_dlopen_self_static=unknown
  9913. else
  9914. lt_cv_dlopen=no
  9915. lt_cv_dlopen_libs=
  9916. case $host_os in
  9917. beos*)
  9918. lt_cv_dlopen=load_add_on
  9919. lt_cv_dlopen_libs=
  9920. lt_cv_dlopen_self=yes
  9921. ;;
  9922. mingw* | pw32* | cegcc*)
  9923. lt_cv_dlopen=LoadLibrary
  9924. lt_cv_dlopen_libs=
  9925. ;;
  9926. cygwin*)
  9927. lt_cv_dlopen=dlopen
  9928. lt_cv_dlopen_libs=
  9929. ;;
  9930. darwin*)
  9931. # if libdl is installed we need to link against it
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9933. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9934. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9935. $as_echo_n "(cached) " >&6
  9936. else
  9937. ac_check_lib_save_LIBS=$LIBS
  9938. LIBS="-ldl $LIBS"
  9939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9940. /* end confdefs.h. */
  9941. /* Override any GCC internal prototype to avoid an error.
  9942. Use char because int might match the return type of a GCC
  9943. builtin and then its argument prototype would still apply. */
  9944. #ifdef __cplusplus
  9945. extern "C"
  9946. #endif
  9947. char dlopen ();
  9948. int
  9949. main ()
  9950. {
  9951. return dlopen ();
  9952. ;
  9953. return 0;
  9954. }
  9955. _ACEOF
  9956. if ac_fn_c_try_link "$LINENO"; then :
  9957. ac_cv_lib_dl_dlopen=yes
  9958. else
  9959. ac_cv_lib_dl_dlopen=no
  9960. fi
  9961. rm -f core conftest.err conftest.$ac_objext \
  9962. conftest$ac_exeext conftest.$ac_ext
  9963. LIBS=$ac_check_lib_save_LIBS
  9964. fi
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9966. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9967. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9968. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9969. else
  9970. lt_cv_dlopen=dyld
  9971. lt_cv_dlopen_libs=
  9972. lt_cv_dlopen_self=yes
  9973. fi
  9974. ;;
  9975. tpf*)
  9976. # Don't try to run any link tests for TPF. We know it's impossible
  9977. # because TPF is a cross-compiler, and we know how we open DSOs.
  9978. lt_cv_dlopen=dlopen
  9979. lt_cv_dlopen_libs=
  9980. lt_cv_dlopen_self=no
  9981. ;;
  9982. *)
  9983. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9984. if test "x$ac_cv_func_shl_load" = xyes; then :
  9985. lt_cv_dlopen=shl_load
  9986. else
  9987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9988. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9989. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9990. $as_echo_n "(cached) " >&6
  9991. else
  9992. ac_check_lib_save_LIBS=$LIBS
  9993. LIBS="-ldld $LIBS"
  9994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9995. /* end confdefs.h. */
  9996. /* Override any GCC internal prototype to avoid an error.
  9997. Use char because int might match the return type of a GCC
  9998. builtin and then its argument prototype would still apply. */
  9999. #ifdef __cplusplus
  10000. extern "C"
  10001. #endif
  10002. char shl_load ();
  10003. int
  10004. main ()
  10005. {
  10006. return shl_load ();
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. ac_cv_lib_dld_shl_load=yes
  10013. else
  10014. ac_cv_lib_dld_shl_load=no
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. LIBS=$ac_check_lib_save_LIBS
  10019. fi
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10021. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10022. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10023. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10024. else
  10025. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10026. if test "x$ac_cv_func_dlopen" = xyes; then :
  10027. lt_cv_dlopen=dlopen
  10028. else
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10030. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10031. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10032. $as_echo_n "(cached) " >&6
  10033. else
  10034. ac_check_lib_save_LIBS=$LIBS
  10035. LIBS="-ldl $LIBS"
  10036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. /* end confdefs.h. */
  10038. /* Override any GCC internal prototype to avoid an error.
  10039. Use char because int might match the return type of a GCC
  10040. builtin and then its argument prototype would still apply. */
  10041. #ifdef __cplusplus
  10042. extern "C"
  10043. #endif
  10044. char dlopen ();
  10045. int
  10046. main ()
  10047. {
  10048. return dlopen ();
  10049. ;
  10050. return 0;
  10051. }
  10052. _ACEOF
  10053. if ac_fn_c_try_link "$LINENO"; then :
  10054. ac_cv_lib_dl_dlopen=yes
  10055. else
  10056. ac_cv_lib_dl_dlopen=no
  10057. fi
  10058. rm -f core conftest.err conftest.$ac_objext \
  10059. conftest$ac_exeext conftest.$ac_ext
  10060. LIBS=$ac_check_lib_save_LIBS
  10061. fi
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10063. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10064. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10065. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10066. else
  10067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10068. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10069. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10070. $as_echo_n "(cached) " >&6
  10071. else
  10072. ac_check_lib_save_LIBS=$LIBS
  10073. LIBS="-lsvld $LIBS"
  10074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10075. /* end confdefs.h. */
  10076. /* Override any GCC internal prototype to avoid an error.
  10077. Use char because int might match the return type of a GCC
  10078. builtin and then its argument prototype would still apply. */
  10079. #ifdef __cplusplus
  10080. extern "C"
  10081. #endif
  10082. char dlopen ();
  10083. int
  10084. main ()
  10085. {
  10086. return dlopen ();
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. if ac_fn_c_try_link "$LINENO"; then :
  10092. ac_cv_lib_svld_dlopen=yes
  10093. else
  10094. ac_cv_lib_svld_dlopen=no
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext \
  10097. conftest$ac_exeext conftest.$ac_ext
  10098. LIBS=$ac_check_lib_save_LIBS
  10099. fi
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10101. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10102. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10103. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10104. else
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10106. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10107. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. ac_check_lib_save_LIBS=$LIBS
  10111. LIBS="-ldld $LIBS"
  10112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10113. /* end confdefs.h. */
  10114. /* Override any GCC internal prototype to avoid an error.
  10115. Use char because int might match the return type of a GCC
  10116. builtin and then its argument prototype would still apply. */
  10117. #ifdef __cplusplus
  10118. extern "C"
  10119. #endif
  10120. char dld_link ();
  10121. int
  10122. main ()
  10123. {
  10124. return dld_link ();
  10125. ;
  10126. return 0;
  10127. }
  10128. _ACEOF
  10129. if ac_fn_c_try_link "$LINENO"; then :
  10130. ac_cv_lib_dld_dld_link=yes
  10131. else
  10132. ac_cv_lib_dld_dld_link=no
  10133. fi
  10134. rm -f core conftest.err conftest.$ac_objext \
  10135. conftest$ac_exeext conftest.$ac_ext
  10136. LIBS=$ac_check_lib_save_LIBS
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10139. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10140. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10141. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10142. fi
  10143. fi
  10144. fi
  10145. fi
  10146. fi
  10147. fi
  10148. ;;
  10149. esac
  10150. if test no = "$lt_cv_dlopen"; then
  10151. enable_dlopen=no
  10152. else
  10153. enable_dlopen=yes
  10154. fi
  10155. case $lt_cv_dlopen in
  10156. dlopen)
  10157. save_CPPFLAGS=$CPPFLAGS
  10158. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10159. save_LDFLAGS=$LDFLAGS
  10160. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10161. save_LIBS=$LIBS
  10162. LIBS="$lt_cv_dlopen_libs $LIBS"
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10164. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10165. if ${lt_cv_dlopen_self+:} false; then :
  10166. $as_echo_n "(cached) " >&6
  10167. else
  10168. if test yes = "$cross_compiling"; then :
  10169. lt_cv_dlopen_self=cross
  10170. else
  10171. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10172. lt_status=$lt_dlunknown
  10173. cat > conftest.$ac_ext <<_LT_EOF
  10174. #line $LINENO "configure"
  10175. #include "confdefs.h"
  10176. #if HAVE_DLFCN_H
  10177. #include <dlfcn.h>
  10178. #endif
  10179. #include <stdio.h>
  10180. #ifdef RTLD_GLOBAL
  10181. # define LT_DLGLOBAL RTLD_GLOBAL
  10182. #else
  10183. # ifdef DL_GLOBAL
  10184. # define LT_DLGLOBAL DL_GLOBAL
  10185. # else
  10186. # define LT_DLGLOBAL 0
  10187. # endif
  10188. #endif
  10189. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10190. find out it does not work in some platform. */
  10191. #ifndef LT_DLLAZY_OR_NOW
  10192. # ifdef RTLD_LAZY
  10193. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10194. # else
  10195. # ifdef DL_LAZY
  10196. # define LT_DLLAZY_OR_NOW DL_LAZY
  10197. # else
  10198. # ifdef RTLD_NOW
  10199. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10200. # else
  10201. # ifdef DL_NOW
  10202. # define LT_DLLAZY_OR_NOW DL_NOW
  10203. # else
  10204. # define LT_DLLAZY_OR_NOW 0
  10205. # endif
  10206. # endif
  10207. # endif
  10208. # endif
  10209. #endif
  10210. /* When -fvisibility=hidden is used, assume the code has been annotated
  10211. correspondingly for the symbols needed. */
  10212. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10213. int fnord () __attribute__((visibility("default")));
  10214. #endif
  10215. int fnord () { return 42; }
  10216. int main ()
  10217. {
  10218. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10219. int status = $lt_dlunknown;
  10220. if (self)
  10221. {
  10222. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10223. else
  10224. {
  10225. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10226. else puts (dlerror ());
  10227. }
  10228. /* dlclose (self); */
  10229. }
  10230. else
  10231. puts (dlerror ());
  10232. return status;
  10233. }
  10234. _LT_EOF
  10235. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10236. (eval $ac_link) 2>&5
  10237. ac_status=$?
  10238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10239. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10240. (./conftest; exit; ) >&5 2>/dev/null
  10241. lt_status=$?
  10242. case x$lt_status in
  10243. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10244. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10245. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10246. esac
  10247. else :
  10248. # compilation failed
  10249. lt_cv_dlopen_self=no
  10250. fi
  10251. fi
  10252. rm -fr conftest*
  10253. fi
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10255. $as_echo "$lt_cv_dlopen_self" >&6; }
  10256. if test yes = "$lt_cv_dlopen_self"; then
  10257. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10259. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10260. if ${lt_cv_dlopen_self_static+:} false; then :
  10261. $as_echo_n "(cached) " >&6
  10262. else
  10263. if test yes = "$cross_compiling"; then :
  10264. lt_cv_dlopen_self_static=cross
  10265. else
  10266. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10267. lt_status=$lt_dlunknown
  10268. cat > conftest.$ac_ext <<_LT_EOF
  10269. #line $LINENO "configure"
  10270. #include "confdefs.h"
  10271. #if HAVE_DLFCN_H
  10272. #include <dlfcn.h>
  10273. #endif
  10274. #include <stdio.h>
  10275. #ifdef RTLD_GLOBAL
  10276. # define LT_DLGLOBAL RTLD_GLOBAL
  10277. #else
  10278. # ifdef DL_GLOBAL
  10279. # define LT_DLGLOBAL DL_GLOBAL
  10280. # else
  10281. # define LT_DLGLOBAL 0
  10282. # endif
  10283. #endif
  10284. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10285. find out it does not work in some platform. */
  10286. #ifndef LT_DLLAZY_OR_NOW
  10287. # ifdef RTLD_LAZY
  10288. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10289. # else
  10290. # ifdef DL_LAZY
  10291. # define LT_DLLAZY_OR_NOW DL_LAZY
  10292. # else
  10293. # ifdef RTLD_NOW
  10294. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10295. # else
  10296. # ifdef DL_NOW
  10297. # define LT_DLLAZY_OR_NOW DL_NOW
  10298. # else
  10299. # define LT_DLLAZY_OR_NOW 0
  10300. # endif
  10301. # endif
  10302. # endif
  10303. # endif
  10304. #endif
  10305. /* When -fvisibility=hidden is used, assume the code has been annotated
  10306. correspondingly for the symbols needed. */
  10307. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10308. int fnord () __attribute__((visibility("default")));
  10309. #endif
  10310. int fnord () { return 42; }
  10311. int main ()
  10312. {
  10313. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10314. int status = $lt_dlunknown;
  10315. if (self)
  10316. {
  10317. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10318. else
  10319. {
  10320. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10321. else puts (dlerror ());
  10322. }
  10323. /* dlclose (self); */
  10324. }
  10325. else
  10326. puts (dlerror ());
  10327. return status;
  10328. }
  10329. _LT_EOF
  10330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10331. (eval $ac_link) 2>&5
  10332. ac_status=$?
  10333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10334. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10335. (./conftest; exit; ) >&5 2>/dev/null
  10336. lt_status=$?
  10337. case x$lt_status in
  10338. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10339. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10340. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10341. esac
  10342. else :
  10343. # compilation failed
  10344. lt_cv_dlopen_self_static=no
  10345. fi
  10346. fi
  10347. rm -fr conftest*
  10348. fi
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10350. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10351. fi
  10352. CPPFLAGS=$save_CPPFLAGS
  10353. LDFLAGS=$save_LDFLAGS
  10354. LIBS=$save_LIBS
  10355. ;;
  10356. esac
  10357. case $lt_cv_dlopen_self in
  10358. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10359. *) enable_dlopen_self=unknown ;;
  10360. esac
  10361. case $lt_cv_dlopen_self_static in
  10362. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10363. *) enable_dlopen_self_static=unknown ;;
  10364. esac
  10365. fi
  10366. striplib=
  10367. old_striplib=
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10369. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10370. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10371. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10372. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10374. $as_echo "yes" >&6; }
  10375. else
  10376. # FIXME - insert some real tests, host_os isn't really good enough
  10377. case $host_os in
  10378. darwin*)
  10379. if test -n "$STRIP"; then
  10380. striplib="$STRIP -x"
  10381. old_striplib="$STRIP -S"
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10383. $as_echo "yes" >&6; }
  10384. else
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10386. $as_echo "no" >&6; }
  10387. fi
  10388. ;;
  10389. *)
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10391. $as_echo "no" >&6; }
  10392. ;;
  10393. esac
  10394. fi
  10395. # Report what library types will actually be built
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10397. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10399. $as_echo "$can_build_shared" >&6; }
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10401. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10402. test no = "$can_build_shared" && enable_shared=no
  10403. # On AIX, shared libraries and static libraries use the same namespace, and
  10404. # are all built from PIC.
  10405. case $host_os in
  10406. aix3*)
  10407. test yes = "$enable_shared" && enable_static=no
  10408. if test -n "$RANLIB"; then
  10409. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10410. postinstall_cmds='$RANLIB $lib'
  10411. fi
  10412. ;;
  10413. aix[4-9]*)
  10414. if test ia64 != "$host_cpu"; then
  10415. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10416. yes,aix,yes) ;; # shared object as lib.so file only
  10417. yes,svr4,*) ;; # shared object as lib.so archive member only
  10418. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10419. esac
  10420. fi
  10421. ;;
  10422. esac
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10424. $as_echo "$enable_shared" >&6; }
  10425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10426. $as_echo_n "checking whether to build static libraries... " >&6; }
  10427. # Make sure either enable_shared or enable_static is yes.
  10428. test yes = "$enable_shared" || enable_static=yes
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10430. $as_echo "$enable_static" >&6; }
  10431. fi
  10432. ac_ext=c
  10433. ac_cpp='$CPP $CPPFLAGS'
  10434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10437. CC=$lt_save_CC
  10438. ac_config_commands="$ac_config_commands libtool"
  10439. # Only expand once:
  10440. if test -n "$ac_tool_prefix"; then
  10441. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  10442. set dummy ${ac_tool_prefix}windres; ac_word=$2
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10444. $as_echo_n "checking for $ac_word... " >&6; }
  10445. if ${ac_cv_prog_RC+:} false; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. if test -n "$RC"; then
  10449. ac_cv_prog_RC="$RC" # Let the user override the test.
  10450. else
  10451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10452. for as_dir in $PATH
  10453. do
  10454. IFS=$as_save_IFS
  10455. test -z "$as_dir" && as_dir=.
  10456. for ac_exec_ext in '' $ac_executable_extensions; do
  10457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10458. ac_cv_prog_RC="${ac_tool_prefix}windres"
  10459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10460. break 2
  10461. fi
  10462. done
  10463. done
  10464. IFS=$as_save_IFS
  10465. fi
  10466. fi
  10467. RC=$ac_cv_prog_RC
  10468. if test -n "$RC"; then
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  10470. $as_echo "$RC" >&6; }
  10471. else
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10473. $as_echo "no" >&6; }
  10474. fi
  10475. fi
  10476. if test -z "$ac_cv_prog_RC"; then
  10477. ac_ct_RC=$RC
  10478. # Extract the first word of "windres", so it can be a program name with args.
  10479. set dummy windres; ac_word=$2
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10481. $as_echo_n "checking for $ac_word... " >&6; }
  10482. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  10483. $as_echo_n "(cached) " >&6
  10484. else
  10485. if test -n "$ac_ct_RC"; then
  10486. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  10487. else
  10488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10489. for as_dir in $PATH
  10490. do
  10491. IFS=$as_save_IFS
  10492. test -z "$as_dir" && as_dir=.
  10493. for ac_exec_ext in '' $ac_executable_extensions; do
  10494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10495. ac_cv_prog_ac_ct_RC="windres"
  10496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10497. break 2
  10498. fi
  10499. done
  10500. done
  10501. IFS=$as_save_IFS
  10502. fi
  10503. fi
  10504. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  10505. if test -n "$ac_ct_RC"; then
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  10507. $as_echo "$ac_ct_RC" >&6; }
  10508. else
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10510. $as_echo "no" >&6; }
  10511. fi
  10512. if test "x$ac_ct_RC" = x; then
  10513. RC=""
  10514. else
  10515. case $cross_compiling:$ac_tool_warned in
  10516. yes:)
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10519. ac_tool_warned=yes ;;
  10520. esac
  10521. RC=$ac_ct_RC
  10522. fi
  10523. else
  10524. RC="$ac_cv_prog_RC"
  10525. fi
  10526. # Source file extension for RC test sources.
  10527. ac_ext=rc
  10528. # Object file extension for compiled RC test sources.
  10529. objext=o
  10530. objext_RC=$objext
  10531. # Code to be used in simple compile tests
  10532. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10533. # Code to be used in simple link tests
  10534. lt_simple_link_test_code=$lt_simple_compile_test_code
  10535. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10536. # If no C compiler was specified, use CC.
  10537. LTCC=${LTCC-"$CC"}
  10538. # If no C compiler flags were specified, use CFLAGS.
  10539. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10540. # Allow CC to be a program name with arguments.
  10541. compiler=$CC
  10542. # save warnings/boilerplate of simple test code
  10543. ac_outfile=conftest.$ac_objext
  10544. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10545. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10546. _lt_compiler_boilerplate=`cat conftest.err`
  10547. $RM conftest*
  10548. ac_outfile=conftest.$ac_objext
  10549. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10550. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10551. _lt_linker_boilerplate=`cat conftest.err`
  10552. $RM -r conftest*
  10553. # Allow CC to be a program name with arguments.
  10554. lt_save_CC=$CC
  10555. lt_save_CFLAGS=$CFLAGS
  10556. lt_save_GCC=$GCC
  10557. GCC=
  10558. CC=${RC-"windres"}
  10559. CFLAGS=
  10560. compiler=$CC
  10561. compiler_RC=$CC
  10562. func_cc_basename $compiler
  10563. cc_basename=$func_cc_basename_result
  10564. lt_cv_prog_compiler_c_o_RC=yes
  10565. if test -n "$compiler"; then
  10566. :
  10567. fi
  10568. GCC=$lt_save_GCC
  10569. ac_ext=c
  10570. ac_cpp='$CPP $CPPFLAGS'
  10571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10574. CC=$lt_save_CC
  10575. CFLAGS=$lt_save_CFLAGS
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10577. $as_echo_n "checking for inline... " >&6; }
  10578. if ${ac_cv_c_inline+:} false; then :
  10579. $as_echo_n "(cached) " >&6
  10580. else
  10581. ac_cv_c_inline=no
  10582. for ac_kw in inline __inline__ __inline; do
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #ifndef __cplusplus
  10586. typedef int foo_t;
  10587. static $ac_kw foo_t static_foo () {return 0; }
  10588. $ac_kw foo_t foo () {return 0; }
  10589. #endif
  10590. _ACEOF
  10591. if ac_fn_c_try_compile "$LINENO"; then :
  10592. ac_cv_c_inline=$ac_kw
  10593. fi
  10594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10595. test "$ac_cv_c_inline" != no && break
  10596. done
  10597. fi
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10599. $as_echo "$ac_cv_c_inline" >&6; }
  10600. case $ac_cv_c_inline in
  10601. inline | yes) ;;
  10602. *)
  10603. case $ac_cv_c_inline in
  10604. no) ac_val=;;
  10605. *) ac_val=$ac_cv_c_inline;;
  10606. esac
  10607. cat >>confdefs.h <<_ACEOF
  10608. #ifndef __cplusplus
  10609. #define inline $ac_val
  10610. #endif
  10611. _ACEOF
  10612. ;;
  10613. esac
  10614. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  10615. LTLDFLAGS="${LTLDFLAGS} -no-undefined"
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
  10617. $as_echo_n "checking operating system... " >&6; }
  10618. case $host in
  10619. *-linux*)
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  10621. $as_echo "Linux" >&6; }
  10622. backend="linux"
  10623. ;;
  10624. *-darwin*)
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin/Mac OS X" >&5
  10626. $as_echo "Darwin/Mac OS X" >&6; }
  10627. backend="darwin"
  10628. ;;
  10629. *-openbsd*)
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  10631. $as_echo "OpenBSD" >&6; }
  10632. backend="openbsd"
  10633. ;;
  10634. *-netbsd*)
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD (using OpenBSD backend)" >&5
  10636. $as_echo "NetBSD (using OpenBSD backend)" >&6; }
  10637. backend="openbsd"
  10638. ;;
  10639. *-mingw*)
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
  10641. $as_echo "Windows" >&6; }
  10642. backend="windows"
  10643. ;;
  10644. *-cygwin*)
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin (using Windows backend)" >&5
  10646. $as_echo "Cygwin (using Windows backend)" >&6; }
  10647. backend="windows"
  10648. threads="posix"
  10649. ;;
  10650. *)
  10651. as_fn_error $? "unsupported operating system" "$LINENO" 5
  10652. esac
  10653. case $backend in
  10654. linux)
  10655. $as_echo "#define OS_LINUX 1" >>confdefs.h
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  10657. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  10658. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  10659. $as_echo_n "(cached) " >&6
  10660. else
  10661. ac_check_lib_save_LIBS=$LIBS
  10662. LIBS="-lrt $LIBS"
  10663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10664. /* end confdefs.h. */
  10665. /* Override any GCC internal prototype to avoid an error.
  10666. Use char because int might match the return type of a GCC
  10667. builtin and then its argument prototype would still apply. */
  10668. #ifdef __cplusplus
  10669. extern "C"
  10670. #endif
  10671. char clock_gettime ();
  10672. int
  10673. main ()
  10674. {
  10675. return clock_gettime ();
  10676. ;
  10677. return 0;
  10678. }
  10679. _ACEOF
  10680. if ac_fn_c_try_link "$LINENO"; then :
  10681. ac_cv_lib_rt_clock_gettime=yes
  10682. else
  10683. ac_cv_lib_rt_clock_gettime=no
  10684. fi
  10685. rm -f core conftest.err conftest.$ac_objext \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. LIBS=$ac_check_lib_save_LIBS
  10688. fi
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  10690. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  10691. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  10692. -pthread
  10693. fi
  10694. # Check whether --enable-udev was given.
  10695. if test "${enable_udev+set}" = set; then :
  10696. enableval=$enable_udev;
  10697. else
  10698. enable_udev="yes"
  10699. fi
  10700. if test "x$enable_udev" = "xyes" ; then
  10701. # system has udev. use it or fail!
  10702. for ac_header in libudev.h
  10703. do :
  10704. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  10705. if test "x$ac_cv_header_libudev_h" = xyes; then :
  10706. cat >>confdefs.h <<_ACEOF
  10707. #define HAVE_LIBUDEV_H 1
  10708. _ACEOF
  10709. else
  10710. as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
  10711. fi
  10712. done
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
  10714. $as_echo_n "checking for udev_new in -ludev... " >&6; }
  10715. if ${ac_cv_lib_udev_udev_new+:} false; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. ac_check_lib_save_LIBS=$LIBS
  10719. LIBS="-ludev $LIBS"
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. /* Override any GCC internal prototype to avoid an error.
  10723. Use char because int might match the return type of a GCC
  10724. builtin and then its argument prototype would still apply. */
  10725. #ifdef __cplusplus
  10726. extern "C"
  10727. #endif
  10728. char udev_new ();
  10729. int
  10730. main ()
  10731. {
  10732. return udev_new ();
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. if ac_fn_c_try_link "$LINENO"; then :
  10738. ac_cv_lib_udev_udev_new=yes
  10739. else
  10740. ac_cv_lib_udev_udev_new=no
  10741. fi
  10742. rm -f core conftest.err conftest.$ac_objext \
  10743. conftest$ac_exeext conftest.$ac_ext
  10744. LIBS=$ac_check_lib_save_LIBS
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
  10747. $as_echo "$ac_cv_lib_udev_udev_new" >&6; }
  10748. if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
  10749. cat >>confdefs.h <<_ACEOF
  10750. #define HAVE_LIBUDEV 1
  10751. _ACEOF
  10752. LIBS="-ludev $LIBS"
  10753. else
  10754. as_fn_error $? "\"udev support requested but libudev not installed\"" "$LINENO" 5
  10755. fi
  10756. $as_echo "#define USE_UDEV 1" >>confdefs.h
  10757. else
  10758. for ac_header in linux/netlink.h linux/filter.h
  10759. do :
  10760. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10761. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10762. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10763. cat >>confdefs.h <<_ACEOF
  10764. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10765. _ACEOF
  10766. else
  10767. as_fn_error $? "\"Linux netlink headers not found\"" "$LINENO" 5
  10768. fi
  10769. done
  10770. fi
  10771. threads="posix"
  10772. THREAD_CFLAGS="-pthread"
  10773. LIBS="${LIBS} -pthread"
  10774. for ac_header in poll.h
  10775. do :
  10776. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10777. if test "x$ac_cv_header_poll_h" = xyes; then :
  10778. cat >>confdefs.h <<_ACEOF
  10779. #define HAVE_POLL_H 1
  10780. _ACEOF
  10781. fi
  10782. done
  10783. $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10784. ;;
  10785. darwin)
  10786. $as_echo "#define OS_DARWIN 1" >>confdefs.h
  10787. threads="posix"
  10788. LIBS="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
  10789. LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
  10790. for ac_header in poll.h
  10791. do :
  10792. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10793. if test "x$ac_cv_header_poll_h" = xyes; then :
  10794. cat >>confdefs.h <<_ACEOF
  10795. #define HAVE_POLL_H 1
  10796. _ACEOF
  10797. fi
  10798. done
  10799. ac_fn_c_check_type "$LINENO" "nfds_t" "ac_cv_type_nfds_t" "#include <poll.h>
  10800. "
  10801. if test "x$ac_cv_type_nfds_t" = xyes; then :
  10802. $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10803. else
  10804. $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
  10805. fi
  10806. ;;
  10807. openbsd)
  10808. $as_echo "#define OS_OPENBSD 1" >>confdefs.h
  10809. threads="posix"
  10810. THREAD_CFLAGS="-pthread"
  10811. LIBS="-pthread"
  10812. for ac_header in poll.h
  10813. do :
  10814. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  10815. if test "x$ac_cv_header_poll_h" = xyes; then :
  10816. cat >>confdefs.h <<_ACEOF
  10817. #define HAVE_POLL_H 1
  10818. _ACEOF
  10819. fi
  10820. done
  10821. $as_echo "#define POLL_NFDS_TYPE nfds_t" >>confdefs.h
  10822. ;;
  10823. windows)
  10824. $as_echo "#define OS_WINDOWS 1" >>confdefs.h
  10825. LIBS=""
  10826. LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
  10827. $as_echo "#define POLL_NFDS_TYPE unsigned int" >>confdefs.h
  10828. ;;
  10829. esac
  10830. if test "x$backend" = xlinux; then
  10831. OS_LINUX_TRUE=
  10832. OS_LINUX_FALSE='#'
  10833. else
  10834. OS_LINUX_TRUE='#'
  10835. OS_LINUX_FALSE=
  10836. fi
  10837. if test "x$backend" = xdarwin; then
  10838. OS_DARWIN_TRUE=
  10839. OS_DARWIN_FALSE='#'
  10840. else
  10841. OS_DARWIN_TRUE='#'
  10842. OS_DARWIN_FALSE=
  10843. fi
  10844. if test "x$backend" = xopenbsd; then
  10845. OS_OPENBSD_TRUE=
  10846. OS_OPENBSD_FALSE='#'
  10847. else
  10848. OS_OPENBSD_TRUE='#'
  10849. OS_OPENBSD_FALSE=
  10850. fi
  10851. if test "x$backend" = xwindows; then
  10852. OS_WINDOWS_TRUE=
  10853. OS_WINDOWS_FALSE='#'
  10854. else
  10855. OS_WINDOWS_TRUE='#'
  10856. OS_WINDOWS_FALSE=
  10857. fi
  10858. if test "x$threads" = xposix; then
  10859. THREADS_POSIX_TRUE=
  10860. THREADS_POSIX_FALSE='#'
  10861. else
  10862. THREADS_POSIX_TRUE='#'
  10863. THREADS_POSIX_FALSE=
  10864. fi
  10865. if test "x$enable_udev" = xyes; then
  10866. USE_UDEV_TRUE=
  10867. USE_UDEV_FALSE='#'
  10868. else
  10869. USE_UDEV_TRUE='#'
  10870. USE_UDEV_FALSE=
  10871. fi
  10872. if test "$threads" = posix; then
  10873. $as_echo "#define THREADS_POSIX 1" >>confdefs.h
  10874. fi
  10875. # timerfd
  10876. ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
  10877. if test "x$ac_cv_header_sys_timerfd_h" = xyes; then :
  10878. timerfd_h=1
  10879. else
  10880. timerfd_h=0
  10881. fi
  10882. # Check whether --enable-timerfd was given.
  10883. if test "${enable_timerfd+set}" = set; then :
  10884. enableval=$enable_timerfd; use_timerfd=$enableval
  10885. else
  10886. use_timerfd='auto'
  10887. fi
  10888. if test "x$use_timerfd" = "xyes" -a "x$timerfd_h" = "x0"; then
  10889. as_fn_error $? "timerfd header not available; glibc 2.9+ required" "$LINENO" 5
  10890. fi
  10891. ac_fn_c_check_decl "$LINENO" "TFD_NONBLOCK" "ac_cv_have_decl_TFD_NONBLOCK" "#include <sys/timerfd.h>
  10892. "
  10893. if test "x$ac_cv_have_decl_TFD_NONBLOCK" = xyes; then :
  10894. tfd_hdr_ok=yes
  10895. else
  10896. tfd_hdr_ok=no
  10897. fi
  10898. if test "x$use_timerfd" = "xyes" -a "x$tfd_hdr_ok" = "xno"; then
  10899. as_fn_error $? "timerfd header not usable; glibc 2.9+ required" "$LINENO" 5
  10900. fi
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use timerfd for timing" >&5
  10902. $as_echo_n "checking whether to use timerfd for timing... " >&6; }
  10903. if test "x$use_timerfd" = "xno"; then
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled by user)" >&5
  10905. $as_echo "no (disabled by user)" >&6; }
  10906. else
  10907. if test "x$timerfd_h" = "x1" -a "x$tfd_hdr_ok" = "xyes"; then
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10909. $as_echo "yes" >&6; }
  10910. $as_echo "#define USBI_TIMERFD_AVAILABLE 1" >>confdefs.h
  10911. else
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (header not available)" >&5
  10913. $as_echo "no (header not available)" >&6; }
  10914. fi
  10915. fi
  10916. ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  10917. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  10918. cat >>confdefs.h <<_ACEOF
  10919. #define HAVE_STRUCT_TIMESPEC 1
  10920. _ACEOF
  10921. fi
  10922. # Message logging
  10923. # Check whether --enable-log was given.
  10924. if test "${enable_log+set}" = set; then :
  10925. enableval=$enable_log; log_enabled=$enableval
  10926. else
  10927. log_enabled='yes'
  10928. fi
  10929. if test "x$log_enabled" != "xno"; then
  10930. $as_echo "#define ENABLE_LOGGING 1" >>confdefs.h
  10931. fi
  10932. # Check whether --enable-debug-log was given.
  10933. if test "${enable_debug_log+set}" = set; then :
  10934. enableval=$enable_debug_log; debug_log_enabled=$enableval
  10935. else
  10936. debug_log_enabled='no'
  10937. fi
  10938. if test "x$debug_log_enabled" != "xno"; then
  10939. $as_echo "#define ENABLE_DEBUG_LOGGING 1" >>confdefs.h
  10940. fi
  10941. # Examples build
  10942. # Check whether --enable-examples-build was given.
  10943. if test "${enable_examples_build+set}" = set; then :
  10944. enableval=$enable_examples_build; build_examples=$enableval
  10945. else
  10946. build_examples='no'
  10947. fi
  10948. if test "x$build_examples" != "xno"; then
  10949. BUILD_EXAMPLES_TRUE=
  10950. BUILD_EXAMPLES_FALSE='#'
  10951. else
  10952. BUILD_EXAMPLES_TRUE='#'
  10953. BUILD_EXAMPLES_FALSE=
  10954. fi
  10955. # check for -fvisibility=hidden compiler support (GCC >= 3.4)
  10956. saved_cflags="$CFLAGS"
  10957. # -Werror required for cygwin
  10958. CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
  10959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10960. /* end confdefs.h. */
  10961. int
  10962. main ()
  10963. {
  10964. ;
  10965. return 0;
  10966. }
  10967. _ACEOF
  10968. if ac_fn_c_try_compile "$LINENO"; then :
  10969. VISIBILITY_CFLAGS="-fvisibility=hidden"
  10970. $as_echo "#define DEFAULT_VISIBILITY __attribute__((visibility(\"default\")))" >>confdefs.h
  10971. else
  10972. VISIBILITY_CFLAGS=""
  10973. $as_echo "#define DEFAULT_VISIBILITY /**/" >>confdefs.h
  10974. fi
  10975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10976. CFLAGS="$saved_cflags"
  10977. # check for -Wno-pointer-sign compiler support (GCC >= 4)
  10978. saved_cflags="$CFLAGS"
  10979. CFLAGS="$CFLAGS -Wno-pointer-sign"
  10980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10981. /* end confdefs.h. */
  10982. int
  10983. main ()
  10984. {
  10985. ;
  10986. return 0;
  10987. }
  10988. _ACEOF
  10989. if ac_fn_c_try_compile "$LINENO"; then :
  10990. nopointersign_cflags="-Wno-pointer-sign"
  10991. else
  10992. nopointersign_cflags=""
  10993. fi
  10994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10995. CFLAGS="$saved_cflags"
  10996. # sigaction not available on MinGW
  10997. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  10998. if test "x$ac_cv_func_sigaction" = xyes; then :
  10999. have_sigaction=yes
  11000. else
  11001. have_sigaction=no
  11002. fi
  11003. if test "x$have_sigaction" = "xyes"; then
  11004. HAVE_SIGACTION_TRUE=
  11005. HAVE_SIGACTION_FALSE='#'
  11006. else
  11007. HAVE_SIGACTION_TRUE='#'
  11008. HAVE_SIGACTION_FALSE=
  11009. fi
  11010. # headers not available on all platforms but required on others
  11011. for ac_header in sys/time.h
  11012. do :
  11013. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  11014. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  11015. cat >>confdefs.h <<_ACEOF
  11016. #define HAVE_SYS_TIME_H 1
  11017. _ACEOF
  11018. fi
  11019. done
  11020. for ac_func in gettimeofday
  11021. do :
  11022. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  11023. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  11024. cat >>confdefs.h <<_ACEOF
  11025. #define HAVE_GETTIMEOFDAY 1
  11026. _ACEOF
  11027. fi
  11028. done
  11029. AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
  11030. ac_config_files="$ac_config_files libusb-1.0.pc"
  11031. ac_config_files="$ac_config_files Makefile"
  11032. ac_config_files="$ac_config_files libusb/Makefile"
  11033. cat >confcache <<\_ACEOF
  11034. # This file is a shell script that caches the results of configure
  11035. # tests run on this system so they can be shared between configure
  11036. # scripts and configure runs, see configure's option --config-cache.
  11037. # It is not useful on other systems. If it contains results you don't
  11038. # want to keep, you may remove or edit it.
  11039. #
  11040. # config.status only pays attention to the cache file if you give it
  11041. # the --recheck option to rerun configure.
  11042. #
  11043. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11044. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11045. # following values.
  11046. _ACEOF
  11047. # The following way of writing the cache mishandles newlines in values,
  11048. # but we know of no workaround that is simple, portable, and efficient.
  11049. # So, we kill variables containing newlines.
  11050. # Ultrix sh set writes to stderr and can't be redirected directly,
  11051. # and sets the high bit in the cache file unless we assign to the vars.
  11052. (
  11053. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11054. eval ac_val=\$$ac_var
  11055. case $ac_val in #(
  11056. *${as_nl}*)
  11057. case $ac_var in #(
  11058. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11059. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11060. esac
  11061. case $ac_var in #(
  11062. _ | IFS | as_nl) ;; #(
  11063. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11064. *) { eval $ac_var=; unset $ac_var;} ;;
  11065. esac ;;
  11066. esac
  11067. done
  11068. (set) 2>&1 |
  11069. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11070. *${as_nl}ac_space=\ *)
  11071. # `set' does not quote correctly, so add quotes: double-quote
  11072. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11073. sed -n \
  11074. "s/'/'\\\\''/g;
  11075. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11076. ;; #(
  11077. *)
  11078. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11079. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11080. ;;
  11081. esac |
  11082. sort
  11083. ) |
  11084. sed '
  11085. /^ac_cv_env_/b end
  11086. t clear
  11087. :clear
  11088. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11089. t end
  11090. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11091. :end' >>confcache
  11092. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11093. if test -w "$cache_file"; then
  11094. if test "x$cache_file" != "x/dev/null"; then
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11096. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11097. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11098. cat confcache >"$cache_file"
  11099. else
  11100. case $cache_file in #(
  11101. */* | ?:*)
  11102. mv -f confcache "$cache_file"$$ &&
  11103. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11104. *)
  11105. mv -f confcache "$cache_file" ;;
  11106. esac
  11107. fi
  11108. fi
  11109. else
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11111. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11112. fi
  11113. fi
  11114. rm -f confcache
  11115. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11116. # Let make expand exec_prefix.
  11117. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11118. DEFS=-DHAVE_CONFIG_H
  11119. ac_libobjs=
  11120. ac_ltlibobjs=
  11121. U=
  11122. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11123. # 1. Remove the extension, and $U if already installed.
  11124. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11125. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11126. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11127. # will be set to the directory where LIBOBJS objects are built.
  11128. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11129. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11130. done
  11131. LIBOBJS=$ac_libobjs
  11132. LTLIBOBJS=$ac_ltlibobjs
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11134. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11135. if test -n "$am_sleep_pid"; then
  11136. # Hide warnings about reused PIDs.
  11137. wait $am_sleep_pid 2>/dev/null
  11138. fi
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11140. $as_echo "done" >&6; }
  11141. if test -n "$EXEEXT"; then
  11142. am__EXEEXT_TRUE=
  11143. am__EXEEXT_FALSE='#'
  11144. else
  11145. am__EXEEXT_TRUE='#'
  11146. am__EXEEXT_FALSE=
  11147. fi
  11148. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11149. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11150. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11151. fi
  11152. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11153. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11154. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11155. fi
  11156. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11157. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11158. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11159. fi
  11160. if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
  11161. as_fn_error $? "conditional \"OS_LINUX\" was never defined.
  11162. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11163. fi
  11164. if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
  11165. as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
  11166. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11167. fi
  11168. if test -z "${OS_OPENBSD_TRUE}" && test -z "${OS_OPENBSD_FALSE}"; then
  11169. as_fn_error $? "conditional \"OS_OPENBSD\" was never defined.
  11170. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11171. fi
  11172. if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
  11173. as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
  11174. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11175. fi
  11176. if test -z "${THREADS_POSIX_TRUE}" && test -z "${THREADS_POSIX_FALSE}"; then
  11177. as_fn_error $? "conditional \"THREADS_POSIX\" was never defined.
  11178. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11179. fi
  11180. if test -z "${USE_UDEV_TRUE}" && test -z "${USE_UDEV_FALSE}"; then
  11181. as_fn_error $? "conditional \"USE_UDEV\" was never defined.
  11182. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11183. fi
  11184. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  11185. as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
  11186. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11187. fi
  11188. if test -z "${HAVE_SIGACTION_TRUE}" && test -z "${HAVE_SIGACTION_FALSE}"; then
  11189. as_fn_error $? "conditional \"HAVE_SIGACTION\" was never defined.
  11190. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11191. fi
  11192. : "${CONFIG_STATUS=./config.status}"
  11193. ac_write_fail=0
  11194. ac_clean_files_save=$ac_clean_files
  11195. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11197. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11198. as_write_fail=0
  11199. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11200. #! $SHELL
  11201. # Generated by $as_me.
  11202. # Run this file to recreate the current configuration.
  11203. # Compiler output produced by configure, useful for debugging
  11204. # configure, is in config.log if it exists.
  11205. debug=false
  11206. ac_cs_recheck=false
  11207. ac_cs_silent=false
  11208. SHELL=\${CONFIG_SHELL-$SHELL}
  11209. export SHELL
  11210. _ASEOF
  11211. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11212. ## -------------------- ##
  11213. ## M4sh Initialization. ##
  11214. ## -------------------- ##
  11215. # Be more Bourne compatible
  11216. DUALCASE=1; export DUALCASE # for MKS sh
  11217. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11218. emulate sh
  11219. NULLCMD=:
  11220. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11221. # is contrary to our usage. Disable this feature.
  11222. alias -g '${1+"$@"}'='"$@"'
  11223. setopt NO_GLOB_SUBST
  11224. else
  11225. case `(set -o) 2>/dev/null` in #(
  11226. *posix*) :
  11227. set -o posix ;; #(
  11228. *) :
  11229. ;;
  11230. esac
  11231. fi
  11232. as_nl='
  11233. '
  11234. export as_nl
  11235. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11236. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11237. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11238. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11239. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11240. # but without wasting forks for bash or zsh.
  11241. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11242. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11243. as_echo='print -r --'
  11244. as_echo_n='print -rn --'
  11245. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11246. as_echo='printf %s\n'
  11247. as_echo_n='printf %s'
  11248. else
  11249. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11250. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11251. as_echo_n='/usr/ucb/echo -n'
  11252. else
  11253. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11254. as_echo_n_body='eval
  11255. arg=$1;
  11256. case $arg in #(
  11257. *"$as_nl"*)
  11258. expr "X$arg" : "X\\(.*\\)$as_nl";
  11259. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11260. esac;
  11261. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11262. '
  11263. export as_echo_n_body
  11264. as_echo_n='sh -c $as_echo_n_body as_echo'
  11265. fi
  11266. export as_echo_body
  11267. as_echo='sh -c $as_echo_body as_echo'
  11268. fi
  11269. # The user is always right.
  11270. if test "${PATH_SEPARATOR+set}" != set; then
  11271. PATH_SEPARATOR=:
  11272. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11273. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11274. PATH_SEPARATOR=';'
  11275. }
  11276. fi
  11277. # IFS
  11278. # We need space, tab and new line, in precisely that order. Quoting is
  11279. # there to prevent editors from complaining about space-tab.
  11280. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11281. # splitting by setting IFS to empty value.)
  11282. IFS=" "" $as_nl"
  11283. # Find who we are. Look in the path if we contain no directory separator.
  11284. as_myself=
  11285. case $0 in #((
  11286. *[\\/]* ) as_myself=$0 ;;
  11287. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11288. for as_dir in $PATH
  11289. do
  11290. IFS=$as_save_IFS
  11291. test -z "$as_dir" && as_dir=.
  11292. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11293. done
  11294. IFS=$as_save_IFS
  11295. ;;
  11296. esac
  11297. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11298. # in which case we are not to be found in the path.
  11299. if test "x$as_myself" = x; then
  11300. as_myself=$0
  11301. fi
  11302. if test ! -f "$as_myself"; then
  11303. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11304. exit 1
  11305. fi
  11306. # Unset variables that we do not need and which cause bugs (e.g. in
  11307. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11308. # suppresses any "Segmentation fault" message there. '((' could
  11309. # trigger a bug in pdksh 5.2.14.
  11310. for as_var in BASH_ENV ENV MAIL MAILPATH
  11311. do eval test x\${$as_var+set} = xset \
  11312. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11313. done
  11314. PS1='$ '
  11315. PS2='> '
  11316. PS4='+ '
  11317. # NLS nuisances.
  11318. LC_ALL=C
  11319. export LC_ALL
  11320. LANGUAGE=C
  11321. export LANGUAGE
  11322. # CDPATH.
  11323. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11324. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11325. # ----------------------------------------
  11326. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11327. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11328. # script with STATUS, using 1 if that was 0.
  11329. as_fn_error ()
  11330. {
  11331. as_status=$1; test $as_status -eq 0 && as_status=1
  11332. if test "$4"; then
  11333. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11334. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11335. fi
  11336. $as_echo "$as_me: error: $2" >&2
  11337. as_fn_exit $as_status
  11338. } # as_fn_error
  11339. # as_fn_set_status STATUS
  11340. # -----------------------
  11341. # Set $? to STATUS, without forking.
  11342. as_fn_set_status ()
  11343. {
  11344. return $1
  11345. } # as_fn_set_status
  11346. # as_fn_exit STATUS
  11347. # -----------------
  11348. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11349. as_fn_exit ()
  11350. {
  11351. set +e
  11352. as_fn_set_status $1
  11353. exit $1
  11354. } # as_fn_exit
  11355. # as_fn_unset VAR
  11356. # ---------------
  11357. # Portably unset VAR.
  11358. as_fn_unset ()
  11359. {
  11360. { eval $1=; unset $1;}
  11361. }
  11362. as_unset=as_fn_unset
  11363. # as_fn_append VAR VALUE
  11364. # ----------------------
  11365. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11366. # advantage of any shell optimizations that allow amortized linear growth over
  11367. # repeated appends, instead of the typical quadratic growth present in naive
  11368. # implementations.
  11369. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11370. eval 'as_fn_append ()
  11371. {
  11372. eval $1+=\$2
  11373. }'
  11374. else
  11375. as_fn_append ()
  11376. {
  11377. eval $1=\$$1\$2
  11378. }
  11379. fi # as_fn_append
  11380. # as_fn_arith ARG...
  11381. # ------------------
  11382. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11383. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11384. # must be portable across $(()) and expr.
  11385. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11386. eval 'as_fn_arith ()
  11387. {
  11388. as_val=$(( $* ))
  11389. }'
  11390. else
  11391. as_fn_arith ()
  11392. {
  11393. as_val=`expr "$@" || test $? -eq 1`
  11394. }
  11395. fi # as_fn_arith
  11396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11398. as_expr=expr
  11399. else
  11400. as_expr=false
  11401. fi
  11402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11403. as_basename=basename
  11404. else
  11405. as_basename=false
  11406. fi
  11407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11408. as_dirname=dirname
  11409. else
  11410. as_dirname=false
  11411. fi
  11412. as_me=`$as_basename -- "$0" ||
  11413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11414. X"$0" : 'X\(//\)$' \| \
  11415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11416. $as_echo X/"$0" |
  11417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11418. s//\1/
  11419. q
  11420. }
  11421. /^X\/\(\/\/\)$/{
  11422. s//\1/
  11423. q
  11424. }
  11425. /^X\/\(\/\).*/{
  11426. s//\1/
  11427. q
  11428. }
  11429. s/.*/./; q'`
  11430. # Avoid depending upon Character Ranges.
  11431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11434. as_cr_digits='0123456789'
  11435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11436. ECHO_C= ECHO_N= ECHO_T=
  11437. case `echo -n x` in #(((((
  11438. -n*)
  11439. case `echo 'xy\c'` in
  11440. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11441. xy) ECHO_C='\c';;
  11442. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11443. ECHO_T=' ';;
  11444. esac;;
  11445. *)
  11446. ECHO_N='-n';;
  11447. esac
  11448. rm -f conf$$ conf$$.exe conf$$.file
  11449. if test -d conf$$.dir; then
  11450. rm -f conf$$.dir/conf$$.file
  11451. else
  11452. rm -f conf$$.dir
  11453. mkdir conf$$.dir 2>/dev/null
  11454. fi
  11455. if (echo >conf$$.file) 2>/dev/null; then
  11456. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11457. as_ln_s='ln -s'
  11458. # ... but there are two gotchas:
  11459. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11460. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11461. # In both cases, we have to default to `cp -pR'.
  11462. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11463. as_ln_s='cp -pR'
  11464. elif ln conf$$.file conf$$ 2>/dev/null; then
  11465. as_ln_s=ln
  11466. else
  11467. as_ln_s='cp -pR'
  11468. fi
  11469. else
  11470. as_ln_s='cp -pR'
  11471. fi
  11472. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11473. rmdir conf$$.dir 2>/dev/null
  11474. # as_fn_mkdir_p
  11475. # -------------
  11476. # Create "$as_dir" as a directory, including parents if necessary.
  11477. as_fn_mkdir_p ()
  11478. {
  11479. case $as_dir in #(
  11480. -*) as_dir=./$as_dir;;
  11481. esac
  11482. test -d "$as_dir" || eval $as_mkdir_p || {
  11483. as_dirs=
  11484. while :; do
  11485. case $as_dir in #(
  11486. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11487. *) as_qdir=$as_dir;;
  11488. esac
  11489. as_dirs="'$as_qdir' $as_dirs"
  11490. as_dir=`$as_dirname -- "$as_dir" ||
  11491. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11492. X"$as_dir" : 'X\(//\)[^/]' \| \
  11493. X"$as_dir" : 'X\(//\)$' \| \
  11494. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11495. $as_echo X"$as_dir" |
  11496. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11497. s//\1/
  11498. q
  11499. }
  11500. /^X\(\/\/\)[^/].*/{
  11501. s//\1/
  11502. q
  11503. }
  11504. /^X\(\/\/\)$/{
  11505. s//\1/
  11506. q
  11507. }
  11508. /^X\(\/\).*/{
  11509. s//\1/
  11510. q
  11511. }
  11512. s/.*/./; q'`
  11513. test -d "$as_dir" && break
  11514. done
  11515. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11516. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11517. } # as_fn_mkdir_p
  11518. if mkdir -p . 2>/dev/null; then
  11519. as_mkdir_p='mkdir -p "$as_dir"'
  11520. else
  11521. test -d ./-p && rmdir ./-p
  11522. as_mkdir_p=false
  11523. fi
  11524. # as_fn_executable_p FILE
  11525. # -----------------------
  11526. # Test if FILE is an executable regular file.
  11527. as_fn_executable_p ()
  11528. {
  11529. test -f "$1" && test -x "$1"
  11530. } # as_fn_executable_p
  11531. as_test_x='test -x'
  11532. as_executable_p=as_fn_executable_p
  11533. # Sed expression to map a string onto a valid CPP name.
  11534. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11535. # Sed expression to map a string onto a valid variable name.
  11536. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11537. exec 6>&1
  11538. ## ----------------------------------- ##
  11539. ## Main body of $CONFIG_STATUS script. ##
  11540. ## ----------------------------------- ##
  11541. _ASEOF
  11542. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11543. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11544. # Save the log message, to keep $0 and so on meaningful, and to
  11545. # report actual input values of CONFIG_FILES etc. instead of their
  11546. # values after options handling.
  11547. ac_log="
  11548. This file was extended by libusb $as_me 1.0.16-rc10, which was
  11549. generated by GNU Autoconf 2.69. Invocation command line was
  11550. CONFIG_FILES = $CONFIG_FILES
  11551. CONFIG_HEADERS = $CONFIG_HEADERS
  11552. CONFIG_LINKS = $CONFIG_LINKS
  11553. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11554. $ $0 $@
  11555. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11556. "
  11557. _ACEOF
  11558. case $ac_config_files in *"
  11559. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11560. esac
  11561. case $ac_config_headers in *"
  11562. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11563. esac
  11564. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11565. # Files that config.status was made for.
  11566. config_files="$ac_config_files"
  11567. config_headers="$ac_config_headers"
  11568. config_commands="$ac_config_commands"
  11569. _ACEOF
  11570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11571. ac_cs_usage="\
  11572. \`$as_me' instantiates files and other configuration actions
  11573. from templates according to the current configuration. Unless the files
  11574. and actions are specified as TAGs, all are instantiated by default.
  11575. Usage: $0 [OPTION]... [TAG]...
  11576. -h, --help print this help, then exit
  11577. -V, --version print version number and configuration settings, then exit
  11578. --config print configuration, then exit
  11579. -q, --quiet, --silent
  11580. do not print progress messages
  11581. -d, --debug don't remove temporary files
  11582. --recheck update $as_me by reconfiguring in the same conditions
  11583. --file=FILE[:TEMPLATE]
  11584. instantiate the configuration file FILE
  11585. --header=FILE[:TEMPLATE]
  11586. instantiate the configuration header FILE
  11587. Configuration files:
  11588. $config_files
  11589. Configuration headers:
  11590. $config_headers
  11591. Configuration commands:
  11592. $config_commands
  11593. Report bugs to <libusb-devel@lists.sourceforge.net>.
  11594. libusb home page: <http://www.libusb.org/>."
  11595. _ACEOF
  11596. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11597. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11598. ac_cs_version="\\
  11599. libusb config.status 1.0.16-rc10
  11600. configured by $0, generated by GNU Autoconf 2.69,
  11601. with options \\"\$ac_cs_config\\"
  11602. Copyright (C) 2012 Free Software Foundation, Inc.
  11603. This config.status script is free software; the Free Software Foundation
  11604. gives unlimited permission to copy, distribute and modify it."
  11605. ac_pwd='$ac_pwd'
  11606. srcdir='$srcdir'
  11607. INSTALL='$INSTALL'
  11608. MKDIR_P='$MKDIR_P'
  11609. AWK='$AWK'
  11610. test -n "\$AWK" || AWK=awk
  11611. _ACEOF
  11612. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11613. # The default lists apply if the user does not specify any file.
  11614. ac_need_defaults=:
  11615. while test $# != 0
  11616. do
  11617. case $1 in
  11618. --*=?*)
  11619. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11620. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11621. ac_shift=:
  11622. ;;
  11623. --*=)
  11624. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11625. ac_optarg=
  11626. ac_shift=:
  11627. ;;
  11628. *)
  11629. ac_option=$1
  11630. ac_optarg=$2
  11631. ac_shift=shift
  11632. ;;
  11633. esac
  11634. case $ac_option in
  11635. # Handling of the options.
  11636. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11637. ac_cs_recheck=: ;;
  11638. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11639. $as_echo "$ac_cs_version"; exit ;;
  11640. --config | --confi | --conf | --con | --co | --c )
  11641. $as_echo "$ac_cs_config"; exit ;;
  11642. --debug | --debu | --deb | --de | --d | -d )
  11643. debug=: ;;
  11644. --file | --fil | --fi | --f )
  11645. $ac_shift
  11646. case $ac_optarg in
  11647. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11648. '') as_fn_error $? "missing file argument" ;;
  11649. esac
  11650. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11651. ac_need_defaults=false;;
  11652. --header | --heade | --head | --hea )
  11653. $ac_shift
  11654. case $ac_optarg in
  11655. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11656. esac
  11657. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11658. ac_need_defaults=false;;
  11659. --he | --h)
  11660. # Conflict between --help and --header
  11661. as_fn_error $? "ambiguous option: \`$1'
  11662. Try \`$0 --help' for more information.";;
  11663. --help | --hel | -h )
  11664. $as_echo "$ac_cs_usage"; exit ;;
  11665. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11666. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11667. ac_cs_silent=: ;;
  11668. # This is an error.
  11669. -*) as_fn_error $? "unrecognized option: \`$1'
  11670. Try \`$0 --help' for more information." ;;
  11671. *) as_fn_append ac_config_targets " $1"
  11672. ac_need_defaults=false ;;
  11673. esac
  11674. shift
  11675. done
  11676. ac_configure_extra_args=
  11677. if $ac_cs_silent; then
  11678. exec 6>/dev/null
  11679. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11680. fi
  11681. _ACEOF
  11682. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11683. if \$ac_cs_recheck; then
  11684. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11685. shift
  11686. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11687. CONFIG_SHELL='$SHELL'
  11688. export CONFIG_SHELL
  11689. exec "\$@"
  11690. fi
  11691. _ACEOF
  11692. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11693. exec 5>>config.log
  11694. {
  11695. echo
  11696. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11697. ## Running $as_me. ##
  11698. _ASBOX
  11699. $as_echo "$ac_log"
  11700. } >&5
  11701. _ACEOF
  11702. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11703. #
  11704. # INIT-COMMANDS
  11705. #
  11706. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11707. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11708. # if CDPATH is set.
  11709. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11710. sed_quote_subst='$sed_quote_subst'
  11711. double_quote_subst='$double_quote_subst'
  11712. delay_variable_subst='$delay_variable_subst'
  11713. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11714. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11715. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11716. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11717. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11718. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11719. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11720. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11721. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11722. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11723. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11724. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11725. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11726. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11727. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11728. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11729. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11730. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11731. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11732. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11733. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11734. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11735. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11736. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11737. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11738. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11739. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11740. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11741. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11742. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11743. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11744. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11745. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11746. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11747. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11748. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11749. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11750. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11751. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11752. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11753. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11754. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11755. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11756. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11757. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11758. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11759. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11760. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11761. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11762. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11763. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11764. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11765. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11766. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11767. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11768. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11769. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11770. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11771. 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"`'
  11772. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11773. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11774. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11775. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11776. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11777. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11778. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11779. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11780. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11781. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11782. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11783. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11784. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11785. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11786. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11787. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11788. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11789. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11790. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11791. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11792. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11793. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11794. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11795. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11796. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11797. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11798. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11799. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11800. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11801. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11802. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11803. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11804. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11805. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11806. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11807. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11808. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11809. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11810. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11811. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11812. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11813. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11814. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11815. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11816. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11817. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11818. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11819. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11820. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11821. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11822. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11823. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11824. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11825. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11826. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11827. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11828. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11829. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11830. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11831. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11832. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11833. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11834. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11835. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11836. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11837. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11838. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11839. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11840. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11841. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11842. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11843. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11844. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11845. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11846. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11847. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11848. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  11849. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  11850. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11851. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11852. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  11853. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  11854. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  11855. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  11856. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  11857. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  11858. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  11859. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  11860. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  11861. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11862. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11863. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  11864. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11865. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11866. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11867. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11868. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11869. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11870. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  11871. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  11872. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  11873. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  11874. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  11875. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  11876. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  11877. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  11878. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  11879. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  11880. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  11881. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  11882. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  11883. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11884. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  11885. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  11886. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11887. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  11888. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  11889. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  11890. LTCC='$LTCC'
  11891. LTCFLAGS='$LTCFLAGS'
  11892. compiler='$compiler_DEFAULT'
  11893. # A function that is used when there is no print builtin or printf.
  11894. func_fallback_echo ()
  11895. {
  11896. eval 'cat <<_LTECHO_EOF
  11897. \$1
  11898. _LTECHO_EOF'
  11899. }
  11900. # Quote evaled strings.
  11901. for var in SHELL \
  11902. ECHO \
  11903. PATH_SEPARATOR \
  11904. SED \
  11905. GREP \
  11906. EGREP \
  11907. FGREP \
  11908. LD \
  11909. NM \
  11910. LN_S \
  11911. lt_SP2NL \
  11912. lt_NL2SP \
  11913. reload_flag \
  11914. OBJDUMP \
  11915. deplibs_check_method \
  11916. file_magic_cmd \
  11917. file_magic_glob \
  11918. want_nocaseglob \
  11919. DLLTOOL \
  11920. sharedlib_from_linklib_cmd \
  11921. AR \
  11922. AR_FLAGS \
  11923. archiver_list_spec \
  11924. STRIP \
  11925. RANLIB \
  11926. CC \
  11927. CFLAGS \
  11928. compiler \
  11929. lt_cv_sys_global_symbol_pipe \
  11930. lt_cv_sys_global_symbol_to_cdecl \
  11931. lt_cv_sys_global_symbol_to_import \
  11932. lt_cv_sys_global_symbol_to_c_name_address \
  11933. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11934. lt_cv_nm_interface \
  11935. nm_file_list_spec \
  11936. lt_cv_truncate_bin \
  11937. lt_prog_compiler_no_builtin_flag \
  11938. lt_prog_compiler_pic \
  11939. lt_prog_compiler_wl \
  11940. lt_prog_compiler_static \
  11941. lt_cv_prog_compiler_c_o \
  11942. need_locks \
  11943. MANIFEST_TOOL \
  11944. DSYMUTIL \
  11945. NMEDIT \
  11946. LIPO \
  11947. OTOOL \
  11948. OTOOL64 \
  11949. shrext_cmds \
  11950. export_dynamic_flag_spec \
  11951. whole_archive_flag_spec \
  11952. compiler_needs_object \
  11953. with_gnu_ld \
  11954. allow_undefined_flag \
  11955. no_undefined_flag \
  11956. hardcode_libdir_flag_spec \
  11957. hardcode_libdir_separator \
  11958. exclude_expsyms \
  11959. include_expsyms \
  11960. file_list_spec \
  11961. variables_saved_for_relink \
  11962. libname_spec \
  11963. library_names_spec \
  11964. soname_spec \
  11965. install_override_mode \
  11966. finish_eval \
  11967. old_striplib \
  11968. striplib \
  11969. LD_RC \
  11970. reload_flag_RC \
  11971. compiler_RC \
  11972. lt_prog_compiler_no_builtin_flag_RC \
  11973. lt_prog_compiler_pic_RC \
  11974. lt_prog_compiler_wl_RC \
  11975. lt_prog_compiler_static_RC \
  11976. lt_cv_prog_compiler_c_o_RC \
  11977. export_dynamic_flag_spec_RC \
  11978. whole_archive_flag_spec_RC \
  11979. compiler_needs_object_RC \
  11980. with_gnu_ld_RC \
  11981. allow_undefined_flag_RC \
  11982. no_undefined_flag_RC \
  11983. hardcode_libdir_flag_spec_RC \
  11984. hardcode_libdir_separator_RC \
  11985. exclude_expsyms_RC \
  11986. include_expsyms_RC \
  11987. file_list_spec_RC; do
  11988. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11989. *[\\\\\\\`\\"\\\$]*)
  11990. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11991. ;;
  11992. *)
  11993. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11994. ;;
  11995. esac
  11996. done
  11997. # Double-quote double-evaled strings.
  11998. for var in reload_cmds \
  11999. old_postinstall_cmds \
  12000. old_postuninstall_cmds \
  12001. old_archive_cmds \
  12002. extract_expsyms_cmds \
  12003. old_archive_from_new_cmds \
  12004. old_archive_from_expsyms_cmds \
  12005. archive_cmds \
  12006. archive_expsym_cmds \
  12007. module_cmds \
  12008. module_expsym_cmds \
  12009. export_symbols_cmds \
  12010. prelink_cmds \
  12011. postlink_cmds \
  12012. postinstall_cmds \
  12013. postuninstall_cmds \
  12014. finish_cmds \
  12015. sys_lib_search_path_spec \
  12016. configure_time_dlsearch_path \
  12017. configure_time_lt_sys_library_path \
  12018. reload_cmds_RC \
  12019. old_archive_cmds_RC \
  12020. old_archive_from_new_cmds_RC \
  12021. old_archive_from_expsyms_cmds_RC \
  12022. archive_cmds_RC \
  12023. archive_expsym_cmds_RC \
  12024. module_cmds_RC \
  12025. module_expsym_cmds_RC \
  12026. export_symbols_cmds_RC \
  12027. prelink_cmds_RC \
  12028. postlink_cmds_RC; do
  12029. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12030. *[\\\\\\\`\\"\\\$]*)
  12031. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12032. ;;
  12033. *)
  12034. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12035. ;;
  12036. esac
  12037. done
  12038. ac_aux_dir='$ac_aux_dir'
  12039. # See if we are running on zsh, and set the options that allow our
  12040. # commands through without removal of \ escapes INIT.
  12041. if test -n "\${ZSH_VERSION+set}"; then
  12042. setopt NO_GLOB_SUBST
  12043. fi
  12044. PACKAGE='$PACKAGE'
  12045. VERSION='$VERSION'
  12046. RM='$RM'
  12047. ofile='$ofile'
  12048. _ACEOF
  12049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12050. # Handling of arguments.
  12051. for ac_config_target in $ac_config_targets
  12052. do
  12053. case $ac_config_target in
  12054. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12055. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12056. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12057. "libusb-1.0.pc") CONFIG_FILES="$CONFIG_FILES libusb-1.0.pc" ;;
  12058. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12059. "libusb/Makefile") CONFIG_FILES="$CONFIG_FILES libusb/Makefile" ;;
  12060. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12061. esac
  12062. done
  12063. # If the user did not use the arguments to specify the items to instantiate,
  12064. # then the envvar interface is used. Set only those that are not.
  12065. # We use the long form for the default assignment because of an extremely
  12066. # bizarre bug on SunOS 4.1.3.
  12067. if $ac_need_defaults; then
  12068. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12069. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12070. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12071. fi
  12072. # Have a temporary directory for convenience. Make it in the build tree
  12073. # simply because there is no reason against having it here, and in addition,
  12074. # creating and moving files from /tmp can sometimes cause problems.
  12075. # Hook for its removal unless debugging.
  12076. # Note that there is a small window in which the directory will not be cleaned:
  12077. # after its creation but before its name has been assigned to `$tmp'.
  12078. $debug ||
  12079. {
  12080. tmp= ac_tmp=
  12081. trap 'exit_status=$?
  12082. : "${ac_tmp:=$tmp}"
  12083. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12084. ' 0
  12085. trap 'as_fn_exit 1' 1 2 13 15
  12086. }
  12087. # Create a (secure) tmp directory for tmp files.
  12088. {
  12089. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12090. test -d "$tmp"
  12091. } ||
  12092. {
  12093. tmp=./conf$$-$RANDOM
  12094. (umask 077 && mkdir "$tmp")
  12095. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12096. ac_tmp=$tmp
  12097. # Set up the scripts for CONFIG_FILES section.
  12098. # No need to generate them if there are no CONFIG_FILES.
  12099. # This happens for instance with `./config.status config.h'.
  12100. if test -n "$CONFIG_FILES"; then
  12101. ac_cr=`echo X | tr X '\015'`
  12102. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12103. # But we know of no other shell where ac_cr would be empty at this
  12104. # point, so we can use a bashism as a fallback.
  12105. if test "x$ac_cr" = x; then
  12106. eval ac_cr=\$\'\\r\'
  12107. fi
  12108. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12109. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12110. ac_cs_awk_cr='\\r'
  12111. else
  12112. ac_cs_awk_cr=$ac_cr
  12113. fi
  12114. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12115. _ACEOF
  12116. {
  12117. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12118. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12119. echo "_ACEOF"
  12120. } >conf$$subs.sh ||
  12121. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12122. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12123. ac_delim='%!_!# '
  12124. for ac_last_try in false false false false false :; do
  12125. . ./conf$$subs.sh ||
  12126. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12127. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12128. if test $ac_delim_n = $ac_delim_num; then
  12129. break
  12130. elif $ac_last_try; then
  12131. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12132. else
  12133. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12134. fi
  12135. done
  12136. rm -f conf$$subs.sh
  12137. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12138. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12139. _ACEOF
  12140. sed -n '
  12141. h
  12142. s/^/S["/; s/!.*/"]=/
  12143. p
  12144. g
  12145. s/^[^!]*!//
  12146. :repl
  12147. t repl
  12148. s/'"$ac_delim"'$//
  12149. t delim
  12150. :nl
  12151. h
  12152. s/\(.\{148\}\)..*/\1/
  12153. t more1
  12154. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12155. p
  12156. n
  12157. b repl
  12158. :more1
  12159. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12160. p
  12161. g
  12162. s/.\{148\}//
  12163. t nl
  12164. :delim
  12165. h
  12166. s/\(.\{148\}\)..*/\1/
  12167. t more2
  12168. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12169. p
  12170. b
  12171. :more2
  12172. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12173. p
  12174. g
  12175. s/.\{148\}//
  12176. t delim
  12177. ' <conf$$subs.awk | sed '
  12178. /^[^""]/{
  12179. N
  12180. s/\n//
  12181. }
  12182. ' >>$CONFIG_STATUS || ac_write_fail=1
  12183. rm -f conf$$subs.awk
  12184. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12185. _ACAWK
  12186. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12187. for (key in S) S_is_set[key] = 1
  12188. FS = ""
  12189. }
  12190. {
  12191. line = $ 0
  12192. nfields = split(line, field, "@")
  12193. substed = 0
  12194. len = length(field[1])
  12195. for (i = 2; i < nfields; i++) {
  12196. key = field[i]
  12197. keylen = length(key)
  12198. if (S_is_set[key]) {
  12199. value = S[key]
  12200. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12201. len += length(value) + length(field[++i])
  12202. substed = 1
  12203. } else
  12204. len += 1 + keylen
  12205. }
  12206. print line
  12207. }
  12208. _ACAWK
  12209. _ACEOF
  12210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12211. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12212. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12213. else
  12214. cat
  12215. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12216. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12217. _ACEOF
  12218. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12219. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12220. # trailing colons and then remove the whole line if VPATH becomes empty
  12221. # (actually we leave an empty line to preserve line numbers).
  12222. if test "x$srcdir" = x.; then
  12223. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12224. h
  12225. s///
  12226. s/^/:/
  12227. s/[ ]*$/:/
  12228. s/:\$(srcdir):/:/g
  12229. s/:\${srcdir}:/:/g
  12230. s/:@srcdir@:/:/g
  12231. s/^:*//
  12232. s/:*$//
  12233. x
  12234. s/\(=[ ]*\).*/\1/
  12235. G
  12236. s/\n//
  12237. s/^[^=]*=[ ]*$//
  12238. }'
  12239. fi
  12240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12241. fi # test -n "$CONFIG_FILES"
  12242. # Set up the scripts for CONFIG_HEADERS section.
  12243. # No need to generate them if there are no CONFIG_HEADERS.
  12244. # This happens for instance with `./config.status Makefile'.
  12245. if test -n "$CONFIG_HEADERS"; then
  12246. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12247. BEGIN {
  12248. _ACEOF
  12249. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12250. # here-document in config.status, that substitutes the proper values into
  12251. # config.h.in to produce config.h.
  12252. # Create a delimiter string that does not exist in confdefs.h, to ease
  12253. # handling of long lines.
  12254. ac_delim='%!_!# '
  12255. for ac_last_try in false false :; do
  12256. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12257. if test -z "$ac_tt"; then
  12258. break
  12259. elif $ac_last_try; then
  12260. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12261. else
  12262. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12263. fi
  12264. done
  12265. # For the awk script, D is an array of macro values keyed by name,
  12266. # likewise P contains macro parameters if any. Preserve backslash
  12267. # newline sequences.
  12268. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12269. sed -n '
  12270. s/.\{148\}/&'"$ac_delim"'/g
  12271. t rset
  12272. :rset
  12273. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12274. t def
  12275. d
  12276. :def
  12277. s/\\$//
  12278. t bsnl
  12279. s/["\\]/\\&/g
  12280. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12281. D["\1"]=" \3"/p
  12282. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12283. d
  12284. :bsnl
  12285. s/["\\]/\\&/g
  12286. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12287. D["\1"]=" \3\\\\\\n"\\/p
  12288. t cont
  12289. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12290. t cont
  12291. d
  12292. :cont
  12293. n
  12294. s/.\{148\}/&'"$ac_delim"'/g
  12295. t clear
  12296. :clear
  12297. s/\\$//
  12298. t bsnlc
  12299. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12300. d
  12301. :bsnlc
  12302. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12303. b cont
  12304. ' <confdefs.h | sed '
  12305. s/'"$ac_delim"'/"\\\
  12306. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12308. for (key in D) D_is_set[key] = 1
  12309. FS = ""
  12310. }
  12311. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12312. line = \$ 0
  12313. split(line, arg, " ")
  12314. if (arg[1] == "#") {
  12315. defundef = arg[2]
  12316. mac1 = arg[3]
  12317. } else {
  12318. defundef = substr(arg[1], 2)
  12319. mac1 = arg[2]
  12320. }
  12321. split(mac1, mac2, "(") #)
  12322. macro = mac2[1]
  12323. prefix = substr(line, 1, index(line, defundef) - 1)
  12324. if (D_is_set[macro]) {
  12325. # Preserve the white space surrounding the "#".
  12326. print prefix "define", macro P[macro] D[macro]
  12327. next
  12328. } else {
  12329. # Replace #undef with comments. This is necessary, for example,
  12330. # in the case of _POSIX_SOURCE, which is predefined and required
  12331. # on some systems where configure will not decide to define it.
  12332. if (defundef == "undef") {
  12333. print "/*", prefix defundef, macro, "*/"
  12334. next
  12335. }
  12336. }
  12337. }
  12338. { print }
  12339. _ACAWK
  12340. _ACEOF
  12341. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12342. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12343. fi # test -n "$CONFIG_HEADERS"
  12344. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12345. shift
  12346. for ac_tag
  12347. do
  12348. case $ac_tag in
  12349. :[FHLC]) ac_mode=$ac_tag; continue;;
  12350. esac
  12351. case $ac_mode$ac_tag in
  12352. :[FHL]*:*);;
  12353. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12354. :[FH]-) ac_tag=-:-;;
  12355. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12356. esac
  12357. ac_save_IFS=$IFS
  12358. IFS=:
  12359. set x $ac_tag
  12360. IFS=$ac_save_IFS
  12361. shift
  12362. ac_file=$1
  12363. shift
  12364. case $ac_mode in
  12365. :L) ac_source=$1;;
  12366. :[FH])
  12367. ac_file_inputs=
  12368. for ac_f
  12369. do
  12370. case $ac_f in
  12371. -) ac_f="$ac_tmp/stdin";;
  12372. *) # Look for the file first in the build tree, then in the source tree
  12373. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12374. # because $ac_f cannot contain `:'.
  12375. test -f "$ac_f" ||
  12376. case $ac_f in
  12377. [\\/$]*) false;;
  12378. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12379. esac ||
  12380. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12381. esac
  12382. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12383. as_fn_append ac_file_inputs " '$ac_f'"
  12384. done
  12385. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12386. # use $as_me), people would be surprised to read:
  12387. # /* config.h. Generated by config.status. */
  12388. configure_input='Generated from '`
  12389. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12390. `' by configure.'
  12391. if test x"$ac_file" != x-; then
  12392. configure_input="$ac_file. $configure_input"
  12393. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12394. $as_echo "$as_me: creating $ac_file" >&6;}
  12395. fi
  12396. # Neutralize special characters interpreted by sed in replacement strings.
  12397. case $configure_input in #(
  12398. *\&* | *\|* | *\\* )
  12399. ac_sed_conf_input=`$as_echo "$configure_input" |
  12400. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12401. *) ac_sed_conf_input=$configure_input;;
  12402. esac
  12403. case $ac_tag in
  12404. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12405. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12406. esac
  12407. ;;
  12408. esac
  12409. ac_dir=`$as_dirname -- "$ac_file" ||
  12410. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12411. X"$ac_file" : 'X\(//\)[^/]' \| \
  12412. X"$ac_file" : 'X\(//\)$' \| \
  12413. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12414. $as_echo X"$ac_file" |
  12415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12416. s//\1/
  12417. q
  12418. }
  12419. /^X\(\/\/\)[^/].*/{
  12420. s//\1/
  12421. q
  12422. }
  12423. /^X\(\/\/\)$/{
  12424. s//\1/
  12425. q
  12426. }
  12427. /^X\(\/\).*/{
  12428. s//\1/
  12429. q
  12430. }
  12431. s/.*/./; q'`
  12432. as_dir="$ac_dir"; as_fn_mkdir_p
  12433. ac_builddir=.
  12434. case "$ac_dir" in
  12435. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12436. *)
  12437. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12438. # A ".." for each directory in $ac_dir_suffix.
  12439. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12440. case $ac_top_builddir_sub in
  12441. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12442. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12443. esac ;;
  12444. esac
  12445. ac_abs_top_builddir=$ac_pwd
  12446. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12447. # for backward compatibility:
  12448. ac_top_builddir=$ac_top_build_prefix
  12449. case $srcdir in
  12450. .) # We are building in place.
  12451. ac_srcdir=.
  12452. ac_top_srcdir=$ac_top_builddir_sub
  12453. ac_abs_top_srcdir=$ac_pwd ;;
  12454. [\\/]* | ?:[\\/]* ) # Absolute name.
  12455. ac_srcdir=$srcdir$ac_dir_suffix;
  12456. ac_top_srcdir=$srcdir
  12457. ac_abs_top_srcdir=$srcdir ;;
  12458. *) # Relative name.
  12459. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12460. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12461. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12462. esac
  12463. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12464. case $ac_mode in
  12465. :F)
  12466. #
  12467. # CONFIG_FILE
  12468. #
  12469. case $INSTALL in
  12470. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12471. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12472. esac
  12473. ac_MKDIR_P=$MKDIR_P
  12474. case $MKDIR_P in
  12475. [\\/$]* | ?:[\\/]* ) ;;
  12476. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12477. esac
  12478. _ACEOF
  12479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12480. # If the template does not know about datarootdir, expand it.
  12481. # FIXME: This hack should be removed a few years after 2.60.
  12482. ac_datarootdir_hack=; ac_datarootdir_seen=
  12483. ac_sed_dataroot='
  12484. /datarootdir/ {
  12485. p
  12486. q
  12487. }
  12488. /@datadir@/p
  12489. /@docdir@/p
  12490. /@infodir@/p
  12491. /@localedir@/p
  12492. /@mandir@/p'
  12493. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12494. *datarootdir*) ac_datarootdir_seen=yes;;
  12495. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12497. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12498. _ACEOF
  12499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12500. ac_datarootdir_hack='
  12501. s&@datadir@&$datadir&g
  12502. s&@docdir@&$docdir&g
  12503. s&@infodir@&$infodir&g
  12504. s&@localedir@&$localedir&g
  12505. s&@mandir@&$mandir&g
  12506. s&\\\${datarootdir}&$datarootdir&g' ;;
  12507. esac
  12508. _ACEOF
  12509. # Neutralize VPATH when `$srcdir' = `.'.
  12510. # Shell code in configure.ac might set extrasub.
  12511. # FIXME: do we really want to maintain this feature?
  12512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12513. ac_sed_extra="$ac_vpsub
  12514. $extrasub
  12515. _ACEOF
  12516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12517. :t
  12518. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12519. s|@configure_input@|$ac_sed_conf_input|;t t
  12520. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12521. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12522. s&@srcdir@&$ac_srcdir&;t t
  12523. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12524. s&@top_srcdir@&$ac_top_srcdir&;t t
  12525. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12526. s&@builddir@&$ac_builddir&;t t
  12527. s&@abs_builddir@&$ac_abs_builddir&;t t
  12528. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12529. s&@INSTALL@&$ac_INSTALL&;t t
  12530. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12531. $ac_datarootdir_hack
  12532. "
  12533. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12534. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12535. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12536. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12537. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12538. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12540. which seems to be undefined. Please make sure it is defined" >&5
  12541. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12542. which seems to be undefined. Please make sure it is defined" >&2;}
  12543. rm -f "$ac_tmp/stdin"
  12544. case $ac_file in
  12545. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12546. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12547. esac \
  12548. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12549. ;;
  12550. :H)
  12551. #
  12552. # CONFIG_HEADER
  12553. #
  12554. if test x"$ac_file" != x-; then
  12555. {
  12556. $as_echo "/* $configure_input */" \
  12557. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12558. } >"$ac_tmp/config.h" \
  12559. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12560. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12562. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12563. else
  12564. rm -f "$ac_file"
  12565. mv "$ac_tmp/config.h" "$ac_file" \
  12566. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12567. fi
  12568. else
  12569. $as_echo "/* $configure_input */" \
  12570. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12571. || as_fn_error $? "could not create -" "$LINENO" 5
  12572. fi
  12573. # Compute "$ac_file"'s index in $config_headers.
  12574. _am_arg="$ac_file"
  12575. _am_stamp_count=1
  12576. for _am_header in $config_headers :; do
  12577. case $_am_header in
  12578. $_am_arg | $_am_arg:* )
  12579. break ;;
  12580. * )
  12581. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12582. esac
  12583. done
  12584. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12585. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12586. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12587. X"$_am_arg" : 'X\(//\)$' \| \
  12588. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12589. $as_echo X"$_am_arg" |
  12590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12591. s//\1/
  12592. q
  12593. }
  12594. /^X\(\/\/\)[^/].*/{
  12595. s//\1/
  12596. q
  12597. }
  12598. /^X\(\/\/\)$/{
  12599. s//\1/
  12600. q
  12601. }
  12602. /^X\(\/\).*/{
  12603. s//\1/
  12604. q
  12605. }
  12606. s/.*/./; q'`/stamp-h$_am_stamp_count
  12607. ;;
  12608. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12609. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12610. ;;
  12611. esac
  12612. case $ac_file$ac_mode in
  12613. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12614. # Older Autoconf quotes --file arguments for eval, but not when files
  12615. # are listed without --file. Let's play safe and only enable the eval
  12616. # if we detect the quoting.
  12617. case $CONFIG_FILES in
  12618. *\'*) eval set x "$CONFIG_FILES" ;;
  12619. *) set x $CONFIG_FILES ;;
  12620. esac
  12621. shift
  12622. for mf
  12623. do
  12624. # Strip MF so we end up with the name of the file.
  12625. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12626. # Check whether this is an Automake generated Makefile or not.
  12627. # We used to match only the files named 'Makefile.in', but
  12628. # some people rename them; so instead we look at the file content.
  12629. # Grep'ing the first line is not enough: some people post-process
  12630. # each Makefile.in and add a new line on top of each file to say so.
  12631. # Grep'ing the whole file is not good either: AIX grep has a line
  12632. # limit of 2048, but all sed's we know have understand at least 4000.
  12633. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12634. dirpart=`$as_dirname -- "$mf" ||
  12635. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12636. X"$mf" : 'X\(//\)[^/]' \| \
  12637. X"$mf" : 'X\(//\)$' \| \
  12638. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12639. $as_echo X"$mf" |
  12640. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12641. s//\1/
  12642. q
  12643. }
  12644. /^X\(\/\/\)[^/].*/{
  12645. s//\1/
  12646. q
  12647. }
  12648. /^X\(\/\/\)$/{
  12649. s//\1/
  12650. q
  12651. }
  12652. /^X\(\/\).*/{
  12653. s//\1/
  12654. q
  12655. }
  12656. s/.*/./; q'`
  12657. else
  12658. continue
  12659. fi
  12660. # Extract the definition of DEPDIR, am__include, and am__quote
  12661. # from the Makefile without running 'make'.
  12662. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12663. test -z "$DEPDIR" && continue
  12664. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12665. test -z "$am__include" && continue
  12666. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12667. # Find all dependency output files, they are included files with
  12668. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12669. # simplest approach to changing $(DEPDIR) to its actual value in the
  12670. # expansion.
  12671. for file in `sed -n "
  12672. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12673. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12674. # Make sure the directory exists.
  12675. test -f "$dirpart/$file" && continue
  12676. fdir=`$as_dirname -- "$file" ||
  12677. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12678. X"$file" : 'X\(//\)[^/]' \| \
  12679. X"$file" : 'X\(//\)$' \| \
  12680. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12681. $as_echo X"$file" |
  12682. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12683. s//\1/
  12684. q
  12685. }
  12686. /^X\(\/\/\)[^/].*/{
  12687. s//\1/
  12688. q
  12689. }
  12690. /^X\(\/\/\)$/{
  12691. s//\1/
  12692. q
  12693. }
  12694. /^X\(\/\).*/{
  12695. s//\1/
  12696. q
  12697. }
  12698. s/.*/./; q'`
  12699. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12700. # echo "creating $dirpart/$file"
  12701. echo '# dummy' > "$dirpart/$file"
  12702. done
  12703. done
  12704. }
  12705. ;;
  12706. "libtool":C)
  12707. # See if we are running on zsh, and set the options that allow our
  12708. # commands through without removal of \ escapes.
  12709. if test -n "${ZSH_VERSION+set}"; then
  12710. setopt NO_GLOB_SUBST
  12711. fi
  12712. cfgfile=${ofile}T
  12713. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12714. $RM "$cfgfile"
  12715. cat <<_LT_EOF >> "$cfgfile"
  12716. #! $SHELL
  12717. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12718. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12719. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12720. # Provide generalized library-building support services.
  12721. # Written by Gordon Matzigkeit, 1996
  12722. # Copyright (C) 2014 Free Software Foundation, Inc.
  12723. # This is free software; see the source for copying conditions. There is NO
  12724. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12725. # GNU Libtool is free software; you can redistribute it and/or modify
  12726. # it under the terms of the GNU General Public License as published by
  12727. # the Free Software Foundation; either version 2 of of the License, or
  12728. # (at your option) any later version.
  12729. #
  12730. # As a special exception to the GNU General Public License, if you
  12731. # distribute this file as part of a program or library that is built
  12732. # using GNU Libtool, you may include this file under the same
  12733. # distribution terms that you use for the rest of that program.
  12734. #
  12735. # GNU Libtool is distributed in the hope that it will be useful, but
  12736. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12737. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12738. # GNU General Public License for more details.
  12739. #
  12740. # You should have received a copy of the GNU General Public License
  12741. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12742. # The names of the tagged configurations supported by this script.
  12743. available_tags='RC '
  12744. # Configured defaults for sys_lib_dlsearch_path munging.
  12745. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12746. # ### BEGIN LIBTOOL CONFIG
  12747. # Which release of libtool.m4 was used?
  12748. macro_version=$macro_version
  12749. macro_revision=$macro_revision
  12750. # Whether or not to build shared libraries.
  12751. build_libtool_libs=$enable_shared
  12752. # Whether or not to build static libraries.
  12753. build_old_libs=$enable_static
  12754. # What type of objects to build.
  12755. pic_mode=$pic_mode
  12756. # Whether or not to optimize for fast installation.
  12757. fast_install=$enable_fast_install
  12758. # Shared archive member basename,for filename based shared library versioning on AIX.
  12759. shared_archive_member_spec=$shared_archive_member_spec
  12760. # Shell to use when invoking shell scripts.
  12761. SHELL=$lt_SHELL
  12762. # An echo program that protects backslashes.
  12763. ECHO=$lt_ECHO
  12764. # The PATH separator for the build system.
  12765. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12766. # The host system.
  12767. host_alias=$host_alias
  12768. host=$host
  12769. host_os=$host_os
  12770. # The build system.
  12771. build_alias=$build_alias
  12772. build=$build
  12773. build_os=$build_os
  12774. # A sed program that does not truncate output.
  12775. SED=$lt_SED
  12776. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12777. Xsed="\$SED -e 1s/^X//"
  12778. # A grep program that handles long lines.
  12779. GREP=$lt_GREP
  12780. # An ERE matcher.
  12781. EGREP=$lt_EGREP
  12782. # A literal string matcher.
  12783. FGREP=$lt_FGREP
  12784. # A BSD- or MS-compatible name lister.
  12785. NM=$lt_NM
  12786. # Whether we need soft or hard links.
  12787. LN_S=$lt_LN_S
  12788. # What is the maximum length of a command?
  12789. max_cmd_len=$max_cmd_len
  12790. # Object file suffix (normally "o").
  12791. objext=$ac_objext
  12792. # Executable file suffix (normally "").
  12793. exeext=$exeext
  12794. # whether the shell understands "unset".
  12795. lt_unset=$lt_unset
  12796. # turn spaces into newlines.
  12797. SP2NL=$lt_lt_SP2NL
  12798. # turn newlines into spaces.
  12799. NL2SP=$lt_lt_NL2SP
  12800. # convert \$build file names to \$host format.
  12801. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12802. # convert \$build files to toolchain format.
  12803. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12804. # An object symbol dumper.
  12805. OBJDUMP=$lt_OBJDUMP
  12806. # Method to check whether dependent libraries are shared objects.
  12807. deplibs_check_method=$lt_deplibs_check_method
  12808. # Command to use when deplibs_check_method = "file_magic".
  12809. file_magic_cmd=$lt_file_magic_cmd
  12810. # How to find potential files when deplibs_check_method = "file_magic".
  12811. file_magic_glob=$lt_file_magic_glob
  12812. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12813. want_nocaseglob=$lt_want_nocaseglob
  12814. # DLL creation program.
  12815. DLLTOOL=$lt_DLLTOOL
  12816. # Command to associate shared and link libraries.
  12817. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12818. # The archiver.
  12819. AR=$lt_AR
  12820. # Flags to create an archive.
  12821. AR_FLAGS=$lt_AR_FLAGS
  12822. # How to feed a file listing to the archiver.
  12823. archiver_list_spec=$lt_archiver_list_spec
  12824. # A symbol stripping program.
  12825. STRIP=$lt_STRIP
  12826. # Commands used to install an old-style archive.
  12827. RANLIB=$lt_RANLIB
  12828. old_postinstall_cmds=$lt_old_postinstall_cmds
  12829. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12830. # Whether to use a lock for old archive extraction.
  12831. lock_old_archive_extraction=$lock_old_archive_extraction
  12832. # A C compiler.
  12833. LTCC=$lt_CC
  12834. # LTCC compiler flags.
  12835. LTCFLAGS=$lt_CFLAGS
  12836. # Take the output of nm and produce a listing of raw symbols and C names.
  12837. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12838. # Transform the output of nm in a proper C declaration.
  12839. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12840. # Transform the output of nm into a list of symbols to manually relocate.
  12841. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12842. # Transform the output of nm in a C name address pair.
  12843. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12844. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12845. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12846. # The name lister interface.
  12847. nm_interface=$lt_lt_cv_nm_interface
  12848. # Specify filename containing input files for \$NM.
  12849. nm_file_list_spec=$lt_nm_file_list_spec
  12850. # The root where to search for dependent libraries,and where our libraries should be installed.
  12851. lt_sysroot=$lt_sysroot
  12852. # Command to truncate a binary pipe.
  12853. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12854. # The name of the directory that contains temporary libtool files.
  12855. objdir=$objdir
  12856. # Used to examine libraries when file_magic_cmd begins with "file".
  12857. MAGIC_CMD=$MAGIC_CMD
  12858. # Must we lock files when doing compilation?
  12859. need_locks=$lt_need_locks
  12860. # Manifest tool.
  12861. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12862. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12863. DSYMUTIL=$lt_DSYMUTIL
  12864. # Tool to change global to local symbols on Mac OS X.
  12865. NMEDIT=$lt_NMEDIT
  12866. # Tool to manipulate fat objects and archives on Mac OS X.
  12867. LIPO=$lt_LIPO
  12868. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12869. OTOOL=$lt_OTOOL
  12870. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12871. OTOOL64=$lt_OTOOL64
  12872. # Old archive suffix (normally "a").
  12873. libext=$libext
  12874. # Shared library suffix (normally ".so").
  12875. shrext_cmds=$lt_shrext_cmds
  12876. # The commands to extract the exported symbol list from a shared archive.
  12877. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12878. # Variables whose values should be saved in libtool wrapper scripts and
  12879. # restored at link time.
  12880. variables_saved_for_relink=$lt_variables_saved_for_relink
  12881. # Do we need the "lib" prefix for modules?
  12882. need_lib_prefix=$need_lib_prefix
  12883. # Do we need a version for libraries?
  12884. need_version=$need_version
  12885. # Library versioning type.
  12886. version_type=$version_type
  12887. # Shared library runtime path variable.
  12888. runpath_var=$runpath_var
  12889. # Shared library path variable.
  12890. shlibpath_var=$shlibpath_var
  12891. # Is shlibpath searched before the hard-coded library search path?
  12892. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12893. # Format of library name prefix.
  12894. libname_spec=$lt_libname_spec
  12895. # List of archive names. First name is the real one, the rest are links.
  12896. # The last name is the one that the linker finds with -lNAME
  12897. library_names_spec=$lt_library_names_spec
  12898. # The coded name of the library, if different from the real name.
  12899. soname_spec=$lt_soname_spec
  12900. # Permission mode override for installation of shared libraries.
  12901. install_override_mode=$lt_install_override_mode
  12902. # Command to use after installation of a shared archive.
  12903. postinstall_cmds=$lt_postinstall_cmds
  12904. # Command to use after uninstallation of a shared archive.
  12905. postuninstall_cmds=$lt_postuninstall_cmds
  12906. # Commands used to finish a libtool library installation in a directory.
  12907. finish_cmds=$lt_finish_cmds
  12908. # As "finish_cmds", except a single script fragment to be evaled but
  12909. # not shown.
  12910. finish_eval=$lt_finish_eval
  12911. # Whether we should hardcode library paths into libraries.
  12912. hardcode_into_libs=$hardcode_into_libs
  12913. # Compile-time system search path for libraries.
  12914. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12915. # Detected run-time system search path for libraries.
  12916. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12917. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12918. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12919. # Whether dlopen is supported.
  12920. dlopen_support=$enable_dlopen
  12921. # Whether dlopen of programs is supported.
  12922. dlopen_self=$enable_dlopen_self
  12923. # Whether dlopen of statically linked programs is supported.
  12924. dlopen_self_static=$enable_dlopen_self_static
  12925. # Commands to strip libraries.
  12926. old_striplib=$lt_old_striplib
  12927. striplib=$lt_striplib
  12928. # The linker used to build libraries.
  12929. LD=$lt_LD
  12930. # How to create reloadable object files.
  12931. reload_flag=$lt_reload_flag
  12932. reload_cmds=$lt_reload_cmds
  12933. # Commands used to build an old-style archive.
  12934. old_archive_cmds=$lt_old_archive_cmds
  12935. # A language specific compiler.
  12936. CC=$lt_compiler
  12937. # Is the compiler the GNU compiler?
  12938. with_gcc=$GCC
  12939. # Compiler flag to turn off builtin functions.
  12940. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12941. # Additional compiler flags for building library objects.
  12942. pic_flag=$lt_lt_prog_compiler_pic
  12943. # How to pass a linker flag through the compiler.
  12944. wl=$lt_lt_prog_compiler_wl
  12945. # Compiler flag to prevent dynamic linking.
  12946. link_static_flag=$lt_lt_prog_compiler_static
  12947. # Does compiler simultaneously support -c and -o options?
  12948. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12949. # Whether or not to add -lc for building shared libraries.
  12950. build_libtool_need_lc=$archive_cmds_need_lc
  12951. # Whether or not to disallow shared libs when runtime libs are static.
  12952. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12953. # Compiler flag to allow reflexive dlopens.
  12954. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12955. # Compiler flag to generate shared objects directly from archives.
  12956. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12957. # Whether the compiler copes with passing no objects directly.
  12958. compiler_needs_object=$lt_compiler_needs_object
  12959. # Create an old-style archive from a shared archive.
  12960. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12961. # Create a temporary old-style archive to link instead of a shared archive.
  12962. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12963. # Commands used to build a shared archive.
  12964. archive_cmds=$lt_archive_cmds
  12965. archive_expsym_cmds=$lt_archive_expsym_cmds
  12966. # Commands used to build a loadable module if different from building
  12967. # a shared archive.
  12968. module_cmds=$lt_module_cmds
  12969. module_expsym_cmds=$lt_module_expsym_cmds
  12970. # Whether we are building with GNU ld or not.
  12971. with_gnu_ld=$lt_with_gnu_ld
  12972. # Flag that allows shared libraries with undefined symbols to be built.
  12973. allow_undefined_flag=$lt_allow_undefined_flag
  12974. # Flag that enforces no undefined symbols.
  12975. no_undefined_flag=$lt_no_undefined_flag
  12976. # Flag to hardcode \$libdir into a binary during linking.
  12977. # This must work even if \$libdir does not exist
  12978. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12979. # Whether we need a single "-rpath" flag with a separated argument.
  12980. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12981. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12982. # DIR into the resulting binary.
  12983. hardcode_direct=$hardcode_direct
  12984. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12985. # DIR into the resulting binary and the resulting library dependency is
  12986. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12987. # library is relocated.
  12988. hardcode_direct_absolute=$hardcode_direct_absolute
  12989. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12990. # into the resulting binary.
  12991. hardcode_minus_L=$hardcode_minus_L
  12992. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12993. # into the resulting binary.
  12994. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12995. # Set to "yes" if building a shared library automatically hardcodes DIR
  12996. # into the library and all subsequent libraries and executables linked
  12997. # against it.
  12998. hardcode_automatic=$hardcode_automatic
  12999. # Set to yes if linker adds runtime paths of dependent libraries
  13000. # to runtime path list.
  13001. inherit_rpath=$inherit_rpath
  13002. # Whether libtool must link a program against all its dependency libraries.
  13003. link_all_deplibs=$link_all_deplibs
  13004. # Set to "yes" if exported symbols are required.
  13005. always_export_symbols=$always_export_symbols
  13006. # The commands to list exported symbols.
  13007. export_symbols_cmds=$lt_export_symbols_cmds
  13008. # Symbols that should not be listed in the preloaded symbols.
  13009. exclude_expsyms=$lt_exclude_expsyms
  13010. # Symbols that must always be exported.
  13011. include_expsyms=$lt_include_expsyms
  13012. # Commands necessary for linking programs (against libraries) with templates.
  13013. prelink_cmds=$lt_prelink_cmds
  13014. # Commands necessary for finishing linking programs.
  13015. postlink_cmds=$lt_postlink_cmds
  13016. # Specify filename containing input files.
  13017. file_list_spec=$lt_file_list_spec
  13018. # How to hardcode a shared library path into an executable.
  13019. hardcode_action=$hardcode_action
  13020. # ### END LIBTOOL CONFIG
  13021. _LT_EOF
  13022. cat <<'_LT_EOF' >> "$cfgfile"
  13023. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13024. # func_munge_path_list VARIABLE PATH
  13025. # -----------------------------------
  13026. # VARIABLE is name of variable containing _space_ separated list of
  13027. # directories to be munged by the contents of PATH, which is string
  13028. # having a format:
  13029. # "DIR[:DIR]:"
  13030. # string "DIR[ DIR]" will be prepended to VARIABLE
  13031. # ":DIR[:DIR]"
  13032. # string "DIR[ DIR]" will be appended to VARIABLE
  13033. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13034. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13035. # "DIRA[ DIRA]" will be appended to VARIABLE
  13036. # "DIR[:DIR]"
  13037. # VARIABLE will be replaced by "DIR[ DIR]"
  13038. func_munge_path_list ()
  13039. {
  13040. case x$2 in
  13041. x)
  13042. ;;
  13043. *:)
  13044. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13045. ;;
  13046. x:*)
  13047. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13048. ;;
  13049. *::*)
  13050. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13051. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13052. ;;
  13053. *)
  13054. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13055. ;;
  13056. esac
  13057. }
  13058. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13059. func_cc_basename ()
  13060. {
  13061. for cc_temp in $*""; do
  13062. case $cc_temp in
  13063. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13064. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13065. \-*) ;;
  13066. *) break;;
  13067. esac
  13068. done
  13069. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13070. }
  13071. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13072. _LT_EOF
  13073. case $host_os in
  13074. aix3*)
  13075. cat <<\_LT_EOF >> "$cfgfile"
  13076. # AIX sometimes has problems with the GCC collect2 program. For some
  13077. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13078. # vanish in a puff of smoke.
  13079. if test set != "${COLLECT_NAMES+set}"; then
  13080. COLLECT_NAMES=
  13081. export COLLECT_NAMES
  13082. fi
  13083. _LT_EOF
  13084. ;;
  13085. esac
  13086. ltmain=$ac_aux_dir/ltmain.sh
  13087. # We use sed instead of cat because bash on DJGPP gets confused if
  13088. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13089. # text mode, it properly converts lines to CR/LF. This bash problem
  13090. # is reportedly fixed, but why not run on old versions too?
  13091. sed '$q' "$ltmain" >> "$cfgfile" \
  13092. || (rm -f "$cfgfile"; exit 1)
  13093. mv -f "$cfgfile" "$ofile" ||
  13094. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13095. chmod +x "$ofile"
  13096. cat <<_LT_EOF >> "$ofile"
  13097. # ### BEGIN LIBTOOL TAG CONFIG: RC
  13098. # The linker used to build libraries.
  13099. LD=$lt_LD_RC
  13100. # How to create reloadable object files.
  13101. reload_flag=$lt_reload_flag_RC
  13102. reload_cmds=$lt_reload_cmds_RC
  13103. # Commands used to build an old-style archive.
  13104. old_archive_cmds=$lt_old_archive_cmds_RC
  13105. # A language specific compiler.
  13106. CC=$lt_compiler_RC
  13107. # Is the compiler the GNU compiler?
  13108. with_gcc=$GCC_RC
  13109. # Compiler flag to turn off builtin functions.
  13110. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  13111. # Additional compiler flags for building library objects.
  13112. pic_flag=$lt_lt_prog_compiler_pic_RC
  13113. # How to pass a linker flag through the compiler.
  13114. wl=$lt_lt_prog_compiler_wl_RC
  13115. # Compiler flag to prevent dynamic linking.
  13116. link_static_flag=$lt_lt_prog_compiler_static_RC
  13117. # Does compiler simultaneously support -c and -o options?
  13118. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  13119. # Whether or not to add -lc for building shared libraries.
  13120. build_libtool_need_lc=$archive_cmds_need_lc_RC
  13121. # Whether or not to disallow shared libs when runtime libs are static.
  13122. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  13123. # Compiler flag to allow reflexive dlopens.
  13124. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  13125. # Compiler flag to generate shared objects directly from archives.
  13126. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  13127. # Whether the compiler copes with passing no objects directly.
  13128. compiler_needs_object=$lt_compiler_needs_object_RC
  13129. # Create an old-style archive from a shared archive.
  13130. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  13131. # Create a temporary old-style archive to link instead of a shared archive.
  13132. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  13133. # Commands used to build a shared archive.
  13134. archive_cmds=$lt_archive_cmds_RC
  13135. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  13136. # Commands used to build a loadable module if different from building
  13137. # a shared archive.
  13138. module_cmds=$lt_module_cmds_RC
  13139. module_expsym_cmds=$lt_module_expsym_cmds_RC
  13140. # Whether we are building with GNU ld or not.
  13141. with_gnu_ld=$lt_with_gnu_ld_RC
  13142. # Flag that allows shared libraries with undefined symbols to be built.
  13143. allow_undefined_flag=$lt_allow_undefined_flag_RC
  13144. # Flag that enforces no undefined symbols.
  13145. no_undefined_flag=$lt_no_undefined_flag_RC
  13146. # Flag to hardcode \$libdir into a binary during linking.
  13147. # This must work even if \$libdir does not exist
  13148. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  13149. # Whether we need a single "-rpath" flag with a separated argument.
  13150. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  13151. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13152. # DIR into the resulting binary.
  13153. hardcode_direct=$hardcode_direct_RC
  13154. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13155. # DIR into the resulting binary and the resulting library dependency is
  13156. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13157. # library is relocated.
  13158. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  13159. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13160. # into the resulting binary.
  13161. hardcode_minus_L=$hardcode_minus_L_RC
  13162. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13163. # into the resulting binary.
  13164. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  13165. # Set to "yes" if building a shared library automatically hardcodes DIR
  13166. # into the library and all subsequent libraries and executables linked
  13167. # against it.
  13168. hardcode_automatic=$hardcode_automatic_RC
  13169. # Set to yes if linker adds runtime paths of dependent libraries
  13170. # to runtime path list.
  13171. inherit_rpath=$inherit_rpath_RC
  13172. # Whether libtool must link a program against all its dependency libraries.
  13173. link_all_deplibs=$link_all_deplibs_RC
  13174. # Set to "yes" if exported symbols are required.
  13175. always_export_symbols=$always_export_symbols_RC
  13176. # The commands to list exported symbols.
  13177. export_symbols_cmds=$lt_export_symbols_cmds_RC
  13178. # Symbols that should not be listed in the preloaded symbols.
  13179. exclude_expsyms=$lt_exclude_expsyms_RC
  13180. # Symbols that must always be exported.
  13181. include_expsyms=$lt_include_expsyms_RC
  13182. # Commands necessary for linking programs (against libraries) with templates.
  13183. prelink_cmds=$lt_prelink_cmds_RC
  13184. # Commands necessary for finishing linking programs.
  13185. postlink_cmds=$lt_postlink_cmds_RC
  13186. # Specify filename containing input files.
  13187. file_list_spec=$lt_file_list_spec_RC
  13188. # How to hardcode a shared library path into an executable.
  13189. hardcode_action=$hardcode_action_RC
  13190. # ### END LIBTOOL TAG CONFIG: RC
  13191. _LT_EOF
  13192. ;;
  13193. esac
  13194. done # for ac_tag
  13195. as_fn_exit 0
  13196. _ACEOF
  13197. ac_clean_files=$ac_clean_files_save
  13198. test $ac_write_fail = 0 ||
  13199. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13200. # configure is writing to config.log, and then calls config.status.
  13201. # config.status does its own redirection, appending to config.log.
  13202. # Unfortunately, on DOS this fails, as config.log is still kept open
  13203. # by configure, so config.status won't be able to write to it; its
  13204. # output is simply discarded. So we exec the FD to /dev/null,
  13205. # effectively closing config.log, so it can be properly (re)opened and
  13206. # appended to by config.status. When coming back to configure, we
  13207. # need to make the FD available again.
  13208. if test "$no_create" != yes; then
  13209. ac_cs_success=:
  13210. ac_config_status_args=
  13211. test "$silent" = yes &&
  13212. ac_config_status_args="$ac_config_status_args --quiet"
  13213. exec 5>/dev/null
  13214. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13215. exec 5>>config.log
  13216. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13217. # would make configure fail if this is the last instruction.
  13218. $ac_cs_success || as_fn_exit 1
  13219. fi
  13220. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13222. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13223. fi