configure 395 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for package-unused version-unused.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='package-unused'
  509. PACKAGE_TARNAME='libobjc'
  510. PACKAGE_VERSION='version-unused'
  511. PACKAGE_STRING='package-unused version-unused'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="objc/objc.h"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='LTLIBOBJS
  551. LIBOBJS
  552. SET_MAKE
  553. CPP
  554. OTOOL64
  555. OTOOL
  556. LIPO
  557. NMEDIT
  558. DSYMUTIL
  559. AWK
  560. STRIP
  561. LN_S
  562. NM
  563. ac_ct_DUMPBIN
  564. DUMPBIN
  565. LD
  566. FGREP
  567. EGREP
  568. GREP
  569. SED
  570. LIBTOOL
  571. OBJDUMP
  572. DLLTOOL
  573. MAINT
  574. MAINTAINER_MODE_FALSE
  575. MAINTAINER_MODE_TRUE
  576. INSTALL_DATA
  577. INSTALL_SCRIPT
  578. INSTALL_PROGRAM
  579. RANLIB
  580. AR
  581. AS
  582. extra_ldflags_libobjc
  583. lt_host_flags
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CC
  587. CPPFLAGS
  588. LDFLAGS
  589. CFLAGS
  590. CC
  591. libsuffix
  592. includedirname
  593. toolexeclibdir
  594. toolexecdir
  595. glibcpp_srcdir
  596. target_noncanonical
  597. target_os
  598. target_vendor
  599. target_cpu
  600. target
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. multi_basedir
  606. OBJC_BOEHM_GC_INCLUDES
  607. OBJC_BOEHM_GC
  608. OBJC_GCFLAGS
  609. VERSION
  610. target_subdir
  611. host_subdir
  612. build_subdir
  613. build_libsubdir
  614. build_os
  615. build_vendor
  616. build_cpu
  617. build
  618. target_alias
  619. host_alias
  620. build_alias
  621. LIBS
  622. ECHO_T
  623. ECHO_N
  624. ECHO_C
  625. DEFS
  626. mandir
  627. localedir
  628. libdir
  629. psdir
  630. pdfdir
  631. dvidir
  632. htmldir
  633. infodir
  634. docdir
  635. oldincludedir
  636. includedir
  637. localstatedir
  638. sharedstatedir
  639. sysconfdir
  640. datadir
  641. datarootdir
  642. libexecdir
  643. sbindir
  644. bindir
  645. program_transform_name
  646. prefix
  647. exec_prefix
  648. PACKAGE_URL
  649. PACKAGE_BUGREPORT
  650. PACKAGE_STRING
  651. PACKAGE_VERSION
  652. PACKAGE_TARNAME
  653. PACKAGE_NAME
  654. PATH_SEPARATOR
  655. SHELL'
  656. ac_subst_files=''
  657. ac_user_opts='
  658. enable_option_checking
  659. with_build_libsubdir
  660. with_target_subdir
  661. with_cross_host
  662. enable_version_specific_runtime_libs
  663. enable_objc_gc
  664. enable_multilib
  665. enable_maintainer_mode
  666. enable_shared
  667. enable_static
  668. with_pic
  669. enable_fast_install
  670. with_gnu_ld
  671. enable_libtool_lock
  672. enable_tls
  673. enable_sjlj_exceptions
  674. '
  675. ac_precious_vars='build_alias
  676. host_alias
  677. target_alias
  678. CPP
  679. CPPFLAGS'
  680. # Initialize some variables set by options.
  681. ac_init_help=
  682. ac_init_version=false
  683. ac_unrecognized_opts=
  684. ac_unrecognized_sep=
  685. # The variables have the same names as the options, with
  686. # dashes changed to underlines.
  687. cache_file=/dev/null
  688. exec_prefix=NONE
  689. no_create=
  690. no_recursion=
  691. prefix=NONE
  692. program_prefix=NONE
  693. program_suffix=NONE
  694. program_transform_name=s,x,x,
  695. silent=
  696. site=
  697. srcdir=
  698. verbose=
  699. x_includes=NONE
  700. x_libraries=NONE
  701. # Installation directory options.
  702. # These are left unexpanded so users can "make install exec_prefix=/foo"
  703. # and all the variables that are supposed to be based on exec_prefix
  704. # by default will actually change.
  705. # Use braces instead of parens because sh, perl, etc. also accept them.
  706. # (The list follows the same order as the GNU Coding Standards.)
  707. bindir='${exec_prefix}/bin'
  708. sbindir='${exec_prefix}/sbin'
  709. libexecdir='${exec_prefix}/libexec'
  710. datarootdir='${prefix}/share'
  711. datadir='${datarootdir}'
  712. sysconfdir='${prefix}/etc'
  713. sharedstatedir='${prefix}/com'
  714. localstatedir='${prefix}/var'
  715. includedir='${prefix}/include'
  716. oldincludedir='/usr/include'
  717. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  718. infodir='${datarootdir}/info'
  719. htmldir='${docdir}'
  720. dvidir='${docdir}'
  721. pdfdir='${docdir}'
  722. psdir='${docdir}'
  723. libdir='${exec_prefix}/lib'
  724. localedir='${datarootdir}/locale'
  725. mandir='${datarootdir}/man'
  726. ac_prev=
  727. ac_dashdash=
  728. for ac_option
  729. do
  730. # If the previous option needs an argument, assign it.
  731. if test -n "$ac_prev"; then
  732. eval $ac_prev=\$ac_option
  733. ac_prev=
  734. continue
  735. fi
  736. case $ac_option in
  737. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  738. *) ac_optarg=yes ;;
  739. esac
  740. # Accept the important Cygnus configure options, so we can diagnose typos.
  741. case $ac_dashdash$ac_option in
  742. --)
  743. ac_dashdash=yes ;;
  744. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  745. ac_prev=bindir ;;
  746. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  747. bindir=$ac_optarg ;;
  748. -build | --build | --buil | --bui | --bu)
  749. ac_prev=build_alias ;;
  750. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  751. build_alias=$ac_optarg ;;
  752. -cache-file | --cache-file | --cache-fil | --cache-fi \
  753. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  754. ac_prev=cache_file ;;
  755. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  756. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  757. cache_file=$ac_optarg ;;
  758. --config-cache | -C)
  759. cache_file=config.cache ;;
  760. -datadir | --datadir | --datadi | --datad)
  761. ac_prev=datadir ;;
  762. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  763. datadir=$ac_optarg ;;
  764. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  765. | --dataroo | --dataro | --datar)
  766. ac_prev=datarootdir ;;
  767. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  768. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  769. datarootdir=$ac_optarg ;;
  770. -disable-* | --disable-*)
  771. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  772. # Reject names that are not valid shell variable names.
  773. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  774. as_fn_error "invalid feature name: $ac_useropt"
  775. ac_useropt_orig=$ac_useropt
  776. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  777. case $ac_user_opts in
  778. *"
  779. "enable_$ac_useropt"
  780. "*) ;;
  781. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  782. ac_unrecognized_sep=', ';;
  783. esac
  784. eval enable_$ac_useropt=no ;;
  785. -docdir | --docdir | --docdi | --doc | --do)
  786. ac_prev=docdir ;;
  787. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  788. docdir=$ac_optarg ;;
  789. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  790. ac_prev=dvidir ;;
  791. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  792. dvidir=$ac_optarg ;;
  793. -enable-* | --enable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=\$ac_optarg ;;
  808. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  809. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  810. | --exec | --exe | --ex)
  811. ac_prev=exec_prefix ;;
  812. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  813. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  814. | --exec=* | --exe=* | --ex=*)
  815. exec_prefix=$ac_optarg ;;
  816. -gas | --gas | --ga | --g)
  817. # Obsolete; use --with-gas.
  818. with_gas=yes ;;
  819. -help | --help | --hel | --he | -h)
  820. ac_init_help=long ;;
  821. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  822. ac_init_help=recursive ;;
  823. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  824. ac_init_help=short ;;
  825. -host | --host | --hos | --ho)
  826. ac_prev=host_alias ;;
  827. -host=* | --host=* | --hos=* | --ho=*)
  828. host_alias=$ac_optarg ;;
  829. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  830. ac_prev=htmldir ;;
  831. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  832. | --ht=*)
  833. htmldir=$ac_optarg ;;
  834. -includedir | --includedir | --includedi | --included | --include \
  835. | --includ | --inclu | --incl | --inc)
  836. ac_prev=includedir ;;
  837. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  838. | --includ=* | --inclu=* | --incl=* | --inc=*)
  839. includedir=$ac_optarg ;;
  840. -infodir | --infodir | --infodi | --infod | --info | --inf)
  841. ac_prev=infodir ;;
  842. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  843. infodir=$ac_optarg ;;
  844. -libdir | --libdir | --libdi | --libd)
  845. ac_prev=libdir ;;
  846. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  847. libdir=$ac_optarg ;;
  848. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  849. | --libexe | --libex | --libe)
  850. ac_prev=libexecdir ;;
  851. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  852. | --libexe=* | --libex=* | --libe=*)
  853. libexecdir=$ac_optarg ;;
  854. -localedir | --localedir | --localedi | --localed | --locale)
  855. ac_prev=localedir ;;
  856. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  857. localedir=$ac_optarg ;;
  858. -localstatedir | --localstatedir | --localstatedi | --localstated \
  859. | --localstate | --localstat | --localsta | --localst | --locals)
  860. ac_prev=localstatedir ;;
  861. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  862. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  863. localstatedir=$ac_optarg ;;
  864. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  865. ac_prev=mandir ;;
  866. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  867. mandir=$ac_optarg ;;
  868. -nfp | --nfp | --nf)
  869. # Obsolete; use --without-fp.
  870. with_fp=no ;;
  871. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  872. | --no-cr | --no-c | -n)
  873. no_create=yes ;;
  874. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  875. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  876. no_recursion=yes ;;
  877. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  878. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  879. | --oldin | --oldi | --old | --ol | --o)
  880. ac_prev=oldincludedir ;;
  881. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  882. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  883. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  884. oldincludedir=$ac_optarg ;;
  885. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  886. ac_prev=prefix ;;
  887. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  888. prefix=$ac_optarg ;;
  889. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  890. | --program-pre | --program-pr | --program-p)
  891. ac_prev=program_prefix ;;
  892. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  893. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  894. program_prefix=$ac_optarg ;;
  895. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  896. | --program-suf | --program-su | --program-s)
  897. ac_prev=program_suffix ;;
  898. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  899. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  900. program_suffix=$ac_optarg ;;
  901. -program-transform-name | --program-transform-name \
  902. | --program-transform-nam | --program-transform-na \
  903. | --program-transform-n | --program-transform- \
  904. | --program-transform | --program-transfor \
  905. | --program-transfo | --program-transf \
  906. | --program-trans | --program-tran \
  907. | --progr-tra | --program-tr | --program-t)
  908. ac_prev=program_transform_name ;;
  909. -program-transform-name=* | --program-transform-name=* \
  910. | --program-transform-nam=* | --program-transform-na=* \
  911. | --program-transform-n=* | --program-transform-=* \
  912. | --program-transform=* | --program-transfor=* \
  913. | --program-transfo=* | --program-transf=* \
  914. | --program-trans=* | --program-tran=* \
  915. | --progr-tra=* | --program-tr=* | --program-t=*)
  916. program_transform_name=$ac_optarg ;;
  917. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  918. ac_prev=pdfdir ;;
  919. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  920. pdfdir=$ac_optarg ;;
  921. -psdir | --psdir | --psdi | --psd | --ps)
  922. ac_prev=psdir ;;
  923. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  924. psdir=$ac_optarg ;;
  925. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  926. | -silent | --silent | --silen | --sile | --sil)
  927. silent=yes ;;
  928. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  929. ac_prev=sbindir ;;
  930. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  931. | --sbi=* | --sb=*)
  932. sbindir=$ac_optarg ;;
  933. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  934. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  935. | --sharedst | --shareds | --shared | --share | --shar \
  936. | --sha | --sh)
  937. ac_prev=sharedstatedir ;;
  938. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  939. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  940. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  941. | --sha=* | --sh=*)
  942. sharedstatedir=$ac_optarg ;;
  943. -site | --site | --sit)
  944. ac_prev=site ;;
  945. -site=* | --site=* | --sit=*)
  946. site=$ac_optarg ;;
  947. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  948. ac_prev=srcdir ;;
  949. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  950. srcdir=$ac_optarg ;;
  951. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  952. | --syscon | --sysco | --sysc | --sys | --sy)
  953. ac_prev=sysconfdir ;;
  954. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  955. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  956. sysconfdir=$ac_optarg ;;
  957. -target | --target | --targe | --targ | --tar | --ta | --t)
  958. ac_prev=target_alias ;;
  959. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  960. target_alias=$ac_optarg ;;
  961. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  962. verbose=yes ;;
  963. -version | --version | --versio | --versi | --vers | -V)
  964. ac_init_version=: ;;
  965. -with-* | --with-*)
  966. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  967. # Reject names that are not valid shell variable names.
  968. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  969. as_fn_error "invalid package name: $ac_useropt"
  970. ac_useropt_orig=$ac_useropt
  971. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  972. case $ac_user_opts in
  973. *"
  974. "with_$ac_useropt"
  975. "*) ;;
  976. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  977. ac_unrecognized_sep=', ';;
  978. esac
  979. eval with_$ac_useropt=\$ac_optarg ;;
  980. -without-* | --without-*)
  981. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  982. # Reject names that are not valid shell variable names.
  983. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  984. as_fn_error "invalid package name: $ac_useropt"
  985. ac_useropt_orig=$ac_useropt
  986. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  987. case $ac_user_opts in
  988. *"
  989. "with_$ac_useropt"
  990. "*) ;;
  991. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  992. ac_unrecognized_sep=', ';;
  993. esac
  994. eval with_$ac_useropt=no ;;
  995. --x)
  996. # Obsolete; use --with-x.
  997. with_x=yes ;;
  998. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  999. | --x-incl | --x-inc | --x-in | --x-i)
  1000. ac_prev=x_includes ;;
  1001. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1002. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1003. x_includes=$ac_optarg ;;
  1004. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1005. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1006. ac_prev=x_libraries ;;
  1007. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1008. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1009. x_libraries=$ac_optarg ;;
  1010. -*) as_fn_error "unrecognized option: \`$ac_option'
  1011. Try \`$0 --help' for more information."
  1012. ;;
  1013. *=*)
  1014. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1015. # Reject names that are not valid shell variable names.
  1016. case $ac_envvar in #(
  1017. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1018. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1019. esac
  1020. eval $ac_envvar=\$ac_optarg
  1021. export $ac_envvar ;;
  1022. *)
  1023. # FIXME: should be removed in autoconf 3.0.
  1024. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1025. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1026. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1027. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1028. ;;
  1029. esac
  1030. done
  1031. if test -n "$ac_prev"; then
  1032. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1033. as_fn_error "missing argument to $ac_option"
  1034. fi
  1035. if test -n "$ac_unrecognized_opts"; then
  1036. case $enable_option_checking in
  1037. no) ;;
  1038. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1039. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1040. esac
  1041. fi
  1042. # Check all directory arguments for consistency.
  1043. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1044. datadir sysconfdir sharedstatedir localstatedir includedir \
  1045. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1046. libdir localedir mandir
  1047. do
  1048. eval ac_val=\$$ac_var
  1049. # Remove trailing slashes.
  1050. case $ac_val in
  1051. */ )
  1052. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1053. eval $ac_var=\$ac_val;;
  1054. esac
  1055. # Be sure to have absolute directory names.
  1056. case $ac_val in
  1057. [\\/$]* | ?:[\\/]* ) continue;;
  1058. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1059. esac
  1060. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1061. done
  1062. # There might be people who depend on the old broken behavior: `$host'
  1063. # used to hold the argument of --host etc.
  1064. # FIXME: To remove some day.
  1065. build=$build_alias
  1066. host=$host_alias
  1067. target=$target_alias
  1068. # FIXME: To remove some day.
  1069. if test "x$host_alias" != x; then
  1070. if test "x$build_alias" = x; then
  1071. cross_compiling=maybe
  1072. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1073. If a cross compiler is detected then cross compile mode will be used." >&2
  1074. elif test "x$build_alias" != "x$host_alias"; then
  1075. cross_compiling=yes
  1076. fi
  1077. fi
  1078. ac_tool_prefix=
  1079. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1080. test "$silent" = yes && exec 6>/dev/null
  1081. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1082. ac_ls_di=`ls -di .` &&
  1083. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1084. as_fn_error "working directory cannot be determined"
  1085. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1086. as_fn_error "pwd does not report name of working directory"
  1087. # Find the source files, if location was not specified.
  1088. if test -z "$srcdir"; then
  1089. ac_srcdir_defaulted=yes
  1090. # Try the directory containing this script, then the parent directory.
  1091. ac_confdir=`$as_dirname -- "$as_myself" ||
  1092. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1093. X"$as_myself" : 'X\(//\)[^/]' \| \
  1094. X"$as_myself" : 'X\(//\)$' \| \
  1095. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1096. $as_echo X"$as_myself" |
  1097. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1098. s//\1/
  1099. q
  1100. }
  1101. /^X\(\/\/\)[^/].*/{
  1102. s//\1/
  1103. q
  1104. }
  1105. /^X\(\/\/\)$/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\).*/{
  1110. s//\1/
  1111. q
  1112. }
  1113. s/.*/./; q'`
  1114. srcdir=$ac_confdir
  1115. if test ! -r "$srcdir/$ac_unique_file"; then
  1116. srcdir=..
  1117. fi
  1118. else
  1119. ac_srcdir_defaulted=no
  1120. fi
  1121. if test ! -r "$srcdir/$ac_unique_file"; then
  1122. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1123. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1124. fi
  1125. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1126. ac_abs_confdir=`(
  1127. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1128. pwd)`
  1129. # When building in place, set srcdir=.
  1130. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1131. srcdir=.
  1132. fi
  1133. # Remove unnecessary trailing slashes from srcdir.
  1134. # Double slashes in file names in object file debugging info
  1135. # mess up M-x gdb in Emacs.
  1136. case $srcdir in
  1137. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1138. esac
  1139. for ac_var in $ac_precious_vars; do
  1140. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1141. eval ac_env_${ac_var}_value=\$${ac_var}
  1142. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1143. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1144. done
  1145. #
  1146. # Report the --help message.
  1147. #
  1148. if test "$ac_init_help" = "long"; then
  1149. # Omit some internal or obsolete options to make the list less imposing.
  1150. # This message is too long to be a string in the A/UX 3.1 sh.
  1151. cat <<_ACEOF
  1152. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1153. Usage: $0 [OPTION]... [VAR=VALUE]...
  1154. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1155. VAR=VALUE. See below for descriptions of some of the useful variables.
  1156. Defaults for the options are specified in brackets.
  1157. Configuration:
  1158. -h, --help display this help and exit
  1159. --help=short display options specific to this package
  1160. --help=recursive display the short help of all the included packages
  1161. -V, --version display version information and exit
  1162. -q, --quiet, --silent do not print \`checking...' messages
  1163. --cache-file=FILE cache test results in FILE [disabled]
  1164. -C, --config-cache alias for \`--cache-file=config.cache'
  1165. -n, --no-create do not create output files
  1166. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1167. Installation directories:
  1168. --prefix=PREFIX install architecture-independent files in PREFIX
  1169. [$ac_default_prefix]
  1170. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1171. [PREFIX]
  1172. By default, \`make install' will install all the files in
  1173. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1174. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1175. for instance \`--prefix=\$HOME'.
  1176. For better control, use the options below.
  1177. Fine tuning of the installation directories:
  1178. --bindir=DIR user executables [EPREFIX/bin]
  1179. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1180. --libexecdir=DIR program executables [EPREFIX/libexec]
  1181. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1182. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1183. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1184. --libdir=DIR object code libraries [EPREFIX/lib]
  1185. --includedir=DIR C header files [PREFIX/include]
  1186. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1187. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1188. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1189. --infodir=DIR info documentation [DATAROOTDIR/info]
  1190. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1191. --mandir=DIR man documentation [DATAROOTDIR/man]
  1192. --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
  1193. --htmldir=DIR html documentation [DOCDIR]
  1194. --dvidir=DIR dvi documentation [DOCDIR]
  1195. --pdfdir=DIR pdf documentation [DOCDIR]
  1196. --psdir=DIR ps documentation [DOCDIR]
  1197. _ACEOF
  1198. cat <<\_ACEOF
  1199. System types:
  1200. --build=BUILD configure for building on BUILD [guessed]
  1201. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1202. --target=TARGET configure for building compilers for TARGET [HOST]
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. case $ac_init_help in
  1207. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1208. esac
  1209. cat <<\_ACEOF
  1210. Optional Features:
  1211. --disable-option-checking ignore unrecognized --enable/--with options
  1212. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1213. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1214. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1215. --enable-objc-gc enable the use of Boehm's garbage collector with
  1216. the GNU Objective-C runtime.
  1217. --enable-multilib build many library versions (default)
  1218. --enable-maintainer-mode enable make rules and dependencies not useful
  1219. (and sometimes confusing) to the casual installer
  1220. --enable-shared[=PKGS] build shared libraries [default=yes]
  1221. --enable-static[=PKGS] build static libraries [default=yes]
  1222. --enable-fast-install[=PKGS]
  1223. optimize for fast installation [default=yes]
  1224. --disable-libtool-lock avoid locking (might break parallel builds)
  1225. --enable-tls Use thread-local storage [default=yes]
  1226. --enable-sjlj-exceptions
  1227. force use of builtin_setjmp for exceptions
  1228. Optional Packages:
  1229. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1230. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1231. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1232. --with-target-subdir=SUBDIR
  1233. configuring in a subdirectory
  1234. --with-cross-host=HOST configuring with a cross compiler
  1235. --with-pic try to use only PIC/non-PIC objects [default=use
  1236. both]
  1237. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1238. Some influential environment variables:
  1239. CC C compiler command
  1240. CFLAGS C compiler flags
  1241. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1242. nonstandard directory <lib dir>
  1243. LIBS libraries to pass to the linker, e.g. -l<library>
  1244. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1245. you have headers in a nonstandard directory <include dir>
  1246. CPP C preprocessor
  1247. Use these variables to override the choices made by `configure' or to help
  1248. it to find libraries and programs with nonstandard names/locations.
  1249. Report bugs to the package provider.
  1250. _ACEOF
  1251. ac_status=$?
  1252. fi
  1253. if test "$ac_init_help" = "recursive"; then
  1254. # If there are subdirs, report their specific --help.
  1255. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1256. test -d "$ac_dir" ||
  1257. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1258. continue
  1259. ac_builddir=.
  1260. case "$ac_dir" in
  1261. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1262. *)
  1263. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1264. # A ".." for each directory in $ac_dir_suffix.
  1265. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1266. case $ac_top_builddir_sub in
  1267. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1268. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1269. esac ;;
  1270. esac
  1271. ac_abs_top_builddir=$ac_pwd
  1272. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1273. # for backward compatibility:
  1274. ac_top_builddir=$ac_top_build_prefix
  1275. case $srcdir in
  1276. .) # We are building in place.
  1277. ac_srcdir=.
  1278. ac_top_srcdir=$ac_top_builddir_sub
  1279. ac_abs_top_srcdir=$ac_pwd ;;
  1280. [\\/]* | ?:[\\/]* ) # Absolute name.
  1281. ac_srcdir=$srcdir$ac_dir_suffix;
  1282. ac_top_srcdir=$srcdir
  1283. ac_abs_top_srcdir=$srcdir ;;
  1284. *) # Relative name.
  1285. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1286. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1287. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1288. esac
  1289. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1290. cd "$ac_dir" || { ac_status=$?; continue; }
  1291. # Check for guested configure.
  1292. if test -f "$ac_srcdir/configure.gnu"; then
  1293. echo &&
  1294. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1295. elif test -f "$ac_srcdir/configure"; then
  1296. echo &&
  1297. $SHELL "$ac_srcdir/configure" --help=recursive
  1298. else
  1299. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1300. fi || ac_status=$?
  1301. cd "$ac_pwd" || { ac_status=$?; break; }
  1302. done
  1303. fi
  1304. test -n "$ac_init_help" && exit $ac_status
  1305. if $ac_init_version; then
  1306. cat <<\_ACEOF
  1307. package-unused configure version-unused
  1308. generated by GNU Autoconf 2.64
  1309. Copyright (C) 2009 Free Software Foundation, Inc.
  1310. This configure script is free software; the Free Software Foundation
  1311. gives unlimited permission to copy, distribute and modify it.
  1312. _ACEOF
  1313. exit
  1314. fi
  1315. ## ------------------------ ##
  1316. ## Autoconf initialization. ##
  1317. ## ------------------------ ##
  1318. # ac_fn_c_try_compile LINENO
  1319. # --------------------------
  1320. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1321. ac_fn_c_try_compile ()
  1322. {
  1323. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1324. rm -f conftest.$ac_objext
  1325. if { { ac_try="$ac_compile"
  1326. case "(($ac_try" in
  1327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1328. *) ac_try_echo=$ac_try;;
  1329. esac
  1330. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1331. $as_echo "$ac_try_echo"; } >&5
  1332. (eval "$ac_compile") 2>conftest.err
  1333. ac_status=$?
  1334. if test -s conftest.err; then
  1335. grep -v '^ *+' conftest.err >conftest.er1
  1336. cat conftest.er1 >&5
  1337. mv -f conftest.er1 conftest.err
  1338. fi
  1339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1340. test $ac_status = 0; } && {
  1341. test -z "$ac_c_werror_flag" ||
  1342. test ! -s conftest.err
  1343. } && test -s conftest.$ac_objext; then :
  1344. ac_retval=0
  1345. else
  1346. $as_echo "$as_me: failed program was:" >&5
  1347. sed 's/^/| /' conftest.$ac_ext >&5
  1348. ac_retval=1
  1349. fi
  1350. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1351. return $ac_retval
  1352. } # ac_fn_c_try_compile
  1353. # ac_fn_c_try_link LINENO
  1354. # -----------------------
  1355. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1356. ac_fn_c_try_link ()
  1357. {
  1358. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1359. rm -f conftest.$ac_objext conftest$ac_exeext
  1360. if { { ac_try="$ac_link"
  1361. case "(($ac_try" in
  1362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1363. *) ac_try_echo=$ac_try;;
  1364. esac
  1365. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1366. $as_echo "$ac_try_echo"; } >&5
  1367. (eval "$ac_link") 2>conftest.err
  1368. ac_status=$?
  1369. if test -s conftest.err; then
  1370. grep -v '^ *+' conftest.err >conftest.er1
  1371. cat conftest.er1 >&5
  1372. mv -f conftest.er1 conftest.err
  1373. fi
  1374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1375. test $ac_status = 0; } && {
  1376. test -z "$ac_c_werror_flag" ||
  1377. test ! -s conftest.err
  1378. } && test -s conftest$ac_exeext && {
  1379. test "$cross_compiling" = yes ||
  1380. $as_test_x conftest$ac_exeext
  1381. }; then :
  1382. ac_retval=0
  1383. else
  1384. $as_echo "$as_me: failed program was:" >&5
  1385. sed 's/^/| /' conftest.$ac_ext >&5
  1386. ac_retval=1
  1387. fi
  1388. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1389. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1390. # interfere with the next link command; also delete a directory that is
  1391. # left behind by Apple's compiler. We do this before executing the actions.
  1392. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1393. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1394. return $ac_retval
  1395. } # ac_fn_c_try_link
  1396. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1397. # -------------------------------------------------------
  1398. # Tests whether HEADER exists and can be compiled using the include files in
  1399. # INCLUDES, setting the cache variable VAR accordingly.
  1400. ac_fn_c_check_header_compile ()
  1401. {
  1402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1404. $as_echo_n "checking for $2... " >&6; }
  1405. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1406. $as_echo_n "(cached) " >&6
  1407. else
  1408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1409. /* end confdefs.h. */
  1410. $4
  1411. #include <$2>
  1412. _ACEOF
  1413. if ac_fn_c_try_compile "$LINENO"; then :
  1414. eval "$3=yes"
  1415. else
  1416. eval "$3=no"
  1417. fi
  1418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1419. fi
  1420. eval ac_res=\$$3
  1421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1422. $as_echo "$ac_res" >&6; }
  1423. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1424. } # ac_fn_c_check_header_compile
  1425. # ac_fn_c_try_cpp LINENO
  1426. # ----------------------
  1427. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_cpp ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1432. case "(($ac_try" in
  1433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1434. *) ac_try_echo=$ac_try;;
  1435. esac
  1436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1437. $as_echo "$ac_try_echo"; } >&5
  1438. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1439. ac_status=$?
  1440. if test -s conftest.err; then
  1441. grep -v '^ *+' conftest.err >conftest.er1
  1442. cat conftest.er1 >&5
  1443. mv -f conftest.er1 conftest.err
  1444. fi
  1445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1446. test $ac_status = 0; } >/dev/null && {
  1447. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1448. test ! -s conftest.err
  1449. }; then :
  1450. ac_retval=0
  1451. else
  1452. $as_echo "$as_me: failed program was:" >&5
  1453. sed 's/^/| /' conftest.$ac_ext >&5
  1454. ac_retval=1
  1455. fi
  1456. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1457. return $ac_retval
  1458. } # ac_fn_c_try_cpp
  1459. # ac_fn_c_try_run LINENO
  1460. # ----------------------
  1461. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1462. # that executables *can* be run.
  1463. ac_fn_c_try_run ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. if { { ac_try="$ac_link"
  1467. case "(($ac_try" in
  1468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1469. *) ac_try_echo=$ac_try;;
  1470. esac
  1471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1472. $as_echo "$ac_try_echo"; } >&5
  1473. (eval "$ac_link") 2>&5
  1474. ac_status=$?
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1477. { { case "(($ac_try" in
  1478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1479. *) ac_try_echo=$ac_try;;
  1480. esac
  1481. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1482. $as_echo "$ac_try_echo"; } >&5
  1483. (eval "$ac_try") 2>&5
  1484. ac_status=$?
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; }; }; then :
  1487. ac_retval=0
  1488. else
  1489. $as_echo "$as_me: program exited with status $ac_status" >&5
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=$ac_status
  1493. fi
  1494. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1495. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1496. return $ac_retval
  1497. } # ac_fn_c_try_run
  1498. # ac_fn_c_check_func LINENO FUNC VAR
  1499. # ----------------------------------
  1500. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1501. ac_fn_c_check_func ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1505. $as_echo_n "checking for $2... " >&6; }
  1506. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1507. $as_echo_n "(cached) " >&6
  1508. else
  1509. if test x$gcc_no_link = xyes; then
  1510. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1511. fi
  1512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1513. /* end confdefs.h. */
  1514. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1515. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1516. #define $2 innocuous_$2
  1517. /* System header to define __stub macros and hopefully few prototypes,
  1518. which can conflict with char $2 (); below.
  1519. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1520. <limits.h> exists even on freestanding compilers. */
  1521. #ifdef __STDC__
  1522. # include <limits.h>
  1523. #else
  1524. # include <assert.h>
  1525. #endif
  1526. #undef $2
  1527. /* Override any GCC internal prototype to avoid an error.
  1528. Use char because int might match the return type of a GCC
  1529. builtin and then its argument prototype would still apply. */
  1530. #ifdef __cplusplus
  1531. extern "C"
  1532. #endif
  1533. char $2 ();
  1534. /* The GNU C library defines this for functions which it implements
  1535. to always fail with ENOSYS. Some functions are actually named
  1536. something starting with __ and the normal name is an alias. */
  1537. #if defined __stub_$2 || defined __stub___$2
  1538. choke me
  1539. #endif
  1540. int
  1541. main ()
  1542. {
  1543. return $2 ();
  1544. ;
  1545. return 0;
  1546. }
  1547. _ACEOF
  1548. if ac_fn_c_try_link "$LINENO"; then :
  1549. eval "$3=yes"
  1550. else
  1551. eval "$3=no"
  1552. fi
  1553. rm -f core conftest.err conftest.$ac_objext \
  1554. conftest$ac_exeext conftest.$ac_ext
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. } # ac_fn_c_check_func
  1561. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1562. # -------------------------------------------------------
  1563. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1564. # the include files in INCLUDES and setting the cache variable VAR
  1565. # accordingly.
  1566. ac_fn_c_check_header_mongrel ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1573. $as_echo_n "(cached) " >&6
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. else
  1579. # Is the header compilable?
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1581. $as_echo_n "checking $2 usability... " >&6; }
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. $4
  1585. #include <$2>
  1586. _ACEOF
  1587. if ac_fn_c_try_compile "$LINENO"; then :
  1588. ac_header_compiler=yes
  1589. else
  1590. ac_header_compiler=no
  1591. fi
  1592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1594. $as_echo "$ac_header_compiler" >&6; }
  1595. # Is the header present?
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1597. $as_echo_n "checking $2 presence... " >&6; }
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. #include <$2>
  1601. _ACEOF
  1602. if ac_fn_c_try_cpp "$LINENO"; then :
  1603. ac_header_preproc=yes
  1604. else
  1605. ac_header_preproc=no
  1606. fi
  1607. rm -f conftest.err conftest.$ac_ext
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1609. $as_echo "$ac_header_preproc" >&6; }
  1610. # So? What about this header?
  1611. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1612. yes:no: )
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1614. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1616. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1617. ;;
  1618. no:yes:* )
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1620. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1622. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1624. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1626. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1628. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1629. ;;
  1630. esac
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1632. $as_echo_n "checking for $2... " >&6; }
  1633. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1634. $as_echo_n "(cached) " >&6
  1635. else
  1636. eval "$3=\$ac_header_compiler"
  1637. fi
  1638. eval ac_res=\$$3
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1640. $as_echo "$ac_res" >&6; }
  1641. fi
  1642. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1643. } # ac_fn_c_check_header_mongrel
  1644. cat >config.log <<_ACEOF
  1645. This file contains any messages produced by compilers while
  1646. running configure, to aid debugging if configure makes a mistake.
  1647. It was created by package-unused $as_me version-unused, which was
  1648. generated by GNU Autoconf 2.64. Invocation command line was
  1649. $ $0 $@
  1650. _ACEOF
  1651. exec 5>>config.log
  1652. {
  1653. cat <<_ASUNAME
  1654. ## --------- ##
  1655. ## Platform. ##
  1656. ## --------- ##
  1657. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1658. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1659. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1660. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1661. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1662. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1663. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1664. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1665. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1666. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1667. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1668. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1669. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1670. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1671. _ASUNAME
  1672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1673. for as_dir in $PATH
  1674. do
  1675. IFS=$as_save_IFS
  1676. test -z "$as_dir" && as_dir=.
  1677. $as_echo "PATH: $as_dir"
  1678. done
  1679. IFS=$as_save_IFS
  1680. } >&5
  1681. cat >&5 <<_ACEOF
  1682. ## ----------- ##
  1683. ## Core tests. ##
  1684. ## ----------- ##
  1685. _ACEOF
  1686. # Keep a trace of the command line.
  1687. # Strip out --no-create and --no-recursion so they do not pile up.
  1688. # Strip out --silent because we don't want to record it for future runs.
  1689. # Also quote any args containing shell meta-characters.
  1690. # Make two passes to allow for proper duplicate-argument suppression.
  1691. ac_configure_args=
  1692. ac_configure_args0=
  1693. ac_configure_args1=
  1694. ac_must_keep_next=false
  1695. for ac_pass in 1 2
  1696. do
  1697. for ac_arg
  1698. do
  1699. case $ac_arg in
  1700. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1701. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1702. | -silent | --silent | --silen | --sile | --sil)
  1703. continue ;;
  1704. *\'*)
  1705. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1706. esac
  1707. case $ac_pass in
  1708. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1709. 2)
  1710. as_fn_append ac_configure_args1 " '$ac_arg'"
  1711. if test $ac_must_keep_next = true; then
  1712. ac_must_keep_next=false # Got value, back to normal.
  1713. else
  1714. case $ac_arg in
  1715. *=* | --config-cache | -C | -disable-* | --disable-* \
  1716. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1717. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1718. | -with-* | --with-* | -without-* | --without-* | --x)
  1719. case "$ac_configure_args0 " in
  1720. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1721. esac
  1722. ;;
  1723. -* ) ac_must_keep_next=true ;;
  1724. esac
  1725. fi
  1726. as_fn_append ac_configure_args " '$ac_arg'"
  1727. ;;
  1728. esac
  1729. done
  1730. done
  1731. { ac_configure_args0=; unset ac_configure_args0;}
  1732. { ac_configure_args1=; unset ac_configure_args1;}
  1733. # When interrupted or exit'd, cleanup temporary files, and complete
  1734. # config.log. We remove comments because anyway the quotes in there
  1735. # would cause problems or look ugly.
  1736. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1737. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1738. trap 'exit_status=$?
  1739. # Save into config.log some information that might help in debugging.
  1740. {
  1741. echo
  1742. cat <<\_ASBOX
  1743. ## ---------------- ##
  1744. ## Cache variables. ##
  1745. ## ---------------- ##
  1746. _ASBOX
  1747. echo
  1748. # The following way of writing the cache mishandles newlines in values,
  1749. (
  1750. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1751. eval ac_val=\$$ac_var
  1752. case $ac_val in #(
  1753. *${as_nl}*)
  1754. case $ac_var in #(
  1755. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1756. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1757. esac
  1758. case $ac_var in #(
  1759. _ | IFS | as_nl) ;; #(
  1760. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1761. *) { eval $ac_var=; unset $ac_var;} ;;
  1762. esac ;;
  1763. esac
  1764. done
  1765. (set) 2>&1 |
  1766. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1767. *${as_nl}ac_space=\ *)
  1768. sed -n \
  1769. "s/'\''/'\''\\\\'\'''\''/g;
  1770. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1771. ;; #(
  1772. *)
  1773. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1774. ;;
  1775. esac |
  1776. sort
  1777. )
  1778. echo
  1779. cat <<\_ASBOX
  1780. ## ----------------- ##
  1781. ## Output variables. ##
  1782. ## ----------------- ##
  1783. _ASBOX
  1784. echo
  1785. for ac_var in $ac_subst_vars
  1786. do
  1787. eval ac_val=\$$ac_var
  1788. case $ac_val in
  1789. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1790. esac
  1791. $as_echo "$ac_var='\''$ac_val'\''"
  1792. done | sort
  1793. echo
  1794. if test -n "$ac_subst_files"; then
  1795. cat <<\_ASBOX
  1796. ## ------------------- ##
  1797. ## File substitutions. ##
  1798. ## ------------------- ##
  1799. _ASBOX
  1800. echo
  1801. for ac_var in $ac_subst_files
  1802. do
  1803. eval ac_val=\$$ac_var
  1804. case $ac_val in
  1805. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1806. esac
  1807. $as_echo "$ac_var='\''$ac_val'\''"
  1808. done | sort
  1809. echo
  1810. fi
  1811. if test -s confdefs.h; then
  1812. cat <<\_ASBOX
  1813. ## ----------- ##
  1814. ## confdefs.h. ##
  1815. ## ----------- ##
  1816. _ASBOX
  1817. echo
  1818. cat confdefs.h
  1819. echo
  1820. fi
  1821. test "$ac_signal" != 0 &&
  1822. $as_echo "$as_me: caught signal $ac_signal"
  1823. $as_echo "$as_me: exit $exit_status"
  1824. } >&5
  1825. rm -f core *.core core.conftest.* &&
  1826. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1827. exit $exit_status
  1828. ' 0
  1829. for ac_signal in 1 2 13 15; do
  1830. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1831. done
  1832. ac_signal=0
  1833. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1834. rm -f -r conftest* confdefs.h
  1835. $as_echo "/* confdefs.h */" > confdefs.h
  1836. # Predefined preprocessor variables.
  1837. cat >>confdefs.h <<_ACEOF
  1838. #define PACKAGE_NAME "$PACKAGE_NAME"
  1839. _ACEOF
  1840. cat >>confdefs.h <<_ACEOF
  1841. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1842. _ACEOF
  1843. cat >>confdefs.h <<_ACEOF
  1844. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1845. _ACEOF
  1846. cat >>confdefs.h <<_ACEOF
  1847. #define PACKAGE_STRING "$PACKAGE_STRING"
  1848. _ACEOF
  1849. cat >>confdefs.h <<_ACEOF
  1850. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1851. _ACEOF
  1852. cat >>confdefs.h <<_ACEOF
  1853. #define PACKAGE_URL "$PACKAGE_URL"
  1854. _ACEOF
  1855. # Let the site file select an alternate cache file if it wants to.
  1856. # Prefer an explicitly selected file to automatically selected ones.
  1857. ac_site_file1=NONE
  1858. ac_site_file2=NONE
  1859. if test -n "$CONFIG_SITE"; then
  1860. ac_site_file1=$CONFIG_SITE
  1861. elif test "x$prefix" != xNONE; then
  1862. ac_site_file1=$prefix/share/config.site
  1863. ac_site_file2=$prefix/etc/config.site
  1864. else
  1865. ac_site_file1=$ac_default_prefix/share/config.site
  1866. ac_site_file2=$ac_default_prefix/etc/config.site
  1867. fi
  1868. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1869. do
  1870. test "x$ac_site_file" = xNONE && continue
  1871. if test -r "$ac_site_file"; then
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1873. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1874. sed 's/^/| /' "$ac_site_file" >&5
  1875. . "$ac_site_file"
  1876. fi
  1877. done
  1878. if test -r "$cache_file"; then
  1879. # Some versions of bash will fail to source /dev/null (special
  1880. # files actually), so we avoid doing that.
  1881. if test -f "$cache_file"; then
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1883. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1884. case $cache_file in
  1885. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1886. *) . "./$cache_file";;
  1887. esac
  1888. fi
  1889. else
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1891. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1892. >$cache_file
  1893. fi
  1894. # Check that the precious variables saved in the cache have kept the same
  1895. # value.
  1896. ac_cache_corrupted=false
  1897. for ac_var in $ac_precious_vars; do
  1898. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1899. eval ac_new_set=\$ac_env_${ac_var}_set
  1900. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1901. eval ac_new_val=\$ac_env_${ac_var}_value
  1902. case $ac_old_set,$ac_new_set in
  1903. set,)
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1905. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1906. ac_cache_corrupted=: ;;
  1907. ,set)
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1909. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1910. ac_cache_corrupted=: ;;
  1911. ,);;
  1912. *)
  1913. if test "x$ac_old_val" != "x$ac_new_val"; then
  1914. # differences in whitespace do not lead to failure.
  1915. ac_old_val_w=`echo x $ac_old_val`
  1916. ac_new_val_w=`echo x $ac_new_val`
  1917. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1919. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1920. ac_cache_corrupted=:
  1921. else
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1923. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1924. eval $ac_var=\$ac_old_val
  1925. fi
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1927. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1929. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1930. fi;;
  1931. esac
  1932. # Pass precious variables to config.status.
  1933. if test "$ac_new_set" = set; then
  1934. case $ac_new_val in
  1935. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1936. *) ac_arg=$ac_var=$ac_new_val ;;
  1937. esac
  1938. case " $ac_configure_args " in
  1939. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1940. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1941. esac
  1942. fi
  1943. done
  1944. if $ac_cache_corrupted; then
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1948. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1949. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1950. fi
  1951. ## -------------------- ##
  1952. ## Main body of script. ##
  1953. ## -------------------- ##
  1954. ac_ext=c
  1955. ac_cpp='$CPP $CPPFLAGS'
  1956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1959. ac_aux_dir=
  1960. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1961. for ac_t in install-sh install.sh shtool; do
  1962. if test -f "$ac_dir/$ac_t"; then
  1963. ac_aux_dir=$ac_dir
  1964. ac_install_sh="$ac_aux_dir/$ac_t -c"
  1965. break 2
  1966. fi
  1967. done
  1968. done
  1969. if test -z "$ac_aux_dir"; then
  1970. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1971. fi
  1972. # These three variables are undocumented and unsupported,
  1973. # and are intended to be withdrawn in a future Autoconf release.
  1974. # They can cause serious problems if a builder's source tree is in a directory
  1975. # whose full name contains unusual characters.
  1976. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1977. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1978. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1979. # Make sure we can run config.sub.
  1980. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1981. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1983. $as_echo_n "checking build system type... " >&6; }
  1984. if test "${ac_cv_build+set}" = set; then :
  1985. $as_echo_n "(cached) " >&6
  1986. else
  1987. ac_build_alias=$build_alias
  1988. test "x$ac_build_alias" = x &&
  1989. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1990. test "x$ac_build_alias" = x &&
  1991. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  1992. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1993. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1994. fi
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1996. $as_echo "$ac_cv_build" >&6; }
  1997. case $ac_cv_build in
  1998. *-*-*) ;;
  1999. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2000. esac
  2001. build=$ac_cv_build
  2002. ac_save_IFS=$IFS; IFS='-'
  2003. set x $ac_cv_build
  2004. shift
  2005. build_cpu=$1
  2006. build_vendor=$2
  2007. shift; shift
  2008. # Remember, the first character of IFS is used to create $*,
  2009. # except with old shells:
  2010. build_os=$*
  2011. IFS=$ac_save_IFS
  2012. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2013. case ${build_alias} in
  2014. "") build_noncanonical=${build} ;;
  2015. *) build_noncanonical=${build_alias} ;;
  2016. esac
  2017. case ${host_alias} in
  2018. "") host_noncanonical=${build_noncanonical} ;;
  2019. *) host_noncanonical=${host_alias} ;;
  2020. esac
  2021. case ${target_alias} in
  2022. "") target_noncanonical=${host_noncanonical} ;;
  2023. *) target_noncanonical=${target_alias} ;;
  2024. esac
  2025. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2026. # have matching libraries, they should use host libraries: Makefile.tpl
  2027. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2028. # However, they still use the build modules, because the corresponding
  2029. # host modules (e.g. bison) are only built for the host when bootstrap
  2030. # finishes. So:
  2031. # - build_subdir is where we find build modules, and never changes.
  2032. # - build_libsubdir is where we find build libraries, and can be overridden.
  2033. # Prefix 'build-' so this never conflicts with target_subdir.
  2034. build_subdir="build-${build_noncanonical}"
  2035. # Check whether --with-build-libsubdir was given.
  2036. if test "${with_build_libsubdir+set}" = set; then :
  2037. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2038. else
  2039. build_libsubdir="$build_subdir"
  2040. fi
  2041. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2042. if ( test $srcdir = . && test -d gcc ) \
  2043. || test -d $srcdir/../host-${host_noncanonical}; then
  2044. host_subdir="host-${host_noncanonical}"
  2045. else
  2046. host_subdir=.
  2047. fi
  2048. # No prefix.
  2049. target_subdir=${target_noncanonical}
  2050. # We need the following definitions because AC_PROG_LIBTOOL relies on them
  2051. PACKAGE=libobjc
  2052. # Version is pulled out to make it a bit easier to change using sed.
  2053. VERSION=4:0:0
  2054. # This works around the fact that libtool configuration may change LD
  2055. # for this particular configuration, but some shells, instead of
  2056. # keeping the changes in LD private, export them just because LD is
  2057. # exported.
  2058. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2059. # -------
  2060. # Options
  2061. # -------
  2062. # We use these options to decide which functions to include.
  2063. # Check whether --with-target-subdir was given.
  2064. if test "${with_target_subdir+set}" = set; then :
  2065. withval=$with_target_subdir;
  2066. fi
  2067. # Check whether --with-cross-host was given.
  2068. if test "${with_cross_host+set}" = set; then :
  2069. withval=$with_cross_host;
  2070. fi
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2072. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2073. # Check whether --enable-version-specific-runtime-libs was given.
  2074. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2075. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2076. yes) version_specific_libs=yes ;;
  2077. no) version_specific_libs=no ;;
  2078. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2079. esac
  2080. else
  2081. version_specific_libs=no
  2082. fi
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2084. $as_echo "$version_specific_libs" >&6; }
  2085. # Check whether --enable-objc-gc was given.
  2086. if test "${enable_objc_gc+set}" = set; then :
  2087. enableval=$enable_objc_gc; case $enable_objc_gc in
  2088. no)
  2089. OBJC_GCFLAGS=''
  2090. OBJC_BOEHM_GC=''
  2091. OBJC_BOEHM_GC_INCLUDES=''
  2092. ;;
  2093. *)
  2094. OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
  2095. OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
  2096. OBJC_BOEHM_GC_INCLUDES='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
  2097. ;;
  2098. esac
  2099. else
  2100. OBJC_GCFLAGS=''; OBJC_BOEHM_GC=''; OBJC_BOEHM_GC_INCLUDES=''
  2101. fi
  2102. # -----------
  2103. # Directories
  2104. # -----------
  2105. # Find the rest of the source tree framework.
  2106. # Default to --enable-multilib
  2107. # Check whether --enable-multilib was given.
  2108. if test "${enable_multilib+set}" = set; then :
  2109. enableval=$enable_multilib; case "$enableval" in
  2110. yes) multilib=yes ;;
  2111. no) multilib=no ;;
  2112. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2113. esac
  2114. else
  2115. multilib=yes
  2116. fi
  2117. # We may get other options which we leave undocumented:
  2118. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2119. # See config-ml.in if you want the gory details.
  2120. if test "$srcdir" = "."; then
  2121. if test "$with_target_subdir" != "."; then
  2122. multi_basedir="$srcdir/$with_multisrctop../.."
  2123. else
  2124. multi_basedir="$srcdir/$with_multisrctop.."
  2125. fi
  2126. else
  2127. multi_basedir="$srcdir/.."
  2128. fi
  2129. # Even if the default multilib is not a cross compilation,
  2130. # it may be that some of the other multilibs are.
  2131. if test $cross_compiling = no && test $multilib = yes \
  2132. && test "x${with_multisubdir}" != x ; then
  2133. cross_compiling=maybe
  2134. fi
  2135. ac_config_commands="$ac_config_commands default-1"
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2137. $as_echo_n "checking host system type... " >&6; }
  2138. if test "${ac_cv_host+set}" = set; then :
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. if test "x$host_alias" = x; then
  2142. ac_cv_host=$ac_cv_build
  2143. else
  2144. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2145. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2146. fi
  2147. fi
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2149. $as_echo "$ac_cv_host" >&6; }
  2150. case $ac_cv_host in
  2151. *-*-*) ;;
  2152. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2153. esac
  2154. host=$ac_cv_host
  2155. ac_save_IFS=$IFS; IFS='-'
  2156. set x $ac_cv_host
  2157. shift
  2158. host_cpu=$1
  2159. host_vendor=$2
  2160. shift; shift
  2161. # Remember, the first character of IFS is used to create $*,
  2162. # except with old shells:
  2163. host_os=$*
  2164. IFS=$ac_save_IFS
  2165. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2167. $as_echo_n "checking target system type... " >&6; }
  2168. if test "${ac_cv_target+set}" = set; then :
  2169. $as_echo_n "(cached) " >&6
  2170. else
  2171. if test "x$target_alias" = x; then
  2172. ac_cv_target=$ac_cv_host
  2173. else
  2174. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2175. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2176. fi
  2177. fi
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2179. $as_echo "$ac_cv_target" >&6; }
  2180. case $ac_cv_target in
  2181. *-*-*) ;;
  2182. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2183. esac
  2184. target=$ac_cv_target
  2185. ac_save_IFS=$IFS; IFS='-'
  2186. set x $ac_cv_target
  2187. shift
  2188. target_cpu=$1
  2189. target_vendor=$2
  2190. shift; shift
  2191. # Remember, the first character of IFS is used to create $*,
  2192. # except with old shells:
  2193. target_os=$*
  2194. IFS=$ac_save_IFS
  2195. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2196. # The aliases save the names the user supplied, while $host etc.
  2197. # will get canonicalized.
  2198. test -n "$target_alias" &&
  2199. test "$program_prefix$program_suffix$program_transform_name" = \
  2200. NONENONEs,x,x, &&
  2201. program_prefix=${target_alias}-
  2202. # Export source directory.
  2203. # These need to be absolute paths, yet at the same time need to
  2204. # canonicalize only relative paths, because then amd will not unmount
  2205. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  2206. case $srcdir in
  2207. \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
  2208. *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  2209. esac
  2210. # Calculate toolexeclibdir
  2211. # Also toolexecdir, though it's only used in toolexeclibdir
  2212. case ${version_specific_libs} in
  2213. yes)
  2214. # Need the gcc compiler version to know where to install libraries
  2215. # and header files if --enable-version-specific-runtime-libs option
  2216. # is selected.
  2217. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  2218. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2219. ;;
  2220. no)
  2221. if test -n "$with_cross_host" &&
  2222. test x"$with_cross_host" != x"no"; then
  2223. # Install a library built with a cross compiler in tooldir, not libdir.
  2224. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  2225. toolexeclibdir='$(toolexecdir)/lib'
  2226. else
  2227. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  2228. toolexeclibdir='$(libdir)'
  2229. fi
  2230. multi_os_directory=`$CC -print-multi-os-directory`
  2231. case $multi_os_directory in
  2232. .) ;; # Avoid trailing /.
  2233. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  2234. esac
  2235. ;;
  2236. esac
  2237. # Figure out if we want to name the include directory and the
  2238. # library name changes differently.
  2239. includedirname=include
  2240. libsuffix=
  2241. case "${host}" in
  2242. *-darwin*)
  2243. # Darwin is the only target so far that needs a different include directory.
  2244. includedirname=include-gnu-runtime
  2245. libsuffix=-gnu
  2246. ;;
  2247. esac
  2248. ac_config_headers="$ac_config_headers config.h"
  2249. # --------
  2250. # Programs
  2251. # --------
  2252. # We must force CC to /not/ be a precious variable; otherwise
  2253. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2254. # As a side effect, we have to subst CFLAGS ourselves.
  2255. ac_ext=c
  2256. ac_cpp='$CPP $CPPFLAGS'
  2257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2260. if test -n "$ac_tool_prefix"; then
  2261. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2262. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2264. $as_echo_n "checking for $ac_word... " >&6; }
  2265. if test "${ac_cv_prog_CC+set}" = set; then :
  2266. $as_echo_n "(cached) " >&6
  2267. else
  2268. if test -n "$CC"; then
  2269. ac_cv_prog_CC="$CC" # Let the user override the test.
  2270. else
  2271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2272. for as_dir in $PATH
  2273. do
  2274. IFS=$as_save_IFS
  2275. test -z "$as_dir" && as_dir=.
  2276. for ac_exec_ext in '' $ac_executable_extensions; do
  2277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2278. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2280. break 2
  2281. fi
  2282. done
  2283. done
  2284. IFS=$as_save_IFS
  2285. fi
  2286. fi
  2287. CC=$ac_cv_prog_CC
  2288. if test -n "$CC"; then
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2290. $as_echo "$CC" >&6; }
  2291. else
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2293. $as_echo "no" >&6; }
  2294. fi
  2295. fi
  2296. if test -z "$ac_cv_prog_CC"; then
  2297. ac_ct_CC=$CC
  2298. # Extract the first word of "gcc", so it can be a program name with args.
  2299. set dummy gcc; ac_word=$2
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2301. $as_echo_n "checking for $ac_word... " >&6; }
  2302. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2303. $as_echo_n "(cached) " >&6
  2304. else
  2305. if test -n "$ac_ct_CC"; then
  2306. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2307. else
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. for ac_exec_ext in '' $ac_executable_extensions; do
  2314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2315. ac_cv_prog_ac_ct_CC="gcc"
  2316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2317. break 2
  2318. fi
  2319. done
  2320. done
  2321. IFS=$as_save_IFS
  2322. fi
  2323. fi
  2324. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2325. if test -n "$ac_ct_CC"; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2327. $as_echo "$ac_ct_CC" >&6; }
  2328. else
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2330. $as_echo "no" >&6; }
  2331. fi
  2332. if test "x$ac_ct_CC" = x; then
  2333. CC=""
  2334. else
  2335. case $cross_compiling:$ac_tool_warned in
  2336. yes:)
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2339. ac_tool_warned=yes ;;
  2340. esac
  2341. CC=$ac_ct_CC
  2342. fi
  2343. else
  2344. CC="$ac_cv_prog_CC"
  2345. fi
  2346. if test -z "$CC"; then
  2347. if test -n "$ac_tool_prefix"; then
  2348. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2349. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2351. $as_echo_n "checking for $ac_word... " >&6; }
  2352. if test "${ac_cv_prog_CC+set}" = set; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. if test -n "$CC"; then
  2356. ac_cv_prog_CC="$CC" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2365. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. IFS=$as_save_IFS
  2372. fi
  2373. fi
  2374. CC=$ac_cv_prog_CC
  2375. if test -n "$CC"; then
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2377. $as_echo "$CC" >&6; }
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2380. $as_echo "no" >&6; }
  2381. fi
  2382. fi
  2383. fi
  2384. if test -z "$CC"; then
  2385. # Extract the first word of "cc", so it can be a program name with args.
  2386. set dummy cc; ac_word=$2
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2388. $as_echo_n "checking for $ac_word... " >&6; }
  2389. if test "${ac_cv_prog_CC+set}" = set; then :
  2390. $as_echo_n "(cached) " >&6
  2391. else
  2392. if test -n "$CC"; then
  2393. ac_cv_prog_CC="$CC" # Let the user override the test.
  2394. else
  2395. ac_prog_rejected=no
  2396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2397. for as_dir in $PATH
  2398. do
  2399. IFS=$as_save_IFS
  2400. test -z "$as_dir" && as_dir=.
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2403. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2404. ac_prog_rejected=yes
  2405. continue
  2406. fi
  2407. ac_cv_prog_CC="cc"
  2408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2409. break 2
  2410. fi
  2411. done
  2412. done
  2413. IFS=$as_save_IFS
  2414. if test $ac_prog_rejected = yes; then
  2415. # We found a bogon in the path, so make sure we never use it.
  2416. set dummy $ac_cv_prog_CC
  2417. shift
  2418. if test $# != 0; then
  2419. # We chose a different compiler from the bogus one.
  2420. # However, it has the same basename, so the bogon will be chosen
  2421. # first if we set CC to just the basename; use the full file name.
  2422. shift
  2423. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2424. fi
  2425. fi
  2426. fi
  2427. fi
  2428. CC=$ac_cv_prog_CC
  2429. if test -n "$CC"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2431. $as_echo "$CC" >&6; }
  2432. else
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. fi
  2437. if test -z "$CC"; then
  2438. if test -n "$ac_tool_prefix"; then
  2439. for ac_prog in cl.exe
  2440. do
  2441. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2442. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2444. $as_echo_n "checking for $ac_word... " >&6; }
  2445. if test "${ac_cv_prog_CC+set}" = set; then :
  2446. $as_echo_n "(cached) " >&6
  2447. else
  2448. if test -n "$CC"; then
  2449. ac_cv_prog_CC="$CC" # Let the user override the test.
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2458. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. fi
  2466. fi
  2467. CC=$ac_cv_prog_CC
  2468. if test -n "$CC"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2470. $as_echo "$CC" >&6; }
  2471. else
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. fi
  2475. test -n "$CC" && break
  2476. done
  2477. fi
  2478. if test -z "$CC"; then
  2479. ac_ct_CC=$CC
  2480. for ac_prog in cl.exe
  2481. do
  2482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2483. set dummy $ac_prog; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$ac_ct_CC"; then
  2490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2499. ac_cv_prog_ac_ct_CC="$ac_prog"
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2501. break 2
  2502. fi
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. fi
  2508. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2509. if test -n "$ac_ct_CC"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2511. $as_echo "$ac_ct_CC" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516. test -n "$ac_ct_CC" && break
  2517. done
  2518. if test "x$ac_ct_CC" = x; then
  2519. CC=""
  2520. else
  2521. case $cross_compiling:$ac_tool_warned in
  2522. yes:)
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2524. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2525. ac_tool_warned=yes ;;
  2526. esac
  2527. CC=$ac_ct_CC
  2528. fi
  2529. fi
  2530. fi
  2531. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2533. as_fn_error "no acceptable C compiler found in \$PATH
  2534. See \`config.log' for more details." "$LINENO" 5; }
  2535. # Provide some information about the compiler.
  2536. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2537. set X $ac_compile
  2538. ac_compiler=$2
  2539. for ac_option in --version -v -V -qversion; do
  2540. { { ac_try="$ac_compiler $ac_option >&5"
  2541. case "(($ac_try" in
  2542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2543. *) ac_try_echo=$ac_try;;
  2544. esac
  2545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2546. $as_echo "$ac_try_echo"; } >&5
  2547. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2548. ac_status=$?
  2549. if test -s conftest.err; then
  2550. sed '10a\
  2551. ... rest of stderr output deleted ...
  2552. 10q' conftest.err >conftest.er1
  2553. cat conftest.er1 >&5
  2554. rm -f conftest.er1 conftest.err
  2555. fi
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }
  2558. done
  2559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2560. /* end confdefs.h. */
  2561. int
  2562. main ()
  2563. {
  2564. ;
  2565. return 0;
  2566. }
  2567. _ACEOF
  2568. # FIXME: Cleanup?
  2569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2570. (eval $ac_link) 2>&5
  2571. ac_status=$?
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2573. test $ac_status = 0; }; then :
  2574. gcc_no_link=no
  2575. else
  2576. gcc_no_link=yes
  2577. fi
  2578. if test x$gcc_no_link = xyes; then
  2579. # Setting cross_compile will disable run tests; it will
  2580. # also disable AC_CHECK_FILE but that's generally
  2581. # correct if we can't link.
  2582. cross_compiling=yes
  2583. EXEEXT=
  2584. else
  2585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2586. /* end confdefs.h. */
  2587. int
  2588. main ()
  2589. {
  2590. ;
  2591. return 0;
  2592. }
  2593. _ACEOF
  2594. ac_clean_files_save=$ac_clean_files
  2595. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2596. # Try to create an executable without -o first, disregard a.out.
  2597. # It will help us diagnose broken compilers, and finding out an intuition
  2598. # of exeext.
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2600. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2601. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2602. # The possible output files:
  2603. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2604. ac_rmfiles=
  2605. for ac_file in $ac_files
  2606. do
  2607. case $ac_file in
  2608. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2609. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2610. esac
  2611. done
  2612. rm -f $ac_rmfiles
  2613. if { { ac_try="$ac_link_default"
  2614. case "(($ac_try" in
  2615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2616. *) ac_try_echo=$ac_try;;
  2617. esac
  2618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2619. $as_echo "$ac_try_echo"; } >&5
  2620. (eval "$ac_link_default") 2>&5
  2621. ac_status=$?
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2623. test $ac_status = 0; }; then :
  2624. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2625. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2626. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2627. # so that the user can short-circuit this test for compilers unknown to
  2628. # Autoconf.
  2629. for ac_file in $ac_files ''
  2630. do
  2631. test -f "$ac_file" || continue
  2632. case $ac_file in
  2633. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2634. ;;
  2635. [ab].out )
  2636. # We found the default executable, but exeext='' is most
  2637. # certainly right.
  2638. break;;
  2639. *.* )
  2640. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2641. then :; else
  2642. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2643. fi
  2644. # We set ac_cv_exeext here because the later test for it is not
  2645. # safe: cross compilers may not add the suffix if given an `-o'
  2646. # argument, so we may need to know it at that point already.
  2647. # Even if this section looks crufty: it has the advantage of
  2648. # actually working.
  2649. break;;
  2650. * )
  2651. break;;
  2652. esac
  2653. done
  2654. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2655. else
  2656. ac_file=''
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2659. $as_echo "$ac_file" >&6; }
  2660. if test -z "$ac_file"; then :
  2661. $as_echo "$as_me: failed program was:" >&5
  2662. sed 's/^/| /' conftest.$ac_ext >&5
  2663. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2664. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2665. { as_fn_set_status 77
  2666. as_fn_error "C compiler cannot create executables
  2667. See \`config.log' for more details." "$LINENO" 5; }; }
  2668. fi
  2669. ac_exeext=$ac_cv_exeext
  2670. # Check that the compiler produces executables we can run. If not, either
  2671. # the compiler is broken, or we cross compile.
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2673. $as_echo_n "checking whether the C compiler works... " >&6; }
  2674. # If not cross compiling, check that we can run a simple program.
  2675. if test "$cross_compiling" != yes; then
  2676. if { ac_try='./$ac_file'
  2677. { { case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo"; } >&5
  2683. (eval "$ac_try") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2686. test $ac_status = 0; }; }; then
  2687. cross_compiling=no
  2688. else
  2689. if test "$cross_compiling" = maybe; then
  2690. cross_compiling=yes
  2691. else
  2692. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2693. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2694. as_fn_error "cannot run C compiled programs.
  2695. If you meant to cross compile, use \`--host'.
  2696. See \`config.log' for more details." "$LINENO" 5; }
  2697. fi
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2703. ac_clean_files=$ac_clean_files_save
  2704. # Check that the compiler produces executables we can run. If not, either
  2705. # the compiler is broken, or we cross compile.
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2707. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2709. $as_echo "$cross_compiling" >&6; }
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2711. $as_echo_n "checking for suffix of executables... " >&6; }
  2712. if { { ac_try="$ac_link"
  2713. case "(($ac_try" in
  2714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2715. *) ac_try_echo=$ac_try;;
  2716. esac
  2717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2718. $as_echo "$ac_try_echo"; } >&5
  2719. (eval "$ac_link") 2>&5
  2720. ac_status=$?
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2722. test $ac_status = 0; }; then :
  2723. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2724. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2725. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2726. # `rm'.
  2727. for ac_file in conftest.exe conftest conftest.*; do
  2728. test -f "$ac_file" || continue
  2729. case $ac_file in
  2730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2731. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2732. break;;
  2733. * ) break;;
  2734. esac
  2735. done
  2736. else
  2737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2739. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2740. See \`config.log' for more details." "$LINENO" 5; }
  2741. fi
  2742. rm -f conftest$ac_cv_exeext
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2744. $as_echo "$ac_cv_exeext" >&6; }
  2745. rm -f conftest.$ac_ext
  2746. EXEEXT=$ac_cv_exeext
  2747. ac_exeext=$EXEEXT
  2748. fi
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2750. $as_echo_n "checking for suffix of object files... " >&6; }
  2751. if test "${ac_cv_objext+set}" = set; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2755. /* end confdefs.h. */
  2756. int
  2757. main ()
  2758. {
  2759. ;
  2760. return 0;
  2761. }
  2762. _ACEOF
  2763. rm -f conftest.o conftest.obj
  2764. if { { ac_try="$ac_compile"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2770. $as_echo "$ac_try_echo"; } >&5
  2771. (eval "$ac_compile") 2>&5
  2772. ac_status=$?
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2774. test $ac_status = 0; }; then :
  2775. for ac_file in conftest.o conftest.obj conftest.*; do
  2776. test -f "$ac_file" || continue;
  2777. case $ac_file in
  2778. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2779. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2780. break;;
  2781. esac
  2782. done
  2783. else
  2784. $as_echo "$as_me: failed program was:" >&5
  2785. sed 's/^/| /' conftest.$ac_ext >&5
  2786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2788. as_fn_error "cannot compute suffix of object files: cannot compile
  2789. See \`config.log' for more details." "$LINENO" 5; }
  2790. fi
  2791. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2794. $as_echo "$ac_cv_objext" >&6; }
  2795. OBJEXT=$ac_cv_objext
  2796. ac_objext=$OBJEXT
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2798. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2799. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2800. $as_echo_n "(cached) " >&6
  2801. else
  2802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2803. /* end confdefs.h. */
  2804. int
  2805. main ()
  2806. {
  2807. #ifndef __GNUC__
  2808. choke me
  2809. #endif
  2810. ;
  2811. return 0;
  2812. }
  2813. _ACEOF
  2814. if ac_fn_c_try_compile "$LINENO"; then :
  2815. ac_compiler_gnu=yes
  2816. else
  2817. ac_compiler_gnu=no
  2818. fi
  2819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2820. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2821. fi
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2823. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2824. if test $ac_compiler_gnu = yes; then
  2825. GCC=yes
  2826. else
  2827. GCC=
  2828. fi
  2829. ac_test_CFLAGS=${CFLAGS+set}
  2830. ac_save_CFLAGS=$CFLAGS
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2832. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2833. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. ac_save_c_werror_flag=$ac_c_werror_flag
  2837. ac_c_werror_flag=yes
  2838. ac_cv_prog_cc_g=no
  2839. CFLAGS="-g"
  2840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2841. /* end confdefs.h. */
  2842. int
  2843. main ()
  2844. {
  2845. ;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. if ac_fn_c_try_compile "$LINENO"; then :
  2850. ac_cv_prog_cc_g=yes
  2851. else
  2852. CFLAGS=""
  2853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end confdefs.h. */
  2855. int
  2856. main ()
  2857. {
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. if ac_fn_c_try_compile "$LINENO"; then :
  2863. else
  2864. ac_c_werror_flag=$ac_save_c_werror_flag
  2865. CFLAGS="-g"
  2866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2867. /* end confdefs.h. */
  2868. int
  2869. main ()
  2870. {
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. if ac_fn_c_try_compile "$LINENO"; then :
  2876. ac_cv_prog_cc_g=yes
  2877. fi
  2878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2879. fi
  2880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. fi
  2882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2883. ac_c_werror_flag=$ac_save_c_werror_flag
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2886. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2887. if test "$ac_test_CFLAGS" = set; then
  2888. CFLAGS=$ac_save_CFLAGS
  2889. elif test $ac_cv_prog_cc_g = yes; then
  2890. if test "$GCC" = yes; then
  2891. CFLAGS="-g -O2"
  2892. else
  2893. CFLAGS="-g"
  2894. fi
  2895. else
  2896. if test "$GCC" = yes; then
  2897. CFLAGS="-O2"
  2898. else
  2899. CFLAGS=
  2900. fi
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2903. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2904. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. ac_cv_prog_cc_c89=no
  2908. ac_save_CC=$CC
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. #include <stdarg.h>
  2912. #include <stdio.h>
  2913. #include <sys/types.h>
  2914. #include <sys/stat.h>
  2915. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2916. struct buf { int x; };
  2917. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2918. static char *e (p, i)
  2919. char **p;
  2920. int i;
  2921. {
  2922. return p[i];
  2923. }
  2924. static char *f (char * (*g) (char **, int), char **p, ...)
  2925. {
  2926. char *s;
  2927. va_list v;
  2928. va_start (v,p);
  2929. s = g (p, va_arg (v,int));
  2930. va_end (v);
  2931. return s;
  2932. }
  2933. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2934. function prototypes and stuff, but not '\xHH' hex character constants.
  2935. These don't provoke an error unfortunately, instead are silently treated
  2936. as 'x'. The following induces an error, until -std is added to get
  2937. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2938. array size at least. It's necessary to write '\x00'==0 to get something
  2939. that's true only with -std. */
  2940. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2941. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2942. inside strings and character constants. */
  2943. #define FOO(x) 'x'
  2944. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2945. int test (int i, double x);
  2946. struct s1 {int (*f) (int a);};
  2947. struct s2 {int (*f) (double a);};
  2948. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2949. int argc;
  2950. char **argv;
  2951. int
  2952. main ()
  2953. {
  2954. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2955. ;
  2956. return 0;
  2957. }
  2958. _ACEOF
  2959. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2960. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2961. do
  2962. CC="$ac_save_CC $ac_arg"
  2963. if ac_fn_c_try_compile "$LINENO"; then :
  2964. ac_cv_prog_cc_c89=$ac_arg
  2965. fi
  2966. rm -f core conftest.err conftest.$ac_objext
  2967. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2968. done
  2969. rm -f conftest.$ac_ext
  2970. CC=$ac_save_CC
  2971. fi
  2972. # AC_CACHE_VAL
  2973. case "x$ac_cv_prog_cc_c89" in
  2974. x)
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2976. $as_echo "none needed" >&6; } ;;
  2977. xno)
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2979. $as_echo "unsupported" >&6; } ;;
  2980. *)
  2981. CC="$CC $ac_cv_prog_cc_c89"
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2983. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2984. esac
  2985. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2986. fi
  2987. ac_ext=c
  2988. ac_cpp='$CPP $CPPFLAGS'
  2989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2992. # extra LD Flags which are required for targets
  2993. case $host in
  2994. *-cygwin* | *-mingw*)
  2995. # 'host' will be top-level target in the case of a target lib,
  2996. # we must compare to with_cross_host to decide if this is a native
  2997. # or cross-compiler and select where to install dlls appropriately.
  2998. if test -n "$with_cross_host" &&
  2999. test x"$with_cross_host" != x"no"; then
  3000. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  3001. else
  3002. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  3003. fi
  3004. ;;
  3005. *)
  3006. lt_host_flags=
  3007. ;;
  3008. esac
  3009. case "${host}" in
  3010. *-darwin*)
  3011. # Darwin needs -single_module when linking libobjc
  3012. extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
  3013. ;;
  3014. *-cygwin*|*-mingw*)
  3015. # Tell libtool to build DLLs on Windows
  3016. extra_ldflags_libobjc='$(lt_host_flags)'
  3017. ;;
  3018. esac
  3019. if test -n "$ac_tool_prefix"; then
  3020. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3021. set dummy ${ac_tool_prefix}as; ac_word=$2
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3023. $as_echo_n "checking for $ac_word... " >&6; }
  3024. if test "${ac_cv_prog_AS+set}" = set; then :
  3025. $as_echo_n "(cached) " >&6
  3026. else
  3027. if test -n "$AS"; then
  3028. ac_cv_prog_AS="$AS" # Let the user override the test.
  3029. else
  3030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3031. for as_dir in $PATH
  3032. do
  3033. IFS=$as_save_IFS
  3034. test -z "$as_dir" && as_dir=.
  3035. for ac_exec_ext in '' $ac_executable_extensions; do
  3036. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3037. ac_cv_prog_AS="${ac_tool_prefix}as"
  3038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3039. break 2
  3040. fi
  3041. done
  3042. done
  3043. IFS=$as_save_IFS
  3044. fi
  3045. fi
  3046. AS=$ac_cv_prog_AS
  3047. if test -n "$AS"; then
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3049. $as_echo "$AS" >&6; }
  3050. else
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3052. $as_echo "no" >&6; }
  3053. fi
  3054. fi
  3055. if test -z "$ac_cv_prog_AS"; then
  3056. ac_ct_AS=$AS
  3057. # Extract the first word of "as", so it can be a program name with args.
  3058. set dummy as; ac_word=$2
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3060. $as_echo_n "checking for $ac_word... " >&6; }
  3061. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. if test -n "$ac_ct_AS"; then
  3065. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3066. else
  3067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3068. for as_dir in $PATH
  3069. do
  3070. IFS=$as_save_IFS
  3071. test -z "$as_dir" && as_dir=.
  3072. for ac_exec_ext in '' $ac_executable_extensions; do
  3073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3074. ac_cv_prog_ac_ct_AS="as"
  3075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3076. break 2
  3077. fi
  3078. done
  3079. done
  3080. IFS=$as_save_IFS
  3081. fi
  3082. fi
  3083. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3084. if test -n "$ac_ct_AS"; then
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3086. $as_echo "$ac_ct_AS" >&6; }
  3087. else
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3089. $as_echo "no" >&6; }
  3090. fi
  3091. if test "x$ac_ct_AS" = x; then
  3092. AS=""
  3093. else
  3094. case $cross_compiling:$ac_tool_warned in
  3095. yes:)
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3097. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3098. ac_tool_warned=yes ;;
  3099. esac
  3100. AS=$ac_ct_AS
  3101. fi
  3102. else
  3103. AS="$ac_cv_prog_AS"
  3104. fi
  3105. if test -n "$ac_tool_prefix"; then
  3106. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3107. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. $as_echo_n "checking for $ac_word... " >&6; }
  3110. if test "${ac_cv_prog_AR+set}" = set; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. if test -n "$AR"; then
  3114. ac_cv_prog_AR="$AR" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3123. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. IFS=$as_save_IFS
  3130. fi
  3131. fi
  3132. AR=$ac_cv_prog_AR
  3133. if test -n "$AR"; then
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3135. $as_echo "$AR" >&6; }
  3136. else
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. fi
  3140. fi
  3141. if test -z "$ac_cv_prog_AR"; then
  3142. ac_ct_AR=$AR
  3143. # Extract the first word of "ar", so it can be a program name with args.
  3144. set dummy ar; ac_word=$2
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3146. $as_echo_n "checking for $ac_word... " >&6; }
  3147. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  3148. $as_echo_n "(cached) " >&6
  3149. else
  3150. if test -n "$ac_ct_AR"; then
  3151. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3152. else
  3153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3154. for as_dir in $PATH
  3155. do
  3156. IFS=$as_save_IFS
  3157. test -z "$as_dir" && as_dir=.
  3158. for ac_exec_ext in '' $ac_executable_extensions; do
  3159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3160. ac_cv_prog_ac_ct_AR="ar"
  3161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3162. break 2
  3163. fi
  3164. done
  3165. done
  3166. IFS=$as_save_IFS
  3167. fi
  3168. fi
  3169. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3170. if test -n "$ac_ct_AR"; then
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3172. $as_echo "$ac_ct_AR" >&6; }
  3173. else
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3175. $as_echo "no" >&6; }
  3176. fi
  3177. if test "x$ac_ct_AR" = x; then
  3178. AR=""
  3179. else
  3180. case $cross_compiling:$ac_tool_warned in
  3181. yes:)
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3184. ac_tool_warned=yes ;;
  3185. esac
  3186. AR=$ac_ct_AR
  3187. fi
  3188. else
  3189. AR="$ac_cv_prog_AR"
  3190. fi
  3191. if test -n "$ac_tool_prefix"; then
  3192. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3193. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3195. $as_echo_n "checking for $ac_word... " >&6; }
  3196. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. if test -n "$RANLIB"; then
  3200. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3201. else
  3202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3203. for as_dir in $PATH
  3204. do
  3205. IFS=$as_save_IFS
  3206. test -z "$as_dir" && as_dir=.
  3207. for ac_exec_ext in '' $ac_executable_extensions; do
  3208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3209. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3211. break 2
  3212. fi
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. fi
  3217. fi
  3218. RANLIB=$ac_cv_prog_RANLIB
  3219. if test -n "$RANLIB"; then
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3221. $as_echo "$RANLIB" >&6; }
  3222. else
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3224. $as_echo "no" >&6; }
  3225. fi
  3226. fi
  3227. if test -z "$ac_cv_prog_RANLIB"; then
  3228. ac_ct_RANLIB=$RANLIB
  3229. # Extract the first word of "ranlib", so it can be a program name with args.
  3230. set dummy ranlib; ac_word=$2
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3232. $as_echo_n "checking for $ac_word... " >&6; }
  3233. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. if test -n "$ac_ct_RANLIB"; then
  3237. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. test -z "$as_dir" && as_dir=.
  3244. for ac_exec_ext in '' $ac_executable_extensions; do
  3245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3246. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3248. break 2
  3249. fi
  3250. done
  3251. done
  3252. IFS=$as_save_IFS
  3253. fi
  3254. fi
  3255. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3256. if test -n "$ac_ct_RANLIB"; then
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3258. $as_echo "$ac_ct_RANLIB" >&6; }
  3259. else
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3261. $as_echo "no" >&6; }
  3262. fi
  3263. if test "x$ac_ct_RANLIB" = x; then
  3264. RANLIB=":"
  3265. else
  3266. case $cross_compiling:$ac_tool_warned in
  3267. yes:)
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3270. ac_tool_warned=yes ;;
  3271. esac
  3272. RANLIB=$ac_ct_RANLIB
  3273. fi
  3274. else
  3275. RANLIB="$ac_cv_prog_RANLIB"
  3276. fi
  3277. # Find a good install program. We prefer a C program (faster),
  3278. # so one script is as good as another. But avoid the broken or
  3279. # incompatible versions:
  3280. # SysV /etc/install, /usr/sbin/install
  3281. # SunOS /usr/etc/install
  3282. # IRIX /sbin/install
  3283. # AIX /bin/install
  3284. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3285. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3286. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3287. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3288. # OS/2's system install, which has a completely different semantic
  3289. # ./install, which can be erroneously created by make from ./install.sh.
  3290. # Reject install programs that cannot install multiple files.
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3292. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3293. if test -z "$INSTALL"; then
  3294. if test "${ac_cv_path_install+set}" = set; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3298. for as_dir in $PATH
  3299. do
  3300. IFS=$as_save_IFS
  3301. test -z "$as_dir" && as_dir=.
  3302. # Account for people who put trailing slashes in PATH elements.
  3303. case $as_dir/ in #((
  3304. ./ | .// | /[cC]/* | \
  3305. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3306. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3307. /usr/ucb/* ) ;;
  3308. *)
  3309. # OSF1 and SCO ODT 3.0 have their own names for install.
  3310. # Don't use installbsd from OSF since it installs stuff as root
  3311. # by default.
  3312. for ac_prog in ginstall scoinst install; do
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3315. if test $ac_prog = install &&
  3316. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3317. # AIX install. It has an incompatible calling convention.
  3318. :
  3319. elif test $ac_prog = install &&
  3320. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3321. # program-specific install script used by HP pwplus--don't use.
  3322. :
  3323. else
  3324. rm -rf conftest.one conftest.two conftest.dir
  3325. echo one > conftest.one
  3326. echo two > conftest.two
  3327. mkdir conftest.dir
  3328. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3329. test -s conftest.one && test -s conftest.two &&
  3330. test -s conftest.dir/conftest.one &&
  3331. test -s conftest.dir/conftest.two
  3332. then
  3333. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3334. break 3
  3335. fi
  3336. fi
  3337. fi
  3338. done
  3339. done
  3340. ;;
  3341. esac
  3342. done
  3343. IFS=$as_save_IFS
  3344. rm -rf conftest.one conftest.two conftest.dir
  3345. fi
  3346. if test "${ac_cv_path_install+set}" = set; then
  3347. INSTALL=$ac_cv_path_install
  3348. else
  3349. # As a last resort, use the slow shell script. Don't cache a
  3350. # value for INSTALL within a source directory, because that will
  3351. # break other packages using the cache if that directory is
  3352. # removed, or if the value is a relative name.
  3353. INSTALL=$ac_install_sh
  3354. fi
  3355. fi
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3357. $as_echo "$INSTALL" >&6; }
  3358. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3359. # It thinks the first close brace ends the variable substitution.
  3360. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3361. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3362. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3364. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3365. # Check whether --enable-maintainer-mode was given.
  3366. if test "${enable_maintainer_mode+set}" = set; then :
  3367. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3368. else
  3369. USE_MAINTAINER_MODE=no
  3370. fi
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3372. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3373. if test $USE_MAINTAINER_MODE = yes; then
  3374. MAINTAINER_MODE_TRUE=
  3375. MAINTAINER_MODE_FALSE='#'
  3376. else
  3377. MAINTAINER_MODE_TRUE='#'
  3378. MAINTAINER_MODE_FALSE=
  3379. fi
  3380. MAINT=$MAINTAINER_MODE_TRUE
  3381. # Enable Win32 DLL on MS Windows - FIXME
  3382. enable_win32_dll=yes
  3383. case $host in
  3384. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3385. if test -n "$ac_tool_prefix"; then
  3386. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}as; ac_word=$2
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. $as_echo_n "checking for $ac_word... " >&6; }
  3390. if test "${ac_cv_prog_AS+set}" = set; then :
  3391. $as_echo_n "(cached) " >&6
  3392. else
  3393. if test -n "$AS"; then
  3394. ac_cv_prog_AS="$AS" # Let the user override the test.
  3395. else
  3396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3397. for as_dir in $PATH
  3398. do
  3399. IFS=$as_save_IFS
  3400. test -z "$as_dir" && as_dir=.
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3403. ac_cv_prog_AS="${ac_tool_prefix}as"
  3404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3405. break 2
  3406. fi
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410. fi
  3411. fi
  3412. AS=$ac_cv_prog_AS
  3413. if test -n "$AS"; then
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3415. $as_echo "$AS" >&6; }
  3416. else
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3418. $as_echo "no" >&6; }
  3419. fi
  3420. fi
  3421. if test -z "$ac_cv_prog_AS"; then
  3422. ac_ct_AS=$AS
  3423. # Extract the first word of "as", so it can be a program name with args.
  3424. set dummy as; ac_word=$2
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3426. $as_echo_n "checking for $ac_word... " >&6; }
  3427. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3428. $as_echo_n "(cached) " >&6
  3429. else
  3430. if test -n "$ac_ct_AS"; then
  3431. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3432. else
  3433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3434. for as_dir in $PATH
  3435. do
  3436. IFS=$as_save_IFS
  3437. test -z "$as_dir" && as_dir=.
  3438. for ac_exec_ext in '' $ac_executable_extensions; do
  3439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3440. ac_cv_prog_ac_ct_AS="as"
  3441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3442. break 2
  3443. fi
  3444. done
  3445. done
  3446. IFS=$as_save_IFS
  3447. fi
  3448. fi
  3449. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3450. if test -n "$ac_ct_AS"; then
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3452. $as_echo "$ac_ct_AS" >&6; }
  3453. else
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3455. $as_echo "no" >&6; }
  3456. fi
  3457. if test "x$ac_ct_AS" = x; then
  3458. AS="false"
  3459. else
  3460. case $cross_compiling:$ac_tool_warned in
  3461. yes:)
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3464. ac_tool_warned=yes ;;
  3465. esac
  3466. AS=$ac_ct_AS
  3467. fi
  3468. else
  3469. AS="$ac_cv_prog_AS"
  3470. fi
  3471. if test -n "$ac_tool_prefix"; then
  3472. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3473. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3475. $as_echo_n "checking for $ac_word... " >&6; }
  3476. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -n "$DLLTOOL"; then
  3480. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3489. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. fi
  3497. fi
  3498. DLLTOOL=$ac_cv_prog_DLLTOOL
  3499. if test -n "$DLLTOOL"; then
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3501. $as_echo "$DLLTOOL" >&6; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. fi
  3506. fi
  3507. if test -z "$ac_cv_prog_DLLTOOL"; then
  3508. ac_ct_DLLTOOL=$DLLTOOL
  3509. # Extract the first word of "dlltool", so it can be a program name with args.
  3510. set dummy dlltool; ac_word=$2
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3512. $as_echo_n "checking for $ac_word... " >&6; }
  3513. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if test -n "$ac_ct_DLLTOOL"; then
  3517. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3518. else
  3519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3520. for as_dir in $PATH
  3521. do
  3522. IFS=$as_save_IFS
  3523. test -z "$as_dir" && as_dir=.
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3526. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3528. break 2
  3529. fi
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. fi
  3534. fi
  3535. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3536. if test -n "$ac_ct_DLLTOOL"; then
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3538. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3539. else
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. $as_echo "no" >&6; }
  3542. fi
  3543. if test "x$ac_ct_DLLTOOL" = x; then
  3544. DLLTOOL="false"
  3545. else
  3546. case $cross_compiling:$ac_tool_warned in
  3547. yes:)
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3550. ac_tool_warned=yes ;;
  3551. esac
  3552. DLLTOOL=$ac_ct_DLLTOOL
  3553. fi
  3554. else
  3555. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3556. fi
  3557. if test -n "$ac_tool_prefix"; then
  3558. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3559. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3561. $as_echo_n "checking for $ac_word... " >&6; }
  3562. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -n "$OBJDUMP"; then
  3566. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3567. else
  3568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3569. for as_dir in $PATH
  3570. do
  3571. IFS=$as_save_IFS
  3572. test -z "$as_dir" && as_dir=.
  3573. for ac_exec_ext in '' $ac_executable_extensions; do
  3574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3575. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3577. break 2
  3578. fi
  3579. done
  3580. done
  3581. IFS=$as_save_IFS
  3582. fi
  3583. fi
  3584. OBJDUMP=$ac_cv_prog_OBJDUMP
  3585. if test -n "$OBJDUMP"; then
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3587. $as_echo "$OBJDUMP" >&6; }
  3588. else
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3590. $as_echo "no" >&6; }
  3591. fi
  3592. fi
  3593. if test -z "$ac_cv_prog_OBJDUMP"; then
  3594. ac_ct_OBJDUMP=$OBJDUMP
  3595. # Extract the first word of "objdump", so it can be a program name with args.
  3596. set dummy objdump; ac_word=$2
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3598. $as_echo_n "checking for $ac_word... " >&6; }
  3599. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if test -n "$ac_ct_OBJDUMP"; then
  3603. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3604. else
  3605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3606. for as_dir in $PATH
  3607. do
  3608. IFS=$as_save_IFS
  3609. test -z "$as_dir" && as_dir=.
  3610. for ac_exec_ext in '' $ac_executable_extensions; do
  3611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3612. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3614. break 2
  3615. fi
  3616. done
  3617. done
  3618. IFS=$as_save_IFS
  3619. fi
  3620. fi
  3621. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3622. if test -n "$ac_ct_OBJDUMP"; then
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3624. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3625. else
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3627. $as_echo "no" >&6; }
  3628. fi
  3629. if test "x$ac_ct_OBJDUMP" = x; then
  3630. OBJDUMP="false"
  3631. else
  3632. case $cross_compiling:$ac_tool_warned in
  3633. yes:)
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3636. ac_tool_warned=yes ;;
  3637. esac
  3638. OBJDUMP=$ac_ct_OBJDUMP
  3639. fi
  3640. else
  3641. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3642. fi
  3643. ;;
  3644. esac
  3645. test -z "$AS" && AS=as
  3646. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3647. test -z "$OBJDUMP" && OBJDUMP=objdump
  3648. case `pwd` in
  3649. *\ * | *\ *)
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3651. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3652. esac
  3653. macro_version='2.2.7a'
  3654. macro_revision='1.3134'
  3655. ltmain="$ac_aux_dir/ltmain.sh"
  3656. # Backslashify metacharacters that are still active within
  3657. # double-quoted strings.
  3658. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3659. # Same as above, but do not quote variable references.
  3660. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3661. # Sed substitution to delay expansion of an escaped shell variable in a
  3662. # double_quote_subst'ed string.
  3663. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3664. # Sed substitution to delay expansion of an escaped single quote.
  3665. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3666. # Sed substitution to avoid accidental globbing in evaled expressions
  3667. no_glob_subst='s/\*/\\\*/g'
  3668. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3669. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3670. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3672. $as_echo_n "checking how to print strings... " >&6; }
  3673. # Test print first, because it will be a builtin if present.
  3674. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3675. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3676. ECHO='print -r --'
  3677. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3678. ECHO='printf %s\n'
  3679. else
  3680. # Use this function as a fallback that always works.
  3681. func_fallback_echo ()
  3682. {
  3683. eval 'cat <<_LTECHO_EOF
  3684. $1
  3685. _LTECHO_EOF'
  3686. }
  3687. ECHO='func_fallback_echo'
  3688. fi
  3689. # func_echo_all arg...
  3690. # Invoke $ECHO with all args, space-separated.
  3691. func_echo_all ()
  3692. {
  3693. $ECHO ""
  3694. }
  3695. case "$ECHO" in
  3696. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3697. $as_echo "printf" >&6; } ;;
  3698. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3699. $as_echo "print -r" >&6; } ;;
  3700. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3701. $as_echo "cat" >&6; } ;;
  3702. esac
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3704. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3705. if test "${ac_cv_path_SED+set}" = set; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3709. for ac_i in 1 2 3 4 5 6 7; do
  3710. ac_script="$ac_script$as_nl$ac_script"
  3711. done
  3712. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3713. { ac_script=; unset ac_script;}
  3714. if test -z "$SED"; then
  3715. ac_path_SED_found=false
  3716. # Loop through the user's path and test for each of PROGNAME-LIST
  3717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3718. for as_dir in $PATH
  3719. do
  3720. IFS=$as_save_IFS
  3721. test -z "$as_dir" && as_dir=.
  3722. for ac_prog in sed gsed; do
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3725. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3726. # Check for GNU ac_path_SED and select it if it is found.
  3727. # Check for GNU $ac_path_SED
  3728. case `"$ac_path_SED" --version 2>&1` in
  3729. *GNU*)
  3730. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3731. *)
  3732. ac_count=0
  3733. $as_echo_n 0123456789 >"conftest.in"
  3734. while :
  3735. do
  3736. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3737. mv "conftest.tmp" "conftest.in"
  3738. cp "conftest.in" "conftest.nl"
  3739. $as_echo '' >> "conftest.nl"
  3740. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3741. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3742. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3743. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3744. # Best one so far, save it but keep looking for a better one
  3745. ac_cv_path_SED="$ac_path_SED"
  3746. ac_path_SED_max=$ac_count
  3747. fi
  3748. # 10*(2^10) chars as input seems more than enough
  3749. test $ac_count -gt 10 && break
  3750. done
  3751. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3752. esac
  3753. $ac_path_SED_found && break 3
  3754. done
  3755. done
  3756. done
  3757. IFS=$as_save_IFS
  3758. if test -z "$ac_cv_path_SED"; then
  3759. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3760. fi
  3761. else
  3762. ac_cv_path_SED=$SED
  3763. fi
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3766. $as_echo "$ac_cv_path_SED" >&6; }
  3767. SED="$ac_cv_path_SED"
  3768. rm -f conftest.sed
  3769. test -z "$SED" && SED=sed
  3770. Xsed="$SED -e 1s/^X//"
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3772. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3773. if test "${ac_cv_path_GREP+set}" = set; then :
  3774. $as_echo_n "(cached) " >&6
  3775. else
  3776. if test -z "$GREP"; then
  3777. ac_path_GREP_found=false
  3778. # Loop through the user's path and test for each of PROGNAME-LIST
  3779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3780. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3781. do
  3782. IFS=$as_save_IFS
  3783. test -z "$as_dir" && as_dir=.
  3784. for ac_prog in grep ggrep; do
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3787. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3788. # Check for GNU ac_path_GREP and select it if it is found.
  3789. # Check for GNU $ac_path_GREP
  3790. case `"$ac_path_GREP" --version 2>&1` in
  3791. *GNU*)
  3792. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3793. *)
  3794. ac_count=0
  3795. $as_echo_n 0123456789 >"conftest.in"
  3796. while :
  3797. do
  3798. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3799. mv "conftest.tmp" "conftest.in"
  3800. cp "conftest.in" "conftest.nl"
  3801. $as_echo 'GREP' >> "conftest.nl"
  3802. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3803. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3804. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3805. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3806. # Best one so far, save it but keep looking for a better one
  3807. ac_cv_path_GREP="$ac_path_GREP"
  3808. ac_path_GREP_max=$ac_count
  3809. fi
  3810. # 10*(2^10) chars as input seems more than enough
  3811. test $ac_count -gt 10 && break
  3812. done
  3813. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3814. esac
  3815. $ac_path_GREP_found && break 3
  3816. done
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. if test -z "$ac_cv_path_GREP"; then
  3821. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3822. fi
  3823. else
  3824. ac_cv_path_GREP=$GREP
  3825. fi
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3828. $as_echo "$ac_cv_path_GREP" >&6; }
  3829. GREP="$ac_cv_path_GREP"
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3831. $as_echo_n "checking for egrep... " >&6; }
  3832. if test "${ac_cv_path_EGREP+set}" = set; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3836. then ac_cv_path_EGREP="$GREP -E"
  3837. else
  3838. if test -z "$EGREP"; then
  3839. ac_path_EGREP_found=false
  3840. # Loop through the user's path and test for each of PROGNAME-LIST
  3841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3842. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3843. do
  3844. IFS=$as_save_IFS
  3845. test -z "$as_dir" && as_dir=.
  3846. for ac_prog in egrep; do
  3847. for ac_exec_ext in '' $ac_executable_extensions; do
  3848. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3849. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3850. # Check for GNU ac_path_EGREP and select it if it is found.
  3851. # Check for GNU $ac_path_EGREP
  3852. case `"$ac_path_EGREP" --version 2>&1` in
  3853. *GNU*)
  3854. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3855. *)
  3856. ac_count=0
  3857. $as_echo_n 0123456789 >"conftest.in"
  3858. while :
  3859. do
  3860. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3861. mv "conftest.tmp" "conftest.in"
  3862. cp "conftest.in" "conftest.nl"
  3863. $as_echo 'EGREP' >> "conftest.nl"
  3864. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3865. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3866. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3867. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3868. # Best one so far, save it but keep looking for a better one
  3869. ac_cv_path_EGREP="$ac_path_EGREP"
  3870. ac_path_EGREP_max=$ac_count
  3871. fi
  3872. # 10*(2^10) chars as input seems more than enough
  3873. test $ac_count -gt 10 && break
  3874. done
  3875. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3876. esac
  3877. $ac_path_EGREP_found && break 3
  3878. done
  3879. done
  3880. done
  3881. IFS=$as_save_IFS
  3882. if test -z "$ac_cv_path_EGREP"; then
  3883. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3884. fi
  3885. else
  3886. ac_cv_path_EGREP=$EGREP
  3887. fi
  3888. fi
  3889. fi
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3891. $as_echo "$ac_cv_path_EGREP" >&6; }
  3892. EGREP="$ac_cv_path_EGREP"
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3894. $as_echo_n "checking for fgrep... " >&6; }
  3895. if test "${ac_cv_path_FGREP+set}" = set; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3899. then ac_cv_path_FGREP="$GREP -F"
  3900. else
  3901. if test -z "$FGREP"; then
  3902. ac_path_FGREP_found=false
  3903. # Loop through the user's path and test for each of PROGNAME-LIST
  3904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3905. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3906. do
  3907. IFS=$as_save_IFS
  3908. test -z "$as_dir" && as_dir=.
  3909. for ac_prog in fgrep; do
  3910. for ac_exec_ext in '' $ac_executable_extensions; do
  3911. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3912. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3913. # Check for GNU ac_path_FGREP and select it if it is found.
  3914. # Check for GNU $ac_path_FGREP
  3915. case `"$ac_path_FGREP" --version 2>&1` in
  3916. *GNU*)
  3917. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3918. *)
  3919. ac_count=0
  3920. $as_echo_n 0123456789 >"conftest.in"
  3921. while :
  3922. do
  3923. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3924. mv "conftest.tmp" "conftest.in"
  3925. cp "conftest.in" "conftest.nl"
  3926. $as_echo 'FGREP' >> "conftest.nl"
  3927. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3928. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3929. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3930. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3931. # Best one so far, save it but keep looking for a better one
  3932. ac_cv_path_FGREP="$ac_path_FGREP"
  3933. ac_path_FGREP_max=$ac_count
  3934. fi
  3935. # 10*(2^10) chars as input seems more than enough
  3936. test $ac_count -gt 10 && break
  3937. done
  3938. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3939. esac
  3940. $ac_path_FGREP_found && break 3
  3941. done
  3942. done
  3943. done
  3944. IFS=$as_save_IFS
  3945. if test -z "$ac_cv_path_FGREP"; then
  3946. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3947. fi
  3948. else
  3949. ac_cv_path_FGREP=$FGREP
  3950. fi
  3951. fi
  3952. fi
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3954. $as_echo "$ac_cv_path_FGREP" >&6; }
  3955. FGREP="$ac_cv_path_FGREP"
  3956. test -z "$GREP" && GREP=grep
  3957. # Check whether --with-gnu-ld was given.
  3958. if test "${with_gnu_ld+set}" = set; then :
  3959. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3960. else
  3961. with_gnu_ld=no
  3962. fi
  3963. ac_prog=ld
  3964. if test "$GCC" = yes; then
  3965. # Check if gcc -print-prog-name=ld gives a path.
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3967. $as_echo_n "checking for ld used by $CC... " >&6; }
  3968. case $host in
  3969. *-*-mingw*)
  3970. # gcc leaves a trailing carriage return which upsets mingw
  3971. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3972. *)
  3973. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3974. esac
  3975. case $ac_prog in
  3976. # Accept absolute paths.
  3977. [\\/]* | ?:[\\/]*)
  3978. re_direlt='/[^/][^/]*/\.\./'
  3979. # Canonicalize the pathname of ld
  3980. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3981. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3982. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3983. done
  3984. test -z "$LD" && LD="$ac_prog"
  3985. ;;
  3986. "")
  3987. # If it fails, then pretend we aren't using GCC.
  3988. ac_prog=ld
  3989. ;;
  3990. *)
  3991. # If it is relative, then search for the first ld in PATH.
  3992. with_gnu_ld=unknown
  3993. ;;
  3994. esac
  3995. elif test "$with_gnu_ld" = yes; then
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3997. $as_echo_n "checking for GNU ld... " >&6; }
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4000. $as_echo_n "checking for non-GNU ld... " >&6; }
  4001. fi
  4002. if test "${lt_cv_path_LD+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -z "$LD"; then
  4006. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4007. for ac_dir in $PATH; do
  4008. IFS="$lt_save_ifs"
  4009. test -z "$ac_dir" && ac_dir=.
  4010. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4011. lt_cv_path_LD="$ac_dir/$ac_prog"
  4012. # Check to see if the program is GNU ld. I'd rather use --version,
  4013. # but apparently some variants of GNU ld only accept -v.
  4014. # Break only if it was the GNU/non-GNU ld that we prefer.
  4015. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4016. *GNU* | *'with BFD'*)
  4017. test "$with_gnu_ld" != no && break
  4018. ;;
  4019. *)
  4020. test "$with_gnu_ld" != yes && break
  4021. ;;
  4022. esac
  4023. fi
  4024. done
  4025. IFS="$lt_save_ifs"
  4026. else
  4027. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4028. fi
  4029. fi
  4030. LD="$lt_cv_path_LD"
  4031. if test -n "$LD"; then
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4033. $as_echo "$LD" >&6; }
  4034. else
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4036. $as_echo "no" >&6; }
  4037. fi
  4038. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4040. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4041. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4042. $as_echo_n "(cached) " >&6
  4043. else
  4044. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4045. case `$LD -v 2>&1 </dev/null` in
  4046. *GNU* | *'with BFD'*)
  4047. lt_cv_prog_gnu_ld=yes
  4048. ;;
  4049. *)
  4050. lt_cv_prog_gnu_ld=no
  4051. ;;
  4052. esac
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4055. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4056. with_gnu_ld=$lt_cv_prog_gnu_ld
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4058. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4059. if test "${lt_cv_path_NM+set}" = set; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test -n "$NM"; then
  4063. # Let the user override the test.
  4064. lt_cv_path_NM="$NM"
  4065. else
  4066. lt_nm_to_check="${ac_tool_prefix}nm"
  4067. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4068. lt_nm_to_check="$lt_nm_to_check nm"
  4069. fi
  4070. for lt_tmp_nm in $lt_nm_to_check; do
  4071. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4072. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4073. IFS="$lt_save_ifs"
  4074. test -z "$ac_dir" && ac_dir=.
  4075. tmp_nm="$ac_dir/$lt_tmp_nm"
  4076. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4077. # Check to see if the nm accepts a BSD-compat flag.
  4078. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4079. # nm: unknown option "B" ignored
  4080. # Tru64's nm complains that /dev/null is an invalid object file
  4081. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4082. */dev/null* | *'Invalid file or object type'*)
  4083. lt_cv_path_NM="$tmp_nm -B"
  4084. break
  4085. ;;
  4086. *)
  4087. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4088. */dev/null*)
  4089. lt_cv_path_NM="$tmp_nm -p"
  4090. break
  4091. ;;
  4092. *)
  4093. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4094. continue # so that we can try to find one that supports BSD flags
  4095. ;;
  4096. esac
  4097. ;;
  4098. esac
  4099. fi
  4100. done
  4101. IFS="$lt_save_ifs"
  4102. done
  4103. : ${lt_cv_path_NM=no}
  4104. fi
  4105. fi
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4107. $as_echo "$lt_cv_path_NM" >&6; }
  4108. if test "$lt_cv_path_NM" != "no"; then
  4109. NM="$lt_cv_path_NM"
  4110. else
  4111. # Didn't find any BSD compatible name lister, look for dumpbin.
  4112. if test -n "$DUMPBIN"; then :
  4113. # Let the user override the test.
  4114. else
  4115. if test -n "$ac_tool_prefix"; then
  4116. for ac_prog in dumpbin "link -dump"
  4117. do
  4118. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4119. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4121. $as_echo_n "checking for $ac_word... " >&6; }
  4122. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. if test -n "$DUMPBIN"; then
  4126. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4127. else
  4128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4129. for as_dir in $PATH
  4130. do
  4131. IFS=$as_save_IFS
  4132. test -z "$as_dir" && as_dir=.
  4133. for ac_exec_ext in '' $ac_executable_extensions; do
  4134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4135. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4137. break 2
  4138. fi
  4139. done
  4140. done
  4141. IFS=$as_save_IFS
  4142. fi
  4143. fi
  4144. DUMPBIN=$ac_cv_prog_DUMPBIN
  4145. if test -n "$DUMPBIN"; then
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4147. $as_echo "$DUMPBIN" >&6; }
  4148. else
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4150. $as_echo "no" >&6; }
  4151. fi
  4152. test -n "$DUMPBIN" && break
  4153. done
  4154. fi
  4155. if test -z "$DUMPBIN"; then
  4156. ac_ct_DUMPBIN=$DUMPBIN
  4157. for ac_prog in dumpbin "link -dump"
  4158. do
  4159. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4160. set dummy $ac_prog; ac_word=$2
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4162. $as_echo_n "checking for $ac_word... " >&6; }
  4163. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. if test -n "$ac_ct_DUMPBIN"; then
  4167. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4168. else
  4169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4170. for as_dir in $PATH
  4171. do
  4172. IFS=$as_save_IFS
  4173. test -z "$as_dir" && as_dir=.
  4174. for ac_exec_ext in '' $ac_executable_extensions; do
  4175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4176. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4178. break 2
  4179. fi
  4180. done
  4181. done
  4182. IFS=$as_save_IFS
  4183. fi
  4184. fi
  4185. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4186. if test -n "$ac_ct_DUMPBIN"; then
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4188. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4189. else
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4191. $as_echo "no" >&6; }
  4192. fi
  4193. test -n "$ac_ct_DUMPBIN" && break
  4194. done
  4195. if test "x$ac_ct_DUMPBIN" = x; then
  4196. DUMPBIN=":"
  4197. else
  4198. case $cross_compiling:$ac_tool_warned in
  4199. yes:)
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4202. ac_tool_warned=yes ;;
  4203. esac
  4204. DUMPBIN=$ac_ct_DUMPBIN
  4205. fi
  4206. fi
  4207. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4208. *COFF*)
  4209. DUMPBIN="$DUMPBIN -symbols"
  4210. ;;
  4211. *)
  4212. DUMPBIN=:
  4213. ;;
  4214. esac
  4215. fi
  4216. if test "$DUMPBIN" != ":"; then
  4217. NM="$DUMPBIN"
  4218. fi
  4219. fi
  4220. test -z "$NM" && NM=nm
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4222. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4223. if test "${lt_cv_nm_interface+set}" = set; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. lt_cv_nm_interface="BSD nm"
  4227. echo "int some_variable = 0;" > conftest.$ac_ext
  4228. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4229. (eval "$ac_compile" 2>conftest.err)
  4230. cat conftest.err >&5
  4231. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4232. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4233. cat conftest.err >&5
  4234. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4235. cat conftest.out >&5
  4236. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4237. lt_cv_nm_interface="MS dumpbin"
  4238. fi
  4239. rm -f conftest*
  4240. fi
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4242. $as_echo "$lt_cv_nm_interface" >&6; }
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4244. $as_echo_n "checking whether ln -s works... " >&6; }
  4245. LN_S=$as_ln_s
  4246. if test "$LN_S" = "ln -s"; then
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4248. $as_echo "yes" >&6; }
  4249. else
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4251. $as_echo "no, using $LN_S" >&6; }
  4252. fi
  4253. # find the maximum length of command line arguments
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4255. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4256. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4257. $as_echo_n "(cached) " >&6
  4258. else
  4259. i=0
  4260. teststring="ABCD"
  4261. case $build_os in
  4262. msdosdjgpp*)
  4263. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4264. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4265. # during glob expansion). Even if it were fixed, the result of this
  4266. # check would be larger than it should be.
  4267. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4268. ;;
  4269. gnu*)
  4270. # Under GNU Hurd, this test is not required because there is
  4271. # no limit to the length of command line arguments.
  4272. # Libtool will interpret -1 as no limit whatsoever
  4273. lt_cv_sys_max_cmd_len=-1;
  4274. ;;
  4275. cygwin* | mingw* | cegcc*)
  4276. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4277. # about 5 minutes as the teststring grows exponentially.
  4278. # Worse, since 9x/ME are not pre-emptively multitasking,
  4279. # you end up with a "frozen" computer, even though with patience
  4280. # the test eventually succeeds (with a max line length of 256k).
  4281. # Instead, let's just punt: use the minimum linelength reported by
  4282. # all of the supported platforms: 8192 (on NT/2K/XP).
  4283. lt_cv_sys_max_cmd_len=8192;
  4284. ;;
  4285. mint*)
  4286. # On MiNT this can take a long time and run out of memory.
  4287. lt_cv_sys_max_cmd_len=8192;
  4288. ;;
  4289. amigaos*)
  4290. # On AmigaOS with pdksh, this test takes hours, literally.
  4291. # So we just punt and use a minimum line length of 8192.
  4292. lt_cv_sys_max_cmd_len=8192;
  4293. ;;
  4294. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4295. # This has been around since 386BSD, at least. Likely further.
  4296. if test -x /sbin/sysctl; then
  4297. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4298. elif test -x /usr/sbin/sysctl; then
  4299. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4300. else
  4301. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4302. fi
  4303. # And add a safety zone
  4304. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4305. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4306. ;;
  4307. interix*)
  4308. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4309. lt_cv_sys_max_cmd_len=196608
  4310. ;;
  4311. osf*)
  4312. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4313. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4314. # nice to cause kernel panics so lets avoid the loop below.
  4315. # First set a reasonable default.
  4316. lt_cv_sys_max_cmd_len=16384
  4317. #
  4318. if test -x /sbin/sysconfig; then
  4319. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4320. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4321. esac
  4322. fi
  4323. ;;
  4324. sco3.2v5*)
  4325. lt_cv_sys_max_cmd_len=102400
  4326. ;;
  4327. sysv5* | sco5v6* | sysv4.2uw2*)
  4328. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4329. if test -n "$kargmax"; then
  4330. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4331. else
  4332. lt_cv_sys_max_cmd_len=32768
  4333. fi
  4334. ;;
  4335. *)
  4336. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4337. if test -n "$lt_cv_sys_max_cmd_len"; then
  4338. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4339. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4340. else
  4341. # Make teststring a little bigger before we do anything with it.
  4342. # a 1K string should be a reasonable start.
  4343. for i in 1 2 3 4 5 6 7 8 ; do
  4344. teststring=$teststring$teststring
  4345. done
  4346. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4347. # If test is not a shell built-in, we'll probably end up computing a
  4348. # maximum length that is only half of the actual maximum length, but
  4349. # we can't tell.
  4350. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4351. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4352. test $i != 17 # 1/2 MB should be enough
  4353. do
  4354. i=`expr $i + 1`
  4355. teststring=$teststring$teststring
  4356. done
  4357. # Only check the string length outside the loop.
  4358. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4359. teststring=
  4360. # Add a significant safety factor because C++ compilers can tack on
  4361. # massive amounts of additional arguments before passing them to the
  4362. # linker. It appears as though 1/2 is a usable value.
  4363. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4364. fi
  4365. ;;
  4366. esac
  4367. fi
  4368. if test -n $lt_cv_sys_max_cmd_len ; then
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4370. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4371. else
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4373. $as_echo "none" >&6; }
  4374. fi
  4375. max_cmd_len=$lt_cv_sys_max_cmd_len
  4376. : ${CP="cp -f"}
  4377. : ${MV="mv -f"}
  4378. : ${RM="rm -f"}
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4380. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4381. # Try some XSI features
  4382. xsi_shell=no
  4383. ( _lt_dummy="a/b/c"
  4384. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4385. = c,a/b,, \
  4386. && eval 'test $(( 1 + 1 )) -eq 2 \
  4387. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4388. && xsi_shell=yes
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4390. $as_echo "$xsi_shell" >&6; }
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4392. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4393. lt_shell_append=no
  4394. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4395. >/dev/null 2>&1 \
  4396. && lt_shell_append=yes
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4398. $as_echo "$lt_shell_append" >&6; }
  4399. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4400. lt_unset=unset
  4401. else
  4402. lt_unset=false
  4403. fi
  4404. # test EBCDIC or ASCII
  4405. case `echo X|tr X '\101'` in
  4406. A) # ASCII based system
  4407. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4408. lt_SP2NL='tr \040 \012'
  4409. lt_NL2SP='tr \015\012 \040\040'
  4410. ;;
  4411. *) # EBCDIC based system
  4412. lt_SP2NL='tr \100 \n'
  4413. lt_NL2SP='tr \r\n \100\100'
  4414. ;;
  4415. esac
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4417. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4418. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. lt_cv_ld_reload_flag='-r'
  4422. fi
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4424. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4425. reload_flag=$lt_cv_ld_reload_flag
  4426. case $reload_flag in
  4427. "" | " "*) ;;
  4428. *) reload_flag=" $reload_flag" ;;
  4429. esac
  4430. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4431. case $host_os in
  4432. darwin*)
  4433. if test "$GCC" = yes; then
  4434. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4435. else
  4436. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4437. fi
  4438. ;;
  4439. esac
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$OBJDUMP"; then
  4449. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. OBJDUMP=$ac_cv_prog_OBJDUMP
  4468. if test -n "$OBJDUMP"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4470. $as_echo "$OBJDUMP" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_OBJDUMP"; then
  4477. ac_ct_OBJDUMP=$OBJDUMP
  4478. # Extract the first word of "objdump", so it can be a program name with args.
  4479. set dummy objdump; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_OBJDUMP"; then
  4486. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4505. if test -n "$ac_ct_OBJDUMP"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4507. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_OBJDUMP" = x; then
  4513. OBJDUMP="false"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. OBJDUMP=$ac_ct_OBJDUMP
  4522. fi
  4523. else
  4524. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4525. fi
  4526. test -z "$OBJDUMP" && OBJDUMP=objdump
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4528. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4529. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4533. lt_cv_file_magic_test_file=
  4534. lt_cv_deplibs_check_method='unknown'
  4535. # Need to set the preceding variable on all platforms that support
  4536. # interlibrary dependencies.
  4537. # 'none' -- dependencies not supported.
  4538. # `unknown' -- same as none, but documents that we really don't know.
  4539. # 'pass_all' -- all dependencies passed with no checks.
  4540. # 'test_compile' -- check by making test program.
  4541. # 'file_magic [[regex]]' -- check by looking for files in library path
  4542. # which responds to the $file_magic_cmd with a given extended regex.
  4543. # If you have `file' or equivalent on your system and you're not sure
  4544. # whether `pass_all' will *always* work, you probably want this one.
  4545. case $host_os in
  4546. aix[4-9]*)
  4547. lt_cv_deplibs_check_method=pass_all
  4548. ;;
  4549. beos*)
  4550. lt_cv_deplibs_check_method=pass_all
  4551. ;;
  4552. bsdi[45]*)
  4553. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4554. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4555. lt_cv_file_magic_test_file=/shlib/libc.so
  4556. ;;
  4557. cygwin*)
  4558. # func_win32_libid is a shell function defined in ltmain.sh
  4559. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4560. lt_cv_file_magic_cmd='func_win32_libid'
  4561. ;;
  4562. mingw* | pw32*)
  4563. # Base MSYS/MinGW do not provide the 'file' command needed by
  4564. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4565. # unless we find 'file', for example because we are cross-compiling.
  4566. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4567. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4568. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4569. lt_cv_file_magic_cmd='func_win32_libid'
  4570. else
  4571. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4572. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4573. fi
  4574. ;;
  4575. cegcc*)
  4576. # use the weaker test based on 'objdump'. See mingw*.
  4577. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4578. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4579. ;;
  4580. darwin* | rhapsody*)
  4581. lt_cv_deplibs_check_method=pass_all
  4582. ;;
  4583. freebsd* | dragonfly*)
  4584. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4585. case $host_cpu in
  4586. i*86 )
  4587. # Not sure whether the presence of OpenBSD here was a mistake.
  4588. # Let's accept both of them until this is cleared up.
  4589. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4590. lt_cv_file_magic_cmd=/usr/bin/file
  4591. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4592. ;;
  4593. esac
  4594. else
  4595. lt_cv_deplibs_check_method=pass_all
  4596. fi
  4597. ;;
  4598. gnu*)
  4599. lt_cv_deplibs_check_method=pass_all
  4600. ;;
  4601. haiku*)
  4602. lt_cv_deplibs_check_method=pass_all
  4603. ;;
  4604. hpux10.20* | hpux11*)
  4605. lt_cv_file_magic_cmd=/usr/bin/file
  4606. case $host_cpu in
  4607. ia64*)
  4608. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4609. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4610. ;;
  4611. hppa*64*)
  4612. 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]'
  4613. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4614. ;;
  4615. *)
  4616. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4617. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4618. ;;
  4619. esac
  4620. ;;
  4621. interix[3-9]*)
  4622. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4623. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4624. ;;
  4625. irix5* | irix6* | nonstopux*)
  4626. case $LD in
  4627. *-32|*"-32 ") libmagic=32-bit;;
  4628. *-n32|*"-n32 ") libmagic=N32;;
  4629. *-64|*"-64 ") libmagic=64-bit;;
  4630. *) libmagic=never-match;;
  4631. esac
  4632. lt_cv_deplibs_check_method=pass_all
  4633. ;;
  4634. # This must be Linux ELF.
  4635. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4636. lt_cv_deplibs_check_method=pass_all
  4637. ;;
  4638. netbsd*)
  4639. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4640. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4641. else
  4642. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4643. fi
  4644. ;;
  4645. newos6*)
  4646. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4647. lt_cv_file_magic_cmd=/usr/bin/file
  4648. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4649. ;;
  4650. *nto* | *qnx*)
  4651. lt_cv_deplibs_check_method=pass_all
  4652. ;;
  4653. openbsd*)
  4654. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4655. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4656. else
  4657. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4658. fi
  4659. ;;
  4660. osf3* | osf4* | osf5*)
  4661. lt_cv_deplibs_check_method=pass_all
  4662. ;;
  4663. rdos*)
  4664. lt_cv_deplibs_check_method=pass_all
  4665. ;;
  4666. solaris*)
  4667. lt_cv_deplibs_check_method=pass_all
  4668. ;;
  4669. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4670. lt_cv_deplibs_check_method=pass_all
  4671. ;;
  4672. sysv4 | sysv4.3*)
  4673. case $host_vendor in
  4674. motorola)
  4675. 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]'
  4676. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4677. ;;
  4678. ncr)
  4679. lt_cv_deplibs_check_method=pass_all
  4680. ;;
  4681. sequent)
  4682. lt_cv_file_magic_cmd='/bin/file'
  4683. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4684. ;;
  4685. sni)
  4686. lt_cv_file_magic_cmd='/bin/file'
  4687. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4688. lt_cv_file_magic_test_file=/lib/libc.so
  4689. ;;
  4690. siemens)
  4691. lt_cv_deplibs_check_method=pass_all
  4692. ;;
  4693. pc)
  4694. lt_cv_deplibs_check_method=pass_all
  4695. ;;
  4696. esac
  4697. ;;
  4698. tpf*)
  4699. lt_cv_deplibs_check_method=pass_all
  4700. ;;
  4701. esac
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4704. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4705. file_magic_cmd=$lt_cv_file_magic_cmd
  4706. deplibs_check_method=$lt_cv_deplibs_check_method
  4707. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4708. if test -n "$ac_tool_prefix"; then
  4709. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4710. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. $as_echo_n "checking for $ac_word... " >&6; }
  4713. if test "${ac_cv_prog_AR+set}" = set; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. if test -n "$AR"; then
  4717. ac_cv_prog_AR="$AR" # Let the user override the test.
  4718. else
  4719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4720. for as_dir in $PATH
  4721. do
  4722. IFS=$as_save_IFS
  4723. test -z "$as_dir" && as_dir=.
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4726. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. IFS=$as_save_IFS
  4733. fi
  4734. fi
  4735. AR=$ac_cv_prog_AR
  4736. if test -n "$AR"; then
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4738. $as_echo "$AR" >&6; }
  4739. else
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. $as_echo "no" >&6; }
  4742. fi
  4743. fi
  4744. if test -z "$ac_cv_prog_AR"; then
  4745. ac_ct_AR=$AR
  4746. # Extract the first word of "ar", so it can be a program name with args.
  4747. set dummy ar; ac_word=$2
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4749. $as_echo_n "checking for $ac_word... " >&6; }
  4750. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. if test -n "$ac_ct_AR"; then
  4754. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4755. else
  4756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4757. for as_dir in $PATH
  4758. do
  4759. IFS=$as_save_IFS
  4760. test -z "$as_dir" && as_dir=.
  4761. for ac_exec_ext in '' $ac_executable_extensions; do
  4762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4763. ac_cv_prog_ac_ct_AR="ar"
  4764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4765. break 2
  4766. fi
  4767. done
  4768. done
  4769. IFS=$as_save_IFS
  4770. fi
  4771. fi
  4772. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4773. if test -n "$ac_ct_AR"; then
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4775. $as_echo "$ac_ct_AR" >&6; }
  4776. else
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4778. $as_echo "no" >&6; }
  4779. fi
  4780. if test "x$ac_ct_AR" = x; then
  4781. AR="false"
  4782. else
  4783. case $cross_compiling:$ac_tool_warned in
  4784. yes:)
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4787. ac_tool_warned=yes ;;
  4788. esac
  4789. AR=$ac_ct_AR
  4790. fi
  4791. else
  4792. AR="$ac_cv_prog_AR"
  4793. fi
  4794. test -z "$AR" && AR=ar
  4795. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4796. if test -n "$ac_tool_prefix"; then
  4797. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4798. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4800. $as_echo_n "checking for $ac_word... " >&6; }
  4801. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -n "$STRIP"; then
  4805. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4806. else
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4814. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4816. break 2
  4817. fi
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. fi
  4822. fi
  4823. STRIP=$ac_cv_prog_STRIP
  4824. if test -n "$STRIP"; then
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4826. $as_echo "$STRIP" >&6; }
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. fi
  4832. if test -z "$ac_cv_prog_STRIP"; then
  4833. ac_ct_STRIP=$STRIP
  4834. # Extract the first word of "strip", so it can be a program name with args.
  4835. set dummy strip; ac_word=$2
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4837. $as_echo_n "checking for $ac_word... " >&6; }
  4838. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. if test -n "$ac_ct_STRIP"; then
  4842. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4843. else
  4844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4845. for as_dir in $PATH
  4846. do
  4847. IFS=$as_save_IFS
  4848. test -z "$as_dir" && as_dir=.
  4849. for ac_exec_ext in '' $ac_executable_extensions; do
  4850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4851. ac_cv_prog_ac_ct_STRIP="strip"
  4852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4853. break 2
  4854. fi
  4855. done
  4856. done
  4857. IFS=$as_save_IFS
  4858. fi
  4859. fi
  4860. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4861. if test -n "$ac_ct_STRIP"; then
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4863. $as_echo "$ac_ct_STRIP" >&6; }
  4864. else
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4866. $as_echo "no" >&6; }
  4867. fi
  4868. if test "x$ac_ct_STRIP" = x; then
  4869. STRIP=":"
  4870. else
  4871. case $cross_compiling:$ac_tool_warned in
  4872. yes:)
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4875. ac_tool_warned=yes ;;
  4876. esac
  4877. STRIP=$ac_ct_STRIP
  4878. fi
  4879. else
  4880. STRIP="$ac_cv_prog_STRIP"
  4881. fi
  4882. test -z "$STRIP" && STRIP=:
  4883. if test -n "$ac_tool_prefix"; then
  4884. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4885. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4887. $as_echo_n "checking for $ac_word... " >&6; }
  4888. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. if test -n "$RANLIB"; then
  4892. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4901. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. RANLIB=$ac_cv_prog_RANLIB
  4911. if test -n "$RANLIB"; then
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4913. $as_echo "$RANLIB" >&6; }
  4914. else
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4916. $as_echo "no" >&6; }
  4917. fi
  4918. fi
  4919. if test -z "$ac_cv_prog_RANLIB"; then
  4920. ac_ct_RANLIB=$RANLIB
  4921. # Extract the first word of "ranlib", so it can be a program name with args.
  4922. set dummy ranlib; ac_word=$2
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4924. $as_echo_n "checking for $ac_word... " >&6; }
  4925. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. if test -n "$ac_ct_RANLIB"; then
  4929. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4930. else
  4931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4932. for as_dir in $PATH
  4933. do
  4934. IFS=$as_save_IFS
  4935. test -z "$as_dir" && as_dir=.
  4936. for ac_exec_ext in '' $ac_executable_extensions; do
  4937. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4938. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4940. break 2
  4941. fi
  4942. done
  4943. done
  4944. IFS=$as_save_IFS
  4945. fi
  4946. fi
  4947. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4948. if test -n "$ac_ct_RANLIB"; then
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4950. $as_echo "$ac_ct_RANLIB" >&6; }
  4951. else
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4953. $as_echo "no" >&6; }
  4954. fi
  4955. if test "x$ac_ct_RANLIB" = x; then
  4956. RANLIB=":"
  4957. else
  4958. case $cross_compiling:$ac_tool_warned in
  4959. yes:)
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4961. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4962. ac_tool_warned=yes ;;
  4963. esac
  4964. RANLIB=$ac_ct_RANLIB
  4965. fi
  4966. else
  4967. RANLIB="$ac_cv_prog_RANLIB"
  4968. fi
  4969. test -z "$RANLIB" && RANLIB=:
  4970. # Determine commands to create old-style static archives.
  4971. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4972. old_postinstall_cmds='chmod 644 $oldlib'
  4973. old_postuninstall_cmds=
  4974. if test -n "$RANLIB"; then
  4975. case $host_os in
  4976. openbsd*)
  4977. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4978. ;;
  4979. *)
  4980. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4981. ;;
  4982. esac
  4983. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4984. fi
  4985. case $host_os in
  4986. darwin*)
  4987. lock_old_archive_extraction=yes ;;
  4988. *)
  4989. lock_old_archive_extraction=no ;;
  4990. esac
  4991. for ac_prog in gawk mawk nawk awk
  4992. do
  4993. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4994. set dummy $ac_prog; ac_word=$2
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4996. $as_echo_n "checking for $ac_word... " >&6; }
  4997. if test "${ac_cv_prog_AWK+set}" = set; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. if test -n "$AWK"; then
  5001. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5002. else
  5003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5004. for as_dir in $PATH
  5005. do
  5006. IFS=$as_save_IFS
  5007. test -z "$as_dir" && as_dir=.
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5010. ac_cv_prog_AWK="$ac_prog"
  5011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. AWK=$ac_cv_prog_AWK
  5020. if test -n "$AWK"; then
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5022. $as_echo "$AWK" >&6; }
  5023. else
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. $as_echo "no" >&6; }
  5026. fi
  5027. test -n "$AWK" && break
  5028. done
  5029. # If no C compiler was specified, use CC.
  5030. LTCC=${LTCC-"$CC"}
  5031. # If no C compiler flags were specified, use CFLAGS.
  5032. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5033. # Allow CC to be a program name with arguments.
  5034. compiler=$CC
  5035. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5037. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5038. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. # These are sane defaults that work on at least a few old systems.
  5042. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5043. # Character class describing NM global symbol codes.
  5044. symcode='[BCDEGRST]'
  5045. # Regexp to match symbols that can be accessed directly from C.
  5046. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5047. # Define system-specific variables.
  5048. case $host_os in
  5049. aix*)
  5050. symcode='[BCDT]'
  5051. ;;
  5052. cygwin* | mingw* | pw32* | cegcc*)
  5053. symcode='[ABCDGISTW]'
  5054. ;;
  5055. hpux*)
  5056. if test "$host_cpu" = ia64; then
  5057. symcode='[ABCDEGRST]'
  5058. fi
  5059. ;;
  5060. irix* | nonstopux*)
  5061. symcode='[BCDEGRST]'
  5062. ;;
  5063. osf*)
  5064. symcode='[BCDEGQRST]'
  5065. ;;
  5066. solaris*)
  5067. symcode='[BDRT]'
  5068. ;;
  5069. sco3.2v5*)
  5070. symcode='[DT]'
  5071. ;;
  5072. sysv4.2uw2*)
  5073. symcode='[DT]'
  5074. ;;
  5075. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5076. symcode='[ABDT]'
  5077. ;;
  5078. sysv4)
  5079. symcode='[DFNSTU]'
  5080. ;;
  5081. esac
  5082. # If we're using GNU nm, then use its standard symbol codes.
  5083. case `$NM -V 2>&1` in
  5084. *GNU* | *'with BFD'*)
  5085. symcode='[ABCDGIRSTW]' ;;
  5086. esac
  5087. # Transform an extracted symbol line into a proper C declaration.
  5088. # Some systems (esp. on ia64) link data and code symbols differently,
  5089. # so use this general approach.
  5090. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5091. # Transform an extracted symbol line into symbol name and symbol address
  5092. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5093. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5094. # Handle CRLF in mingw tool chain
  5095. opt_cr=
  5096. case $build_os in
  5097. mingw*)
  5098. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5099. ;;
  5100. esac
  5101. # Try without a prefix underscore, then with it.
  5102. for ac_symprfx in "" "_"; do
  5103. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5104. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5105. # Write the raw and C identifiers.
  5106. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5107. # Fake it for dumpbin and say T for any non-static function
  5108. # and D for any global variable.
  5109. # Also find C++ and __fastcall symbols from MSVC++,
  5110. # which start with @ or ?.
  5111. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5112. " {last_section=section; section=\$ 3};"\
  5113. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5114. " \$ 0!~/External *\|/{next};"\
  5115. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5116. " {if(hide[section]) next};"\
  5117. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5118. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5119. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5120. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5121. " ' prfx=^$ac_symprfx"
  5122. else
  5123. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5124. fi
  5125. # Check to see that the pipe works correctly.
  5126. pipe_works=no
  5127. rm -f conftest*
  5128. cat > conftest.$ac_ext <<_LT_EOF
  5129. #ifdef __cplusplus
  5130. extern "C" {
  5131. #endif
  5132. char nm_test_var;
  5133. void nm_test_func(void);
  5134. void nm_test_func(void){}
  5135. #ifdef __cplusplus
  5136. }
  5137. #endif
  5138. int main(){nm_test_var='a';nm_test_func();return(0);}
  5139. _LT_EOF
  5140. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5141. (eval $ac_compile) 2>&5
  5142. ac_status=$?
  5143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5144. test $ac_status = 0; }; then
  5145. # Now try to grab the symbols.
  5146. nlist=conftest.nm
  5147. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5148. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5149. ac_status=$?
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5151. test $ac_status = 0; } && test -s "$nlist"; then
  5152. # Try sorting and uniquifying the output.
  5153. if sort "$nlist" | uniq > "$nlist"T; then
  5154. mv -f "$nlist"T "$nlist"
  5155. else
  5156. rm -f "$nlist"T
  5157. fi
  5158. # Make sure that we snagged all the symbols we need.
  5159. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5160. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5161. cat <<_LT_EOF > conftest.$ac_ext
  5162. #ifdef __cplusplus
  5163. extern "C" {
  5164. #endif
  5165. _LT_EOF
  5166. # Now generate the symbol file.
  5167. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5168. cat <<_LT_EOF >> conftest.$ac_ext
  5169. /* The mapping between symbol names and symbols. */
  5170. const struct {
  5171. const char *name;
  5172. void *address;
  5173. }
  5174. lt__PROGRAM__LTX_preloaded_symbols[] =
  5175. {
  5176. { "@PROGRAM@", (void *) 0 },
  5177. _LT_EOF
  5178. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5179. cat <<\_LT_EOF >> conftest.$ac_ext
  5180. {0, (void *) 0}
  5181. };
  5182. /* This works around a problem in FreeBSD linker */
  5183. #ifdef FREEBSD_WORKAROUND
  5184. static const void *lt_preloaded_setup() {
  5185. return lt__PROGRAM__LTX_preloaded_symbols;
  5186. }
  5187. #endif
  5188. #ifdef __cplusplus
  5189. }
  5190. #endif
  5191. _LT_EOF
  5192. # Now try linking the two files.
  5193. mv conftest.$ac_objext conftstm.$ac_objext
  5194. lt_save_LIBS="$LIBS"
  5195. lt_save_CFLAGS="$CFLAGS"
  5196. LIBS="conftstm.$ac_objext"
  5197. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5199. (eval $ac_link) 2>&5
  5200. ac_status=$?
  5201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5202. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5203. pipe_works=yes
  5204. fi
  5205. LIBS="$lt_save_LIBS"
  5206. CFLAGS="$lt_save_CFLAGS"
  5207. else
  5208. echo "cannot find nm_test_func in $nlist" >&5
  5209. fi
  5210. else
  5211. echo "cannot find nm_test_var in $nlist" >&5
  5212. fi
  5213. else
  5214. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5215. fi
  5216. else
  5217. echo "$progname: failed program was:" >&5
  5218. cat conftest.$ac_ext >&5
  5219. fi
  5220. rm -rf conftest* conftst*
  5221. # Do not use the global_symbol_pipe unless it works.
  5222. if test "$pipe_works" = yes; then
  5223. break
  5224. else
  5225. lt_cv_sys_global_symbol_pipe=
  5226. fi
  5227. done
  5228. fi
  5229. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5230. lt_cv_sys_global_symbol_to_cdecl=
  5231. fi
  5232. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5234. $as_echo "failed" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5237. $as_echo "ok" >&6; }
  5238. fi
  5239. # Check whether --enable-libtool-lock was given.
  5240. if test "${enable_libtool_lock+set}" = set; then :
  5241. enableval=$enable_libtool_lock;
  5242. fi
  5243. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5244. # Some flags need to be propagated to the compiler or linker for good
  5245. # libtool support.
  5246. case $host in
  5247. ia64-*-hpux*)
  5248. # Find out which ABI we are using.
  5249. echo 'int i;' > conftest.$ac_ext
  5250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5251. (eval $ac_compile) 2>&5
  5252. ac_status=$?
  5253. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5254. test $ac_status = 0; }; then
  5255. case `/usr/bin/file conftest.$ac_objext` in
  5256. *ELF-32*)
  5257. HPUX_IA64_MODE="32"
  5258. ;;
  5259. *ELF-64*)
  5260. HPUX_IA64_MODE="64"
  5261. ;;
  5262. esac
  5263. fi
  5264. rm -rf conftest*
  5265. ;;
  5266. *-*-irix6*)
  5267. # Find out which ABI we are using.
  5268. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5270. (eval $ac_compile) 2>&5
  5271. ac_status=$?
  5272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5273. test $ac_status = 0; }; then
  5274. if test "$lt_cv_prog_gnu_ld" = yes; then
  5275. case `/usr/bin/file conftest.$ac_objext` in
  5276. *32-bit*)
  5277. LD="${LD-ld} -melf32bsmip"
  5278. ;;
  5279. *N32*)
  5280. LD="${LD-ld} -melf32bmipn32"
  5281. ;;
  5282. *64-bit*)
  5283. LD="${LD-ld} -melf64bmip"
  5284. ;;
  5285. esac
  5286. else
  5287. case `/usr/bin/file conftest.$ac_objext` in
  5288. *32-bit*)
  5289. LD="${LD-ld} -32"
  5290. ;;
  5291. *N32*)
  5292. LD="${LD-ld} -n32"
  5293. ;;
  5294. *64-bit*)
  5295. LD="${LD-ld} -64"
  5296. ;;
  5297. esac
  5298. fi
  5299. fi
  5300. rm -rf conftest*
  5301. ;;
  5302. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5303. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5304. # Find out which ABI we are using.
  5305. echo 'int i;' > conftest.$ac_ext
  5306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5307. (eval $ac_compile) 2>&5
  5308. ac_status=$?
  5309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5310. test $ac_status = 0; }; then
  5311. case `/usr/bin/file conftest.o` in
  5312. *32-bit*)
  5313. case $host in
  5314. x86_64-*kfreebsd*-gnu)
  5315. LD="${LD-ld} -m elf_i386_fbsd"
  5316. ;;
  5317. x86_64-*linux*)
  5318. case `/usr/bin/file conftest.o` in
  5319. *x86-64*)
  5320. LD="${LD-ld} -m elf32_x86_64"
  5321. ;;
  5322. *)
  5323. LD="${LD-ld} -m elf_i386"
  5324. ;;
  5325. esac
  5326. ;;
  5327. powerpc64le-*linux*)
  5328. LD="${LD-ld} -m elf32lppclinux"
  5329. ;;
  5330. powerpc64-*linux*)
  5331. LD="${LD-ld} -m elf32ppclinux"
  5332. ;;
  5333. s390x-*linux*)
  5334. LD="${LD-ld} -m elf_s390"
  5335. ;;
  5336. sparc64-*linux*)
  5337. LD="${LD-ld} -m elf32_sparc"
  5338. ;;
  5339. esac
  5340. ;;
  5341. *64-bit*)
  5342. case $host in
  5343. x86_64-*kfreebsd*-gnu)
  5344. LD="${LD-ld} -m elf_x86_64_fbsd"
  5345. ;;
  5346. x86_64-*linux*)
  5347. LD="${LD-ld} -m elf_x86_64"
  5348. ;;
  5349. powerpcle-*linux*)
  5350. LD="${LD-ld} -m elf64lppc"
  5351. ;;
  5352. powerpc-*linux*)
  5353. LD="${LD-ld} -m elf64ppc"
  5354. ;;
  5355. s390*-*linux*|s390*-*tpf*)
  5356. LD="${LD-ld} -m elf64_s390"
  5357. ;;
  5358. sparc*-*linux*)
  5359. LD="${LD-ld} -m elf64_sparc"
  5360. ;;
  5361. esac
  5362. ;;
  5363. esac
  5364. fi
  5365. rm -rf conftest*
  5366. ;;
  5367. *-*-sco3.2v5*)
  5368. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5369. SAVE_CFLAGS="$CFLAGS"
  5370. CFLAGS="$CFLAGS -belf"
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5372. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5373. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. ac_ext=c
  5377. ac_cpp='$CPP $CPPFLAGS'
  5378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5381. if test x$gcc_no_link = xyes; then
  5382. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5383. fi
  5384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end confdefs.h. */
  5386. int
  5387. main ()
  5388. {
  5389. ;
  5390. return 0;
  5391. }
  5392. _ACEOF
  5393. if ac_fn_c_try_link "$LINENO"; then :
  5394. lt_cv_cc_needs_belf=yes
  5395. else
  5396. lt_cv_cc_needs_belf=no
  5397. fi
  5398. rm -f core conftest.err conftest.$ac_objext \
  5399. conftest$ac_exeext conftest.$ac_ext
  5400. ac_ext=c
  5401. ac_cpp='$CPP $CPPFLAGS'
  5402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5405. fi
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5407. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5408. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5409. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5410. CFLAGS="$SAVE_CFLAGS"
  5411. fi
  5412. ;;
  5413. sparc*-*solaris*)
  5414. # Find out which ABI we are using.
  5415. echo 'int i;' > conftest.$ac_ext
  5416. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5417. (eval $ac_compile) 2>&5
  5418. ac_status=$?
  5419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5420. test $ac_status = 0; }; then
  5421. case `/usr/bin/file conftest.o` in
  5422. *64-bit*)
  5423. case $lt_cv_prog_gnu_ld in
  5424. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5425. *)
  5426. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5427. LD="${LD-ld} -64"
  5428. fi
  5429. ;;
  5430. esac
  5431. ;;
  5432. esac
  5433. fi
  5434. rm -rf conftest*
  5435. ;;
  5436. esac
  5437. need_locks="$enable_libtool_lock"
  5438. case $host_os in
  5439. rhapsody* | darwin*)
  5440. if test -n "$ac_tool_prefix"; then
  5441. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5442. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5444. $as_echo_n "checking for $ac_word... " >&6; }
  5445. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5446. $as_echo_n "(cached) " >&6
  5447. else
  5448. if test -n "$DSYMUTIL"; then
  5449. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5450. else
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5458. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. fi
  5466. fi
  5467. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5468. if test -n "$DSYMUTIL"; then
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5470. $as_echo "$DSYMUTIL" >&6; }
  5471. else
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5473. $as_echo "no" >&6; }
  5474. fi
  5475. fi
  5476. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5477. ac_ct_DSYMUTIL=$DSYMUTIL
  5478. # Extract the first word of "dsymutil", so it can be a program name with args.
  5479. set dummy dsymutil; ac_word=$2
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5481. $as_echo_n "checking for $ac_word... " >&6; }
  5482. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5483. $as_echo_n "(cached) " >&6
  5484. else
  5485. if test -n "$ac_ct_DSYMUTIL"; then
  5486. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5487. else
  5488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5489. for as_dir in $PATH
  5490. do
  5491. IFS=$as_save_IFS
  5492. test -z "$as_dir" && as_dir=.
  5493. for ac_exec_ext in '' $ac_executable_extensions; do
  5494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5495. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5497. break 2
  5498. fi
  5499. done
  5500. done
  5501. IFS=$as_save_IFS
  5502. fi
  5503. fi
  5504. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5505. if test -n "$ac_ct_DSYMUTIL"; then
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5507. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5508. else
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5510. $as_echo "no" >&6; }
  5511. fi
  5512. if test "x$ac_ct_DSYMUTIL" = x; then
  5513. DSYMUTIL=":"
  5514. else
  5515. case $cross_compiling:$ac_tool_warned in
  5516. yes:)
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5519. ac_tool_warned=yes ;;
  5520. esac
  5521. DSYMUTIL=$ac_ct_DSYMUTIL
  5522. fi
  5523. else
  5524. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5525. fi
  5526. if test -n "$ac_tool_prefix"; then
  5527. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5528. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5530. $as_echo_n "checking for $ac_word... " >&6; }
  5531. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5532. $as_echo_n "(cached) " >&6
  5533. else
  5534. if test -n "$NMEDIT"; then
  5535. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. test -z "$as_dir" && as_dir=.
  5542. for ac_exec_ext in '' $ac_executable_extensions; do
  5543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5544. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5546. break 2
  5547. fi
  5548. done
  5549. done
  5550. IFS=$as_save_IFS
  5551. fi
  5552. fi
  5553. NMEDIT=$ac_cv_prog_NMEDIT
  5554. if test -n "$NMEDIT"; then
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5556. $as_echo "$NMEDIT" >&6; }
  5557. else
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5559. $as_echo "no" >&6; }
  5560. fi
  5561. fi
  5562. if test -z "$ac_cv_prog_NMEDIT"; then
  5563. ac_ct_NMEDIT=$NMEDIT
  5564. # Extract the first word of "nmedit", so it can be a program name with args.
  5565. set dummy nmedit; ac_word=$2
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. $as_echo_n "checking for $ac_word... " >&6; }
  5568. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5569. $as_echo_n "(cached) " >&6
  5570. else
  5571. if test -n "$ac_ct_NMEDIT"; then
  5572. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5573. else
  5574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5575. for as_dir in $PATH
  5576. do
  5577. IFS=$as_save_IFS
  5578. test -z "$as_dir" && as_dir=.
  5579. for ac_exec_ext in '' $ac_executable_extensions; do
  5580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5581. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5583. break 2
  5584. fi
  5585. done
  5586. done
  5587. IFS=$as_save_IFS
  5588. fi
  5589. fi
  5590. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5591. if test -n "$ac_ct_NMEDIT"; then
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5593. $as_echo "$ac_ct_NMEDIT" >&6; }
  5594. else
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5596. $as_echo "no" >&6; }
  5597. fi
  5598. if test "x$ac_ct_NMEDIT" = x; then
  5599. NMEDIT=":"
  5600. else
  5601. case $cross_compiling:$ac_tool_warned in
  5602. yes:)
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5605. ac_tool_warned=yes ;;
  5606. esac
  5607. NMEDIT=$ac_ct_NMEDIT
  5608. fi
  5609. else
  5610. NMEDIT="$ac_cv_prog_NMEDIT"
  5611. fi
  5612. if test -n "$ac_tool_prefix"; then
  5613. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5614. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5616. $as_echo_n "checking for $ac_word... " >&6; }
  5617. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5618. $as_echo_n "(cached) " >&6
  5619. else
  5620. if test -n "$LIPO"; then
  5621. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. test -z "$as_dir" && as_dir=.
  5628. for ac_exec_ext in '' $ac_executable_extensions; do
  5629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5630. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5632. break 2
  5633. fi
  5634. done
  5635. done
  5636. IFS=$as_save_IFS
  5637. fi
  5638. fi
  5639. LIPO=$ac_cv_prog_LIPO
  5640. if test -n "$LIPO"; then
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5642. $as_echo "$LIPO" >&6; }
  5643. else
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5645. $as_echo "no" >&6; }
  5646. fi
  5647. fi
  5648. if test -z "$ac_cv_prog_LIPO"; then
  5649. ac_ct_LIPO=$LIPO
  5650. # Extract the first word of "lipo", so it can be a program name with args.
  5651. set dummy lipo; ac_word=$2
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5653. $as_echo_n "checking for $ac_word... " >&6; }
  5654. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5655. $as_echo_n "(cached) " >&6
  5656. else
  5657. if test -n "$ac_ct_LIPO"; then
  5658. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5659. else
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5667. ac_cv_prog_ac_ct_LIPO="lipo"
  5668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. fi
  5675. fi
  5676. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5677. if test -n "$ac_ct_LIPO"; then
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5679. $as_echo "$ac_ct_LIPO" >&6; }
  5680. else
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5682. $as_echo "no" >&6; }
  5683. fi
  5684. if test "x$ac_ct_LIPO" = x; then
  5685. LIPO=":"
  5686. else
  5687. case $cross_compiling:$ac_tool_warned in
  5688. yes:)
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5691. ac_tool_warned=yes ;;
  5692. esac
  5693. LIPO=$ac_ct_LIPO
  5694. fi
  5695. else
  5696. LIPO="$ac_cv_prog_LIPO"
  5697. fi
  5698. if test -n "$ac_tool_prefix"; then
  5699. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5700. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5702. $as_echo_n "checking for $ac_word... " >&6; }
  5703. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5704. $as_echo_n "(cached) " >&6
  5705. else
  5706. if test -n "$OTOOL"; then
  5707. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5708. else
  5709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5710. for as_dir in $PATH
  5711. do
  5712. IFS=$as_save_IFS
  5713. test -z "$as_dir" && as_dir=.
  5714. for ac_exec_ext in '' $ac_executable_extensions; do
  5715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5716. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5718. break 2
  5719. fi
  5720. done
  5721. done
  5722. IFS=$as_save_IFS
  5723. fi
  5724. fi
  5725. OTOOL=$ac_cv_prog_OTOOL
  5726. if test -n "$OTOOL"; then
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5728. $as_echo "$OTOOL" >&6; }
  5729. else
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5731. $as_echo "no" >&6; }
  5732. fi
  5733. fi
  5734. if test -z "$ac_cv_prog_OTOOL"; then
  5735. ac_ct_OTOOL=$OTOOL
  5736. # Extract the first word of "otool", so it can be a program name with args.
  5737. set dummy otool; ac_word=$2
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5739. $as_echo_n "checking for $ac_word... " >&6; }
  5740. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5741. $as_echo_n "(cached) " >&6
  5742. else
  5743. if test -n "$ac_ct_OTOOL"; then
  5744. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5745. else
  5746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5747. for as_dir in $PATH
  5748. do
  5749. IFS=$as_save_IFS
  5750. test -z "$as_dir" && as_dir=.
  5751. for ac_exec_ext in '' $ac_executable_extensions; do
  5752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5753. ac_cv_prog_ac_ct_OTOOL="otool"
  5754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5755. break 2
  5756. fi
  5757. done
  5758. done
  5759. IFS=$as_save_IFS
  5760. fi
  5761. fi
  5762. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5763. if test -n "$ac_ct_OTOOL"; then
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5765. $as_echo "$ac_ct_OTOOL" >&6; }
  5766. else
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5768. $as_echo "no" >&6; }
  5769. fi
  5770. if test "x$ac_ct_OTOOL" = x; then
  5771. OTOOL=":"
  5772. else
  5773. case $cross_compiling:$ac_tool_warned in
  5774. yes:)
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5777. ac_tool_warned=yes ;;
  5778. esac
  5779. OTOOL=$ac_ct_OTOOL
  5780. fi
  5781. else
  5782. OTOOL="$ac_cv_prog_OTOOL"
  5783. fi
  5784. if test -n "$ac_tool_prefix"; then
  5785. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5786. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5788. $as_echo_n "checking for $ac_word... " >&6; }
  5789. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5790. $as_echo_n "(cached) " >&6
  5791. else
  5792. if test -n "$OTOOL64"; then
  5793. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5794. else
  5795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5796. for as_dir in $PATH
  5797. do
  5798. IFS=$as_save_IFS
  5799. test -z "$as_dir" && as_dir=.
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5802. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. OTOOL64=$ac_cv_prog_OTOOL64
  5812. if test -n "$OTOOL64"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5814. $as_echo "$OTOOL64" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. fi
  5820. if test -z "$ac_cv_prog_OTOOL64"; then
  5821. ac_ct_OTOOL64=$OTOOL64
  5822. # Extract the first word of "otool64", so it can be a program name with args.
  5823. set dummy otool64; ac_word=$2
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5825. $as_echo_n "checking for $ac_word... " >&6; }
  5826. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. if test -n "$ac_ct_OTOOL64"; then
  5830. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5831. else
  5832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5833. for as_dir in $PATH
  5834. do
  5835. IFS=$as_save_IFS
  5836. test -z "$as_dir" && as_dir=.
  5837. for ac_exec_ext in '' $ac_executable_extensions; do
  5838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5839. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5841. break 2
  5842. fi
  5843. done
  5844. done
  5845. IFS=$as_save_IFS
  5846. fi
  5847. fi
  5848. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5849. if test -n "$ac_ct_OTOOL64"; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5851. $as_echo "$ac_ct_OTOOL64" >&6; }
  5852. else
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5854. $as_echo "no" >&6; }
  5855. fi
  5856. if test "x$ac_ct_OTOOL64" = x; then
  5857. OTOOL64=":"
  5858. else
  5859. case $cross_compiling:$ac_tool_warned in
  5860. yes:)
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5863. ac_tool_warned=yes ;;
  5864. esac
  5865. OTOOL64=$ac_ct_OTOOL64
  5866. fi
  5867. else
  5868. OTOOL64="$ac_cv_prog_OTOOL64"
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5871. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5872. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5873. $as_echo_n "(cached) " >&6
  5874. else
  5875. lt_cv_apple_cc_single_mod=no
  5876. if test -z "${LT_MULTI_MODULE}"; then
  5877. # By default we will add the -single_module flag. You can override
  5878. # by either setting the environment variable LT_MULTI_MODULE
  5879. # non-empty at configure time, or by adding -multi_module to the
  5880. # link flags.
  5881. rm -rf libconftest.dylib*
  5882. echo "int foo(void){return 1;}" > conftest.c
  5883. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5884. -dynamiclib -Wl,-single_module conftest.c" >&5
  5885. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5886. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5887. _lt_result=$?
  5888. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5889. lt_cv_apple_cc_single_mod=yes
  5890. else
  5891. cat conftest.err >&5
  5892. fi
  5893. rm -rf libconftest.dylib*
  5894. rm -f conftest.*
  5895. fi
  5896. fi
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5898. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5900. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5901. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. lt_cv_ld_exported_symbols_list=no
  5905. save_LDFLAGS=$LDFLAGS
  5906. echo "_main" > conftest.sym
  5907. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5908. if test x$gcc_no_link = xyes; then
  5909. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5910. fi
  5911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5912. /* end confdefs.h. */
  5913. int
  5914. main ()
  5915. {
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. if ac_fn_c_try_link "$LINENO"; then :
  5921. lt_cv_ld_exported_symbols_list=yes
  5922. else
  5923. lt_cv_ld_exported_symbols_list=no
  5924. fi
  5925. rm -f core conftest.err conftest.$ac_objext \
  5926. conftest$ac_exeext conftest.$ac_ext
  5927. LDFLAGS="$save_LDFLAGS"
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5930. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5932. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5933. if test "${lt_cv_ld_force_load+set}" = set; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. lt_cv_ld_force_load=no
  5937. cat > conftest.c << _LT_EOF
  5938. int forced_loaded() { return 2;}
  5939. _LT_EOF
  5940. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5941. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5942. echo "$AR cru libconftest.a conftest.o" >&5
  5943. $AR cru libconftest.a conftest.o 2>&5
  5944. cat > conftest.c << _LT_EOF
  5945. int main() { return 0;}
  5946. _LT_EOF
  5947. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5948. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5949. _lt_result=$?
  5950. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  5951. lt_cv_ld_force_load=yes
  5952. else
  5953. cat conftest.err >&5
  5954. fi
  5955. rm -f conftest.err libconftest.a conftest conftest.c
  5956. rm -rf conftest.dSYM
  5957. fi
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5959. $as_echo "$lt_cv_ld_force_load" >&6; }
  5960. case $host_os in
  5961. rhapsody* | darwin1.[012])
  5962. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5963. darwin1.*)
  5964. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5965. darwin*) # darwin 5.x on
  5966. # if running on 10.5 or later, the deployment target defaults
  5967. # to the OS version, if on x86, and 10.4, the deployment
  5968. # target defaults to 10.4. Don't you love it?
  5969. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5970. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5971. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5972. 10.[012][,.]*)
  5973. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5974. 10.*)
  5975. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5976. esac
  5977. ;;
  5978. esac
  5979. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5980. _lt_dar_single_mod='$single_module'
  5981. fi
  5982. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5983. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5984. else
  5985. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5986. fi
  5987. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5988. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5989. else
  5990. _lt_dsymutil=
  5991. fi
  5992. ;;
  5993. esac
  5994. ac_ext=c
  5995. ac_cpp='$CPP $CPPFLAGS'
  5996. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5997. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5998. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6000. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6001. # On Suns, sometimes $CPP names a directory.
  6002. if test -n "$CPP" && test -d "$CPP"; then
  6003. CPP=
  6004. fi
  6005. if test -z "$CPP"; then
  6006. if test "${ac_cv_prog_CPP+set}" = set; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. # Double quotes because CPP needs to be expanded
  6010. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6011. do
  6012. ac_preproc_ok=false
  6013. for ac_c_preproc_warn_flag in '' yes
  6014. do
  6015. # Use a header file that comes with gcc, so configuring glibc
  6016. # with a fresh cross-compiler works.
  6017. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6018. # <limits.h> exists even on freestanding compilers.
  6019. # On the NeXT, cc -E runs the code through the compiler's parser,
  6020. # not just through cpp. "Syntax error" is here to catch this case.
  6021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6022. /* end confdefs.h. */
  6023. #ifdef __STDC__
  6024. # include <limits.h>
  6025. #else
  6026. # include <assert.h>
  6027. #endif
  6028. Syntax error
  6029. _ACEOF
  6030. if ac_fn_c_try_cpp "$LINENO"; then :
  6031. else
  6032. # Broken: fails on valid input.
  6033. continue
  6034. fi
  6035. rm -f conftest.err conftest.$ac_ext
  6036. # OK, works on sane cases. Now check whether nonexistent headers
  6037. # can be detected and how.
  6038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6039. /* end confdefs.h. */
  6040. #include <ac_nonexistent.h>
  6041. _ACEOF
  6042. if ac_fn_c_try_cpp "$LINENO"; then :
  6043. # Broken: success on invalid input.
  6044. continue
  6045. else
  6046. # Passes both tests.
  6047. ac_preproc_ok=:
  6048. break
  6049. fi
  6050. rm -f conftest.err conftest.$ac_ext
  6051. done
  6052. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6053. rm -f conftest.err conftest.$ac_ext
  6054. if $ac_preproc_ok; then :
  6055. break
  6056. fi
  6057. done
  6058. ac_cv_prog_CPP=$CPP
  6059. fi
  6060. CPP=$ac_cv_prog_CPP
  6061. else
  6062. ac_cv_prog_CPP=$CPP
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6065. $as_echo "$CPP" >&6; }
  6066. ac_preproc_ok=false
  6067. for ac_c_preproc_warn_flag in '' yes
  6068. do
  6069. # Use a header file that comes with gcc, so configuring glibc
  6070. # with a fresh cross-compiler works.
  6071. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6072. # <limits.h> exists even on freestanding compilers.
  6073. # On the NeXT, cc -E runs the code through the compiler's parser,
  6074. # not just through cpp. "Syntax error" is here to catch this case.
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. #ifdef __STDC__
  6078. # include <limits.h>
  6079. #else
  6080. # include <assert.h>
  6081. #endif
  6082. Syntax error
  6083. _ACEOF
  6084. if ac_fn_c_try_cpp "$LINENO"; then :
  6085. else
  6086. # Broken: fails on valid input.
  6087. continue
  6088. fi
  6089. rm -f conftest.err conftest.$ac_ext
  6090. # OK, works on sane cases. Now check whether nonexistent headers
  6091. # can be detected and how.
  6092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6093. /* end confdefs.h. */
  6094. #include <ac_nonexistent.h>
  6095. _ACEOF
  6096. if ac_fn_c_try_cpp "$LINENO"; then :
  6097. # Broken: success on invalid input.
  6098. continue
  6099. else
  6100. # Passes both tests.
  6101. ac_preproc_ok=:
  6102. break
  6103. fi
  6104. rm -f conftest.err conftest.$ac_ext
  6105. done
  6106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6107. rm -f conftest.err conftest.$ac_ext
  6108. if $ac_preproc_ok; then :
  6109. else
  6110. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6111. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6112. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6113. See \`config.log' for more details." "$LINENO" 5; }
  6114. fi
  6115. ac_ext=c
  6116. ac_cpp='$CPP $CPPFLAGS'
  6117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6121. $as_echo_n "checking for ANSI C header files... " >&6; }
  6122. if test "${ac_cv_header_stdc+set}" = set; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6126. /* end confdefs.h. */
  6127. #include <stdlib.h>
  6128. #include <stdarg.h>
  6129. #include <string.h>
  6130. #include <float.h>
  6131. int
  6132. main ()
  6133. {
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. if ac_fn_c_try_compile "$LINENO"; then :
  6139. ac_cv_header_stdc=yes
  6140. else
  6141. ac_cv_header_stdc=no
  6142. fi
  6143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6144. if test $ac_cv_header_stdc = yes; then
  6145. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <string.h>
  6149. _ACEOF
  6150. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6151. $EGREP "memchr" >/dev/null 2>&1; then :
  6152. else
  6153. ac_cv_header_stdc=no
  6154. fi
  6155. rm -f conftest*
  6156. fi
  6157. if test $ac_cv_header_stdc = yes; then
  6158. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6160. /* end confdefs.h. */
  6161. #include <stdlib.h>
  6162. _ACEOF
  6163. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6164. $EGREP "free" >/dev/null 2>&1; then :
  6165. else
  6166. ac_cv_header_stdc=no
  6167. fi
  6168. rm -f conftest*
  6169. fi
  6170. if test $ac_cv_header_stdc = yes; then
  6171. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6172. if test "$cross_compiling" = yes; then :
  6173. :
  6174. else
  6175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6176. /* end confdefs.h. */
  6177. #include <ctype.h>
  6178. #include <stdlib.h>
  6179. #if ((' ' & 0x0FF) == 0x020)
  6180. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6181. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6182. #else
  6183. # define ISLOWER(c) \
  6184. (('a' <= (c) && (c) <= 'i') \
  6185. || ('j' <= (c) && (c) <= 'r') \
  6186. || ('s' <= (c) && (c) <= 'z'))
  6187. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6188. #endif
  6189. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6190. int
  6191. main ()
  6192. {
  6193. int i;
  6194. for (i = 0; i < 256; i++)
  6195. if (XOR (islower (i), ISLOWER (i))
  6196. || toupper (i) != TOUPPER (i))
  6197. return 2;
  6198. return 0;
  6199. }
  6200. _ACEOF
  6201. if ac_fn_c_try_run "$LINENO"; then :
  6202. else
  6203. ac_cv_header_stdc=no
  6204. fi
  6205. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6206. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6207. fi
  6208. fi
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6211. $as_echo "$ac_cv_header_stdc" >&6; }
  6212. if test $ac_cv_header_stdc = yes; then
  6213. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6214. fi
  6215. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6216. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6217. inttypes.h stdint.h unistd.h
  6218. do :
  6219. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6220. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6221. "
  6222. eval as_val=\$$as_ac_Header
  6223. if test "x$as_val" = x""yes; then :
  6224. cat >>confdefs.h <<_ACEOF
  6225. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6226. _ACEOF
  6227. fi
  6228. done
  6229. for ac_header in dlfcn.h
  6230. do :
  6231. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6232. "
  6233. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6234. cat >>confdefs.h <<_ACEOF
  6235. #define HAVE_DLFCN_H 1
  6236. _ACEOF
  6237. fi
  6238. done
  6239. # Set options
  6240. enable_dlopen=no
  6241. # Check whether --enable-shared was given.
  6242. if test "${enable_shared+set}" = set; then :
  6243. enableval=$enable_shared; p=${PACKAGE-default}
  6244. case $enableval in
  6245. yes) enable_shared=yes ;;
  6246. no) enable_shared=no ;;
  6247. *)
  6248. enable_shared=no
  6249. # Look at the argument we got. We use all the common list separators.
  6250. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6251. for pkg in $enableval; do
  6252. IFS="$lt_save_ifs"
  6253. if test "X$pkg" = "X$p"; then
  6254. enable_shared=yes
  6255. fi
  6256. done
  6257. IFS="$lt_save_ifs"
  6258. ;;
  6259. esac
  6260. else
  6261. enable_shared=yes
  6262. fi
  6263. # Check whether --enable-static was given.
  6264. if test "${enable_static+set}" = set; then :
  6265. enableval=$enable_static; p=${PACKAGE-default}
  6266. case $enableval in
  6267. yes) enable_static=yes ;;
  6268. no) enable_static=no ;;
  6269. *)
  6270. enable_static=no
  6271. # Look at the argument we got. We use all the common list separators.
  6272. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6273. for pkg in $enableval; do
  6274. IFS="$lt_save_ifs"
  6275. if test "X$pkg" = "X$p"; then
  6276. enable_static=yes
  6277. fi
  6278. done
  6279. IFS="$lt_save_ifs"
  6280. ;;
  6281. esac
  6282. else
  6283. enable_static=yes
  6284. fi
  6285. # Check whether --with-pic was given.
  6286. if test "${with_pic+set}" = set; then :
  6287. withval=$with_pic; pic_mode="$withval"
  6288. else
  6289. pic_mode=default
  6290. fi
  6291. test -z "$pic_mode" && pic_mode=default
  6292. # Check whether --enable-fast-install was given.
  6293. if test "${enable_fast_install+set}" = set; then :
  6294. enableval=$enable_fast_install; p=${PACKAGE-default}
  6295. case $enableval in
  6296. yes) enable_fast_install=yes ;;
  6297. no) enable_fast_install=no ;;
  6298. *)
  6299. enable_fast_install=no
  6300. # Look at the argument we got. We use all the common list separators.
  6301. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6302. for pkg in $enableval; do
  6303. IFS="$lt_save_ifs"
  6304. if test "X$pkg" = "X$p"; then
  6305. enable_fast_install=yes
  6306. fi
  6307. done
  6308. IFS="$lt_save_ifs"
  6309. ;;
  6310. esac
  6311. else
  6312. enable_fast_install=yes
  6313. fi
  6314. # This can be used to rebuild libtool when needed
  6315. LIBTOOL_DEPS="$ltmain"
  6316. # Always use our own libtool.
  6317. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6318. test -z "$LN_S" && LN_S="ln -s"
  6319. if test -n "${ZSH_VERSION+set}" ; then
  6320. setopt NO_GLOB_SUBST
  6321. fi
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6323. $as_echo_n "checking for objdir... " >&6; }
  6324. if test "${lt_cv_objdir+set}" = set; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. rm -f .libs 2>/dev/null
  6328. mkdir .libs 2>/dev/null
  6329. if test -d .libs; then
  6330. lt_cv_objdir=.libs
  6331. else
  6332. # MS-DOS does not allow filenames that begin with a dot.
  6333. lt_cv_objdir=_libs
  6334. fi
  6335. rmdir .libs 2>/dev/null
  6336. fi
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6338. $as_echo "$lt_cv_objdir" >&6; }
  6339. objdir=$lt_cv_objdir
  6340. cat >>confdefs.h <<_ACEOF
  6341. #define LT_OBJDIR "$lt_cv_objdir/"
  6342. _ACEOF
  6343. case $host_os in
  6344. aix3*)
  6345. # AIX sometimes has problems with the GCC collect2 program. For some
  6346. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6347. # vanish in a puff of smoke.
  6348. if test "X${COLLECT_NAMES+set}" != Xset; then
  6349. COLLECT_NAMES=
  6350. export COLLECT_NAMES
  6351. fi
  6352. ;;
  6353. esac
  6354. # Global variables:
  6355. ofile=libtool
  6356. can_build_shared=yes
  6357. # All known linkers require a `.a' archive for static linking (except MSVC,
  6358. # which needs '.lib').
  6359. libext=a
  6360. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6361. old_CC="$CC"
  6362. old_CFLAGS="$CFLAGS"
  6363. # Set sane defaults for various variables
  6364. test -z "$CC" && CC=cc
  6365. test -z "$LTCC" && LTCC=$CC
  6366. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6367. test -z "$LD" && LD=ld
  6368. test -z "$ac_objext" && ac_objext=o
  6369. for cc_temp in $compiler""; do
  6370. case $cc_temp in
  6371. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6372. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6373. \-*) ;;
  6374. *) break;;
  6375. esac
  6376. done
  6377. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6378. # Only perform the check for file, if the check method requires it
  6379. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6380. case $deplibs_check_method in
  6381. file_magic*)
  6382. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6384. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6385. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. case $MAGIC_CMD in
  6389. [\\/*] | ?:[\\/]*)
  6390. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6391. ;;
  6392. *)
  6393. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6394. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6395. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6396. for ac_dir in $ac_dummy; do
  6397. IFS="$lt_save_ifs"
  6398. test -z "$ac_dir" && ac_dir=.
  6399. if test -f $ac_dir/${ac_tool_prefix}file; then
  6400. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6401. if test -n "$file_magic_test_file"; then
  6402. case $deplibs_check_method in
  6403. "file_magic "*)
  6404. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6405. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6406. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6407. $EGREP "$file_magic_regex" > /dev/null; then
  6408. :
  6409. else
  6410. cat <<_LT_EOF 1>&2
  6411. *** Warning: the command libtool uses to detect shared libraries,
  6412. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6413. *** The result is that libtool may fail to recognize shared libraries
  6414. *** as such. This will affect the creation of libtool libraries that
  6415. *** depend on shared libraries, but programs linked with such libtool
  6416. *** libraries will work regardless of this problem. Nevertheless, you
  6417. *** may want to report the problem to your system manager and/or to
  6418. *** bug-libtool@gnu.org
  6419. _LT_EOF
  6420. fi ;;
  6421. esac
  6422. fi
  6423. break
  6424. fi
  6425. done
  6426. IFS="$lt_save_ifs"
  6427. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6428. ;;
  6429. esac
  6430. fi
  6431. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6432. if test -n "$MAGIC_CMD"; then
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6434. $as_echo "$MAGIC_CMD" >&6; }
  6435. else
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6437. $as_echo "no" >&6; }
  6438. fi
  6439. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6440. if test -n "$ac_tool_prefix"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6442. $as_echo_n "checking for file... " >&6; }
  6443. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6444. $as_echo_n "(cached) " >&6
  6445. else
  6446. case $MAGIC_CMD in
  6447. [\\/*] | ?:[\\/]*)
  6448. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6449. ;;
  6450. *)
  6451. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6452. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6453. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6454. for ac_dir in $ac_dummy; do
  6455. IFS="$lt_save_ifs"
  6456. test -z "$ac_dir" && ac_dir=.
  6457. if test -f $ac_dir/file; then
  6458. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6459. if test -n "$file_magic_test_file"; then
  6460. case $deplibs_check_method in
  6461. "file_magic "*)
  6462. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6463. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6464. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6465. $EGREP "$file_magic_regex" > /dev/null; then
  6466. :
  6467. else
  6468. cat <<_LT_EOF 1>&2
  6469. *** Warning: the command libtool uses to detect shared libraries,
  6470. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6471. *** The result is that libtool may fail to recognize shared libraries
  6472. *** as such. This will affect the creation of libtool libraries that
  6473. *** depend on shared libraries, but programs linked with such libtool
  6474. *** libraries will work regardless of this problem. Nevertheless, you
  6475. *** may want to report the problem to your system manager and/or to
  6476. *** bug-libtool@gnu.org
  6477. _LT_EOF
  6478. fi ;;
  6479. esac
  6480. fi
  6481. break
  6482. fi
  6483. done
  6484. IFS="$lt_save_ifs"
  6485. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6486. ;;
  6487. esac
  6488. fi
  6489. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6490. if test -n "$MAGIC_CMD"; then
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6492. $as_echo "$MAGIC_CMD" >&6; }
  6493. else
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6495. $as_echo "no" >&6; }
  6496. fi
  6497. else
  6498. MAGIC_CMD=:
  6499. fi
  6500. fi
  6501. fi
  6502. ;;
  6503. esac
  6504. # Use C for the default configuration in the libtool script
  6505. lt_save_CC="$CC"
  6506. ac_ext=c
  6507. ac_cpp='$CPP $CPPFLAGS'
  6508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6511. # Source file extension for C test sources.
  6512. ac_ext=c
  6513. # Object file extension for compiled C test sources.
  6514. objext=o
  6515. objext=$objext
  6516. # Code to be used in simple compile tests
  6517. lt_simple_compile_test_code="int some_variable = 0;"
  6518. # Code to be used in simple link tests
  6519. lt_simple_link_test_code='int main(){return(0);}'
  6520. # If no C compiler was specified, use CC.
  6521. LTCC=${LTCC-"$CC"}
  6522. # If no C compiler flags were specified, use CFLAGS.
  6523. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6524. # Allow CC to be a program name with arguments.
  6525. compiler=$CC
  6526. # Save the default compiler, since it gets overwritten when the other
  6527. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6528. compiler_DEFAULT=$CC
  6529. # save warnings/boilerplate of simple test code
  6530. ac_outfile=conftest.$ac_objext
  6531. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6532. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6533. _lt_compiler_boilerplate=`cat conftest.err`
  6534. $RM conftest*
  6535. ac_outfile=conftest.$ac_objext
  6536. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6537. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6538. _lt_linker_boilerplate=`cat conftest.err`
  6539. $RM -r conftest*
  6540. ## CAVEAT EMPTOR:
  6541. ## There is no encapsulation within the following macros, do not change
  6542. ## the running order or otherwise move them around unless you know exactly
  6543. ## what you are doing...
  6544. if test -n "$compiler"; then
  6545. lt_prog_compiler_no_builtin_flag=
  6546. if test "$GCC" = yes; then
  6547. case $cc_basename in
  6548. nvcc*)
  6549. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6550. *)
  6551. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6552. esac
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6554. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6555. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6556. $as_echo_n "(cached) " >&6
  6557. else
  6558. lt_cv_prog_compiler_rtti_exceptions=no
  6559. ac_outfile=conftest.$ac_objext
  6560. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6561. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6562. # Insert the option either (1) after the last *FLAGS variable, or
  6563. # (2) before a word containing "conftest.", or (3) at the end.
  6564. # Note that $ac_compile itself does not contain backslashes and begins
  6565. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6566. # The option is referenced via a variable to avoid confusing sed.
  6567. lt_compile=`echo "$ac_compile" | $SED \
  6568. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6569. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6570. -e 's:$: $lt_compiler_flag:'`
  6571. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6572. (eval "$lt_compile" 2>conftest.err)
  6573. ac_status=$?
  6574. cat conftest.err >&5
  6575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. if (exit $ac_status) && test -s "$ac_outfile"; then
  6577. # The compiler can only warn and ignore the option if not recognized
  6578. # So say no if there are warnings other than the usual output.
  6579. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6580. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6581. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6582. lt_cv_prog_compiler_rtti_exceptions=yes
  6583. fi
  6584. fi
  6585. $RM conftest*
  6586. fi
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6588. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6589. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6590. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6591. else
  6592. :
  6593. fi
  6594. fi
  6595. lt_prog_compiler_wl=
  6596. lt_prog_compiler_pic=
  6597. lt_prog_compiler_static=
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6599. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6600. if test "$GCC" = yes; then
  6601. lt_prog_compiler_wl='-Wl,'
  6602. lt_prog_compiler_static='-static'
  6603. case $host_os in
  6604. aix*)
  6605. # All AIX code is PIC.
  6606. if test "$host_cpu" = ia64; then
  6607. # AIX 5 now supports IA64 processor
  6608. lt_prog_compiler_static='-Bstatic'
  6609. fi
  6610. lt_prog_compiler_pic='-fPIC'
  6611. ;;
  6612. amigaos*)
  6613. case $host_cpu in
  6614. powerpc)
  6615. # see comment about AmigaOS4 .so support
  6616. lt_prog_compiler_pic='-fPIC'
  6617. ;;
  6618. m68k)
  6619. # FIXME: we need at least 68020 code to build shared libraries, but
  6620. # adding the `-m68020' flag to GCC prevents building anything better,
  6621. # like `-m68040'.
  6622. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6623. ;;
  6624. esac
  6625. ;;
  6626. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6627. # PIC is the default for these OSes.
  6628. ;;
  6629. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6630. # This hack is so that the source file can tell whether it is being
  6631. # built for inclusion in a dll (and should export symbols for example).
  6632. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6633. # (--disable-auto-import) libraries
  6634. lt_prog_compiler_pic='-DDLL_EXPORT'
  6635. ;;
  6636. darwin* | rhapsody*)
  6637. # PIC is the default on this platform
  6638. # Common symbols not allowed in MH_DYLIB files
  6639. lt_prog_compiler_pic='-fno-common'
  6640. ;;
  6641. haiku*)
  6642. # PIC is the default for Haiku.
  6643. # The "-static" flag exists, but is broken.
  6644. lt_prog_compiler_static=
  6645. ;;
  6646. hpux*)
  6647. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6648. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6649. # sets the default TLS model and affects inlining.
  6650. case $host_cpu in
  6651. hppa*64*)
  6652. # +Z the default
  6653. ;;
  6654. *)
  6655. lt_prog_compiler_pic='-fPIC'
  6656. ;;
  6657. esac
  6658. ;;
  6659. interix[3-9]*)
  6660. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6661. # Instead, we relocate shared libraries at runtime.
  6662. ;;
  6663. msdosdjgpp*)
  6664. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6665. # on systems that don't support them.
  6666. lt_prog_compiler_can_build_shared=no
  6667. enable_shared=no
  6668. ;;
  6669. *nto* | *qnx*)
  6670. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6671. # it will coredump.
  6672. lt_prog_compiler_pic='-fPIC -shared'
  6673. ;;
  6674. sysv4*MP*)
  6675. if test -d /usr/nec; then
  6676. lt_prog_compiler_pic=-Kconform_pic
  6677. fi
  6678. ;;
  6679. *)
  6680. lt_prog_compiler_pic='-fPIC'
  6681. ;;
  6682. esac
  6683. case $cc_basename in
  6684. nvcc*) # Cuda Compiler Driver 2.2
  6685. lt_prog_compiler_wl='-Xlinker '
  6686. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6687. ;;
  6688. esac
  6689. else
  6690. # PORTME Check for flag to pass linker flags through the system compiler.
  6691. case $host_os in
  6692. aix*)
  6693. lt_prog_compiler_wl='-Wl,'
  6694. if test "$host_cpu" = ia64; then
  6695. # AIX 5 now supports IA64 processor
  6696. lt_prog_compiler_static='-Bstatic'
  6697. else
  6698. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6699. fi
  6700. ;;
  6701. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6702. # This hack is so that the source file can tell whether it is being
  6703. # built for inclusion in a dll (and should export symbols for example).
  6704. lt_prog_compiler_pic='-DDLL_EXPORT'
  6705. ;;
  6706. hpux9* | hpux10* | hpux11*)
  6707. lt_prog_compiler_wl='-Wl,'
  6708. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6709. # not for PA HP-UX.
  6710. case $host_cpu in
  6711. hppa*64*|ia64*)
  6712. # +Z the default
  6713. ;;
  6714. *)
  6715. lt_prog_compiler_pic='+Z'
  6716. ;;
  6717. esac
  6718. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6719. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6720. ;;
  6721. irix5* | irix6* | nonstopux*)
  6722. lt_prog_compiler_wl='-Wl,'
  6723. # PIC (with -KPIC) is the default.
  6724. lt_prog_compiler_static='-non_shared'
  6725. ;;
  6726. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6727. case $cc_basename in
  6728. # old Intel for x86_64 which still supported -KPIC.
  6729. ecc*)
  6730. lt_prog_compiler_wl='-Wl,'
  6731. lt_prog_compiler_pic='-KPIC'
  6732. lt_prog_compiler_static='-static'
  6733. ;;
  6734. # icc used to be incompatible with GCC.
  6735. # ICC 10 doesn't accept -KPIC any more.
  6736. icc* | ifort*)
  6737. lt_prog_compiler_wl='-Wl,'
  6738. lt_prog_compiler_pic='-fPIC'
  6739. lt_prog_compiler_static='-static'
  6740. ;;
  6741. # Lahey Fortran 8.1.
  6742. lf95*)
  6743. lt_prog_compiler_wl='-Wl,'
  6744. lt_prog_compiler_pic='--shared'
  6745. lt_prog_compiler_static='--static'
  6746. ;;
  6747. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6748. # Portland Group compilers (*not* the Pentium gcc compiler,
  6749. # which looks to be a dead project)
  6750. lt_prog_compiler_wl='-Wl,'
  6751. lt_prog_compiler_pic='-fpic'
  6752. lt_prog_compiler_static='-Bstatic'
  6753. ;;
  6754. ccc*)
  6755. lt_prog_compiler_wl='-Wl,'
  6756. # All Alpha code is PIC.
  6757. lt_prog_compiler_static='-non_shared'
  6758. ;;
  6759. xl* | bgxl* | bgf* | mpixl*)
  6760. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6761. lt_prog_compiler_wl='-Wl,'
  6762. lt_prog_compiler_pic='-qpic'
  6763. lt_prog_compiler_static='-qstaticlink'
  6764. ;;
  6765. *)
  6766. case `$CC -V 2>&1 | sed 5q` in
  6767. *Sun\ F* | *Sun*Fortran*)
  6768. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6769. lt_prog_compiler_pic='-KPIC'
  6770. lt_prog_compiler_static='-Bstatic'
  6771. lt_prog_compiler_wl=''
  6772. ;;
  6773. *Sun\ C*)
  6774. # Sun C 5.9
  6775. lt_prog_compiler_pic='-KPIC'
  6776. lt_prog_compiler_static='-Bstatic'
  6777. lt_prog_compiler_wl='-Wl,'
  6778. ;;
  6779. esac
  6780. ;;
  6781. esac
  6782. ;;
  6783. newsos6)
  6784. lt_prog_compiler_pic='-KPIC'
  6785. lt_prog_compiler_static='-Bstatic'
  6786. ;;
  6787. *nto* | *qnx*)
  6788. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6789. # it will coredump.
  6790. lt_prog_compiler_pic='-fPIC -shared'
  6791. ;;
  6792. osf3* | osf4* | osf5*)
  6793. lt_prog_compiler_wl='-Wl,'
  6794. # All OSF/1 code is PIC.
  6795. lt_prog_compiler_static='-non_shared'
  6796. ;;
  6797. rdos*)
  6798. lt_prog_compiler_static='-non_shared'
  6799. ;;
  6800. solaris*)
  6801. lt_prog_compiler_pic='-KPIC'
  6802. lt_prog_compiler_static='-Bstatic'
  6803. case $cc_basename in
  6804. f77* | f90* | f95*)
  6805. lt_prog_compiler_wl='-Qoption ld ';;
  6806. *)
  6807. lt_prog_compiler_wl='-Wl,';;
  6808. esac
  6809. ;;
  6810. sunos4*)
  6811. lt_prog_compiler_wl='-Qoption ld '
  6812. lt_prog_compiler_pic='-PIC'
  6813. lt_prog_compiler_static='-Bstatic'
  6814. ;;
  6815. sysv4 | sysv4.2uw2* | sysv4.3*)
  6816. lt_prog_compiler_wl='-Wl,'
  6817. lt_prog_compiler_pic='-KPIC'
  6818. lt_prog_compiler_static='-Bstatic'
  6819. ;;
  6820. sysv4*MP*)
  6821. if test -d /usr/nec ;then
  6822. lt_prog_compiler_pic='-Kconform_pic'
  6823. lt_prog_compiler_static='-Bstatic'
  6824. fi
  6825. ;;
  6826. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6827. lt_prog_compiler_wl='-Wl,'
  6828. lt_prog_compiler_pic='-KPIC'
  6829. lt_prog_compiler_static='-Bstatic'
  6830. ;;
  6831. unicos*)
  6832. lt_prog_compiler_wl='-Wl,'
  6833. lt_prog_compiler_can_build_shared=no
  6834. ;;
  6835. uts4*)
  6836. lt_prog_compiler_pic='-pic'
  6837. lt_prog_compiler_static='-Bstatic'
  6838. ;;
  6839. *)
  6840. lt_prog_compiler_can_build_shared=no
  6841. ;;
  6842. esac
  6843. fi
  6844. case $host_os in
  6845. # For platforms which do not support PIC, -DPIC is meaningless:
  6846. *djgpp*)
  6847. lt_prog_compiler_pic=
  6848. ;;
  6849. *)
  6850. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6851. ;;
  6852. esac
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6854. $as_echo "$lt_prog_compiler_pic" >&6; }
  6855. #
  6856. # Check to make sure the PIC flag actually works.
  6857. #
  6858. if test -n "$lt_prog_compiler_pic"; then
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6860. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6861. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. lt_cv_prog_compiler_pic_works=no
  6865. ac_outfile=conftest.$ac_objext
  6866. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6867. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6868. # Insert the option either (1) after the last *FLAGS variable, or
  6869. # (2) before a word containing "conftest.", or (3) at the end.
  6870. # Note that $ac_compile itself does not contain backslashes and begins
  6871. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6872. # The option is referenced via a variable to avoid confusing sed.
  6873. lt_compile=`echo "$ac_compile" | $SED \
  6874. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6875. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6876. -e 's:$: $lt_compiler_flag:'`
  6877. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6878. (eval "$lt_compile" 2>conftest.err)
  6879. ac_status=$?
  6880. cat conftest.err >&5
  6881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6882. if (exit $ac_status) && test -s "$ac_outfile"; then
  6883. # The compiler can only warn and ignore the option if not recognized
  6884. # So say no if there are warnings other than the usual output.
  6885. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6886. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6887. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6888. lt_cv_prog_compiler_pic_works=yes
  6889. fi
  6890. fi
  6891. $RM conftest*
  6892. fi
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6894. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6895. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6896. case $lt_prog_compiler_pic in
  6897. "" | " "*) ;;
  6898. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6899. esac
  6900. else
  6901. lt_prog_compiler_pic=
  6902. lt_prog_compiler_can_build_shared=no
  6903. fi
  6904. fi
  6905. #
  6906. # Check to make sure the static flag actually works.
  6907. #
  6908. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6910. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6911. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. lt_cv_prog_compiler_static_works=no
  6915. save_LDFLAGS="$LDFLAGS"
  6916. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6917. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6918. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6919. # The linker can only warn and ignore the option if not recognized
  6920. # So say no if there are warnings
  6921. if test -s conftest.err; then
  6922. # Append any errors to the config.log.
  6923. cat conftest.err 1>&5
  6924. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6925. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6926. if diff conftest.exp conftest.er2 >/dev/null; then
  6927. lt_cv_prog_compiler_static_works=yes
  6928. fi
  6929. else
  6930. lt_cv_prog_compiler_static_works=yes
  6931. fi
  6932. fi
  6933. $RM -r conftest*
  6934. LDFLAGS="$save_LDFLAGS"
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6937. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6938. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6939. :
  6940. else
  6941. lt_prog_compiler_static=
  6942. fi
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6944. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6945. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. lt_cv_prog_compiler_c_o=no
  6949. $RM -r conftest 2>/dev/null
  6950. mkdir conftest
  6951. cd conftest
  6952. mkdir out
  6953. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6954. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6955. # Insert the option either (1) after the last *FLAGS variable, or
  6956. # (2) before a word containing "conftest.", or (3) at the end.
  6957. # Note that $ac_compile itself does not contain backslashes and begins
  6958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6959. lt_compile=`echo "$ac_compile" | $SED \
  6960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6962. -e 's:$: $lt_compiler_flag:'`
  6963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6964. (eval "$lt_compile" 2>out/conftest.err)
  6965. ac_status=$?
  6966. cat out/conftest.err >&5
  6967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6968. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6969. then
  6970. # The compiler can only warn and ignore the option if not recognized
  6971. # So say no if there are warnings
  6972. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6973. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6974. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6975. lt_cv_prog_compiler_c_o=yes
  6976. fi
  6977. fi
  6978. chmod u+w . 2>&5
  6979. $RM conftest*
  6980. # SGI C++ compiler will create directory out/ii_files/ for
  6981. # template instantiation
  6982. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6983. $RM out/* && rmdir out
  6984. cd ..
  6985. $RM -r conftest
  6986. $RM conftest*
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6989. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6991. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6992. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. lt_cv_prog_compiler_c_o=no
  6996. $RM -r conftest 2>/dev/null
  6997. mkdir conftest
  6998. cd conftest
  6999. mkdir out
  7000. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7001. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7002. # Insert the option either (1) after the last *FLAGS variable, or
  7003. # (2) before a word containing "conftest.", or (3) at the end.
  7004. # Note that $ac_compile itself does not contain backslashes and begins
  7005. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7006. lt_compile=`echo "$ac_compile" | $SED \
  7007. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7009. -e 's:$: $lt_compiler_flag:'`
  7010. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7011. (eval "$lt_compile" 2>out/conftest.err)
  7012. ac_status=$?
  7013. cat out/conftest.err >&5
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7016. then
  7017. # The compiler can only warn and ignore the option if not recognized
  7018. # So say no if there are warnings
  7019. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7020. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7021. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7022. lt_cv_prog_compiler_c_o=yes
  7023. fi
  7024. fi
  7025. chmod u+w . 2>&5
  7026. $RM conftest*
  7027. # SGI C++ compiler will create directory out/ii_files/ for
  7028. # template instantiation
  7029. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7030. $RM out/* && rmdir out
  7031. cd ..
  7032. $RM -r conftest
  7033. $RM conftest*
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7036. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7037. hard_links="nottested"
  7038. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7039. # do not overwrite the value of need_locks provided by the user
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7041. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7042. hard_links=yes
  7043. $RM conftest*
  7044. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7045. touch conftest.a
  7046. ln conftest.a conftest.b 2>&5 || hard_links=no
  7047. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7049. $as_echo "$hard_links" >&6; }
  7050. if test "$hard_links" = no; then
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7052. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7053. need_locks=warn
  7054. fi
  7055. else
  7056. need_locks=no
  7057. fi
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7059. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7060. runpath_var=
  7061. allow_undefined_flag=
  7062. always_export_symbols=no
  7063. archive_cmds=
  7064. archive_expsym_cmds=
  7065. compiler_needs_object=no
  7066. enable_shared_with_static_runtimes=no
  7067. export_dynamic_flag_spec=
  7068. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7069. hardcode_automatic=no
  7070. hardcode_direct=no
  7071. hardcode_direct_absolute=no
  7072. hardcode_libdir_flag_spec=
  7073. hardcode_libdir_flag_spec_ld=
  7074. hardcode_libdir_separator=
  7075. hardcode_minus_L=no
  7076. hardcode_shlibpath_var=unsupported
  7077. inherit_rpath=no
  7078. link_all_deplibs=unknown
  7079. module_cmds=
  7080. module_expsym_cmds=
  7081. old_archive_from_new_cmds=
  7082. old_archive_from_expsyms_cmds=
  7083. thread_safe_flag_spec=
  7084. whole_archive_flag_spec=
  7085. # include_expsyms should be a list of space-separated symbols to be *always*
  7086. # included in the symbol list
  7087. include_expsyms=
  7088. # exclude_expsyms can be an extended regexp of symbols to exclude
  7089. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7090. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7091. # as well as any symbol that contains `d'.
  7092. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7093. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7094. # platforms (ab)use it in PIC code, but their linkers get confused if
  7095. # the symbol is explicitly referenced. Since portable code cannot
  7096. # rely on this symbol name, it's probably fine to never include it in
  7097. # preloaded symbol tables.
  7098. # Exclude shared library initialization/finalization symbols.
  7099. extract_expsyms_cmds=
  7100. case $host_os in
  7101. cygwin* | mingw* | pw32* | cegcc*)
  7102. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7103. # When not using gcc, we currently assume that we are using
  7104. # Microsoft Visual C++.
  7105. if test "$GCC" != yes; then
  7106. with_gnu_ld=no
  7107. fi
  7108. ;;
  7109. interix*)
  7110. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7111. with_gnu_ld=yes
  7112. ;;
  7113. openbsd*)
  7114. with_gnu_ld=no
  7115. ;;
  7116. esac
  7117. ld_shlibs=yes
  7118. # On some targets, GNU ld is compatible enough with the native linker
  7119. # that we're better off using the native interface for both.
  7120. lt_use_gnu_ld_interface=no
  7121. if test "$with_gnu_ld" = yes; then
  7122. case $host_os in
  7123. aix*)
  7124. # The AIX port of GNU ld has always aspired to compatibility
  7125. # with the native linker. However, as the warning in the GNU ld
  7126. # block says, versions before 2.19.5* couldn't really create working
  7127. # shared libraries, regardless of the interface used.
  7128. case `$LD -v 2>&1` in
  7129. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7130. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7131. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7132. *)
  7133. lt_use_gnu_ld_interface=yes
  7134. ;;
  7135. esac
  7136. ;;
  7137. *)
  7138. lt_use_gnu_ld_interface=yes
  7139. ;;
  7140. esac
  7141. fi
  7142. if test "$lt_use_gnu_ld_interface" = yes; then
  7143. # If archive_cmds runs LD, not CC, wlarc should be empty
  7144. wlarc='${wl}'
  7145. # Set some defaults for GNU ld with shared library support. These
  7146. # are reset later if shared libraries are not supported. Putting them
  7147. # here allows them to be overridden if necessary.
  7148. runpath_var=LD_RUN_PATH
  7149. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7150. export_dynamic_flag_spec='${wl}--export-dynamic'
  7151. # ancient GNU ld didn't support --whole-archive et. al.
  7152. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7153. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7154. else
  7155. whole_archive_flag_spec=
  7156. fi
  7157. supports_anon_versioning=no
  7158. case `$LD -v 2>&1` in
  7159. *GNU\ gold*) supports_anon_versioning=yes ;;
  7160. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7161. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7162. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7163. *\ 2.11.*) ;; # other 2.11 versions
  7164. *) supports_anon_versioning=yes ;;
  7165. esac
  7166. # See if GNU ld supports shared libraries.
  7167. case $host_os in
  7168. aix[3-9]*)
  7169. # On AIX/PPC, the GNU linker is very broken
  7170. if test "$host_cpu" != ia64; then
  7171. ld_shlibs=no
  7172. cat <<_LT_EOF 1>&2
  7173. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7174. *** to be unable to reliably create shared libraries on AIX.
  7175. *** Therefore, libtool is disabling shared libraries support. If you
  7176. *** really care for shared libraries, you may want to install binutils
  7177. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7178. *** You will then need to restart the configuration process.
  7179. _LT_EOF
  7180. fi
  7181. ;;
  7182. amigaos*)
  7183. case $host_cpu in
  7184. powerpc)
  7185. # see comment about AmigaOS4 .so support
  7186. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7187. archive_expsym_cmds=''
  7188. ;;
  7189. m68k)
  7190. 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)'
  7191. hardcode_libdir_flag_spec='-L$libdir'
  7192. hardcode_minus_L=yes
  7193. ;;
  7194. esac
  7195. ;;
  7196. beos*)
  7197. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7198. allow_undefined_flag=unsupported
  7199. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7200. # support --undefined. This deserves some investigation. FIXME
  7201. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7202. else
  7203. ld_shlibs=no
  7204. fi
  7205. ;;
  7206. cygwin* | mingw* | pw32* | cegcc*)
  7207. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7208. # as there is no search path for DLLs.
  7209. hardcode_libdir_flag_spec='-L$libdir'
  7210. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7211. allow_undefined_flag=unsupported
  7212. always_export_symbols=no
  7213. enable_shared_with_static_runtimes=yes
  7214. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7215. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7216. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7217. # If the export-symbols file already is a .def file (1st line
  7218. # is EXPORTS), use it as is; otherwise, prepend...
  7219. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7220. cp $export_symbols $output_objdir/$soname.def;
  7221. else
  7222. echo EXPORTS > $output_objdir/$soname.def;
  7223. cat $export_symbols >> $output_objdir/$soname.def;
  7224. fi~
  7225. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7226. else
  7227. ld_shlibs=no
  7228. fi
  7229. ;;
  7230. haiku*)
  7231. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7232. link_all_deplibs=yes
  7233. ;;
  7234. interix[3-9]*)
  7235. hardcode_direct=no
  7236. hardcode_shlibpath_var=no
  7237. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7238. export_dynamic_flag_spec='${wl}-E'
  7239. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7240. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7241. # default) and relocated if they conflict, which is a slow very memory
  7242. # consuming and fragmenting process. To avoid this, we pick a random,
  7243. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7244. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7245. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7246. 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'
  7247. ;;
  7248. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7249. tmp_diet=no
  7250. if test "$host_os" = linux-dietlibc; then
  7251. case $cc_basename in
  7252. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7253. esac
  7254. fi
  7255. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7256. && test "$tmp_diet" = no
  7257. then
  7258. tmp_addflag=' $pic_flag'
  7259. tmp_sharedflag='-shared'
  7260. case $cc_basename,$host_cpu in
  7261. pgcc*) # Portland Group C compiler
  7262. 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'
  7263. tmp_addflag=' $pic_flag'
  7264. ;;
  7265. pgf77* | pgf90* | pgf95* | pgfortran*)
  7266. # Portland Group f77 and f90 compilers
  7267. 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'
  7268. tmp_addflag=' $pic_flag -Mnomain' ;;
  7269. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7270. tmp_addflag=' -i_dynamic' ;;
  7271. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7272. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7273. ifc* | ifort*) # Intel Fortran compiler
  7274. tmp_addflag=' -nofor_main' ;;
  7275. lf95*) # Lahey Fortran 8.1
  7276. whole_archive_flag_spec=
  7277. tmp_sharedflag='--shared' ;;
  7278. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7279. tmp_sharedflag='-qmkshrobj'
  7280. tmp_addflag= ;;
  7281. nvcc*) # Cuda Compiler Driver 2.2
  7282. 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'
  7283. compiler_needs_object=yes
  7284. ;;
  7285. esac
  7286. case `$CC -V 2>&1 | sed 5q` in
  7287. *Sun\ C*) # Sun C 5.9
  7288. 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'
  7289. compiler_needs_object=yes
  7290. tmp_sharedflag='-G' ;;
  7291. *Sun\ F*) # Sun Fortran 8.3
  7292. tmp_sharedflag='-G' ;;
  7293. esac
  7294. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7295. if test "x$supports_anon_versioning" = xyes; then
  7296. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7297. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7298. echo "local: *; };" >> $output_objdir/$libname.ver~
  7299. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7300. fi
  7301. case $cc_basename in
  7302. xlf* | bgf* | bgxlf* | mpixlf*)
  7303. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7304. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7305. hardcode_libdir_flag_spec=
  7306. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7307. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7308. if test "x$supports_anon_versioning" = xyes; then
  7309. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7310. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7311. echo "local: *; };" >> $output_objdir/$libname.ver~
  7312. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7313. fi
  7314. ;;
  7315. esac
  7316. else
  7317. ld_shlibs=no
  7318. fi
  7319. ;;
  7320. netbsd*)
  7321. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7322. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7323. wlarc=
  7324. else
  7325. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7326. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7327. fi
  7328. ;;
  7329. solaris*)
  7330. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7331. ld_shlibs=no
  7332. cat <<_LT_EOF 1>&2
  7333. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7334. *** create shared libraries on Solaris systems. Therefore, libtool
  7335. *** is disabling shared libraries support. We urge you to upgrade GNU
  7336. *** binutils to release 2.9.1 or newer. Another option is to modify
  7337. *** your PATH or compiler configuration so that the native linker is
  7338. *** used, and then restart.
  7339. _LT_EOF
  7340. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7341. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7342. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7343. else
  7344. ld_shlibs=no
  7345. fi
  7346. ;;
  7347. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7348. case `$LD -v 2>&1` in
  7349. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7350. ld_shlibs=no
  7351. cat <<_LT_EOF 1>&2
  7352. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7353. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7354. *** is disabling shared libraries support. We urge you to upgrade GNU
  7355. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7356. *** your PATH or compiler configuration so that the native linker is
  7357. *** used, and then restart.
  7358. _LT_EOF
  7359. ;;
  7360. *)
  7361. # For security reasons, it is highly recommended that you always
  7362. # use absolute paths for naming shared libraries, and exclude the
  7363. # DT_RUNPATH tag from executables and libraries. But doing so
  7364. # requires that you compile everything twice, which is a pain.
  7365. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7366. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7367. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7368. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7369. else
  7370. ld_shlibs=no
  7371. fi
  7372. ;;
  7373. esac
  7374. ;;
  7375. sunos4*)
  7376. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7377. wlarc=
  7378. hardcode_direct=yes
  7379. hardcode_shlibpath_var=no
  7380. ;;
  7381. *)
  7382. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7383. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7384. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7385. else
  7386. ld_shlibs=no
  7387. fi
  7388. ;;
  7389. esac
  7390. if test "$ld_shlibs" = no; then
  7391. runpath_var=
  7392. hardcode_libdir_flag_spec=
  7393. export_dynamic_flag_spec=
  7394. whole_archive_flag_spec=
  7395. fi
  7396. else
  7397. # PORTME fill in a description of your system's linker (not GNU ld)
  7398. case $host_os in
  7399. aix3*)
  7400. allow_undefined_flag=unsupported
  7401. always_export_symbols=yes
  7402. 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'
  7403. # Note: this linker hardcodes the directories in LIBPATH if there
  7404. # are no directories specified by -L.
  7405. hardcode_minus_L=yes
  7406. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7407. # Neither direct hardcoding nor static linking is supported with a
  7408. # broken collect2.
  7409. hardcode_direct=unsupported
  7410. fi
  7411. ;;
  7412. aix[4-9]*)
  7413. if test "$host_cpu" = ia64; then
  7414. # On IA64, the linker does run time linking by default, so we don't
  7415. # have to do anything special.
  7416. aix_use_runtimelinking=no
  7417. exp_sym_flag='-Bexport'
  7418. no_entry_flag=""
  7419. else
  7420. # If we're using GNU nm, then we don't want the "-C" option.
  7421. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7422. # Also, AIX nm treats weak defined symbols like other global
  7423. # defined symbols, whereas GNU nm marks them as "W".
  7424. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7425. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7426. else
  7427. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7428. fi
  7429. aix_use_runtimelinking=no
  7430. # Test if we are trying to use run time linking or normal
  7431. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7432. # need to do runtime linking.
  7433. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7434. for ld_flag in $LDFLAGS; do
  7435. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7436. aix_use_runtimelinking=yes
  7437. break
  7438. fi
  7439. done
  7440. ;;
  7441. esac
  7442. exp_sym_flag='-bexport'
  7443. no_entry_flag='-bnoentry'
  7444. fi
  7445. # When large executables or shared objects are built, AIX ld can
  7446. # have problems creating the table of contents. If linking a library
  7447. # or program results in "error TOC overflow" add -mminimal-toc to
  7448. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7449. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7450. archive_cmds=''
  7451. hardcode_direct=yes
  7452. hardcode_direct_absolute=yes
  7453. hardcode_libdir_separator=':'
  7454. link_all_deplibs=yes
  7455. file_list_spec='${wl}-f,'
  7456. if test "$GCC" = yes; then
  7457. case $host_os in aix4.[012]|aix4.[012].*)
  7458. # We only want to do this on AIX 4.2 and lower, the check
  7459. # below for broken collect2 doesn't work under 4.3+
  7460. collect2name=`${CC} -print-prog-name=collect2`
  7461. if test -f "$collect2name" &&
  7462. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7463. then
  7464. # We have reworked collect2
  7465. :
  7466. else
  7467. # We have old collect2
  7468. hardcode_direct=unsupported
  7469. # It fails to find uninstalled libraries when the uninstalled
  7470. # path is not listed in the libpath. Setting hardcode_minus_L
  7471. # to unsupported forces relinking
  7472. hardcode_minus_L=yes
  7473. hardcode_libdir_flag_spec='-L$libdir'
  7474. hardcode_libdir_separator=
  7475. fi
  7476. ;;
  7477. esac
  7478. shared_flag='-shared'
  7479. if test "$aix_use_runtimelinking" = yes; then
  7480. shared_flag="$shared_flag "'${wl}-G'
  7481. fi
  7482. else
  7483. # not using gcc
  7484. if test "$host_cpu" = ia64; then
  7485. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7486. # chokes on -Wl,-G. The following line is correct:
  7487. shared_flag='-G'
  7488. else
  7489. if test "$aix_use_runtimelinking" = yes; then
  7490. shared_flag='${wl}-G'
  7491. else
  7492. shared_flag='${wl}-bM:SRE'
  7493. fi
  7494. fi
  7495. fi
  7496. export_dynamic_flag_spec='${wl}-bexpall'
  7497. # It seems that -bexpall does not export symbols beginning with
  7498. # underscore (_), so it is better to generate a list of symbols to export.
  7499. always_export_symbols=yes
  7500. if test "$aix_use_runtimelinking" = yes; then
  7501. # Warning - without using the other runtime loading flags (-brtl),
  7502. # -berok will link without error, but may produce a broken library.
  7503. allow_undefined_flag='-berok'
  7504. # Determine the default libpath from the value encoded in an
  7505. # empty executable.
  7506. if test x$gcc_no_link = xyes; then
  7507. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7508. fi
  7509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7510. /* end confdefs.h. */
  7511. int
  7512. main ()
  7513. {
  7514. ;
  7515. return 0;
  7516. }
  7517. _ACEOF
  7518. if ac_fn_c_try_link "$LINENO"; then :
  7519. lt_aix_libpath_sed='
  7520. /Import File Strings/,/^$/ {
  7521. /^0/ {
  7522. s/^0 *\(.*\)$/\1/
  7523. p
  7524. }
  7525. }'
  7526. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7527. # Check for a 64-bit object if we didn't find anything.
  7528. if test -z "$aix_libpath"; then
  7529. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7530. fi
  7531. fi
  7532. rm -f core conftest.err conftest.$ac_objext \
  7533. conftest$ac_exeext conftest.$ac_ext
  7534. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7535. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7536. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7537. else
  7538. if test "$host_cpu" = ia64; then
  7539. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7540. allow_undefined_flag="-z nodefs"
  7541. 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"
  7542. else
  7543. # Determine the default libpath from the value encoded in an
  7544. # empty executable.
  7545. if test x$gcc_no_link = xyes; then
  7546. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7547. fi
  7548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7549. /* end confdefs.h. */
  7550. int
  7551. main ()
  7552. {
  7553. ;
  7554. return 0;
  7555. }
  7556. _ACEOF
  7557. if ac_fn_c_try_link "$LINENO"; then :
  7558. lt_aix_libpath_sed='
  7559. /Import File Strings/,/^$/ {
  7560. /^0/ {
  7561. s/^0 *\(.*\)$/\1/
  7562. p
  7563. }
  7564. }'
  7565. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7566. # Check for a 64-bit object if we didn't find anything.
  7567. if test -z "$aix_libpath"; then
  7568. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7569. fi
  7570. fi
  7571. rm -f core conftest.err conftest.$ac_objext \
  7572. conftest$ac_exeext conftest.$ac_ext
  7573. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7574. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7575. # Warning - without using the other run time loading flags,
  7576. # -berok will link without error, but may produce a broken library.
  7577. no_undefined_flag=' ${wl}-bernotok'
  7578. allow_undefined_flag=' ${wl}-berok'
  7579. if test "$with_gnu_ld" = yes; then
  7580. # We only use this code for GNU lds that support --whole-archive.
  7581. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7582. else
  7583. # Exported symbols can be pulled into shared objects from archives
  7584. whole_archive_flag_spec='$convenience'
  7585. fi
  7586. archive_cmds_need_lc=yes
  7587. # This is similar to how AIX traditionally builds its shared libraries.
  7588. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7589. fi
  7590. fi
  7591. ;;
  7592. amigaos*)
  7593. case $host_cpu in
  7594. powerpc)
  7595. # see comment about AmigaOS4 .so support
  7596. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7597. archive_expsym_cmds=''
  7598. ;;
  7599. m68k)
  7600. 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)'
  7601. hardcode_libdir_flag_spec='-L$libdir'
  7602. hardcode_minus_L=yes
  7603. ;;
  7604. esac
  7605. ;;
  7606. bsdi[45]*)
  7607. export_dynamic_flag_spec=-rdynamic
  7608. ;;
  7609. cygwin* | mingw* | pw32* | cegcc*)
  7610. # When not using gcc, we currently assume that we are using
  7611. # Microsoft Visual C++.
  7612. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7613. # no search path for DLLs.
  7614. hardcode_libdir_flag_spec=' '
  7615. allow_undefined_flag=unsupported
  7616. # Tell ltmain to make .lib files, not .a files.
  7617. libext=lib
  7618. # Tell ltmain to make .dll files, not .so files.
  7619. shrext_cmds=".dll"
  7620. # FIXME: Setting linknames here is a bad hack.
  7621. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7622. # The linker will automatically build a .lib file if we build a DLL.
  7623. old_archive_from_new_cmds='true'
  7624. # FIXME: Should let the user specify the lib program.
  7625. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7626. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7627. enable_shared_with_static_runtimes=yes
  7628. ;;
  7629. darwin* | rhapsody*)
  7630. archive_cmds_need_lc=no
  7631. hardcode_direct=no
  7632. hardcode_automatic=yes
  7633. hardcode_shlibpath_var=unsupported
  7634. if test "$lt_cv_ld_force_load" = "yes"; then
  7635. 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\"`'
  7636. else
  7637. whole_archive_flag_spec=''
  7638. fi
  7639. link_all_deplibs=yes
  7640. allow_undefined_flag="$_lt_dar_allow_undefined"
  7641. case $cc_basename in
  7642. ifort*) _lt_dar_can_shared=yes ;;
  7643. *) _lt_dar_can_shared=$GCC ;;
  7644. esac
  7645. if test "$_lt_dar_can_shared" = "yes"; then
  7646. output_verbose_link_cmd=func_echo_all
  7647. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7648. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7649. 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}"
  7650. 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}"
  7651. else
  7652. ld_shlibs=no
  7653. fi
  7654. ;;
  7655. dgux*)
  7656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7657. hardcode_libdir_flag_spec='-L$libdir'
  7658. hardcode_shlibpath_var=no
  7659. ;;
  7660. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7661. # support. Future versions do this automatically, but an explicit c++rt0.o
  7662. # does not break anything, and helps significantly (at the cost of a little
  7663. # extra space).
  7664. freebsd2.2*)
  7665. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7666. hardcode_libdir_flag_spec='-R$libdir'
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. ;;
  7670. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7671. freebsd2.*)
  7672. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7673. hardcode_direct=yes
  7674. hardcode_minus_L=yes
  7675. hardcode_shlibpath_var=no
  7676. ;;
  7677. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7678. freebsd* | dragonfly*)
  7679. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7680. hardcode_libdir_flag_spec='-R$libdir'
  7681. hardcode_direct=yes
  7682. hardcode_shlibpath_var=no
  7683. ;;
  7684. hpux9*)
  7685. if test "$GCC" = yes; then
  7686. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7687. else
  7688. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7689. fi
  7690. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7691. hardcode_libdir_separator=:
  7692. hardcode_direct=yes
  7693. # hardcode_minus_L: Not really in the search PATH,
  7694. # but as the default location of the library.
  7695. hardcode_minus_L=yes
  7696. export_dynamic_flag_spec='${wl}-E'
  7697. ;;
  7698. hpux10*)
  7699. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7700. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7701. else
  7702. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7703. fi
  7704. if test "$with_gnu_ld" = no; then
  7705. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7706. hardcode_libdir_flag_spec_ld='+b $libdir'
  7707. hardcode_libdir_separator=:
  7708. hardcode_direct=yes
  7709. hardcode_direct_absolute=yes
  7710. export_dynamic_flag_spec='${wl}-E'
  7711. # hardcode_minus_L: Not really in the search PATH,
  7712. # but as the default location of the library.
  7713. hardcode_minus_L=yes
  7714. fi
  7715. ;;
  7716. hpux11*)
  7717. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7718. case $host_cpu in
  7719. hppa*64*)
  7720. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7721. ;;
  7722. ia64*)
  7723. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7724. ;;
  7725. *)
  7726. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7727. ;;
  7728. esac
  7729. else
  7730. case $host_cpu in
  7731. hppa*64*)
  7732. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7733. ;;
  7734. ia64*)
  7735. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7736. ;;
  7737. *)
  7738. # Older versions of the 11.00 compiler do not understand -b yet
  7739. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7741. $as_echo_n "checking if $CC understands -b... " >&6; }
  7742. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7743. $as_echo_n "(cached) " >&6
  7744. else
  7745. lt_cv_prog_compiler__b=no
  7746. save_LDFLAGS="$LDFLAGS"
  7747. LDFLAGS="$LDFLAGS -b"
  7748. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7749. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7750. # The linker can only warn and ignore the option if not recognized
  7751. # So say no if there are warnings
  7752. if test -s conftest.err; then
  7753. # Append any errors to the config.log.
  7754. cat conftest.err 1>&5
  7755. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7756. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7757. if diff conftest.exp conftest.er2 >/dev/null; then
  7758. lt_cv_prog_compiler__b=yes
  7759. fi
  7760. else
  7761. lt_cv_prog_compiler__b=yes
  7762. fi
  7763. fi
  7764. $RM -r conftest*
  7765. LDFLAGS="$save_LDFLAGS"
  7766. fi
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7768. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7769. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7770. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7771. else
  7772. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7773. fi
  7774. ;;
  7775. esac
  7776. fi
  7777. if test "$with_gnu_ld" = no; then
  7778. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7779. hardcode_libdir_separator=:
  7780. case $host_cpu in
  7781. hppa*64*|ia64*)
  7782. hardcode_direct=no
  7783. hardcode_shlibpath_var=no
  7784. ;;
  7785. *)
  7786. hardcode_direct=yes
  7787. hardcode_direct_absolute=yes
  7788. export_dynamic_flag_spec='${wl}-E'
  7789. # hardcode_minus_L: Not really in the search PATH,
  7790. # but as the default location of the library.
  7791. hardcode_minus_L=yes
  7792. ;;
  7793. esac
  7794. fi
  7795. ;;
  7796. irix5* | irix6* | nonstopux*)
  7797. if test "$GCC" = yes; then
  7798. archive_cmds='$CC -shared $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'
  7799. # Try to use the -exported_symbol ld option, if it does not
  7800. # work, assume that -exports_file does not work either and
  7801. # implicitly export all symbols.
  7802. save_LDFLAGS="$LDFLAGS"
  7803. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7804. if test x$gcc_no_link = xyes; then
  7805. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7806. fi
  7807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7808. /* end confdefs.h. */
  7809. int foo(void) {}
  7810. _ACEOF
  7811. if ac_fn_c_try_link "$LINENO"; then :
  7812. archive_expsym_cmds='$CC -shared $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'
  7813. fi
  7814. rm -f core conftest.err conftest.$ac_objext \
  7815. conftest$ac_exeext conftest.$ac_ext
  7816. LDFLAGS="$save_LDFLAGS"
  7817. else
  7818. 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'
  7819. 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'
  7820. fi
  7821. archive_cmds_need_lc='no'
  7822. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7823. hardcode_libdir_separator=:
  7824. inherit_rpath=yes
  7825. link_all_deplibs=yes
  7826. ;;
  7827. netbsd*)
  7828. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7829. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7830. else
  7831. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7832. fi
  7833. hardcode_libdir_flag_spec='-R$libdir'
  7834. hardcode_direct=yes
  7835. hardcode_shlibpath_var=no
  7836. ;;
  7837. newsos6)
  7838. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7839. hardcode_direct=yes
  7840. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7841. hardcode_libdir_separator=:
  7842. hardcode_shlibpath_var=no
  7843. ;;
  7844. *nto* | *qnx*)
  7845. ;;
  7846. openbsd*)
  7847. if test -f /usr/libexec/ld.so; then
  7848. hardcode_direct=yes
  7849. hardcode_shlibpath_var=no
  7850. hardcode_direct_absolute=yes
  7851. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7852. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7853. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7854. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7855. export_dynamic_flag_spec='${wl}-E'
  7856. else
  7857. case $host_os in
  7858. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7859. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7860. hardcode_libdir_flag_spec='-R$libdir'
  7861. ;;
  7862. *)
  7863. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7864. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7865. ;;
  7866. esac
  7867. fi
  7868. else
  7869. ld_shlibs=no
  7870. fi
  7871. ;;
  7872. os2*)
  7873. hardcode_libdir_flag_spec='-L$libdir'
  7874. hardcode_minus_L=yes
  7875. allow_undefined_flag=unsupported
  7876. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7877. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7878. ;;
  7879. osf3*)
  7880. if test "$GCC" = yes; then
  7881. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7882. 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'
  7883. else
  7884. allow_undefined_flag=' -expect_unresolved \*'
  7885. 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'
  7886. fi
  7887. archive_cmds_need_lc='no'
  7888. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7889. hardcode_libdir_separator=:
  7890. ;;
  7891. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7892. if test "$GCC" = yes; then
  7893. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7894. archive_cmds='$CC -shared${allow_undefined_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'
  7895. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7896. else
  7897. allow_undefined_flag=' -expect_unresolved \*'
  7898. 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'
  7899. 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~
  7900. $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'
  7901. # Both c and cxx compiler support -rpath directly
  7902. hardcode_libdir_flag_spec='-rpath $libdir'
  7903. fi
  7904. archive_cmds_need_lc='no'
  7905. hardcode_libdir_separator=:
  7906. ;;
  7907. solaris*)
  7908. no_undefined_flag=' -z defs'
  7909. if test "$GCC" = yes; then
  7910. wlarc='${wl}'
  7911. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7912. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7913. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7914. else
  7915. case `$CC -V 2>&1` in
  7916. *"Compilers 5.0"*)
  7917. wlarc=''
  7918. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7919. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7920. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7921. ;;
  7922. *)
  7923. wlarc='${wl}'
  7924. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7925. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7926. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7927. ;;
  7928. esac
  7929. fi
  7930. hardcode_libdir_flag_spec='-R$libdir'
  7931. hardcode_shlibpath_var=no
  7932. case $host_os in
  7933. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7934. *)
  7935. # The compiler driver will combine and reorder linker options,
  7936. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7937. # but is careful enough not to reorder.
  7938. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7939. if test "$GCC" = yes; then
  7940. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7941. else
  7942. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7943. fi
  7944. ;;
  7945. esac
  7946. link_all_deplibs=yes
  7947. ;;
  7948. sunos4*)
  7949. if test "x$host_vendor" = xsequent; then
  7950. # Use $CC to link under sequent, because it throws in some extra .o
  7951. # files that make .init and .fini sections work.
  7952. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7953. else
  7954. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7955. fi
  7956. hardcode_libdir_flag_spec='-L$libdir'
  7957. hardcode_direct=yes
  7958. hardcode_minus_L=yes
  7959. hardcode_shlibpath_var=no
  7960. ;;
  7961. sysv4)
  7962. case $host_vendor in
  7963. sni)
  7964. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7965. hardcode_direct=yes # is this really true???
  7966. ;;
  7967. siemens)
  7968. ## LD is ld it makes a PLAMLIB
  7969. ## CC just makes a GrossModule.
  7970. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7971. reload_cmds='$CC -r -o $output$reload_objs'
  7972. hardcode_direct=no
  7973. ;;
  7974. motorola)
  7975. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7976. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7977. ;;
  7978. esac
  7979. runpath_var='LD_RUN_PATH'
  7980. hardcode_shlibpath_var=no
  7981. ;;
  7982. sysv4.3*)
  7983. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7984. hardcode_shlibpath_var=no
  7985. export_dynamic_flag_spec='-Bexport'
  7986. ;;
  7987. sysv4*MP*)
  7988. if test -d /usr/nec; then
  7989. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7990. hardcode_shlibpath_var=no
  7991. runpath_var=LD_RUN_PATH
  7992. hardcode_runpath_var=yes
  7993. ld_shlibs=yes
  7994. fi
  7995. ;;
  7996. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7997. no_undefined_flag='${wl}-z,text'
  7998. archive_cmds_need_lc=no
  7999. hardcode_shlibpath_var=no
  8000. runpath_var='LD_RUN_PATH'
  8001. if test "$GCC" = yes; then
  8002. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8003. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8004. else
  8005. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8006. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8007. fi
  8008. ;;
  8009. sysv5* | sco3.2v5* | sco5v6*)
  8010. # Note: We can NOT use -z defs as we might desire, because we do not
  8011. # link with -lc, and that would cause any symbols used from libc to
  8012. # always be unresolved, which means just about no library would
  8013. # ever link correctly. If we're not using GNU ld we use -z text
  8014. # though, which does catch some bad symbols but isn't as heavy-handed
  8015. # as -z defs.
  8016. no_undefined_flag='${wl}-z,text'
  8017. allow_undefined_flag='${wl}-z,nodefs'
  8018. archive_cmds_need_lc=no
  8019. hardcode_shlibpath_var=no
  8020. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8021. hardcode_libdir_separator=':'
  8022. link_all_deplibs=yes
  8023. export_dynamic_flag_spec='${wl}-Bexport'
  8024. runpath_var='LD_RUN_PATH'
  8025. if test "$GCC" = yes; then
  8026. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8027. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8028. else
  8029. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8030. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8031. fi
  8032. ;;
  8033. uts4*)
  8034. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8035. hardcode_libdir_flag_spec='-L$libdir'
  8036. hardcode_shlibpath_var=no
  8037. ;;
  8038. *)
  8039. ld_shlibs=no
  8040. ;;
  8041. esac
  8042. if test x$host_vendor = xsni; then
  8043. case $host in
  8044. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8045. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8046. ;;
  8047. esac
  8048. fi
  8049. fi
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8051. $as_echo "$ld_shlibs" >&6; }
  8052. test "$ld_shlibs" = no && can_build_shared=no
  8053. with_gnu_ld=$with_gnu_ld
  8054. #
  8055. # Do we need to explicitly link libc?
  8056. #
  8057. case "x$archive_cmds_need_lc" in
  8058. x|xyes)
  8059. # Assume -lc should be added
  8060. archive_cmds_need_lc=yes
  8061. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8062. case $archive_cmds in
  8063. *'~'*)
  8064. # FIXME: we may have to deal with multi-command sequences.
  8065. ;;
  8066. '$CC '*)
  8067. # Test whether the compiler implicitly links with -lc since on some
  8068. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8069. # to ld, don't add -lc before -lgcc.
  8070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8071. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8072. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8073. $as_echo_n "(cached) " >&6
  8074. else
  8075. $RM conftest*
  8076. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8078. (eval $ac_compile) 2>&5
  8079. ac_status=$?
  8080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8081. test $ac_status = 0; } 2>conftest.err; then
  8082. soname=conftest
  8083. lib=conftest
  8084. libobjs=conftest.$ac_objext
  8085. deplibs=
  8086. wl=$lt_prog_compiler_wl
  8087. pic_flag=$lt_prog_compiler_pic
  8088. compiler_flags=-v
  8089. linker_flags=-v
  8090. verstring=
  8091. output_objdir=.
  8092. libname=conftest
  8093. lt_save_allow_undefined_flag=$allow_undefined_flag
  8094. allow_undefined_flag=
  8095. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8096. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8097. ac_status=$?
  8098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8099. test $ac_status = 0; }
  8100. then
  8101. lt_cv_archive_cmds_need_lc=no
  8102. else
  8103. lt_cv_archive_cmds_need_lc=yes
  8104. fi
  8105. allow_undefined_flag=$lt_save_allow_undefined_flag
  8106. else
  8107. cat conftest.err 1>&5
  8108. fi
  8109. $RM conftest*
  8110. fi
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8112. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8113. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8114. ;;
  8115. esac
  8116. fi
  8117. ;;
  8118. esac
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8120. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8121. if test "$GCC" = yes; then
  8122. case $host_os in
  8123. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8124. *) lt_awk_arg="/^libraries:/" ;;
  8125. esac
  8126. case $host_os in
  8127. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8128. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8129. esac
  8130. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8131. case $lt_search_path_spec in
  8132. *\;*)
  8133. # if the path contains ";" then we assume it to be the separator
  8134. # otherwise default to the standard path separator (i.e. ":") - it is
  8135. # assumed that no part of a normal pathname contains ";" but that should
  8136. # okay in the real world where ";" in dirpaths is itself problematic.
  8137. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8138. ;;
  8139. *)
  8140. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8141. ;;
  8142. esac
  8143. # Ok, now we have the path, separated by spaces, we can step through it
  8144. # and add multilib dir if necessary.
  8145. lt_tmp_lt_search_path_spec=
  8146. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8147. for lt_sys_path in $lt_search_path_spec; do
  8148. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8149. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8150. else
  8151. test -d "$lt_sys_path" && \
  8152. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8153. fi
  8154. done
  8155. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8156. BEGIN {RS=" "; FS="/|\n";} {
  8157. lt_foo="";
  8158. lt_count=0;
  8159. for (lt_i = NF; lt_i > 0; lt_i--) {
  8160. if ($lt_i != "" && $lt_i != ".") {
  8161. if ($lt_i == "..") {
  8162. lt_count++;
  8163. } else {
  8164. if (lt_count == 0) {
  8165. lt_foo="/" $lt_i lt_foo;
  8166. } else {
  8167. lt_count--;
  8168. }
  8169. }
  8170. }
  8171. }
  8172. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8173. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8174. }'`
  8175. # AWK program above erroneously prepends '/' to C:/dos/paths
  8176. # for these hosts.
  8177. case $host_os in
  8178. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8179. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8180. esac
  8181. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8182. else
  8183. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8184. fi
  8185. library_names_spec=
  8186. libname_spec='lib$name'
  8187. soname_spec=
  8188. shrext_cmds=".so"
  8189. postinstall_cmds=
  8190. postuninstall_cmds=
  8191. finish_cmds=
  8192. finish_eval=
  8193. shlibpath_var=
  8194. shlibpath_overrides_runpath=unknown
  8195. version_type=none
  8196. dynamic_linker="$host_os ld.so"
  8197. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8198. need_lib_prefix=unknown
  8199. hardcode_into_libs=no
  8200. # when you set need_version to no, make sure it does not cause -set_version
  8201. # flags to be left without arguments
  8202. need_version=unknown
  8203. case $host_os in
  8204. aix3*)
  8205. version_type=linux
  8206. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8207. shlibpath_var=LIBPATH
  8208. # AIX 3 has no versioning support, so we append a major version to the name.
  8209. soname_spec='${libname}${release}${shared_ext}$major'
  8210. ;;
  8211. aix[4-9]*)
  8212. version_type=linux
  8213. need_lib_prefix=no
  8214. need_version=no
  8215. hardcode_into_libs=yes
  8216. if test "$host_cpu" = ia64; then
  8217. # AIX 5 supports IA64
  8218. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8219. shlibpath_var=LD_LIBRARY_PATH
  8220. else
  8221. # With GCC up to 2.95.x, collect2 would create an import file
  8222. # for dependence libraries. The import file would start with
  8223. # the line `#! .'. This would cause the generated library to
  8224. # depend on `.', always an invalid library. This was fixed in
  8225. # development snapshots of GCC prior to 3.0.
  8226. case $host_os in
  8227. aix4 | aix4.[01] | aix4.[01].*)
  8228. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8229. echo ' yes '
  8230. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8231. :
  8232. else
  8233. can_build_shared=no
  8234. fi
  8235. ;;
  8236. esac
  8237. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8238. # soname into executable. Probably we can add versioning support to
  8239. # collect2, so additional links can be useful in future.
  8240. if test "$aix_use_runtimelinking" = yes; then
  8241. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8242. # instead of lib<name>.a to let people know that these are not
  8243. # typical AIX shared libraries.
  8244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8245. else
  8246. # We preserve .a as extension for shared libraries through AIX4.2
  8247. # and later when we are not doing run time linking.
  8248. library_names_spec='${libname}${release}.a $libname.a'
  8249. soname_spec='${libname}${release}${shared_ext}$major'
  8250. fi
  8251. shlibpath_var=LIBPATH
  8252. fi
  8253. ;;
  8254. amigaos*)
  8255. case $host_cpu in
  8256. powerpc)
  8257. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8258. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8260. ;;
  8261. m68k)
  8262. library_names_spec='$libname.ixlibrary $libname.a'
  8263. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8264. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8265. ;;
  8266. esac
  8267. ;;
  8268. beos*)
  8269. library_names_spec='${libname}${shared_ext}'
  8270. dynamic_linker="$host_os ld.so"
  8271. shlibpath_var=LIBRARY_PATH
  8272. ;;
  8273. bsdi[45]*)
  8274. version_type=linux
  8275. need_version=no
  8276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8277. soname_spec='${libname}${release}${shared_ext}$major'
  8278. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8279. shlibpath_var=LD_LIBRARY_PATH
  8280. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8281. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8282. # the default ld.so.conf also contains /usr/contrib/lib and
  8283. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8284. # libtool to hard-code these into programs
  8285. ;;
  8286. cygwin* | mingw* | pw32* | cegcc*)
  8287. version_type=windows
  8288. shrext_cmds=".dll"
  8289. need_version=no
  8290. need_lib_prefix=no
  8291. case $GCC,$host_os in
  8292. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8293. library_names_spec='$libname.dll.a'
  8294. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8295. postinstall_cmds='base_file=`basename \${file}`~
  8296. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8297. dldir=$destdir/`dirname \$dlpath`~
  8298. test -d \$dldir || mkdir -p \$dldir~
  8299. $install_prog $dir/$dlname \$dldir/$dlname~
  8300. chmod a+x \$dldir/$dlname~
  8301. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8302. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8303. fi'
  8304. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8305. dlpath=$dir/\$dldll~
  8306. $RM \$dlpath'
  8307. shlibpath_overrides_runpath=yes
  8308. case $host_os in
  8309. cygwin*)
  8310. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8311. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8312. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8313. ;;
  8314. mingw* | cegcc*)
  8315. # MinGW DLLs use traditional 'lib' prefix
  8316. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8317. ;;
  8318. pw32*)
  8319. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8320. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8321. ;;
  8322. esac
  8323. ;;
  8324. *)
  8325. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8326. ;;
  8327. esac
  8328. dynamic_linker='Win32 ld.exe'
  8329. # FIXME: first we should search . and the directory the executable is in
  8330. shlibpath_var=PATH
  8331. ;;
  8332. darwin* | rhapsody*)
  8333. dynamic_linker="$host_os dyld"
  8334. version_type=darwin
  8335. need_lib_prefix=no
  8336. need_version=no
  8337. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8338. soname_spec='${libname}${release}${major}$shared_ext'
  8339. shlibpath_overrides_runpath=yes
  8340. shlibpath_var=DYLD_LIBRARY_PATH
  8341. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8342. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8343. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8344. ;;
  8345. dgux*)
  8346. version_type=linux
  8347. need_lib_prefix=no
  8348. need_version=no
  8349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8350. soname_spec='${libname}${release}${shared_ext}$major'
  8351. shlibpath_var=LD_LIBRARY_PATH
  8352. ;;
  8353. freebsd* | dragonfly*)
  8354. # DragonFly does not have aout. When/if they implement a new
  8355. # versioning mechanism, adjust this.
  8356. if test -x /usr/bin/objformat; then
  8357. objformat=`/usr/bin/objformat`
  8358. else
  8359. case $host_os in
  8360. freebsd[23].*) objformat=aout ;;
  8361. *) objformat=elf ;;
  8362. esac
  8363. fi
  8364. version_type=freebsd-$objformat
  8365. case $version_type in
  8366. freebsd-elf*)
  8367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8368. need_version=no
  8369. need_lib_prefix=no
  8370. ;;
  8371. freebsd-*)
  8372. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8373. need_version=yes
  8374. ;;
  8375. esac
  8376. shlibpath_var=LD_LIBRARY_PATH
  8377. case $host_os in
  8378. freebsd2.*)
  8379. shlibpath_overrides_runpath=yes
  8380. ;;
  8381. freebsd3.[01]* | freebsdelf3.[01]*)
  8382. shlibpath_overrides_runpath=yes
  8383. hardcode_into_libs=yes
  8384. ;;
  8385. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8386. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8387. shlibpath_overrides_runpath=no
  8388. hardcode_into_libs=yes
  8389. ;;
  8390. *) # from 4.6 on, and DragonFly
  8391. shlibpath_overrides_runpath=yes
  8392. hardcode_into_libs=yes
  8393. ;;
  8394. esac
  8395. ;;
  8396. gnu*)
  8397. version_type=linux
  8398. need_lib_prefix=no
  8399. need_version=no
  8400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8401. soname_spec='${libname}${release}${shared_ext}$major'
  8402. shlibpath_var=LD_LIBRARY_PATH
  8403. hardcode_into_libs=yes
  8404. ;;
  8405. haiku*)
  8406. version_type=linux
  8407. need_lib_prefix=no
  8408. need_version=no
  8409. dynamic_linker="$host_os runtime_loader"
  8410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8411. soname_spec='${libname}${release}${shared_ext}$major'
  8412. shlibpath_var=LIBRARY_PATH
  8413. shlibpath_overrides_runpath=yes
  8414. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8415. hardcode_into_libs=yes
  8416. ;;
  8417. hpux9* | hpux10* | hpux11*)
  8418. # Give a soname corresponding to the major version so that dld.sl refuses to
  8419. # link against other versions.
  8420. version_type=sunos
  8421. need_lib_prefix=no
  8422. need_version=no
  8423. case $host_cpu in
  8424. ia64*)
  8425. shrext_cmds='.so'
  8426. hardcode_into_libs=yes
  8427. dynamic_linker="$host_os dld.so"
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8431. soname_spec='${libname}${release}${shared_ext}$major'
  8432. if test "X$HPUX_IA64_MODE" = X32; then
  8433. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8434. else
  8435. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8436. fi
  8437. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8438. ;;
  8439. hppa*64*)
  8440. shrext_cmds='.sl'
  8441. hardcode_into_libs=yes
  8442. dynamic_linker="$host_os dld.sl"
  8443. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8444. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8446. soname_spec='${libname}${release}${shared_ext}$major'
  8447. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8448. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8449. ;;
  8450. *)
  8451. shrext_cmds='.sl'
  8452. dynamic_linker="$host_os dld.sl"
  8453. shlibpath_var=SHLIB_PATH
  8454. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8456. soname_spec='${libname}${release}${shared_ext}$major'
  8457. ;;
  8458. esac
  8459. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8460. postinstall_cmds='chmod 555 $lib'
  8461. # or fails outright, so override atomically:
  8462. install_override_mode=555
  8463. ;;
  8464. interix[3-9]*)
  8465. version_type=linux
  8466. need_lib_prefix=no
  8467. need_version=no
  8468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8469. soname_spec='${libname}${release}${shared_ext}$major'
  8470. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8471. shlibpath_var=LD_LIBRARY_PATH
  8472. shlibpath_overrides_runpath=no
  8473. hardcode_into_libs=yes
  8474. ;;
  8475. irix5* | irix6* | nonstopux*)
  8476. case $host_os in
  8477. nonstopux*) version_type=nonstopux ;;
  8478. *)
  8479. if test "$lt_cv_prog_gnu_ld" = yes; then
  8480. version_type=linux
  8481. else
  8482. version_type=irix
  8483. fi ;;
  8484. esac
  8485. need_lib_prefix=no
  8486. need_version=no
  8487. soname_spec='${libname}${release}${shared_ext}$major'
  8488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8489. case $host_os in
  8490. irix5* | nonstopux*)
  8491. libsuff= shlibsuff=
  8492. ;;
  8493. *)
  8494. case $LD in # libtool.m4 will add one of these switches to LD
  8495. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8496. libsuff= shlibsuff= libmagic=32-bit;;
  8497. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8498. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8499. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8500. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8501. *) libsuff= shlibsuff= libmagic=never-match;;
  8502. esac
  8503. ;;
  8504. esac
  8505. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8506. shlibpath_overrides_runpath=no
  8507. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8508. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8509. hardcode_into_libs=yes
  8510. ;;
  8511. # No shared lib support for Linux oldld, aout, or coff.
  8512. linux*oldld* | linux*aout* | linux*coff*)
  8513. dynamic_linker=no
  8514. ;;
  8515. # This must be Linux ELF.
  8516. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8517. version_type=linux
  8518. need_lib_prefix=no
  8519. need_version=no
  8520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8521. soname_spec='${libname}${release}${shared_ext}$major'
  8522. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. shlibpath_overrides_runpath=no
  8525. # Some binutils ld are patched to set DT_RUNPATH
  8526. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8527. $as_echo_n "(cached) " >&6
  8528. else
  8529. lt_cv_shlibpath_overrides_runpath=no
  8530. save_LDFLAGS=$LDFLAGS
  8531. save_libdir=$libdir
  8532. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8533. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8534. if test x$gcc_no_link = xyes; then
  8535. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8536. fi
  8537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8538. /* end confdefs.h. */
  8539. int
  8540. main ()
  8541. {
  8542. ;
  8543. return 0;
  8544. }
  8545. _ACEOF
  8546. if ac_fn_c_try_link "$LINENO"; then :
  8547. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8548. lt_cv_shlibpath_overrides_runpath=yes
  8549. fi
  8550. fi
  8551. rm -f core conftest.err conftest.$ac_objext \
  8552. conftest$ac_exeext conftest.$ac_ext
  8553. LDFLAGS=$save_LDFLAGS
  8554. libdir=$save_libdir
  8555. fi
  8556. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8557. # This implies no fast_install, which is unacceptable.
  8558. # Some rework will be needed to allow for fast_install
  8559. # before this can be enabled.
  8560. hardcode_into_libs=yes
  8561. # Append ld.so.conf contents to the search path
  8562. if test -f /etc/ld.so.conf; then
  8563. 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' ' '`
  8564. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8565. fi
  8566. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8567. # powerpc, because MkLinux only supported shared libraries with the
  8568. # GNU dynamic linker. Since this was broken with cross compilers,
  8569. # most powerpc-linux boxes support dynamic linking these days and
  8570. # people can always --disable-shared, the test was removed, and we
  8571. # assume the GNU/Linux dynamic linker is in use.
  8572. dynamic_linker='GNU/Linux ld.so'
  8573. ;;
  8574. netbsd*)
  8575. version_type=sunos
  8576. need_lib_prefix=no
  8577. need_version=no
  8578. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8580. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8581. dynamic_linker='NetBSD (a.out) ld.so'
  8582. else
  8583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8584. soname_spec='${libname}${release}${shared_ext}$major'
  8585. dynamic_linker='NetBSD ld.elf_so'
  8586. fi
  8587. shlibpath_var=LD_LIBRARY_PATH
  8588. shlibpath_overrides_runpath=yes
  8589. hardcode_into_libs=yes
  8590. ;;
  8591. newsos6)
  8592. version_type=linux
  8593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8594. shlibpath_var=LD_LIBRARY_PATH
  8595. shlibpath_overrides_runpath=yes
  8596. ;;
  8597. *nto* | *qnx*)
  8598. version_type=qnx
  8599. need_lib_prefix=no
  8600. need_version=no
  8601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8602. soname_spec='${libname}${release}${shared_ext}$major'
  8603. shlibpath_var=LD_LIBRARY_PATH
  8604. shlibpath_overrides_runpath=no
  8605. hardcode_into_libs=yes
  8606. dynamic_linker='ldqnx.so'
  8607. ;;
  8608. openbsd*)
  8609. version_type=sunos
  8610. sys_lib_dlsearch_path_spec="/usr/lib"
  8611. need_lib_prefix=no
  8612. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8613. case $host_os in
  8614. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8615. *) need_version=no ;;
  8616. esac
  8617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8618. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8619. shlibpath_var=LD_LIBRARY_PATH
  8620. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8621. case $host_os in
  8622. openbsd2.[89] | openbsd2.[89].*)
  8623. shlibpath_overrides_runpath=no
  8624. ;;
  8625. *)
  8626. shlibpath_overrides_runpath=yes
  8627. ;;
  8628. esac
  8629. else
  8630. shlibpath_overrides_runpath=yes
  8631. fi
  8632. ;;
  8633. os2*)
  8634. libname_spec='$name'
  8635. shrext_cmds=".dll"
  8636. need_lib_prefix=no
  8637. library_names_spec='$libname${shared_ext} $libname.a'
  8638. dynamic_linker='OS/2 ld.exe'
  8639. shlibpath_var=LIBPATH
  8640. ;;
  8641. osf3* | osf4* | osf5*)
  8642. version_type=osf
  8643. need_lib_prefix=no
  8644. need_version=no
  8645. soname_spec='${libname}${release}${shared_ext}$major'
  8646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8647. shlibpath_var=LD_LIBRARY_PATH
  8648. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8649. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8650. ;;
  8651. rdos*)
  8652. dynamic_linker=no
  8653. ;;
  8654. solaris*)
  8655. version_type=linux
  8656. need_lib_prefix=no
  8657. need_version=no
  8658. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8659. soname_spec='${libname}${release}${shared_ext}$major'
  8660. shlibpath_var=LD_LIBRARY_PATH
  8661. shlibpath_overrides_runpath=yes
  8662. hardcode_into_libs=yes
  8663. # ldd complains unless libraries are executable
  8664. postinstall_cmds='chmod +x $lib'
  8665. ;;
  8666. sunos4*)
  8667. version_type=sunos
  8668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8669. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8670. shlibpath_var=LD_LIBRARY_PATH
  8671. shlibpath_overrides_runpath=yes
  8672. if test "$with_gnu_ld" = yes; then
  8673. need_lib_prefix=no
  8674. fi
  8675. need_version=yes
  8676. ;;
  8677. sysv4 | sysv4.3*)
  8678. version_type=linux
  8679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8680. soname_spec='${libname}${release}${shared_ext}$major'
  8681. shlibpath_var=LD_LIBRARY_PATH
  8682. case $host_vendor in
  8683. sni)
  8684. shlibpath_overrides_runpath=no
  8685. need_lib_prefix=no
  8686. runpath_var=LD_RUN_PATH
  8687. ;;
  8688. siemens)
  8689. need_lib_prefix=no
  8690. ;;
  8691. motorola)
  8692. need_lib_prefix=no
  8693. need_version=no
  8694. shlibpath_overrides_runpath=no
  8695. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8696. ;;
  8697. esac
  8698. ;;
  8699. sysv4*MP*)
  8700. if test -d /usr/nec ;then
  8701. version_type=linux
  8702. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8703. soname_spec='$libname${shared_ext}.$major'
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. fi
  8706. ;;
  8707. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8708. version_type=freebsd-elf
  8709. need_lib_prefix=no
  8710. need_version=no
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8712. soname_spec='${libname}${release}${shared_ext}$major'
  8713. shlibpath_var=LD_LIBRARY_PATH
  8714. shlibpath_overrides_runpath=yes
  8715. hardcode_into_libs=yes
  8716. if test "$with_gnu_ld" = yes; then
  8717. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8718. else
  8719. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8720. case $host_os in
  8721. sco3.2v5*)
  8722. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8723. ;;
  8724. esac
  8725. fi
  8726. sys_lib_dlsearch_path_spec='/usr/lib'
  8727. ;;
  8728. tpf*)
  8729. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8730. version_type=linux
  8731. need_lib_prefix=no
  8732. need_version=no
  8733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8734. shlibpath_var=LD_LIBRARY_PATH
  8735. shlibpath_overrides_runpath=no
  8736. hardcode_into_libs=yes
  8737. ;;
  8738. uts4*)
  8739. version_type=linux
  8740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8741. soname_spec='${libname}${release}${shared_ext}$major'
  8742. shlibpath_var=LD_LIBRARY_PATH
  8743. ;;
  8744. *)
  8745. dynamic_linker=no
  8746. ;;
  8747. esac
  8748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8749. $as_echo "$dynamic_linker" >&6; }
  8750. test "$dynamic_linker" = no && can_build_shared=no
  8751. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8752. if test "$GCC" = yes; then
  8753. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8754. fi
  8755. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8756. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8757. fi
  8758. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8759. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8760. fi
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8762. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8763. hardcode_action=
  8764. if test -n "$hardcode_libdir_flag_spec" ||
  8765. test -n "$runpath_var" ||
  8766. test "X$hardcode_automatic" = "Xyes" ; then
  8767. # We can hardcode non-existent directories.
  8768. if test "$hardcode_direct" != no &&
  8769. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8770. # have to relink, otherwise we might link with an installed library
  8771. # when we should be linking with a yet-to-be-installed one
  8772. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8773. test "$hardcode_minus_L" != no; then
  8774. # Linking always hardcodes the temporary library directory.
  8775. hardcode_action=relink
  8776. else
  8777. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8778. hardcode_action=immediate
  8779. fi
  8780. else
  8781. # We cannot hardcode anything, or else we can only hardcode existing
  8782. # directories.
  8783. hardcode_action=unsupported
  8784. fi
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8786. $as_echo "$hardcode_action" >&6; }
  8787. if test "$hardcode_action" = relink ||
  8788. test "$inherit_rpath" = yes; then
  8789. # Fast installation is not supported
  8790. enable_fast_install=no
  8791. elif test "$shlibpath_overrides_runpath" = yes ||
  8792. test "$enable_shared" = no; then
  8793. # Fast installation is not necessary
  8794. enable_fast_install=needless
  8795. fi
  8796. if test "x$enable_dlopen" != xyes; then
  8797. enable_dlopen=unknown
  8798. enable_dlopen_self=unknown
  8799. enable_dlopen_self_static=unknown
  8800. else
  8801. lt_cv_dlopen=no
  8802. lt_cv_dlopen_libs=
  8803. case $host_os in
  8804. beos*)
  8805. lt_cv_dlopen="load_add_on"
  8806. lt_cv_dlopen_libs=
  8807. lt_cv_dlopen_self=yes
  8808. ;;
  8809. mingw* | pw32* | cegcc*)
  8810. lt_cv_dlopen="LoadLibrary"
  8811. lt_cv_dlopen_libs=
  8812. ;;
  8813. cygwin*)
  8814. lt_cv_dlopen="dlopen"
  8815. lt_cv_dlopen_libs=
  8816. ;;
  8817. darwin*)
  8818. # if libdl is installed we need to link against it
  8819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8820. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8821. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8822. $as_echo_n "(cached) " >&6
  8823. else
  8824. ac_check_lib_save_LIBS=$LIBS
  8825. LIBS="-ldl $LIBS"
  8826. if test x$gcc_no_link = xyes; then
  8827. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8828. fi
  8829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8830. /* end confdefs.h. */
  8831. /* Override any GCC internal prototype to avoid an error.
  8832. Use char because int might match the return type of a GCC
  8833. builtin and then its argument prototype would still apply. */
  8834. #ifdef __cplusplus
  8835. extern "C"
  8836. #endif
  8837. char dlopen ();
  8838. int
  8839. main ()
  8840. {
  8841. return dlopen ();
  8842. ;
  8843. return 0;
  8844. }
  8845. _ACEOF
  8846. if ac_fn_c_try_link "$LINENO"; then :
  8847. ac_cv_lib_dl_dlopen=yes
  8848. else
  8849. ac_cv_lib_dl_dlopen=no
  8850. fi
  8851. rm -f core conftest.err conftest.$ac_objext \
  8852. conftest$ac_exeext conftest.$ac_ext
  8853. LIBS=$ac_check_lib_save_LIBS
  8854. fi
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8856. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8857. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8858. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8859. else
  8860. lt_cv_dlopen="dyld"
  8861. lt_cv_dlopen_libs=
  8862. lt_cv_dlopen_self=yes
  8863. fi
  8864. ;;
  8865. *)
  8866. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8867. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8868. lt_cv_dlopen="shl_load"
  8869. else
  8870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8871. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8872. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8873. $as_echo_n "(cached) " >&6
  8874. else
  8875. ac_check_lib_save_LIBS=$LIBS
  8876. LIBS="-ldld $LIBS"
  8877. if test x$gcc_no_link = xyes; then
  8878. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8879. fi
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882. /* Override any GCC internal prototype to avoid an error.
  8883. Use char because int might match the return type of a GCC
  8884. builtin and then its argument prototype would still apply. */
  8885. #ifdef __cplusplus
  8886. extern "C"
  8887. #endif
  8888. char shl_load ();
  8889. int
  8890. main ()
  8891. {
  8892. return shl_load ();
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. if ac_fn_c_try_link "$LINENO"; then :
  8898. ac_cv_lib_dld_shl_load=yes
  8899. else
  8900. ac_cv_lib_dld_shl_load=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. LIBS=$ac_check_lib_save_LIBS
  8905. fi
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8907. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8908. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8909. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8910. else
  8911. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8912. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8913. lt_cv_dlopen="dlopen"
  8914. else
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8916. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8917. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8918. $as_echo_n "(cached) " >&6
  8919. else
  8920. ac_check_lib_save_LIBS=$LIBS
  8921. LIBS="-ldl $LIBS"
  8922. if test x$gcc_no_link = xyes; then
  8923. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8924. fi
  8925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8926. /* end confdefs.h. */
  8927. /* Override any GCC internal prototype to avoid an error.
  8928. Use char because int might match the return type of a GCC
  8929. builtin and then its argument prototype would still apply. */
  8930. #ifdef __cplusplus
  8931. extern "C"
  8932. #endif
  8933. char dlopen ();
  8934. int
  8935. main ()
  8936. {
  8937. return dlopen ();
  8938. ;
  8939. return 0;
  8940. }
  8941. _ACEOF
  8942. if ac_fn_c_try_link "$LINENO"; then :
  8943. ac_cv_lib_dl_dlopen=yes
  8944. else
  8945. ac_cv_lib_dl_dlopen=no
  8946. fi
  8947. rm -f core conftest.err conftest.$ac_objext \
  8948. conftest$ac_exeext conftest.$ac_ext
  8949. LIBS=$ac_check_lib_save_LIBS
  8950. fi
  8951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8952. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8953. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8954. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8955. else
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8957. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8958. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8959. $as_echo_n "(cached) " >&6
  8960. else
  8961. ac_check_lib_save_LIBS=$LIBS
  8962. LIBS="-lsvld $LIBS"
  8963. if test x$gcc_no_link = xyes; then
  8964. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8965. fi
  8966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8967. /* end confdefs.h. */
  8968. /* Override any GCC internal prototype to avoid an error.
  8969. Use char because int might match the return type of a GCC
  8970. builtin and then its argument prototype would still apply. */
  8971. #ifdef __cplusplus
  8972. extern "C"
  8973. #endif
  8974. char dlopen ();
  8975. int
  8976. main ()
  8977. {
  8978. return dlopen ();
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. if ac_fn_c_try_link "$LINENO"; then :
  8984. ac_cv_lib_svld_dlopen=yes
  8985. else
  8986. ac_cv_lib_svld_dlopen=no
  8987. fi
  8988. rm -f core conftest.err conftest.$ac_objext \
  8989. conftest$ac_exeext conftest.$ac_ext
  8990. LIBS=$ac_check_lib_save_LIBS
  8991. fi
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8993. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8994. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8995. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8996. else
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8998. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8999. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9000. $as_echo_n "(cached) " >&6
  9001. else
  9002. ac_check_lib_save_LIBS=$LIBS
  9003. LIBS="-ldld $LIBS"
  9004. if test x$gcc_no_link = xyes; then
  9005. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9006. fi
  9007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9008. /* end confdefs.h. */
  9009. /* Override any GCC internal prototype to avoid an error.
  9010. Use char because int might match the return type of a GCC
  9011. builtin and then its argument prototype would still apply. */
  9012. #ifdef __cplusplus
  9013. extern "C"
  9014. #endif
  9015. char dld_link ();
  9016. int
  9017. main ()
  9018. {
  9019. return dld_link ();
  9020. ;
  9021. return 0;
  9022. }
  9023. _ACEOF
  9024. if ac_fn_c_try_link "$LINENO"; then :
  9025. ac_cv_lib_dld_dld_link=yes
  9026. else
  9027. ac_cv_lib_dld_dld_link=no
  9028. fi
  9029. rm -f core conftest.err conftest.$ac_objext \
  9030. conftest$ac_exeext conftest.$ac_ext
  9031. LIBS=$ac_check_lib_save_LIBS
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9034. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9035. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9036. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9037. fi
  9038. fi
  9039. fi
  9040. fi
  9041. fi
  9042. fi
  9043. ;;
  9044. esac
  9045. if test "x$lt_cv_dlopen" != xno; then
  9046. enable_dlopen=yes
  9047. else
  9048. enable_dlopen=no
  9049. fi
  9050. case $lt_cv_dlopen in
  9051. dlopen)
  9052. save_CPPFLAGS="$CPPFLAGS"
  9053. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9054. save_LDFLAGS="$LDFLAGS"
  9055. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9056. save_LIBS="$LIBS"
  9057. LIBS="$lt_cv_dlopen_libs $LIBS"
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9059. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9060. if test "${lt_cv_dlopen_self+set}" = set; then :
  9061. $as_echo_n "(cached) " >&6
  9062. else
  9063. if test "$cross_compiling" = yes; then :
  9064. lt_cv_dlopen_self=cross
  9065. else
  9066. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9067. lt_status=$lt_dlunknown
  9068. cat > conftest.$ac_ext <<_LT_EOF
  9069. #line 10604 "configure"
  9070. #include "confdefs.h"
  9071. #if HAVE_DLFCN_H
  9072. #include <dlfcn.h>
  9073. #endif
  9074. #include <stdio.h>
  9075. #ifdef RTLD_GLOBAL
  9076. # define LT_DLGLOBAL RTLD_GLOBAL
  9077. #else
  9078. # ifdef DL_GLOBAL
  9079. # define LT_DLGLOBAL DL_GLOBAL
  9080. # else
  9081. # define LT_DLGLOBAL 0
  9082. # endif
  9083. #endif
  9084. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9085. find out it does not work in some platform. */
  9086. #ifndef LT_DLLAZY_OR_NOW
  9087. # ifdef RTLD_LAZY
  9088. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9089. # else
  9090. # ifdef DL_LAZY
  9091. # define LT_DLLAZY_OR_NOW DL_LAZY
  9092. # else
  9093. # ifdef RTLD_NOW
  9094. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9095. # else
  9096. # ifdef DL_NOW
  9097. # define LT_DLLAZY_OR_NOW DL_NOW
  9098. # else
  9099. # define LT_DLLAZY_OR_NOW 0
  9100. # endif
  9101. # endif
  9102. # endif
  9103. # endif
  9104. #endif
  9105. /* When -fvisbility=hidden is used, assume the code has been annotated
  9106. correspondingly for the symbols needed. */
  9107. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9108. void fnord () __attribute__((visibility("default")));
  9109. #endif
  9110. void fnord () { int i=42; }
  9111. int main ()
  9112. {
  9113. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9114. int status = $lt_dlunknown;
  9115. if (self)
  9116. {
  9117. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9118. else
  9119. {
  9120. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9121. else puts (dlerror ());
  9122. }
  9123. /* dlclose (self); */
  9124. }
  9125. else
  9126. puts (dlerror ());
  9127. return status;
  9128. }
  9129. _LT_EOF
  9130. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9131. (eval $ac_link) 2>&5
  9132. ac_status=$?
  9133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9134. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9135. (./conftest; exit; ) >&5 2>/dev/null
  9136. lt_status=$?
  9137. case x$lt_status in
  9138. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9139. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9140. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9141. esac
  9142. else :
  9143. # compilation failed
  9144. lt_cv_dlopen_self=no
  9145. fi
  9146. fi
  9147. rm -fr conftest*
  9148. fi
  9149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9150. $as_echo "$lt_cv_dlopen_self" >&6; }
  9151. if test "x$lt_cv_dlopen_self" = xyes; then
  9152. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9154. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9155. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9156. $as_echo_n "(cached) " >&6
  9157. else
  9158. if test "$cross_compiling" = yes; then :
  9159. lt_cv_dlopen_self_static=cross
  9160. else
  9161. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9162. lt_status=$lt_dlunknown
  9163. cat > conftest.$ac_ext <<_LT_EOF
  9164. #line 10710 "configure"
  9165. #include "confdefs.h"
  9166. #if HAVE_DLFCN_H
  9167. #include <dlfcn.h>
  9168. #endif
  9169. #include <stdio.h>
  9170. #ifdef RTLD_GLOBAL
  9171. # define LT_DLGLOBAL RTLD_GLOBAL
  9172. #else
  9173. # ifdef DL_GLOBAL
  9174. # define LT_DLGLOBAL DL_GLOBAL
  9175. # else
  9176. # define LT_DLGLOBAL 0
  9177. # endif
  9178. #endif
  9179. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9180. find out it does not work in some platform. */
  9181. #ifndef LT_DLLAZY_OR_NOW
  9182. # ifdef RTLD_LAZY
  9183. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9184. # else
  9185. # ifdef DL_LAZY
  9186. # define LT_DLLAZY_OR_NOW DL_LAZY
  9187. # else
  9188. # ifdef RTLD_NOW
  9189. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9190. # else
  9191. # ifdef DL_NOW
  9192. # define LT_DLLAZY_OR_NOW DL_NOW
  9193. # else
  9194. # define LT_DLLAZY_OR_NOW 0
  9195. # endif
  9196. # endif
  9197. # endif
  9198. # endif
  9199. #endif
  9200. /* When -fvisbility=hidden is used, assume the code has been annotated
  9201. correspondingly for the symbols needed. */
  9202. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9203. void fnord () __attribute__((visibility("default")));
  9204. #endif
  9205. void fnord () { int i=42; }
  9206. int main ()
  9207. {
  9208. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9209. int status = $lt_dlunknown;
  9210. if (self)
  9211. {
  9212. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9213. else
  9214. {
  9215. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9216. else puts (dlerror ());
  9217. }
  9218. /* dlclose (self); */
  9219. }
  9220. else
  9221. puts (dlerror ());
  9222. return status;
  9223. }
  9224. _LT_EOF
  9225. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9226. (eval $ac_link) 2>&5
  9227. ac_status=$?
  9228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9229. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9230. (./conftest; exit; ) >&5 2>/dev/null
  9231. lt_status=$?
  9232. case x$lt_status in
  9233. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9234. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9235. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9236. esac
  9237. else :
  9238. # compilation failed
  9239. lt_cv_dlopen_self_static=no
  9240. fi
  9241. fi
  9242. rm -fr conftest*
  9243. fi
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9245. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9246. fi
  9247. CPPFLAGS="$save_CPPFLAGS"
  9248. LDFLAGS="$save_LDFLAGS"
  9249. LIBS="$save_LIBS"
  9250. ;;
  9251. esac
  9252. case $lt_cv_dlopen_self in
  9253. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9254. *) enable_dlopen_self=unknown ;;
  9255. esac
  9256. case $lt_cv_dlopen_self_static in
  9257. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9258. *) enable_dlopen_self_static=unknown ;;
  9259. esac
  9260. fi
  9261. striplib=
  9262. old_striplib=
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9264. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9265. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9266. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9267. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9269. $as_echo "yes" >&6; }
  9270. else
  9271. # FIXME - insert some real tests, host_os isn't really good enough
  9272. case $host_os in
  9273. darwin*)
  9274. if test -n "$STRIP" ; then
  9275. striplib="$STRIP -x"
  9276. old_striplib="$STRIP -S"
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9278. $as_echo "yes" >&6; }
  9279. else
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9281. $as_echo "no" >&6; }
  9282. fi
  9283. ;;
  9284. *)
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9286. $as_echo "no" >&6; }
  9287. ;;
  9288. esac
  9289. fi
  9290. # Report which library types will actually be built
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9292. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9294. $as_echo "$can_build_shared" >&6; }
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9296. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9297. test "$can_build_shared" = "no" && enable_shared=no
  9298. # On AIX, shared libraries and static libraries use the same namespace, and
  9299. # are all built from PIC.
  9300. case $host_os in
  9301. aix3*)
  9302. test "$enable_shared" = yes && enable_static=no
  9303. if test -n "$RANLIB"; then
  9304. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9305. postinstall_cmds='$RANLIB $lib'
  9306. fi
  9307. ;;
  9308. aix[4-9]*)
  9309. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9310. test "$enable_shared" = yes && enable_static=no
  9311. fi
  9312. ;;
  9313. esac
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9315. $as_echo "$enable_shared" >&6; }
  9316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9317. $as_echo_n "checking whether to build static libraries... " >&6; }
  9318. # Make sure either enable_shared or enable_static is yes.
  9319. test "$enable_shared" = yes || enable_static=yes
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9321. $as_echo "$enable_static" >&6; }
  9322. fi
  9323. ac_ext=c
  9324. ac_cpp='$CPP $CPPFLAGS'
  9325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9328. CC="$lt_save_CC"
  9329. ac_config_commands="$ac_config_commands libtool"
  9330. # Only expand once:
  9331. if test "x$CC" != xcc; then
  9332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9333. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9334. else
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9336. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9337. fi
  9338. set dummy $CC; ac_cc=`$as_echo "$2" |
  9339. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9340. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  9341. $as_echo_n "(cached) " >&6
  9342. else
  9343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9344. /* end confdefs.h. */
  9345. int
  9346. main ()
  9347. {
  9348. ;
  9349. return 0;
  9350. }
  9351. _ACEOF
  9352. # Make sure it works both with $CC and with simple cc.
  9353. # We do the test twice because some compilers refuse to overwrite an
  9354. # existing .o file with -o, though they will create one.
  9355. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9356. rm -f conftest2.*
  9357. if { { case "(($ac_try" in
  9358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9359. *) ac_try_echo=$ac_try;;
  9360. esac
  9361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9362. $as_echo "$ac_try_echo"; } >&5
  9363. (eval "$ac_try") 2>&5
  9364. ac_status=$?
  9365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9366. test $ac_status = 0; } &&
  9367. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9369. *) ac_try_echo=$ac_try;;
  9370. esac
  9371. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9372. $as_echo "$ac_try_echo"; } >&5
  9373. (eval "$ac_try") 2>&5
  9374. ac_status=$?
  9375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9376. test $ac_status = 0; };
  9377. then
  9378. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9379. if test "x$CC" != xcc; then
  9380. # Test first that cc exists at all.
  9381. if { ac_try='cc -c conftest.$ac_ext >&5'
  9382. { { case "(($ac_try" in
  9383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9384. *) ac_try_echo=$ac_try;;
  9385. esac
  9386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9387. $as_echo "$ac_try_echo"; } >&5
  9388. (eval "$ac_try") 2>&5
  9389. ac_status=$?
  9390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9391. test $ac_status = 0; }; }; then
  9392. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9393. rm -f conftest2.*
  9394. if { { case "(($ac_try" in
  9395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9396. *) ac_try_echo=$ac_try;;
  9397. esac
  9398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9399. $as_echo "$ac_try_echo"; } >&5
  9400. (eval "$ac_try") 2>&5
  9401. ac_status=$?
  9402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9403. test $ac_status = 0; } &&
  9404. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9406. *) ac_try_echo=$ac_try;;
  9407. esac
  9408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9409. $as_echo "$ac_try_echo"; } >&5
  9410. (eval "$ac_try") 2>&5
  9411. ac_status=$?
  9412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9413. test $ac_status = 0; };
  9414. then
  9415. # cc works too.
  9416. :
  9417. else
  9418. # cc exists but doesn't like -o.
  9419. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9420. fi
  9421. fi
  9422. fi
  9423. else
  9424. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9425. fi
  9426. rm -f core conftest*
  9427. fi
  9428. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9430. $as_echo "yes" >&6; }
  9431. else
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9433. $as_echo "no" >&6; }
  9434. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  9435. fi
  9436. # expand $ac_aux_dir to an absolute path
  9437. am_aux_dir=`cd $ac_aux_dir && pwd`
  9438. # FIXME: we rely on the cache variable name because
  9439. # there is no other way.
  9440. set dummy $CC
  9441. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9442. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9443. if test "$am_t" != yes; then
  9444. # Losing compiler, so override with the script.
  9445. # FIXME: It is wrong to rewrite CC.
  9446. # But if we don't then we get into trouble of one sort or another.
  9447. # A longer-term fix would be to have automake use am__CC in this case,
  9448. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9449. CC="$am_aux_dir/compile $CC"
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9452. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9453. set x ${MAKE-make}
  9454. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9455. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  9456. $as_echo_n "(cached) " >&6
  9457. else
  9458. cat >conftest.make <<\_ACEOF
  9459. SHELL = /bin/sh
  9460. all:
  9461. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9462. _ACEOF
  9463. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  9464. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9465. *@@@%%%=?*=@@@%%%*)
  9466. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9467. *)
  9468. eval ac_cv_prog_make_${ac_make}_set=no;;
  9469. esac
  9470. rm -f conftest.make
  9471. fi
  9472. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9474. $as_echo "yes" >&6; }
  9475. SET_MAKE=
  9476. else
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9478. $as_echo "no" >&6; }
  9479. SET_MAKE="MAKE=${MAKE-make}"
  9480. fi
  9481. # -------
  9482. # Headers
  9483. # -------
  9484. # Sanity check for the cross-compilation case:
  9485. ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  9486. if test "x$ac_cv_header_stdio_h" = x""yes; then :
  9487. :
  9488. else
  9489. as_fn_error "Can't find stdio.h.
  9490. You must have a usable C system for the target already installed, at least
  9491. including headers and, preferably, the library, before you can configure
  9492. the Objective C runtime system. If necessary, install gcc now with
  9493. \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
  9494. fi
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9496. $as_echo_n "checking for ANSI C header files... " >&6; }
  9497. if test "${ac_cv_header_stdc+set}" = set; then :
  9498. $as_echo_n "(cached) " >&6
  9499. else
  9500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9501. /* end confdefs.h. */
  9502. #include <stdlib.h>
  9503. #include <stdarg.h>
  9504. #include <string.h>
  9505. #include <float.h>
  9506. int
  9507. main ()
  9508. {
  9509. ;
  9510. return 0;
  9511. }
  9512. _ACEOF
  9513. if ac_fn_c_try_compile "$LINENO"; then :
  9514. ac_cv_header_stdc=yes
  9515. else
  9516. ac_cv_header_stdc=no
  9517. fi
  9518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9519. if test $ac_cv_header_stdc = yes; then
  9520. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9522. /* end confdefs.h. */
  9523. #include <string.h>
  9524. _ACEOF
  9525. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9526. $EGREP "memchr" >/dev/null 2>&1; then :
  9527. else
  9528. ac_cv_header_stdc=no
  9529. fi
  9530. rm -f conftest*
  9531. fi
  9532. if test $ac_cv_header_stdc = yes; then
  9533. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9535. /* end confdefs.h. */
  9536. #include <stdlib.h>
  9537. _ACEOF
  9538. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9539. $EGREP "free" >/dev/null 2>&1; then :
  9540. else
  9541. ac_cv_header_stdc=no
  9542. fi
  9543. rm -f conftest*
  9544. fi
  9545. if test $ac_cv_header_stdc = yes; then
  9546. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9547. if test "$cross_compiling" = yes; then :
  9548. :
  9549. else
  9550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9551. /* end confdefs.h. */
  9552. #include <ctype.h>
  9553. #include <stdlib.h>
  9554. #if ((' ' & 0x0FF) == 0x020)
  9555. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9556. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9557. #else
  9558. # define ISLOWER(c) \
  9559. (('a' <= (c) && (c) <= 'i') \
  9560. || ('j' <= (c) && (c) <= 'r') \
  9561. || ('s' <= (c) && (c) <= 'z'))
  9562. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9563. #endif
  9564. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9565. int
  9566. main ()
  9567. {
  9568. int i;
  9569. for (i = 0; i < 256; i++)
  9570. if (XOR (islower (i), ISLOWER (i))
  9571. || toupper (i) != TOUPPER (i))
  9572. return 2;
  9573. return 0;
  9574. }
  9575. _ACEOF
  9576. if ac_fn_c_try_run "$LINENO"; then :
  9577. else
  9578. ac_cv_header_stdc=no
  9579. fi
  9580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9581. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9582. fi
  9583. fi
  9584. fi
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9586. $as_echo "$ac_cv_header_stdc" >&6; }
  9587. if test $ac_cv_header_stdc = yes; then
  9588. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9589. fi
  9590. for ac_header in sched.h
  9591. do :
  9592. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  9593. if test "x$ac_cv_header_sched_h" = x""yes; then :
  9594. cat >>confdefs.h <<_ACEOF
  9595. #define HAVE_SCHED_H 1
  9596. _ACEOF
  9597. fi
  9598. done
  9599. # -----------
  9600. # Miscellanea
  9601. # -----------
  9602. # Check if we have thread-local storage
  9603. # Check whether --enable-tls was given.
  9604. if test "${enable_tls+set}" = set; then :
  9605. enableval=$enable_tls;
  9606. case "$enableval" in
  9607. yes|no) ;;
  9608. *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  9609. esac
  9610. else
  9611. enable_tls=yes
  9612. fi
  9613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  9614. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  9615. if test "${gcc_cv_have_tls+set}" = set; then :
  9616. $as_echo_n "(cached) " >&6
  9617. else
  9618. if test "$cross_compiling" = yes; then :
  9619. if test x$gcc_no_link = xyes; then
  9620. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9621. fi
  9622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9623. /* end confdefs.h. */
  9624. __thread int a; int b; int main() { return a = b; }
  9625. _ACEOF
  9626. if ac_fn_c_try_link "$LINENO"; then :
  9627. chktls_save_LDFLAGS="$LDFLAGS"
  9628. case $host in
  9629. *-*-linux*)
  9630. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  9631. ;;
  9632. esac
  9633. chktls_save_CFLAGS="$CFLAGS"
  9634. CFLAGS="-fPIC $CFLAGS"
  9635. if test x$gcc_no_link = xyes; then
  9636. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9637. fi
  9638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9639. /* end confdefs.h. */
  9640. int f() { return 0; }
  9641. _ACEOF
  9642. if ac_fn_c_try_link "$LINENO"; then :
  9643. if test x$gcc_no_link = xyes; then
  9644. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9645. fi
  9646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9647. /* end confdefs.h. */
  9648. __thread int a; int b; int f() { return a = b; }
  9649. _ACEOF
  9650. if ac_fn_c_try_link "$LINENO"; then :
  9651. gcc_cv_have_tls=yes
  9652. else
  9653. gcc_cv_have_tls=no
  9654. fi
  9655. rm -f core conftest.err conftest.$ac_objext \
  9656. conftest$ac_exeext conftest.$ac_ext
  9657. else
  9658. gcc_cv_have_tls=yes
  9659. fi
  9660. rm -f core conftest.err conftest.$ac_objext \
  9661. conftest$ac_exeext conftest.$ac_ext
  9662. CFLAGS="$chktls_save_CFLAGS"
  9663. LDFLAGS="$chktls_save_LDFLAGS"
  9664. else
  9665. gcc_cv_have_tls=no
  9666. fi
  9667. rm -f core conftest.err conftest.$ac_objext \
  9668. conftest$ac_exeext conftest.$ac_ext
  9669. else
  9670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9671. /* end confdefs.h. */
  9672. __thread int a; int b; int main() { return a = b; }
  9673. _ACEOF
  9674. if ac_fn_c_try_run "$LINENO"; then :
  9675. chktls_save_LDFLAGS="$LDFLAGS"
  9676. LDFLAGS="-static $LDFLAGS"
  9677. if test x$gcc_no_link = xyes; then
  9678. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9679. fi
  9680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9681. /* end confdefs.h. */
  9682. int main() { return 0; }
  9683. _ACEOF
  9684. if ac_fn_c_try_link "$LINENO"; then :
  9685. if test "$cross_compiling" = yes; then :
  9686. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9687. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9688. as_fn_error "cannot run test program while cross compiling
  9689. See \`config.log' for more details." "$LINENO" 5; }
  9690. else
  9691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9692. /* end confdefs.h. */
  9693. __thread int a; int b; int main() { return a = b; }
  9694. _ACEOF
  9695. if ac_fn_c_try_run "$LINENO"; then :
  9696. gcc_cv_have_tls=yes
  9697. else
  9698. gcc_cv_have_tls=no
  9699. fi
  9700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9701. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9702. fi
  9703. else
  9704. gcc_cv_have_tls=yes
  9705. fi
  9706. rm -f core conftest.err conftest.$ac_objext \
  9707. conftest$ac_exeext conftest.$ac_ext
  9708. LDFLAGS="$chktls_save_LDFLAGS"
  9709. if test $gcc_cv_have_tls = yes; then
  9710. chktls_save_CFLAGS="$CFLAGS"
  9711. thread_CFLAGS=failed
  9712. for flag in '' '-pthread' '-lpthread'; do
  9713. CFLAGS="$flag $chktls_save_CFLAGS"
  9714. if test x$gcc_no_link = xyes; then
  9715. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9716. fi
  9717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9718. /* end confdefs.h. */
  9719. #include <pthread.h>
  9720. void *g(void *d) { return NULL; }
  9721. int
  9722. main ()
  9723. {
  9724. pthread_t t; pthread_create(&t,NULL,g,NULL);
  9725. ;
  9726. return 0;
  9727. }
  9728. _ACEOF
  9729. if ac_fn_c_try_link "$LINENO"; then :
  9730. thread_CFLAGS="$flag"
  9731. fi
  9732. rm -f core conftest.err conftest.$ac_objext \
  9733. conftest$ac_exeext conftest.$ac_ext
  9734. if test "X$thread_CFLAGS" != Xfailed; then
  9735. break
  9736. fi
  9737. done
  9738. CFLAGS="$chktls_save_CFLAGS"
  9739. if test "X$thread_CFLAGS" != Xfailed; then
  9740. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  9741. if test "$cross_compiling" = yes; then :
  9742. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9743. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9744. as_fn_error "cannot run test program while cross compiling
  9745. See \`config.log' for more details." "$LINENO" 5; }
  9746. else
  9747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9748. /* end confdefs.h. */
  9749. #include <pthread.h>
  9750. __thread int a;
  9751. static int *volatile a_in_other_thread;
  9752. static void *
  9753. thread_func (void *arg)
  9754. {
  9755. a_in_other_thread = &a;
  9756. return (void *)0;
  9757. }
  9758. int
  9759. main ()
  9760. {
  9761. pthread_t thread;
  9762. void *thread_retval;
  9763. int *volatile a_in_main_thread;
  9764. a_in_main_thread = &a;
  9765. if (pthread_create (&thread, (pthread_attr_t *)0,
  9766. thread_func, (void *)0))
  9767. return 0;
  9768. if (pthread_join (thread, &thread_retval))
  9769. return 0;
  9770. return (a_in_other_thread == a_in_main_thread);
  9771. ;
  9772. return 0;
  9773. }
  9774. _ACEOF
  9775. if ac_fn_c_try_run "$LINENO"; then :
  9776. gcc_cv_have_tls=yes
  9777. else
  9778. gcc_cv_have_tls=no
  9779. fi
  9780. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9781. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9782. fi
  9783. CFLAGS="$chktls_save_CFLAGS"
  9784. fi
  9785. fi
  9786. else
  9787. gcc_cv_have_tls=no
  9788. fi
  9789. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9790. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9791. fi
  9792. fi
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  9794. $as_echo "$gcc_cv_have_tls" >&6; }
  9795. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  9796. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  9797. fi
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
  9799. $as_echo_n "checking for exception model to use... " >&6; }
  9800. ac_ext=c
  9801. ac_cpp='$CPP $CPPFLAGS'
  9802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9805. # Check whether --enable-sjlj-exceptions was given.
  9806. if test "${enable_sjlj_exceptions+set}" = set; then :
  9807. enableval=$enable_sjlj_exceptions; :
  9808. else
  9809. cat > conftest.$ac_ext << EOF
  9810. #line 11481 "configure"
  9811. @interface Frob
  9812. @end
  9813. @implementation Frob
  9814. @end
  9815. int proc();
  9816. int foo()
  9817. {
  9818. @try {
  9819. return proc();
  9820. }
  9821. @catch (Frob* ex) {
  9822. return 0;
  9823. }
  9824. }
  9825. EOF
  9826. old_CFLAGS="$CFLAGS"
  9827. CFLAGS="-x objective-c -fgnu-runtime -fobjc-exceptions -S"
  9828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9829. (eval $ac_compile) 2>&5
  9830. ac_status=$?
  9831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9832. test $ac_status = 0; }; then
  9833. if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
  9834. enable_sjlj_exceptions=yes
  9835. elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
  9836. enable_sjlj_exceptions=no
  9837. fi
  9838. fi
  9839. CFLAGS="$old_CFLAGS"
  9840. rm -f conftest*
  9841. fi
  9842. if test x$enable_sjlj_exceptions = xyes; then
  9843. $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
  9844. ac_exception_model_name=sjlj
  9845. elif test x$enable_sjlj_exceptions = xno; then
  9846. ac_exception_model_name="call frame"
  9847. else
  9848. as_fn_error "unable to detect exception model" "$LINENO" 5
  9849. fi
  9850. ac_ext=c
  9851. ac_cpp='$CPP $CPPFLAGS'
  9852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
  9856. $as_echo "$ac_exception_model_name" >&6; }
  9857. # ------
  9858. # Output
  9859. # ------
  9860. if test ${multilib} = yes; then
  9861. multilib_arg="--enable-multilib"
  9862. else
  9863. multilib_arg=
  9864. fi
  9865. ac_config_files="$ac_config_files Makefile"
  9866. cat >confcache <<\_ACEOF
  9867. # This file is a shell script that caches the results of configure
  9868. # tests run on this system so they can be shared between configure
  9869. # scripts and configure runs, see configure's option --config-cache.
  9870. # It is not useful on other systems. If it contains results you don't
  9871. # want to keep, you may remove or edit it.
  9872. #
  9873. # config.status only pays attention to the cache file if you give it
  9874. # the --recheck option to rerun configure.
  9875. #
  9876. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9877. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9878. # following values.
  9879. _ACEOF
  9880. # The following way of writing the cache mishandles newlines in values,
  9881. # but we know of no workaround that is simple, portable, and efficient.
  9882. # So, we kill variables containing newlines.
  9883. # Ultrix sh set writes to stderr and can't be redirected directly,
  9884. # and sets the high bit in the cache file unless we assign to the vars.
  9885. (
  9886. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9887. eval ac_val=\$$ac_var
  9888. case $ac_val in #(
  9889. *${as_nl}*)
  9890. case $ac_var in #(
  9891. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9892. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9893. esac
  9894. case $ac_var in #(
  9895. _ | IFS | as_nl) ;; #(
  9896. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9897. *) { eval $ac_var=; unset $ac_var;} ;;
  9898. esac ;;
  9899. esac
  9900. done
  9901. (set) 2>&1 |
  9902. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9903. *${as_nl}ac_space=\ *)
  9904. # `set' does not quote correctly, so add quotes: double-quote
  9905. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9906. sed -n \
  9907. "s/'/'\\\\''/g;
  9908. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9909. ;; #(
  9910. *)
  9911. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9912. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9913. ;;
  9914. esac |
  9915. sort
  9916. ) |
  9917. sed '
  9918. /^ac_cv_env_/b end
  9919. t clear
  9920. :clear
  9921. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9922. t end
  9923. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9924. :end' >>confcache
  9925. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9926. if test -w "$cache_file"; then
  9927. test "x$cache_file" != "x/dev/null" &&
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9929. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9930. cat confcache >$cache_file
  9931. else
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9933. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9934. fi
  9935. fi
  9936. rm -f confcache
  9937. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9938. # Let make expand exec_prefix.
  9939. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9940. DEFS=-DHAVE_CONFIG_H
  9941. ac_libobjs=
  9942. ac_ltlibobjs=
  9943. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9944. # 1. Remove the extension, and $U if already installed.
  9945. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9946. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9947. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9948. # will be set to the directory where LIBOBJS objects are built.
  9949. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9950. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9951. done
  9952. LIBOBJS=$ac_libobjs
  9953. LTLIBOBJS=$ac_ltlibobjs
  9954. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9955. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9957. fi
  9958. : ${CONFIG_STATUS=./config.status}
  9959. ac_write_fail=0
  9960. ac_clean_files_save=$ac_clean_files
  9961. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9963. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9964. as_write_fail=0
  9965. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9966. #! $SHELL
  9967. # Generated by $as_me.
  9968. # Run this file to recreate the current configuration.
  9969. # Compiler output produced by configure, useful for debugging
  9970. # configure, is in config.log if it exists.
  9971. debug=false
  9972. ac_cs_recheck=false
  9973. ac_cs_silent=false
  9974. SHELL=\${CONFIG_SHELL-$SHELL}
  9975. export SHELL
  9976. _ASEOF
  9977. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9978. ## -------------------- ##
  9979. ## M4sh Initialization. ##
  9980. ## -------------------- ##
  9981. # Be more Bourne compatible
  9982. DUALCASE=1; export DUALCASE # for MKS sh
  9983. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9984. emulate sh
  9985. NULLCMD=:
  9986. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9987. # is contrary to our usage. Disable this feature.
  9988. alias -g '${1+"$@"}'='"$@"'
  9989. setopt NO_GLOB_SUBST
  9990. else
  9991. case `(set -o) 2>/dev/null` in #(
  9992. *posix*) :
  9993. set -o posix ;; #(
  9994. *) :
  9995. ;;
  9996. esac
  9997. fi
  9998. as_nl='
  9999. '
  10000. export as_nl
  10001. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10002. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10003. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10004. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10005. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10006. # but without wasting forks for bash or zsh.
  10007. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10008. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10009. as_echo='print -r --'
  10010. as_echo_n='print -rn --'
  10011. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10012. as_echo='printf %s\n'
  10013. as_echo_n='printf %s'
  10014. else
  10015. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10016. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10017. as_echo_n='/usr/ucb/echo -n'
  10018. else
  10019. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10020. as_echo_n_body='eval
  10021. arg=$1;
  10022. case $arg in #(
  10023. *"$as_nl"*)
  10024. expr "X$arg" : "X\\(.*\\)$as_nl";
  10025. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10026. esac;
  10027. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10028. '
  10029. export as_echo_n_body
  10030. as_echo_n='sh -c $as_echo_n_body as_echo'
  10031. fi
  10032. export as_echo_body
  10033. as_echo='sh -c $as_echo_body as_echo'
  10034. fi
  10035. # The user is always right.
  10036. if test "${PATH_SEPARATOR+set}" != set; then
  10037. PATH_SEPARATOR=:
  10038. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10039. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10040. PATH_SEPARATOR=';'
  10041. }
  10042. fi
  10043. # IFS
  10044. # We need space, tab and new line, in precisely that order. Quoting is
  10045. # there to prevent editors from complaining about space-tab.
  10046. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10047. # splitting by setting IFS to empty value.)
  10048. IFS=" "" $as_nl"
  10049. # Find who we are. Look in the path if we contain no directory separator.
  10050. case $0 in #((
  10051. *[\\/]* ) as_myself=$0 ;;
  10052. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10053. for as_dir in $PATH
  10054. do
  10055. IFS=$as_save_IFS
  10056. test -z "$as_dir" && as_dir=.
  10057. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10058. done
  10059. IFS=$as_save_IFS
  10060. ;;
  10061. esac
  10062. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10063. # in which case we are not to be found in the path.
  10064. if test "x$as_myself" = x; then
  10065. as_myself=$0
  10066. fi
  10067. if test ! -f "$as_myself"; then
  10068. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10069. exit 1
  10070. fi
  10071. # Unset variables that we do not need and which cause bugs (e.g. in
  10072. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10073. # suppresses any "Segmentation fault" message there. '((' could
  10074. # trigger a bug in pdksh 5.2.14.
  10075. for as_var in BASH_ENV ENV MAIL MAILPATH
  10076. do eval test x\${$as_var+set} = xset \
  10077. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10078. done
  10079. PS1='$ '
  10080. PS2='> '
  10081. PS4='+ '
  10082. # NLS nuisances.
  10083. LC_ALL=C
  10084. export LC_ALL
  10085. LANGUAGE=C
  10086. export LANGUAGE
  10087. # CDPATH.
  10088. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10089. # as_fn_error ERROR [LINENO LOG_FD]
  10090. # ---------------------------------
  10091. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10092. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10093. # script with status $?, using 1 if that was 0.
  10094. as_fn_error ()
  10095. {
  10096. as_status=$?; test $as_status -eq 0 && as_status=1
  10097. if test "$3"; then
  10098. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10100. fi
  10101. $as_echo "$as_me: error: $1" >&2
  10102. as_fn_exit $as_status
  10103. } # as_fn_error
  10104. # as_fn_set_status STATUS
  10105. # -----------------------
  10106. # Set $? to STATUS, without forking.
  10107. as_fn_set_status ()
  10108. {
  10109. return $1
  10110. } # as_fn_set_status
  10111. # as_fn_exit STATUS
  10112. # -----------------
  10113. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10114. as_fn_exit ()
  10115. {
  10116. set +e
  10117. as_fn_set_status $1
  10118. exit $1
  10119. } # as_fn_exit
  10120. # as_fn_unset VAR
  10121. # ---------------
  10122. # Portably unset VAR.
  10123. as_fn_unset ()
  10124. {
  10125. { eval $1=; unset $1;}
  10126. }
  10127. as_unset=as_fn_unset
  10128. # as_fn_append VAR VALUE
  10129. # ----------------------
  10130. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10131. # advantage of any shell optimizations that allow amortized linear growth over
  10132. # repeated appends, instead of the typical quadratic growth present in naive
  10133. # implementations.
  10134. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10135. eval 'as_fn_append ()
  10136. {
  10137. eval $1+=\$2
  10138. }'
  10139. else
  10140. as_fn_append ()
  10141. {
  10142. eval $1=\$$1\$2
  10143. }
  10144. fi # as_fn_append
  10145. # as_fn_arith ARG...
  10146. # ------------------
  10147. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10148. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10149. # must be portable across $(()) and expr.
  10150. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10151. eval 'as_fn_arith ()
  10152. {
  10153. as_val=$(( $* ))
  10154. }'
  10155. else
  10156. as_fn_arith ()
  10157. {
  10158. as_val=`expr "$@" || test $? -eq 1`
  10159. }
  10160. fi # as_fn_arith
  10161. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10162. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10163. as_expr=expr
  10164. else
  10165. as_expr=false
  10166. fi
  10167. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10168. as_basename=basename
  10169. else
  10170. as_basename=false
  10171. fi
  10172. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10173. as_dirname=dirname
  10174. else
  10175. as_dirname=false
  10176. fi
  10177. as_me=`$as_basename -- "$0" ||
  10178. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10179. X"$0" : 'X\(//\)$' \| \
  10180. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10181. $as_echo X/"$0" |
  10182. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10183. s//\1/
  10184. q
  10185. }
  10186. /^X\/\(\/\/\)$/{
  10187. s//\1/
  10188. q
  10189. }
  10190. /^X\/\(\/\).*/{
  10191. s//\1/
  10192. q
  10193. }
  10194. s/.*/./; q'`
  10195. # Avoid depending upon Character Ranges.
  10196. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10197. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10198. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10199. as_cr_digits='0123456789'
  10200. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10201. ECHO_C= ECHO_N= ECHO_T=
  10202. case `echo -n x` in #(((((
  10203. -n*)
  10204. case `echo 'xy\c'` in
  10205. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10206. xy) ECHO_C='\c';;
  10207. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10208. ECHO_T=' ';;
  10209. esac;;
  10210. *)
  10211. ECHO_N='-n';;
  10212. esac
  10213. rm -f conf$$ conf$$.exe conf$$.file
  10214. if test -d conf$$.dir; then
  10215. rm -f conf$$.dir/conf$$.file
  10216. else
  10217. rm -f conf$$.dir
  10218. mkdir conf$$.dir 2>/dev/null
  10219. fi
  10220. if (echo >conf$$.file) 2>/dev/null; then
  10221. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10222. as_ln_s='ln -s'
  10223. # ... but there are two gotchas:
  10224. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10225. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10226. # In both cases, we have to default to `cp -p'.
  10227. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10228. as_ln_s='cp -p'
  10229. elif ln conf$$.file conf$$ 2>/dev/null; then
  10230. as_ln_s=ln
  10231. else
  10232. as_ln_s='cp -p'
  10233. fi
  10234. else
  10235. as_ln_s='cp -p'
  10236. fi
  10237. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10238. rmdir conf$$.dir 2>/dev/null
  10239. # as_fn_mkdir_p
  10240. # -------------
  10241. # Create "$as_dir" as a directory, including parents if necessary.
  10242. as_fn_mkdir_p ()
  10243. {
  10244. case $as_dir in #(
  10245. -*) as_dir=./$as_dir;;
  10246. esac
  10247. test -d "$as_dir" || eval $as_mkdir_p || {
  10248. as_dirs=
  10249. while :; do
  10250. case $as_dir in #(
  10251. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10252. *) as_qdir=$as_dir;;
  10253. esac
  10254. as_dirs="'$as_qdir' $as_dirs"
  10255. as_dir=`$as_dirname -- "$as_dir" ||
  10256. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10257. X"$as_dir" : 'X\(//\)[^/]' \| \
  10258. X"$as_dir" : 'X\(//\)$' \| \
  10259. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10260. $as_echo X"$as_dir" |
  10261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10262. s//\1/
  10263. q
  10264. }
  10265. /^X\(\/\/\)[^/].*/{
  10266. s//\1/
  10267. q
  10268. }
  10269. /^X\(\/\/\)$/{
  10270. s//\1/
  10271. q
  10272. }
  10273. /^X\(\/\).*/{
  10274. s//\1/
  10275. q
  10276. }
  10277. s/.*/./; q'`
  10278. test -d "$as_dir" && break
  10279. done
  10280. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10281. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10282. } # as_fn_mkdir_p
  10283. if mkdir -p . 2>/dev/null; then
  10284. as_mkdir_p='mkdir -p "$as_dir"'
  10285. else
  10286. test -d ./-p && rmdir ./-p
  10287. as_mkdir_p=false
  10288. fi
  10289. if test -x / >/dev/null 2>&1; then
  10290. as_test_x='test -x'
  10291. else
  10292. if ls -dL / >/dev/null 2>&1; then
  10293. as_ls_L_option=L
  10294. else
  10295. as_ls_L_option=
  10296. fi
  10297. as_test_x='
  10298. eval sh -c '\''
  10299. if test -d "$1"; then
  10300. test -d "$1/.";
  10301. else
  10302. case $1 in #(
  10303. -*)set "./$1";;
  10304. esac;
  10305. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10306. ???[sx]*):;;*)false;;esac;fi
  10307. '\'' sh
  10308. '
  10309. fi
  10310. as_executable_p=$as_test_x
  10311. # Sed expression to map a string onto a valid CPP name.
  10312. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10313. # Sed expression to map a string onto a valid variable name.
  10314. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10315. exec 6>&1
  10316. ## ----------------------------------- ##
  10317. ## Main body of $CONFIG_STATUS script. ##
  10318. ## ----------------------------------- ##
  10319. _ASEOF
  10320. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10321. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10322. # Save the log message, to keep $0 and so on meaningful, and to
  10323. # report actual input values of CONFIG_FILES etc. instead of their
  10324. # values after options handling.
  10325. ac_log="
  10326. This file was extended by package-unused $as_me version-unused, which was
  10327. generated by GNU Autoconf 2.64. Invocation command line was
  10328. CONFIG_FILES = $CONFIG_FILES
  10329. CONFIG_HEADERS = $CONFIG_HEADERS
  10330. CONFIG_LINKS = $CONFIG_LINKS
  10331. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10332. $ $0 $@
  10333. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10334. "
  10335. _ACEOF
  10336. case $ac_config_files in *"
  10337. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10338. esac
  10339. case $ac_config_headers in *"
  10340. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10341. esac
  10342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10343. # Files that config.status was made for.
  10344. config_files="$ac_config_files"
  10345. config_headers="$ac_config_headers"
  10346. config_commands="$ac_config_commands"
  10347. _ACEOF
  10348. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10349. ac_cs_usage="\
  10350. \`$as_me' instantiates files and other configuration actions
  10351. from templates according to the current configuration. Unless the files
  10352. and actions are specified as TAGs, all are instantiated by default.
  10353. Usage: $0 [OPTION]... [TAG]...
  10354. -h, --help print this help, then exit
  10355. -V, --version print version number and configuration settings, then exit
  10356. -q, --quiet, --silent
  10357. do not print progress messages
  10358. -d, --debug don't remove temporary files
  10359. --recheck update $as_me by reconfiguring in the same conditions
  10360. --file=FILE[:TEMPLATE]
  10361. instantiate the configuration file FILE
  10362. --header=FILE[:TEMPLATE]
  10363. instantiate the configuration header FILE
  10364. Configuration files:
  10365. $config_files
  10366. Configuration headers:
  10367. $config_headers
  10368. Configuration commands:
  10369. $config_commands
  10370. Report bugs to the package provider."
  10371. _ACEOF
  10372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10373. ac_cs_version="\\
  10374. package-unused config.status version-unused
  10375. configured by $0, generated by GNU Autoconf 2.64,
  10376. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10377. Copyright (C) 2009 Free Software Foundation, Inc.
  10378. This config.status script is free software; the Free Software Foundation
  10379. gives unlimited permission to copy, distribute and modify it."
  10380. ac_pwd='$ac_pwd'
  10381. srcdir='$srcdir'
  10382. INSTALL='$INSTALL'
  10383. AWK='$AWK'
  10384. test -n "\$AWK" || AWK=awk
  10385. _ACEOF
  10386. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10387. # The default lists apply if the user does not specify any file.
  10388. ac_need_defaults=:
  10389. while test $# != 0
  10390. do
  10391. case $1 in
  10392. --*=*)
  10393. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10394. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10395. ac_shift=:
  10396. ;;
  10397. *)
  10398. ac_option=$1
  10399. ac_optarg=$2
  10400. ac_shift=shift
  10401. ;;
  10402. esac
  10403. case $ac_option in
  10404. # Handling of the options.
  10405. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10406. ac_cs_recheck=: ;;
  10407. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10408. $as_echo "$ac_cs_version"; exit ;;
  10409. --debug | --debu | --deb | --de | --d | -d )
  10410. debug=: ;;
  10411. --file | --fil | --fi | --f )
  10412. $ac_shift
  10413. case $ac_optarg in
  10414. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10415. esac
  10416. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10417. ac_need_defaults=false;;
  10418. --header | --heade | --head | --hea )
  10419. $ac_shift
  10420. case $ac_optarg in
  10421. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10422. esac
  10423. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10424. ac_need_defaults=false;;
  10425. --he | --h)
  10426. # Conflict between --help and --header
  10427. as_fn_error "ambiguous option: \`$1'
  10428. Try \`$0 --help' for more information.";;
  10429. --help | --hel | -h )
  10430. $as_echo "$ac_cs_usage"; exit ;;
  10431. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10432. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10433. ac_cs_silent=: ;;
  10434. # This is an error.
  10435. -*) as_fn_error "unrecognized option: \`$1'
  10436. Try \`$0 --help' for more information." ;;
  10437. *) as_fn_append ac_config_targets " $1"
  10438. ac_need_defaults=false ;;
  10439. esac
  10440. shift
  10441. done
  10442. ac_configure_extra_args=
  10443. if $ac_cs_silent; then
  10444. exec 6>/dev/null
  10445. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10446. fi
  10447. _ACEOF
  10448. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10449. if \$ac_cs_recheck; then
  10450. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10451. shift
  10452. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10453. CONFIG_SHELL='$SHELL'
  10454. export CONFIG_SHELL
  10455. exec "\$@"
  10456. fi
  10457. _ACEOF
  10458. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10459. exec 5>>config.log
  10460. {
  10461. echo
  10462. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10463. ## Running $as_me. ##
  10464. _ASBOX
  10465. $as_echo "$ac_log"
  10466. } >&5
  10467. _ACEOF
  10468. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10469. #
  10470. # INIT-COMMANDS
  10471. #
  10472. srcdir="$srcdir"
  10473. host="$host"
  10474. target="$target"
  10475. with_multisubdir="$with_multisubdir"
  10476. with_multisrctop="$with_multisrctop"
  10477. with_target_subdir="$with_target_subdir"
  10478. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10479. multi_basedir="$multi_basedir"
  10480. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10481. CC="$CC"
  10482. CXX="$CXX"
  10483. GFORTRAN="$GFORTRAN"
  10484. GCJ="$GCJ"
  10485. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10486. # if CDPATH is set.
  10487. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10488. sed_quote_subst='$sed_quote_subst'
  10489. double_quote_subst='$double_quote_subst'
  10490. delay_variable_subst='$delay_variable_subst'
  10491. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  10492. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10493. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10494. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10495. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10496. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10497. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10498. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10499. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10500. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10501. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10502. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10503. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10504. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10505. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10506. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10507. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10508. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10509. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10510. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10511. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10512. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10513. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10514. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10515. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10516. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10517. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10518. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10519. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10520. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10521. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10522. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10523. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10524. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10525. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10526. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10527. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10528. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10529. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10530. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10531. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10532. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10533. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10534. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10535. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10536. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10537. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10538. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10539. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10540. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10541. 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"`'
  10542. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10543. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10544. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10545. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10546. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10547. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10548. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10549. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10550. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10551. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10552. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10553. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10554. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10555. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10556. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10557. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10558. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10559. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10560. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10561. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10562. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10563. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10564. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10565. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10566. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10567. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10568. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10569. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10570. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10571. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10572. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10573. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10574. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10575. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10576. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10577. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10578. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10579. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10580. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10581. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10582. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10583. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10584. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10585. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10586. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10587. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10588. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10589. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10590. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10591. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10592. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10593. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10594. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10595. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10596. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10597. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10598. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10599. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10600. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10601. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10602. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10603. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10604. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10605. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10606. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10607. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10608. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10609. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10610. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10611. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10612. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10613. LTCC='$LTCC'
  10614. LTCFLAGS='$LTCFLAGS'
  10615. compiler='$compiler_DEFAULT'
  10616. # A function that is used when there is no print builtin or printf.
  10617. func_fallback_echo ()
  10618. {
  10619. eval 'cat <<_LTECHO_EOF
  10620. \$1
  10621. _LTECHO_EOF'
  10622. }
  10623. # Quote evaled strings.
  10624. for var in AS \
  10625. DLLTOOL \
  10626. OBJDUMP \
  10627. SHELL \
  10628. ECHO \
  10629. SED \
  10630. GREP \
  10631. EGREP \
  10632. FGREP \
  10633. LD \
  10634. NM \
  10635. LN_S \
  10636. lt_SP2NL \
  10637. lt_NL2SP \
  10638. reload_flag \
  10639. deplibs_check_method \
  10640. file_magic_cmd \
  10641. AR \
  10642. AR_FLAGS \
  10643. STRIP \
  10644. RANLIB \
  10645. CC \
  10646. CFLAGS \
  10647. compiler \
  10648. lt_cv_sys_global_symbol_pipe \
  10649. lt_cv_sys_global_symbol_to_cdecl \
  10650. lt_cv_sys_global_symbol_to_c_name_address \
  10651. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10652. lt_prog_compiler_no_builtin_flag \
  10653. lt_prog_compiler_wl \
  10654. lt_prog_compiler_pic \
  10655. lt_prog_compiler_static \
  10656. lt_cv_prog_compiler_c_o \
  10657. need_locks \
  10658. DSYMUTIL \
  10659. NMEDIT \
  10660. LIPO \
  10661. OTOOL \
  10662. OTOOL64 \
  10663. shrext_cmds \
  10664. export_dynamic_flag_spec \
  10665. whole_archive_flag_spec \
  10666. compiler_needs_object \
  10667. with_gnu_ld \
  10668. allow_undefined_flag \
  10669. no_undefined_flag \
  10670. hardcode_libdir_flag_spec \
  10671. hardcode_libdir_flag_spec_ld \
  10672. hardcode_libdir_separator \
  10673. fix_srcfile_path \
  10674. exclude_expsyms \
  10675. include_expsyms \
  10676. file_list_spec \
  10677. variables_saved_for_relink \
  10678. libname_spec \
  10679. library_names_spec \
  10680. soname_spec \
  10681. install_override_mode \
  10682. finish_eval \
  10683. old_striplib \
  10684. striplib; do
  10685. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10686. *[\\\\\\\`\\"\\\$]*)
  10687. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10688. ;;
  10689. *)
  10690. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10691. ;;
  10692. esac
  10693. done
  10694. # Double-quote double-evaled strings.
  10695. for var in reload_cmds \
  10696. old_postinstall_cmds \
  10697. old_postuninstall_cmds \
  10698. old_archive_cmds \
  10699. extract_expsyms_cmds \
  10700. old_archive_from_new_cmds \
  10701. old_archive_from_expsyms_cmds \
  10702. archive_cmds \
  10703. archive_expsym_cmds \
  10704. module_cmds \
  10705. module_expsym_cmds \
  10706. export_symbols_cmds \
  10707. prelink_cmds \
  10708. postinstall_cmds \
  10709. postuninstall_cmds \
  10710. finish_cmds \
  10711. sys_lib_search_path_spec \
  10712. sys_lib_dlsearch_path_spec; do
  10713. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10714. *[\\\\\\\`\\"\\\$]*)
  10715. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10716. ;;
  10717. *)
  10718. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10719. ;;
  10720. esac
  10721. done
  10722. ac_aux_dir='$ac_aux_dir'
  10723. xsi_shell='$xsi_shell'
  10724. lt_shell_append='$lt_shell_append'
  10725. # See if we are running on zsh, and set the options which allow our
  10726. # commands through without removal of \ escapes INIT.
  10727. if test -n "\${ZSH_VERSION+set}" ; then
  10728. setopt NO_GLOB_SUBST
  10729. fi
  10730. PACKAGE='$PACKAGE'
  10731. VERSION='$VERSION'
  10732. TIMESTAMP='$TIMESTAMP'
  10733. RM='$RM'
  10734. ofile='$ofile'
  10735. _ACEOF
  10736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10737. # Handling of arguments.
  10738. for ac_config_target in $ac_config_targets
  10739. do
  10740. case $ac_config_target in
  10741. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10742. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10743. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10744. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10745. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10746. esac
  10747. done
  10748. # If the user did not use the arguments to specify the items to instantiate,
  10749. # then the envvar interface is used. Set only those that are not.
  10750. # We use the long form for the default assignment because of an extremely
  10751. # bizarre bug on SunOS 4.1.3.
  10752. if $ac_need_defaults; then
  10753. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10754. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10755. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10756. fi
  10757. # Have a temporary directory for convenience. Make it in the build tree
  10758. # simply because there is no reason against having it here, and in addition,
  10759. # creating and moving files from /tmp can sometimes cause problems.
  10760. # Hook for its removal unless debugging.
  10761. # Note that there is a small window in which the directory will not be cleaned:
  10762. # after its creation but before its name has been assigned to `$tmp'.
  10763. $debug ||
  10764. {
  10765. tmp=
  10766. trap 'exit_status=$?
  10767. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10768. ' 0
  10769. trap 'as_fn_exit 1' 1 2 13 15
  10770. }
  10771. # Create a (secure) tmp directory for tmp files.
  10772. {
  10773. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10774. test -n "$tmp" && test -d "$tmp"
  10775. } ||
  10776. {
  10777. tmp=./conf$$-$RANDOM
  10778. (umask 077 && mkdir "$tmp")
  10779. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10780. # Set up the scripts for CONFIG_FILES section.
  10781. # No need to generate them if there are no CONFIG_FILES.
  10782. # This happens for instance with `./config.status config.h'.
  10783. if test -n "$CONFIG_FILES"; then
  10784. ac_cr=`echo X | tr X '\015'`
  10785. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10786. # But we know of no other shell where ac_cr would be empty at this
  10787. # point, so we can use a bashism as a fallback.
  10788. if test "x$ac_cr" = x; then
  10789. eval ac_cr=\$\'\\r\'
  10790. fi
  10791. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10792. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10793. ac_cs_awk_cr='\r'
  10794. else
  10795. ac_cs_awk_cr=$ac_cr
  10796. fi
  10797. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10798. _ACEOF
  10799. {
  10800. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10801. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10802. echo "_ACEOF"
  10803. } >conf$$subs.sh ||
  10804. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10805. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10806. ac_delim='%!_!# '
  10807. for ac_last_try in false false false false false :; do
  10808. . ./conf$$subs.sh ||
  10809. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10810. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10811. if test $ac_delim_n = $ac_delim_num; then
  10812. break
  10813. elif $ac_last_try; then
  10814. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10815. else
  10816. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10817. fi
  10818. done
  10819. rm -f conf$$subs.sh
  10820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10821. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10822. _ACEOF
  10823. sed -n '
  10824. h
  10825. s/^/S["/; s/!.*/"]=/
  10826. p
  10827. g
  10828. s/^[^!]*!//
  10829. :repl
  10830. t repl
  10831. s/'"$ac_delim"'$//
  10832. t delim
  10833. :nl
  10834. h
  10835. s/\(.\{148\}\).*/\1/
  10836. t more1
  10837. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10838. p
  10839. n
  10840. b repl
  10841. :more1
  10842. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10843. p
  10844. g
  10845. s/.\{148\}//
  10846. t nl
  10847. :delim
  10848. h
  10849. s/\(.\{148\}\).*/\1/
  10850. t more2
  10851. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10852. p
  10853. b
  10854. :more2
  10855. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10856. p
  10857. g
  10858. s/.\{148\}//
  10859. t delim
  10860. ' <conf$$subs.awk | sed '
  10861. /^[^""]/{
  10862. N
  10863. s/\n//
  10864. }
  10865. ' >>$CONFIG_STATUS || ac_write_fail=1
  10866. rm -f conf$$subs.awk
  10867. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10868. _ACAWK
  10869. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10870. for (key in S) S_is_set[key] = 1
  10871. FS = ""
  10872. }
  10873. {
  10874. line = $ 0
  10875. nfields = split(line, field, "@")
  10876. substed = 0
  10877. len = length(field[1])
  10878. for (i = 2; i < nfields; i++) {
  10879. key = field[i]
  10880. keylen = length(key)
  10881. if (S_is_set[key]) {
  10882. value = S[key]
  10883. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10884. len += length(value) + length(field[++i])
  10885. substed = 1
  10886. } else
  10887. len += 1 + keylen
  10888. }
  10889. print line
  10890. }
  10891. _ACAWK
  10892. _ACEOF
  10893. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10894. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10895. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10896. else
  10897. cat
  10898. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10899. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10900. _ACEOF
  10901. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10902. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10903. # trailing colons and then remove the whole line if VPATH becomes empty
  10904. # (actually we leave an empty line to preserve line numbers).
  10905. if test "x$srcdir" = x.; then
  10906. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10907. s/:*\$(srcdir):*/:/
  10908. s/:*\${srcdir}:*/:/
  10909. s/:*@srcdir@:*/:/
  10910. s/^\([^=]*=[ ]*\):*/\1/
  10911. s/:*$//
  10912. s/^[^=]*=[ ]*$//
  10913. }'
  10914. fi
  10915. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10916. fi # test -n "$CONFIG_FILES"
  10917. # Set up the scripts for CONFIG_HEADERS section.
  10918. # No need to generate them if there are no CONFIG_HEADERS.
  10919. # This happens for instance with `./config.status Makefile'.
  10920. if test -n "$CONFIG_HEADERS"; then
  10921. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10922. BEGIN {
  10923. _ACEOF
  10924. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10925. # here-document in config.status, that substitutes the proper values into
  10926. # config.h.in to produce config.h.
  10927. # Create a delimiter string that does not exist in confdefs.h, to ease
  10928. # handling of long lines.
  10929. ac_delim='%!_!# '
  10930. for ac_last_try in false false :; do
  10931. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10932. if test -z "$ac_t"; then
  10933. break
  10934. elif $ac_last_try; then
  10935. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  10936. else
  10937. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10938. fi
  10939. done
  10940. # For the awk script, D is an array of macro values keyed by name,
  10941. # likewise P contains macro parameters if any. Preserve backslash
  10942. # newline sequences.
  10943. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10944. sed -n '
  10945. s/.\{148\}/&'"$ac_delim"'/g
  10946. t rset
  10947. :rset
  10948. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10949. t def
  10950. d
  10951. :def
  10952. s/\\$//
  10953. t bsnl
  10954. s/["\\]/\\&/g
  10955. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10956. D["\1"]=" \3"/p
  10957. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10958. d
  10959. :bsnl
  10960. s/["\\]/\\&/g
  10961. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10962. D["\1"]=" \3\\\\\\n"\\/p
  10963. t cont
  10964. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10965. t cont
  10966. d
  10967. :cont
  10968. n
  10969. s/.\{148\}/&'"$ac_delim"'/g
  10970. t clear
  10971. :clear
  10972. s/\\$//
  10973. t bsnlc
  10974. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10975. d
  10976. :bsnlc
  10977. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10978. b cont
  10979. ' <confdefs.h | sed '
  10980. s/'"$ac_delim"'/"\\\
  10981. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10983. for (key in D) D_is_set[key] = 1
  10984. FS = ""
  10985. }
  10986. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10987. line = \$ 0
  10988. split(line, arg, " ")
  10989. if (arg[1] == "#") {
  10990. defundef = arg[2]
  10991. mac1 = arg[3]
  10992. } else {
  10993. defundef = substr(arg[1], 2)
  10994. mac1 = arg[2]
  10995. }
  10996. split(mac1, mac2, "(") #)
  10997. macro = mac2[1]
  10998. prefix = substr(line, 1, index(line, defundef) - 1)
  10999. if (D_is_set[macro]) {
  11000. # Preserve the white space surrounding the "#".
  11001. print prefix "define", macro P[macro] D[macro]
  11002. next
  11003. } else {
  11004. # Replace #undef with comments. This is necessary, for example,
  11005. # in the case of _POSIX_SOURCE, which is predefined and required
  11006. # on some systems where configure will not decide to define it.
  11007. if (defundef == "undef") {
  11008. print "/*", prefix defundef, macro, "*/"
  11009. next
  11010. }
  11011. }
  11012. }
  11013. { print }
  11014. _ACAWK
  11015. _ACEOF
  11016. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11017. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11018. fi # test -n "$CONFIG_HEADERS"
  11019. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11020. shift
  11021. for ac_tag
  11022. do
  11023. case $ac_tag in
  11024. :[FHLC]) ac_mode=$ac_tag; continue;;
  11025. esac
  11026. case $ac_mode$ac_tag in
  11027. :[FHL]*:*);;
  11028. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11029. :[FH]-) ac_tag=-:-;;
  11030. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11031. esac
  11032. ac_save_IFS=$IFS
  11033. IFS=:
  11034. set x $ac_tag
  11035. IFS=$ac_save_IFS
  11036. shift
  11037. ac_file=$1
  11038. shift
  11039. case $ac_mode in
  11040. :L) ac_source=$1;;
  11041. :[FH])
  11042. ac_file_inputs=
  11043. for ac_f
  11044. do
  11045. case $ac_f in
  11046. -) ac_f="$tmp/stdin";;
  11047. *) # Look for the file first in the build tree, then in the source tree
  11048. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11049. # because $ac_f cannot contain `:'.
  11050. test -f "$ac_f" ||
  11051. case $ac_f in
  11052. [\\/$]*) false;;
  11053. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11054. esac ||
  11055. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11056. esac
  11057. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11058. as_fn_append ac_file_inputs " '$ac_f'"
  11059. done
  11060. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11061. # use $as_me), people would be surprised to read:
  11062. # /* config.h. Generated by config.status. */
  11063. configure_input='Generated from '`
  11064. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11065. `' by configure.'
  11066. if test x"$ac_file" != x-; then
  11067. configure_input="$ac_file. $configure_input"
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11069. $as_echo "$as_me: creating $ac_file" >&6;}
  11070. fi
  11071. # Neutralize special characters interpreted by sed in replacement strings.
  11072. case $configure_input in #(
  11073. *\&* | *\|* | *\\* )
  11074. ac_sed_conf_input=`$as_echo "$configure_input" |
  11075. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11076. *) ac_sed_conf_input=$configure_input;;
  11077. esac
  11078. case $ac_tag in
  11079. *:-:* | *:-) cat >"$tmp/stdin" \
  11080. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  11081. esac
  11082. ;;
  11083. esac
  11084. ac_dir=`$as_dirname -- "$ac_file" ||
  11085. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11086. X"$ac_file" : 'X\(//\)[^/]' \| \
  11087. X"$ac_file" : 'X\(//\)$' \| \
  11088. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11089. $as_echo X"$ac_file" |
  11090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11091. s//\1/
  11092. q
  11093. }
  11094. /^X\(\/\/\)[^/].*/{
  11095. s//\1/
  11096. q
  11097. }
  11098. /^X\(\/\/\)$/{
  11099. s//\1/
  11100. q
  11101. }
  11102. /^X\(\/\).*/{
  11103. s//\1/
  11104. q
  11105. }
  11106. s/.*/./; q'`
  11107. as_dir="$ac_dir"; as_fn_mkdir_p
  11108. ac_builddir=.
  11109. case "$ac_dir" in
  11110. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11111. *)
  11112. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11113. # A ".." for each directory in $ac_dir_suffix.
  11114. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11115. case $ac_top_builddir_sub in
  11116. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11117. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11118. esac ;;
  11119. esac
  11120. ac_abs_top_builddir=$ac_pwd
  11121. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11122. # for backward compatibility:
  11123. ac_top_builddir=$ac_top_build_prefix
  11124. case $srcdir in
  11125. .) # We are building in place.
  11126. ac_srcdir=.
  11127. ac_top_srcdir=$ac_top_builddir_sub
  11128. ac_abs_top_srcdir=$ac_pwd ;;
  11129. [\\/]* | ?:[\\/]* ) # Absolute name.
  11130. ac_srcdir=$srcdir$ac_dir_suffix;
  11131. ac_top_srcdir=$srcdir
  11132. ac_abs_top_srcdir=$srcdir ;;
  11133. *) # Relative name.
  11134. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11135. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11136. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11137. esac
  11138. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11139. case $ac_mode in
  11140. :F)
  11141. #
  11142. # CONFIG_FILE
  11143. #
  11144. case $INSTALL in
  11145. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11146. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11147. esac
  11148. _ACEOF
  11149. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11150. # If the template does not know about datarootdir, expand it.
  11151. # FIXME: This hack should be removed a few years after 2.60.
  11152. ac_datarootdir_hack=; ac_datarootdir_seen=
  11153. ac_sed_dataroot='
  11154. /datarootdir/ {
  11155. p
  11156. q
  11157. }
  11158. /@datadir@/p
  11159. /@docdir@/p
  11160. /@infodir@/p
  11161. /@localedir@/p
  11162. /@mandir@/p'
  11163. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11164. *datarootdir*) ac_datarootdir_seen=yes;;
  11165. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11167. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11168. _ACEOF
  11169. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11170. ac_datarootdir_hack='
  11171. s&@datadir@&$datadir&g
  11172. s&@docdir@&$docdir&g
  11173. s&@infodir@&$infodir&g
  11174. s&@localedir@&$localedir&g
  11175. s&@mandir@&$mandir&g
  11176. s&\\\${datarootdir}&$datarootdir&g' ;;
  11177. esac
  11178. _ACEOF
  11179. # Neutralize VPATH when `$srcdir' = `.'.
  11180. # Shell code in configure.ac might set extrasub.
  11181. # FIXME: do we really want to maintain this feature?
  11182. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11183. ac_sed_extra="$ac_vpsub
  11184. $extrasub
  11185. _ACEOF
  11186. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11187. :t
  11188. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11189. s|@configure_input@|$ac_sed_conf_input|;t t
  11190. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11191. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11192. s&@srcdir@&$ac_srcdir&;t t
  11193. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11194. s&@top_srcdir@&$ac_top_srcdir&;t t
  11195. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11196. s&@builddir@&$ac_builddir&;t t
  11197. s&@abs_builddir@&$ac_abs_builddir&;t t
  11198. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11199. s&@INSTALL@&$ac_INSTALL&;t t
  11200. $ac_datarootdir_hack
  11201. "
  11202. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11203. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11204. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11205. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11206. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11208. which seems to be undefined. Please make sure it is defined." >&5
  11209. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11210. which seems to be undefined. Please make sure it is defined." >&2;}
  11211. rm -f "$tmp/stdin"
  11212. case $ac_file in
  11213. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11214. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11215. esac \
  11216. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11217. ;;
  11218. :H)
  11219. #
  11220. # CONFIG_HEADER
  11221. #
  11222. if test x"$ac_file" != x-; then
  11223. {
  11224. $as_echo "/* $configure_input */" \
  11225. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11226. } >"$tmp/config.h" \
  11227. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11228. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11230. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11231. else
  11232. rm -f "$ac_file"
  11233. mv "$tmp/config.h" "$ac_file" \
  11234. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11235. fi
  11236. else
  11237. $as_echo "/* $configure_input */" \
  11238. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11239. || as_fn_error "could not create -" "$LINENO" 5
  11240. fi
  11241. ;;
  11242. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11243. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11244. ;;
  11245. esac
  11246. case $ac_file$ac_mode in
  11247. "default-1":C)
  11248. # Only add multilib support code if we just rebuilt the top-level
  11249. # Makefile.
  11250. case " $CONFIG_FILES " in
  11251. *" Makefile "*)
  11252. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11253. ;;
  11254. esac ;;
  11255. "libtool":C)
  11256. # See if we are running on zsh, and set the options which allow our
  11257. # commands through without removal of \ escapes.
  11258. if test -n "${ZSH_VERSION+set}" ; then
  11259. setopt NO_GLOB_SUBST
  11260. fi
  11261. cfgfile="${ofile}T"
  11262. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11263. $RM "$cfgfile"
  11264. cat <<_LT_EOF >> "$cfgfile"
  11265. #! $SHELL
  11266. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11267. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11268. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11269. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11270. #
  11271. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11272. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11273. # Written by Gordon Matzigkeit, 1996
  11274. #
  11275. # This file is part of GNU Libtool.
  11276. #
  11277. # GNU Libtool is free software; you can redistribute it and/or
  11278. # modify it under the terms of the GNU General Public License as
  11279. # published by the Free Software Foundation; either version 2 of
  11280. # the License, or (at your option) any later version.
  11281. #
  11282. # As a special exception to the GNU General Public License,
  11283. # if you distribute this file as part of a program or library that
  11284. # is built using GNU Libtool, you may include this file under the
  11285. # same distribution terms that you use for the rest of that program.
  11286. #
  11287. # GNU Libtool is distributed in the hope that it will be useful,
  11288. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11289. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11290. # GNU General Public License for more details.
  11291. #
  11292. # You should have received a copy of the GNU General Public License
  11293. # along with GNU Libtool; see the file COPYING. If not, a copy
  11294. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11295. # obtained by writing to the Free Software Foundation, Inc.,
  11296. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11297. # The names of the tagged configurations supported by this script.
  11298. available_tags=""
  11299. # ### BEGIN LIBTOOL CONFIG
  11300. # Assembler program.
  11301. AS=$lt_AS
  11302. # DLL creation program.
  11303. DLLTOOL=$lt_DLLTOOL
  11304. # Object dumper program.
  11305. OBJDUMP=$lt_OBJDUMP
  11306. # Which release of libtool.m4 was used?
  11307. macro_version=$macro_version
  11308. macro_revision=$macro_revision
  11309. # Whether or not to build shared libraries.
  11310. build_libtool_libs=$enable_shared
  11311. # Whether or not to build static libraries.
  11312. build_old_libs=$enable_static
  11313. # What type of objects to build.
  11314. pic_mode=$pic_mode
  11315. # Whether or not to optimize for fast installation.
  11316. fast_install=$enable_fast_install
  11317. # Shell to use when invoking shell scripts.
  11318. SHELL=$lt_SHELL
  11319. # An echo program that protects backslashes.
  11320. ECHO=$lt_ECHO
  11321. # The host system.
  11322. host_alias=$host_alias
  11323. host=$host
  11324. host_os=$host_os
  11325. # The build system.
  11326. build_alias=$build_alias
  11327. build=$build
  11328. build_os=$build_os
  11329. # A sed program that does not truncate output.
  11330. SED=$lt_SED
  11331. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11332. Xsed="\$SED -e 1s/^X//"
  11333. # A grep program that handles long lines.
  11334. GREP=$lt_GREP
  11335. # An ERE matcher.
  11336. EGREP=$lt_EGREP
  11337. # A literal string matcher.
  11338. FGREP=$lt_FGREP
  11339. # A BSD- or MS-compatible name lister.
  11340. NM=$lt_NM
  11341. # Whether we need soft or hard links.
  11342. LN_S=$lt_LN_S
  11343. # What is the maximum length of a command?
  11344. max_cmd_len=$max_cmd_len
  11345. # Object file suffix (normally "o").
  11346. objext=$ac_objext
  11347. # Executable file suffix (normally "").
  11348. exeext=$exeext
  11349. # whether the shell understands "unset".
  11350. lt_unset=$lt_unset
  11351. # turn spaces into newlines.
  11352. SP2NL=$lt_lt_SP2NL
  11353. # turn newlines into spaces.
  11354. NL2SP=$lt_lt_NL2SP
  11355. # Method to check whether dependent libraries are shared objects.
  11356. deplibs_check_method=$lt_deplibs_check_method
  11357. # Command to use when deplibs_check_method == "file_magic".
  11358. file_magic_cmd=$lt_file_magic_cmd
  11359. # The archiver.
  11360. AR=$lt_AR
  11361. AR_FLAGS=$lt_AR_FLAGS
  11362. # A symbol stripping program.
  11363. STRIP=$lt_STRIP
  11364. # Commands used to install an old-style archive.
  11365. RANLIB=$lt_RANLIB
  11366. old_postinstall_cmds=$lt_old_postinstall_cmds
  11367. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11368. # Whether to use a lock for old archive extraction.
  11369. lock_old_archive_extraction=$lock_old_archive_extraction
  11370. # A C compiler.
  11371. LTCC=$lt_CC
  11372. # LTCC compiler flags.
  11373. LTCFLAGS=$lt_CFLAGS
  11374. # Take the output of nm and produce a listing of raw symbols and C names.
  11375. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11376. # Transform the output of nm in a proper C declaration.
  11377. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11378. # Transform the output of nm in a C name address pair.
  11379. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11380. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11381. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11382. # The name of the directory that contains temporary libtool files.
  11383. objdir=$objdir
  11384. # Used to examine libraries when file_magic_cmd begins with "file".
  11385. MAGIC_CMD=$MAGIC_CMD
  11386. # Must we lock files when doing compilation?
  11387. need_locks=$lt_need_locks
  11388. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11389. DSYMUTIL=$lt_DSYMUTIL
  11390. # Tool to change global to local symbols on Mac OS X.
  11391. NMEDIT=$lt_NMEDIT
  11392. # Tool to manipulate fat objects and archives on Mac OS X.
  11393. LIPO=$lt_LIPO
  11394. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11395. OTOOL=$lt_OTOOL
  11396. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11397. OTOOL64=$lt_OTOOL64
  11398. # Old archive suffix (normally "a").
  11399. libext=$libext
  11400. # Shared library suffix (normally ".so").
  11401. shrext_cmds=$lt_shrext_cmds
  11402. # The commands to extract the exported symbol list from a shared archive.
  11403. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11404. # Variables whose values should be saved in libtool wrapper scripts and
  11405. # restored at link time.
  11406. variables_saved_for_relink=$lt_variables_saved_for_relink
  11407. # Do we need the "lib" prefix for modules?
  11408. need_lib_prefix=$need_lib_prefix
  11409. # Do we need a version for libraries?
  11410. need_version=$need_version
  11411. # Library versioning type.
  11412. version_type=$version_type
  11413. # Shared library runtime path variable.
  11414. runpath_var=$runpath_var
  11415. # Shared library path variable.
  11416. shlibpath_var=$shlibpath_var
  11417. # Is shlibpath searched before the hard-coded library search path?
  11418. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11419. # Format of library name prefix.
  11420. libname_spec=$lt_libname_spec
  11421. # List of archive names. First name is the real one, the rest are links.
  11422. # The last name is the one that the linker finds with -lNAME
  11423. library_names_spec=$lt_library_names_spec
  11424. # The coded name of the library, if different from the real name.
  11425. soname_spec=$lt_soname_spec
  11426. # Permission mode override for installation of shared libraries.
  11427. install_override_mode=$lt_install_override_mode
  11428. # Command to use after installation of a shared archive.
  11429. postinstall_cmds=$lt_postinstall_cmds
  11430. # Command to use after uninstallation of a shared archive.
  11431. postuninstall_cmds=$lt_postuninstall_cmds
  11432. # Commands used to finish a libtool library installation in a directory.
  11433. finish_cmds=$lt_finish_cmds
  11434. # As "finish_cmds", except a single script fragment to be evaled but
  11435. # not shown.
  11436. finish_eval=$lt_finish_eval
  11437. # Whether we should hardcode library paths into libraries.
  11438. hardcode_into_libs=$hardcode_into_libs
  11439. # Compile-time system search path for libraries.
  11440. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11441. # Run-time system search path for libraries.
  11442. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11443. # Whether dlopen is supported.
  11444. dlopen_support=$enable_dlopen
  11445. # Whether dlopen of programs is supported.
  11446. dlopen_self=$enable_dlopen_self
  11447. # Whether dlopen of statically linked programs is supported.
  11448. dlopen_self_static=$enable_dlopen_self_static
  11449. # Commands to strip libraries.
  11450. old_striplib=$lt_old_striplib
  11451. striplib=$lt_striplib
  11452. # The linker used to build libraries.
  11453. LD=$lt_LD
  11454. # How to create reloadable object files.
  11455. reload_flag=$lt_reload_flag
  11456. reload_cmds=$lt_reload_cmds
  11457. # Commands used to build an old-style archive.
  11458. old_archive_cmds=$lt_old_archive_cmds
  11459. # A language specific compiler.
  11460. CC=$lt_compiler
  11461. # Is the compiler the GNU compiler?
  11462. with_gcc=$GCC
  11463. # Compiler flag to turn off builtin functions.
  11464. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11465. # How to pass a linker flag through the compiler.
  11466. wl=$lt_lt_prog_compiler_wl
  11467. # Additional compiler flags for building library objects.
  11468. pic_flag=$lt_lt_prog_compiler_pic
  11469. # Compiler flag to prevent dynamic linking.
  11470. link_static_flag=$lt_lt_prog_compiler_static
  11471. # Does compiler simultaneously support -c and -o options?
  11472. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11473. # Whether or not to add -lc for building shared libraries.
  11474. build_libtool_need_lc=$archive_cmds_need_lc
  11475. # Whether or not to disallow shared libs when runtime libs are static.
  11476. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11477. # Compiler flag to allow reflexive dlopens.
  11478. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11479. # Compiler flag to generate shared objects directly from archives.
  11480. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11481. # Whether the compiler copes with passing no objects directly.
  11482. compiler_needs_object=$lt_compiler_needs_object
  11483. # Create an old-style archive from a shared archive.
  11484. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11485. # Create a temporary old-style archive to link instead of a shared archive.
  11486. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11487. # Commands used to build a shared archive.
  11488. archive_cmds=$lt_archive_cmds
  11489. archive_expsym_cmds=$lt_archive_expsym_cmds
  11490. # Commands used to build a loadable module if different from building
  11491. # a shared archive.
  11492. module_cmds=$lt_module_cmds
  11493. module_expsym_cmds=$lt_module_expsym_cmds
  11494. # Whether we are building with GNU ld or not.
  11495. with_gnu_ld=$lt_with_gnu_ld
  11496. # Flag that allows shared libraries with undefined symbols to be built.
  11497. allow_undefined_flag=$lt_allow_undefined_flag
  11498. # Flag that enforces no undefined symbols.
  11499. no_undefined_flag=$lt_no_undefined_flag
  11500. # Flag to hardcode \$libdir into a binary during linking.
  11501. # This must work even if \$libdir does not exist
  11502. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11503. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11504. # during linking. This must work even if \$libdir does not exist.
  11505. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11506. # Whether we need a single "-rpath" flag with a separated argument.
  11507. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11508. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11509. # DIR into the resulting binary.
  11510. hardcode_direct=$hardcode_direct
  11511. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11512. # DIR into the resulting binary and the resulting library dependency is
  11513. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11514. # library is relocated.
  11515. hardcode_direct_absolute=$hardcode_direct_absolute
  11516. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11517. # into the resulting binary.
  11518. hardcode_minus_L=$hardcode_minus_L
  11519. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11520. # into the resulting binary.
  11521. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11522. # Set to "yes" if building a shared library automatically hardcodes DIR
  11523. # into the library and all subsequent libraries and executables linked
  11524. # against it.
  11525. hardcode_automatic=$hardcode_automatic
  11526. # Set to yes if linker adds runtime paths of dependent libraries
  11527. # to runtime path list.
  11528. inherit_rpath=$inherit_rpath
  11529. # Whether libtool must link a program against all its dependency libraries.
  11530. link_all_deplibs=$link_all_deplibs
  11531. # Fix the shell variable \$srcfile for the compiler.
  11532. fix_srcfile_path=$lt_fix_srcfile_path
  11533. # Set to "yes" if exported symbols are required.
  11534. always_export_symbols=$always_export_symbols
  11535. # The commands to list exported symbols.
  11536. export_symbols_cmds=$lt_export_symbols_cmds
  11537. # Symbols that should not be listed in the preloaded symbols.
  11538. exclude_expsyms=$lt_exclude_expsyms
  11539. # Symbols that must always be exported.
  11540. include_expsyms=$lt_include_expsyms
  11541. # Commands necessary for linking programs (against libraries) with templates.
  11542. prelink_cmds=$lt_prelink_cmds
  11543. # Specify filename containing input files.
  11544. file_list_spec=$lt_file_list_spec
  11545. # How to hardcode a shared library path into an executable.
  11546. hardcode_action=$hardcode_action
  11547. # ### END LIBTOOL CONFIG
  11548. _LT_EOF
  11549. case $host_os in
  11550. aix3*)
  11551. cat <<\_LT_EOF >> "$cfgfile"
  11552. # AIX sometimes has problems with the GCC collect2 program. For some
  11553. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11554. # vanish in a puff of smoke.
  11555. if test "X${COLLECT_NAMES+set}" != Xset; then
  11556. COLLECT_NAMES=
  11557. export COLLECT_NAMES
  11558. fi
  11559. _LT_EOF
  11560. ;;
  11561. esac
  11562. ltmain="$ac_aux_dir/ltmain.sh"
  11563. # We use sed instead of cat because bash on DJGPP gets confused if
  11564. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11565. # text mode, it properly converts lines to CR/LF. This bash problem
  11566. # is reportedly fixed, but why not run on old versions too?
  11567. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11568. || (rm -f "$cfgfile"; exit 1)
  11569. case $xsi_shell in
  11570. yes)
  11571. cat << \_LT_EOF >> "$cfgfile"
  11572. # func_dirname file append nondir_replacement
  11573. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11574. # otherwise set result to NONDIR_REPLACEMENT.
  11575. func_dirname ()
  11576. {
  11577. case ${1} in
  11578. */*) func_dirname_result="${1%/*}${2}" ;;
  11579. * ) func_dirname_result="${3}" ;;
  11580. esac
  11581. }
  11582. # func_basename file
  11583. func_basename ()
  11584. {
  11585. func_basename_result="${1##*/}"
  11586. }
  11587. # func_dirname_and_basename file append nondir_replacement
  11588. # perform func_basename and func_dirname in a single function
  11589. # call:
  11590. # dirname: Compute the dirname of FILE. If nonempty,
  11591. # add APPEND to the result, otherwise set result
  11592. # to NONDIR_REPLACEMENT.
  11593. # value returned in "$func_dirname_result"
  11594. # basename: Compute filename of FILE.
  11595. # value retuned in "$func_basename_result"
  11596. # Implementation must be kept synchronized with func_dirname
  11597. # and func_basename. For efficiency, we do not delegate to
  11598. # those functions but instead duplicate the functionality here.
  11599. func_dirname_and_basename ()
  11600. {
  11601. case ${1} in
  11602. */*) func_dirname_result="${1%/*}${2}" ;;
  11603. * ) func_dirname_result="${3}" ;;
  11604. esac
  11605. func_basename_result="${1##*/}"
  11606. }
  11607. # func_stripname prefix suffix name
  11608. # strip PREFIX and SUFFIX off of NAME.
  11609. # PREFIX and SUFFIX must not contain globbing or regex special
  11610. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11611. # dot (in which case that matches only a dot).
  11612. func_stripname ()
  11613. {
  11614. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11615. # positional parameters, so assign one to ordinary parameter first.
  11616. func_stripname_result=${3}
  11617. func_stripname_result=${func_stripname_result#"${1}"}
  11618. func_stripname_result=${func_stripname_result%"${2}"}
  11619. }
  11620. # func_opt_split
  11621. func_opt_split ()
  11622. {
  11623. func_opt_split_opt=${1%%=*}
  11624. func_opt_split_arg=${1#*=}
  11625. }
  11626. # func_lo2o object
  11627. func_lo2o ()
  11628. {
  11629. case ${1} in
  11630. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11631. *) func_lo2o_result=${1} ;;
  11632. esac
  11633. }
  11634. # func_xform libobj-or-source
  11635. func_xform ()
  11636. {
  11637. func_xform_result=${1%.*}.lo
  11638. }
  11639. # func_arith arithmetic-term...
  11640. func_arith ()
  11641. {
  11642. func_arith_result=$(( $* ))
  11643. }
  11644. # func_len string
  11645. # STRING may not start with a hyphen.
  11646. func_len ()
  11647. {
  11648. func_len_result=${#1}
  11649. }
  11650. _LT_EOF
  11651. ;;
  11652. *) # Bourne compatible functions.
  11653. cat << \_LT_EOF >> "$cfgfile"
  11654. # func_dirname file append nondir_replacement
  11655. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11656. # otherwise set result to NONDIR_REPLACEMENT.
  11657. func_dirname ()
  11658. {
  11659. # Extract subdirectory from the argument.
  11660. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11661. if test "X$func_dirname_result" = "X${1}"; then
  11662. func_dirname_result="${3}"
  11663. else
  11664. func_dirname_result="$func_dirname_result${2}"
  11665. fi
  11666. }
  11667. # func_basename file
  11668. func_basename ()
  11669. {
  11670. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11671. }
  11672. # func_stripname prefix suffix name
  11673. # strip PREFIX and SUFFIX off of NAME.
  11674. # PREFIX and SUFFIX must not contain globbing or regex special
  11675. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11676. # dot (in which case that matches only a dot).
  11677. # func_strip_suffix prefix name
  11678. func_stripname ()
  11679. {
  11680. case ${2} in
  11681. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11682. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11683. esac
  11684. }
  11685. # sed scripts:
  11686. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11687. my_sed_long_arg='1s/^-[^=]*=//'
  11688. # func_opt_split
  11689. func_opt_split ()
  11690. {
  11691. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11692. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11693. }
  11694. # func_lo2o object
  11695. func_lo2o ()
  11696. {
  11697. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11698. }
  11699. # func_xform libobj-or-source
  11700. func_xform ()
  11701. {
  11702. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11703. }
  11704. # func_arith arithmetic-term...
  11705. func_arith ()
  11706. {
  11707. func_arith_result=`expr "$@"`
  11708. }
  11709. # func_len string
  11710. # STRING may not start with a hyphen.
  11711. func_len ()
  11712. {
  11713. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11714. }
  11715. _LT_EOF
  11716. esac
  11717. case $lt_shell_append in
  11718. yes)
  11719. cat << \_LT_EOF >> "$cfgfile"
  11720. # func_append var value
  11721. # Append VALUE to the end of shell variable VAR.
  11722. func_append ()
  11723. {
  11724. eval "$1+=\$2"
  11725. }
  11726. _LT_EOF
  11727. ;;
  11728. *)
  11729. cat << \_LT_EOF >> "$cfgfile"
  11730. # func_append var value
  11731. # Append VALUE to the end of shell variable VAR.
  11732. func_append ()
  11733. {
  11734. eval "$1=\$$1\$2"
  11735. }
  11736. _LT_EOF
  11737. ;;
  11738. esac
  11739. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11740. || (rm -f "$cfgfile"; exit 1)
  11741. mv -f "$cfgfile" "$ofile" ||
  11742. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11743. chmod +x "$ofile"
  11744. ;;
  11745. esac
  11746. done # for ac_tag
  11747. as_fn_exit 0
  11748. _ACEOF
  11749. ac_clean_files=$ac_clean_files_save
  11750. test $ac_write_fail = 0 ||
  11751. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11752. # configure is writing to config.log, and then calls config.status.
  11753. # config.status does its own redirection, appending to config.log.
  11754. # Unfortunately, on DOS this fails, as config.log is still kept open
  11755. # by configure, so config.status won't be able to write to it; its
  11756. # output is simply discarded. So we exec the FD to /dev/null,
  11757. # effectively closing config.log, so it can be properly (re)opened and
  11758. # appended to by config.status. When coming back to configure, we
  11759. # need to make the FD available again.
  11760. if test "$no_create" != yes; then
  11761. ac_cs_success=:
  11762. ac_config_status_args=
  11763. test "$silent" = yes &&
  11764. ac_config_status_args="$ac_config_status_args --quiet"
  11765. exec 5>/dev/null
  11766. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11767. exec 5>>config.log
  11768. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11769. # would make configure fail if this is the last instruction.
  11770. $ac_cs_success || as_fn_exit $?
  11771. fi
  11772. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11774. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11775. fi