configure 368 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libltdl 1.2.
  4. #
  5. # Report bugs to <bug-libtool@gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: bug-libtool@gnu.org about your system, including any
  215. $0: error possibly output before this message. Then install
  216. $0: a modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. echo=${ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $echo works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<EOF
  512. $*
  513. EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  525. echo_test_string="`eval $cmd`" &&
  526. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  527. then
  528. break
  529. fi
  530. done
  531. fi
  532. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  533. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  534. test "X$echo_testing_string" = "X$echo_test_string"; then
  535. :
  536. else
  537. # The Solaris, AIX, and Digital Unix default echo programs unquote
  538. # backslashes. This makes it impossible to quote backslashes using
  539. # echo "$something" | sed 's/\\/\\\\/g'
  540. #
  541. # So, first we look for a working echo in the user's PATH.
  542. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  543. for dir in $PATH /usr/ucb; do
  544. IFS="$lt_save_ifs"
  545. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  546. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  547. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  548. test "X$echo_testing_string" = "X$echo_test_string"; then
  549. echo="$dir/echo"
  550. break
  551. fi
  552. done
  553. IFS="$lt_save_ifs"
  554. if test "X$echo" = Xecho; then
  555. # We didn't find a better echo, so look for alternatives.
  556. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. # This shell has a builtin print -r that does the trick.
  560. echo='print -r'
  561. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  562. test "X$CONFIG_SHELL" != X/bin/ksh; then
  563. # If we have ksh, try running configure again with it.
  564. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  565. export ORIGINAL_CONFIG_SHELL
  566. CONFIG_SHELL=/bin/ksh
  567. export CONFIG_SHELL
  568. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  569. else
  570. # Try using printf.
  571. echo='printf %s\n'
  572. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  573. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  574. test "X$echo_testing_string" = "X$echo_test_string"; then
  575. # Cool, printf works
  576. :
  577. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  578. test "X$echo_testing_string" = 'X\t' &&
  579. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  580. test "X$echo_testing_string" = "X$echo_test_string"; then
  581. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  582. export CONFIG_SHELL
  583. SHELL="$CONFIG_SHELL"
  584. export SHELL
  585. echo="$CONFIG_SHELL $0 --fallback-echo"
  586. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  587. test "X$echo_testing_string" = 'X\t' &&
  588. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  589. test "X$echo_testing_string" = "X$echo_test_string"; then
  590. echo="$CONFIG_SHELL $0 --fallback-echo"
  591. else
  592. # maybe with a smaller string...
  593. prev=:
  594. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  595. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  596. then
  597. break
  598. fi
  599. prev="$cmd"
  600. done
  601. if test "$prev" != 'sed 50q "$0"'; then
  602. echo_test_string=`eval $prev`
  603. export echo_test_string
  604. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  605. else
  606. # Oops. We lost completely, so just stick with echo.
  607. echo=echo
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. # Copy echo and quote the copy suitably for passing to libtool from
  615. # the Makefile, instead of quoting the original, which is used later.
  616. ECHO=$echo
  617. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  618. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  619. fi
  620. exec 7<&0 </dev/null 6>&1
  621. # Name of the host.
  622. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  623. # so uname gets run too.
  624. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  625. #
  626. # Initializations.
  627. #
  628. ac_default_prefix=/usr/local
  629. ac_clean_files=
  630. ac_config_libobj_dir=.
  631. LIBOBJS=
  632. cross_compiling=no
  633. subdirs=
  634. MFLAGS=
  635. MAKEFLAGS=
  636. # Identity of this package.
  637. PACKAGE_NAME='libltdl'
  638. PACKAGE_TARNAME='libltdl'
  639. PACKAGE_VERSION='1.2'
  640. PACKAGE_STRING='libltdl 1.2'
  641. PACKAGE_BUGREPORT='bug-libtool@gnu.org'
  642. PACKAGE_URL=''
  643. ac_unique_file="ltdl.c"
  644. # Factoring default headers for most tests.
  645. ac_includes_default="\
  646. #include <stdio.h>
  647. #ifdef HAVE_SYS_TYPES_H
  648. # include <sys/types.h>
  649. #endif
  650. #ifdef HAVE_SYS_STAT_H
  651. # include <sys/stat.h>
  652. #endif
  653. #ifdef STDC_HEADERS
  654. # include <stdlib.h>
  655. # include <stddef.h>
  656. #else
  657. # ifdef HAVE_STDLIB_H
  658. # include <stdlib.h>
  659. # endif
  660. #endif
  661. #ifdef HAVE_STRING_H
  662. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  663. # include <memory.h>
  664. # endif
  665. # include <string.h>
  666. #endif
  667. #ifdef HAVE_STRINGS_H
  668. # include <strings.h>
  669. #endif
  670. #ifdef HAVE_INTTYPES_H
  671. # include <inttypes.h>
  672. #endif
  673. #ifdef HAVE_STDINT_H
  674. # include <stdint.h>
  675. #endif
  676. #ifdef HAVE_UNISTD_H
  677. # include <unistd.h>
  678. #endif"
  679. ac_subst_vars='am__EXEEXT_FALSE
  680. am__EXEEXT_TRUE
  681. LTLIBOBJS
  682. LIBOBJS
  683. LIBADD_DL
  684. CONVENIENCE_LTDL_FALSE
  685. CONVENIENCE_LTDL_TRUE
  686. INSTALL_LTDL_FALSE
  687. INSTALL_LTDL_TRUE
  688. LIBTOOL_DEPS
  689. LIBTOOL
  690. CPP
  691. OBJDUMP
  692. AS
  693. DLLTOOL
  694. RANLIB
  695. AR
  696. ECHO
  697. LN_S
  698. EGREP
  699. GREP
  700. host_os
  701. host_vendor
  702. host_cpu
  703. host
  704. build_os
  705. build_vendor
  706. build_cpu
  707. build
  708. am__fastdepCC_FALSE
  709. am__fastdepCC_TRUE
  710. CCDEPMODE
  711. AMDEPBACKSLASH
  712. AMDEP_FALSE
  713. AMDEP_TRUE
  714. am__quote
  715. am__include
  716. DEPDIR
  717. OBJEXT
  718. EXEEXT
  719. ac_ct_CC
  720. CPPFLAGS
  721. LDFLAGS
  722. CFLAGS
  723. CC
  724. am__untar
  725. am__tar
  726. AMTAR
  727. am__leading_dot
  728. SET_MAKE
  729. AWK
  730. mkdir_p
  731. MKDIR_P
  732. INSTALL_STRIP_PROGRAM
  733. STRIP
  734. install_sh
  735. MAKEINFO
  736. AUTOHEADER
  737. AUTOMAKE
  738. AUTOCONF
  739. ACLOCAL
  740. VERSION
  741. PACKAGE
  742. CYGPATH_W
  743. am__isrc
  744. INSTALL_DATA
  745. INSTALL_SCRIPT
  746. INSTALL_PROGRAM
  747. multi_basedir
  748. MAINT
  749. MAINTAINER_MODE_FALSE
  750. MAINTAINER_MODE_TRUE
  751. target_alias
  752. host_alias
  753. build_alias
  754. LIBS
  755. ECHO_T
  756. ECHO_N
  757. ECHO_C
  758. DEFS
  759. mandir
  760. localedir
  761. libdir
  762. psdir
  763. pdfdir
  764. dvidir
  765. htmldir
  766. infodir
  767. docdir
  768. oldincludedir
  769. includedir
  770. localstatedir
  771. sharedstatedir
  772. sysconfdir
  773. datadir
  774. datarootdir
  775. libexecdir
  776. sbindir
  777. bindir
  778. program_transform_name
  779. prefix
  780. exec_prefix
  781. PACKAGE_URL
  782. PACKAGE_BUGREPORT
  783. PACKAGE_STRING
  784. PACKAGE_VERSION
  785. PACKAGE_TARNAME
  786. PACKAGE_NAME
  787. PATH_SEPARATOR
  788. SHELL'
  789. ac_subst_files=''
  790. ac_user_opts='
  791. enable_option_checking
  792. enable_maintainer_mode
  793. enable_multilib
  794. enable_dependency_tracking
  795. enable_shared
  796. enable_static
  797. enable_fast_install
  798. with_gnu_ld
  799. enable_libtool_lock
  800. with_pic
  801. with_tags
  802. enable_ltdl_install
  803. '
  804. ac_precious_vars='build_alias
  805. host_alias
  806. target_alias
  807. CC
  808. CFLAGS
  809. LDFLAGS
  810. LIBS
  811. CPPFLAGS
  812. CPP'
  813. # Initialize some variables set by options.
  814. ac_init_help=
  815. ac_init_version=false
  816. ac_unrecognized_opts=
  817. ac_unrecognized_sep=
  818. # The variables have the same names as the options, with
  819. # dashes changed to underlines.
  820. cache_file=/dev/null
  821. exec_prefix=NONE
  822. no_create=
  823. no_recursion=
  824. prefix=NONE
  825. program_prefix=NONE
  826. program_suffix=NONE
  827. program_transform_name=s,x,x,
  828. silent=
  829. site=
  830. srcdir=
  831. verbose=
  832. x_includes=NONE
  833. x_libraries=NONE
  834. # Installation directory options.
  835. # These are left unexpanded so users can "make install exec_prefix=/foo"
  836. # and all the variables that are supposed to be based on exec_prefix
  837. # by default will actually change.
  838. # Use braces instead of parens because sh, perl, etc. also accept them.
  839. # (The list follows the same order as the GNU Coding Standards.)
  840. bindir='${exec_prefix}/bin'
  841. sbindir='${exec_prefix}/sbin'
  842. libexecdir='${exec_prefix}/libexec'
  843. datarootdir='${prefix}/share'
  844. datadir='${datarootdir}'
  845. sysconfdir='${prefix}/etc'
  846. sharedstatedir='${prefix}/com'
  847. localstatedir='${prefix}/var'
  848. includedir='${prefix}/include'
  849. oldincludedir='/usr/include'
  850. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  851. infodir='${datarootdir}/info'
  852. htmldir='${docdir}'
  853. dvidir='${docdir}'
  854. pdfdir='${docdir}'
  855. psdir='${docdir}'
  856. libdir='${exec_prefix}/lib'
  857. localedir='${datarootdir}/locale'
  858. mandir='${datarootdir}/man'
  859. ac_prev=
  860. ac_dashdash=
  861. for ac_option
  862. do
  863. # If the previous option needs an argument, assign it.
  864. if test -n "$ac_prev"; then
  865. eval $ac_prev=\$ac_option
  866. ac_prev=
  867. continue
  868. fi
  869. case $ac_option in
  870. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871. *) ac_optarg=yes ;;
  872. esac
  873. # Accept the important Cygnus configure options, so we can diagnose typos.
  874. case $ac_dashdash$ac_option in
  875. --)
  876. ac_dashdash=yes ;;
  877. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  878. ac_prev=bindir ;;
  879. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  880. bindir=$ac_optarg ;;
  881. -build | --build | --buil | --bui | --bu)
  882. ac_prev=build_alias ;;
  883. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  884. build_alias=$ac_optarg ;;
  885. -cache-file | --cache-file | --cache-fil | --cache-fi \
  886. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  887. ac_prev=cache_file ;;
  888. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  889. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  890. cache_file=$ac_optarg ;;
  891. --config-cache | -C)
  892. cache_file=config.cache ;;
  893. -datadir | --datadir | --datadi | --datad)
  894. ac_prev=datadir ;;
  895. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  896. datadir=$ac_optarg ;;
  897. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  898. | --dataroo | --dataro | --datar)
  899. ac_prev=datarootdir ;;
  900. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  901. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  902. datarootdir=$ac_optarg ;;
  903. -disable-* | --disable-*)
  904. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  905. # Reject names that are not valid shell variable names.
  906. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  907. as_fn_error "invalid feature name: $ac_useropt"
  908. ac_useropt_orig=$ac_useropt
  909. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  910. case $ac_user_opts in
  911. *"
  912. "enable_$ac_useropt"
  913. "*) ;;
  914. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  915. ac_unrecognized_sep=', ';;
  916. esac
  917. eval enable_$ac_useropt=no ;;
  918. -docdir | --docdir | --docdi | --doc | --do)
  919. ac_prev=docdir ;;
  920. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  921. docdir=$ac_optarg ;;
  922. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  923. ac_prev=dvidir ;;
  924. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  925. dvidir=$ac_optarg ;;
  926. -enable-* | --enable-*)
  927. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  928. # Reject names that are not valid shell variable names.
  929. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930. as_fn_error "invalid feature name: $ac_useropt"
  931. ac_useropt_orig=$ac_useropt
  932. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933. case $ac_user_opts in
  934. *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  938. ac_unrecognized_sep=', ';;
  939. esac
  940. eval enable_$ac_useropt=\$ac_optarg ;;
  941. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943. | --exec | --exe | --ex)
  944. ac_prev=exec_prefix ;;
  945. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947. | --exec=* | --exe=* | --ex=*)
  948. exec_prefix=$ac_optarg ;;
  949. -gas | --gas | --ga | --g)
  950. # Obsolete; use --with-gas.
  951. with_gas=yes ;;
  952. -help | --help | --hel | --he | -h)
  953. ac_init_help=long ;;
  954. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955. ac_init_help=recursive ;;
  956. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957. ac_init_help=short ;;
  958. -host | --host | --hos | --ho)
  959. ac_prev=host_alias ;;
  960. -host=* | --host=* | --hos=* | --ho=*)
  961. host_alias=$ac_optarg ;;
  962. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963. ac_prev=htmldir ;;
  964. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965. | --ht=*)
  966. htmldir=$ac_optarg ;;
  967. -includedir | --includedir | --includedi | --included | --include \
  968. | --includ | --inclu | --incl | --inc)
  969. ac_prev=includedir ;;
  970. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971. | --includ=* | --inclu=* | --incl=* | --inc=*)
  972. includedir=$ac_optarg ;;
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977. -libdir | --libdir | --libdi | --libd)
  978. ac_prev=libdir ;;
  979. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980. libdir=$ac_optarg ;;
  981. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982. | --libexe | --libex | --libe)
  983. ac_prev=libexecdir ;;
  984. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985. | --libexe=* | --libex=* | --libe=*)
  986. libexecdir=$ac_optarg ;;
  987. -localedir | --localedir | --localedi | --localed | --locale)
  988. ac_prev=localedir ;;
  989. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990. localedir=$ac_optarg ;;
  991. -localstatedir | --localstatedir | --localstatedi | --localstated \
  992. | --localstate | --localstat | --localsta | --localst | --locals)
  993. ac_prev=localstatedir ;;
  994. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996. localstatedir=$ac_optarg ;;
  997. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998. ac_prev=mandir ;;
  999. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000. mandir=$ac_optarg ;;
  1001. -nfp | --nfp | --nf)
  1002. # Obsolete; use --without-fp.
  1003. with_fp=no ;;
  1004. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005. | --no-cr | --no-c | -n)
  1006. no_create=yes ;;
  1007. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009. no_recursion=yes ;;
  1010. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012. | --oldin | --oldi | --old | --ol | --o)
  1013. ac_prev=oldincludedir ;;
  1014. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017. oldincludedir=$ac_optarg ;;
  1018. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019. ac_prev=prefix ;;
  1020. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021. prefix=$ac_optarg ;;
  1022. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023. | --program-pre | --program-pr | --program-p)
  1024. ac_prev=program_prefix ;;
  1025. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027. program_prefix=$ac_optarg ;;
  1028. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029. | --program-suf | --program-su | --program-s)
  1030. ac_prev=program_suffix ;;
  1031. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033. program_suffix=$ac_optarg ;;
  1034. -program-transform-name | --program-transform-name \
  1035. | --program-transform-nam | --program-transform-na \
  1036. | --program-transform-n | --program-transform- \
  1037. | --program-transform | --program-transfor \
  1038. | --program-transfo | --program-transf \
  1039. | --program-trans | --program-tran \
  1040. | --progr-tra | --program-tr | --program-t)
  1041. ac_prev=program_transform_name ;;
  1042. -program-transform-name=* | --program-transform-name=* \
  1043. | --program-transform-nam=* | --program-transform-na=* \
  1044. | --program-transform-n=* | --program-transform-=* \
  1045. | --program-transform=* | --program-transfor=* \
  1046. | --program-transfo=* | --program-transf=* \
  1047. | --program-trans=* | --program-tran=* \
  1048. | --progr-tra=* | --program-tr=* | --program-t=*)
  1049. program_transform_name=$ac_optarg ;;
  1050. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051. ac_prev=pdfdir ;;
  1052. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053. pdfdir=$ac_optarg ;;
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059. | -silent | --silent | --silen | --sile | --sil)
  1060. silent=yes ;;
  1061. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062. ac_prev=sbindir ;;
  1063. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064. | --sbi=* | --sb=*)
  1065. sbindir=$ac_optarg ;;
  1066. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068. | --sharedst | --shareds | --shared | --share | --shar \
  1069. | --sha | --sh)
  1070. ac_prev=sharedstatedir ;;
  1071. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074. | --sha=* | --sh=*)
  1075. sharedstatedir=$ac_optarg ;;
  1076. -site | --site | --sit)
  1077. ac_prev=site ;;
  1078. -site=* | --site=* | --sit=*)
  1079. site=$ac_optarg ;;
  1080. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081. ac_prev=srcdir ;;
  1082. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083. srcdir=$ac_optarg ;;
  1084. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085. | --syscon | --sysco | --sysc | --sys | --sy)
  1086. ac_prev=sysconfdir ;;
  1087. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089. sysconfdir=$ac_optarg ;;
  1090. -target | --target | --targe | --targ | --tar | --ta | --t)
  1091. ac_prev=target_alias ;;
  1092. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093. target_alias=$ac_optarg ;;
  1094. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095. verbose=yes ;;
  1096. -version | --version | --versio | --versi | --vers | -V)
  1097. ac_init_version=: ;;
  1098. -with-* | --with-*)
  1099. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102. as_fn_error "invalid package name: $ac_useropt"
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval with_$ac_useropt=\$ac_optarg ;;
  1113. -without-* | --without-*)
  1114. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1117. as_fn_error "invalid package name: $ac_useropt"
  1118. ac_useropt_orig=$ac_useropt
  1119. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120. case $ac_user_opts in
  1121. *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1125. ac_unrecognized_sep=', ';;
  1126. esac
  1127. eval with_$ac_useropt=no ;;
  1128. --x)
  1129. # Obsolete; use --with-x.
  1130. with_x=yes ;;
  1131. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1132. | --x-incl | --x-inc | --x-in | --x-i)
  1133. ac_prev=x_includes ;;
  1134. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1135. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1136. x_includes=$ac_optarg ;;
  1137. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1138. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1139. ac_prev=x_libraries ;;
  1140. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1141. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1142. x_libraries=$ac_optarg ;;
  1143. -*) as_fn_error "unrecognized option: \`$ac_option'
  1144. Try \`$0 --help' for more information."
  1145. ;;
  1146. *=*)
  1147. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1148. # Reject names that are not valid shell variable names.
  1149. case $ac_envvar in #(
  1150. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1151. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1152. esac
  1153. eval $ac_envvar=\$ac_optarg
  1154. export $ac_envvar ;;
  1155. *)
  1156. # FIXME: should be removed in autoconf 3.0.
  1157. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1158. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1159. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1160. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1161. ;;
  1162. esac
  1163. done
  1164. if test -n "$ac_prev"; then
  1165. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1166. as_fn_error "missing argument to $ac_option"
  1167. fi
  1168. if test -n "$ac_unrecognized_opts"; then
  1169. case $enable_option_checking in
  1170. no) ;;
  1171. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1172. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1173. esac
  1174. fi
  1175. # Check all directory arguments for consistency.
  1176. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1177. datadir sysconfdir sharedstatedir localstatedir includedir \
  1178. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1179. libdir localedir mandir
  1180. do
  1181. eval ac_val=\$$ac_var
  1182. # Remove trailing slashes.
  1183. case $ac_val in
  1184. */ )
  1185. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1186. eval $ac_var=\$ac_val;;
  1187. esac
  1188. # Be sure to have absolute directory names.
  1189. case $ac_val in
  1190. [\\/$]* | ?:[\\/]* ) continue;;
  1191. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1192. esac
  1193. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1194. done
  1195. # There might be people who depend on the old broken behavior: `$host'
  1196. # used to hold the argument of --host etc.
  1197. # FIXME: To remove some day.
  1198. build=$build_alias
  1199. host=$host_alias
  1200. target=$target_alias
  1201. # FIXME: To remove some day.
  1202. if test "x$host_alias" != x; then
  1203. if test "x$build_alias" = x; then
  1204. cross_compiling=maybe
  1205. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1206. If a cross compiler is detected then cross compile mode will be used." >&2
  1207. elif test "x$build_alias" != "x$host_alias"; then
  1208. cross_compiling=yes
  1209. fi
  1210. fi
  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1213. test "$silent" = yes && exec 6>/dev/null
  1214. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1215. ac_ls_di=`ls -di .` &&
  1216. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1217. as_fn_error "working directory cannot be determined"
  1218. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1219. as_fn_error "pwd does not report name of working directory"
  1220. # Find the source files, if location was not specified.
  1221. if test -z "$srcdir"; then
  1222. ac_srcdir_defaulted=yes
  1223. # Try the directory containing this script, then the parent directory.
  1224. ac_confdir=`$as_dirname -- "$as_myself" ||
  1225. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1226. X"$as_myself" : 'X\(//\)[^/]' \| \
  1227. X"$as_myself" : 'X\(//\)$' \| \
  1228. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1229. $as_echo X"$as_myself" |
  1230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)[^/].*/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\).*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. s/.*/./; q'`
  1247. srcdir=$ac_confdir
  1248. if test ! -r "$srcdir/$ac_unique_file"; then
  1249. srcdir=..
  1250. fi
  1251. else
  1252. ac_srcdir_defaulted=no
  1253. fi
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1256. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1257. fi
  1258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1259. ac_abs_confdir=`(
  1260. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1261. pwd)`
  1262. # When building in place, set srcdir=.
  1263. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264. srcdir=.
  1265. fi
  1266. # Remove unnecessary trailing slashes from srcdir.
  1267. # Double slashes in file names in object file debugging info
  1268. # mess up M-x gdb in Emacs.
  1269. case $srcdir in
  1270. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271. esac
  1272. for ac_var in $ac_precious_vars; do
  1273. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274. eval ac_env_${ac_var}_value=\$${ac_var}
  1275. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277. done
  1278. #
  1279. # Report the --help message.
  1280. #
  1281. if test "$ac_init_help" = "long"; then
  1282. # Omit some internal or obsolete options to make the list less imposing.
  1283. # This message is too long to be a string in the A/UX 3.1 sh.
  1284. cat <<_ACEOF
  1285. \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
  1286. Usage: $0 [OPTION]... [VAR=VALUE]...
  1287. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1288. VAR=VALUE. See below for descriptions of some of the useful variables.
  1289. Defaults for the options are specified in brackets.
  1290. Configuration:
  1291. -h, --help display this help and exit
  1292. --help=short display options specific to this package
  1293. --help=recursive display the short help of all the included packages
  1294. -V, --version display version information and exit
  1295. -q, --quiet, --silent do not print \`checking...' messages
  1296. --cache-file=FILE cache test results in FILE [disabled]
  1297. -C, --config-cache alias for \`--cache-file=config.cache'
  1298. -n, --no-create do not create output files
  1299. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1300. Installation directories:
  1301. --prefix=PREFIX install architecture-independent files in PREFIX
  1302. [$ac_default_prefix]
  1303. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1304. [PREFIX]
  1305. By default, \`make install' will install all the files in
  1306. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1307. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1308. for instance \`--prefix=\$HOME'.
  1309. For better control, use the options below.
  1310. Fine tuning of the installation directories:
  1311. --bindir=DIR user executables [EPREFIX/bin]
  1312. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1313. --libexecdir=DIR program executables [EPREFIX/libexec]
  1314. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1315. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1316. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1317. --libdir=DIR object code libraries [EPREFIX/lib]
  1318. --includedir=DIR C header files [PREFIX/include]
  1319. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1320. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1321. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1322. --infodir=DIR info documentation [DATAROOTDIR/info]
  1323. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1324. --mandir=DIR man documentation [DATAROOTDIR/man]
  1325. --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
  1326. --htmldir=DIR html documentation [DOCDIR]
  1327. --dvidir=DIR dvi documentation [DOCDIR]
  1328. --pdfdir=DIR pdf documentation [DOCDIR]
  1329. --psdir=DIR ps documentation [DOCDIR]
  1330. _ACEOF
  1331. cat <<\_ACEOF
  1332. Program names:
  1333. --program-prefix=PREFIX prepend PREFIX to installed program names
  1334. --program-suffix=SUFFIX append SUFFIX to installed program names
  1335. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1336. System types:
  1337. --build=BUILD configure for building on BUILD [guessed]
  1338. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1339. _ACEOF
  1340. fi
  1341. if test -n "$ac_init_help"; then
  1342. case $ac_init_help in
  1343. short | recursive ) echo "Configuration of libltdl 1.2:";;
  1344. esac
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --enable-maintainer-mode enable make rules and dependencies not useful
  1351. (and sometimes confusing) to the casual installer
  1352. --enable-multilib build many library versions (default)
  1353. --disable-dependency-tracking speeds up one-time build
  1354. --enable-dependency-tracking do not reject slow dependency extractors
  1355. --enable-shared[=PKGS] build shared libraries [default=yes]
  1356. --enable-static[=PKGS] build static libraries [default=yes]
  1357. --enable-fast-install[=PKGS]
  1358. optimize for fast installation [default=yes]
  1359. --disable-libtool-lock avoid locking (might break parallel builds)
  1360. --enable-ltdl-install install libltdl
  1361. Optional Packages:
  1362. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1363. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1364. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1365. --with-pic try to use only PIC/non-PIC objects [default=use
  1366. both]
  1367. --with-tags[=TAGS] include additional configurations [automatic]
  1368. Some influential environment variables:
  1369. CC C compiler command
  1370. CFLAGS C compiler flags
  1371. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1372. nonstandard directory <lib dir>
  1373. LIBS libraries to pass to the linker, e.g. -l<library>
  1374. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1375. you have headers in a nonstandard directory <include dir>
  1376. CPP C preprocessor
  1377. Use these variables to override the choices made by `configure' or to help
  1378. it to find libraries and programs with nonstandard names/locations.
  1379. Report bugs to <bug-libtool@gnu.org>.
  1380. _ACEOF
  1381. ac_status=$?
  1382. fi
  1383. if test "$ac_init_help" = "recursive"; then
  1384. # If there are subdirs, report their specific --help.
  1385. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1386. test -d "$ac_dir" ||
  1387. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1388. continue
  1389. ac_builddir=.
  1390. case "$ac_dir" in
  1391. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1392. *)
  1393. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1394. # A ".." for each directory in $ac_dir_suffix.
  1395. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1396. case $ac_top_builddir_sub in
  1397. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1399. esac ;;
  1400. esac
  1401. ac_abs_top_builddir=$ac_pwd
  1402. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1403. # for backward compatibility:
  1404. ac_top_builddir=$ac_top_build_prefix
  1405. case $srcdir in
  1406. .) # We are building in place.
  1407. ac_srcdir=.
  1408. ac_top_srcdir=$ac_top_builddir_sub
  1409. ac_abs_top_srcdir=$ac_pwd ;;
  1410. [\\/]* | ?:[\\/]* ) # Absolute name.
  1411. ac_srcdir=$srcdir$ac_dir_suffix;
  1412. ac_top_srcdir=$srcdir
  1413. ac_abs_top_srcdir=$srcdir ;;
  1414. *) # Relative name.
  1415. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1416. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1417. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1418. esac
  1419. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1420. cd "$ac_dir" || { ac_status=$?; continue; }
  1421. # Check for guested configure.
  1422. if test -f "$ac_srcdir/configure.gnu"; then
  1423. echo &&
  1424. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1425. elif test -f "$ac_srcdir/configure"; then
  1426. echo &&
  1427. $SHELL "$ac_srcdir/configure" --help=recursive
  1428. else
  1429. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1430. fi || ac_status=$?
  1431. cd "$ac_pwd" || { ac_status=$?; break; }
  1432. done
  1433. fi
  1434. test -n "$ac_init_help" && exit $ac_status
  1435. if $ac_init_version; then
  1436. cat <<\_ACEOF
  1437. libltdl configure 1.2
  1438. generated by GNU Autoconf 2.64
  1439. Copyright (C) 2009 Free Software Foundation, Inc.
  1440. This configure script is free software; the Free Software Foundation
  1441. gives unlimited permission to copy, distribute and modify it.
  1442. _ACEOF
  1443. exit
  1444. fi
  1445. ## ------------------------ ##
  1446. ## Autoconf initialization. ##
  1447. ## ------------------------ ##
  1448. # ac_fn_c_try_compile LINENO
  1449. # --------------------------
  1450. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1451. ac_fn_c_try_compile ()
  1452. {
  1453. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1454. rm -f conftest.$ac_objext
  1455. if { { ac_try="$ac_compile"
  1456. case "(($ac_try" in
  1457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1458. *) ac_try_echo=$ac_try;;
  1459. esac
  1460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1461. $as_echo "$ac_try_echo"; } >&5
  1462. (eval "$ac_compile") 2>conftest.err
  1463. ac_status=$?
  1464. if test -s conftest.err; then
  1465. grep -v '^ *+' conftest.err >conftest.er1
  1466. cat conftest.er1 >&5
  1467. mv -f conftest.er1 conftest.err
  1468. fi
  1469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1470. test $ac_status = 0; } && {
  1471. test -z "$ac_c_werror_flag" ||
  1472. test ! -s conftest.err
  1473. } && test -s conftest.$ac_objext; then :
  1474. ac_retval=0
  1475. else
  1476. $as_echo "$as_me: failed program was:" >&5
  1477. sed 's/^/| /' conftest.$ac_ext >&5
  1478. ac_retval=1
  1479. fi
  1480. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1481. return $ac_retval
  1482. } # ac_fn_c_try_compile
  1483. # ac_fn_c_try_link LINENO
  1484. # -----------------------
  1485. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_link ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. rm -f conftest.$ac_objext conftest$ac_exeext
  1490. if { { ac_try="$ac_link"
  1491. case "(($ac_try" in
  1492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1493. *) ac_try_echo=$ac_try;;
  1494. esac
  1495. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1496. $as_echo "$ac_try_echo"; } >&5
  1497. (eval "$ac_link") 2>conftest.err
  1498. ac_status=$?
  1499. if test -s conftest.err; then
  1500. grep -v '^ *+' conftest.err >conftest.er1
  1501. cat conftest.er1 >&5
  1502. mv -f conftest.er1 conftest.err
  1503. fi
  1504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; } && {
  1506. test -z "$ac_c_werror_flag" ||
  1507. test ! -s conftest.err
  1508. } && test -s conftest$ac_exeext && {
  1509. test "$cross_compiling" = yes ||
  1510. $as_test_x conftest$ac_exeext
  1511. }; then :
  1512. ac_retval=0
  1513. else
  1514. $as_echo "$as_me: failed program was:" >&5
  1515. sed 's/^/| /' conftest.$ac_ext >&5
  1516. ac_retval=1
  1517. fi
  1518. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1519. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1520. # interfere with the next link command; also delete a directory that is
  1521. # left behind by Apple's compiler. We do this before executing the actions.
  1522. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1523. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1524. return $ac_retval
  1525. } # ac_fn_c_try_link
  1526. # ac_fn_c_try_cpp LINENO
  1527. # ----------------------
  1528. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1529. ac_fn_c_try_cpp ()
  1530. {
  1531. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1532. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1533. case "(($ac_try" in
  1534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1535. *) ac_try_echo=$ac_try;;
  1536. esac
  1537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1538. $as_echo "$ac_try_echo"; } >&5
  1539. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1540. ac_status=$?
  1541. if test -s conftest.err; then
  1542. grep -v '^ *+' conftest.err >conftest.er1
  1543. cat conftest.er1 >&5
  1544. mv -f conftest.er1 conftest.err
  1545. fi
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } >/dev/null && {
  1548. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1549. test ! -s conftest.err
  1550. }; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1558. return $ac_retval
  1559. } # ac_fn_c_try_cpp
  1560. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1561. # -------------------------------------------------------
  1562. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1563. # the include files in INCLUDES and setting the cache variable VAR
  1564. # accordingly.
  1565. ac_fn_c_check_header_mongrel ()
  1566. {
  1567. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1568. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1570. $as_echo_n "checking for $2... " >&6; }
  1571. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1572. $as_echo_n "(cached) " >&6
  1573. fi
  1574. eval ac_res=\$$3
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1576. $as_echo "$ac_res" >&6; }
  1577. else
  1578. # Is the header compilable?
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1580. $as_echo_n "checking $2 usability... " >&6; }
  1581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1582. /* end confdefs.h. */
  1583. $4
  1584. #include <$2>
  1585. _ACEOF
  1586. if ac_fn_c_try_compile "$LINENO"; then :
  1587. ac_header_compiler=yes
  1588. else
  1589. ac_header_compiler=no
  1590. fi
  1591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1593. $as_echo "$ac_header_compiler" >&6; }
  1594. # Is the header present?
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1596. $as_echo_n "checking $2 presence... " >&6; }
  1597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1598. /* end confdefs.h. */
  1599. #include <$2>
  1600. _ACEOF
  1601. if ac_fn_c_try_cpp "$LINENO"; then :
  1602. ac_header_preproc=yes
  1603. else
  1604. ac_header_preproc=no
  1605. fi
  1606. rm -f conftest.err conftest.$ac_ext
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1608. $as_echo "$ac_header_preproc" >&6; }
  1609. # So? What about this header?
  1610. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1611. yes:no: )
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1613. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1615. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1616. ;;
  1617. no:yes:* )
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1619. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1621. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1623. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1625. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1627. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1628. ( cat <<\_ASBOX
  1629. ## ---------------------------------- ##
  1630. ## Report this to bug-libtool@gnu.org ##
  1631. ## ---------------------------------- ##
  1632. _ASBOX
  1633. ) | sed "s/^/$as_me: WARNING: /" >&2
  1634. ;;
  1635. esac
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1639. $as_echo_n "(cached) " >&6
  1640. else
  1641. eval "$3=\$ac_header_compiler"
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. fi
  1647. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1648. } # ac_fn_c_check_header_mongrel
  1649. # ac_fn_c_try_run LINENO
  1650. # ----------------------
  1651. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1652. # that executables *can* be run.
  1653. ac_fn_c_try_run ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. if { { ac_try="$ac_link"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_link") 2>&5
  1664. ac_status=$?
  1665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1666. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1667. { { case "(($ac_try" in
  1668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1669. *) ac_try_echo=$ac_try;;
  1670. esac
  1671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1672. $as_echo "$ac_try_echo"; } >&5
  1673. (eval "$ac_try") 2>&5
  1674. ac_status=$?
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; }; }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: program exited with status $ac_status" >&5
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=$ac_status
  1683. fi
  1684. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1685. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1686. return $ac_retval
  1687. } # ac_fn_c_try_run
  1688. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1689. # -------------------------------------------------------
  1690. # Tests whether HEADER exists and can be compiled using the include files in
  1691. # INCLUDES, setting the cache variable VAR accordingly.
  1692. ac_fn_c_check_header_compile ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end confdefs.h. */
  1702. $4
  1703. #include <$2>
  1704. _ACEOF
  1705. if ac_fn_c_try_compile "$LINENO"; then :
  1706. eval "$3=yes"
  1707. else
  1708. eval "$3=no"
  1709. fi
  1710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1711. fi
  1712. eval ac_res=\$$3
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1714. $as_echo "$ac_res" >&6; }
  1715. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1716. } # ac_fn_c_check_header_compile
  1717. # ac_fn_c_check_func LINENO FUNC VAR
  1718. # ----------------------------------
  1719. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1720. ac_fn_c_check_func ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1724. $as_echo_n "checking for $2... " >&6; }
  1725. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1726. $as_echo_n "(cached) " >&6
  1727. else
  1728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1729. /* end confdefs.h. */
  1730. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1731. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1732. #define $2 innocuous_$2
  1733. /* System header to define __stub macros and hopefully few prototypes,
  1734. which can conflict with char $2 (); below.
  1735. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1736. <limits.h> exists even on freestanding compilers. */
  1737. #ifdef __STDC__
  1738. # include <limits.h>
  1739. #else
  1740. # include <assert.h>
  1741. #endif
  1742. #undef $2
  1743. /* Override any GCC internal prototype to avoid an error.
  1744. Use char because int might match the return type of a GCC
  1745. builtin and then its argument prototype would still apply. */
  1746. #ifdef __cplusplus
  1747. extern "C"
  1748. #endif
  1749. char $2 ();
  1750. /* The GNU C library defines this for functions which it implements
  1751. to always fail with ENOSYS. Some functions are actually named
  1752. something starting with __ and the normal name is an alias. */
  1753. #if defined __stub_$2 || defined __stub___$2
  1754. choke me
  1755. #endif
  1756. int
  1757. main ()
  1758. {
  1759. return $2 ();
  1760. ;
  1761. return 0;
  1762. }
  1763. _ACEOF
  1764. if ac_fn_c_try_link "$LINENO"; then :
  1765. eval "$3=yes"
  1766. else
  1767. eval "$3=no"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext \
  1770. conftest$ac_exeext conftest.$ac_ext
  1771. fi
  1772. eval ac_res=\$$3
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1774. $as_echo "$ac_res" >&6; }
  1775. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1776. } # ac_fn_c_check_func
  1777. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1778. # -------------------------------------------
  1779. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1780. # variable VAR accordingly.
  1781. ac_fn_c_check_type ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1785. $as_echo_n "checking for $2... " >&6; }
  1786. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. eval "$3=no"
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. $4
  1793. int
  1794. main ()
  1795. {
  1796. if (sizeof ($2))
  1797. return 0;
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_compile "$LINENO"; then :
  1803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. if (sizeof (($2)))
  1810. return 0;
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_compile "$LINENO"; then :
  1816. else
  1817. eval "$3=yes"
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1827. } # ac_fn_c_check_type
  1828. cat >config.log <<_ACEOF
  1829. This file contains any messages produced by compilers while
  1830. running configure, to aid debugging if configure makes a mistake.
  1831. It was created by libltdl $as_me 1.2, which was
  1832. generated by GNU Autoconf 2.64. Invocation command line was
  1833. $ $0 $@
  1834. _ACEOF
  1835. exec 5>>config.log
  1836. {
  1837. cat <<_ASUNAME
  1838. ## --------- ##
  1839. ## Platform. ##
  1840. ## --------- ##
  1841. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1842. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1843. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1844. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1845. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1846. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1847. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1848. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1849. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1850. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1851. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1852. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1853. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1854. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1855. _ASUNAME
  1856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1857. for as_dir in $PATH
  1858. do
  1859. IFS=$as_save_IFS
  1860. test -z "$as_dir" && as_dir=.
  1861. $as_echo "PATH: $as_dir"
  1862. done
  1863. IFS=$as_save_IFS
  1864. } >&5
  1865. cat >&5 <<_ACEOF
  1866. ## ----------- ##
  1867. ## Core tests. ##
  1868. ## ----------- ##
  1869. _ACEOF
  1870. # Keep a trace of the command line.
  1871. # Strip out --no-create and --no-recursion so they do not pile up.
  1872. # Strip out --silent because we don't want to record it for future runs.
  1873. # Also quote any args containing shell meta-characters.
  1874. # Make two passes to allow for proper duplicate-argument suppression.
  1875. ac_configure_args=
  1876. ac_configure_args0=
  1877. ac_configure_args1=
  1878. ac_must_keep_next=false
  1879. for ac_pass in 1 2
  1880. do
  1881. for ac_arg
  1882. do
  1883. case $ac_arg in
  1884. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1885. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1886. | -silent | --silent | --silen | --sile | --sil)
  1887. continue ;;
  1888. *\'*)
  1889. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1890. esac
  1891. case $ac_pass in
  1892. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1893. 2)
  1894. as_fn_append ac_configure_args1 " '$ac_arg'"
  1895. if test $ac_must_keep_next = true; then
  1896. ac_must_keep_next=false # Got value, back to normal.
  1897. else
  1898. case $ac_arg in
  1899. *=* | --config-cache | -C | -disable-* | --disable-* \
  1900. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1901. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1902. | -with-* | --with-* | -without-* | --without-* | --x)
  1903. case "$ac_configure_args0 " in
  1904. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1905. esac
  1906. ;;
  1907. -* ) ac_must_keep_next=true ;;
  1908. esac
  1909. fi
  1910. as_fn_append ac_configure_args " '$ac_arg'"
  1911. ;;
  1912. esac
  1913. done
  1914. done
  1915. { ac_configure_args0=; unset ac_configure_args0;}
  1916. { ac_configure_args1=; unset ac_configure_args1;}
  1917. # When interrupted or exit'd, cleanup temporary files, and complete
  1918. # config.log. We remove comments because anyway the quotes in there
  1919. # would cause problems or look ugly.
  1920. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1921. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1922. trap 'exit_status=$?
  1923. # Save into config.log some information that might help in debugging.
  1924. {
  1925. echo
  1926. cat <<\_ASBOX
  1927. ## ---------------- ##
  1928. ## Cache variables. ##
  1929. ## ---------------- ##
  1930. _ASBOX
  1931. echo
  1932. # The following way of writing the cache mishandles newlines in values,
  1933. (
  1934. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1935. eval ac_val=\$$ac_var
  1936. case $ac_val in #(
  1937. *${as_nl}*)
  1938. case $ac_var in #(
  1939. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1940. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1941. esac
  1942. case $ac_var in #(
  1943. _ | IFS | as_nl) ;; #(
  1944. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1945. *) { eval $ac_var=; unset $ac_var;} ;;
  1946. esac ;;
  1947. esac
  1948. done
  1949. (set) 2>&1 |
  1950. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1951. *${as_nl}ac_space=\ *)
  1952. sed -n \
  1953. "s/'\''/'\''\\\\'\'''\''/g;
  1954. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1955. ;; #(
  1956. *)
  1957. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1958. ;;
  1959. esac |
  1960. sort
  1961. )
  1962. echo
  1963. cat <<\_ASBOX
  1964. ## ----------------- ##
  1965. ## Output variables. ##
  1966. ## ----------------- ##
  1967. _ASBOX
  1968. echo
  1969. for ac_var in $ac_subst_vars
  1970. do
  1971. eval ac_val=\$$ac_var
  1972. case $ac_val in
  1973. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1974. esac
  1975. $as_echo "$ac_var='\''$ac_val'\''"
  1976. done | sort
  1977. echo
  1978. if test -n "$ac_subst_files"; then
  1979. cat <<\_ASBOX
  1980. ## ------------------- ##
  1981. ## File substitutions. ##
  1982. ## ------------------- ##
  1983. _ASBOX
  1984. echo
  1985. for ac_var in $ac_subst_files
  1986. do
  1987. eval ac_val=\$$ac_var
  1988. case $ac_val in
  1989. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1990. esac
  1991. $as_echo "$ac_var='\''$ac_val'\''"
  1992. done | sort
  1993. echo
  1994. fi
  1995. if test -s confdefs.h; then
  1996. cat <<\_ASBOX
  1997. ## ----------- ##
  1998. ## confdefs.h. ##
  1999. ## ----------- ##
  2000. _ASBOX
  2001. echo
  2002. cat confdefs.h
  2003. echo
  2004. fi
  2005. test "$ac_signal" != 0 &&
  2006. $as_echo "$as_me: caught signal $ac_signal"
  2007. $as_echo "$as_me: exit $exit_status"
  2008. } >&5
  2009. rm -f core *.core core.conftest.* &&
  2010. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2011. exit $exit_status
  2012. ' 0
  2013. for ac_signal in 1 2 13 15; do
  2014. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2015. done
  2016. ac_signal=0
  2017. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2018. rm -f -r conftest* confdefs.h
  2019. $as_echo "/* confdefs.h */" > confdefs.h
  2020. # Predefined preprocessor variables.
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_NAME "$PACKAGE_NAME"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_STRING "$PACKAGE_STRING"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define PACKAGE_URL "$PACKAGE_URL"
  2038. _ACEOF
  2039. # Let the site file select an alternate cache file if it wants to.
  2040. # Prefer an explicitly selected file to automatically selected ones.
  2041. ac_site_file1=NONE
  2042. ac_site_file2=NONE
  2043. if test -n "$CONFIG_SITE"; then
  2044. ac_site_file1=$CONFIG_SITE
  2045. elif test "x$prefix" != xNONE; then
  2046. ac_site_file1=$prefix/share/config.site
  2047. ac_site_file2=$prefix/etc/config.site
  2048. else
  2049. ac_site_file1=$ac_default_prefix/share/config.site
  2050. ac_site_file2=$ac_default_prefix/etc/config.site
  2051. fi
  2052. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2053. do
  2054. test "x$ac_site_file" = xNONE && continue
  2055. if test -r "$ac_site_file"; then
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2057. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2058. sed 's/^/| /' "$ac_site_file" >&5
  2059. . "$ac_site_file"
  2060. fi
  2061. done
  2062. if test -r "$cache_file"; then
  2063. # Some versions of bash will fail to source /dev/null (special
  2064. # files actually), so we avoid doing that.
  2065. if test -f "$cache_file"; then
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2067. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2068. case $cache_file in
  2069. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2070. *) . "./$cache_file";;
  2071. esac
  2072. fi
  2073. else
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2075. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2076. >$cache_file
  2077. fi
  2078. # Check that the precious variables saved in the cache have kept the same
  2079. # value.
  2080. ac_cache_corrupted=false
  2081. for ac_var in $ac_precious_vars; do
  2082. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2083. eval ac_new_set=\$ac_env_${ac_var}_set
  2084. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2085. eval ac_new_val=\$ac_env_${ac_var}_value
  2086. case $ac_old_set,$ac_new_set in
  2087. set,)
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2089. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2090. ac_cache_corrupted=: ;;
  2091. ,set)
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2093. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2094. ac_cache_corrupted=: ;;
  2095. ,);;
  2096. *)
  2097. if test "x$ac_old_val" != "x$ac_new_val"; then
  2098. # differences in whitespace do not lead to failure.
  2099. ac_old_val_w=`echo x $ac_old_val`
  2100. ac_new_val_w=`echo x $ac_new_val`
  2101. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2103. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2104. ac_cache_corrupted=:
  2105. else
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2107. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2108. eval $ac_var=\$ac_old_val
  2109. fi
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2111. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2113. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2114. fi;;
  2115. esac
  2116. # Pass precious variables to config.status.
  2117. if test "$ac_new_set" = set; then
  2118. case $ac_new_val in
  2119. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2120. *) ac_arg=$ac_var=$ac_new_val ;;
  2121. esac
  2122. case " $ac_configure_args " in
  2123. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2124. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2125. esac
  2126. fi
  2127. done
  2128. if $ac_cache_corrupted; then
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2132. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2133. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2134. fi
  2135. ## -------------------- ##
  2136. ## Main body of script. ##
  2137. ## -------------------- ##
  2138. ac_ext=c
  2139. ac_cpp='$CPP $CPPFLAGS'
  2140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2143. ## GCJ LOCAL: gcc tree uses maintainer mode.
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2145. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2146. # Check whether --enable-maintainer-mode was given.
  2147. if test "${enable_maintainer_mode+set}" = set; then :
  2148. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2149. else
  2150. USE_MAINTAINER_MODE=no
  2151. fi
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2153. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2154. if test $USE_MAINTAINER_MODE = yes; then
  2155. MAINTAINER_MODE_TRUE=
  2156. MAINTAINER_MODE_FALSE='#'
  2157. else
  2158. MAINTAINER_MODE_TRUE='#'
  2159. MAINTAINER_MODE_FALSE=
  2160. fi
  2161. MAINT=$MAINTAINER_MODE_TRUE
  2162. # Default to --enable-multilib
  2163. # Check whether --enable-multilib was given.
  2164. if test "${enable_multilib+set}" = set; then :
  2165. enableval=$enable_multilib; case "$enableval" in
  2166. yes) multilib=yes ;;
  2167. no) multilib=no ;;
  2168. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2169. esac
  2170. else
  2171. multilib=yes
  2172. fi
  2173. # We may get other options which we leave undocumented:
  2174. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2175. # See config-ml.in if you want the gory details.
  2176. if test "$srcdir" = "."; then
  2177. if test "$with_target_subdir" != "."; then
  2178. multi_basedir="$srcdir/$with_multisrctop../../.."
  2179. else
  2180. multi_basedir="$srcdir/$with_multisrctop../.."
  2181. fi
  2182. else
  2183. multi_basedir="$srcdir/../.."
  2184. fi
  2185. # Even if the default multilib is not a cross compilation,
  2186. # it may be that some of the other multilibs are.
  2187. if test $cross_compiling = no && test $multilib = yes \
  2188. && test "x${with_multisubdir}" != x ; then
  2189. cross_compiling=maybe
  2190. fi
  2191. ac_config_commands="$ac_config_commands default-1"
  2192. ## ------------------------------- ##
  2193. ## Libltdl specific configuration. ##
  2194. ## ------------------------------- ##
  2195. ac_aux_dir=
  2196. for ac_dir in . "$srcdir"/.; do
  2197. for ac_t in install-sh install.sh shtool; do
  2198. if test -f "$ac_dir/$ac_t"; then
  2199. ac_aux_dir=$ac_dir
  2200. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2201. break 2
  2202. fi
  2203. done
  2204. done
  2205. if test -z "$ac_aux_dir"; then
  2206. as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2207. fi
  2208. # These three variables are undocumented and unsupported,
  2209. # and are intended to be withdrawn in a future Autoconf release.
  2210. # They can cause serious problems if a builder's source tree is in a directory
  2211. # whose full name contains unusual characters.
  2212. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2213. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2214. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2215. if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
  2216. if test -f ${srcdir}/ltmain.sh; then
  2217. # if libltdl is libtoolized, it is assumed to be stand-alone and
  2218. # installed unless the command line overrides it (tested above)
  2219. enable_ltdl_install=yes
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The top-level configure must select either" >&5
  2222. $as_echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
  2224. $as_echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
  2225. as_fn_error "*** Maybe you want to --enable-ltdl-install?" "$LINENO" 5
  2226. fi
  2227. fi
  2228. ## ------------------------ ##
  2229. ## Automake Initialisation. ##
  2230. ## ------------------------ ##
  2231. am__api_version='1.11'
  2232. # Find a good install program. We prefer a C program (faster),
  2233. # so one script is as good as another. But avoid the broken or
  2234. # incompatible versions:
  2235. # SysV /etc/install, /usr/sbin/install
  2236. # SunOS /usr/etc/install
  2237. # IRIX /sbin/install
  2238. # AIX /bin/install
  2239. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2240. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2241. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2242. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2243. # OS/2's system install, which has a completely different semantic
  2244. # ./install, which can be erroneously created by make from ./install.sh.
  2245. # Reject install programs that cannot install multiple files.
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2247. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2248. if test -z "$INSTALL"; then
  2249. if test "${ac_cv_path_install+set}" = set; then :
  2250. $as_echo_n "(cached) " >&6
  2251. else
  2252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2253. for as_dir in $PATH
  2254. do
  2255. IFS=$as_save_IFS
  2256. test -z "$as_dir" && as_dir=.
  2257. # Account for people who put trailing slashes in PATH elements.
  2258. case $as_dir/ in #((
  2259. ./ | .// | /[cC]/* | \
  2260. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2261. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2262. /usr/ucb/* ) ;;
  2263. *)
  2264. # OSF1 and SCO ODT 3.0 have their own names for install.
  2265. # Don't use installbsd from OSF since it installs stuff as root
  2266. # by default.
  2267. for ac_prog in ginstall scoinst install; do
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2270. if test $ac_prog = install &&
  2271. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2272. # AIX install. It has an incompatible calling convention.
  2273. :
  2274. elif test $ac_prog = install &&
  2275. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2276. # program-specific install script used by HP pwplus--don't use.
  2277. :
  2278. else
  2279. rm -rf conftest.one conftest.two conftest.dir
  2280. echo one > conftest.one
  2281. echo two > conftest.two
  2282. mkdir conftest.dir
  2283. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2284. test -s conftest.one && test -s conftest.two &&
  2285. test -s conftest.dir/conftest.one &&
  2286. test -s conftest.dir/conftest.two
  2287. then
  2288. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2289. break 3
  2290. fi
  2291. fi
  2292. fi
  2293. done
  2294. done
  2295. ;;
  2296. esac
  2297. done
  2298. IFS=$as_save_IFS
  2299. rm -rf conftest.one conftest.two conftest.dir
  2300. fi
  2301. if test "${ac_cv_path_install+set}" = set; then
  2302. INSTALL=$ac_cv_path_install
  2303. else
  2304. # As a last resort, use the slow shell script. Don't cache a
  2305. # value for INSTALL within a source directory, because that will
  2306. # break other packages using the cache if that directory is
  2307. # removed, or if the value is a relative name.
  2308. INSTALL=$ac_install_sh
  2309. fi
  2310. fi
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2312. $as_echo "$INSTALL" >&6; }
  2313. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2314. # It thinks the first close brace ends the variable substitution.
  2315. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2316. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2317. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2319. $as_echo_n "checking whether build environment is sane... " >&6; }
  2320. # Just in case
  2321. sleep 1
  2322. echo timestamp > conftest.file
  2323. # Reject unsafe characters in $srcdir or the absolute working directory
  2324. # name. Accept space and tab only in the latter.
  2325. am_lf='
  2326. '
  2327. case `pwd` in
  2328. *[\\\"\#\$\&\'\`$am_lf]*)
  2329. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2330. esac
  2331. case $srcdir in
  2332. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2333. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2334. esac
  2335. # Do `set' in a subshell so we don't clobber the current shell's
  2336. # arguments. Must try -L first in case configure is actually a
  2337. # symlink; some systems play weird games with the mod time of symlinks
  2338. # (eg FreeBSD returns the mod time of the symlink's containing
  2339. # directory).
  2340. if (
  2341. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2342. if test "$*" = "X"; then
  2343. # -L didn't work.
  2344. set X `ls -t "$srcdir/configure" conftest.file`
  2345. fi
  2346. rm -f conftest.file
  2347. if test "$*" != "X $srcdir/configure conftest.file" \
  2348. && test "$*" != "X conftest.file $srcdir/configure"; then
  2349. # If neither matched, then we have a broken ls. This can happen
  2350. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2351. # broken ls alias from the environment. This has actually
  2352. # happened. Such a system could not be considered "sane".
  2353. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2354. alias in your environment" "$LINENO" 5
  2355. fi
  2356. test "$2" = conftest.file
  2357. )
  2358. then
  2359. # Ok.
  2360. :
  2361. else
  2362. as_fn_error "newly created file is older than distributed files!
  2363. Check your system clock" "$LINENO" 5
  2364. fi
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2366. $as_echo "yes" >&6; }
  2367. test "$program_prefix" != NONE &&
  2368. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2369. # Use a double $ so make ignores it.
  2370. test "$program_suffix" != NONE &&
  2371. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2372. # Double any \ or $.
  2373. # By default was `s,x,x', remove it if useless.
  2374. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2375. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2376. # expand $ac_aux_dir to an absolute path
  2377. am_aux_dir=`cd $ac_aux_dir && pwd`
  2378. if test x"${MISSING+set}" != xset; then
  2379. case $am_aux_dir in
  2380. *\ * | *\ *)
  2381. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2382. *)
  2383. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2384. esac
  2385. fi
  2386. # Use eval to expand $SHELL
  2387. if eval "$MISSING --run true"; then
  2388. am_missing_run="$MISSING --run "
  2389. else
  2390. am_missing_run=
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2392. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2393. fi
  2394. if test x"${install_sh}" != xset; then
  2395. case $am_aux_dir in
  2396. *\ * | *\ *)
  2397. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2398. *)
  2399. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2400. esac
  2401. fi
  2402. # Installed binaries are usually stripped using `strip' when the user
  2403. # run `make install-strip'. However `strip' might not be the right
  2404. # tool to use in cross-compilation environments, therefore Automake
  2405. # will honor the `STRIP' environment variable to overrule this program.
  2406. if test "$cross_compiling" != no; then
  2407. if test -n "$ac_tool_prefix"; then
  2408. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2409. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2411. $as_echo_n "checking for $ac_word... " >&6; }
  2412. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2413. $as_echo_n "(cached) " >&6
  2414. else
  2415. if test -n "$STRIP"; then
  2416. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2417. else
  2418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2419. for as_dir in $PATH
  2420. do
  2421. IFS=$as_save_IFS
  2422. test -z "$as_dir" && as_dir=.
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2425. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2427. break 2
  2428. fi
  2429. done
  2430. done
  2431. IFS=$as_save_IFS
  2432. fi
  2433. fi
  2434. STRIP=$ac_cv_prog_STRIP
  2435. if test -n "$STRIP"; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2437. $as_echo "$STRIP" >&6; }
  2438. else
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2440. $as_echo "no" >&6; }
  2441. fi
  2442. fi
  2443. if test -z "$ac_cv_prog_STRIP"; then
  2444. ac_ct_STRIP=$STRIP
  2445. # Extract the first word of "strip", so it can be a program name with args.
  2446. set dummy strip; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$ac_ct_STRIP"; then
  2453. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2462. ac_cv_prog_ac_ct_STRIP="strip"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2472. if test -n "$ac_ct_STRIP"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2474. $as_echo "$ac_ct_STRIP" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. if test "x$ac_ct_STRIP" = x; then
  2480. STRIP=":"
  2481. else
  2482. case $cross_compiling:$ac_tool_warned in
  2483. yes:)
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2485. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2486. ac_tool_warned=yes ;;
  2487. esac
  2488. STRIP=$ac_ct_STRIP
  2489. fi
  2490. else
  2491. STRIP="$ac_cv_prog_STRIP"
  2492. fi
  2493. fi
  2494. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2496. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2497. if test -z "$MKDIR_P"; then
  2498. if test "${ac_cv_path_mkdir+set}" = set; then :
  2499. $as_echo_n "(cached) " >&6
  2500. else
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. for ac_prog in mkdir gmkdir; do
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2509. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2510. 'mkdir (GNU coreutils) '* | \
  2511. 'mkdir (coreutils) '* | \
  2512. 'mkdir (fileutils) '4.1*)
  2513. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2514. break 3;;
  2515. esac
  2516. done
  2517. done
  2518. done
  2519. IFS=$as_save_IFS
  2520. fi
  2521. if test "${ac_cv_path_mkdir+set}" = set; then
  2522. MKDIR_P="$ac_cv_path_mkdir -p"
  2523. else
  2524. # As a last resort, use the slow shell script. Don't cache a
  2525. # value for MKDIR_P within a source directory, because that will
  2526. # break other packages using the cache if that directory is
  2527. # removed, or if the value is a relative name.
  2528. test -d ./--version && rmdir ./--version
  2529. MKDIR_P="$ac_install_sh -d"
  2530. fi
  2531. fi
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2533. $as_echo "$MKDIR_P" >&6; }
  2534. mkdir_p="$MKDIR_P"
  2535. case $mkdir_p in
  2536. [\\/$]* | ?:[\\/]*) ;;
  2537. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2538. esac
  2539. for ac_prog in gawk mawk nawk awk
  2540. do
  2541. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2542. set dummy $ac_prog; ac_word=$2
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2544. $as_echo_n "checking for $ac_word... " >&6; }
  2545. if test "${ac_cv_prog_AWK+set}" = set; then :
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. if test -n "$AWK"; then
  2549. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2550. else
  2551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2552. for as_dir in $PATH
  2553. do
  2554. IFS=$as_save_IFS
  2555. test -z "$as_dir" && as_dir=.
  2556. for ac_exec_ext in '' $ac_executable_extensions; do
  2557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2558. ac_cv_prog_AWK="$ac_prog"
  2559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2560. break 2
  2561. fi
  2562. done
  2563. done
  2564. IFS=$as_save_IFS
  2565. fi
  2566. fi
  2567. AWK=$ac_cv_prog_AWK
  2568. if test -n "$AWK"; then
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2570. $as_echo "$AWK" >&6; }
  2571. else
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2573. $as_echo "no" >&6; }
  2574. fi
  2575. test -n "$AWK" && break
  2576. done
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2578. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2579. set x ${MAKE-make}
  2580. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2581. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2582. $as_echo_n "(cached) " >&6
  2583. else
  2584. cat >conftest.make <<\_ACEOF
  2585. SHELL = /bin/sh
  2586. all:
  2587. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2588. _ACEOF
  2589. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2590. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2591. *@@@%%%=?*=@@@%%%*)
  2592. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2593. *)
  2594. eval ac_cv_prog_make_${ac_make}_set=no;;
  2595. esac
  2596. rm -f conftest.make
  2597. fi
  2598. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2600. $as_echo "yes" >&6; }
  2601. SET_MAKE=
  2602. else
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2604. $as_echo "no" >&6; }
  2605. SET_MAKE="MAKE=${MAKE-make}"
  2606. fi
  2607. rm -rf .tst 2>/dev/null
  2608. mkdir .tst 2>/dev/null
  2609. if test -d .tst; then
  2610. am__leading_dot=.
  2611. else
  2612. am__leading_dot=_
  2613. fi
  2614. rmdir .tst 2>/dev/null
  2615. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2616. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2617. # is not polluted with repeated "-I."
  2618. am__isrc=' -I$(srcdir)'
  2619. # test to see if srcdir already configured
  2620. if test -f $srcdir/config.status; then
  2621. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2622. fi
  2623. fi
  2624. # test whether we have cygpath
  2625. if test -z "$CYGPATH_W"; then
  2626. if (cygpath --version) >/dev/null 2>/dev/null; then
  2627. CYGPATH_W='cygpath -w'
  2628. else
  2629. CYGPATH_W=echo
  2630. fi
  2631. fi
  2632. # Define the identity of the package.
  2633. PACKAGE=libltdl
  2634. VERSION=1.2
  2635. # Some tools Automake needs.
  2636. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2637. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2638. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2639. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2640. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2641. # We need awk for the "check" target. The system "awk" is bad on
  2642. # some platforms.
  2643. # Always define AMTAR for backward compatibility.
  2644. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2645. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2646. ac_config_headers="$ac_config_headers config.h:config-h.in"
  2647. ## ------------------ ##
  2648. ## C compiler checks. ##
  2649. ## ------------------ ##
  2650. ac_ext=c
  2651. ac_cpp='$CPP $CPPFLAGS'
  2652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2655. if test -n "$ac_tool_prefix"; then
  2656. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2657. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2659. $as_echo_n "checking for $ac_word... " >&6; }
  2660. if test "${ac_cv_prog_CC+set}" = set; then :
  2661. $as_echo_n "(cached) " >&6
  2662. else
  2663. if test -n "$CC"; then
  2664. ac_cv_prog_CC="$CC" # Let the user override the test.
  2665. else
  2666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2667. for as_dir in $PATH
  2668. do
  2669. IFS=$as_save_IFS
  2670. test -z "$as_dir" && as_dir=.
  2671. for ac_exec_ext in '' $ac_executable_extensions; do
  2672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2673. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2675. break 2
  2676. fi
  2677. done
  2678. done
  2679. IFS=$as_save_IFS
  2680. fi
  2681. fi
  2682. CC=$ac_cv_prog_CC
  2683. if test -n "$CC"; then
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2685. $as_echo "$CC" >&6; }
  2686. else
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2688. $as_echo "no" >&6; }
  2689. fi
  2690. fi
  2691. if test -z "$ac_cv_prog_CC"; then
  2692. ac_ct_CC=$CC
  2693. # Extract the first word of "gcc", so it can be a program name with args.
  2694. set dummy gcc; ac_word=$2
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. if test -n "$ac_ct_CC"; then
  2701. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2702. else
  2703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2704. for as_dir in $PATH
  2705. do
  2706. IFS=$as_save_IFS
  2707. test -z "$as_dir" && as_dir=.
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2710. ac_cv_prog_ac_ct_CC="gcc"
  2711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2712. break 2
  2713. fi
  2714. done
  2715. done
  2716. IFS=$as_save_IFS
  2717. fi
  2718. fi
  2719. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2720. if test -n "$ac_ct_CC"; then
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2722. $as_echo "$ac_ct_CC" >&6; }
  2723. else
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2725. $as_echo "no" >&6; }
  2726. fi
  2727. if test "x$ac_ct_CC" = x; then
  2728. CC=""
  2729. else
  2730. case $cross_compiling:$ac_tool_warned in
  2731. yes:)
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2734. ac_tool_warned=yes ;;
  2735. esac
  2736. CC=$ac_ct_CC
  2737. fi
  2738. else
  2739. CC="$ac_cv_prog_CC"
  2740. fi
  2741. if test -z "$CC"; then
  2742. if test -n "$ac_tool_prefix"; then
  2743. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2744. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2746. $as_echo_n "checking for $ac_word... " >&6; }
  2747. if test "${ac_cv_prog_CC+set}" = set; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. if test -n "$CC"; then
  2751. ac_cv_prog_CC="$CC" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2760. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. fi
  2768. fi
  2769. CC=$ac_cv_prog_CC
  2770. if test -n "$CC"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2772. $as_echo "$CC" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. fi
  2778. fi
  2779. if test -z "$CC"; then
  2780. # Extract the first word of "cc", so it can be a program name with args.
  2781. set dummy cc; ac_word=$2
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2783. $as_echo_n "checking for $ac_word... " >&6; }
  2784. if test "${ac_cv_prog_CC+set}" = set; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. if test -n "$CC"; then
  2788. ac_cv_prog_CC="$CC" # Let the user override the test.
  2789. else
  2790. ac_prog_rejected=no
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2798. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2799. ac_prog_rejected=yes
  2800. continue
  2801. fi
  2802. ac_cv_prog_CC="cc"
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2804. break 2
  2805. fi
  2806. done
  2807. done
  2808. IFS=$as_save_IFS
  2809. if test $ac_prog_rejected = yes; then
  2810. # We found a bogon in the path, so make sure we never use it.
  2811. set dummy $ac_cv_prog_CC
  2812. shift
  2813. if test $# != 0; then
  2814. # We chose a different compiler from the bogus one.
  2815. # However, it has the same basename, so the bogon will be chosen
  2816. # first if we set CC to just the basename; use the full file name.
  2817. shift
  2818. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2819. fi
  2820. fi
  2821. fi
  2822. fi
  2823. CC=$ac_cv_prog_CC
  2824. if test -n "$CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2826. $as_echo "$CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. fi
  2832. if test -z "$CC"; then
  2833. if test -n "$ac_tool_prefix"; then
  2834. for ac_prog in cl.exe
  2835. do
  2836. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2837. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2839. $as_echo_n "checking for $ac_word... " >&6; }
  2840. if test "${ac_cv_prog_CC+set}" = set; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. if test -n "$CC"; then
  2844. ac_cv_prog_CC="$CC" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2853. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. IFS=$as_save_IFS
  2860. fi
  2861. fi
  2862. CC=$ac_cv_prog_CC
  2863. if test -n "$CC"; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2865. $as_echo "$CC" >&6; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2868. $as_echo "no" >&6; }
  2869. fi
  2870. test -n "$CC" && break
  2871. done
  2872. fi
  2873. if test -z "$CC"; then
  2874. ac_ct_CC=$CC
  2875. for ac_prog in cl.exe
  2876. do
  2877. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2878. set dummy $ac_prog; ac_word=$2
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2880. $as_echo_n "checking for $ac_word... " >&6; }
  2881. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. if test -n "$ac_ct_CC"; then
  2885. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2886. else
  2887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2888. for as_dir in $PATH
  2889. do
  2890. IFS=$as_save_IFS
  2891. test -z "$as_dir" && as_dir=.
  2892. for ac_exec_ext in '' $ac_executable_extensions; do
  2893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2894. ac_cv_prog_ac_ct_CC="$ac_prog"
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2896. break 2
  2897. fi
  2898. done
  2899. done
  2900. IFS=$as_save_IFS
  2901. fi
  2902. fi
  2903. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2904. if test -n "$ac_ct_CC"; then
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2906. $as_echo "$ac_ct_CC" >&6; }
  2907. else
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2909. $as_echo "no" >&6; }
  2910. fi
  2911. test -n "$ac_ct_CC" && break
  2912. done
  2913. if test "x$ac_ct_CC" = x; then
  2914. CC=""
  2915. else
  2916. case $cross_compiling:$ac_tool_warned in
  2917. yes:)
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2920. ac_tool_warned=yes ;;
  2921. esac
  2922. CC=$ac_ct_CC
  2923. fi
  2924. fi
  2925. fi
  2926. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2927. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2928. as_fn_error "no acceptable C compiler found in \$PATH
  2929. See \`config.log' for more details." "$LINENO" 5; }
  2930. # Provide some information about the compiler.
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2932. set X $ac_compile
  2933. ac_compiler=$2
  2934. for ac_option in --version -v -V -qversion; do
  2935. { { ac_try="$ac_compiler $ac_option >&5"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2941. $as_echo "$ac_try_echo"; } >&5
  2942. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2943. ac_status=$?
  2944. if test -s conftest.err; then
  2945. sed '10a\
  2946. ... rest of stderr output deleted ...
  2947. 10q' conftest.err >conftest.er1
  2948. cat conftest.er1 >&5
  2949. rm -f conftest.er1 conftest.err
  2950. fi
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2952. test $ac_status = 0; }
  2953. done
  2954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. ;
  2960. return 0;
  2961. }
  2962. _ACEOF
  2963. ac_clean_files_save=$ac_clean_files
  2964. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2965. # Try to create an executable without -o first, disregard a.out.
  2966. # It will help us diagnose broken compilers, and finding out an intuition
  2967. # of exeext.
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2969. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2970. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2971. # The possible output files:
  2972. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2973. ac_rmfiles=
  2974. for ac_file in $ac_files
  2975. do
  2976. case $ac_file in
  2977. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2978. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2979. esac
  2980. done
  2981. rm -f $ac_rmfiles
  2982. if { { ac_try="$ac_link_default"
  2983. case "(($ac_try" in
  2984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2985. *) ac_try_echo=$ac_try;;
  2986. esac
  2987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2988. $as_echo "$ac_try_echo"; } >&5
  2989. (eval "$ac_link_default") 2>&5
  2990. ac_status=$?
  2991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2992. test $ac_status = 0; }; then :
  2993. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2994. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2995. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2996. # so that the user can short-circuit this test for compilers unknown to
  2997. # Autoconf.
  2998. for ac_file in $ac_files ''
  2999. do
  3000. test -f "$ac_file" || continue
  3001. case $ac_file in
  3002. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3003. ;;
  3004. [ab].out )
  3005. # We found the default executable, but exeext='' is most
  3006. # certainly right.
  3007. break;;
  3008. *.* )
  3009. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3010. then :; else
  3011. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3012. fi
  3013. # We set ac_cv_exeext here because the later test for it is not
  3014. # safe: cross compilers may not add the suffix if given an `-o'
  3015. # argument, so we may need to know it at that point already.
  3016. # Even if this section looks crufty: it has the advantage of
  3017. # actually working.
  3018. break;;
  3019. * )
  3020. break;;
  3021. esac
  3022. done
  3023. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3024. else
  3025. ac_file=''
  3026. fi
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3028. $as_echo "$ac_file" >&6; }
  3029. if test -z "$ac_file"; then :
  3030. $as_echo "$as_me: failed program was:" >&5
  3031. sed 's/^/| /' conftest.$ac_ext >&5
  3032. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3033. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3034. { as_fn_set_status 77
  3035. as_fn_error "C compiler cannot create executables
  3036. See \`config.log' for more details." "$LINENO" 5; }; }
  3037. fi
  3038. ac_exeext=$ac_cv_exeext
  3039. # Check that the compiler produces executables we can run. If not, either
  3040. # the compiler is broken, or we cross compile.
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3042. $as_echo_n "checking whether the C compiler works... " >&6; }
  3043. # If not cross compiling, check that we can run a simple program.
  3044. if test "$cross_compiling" != yes; then
  3045. if { ac_try='./$ac_file'
  3046. { { case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_try") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }; }; then
  3056. cross_compiling=no
  3057. else
  3058. if test "$cross_compiling" = maybe; then
  3059. cross_compiling=yes
  3060. else
  3061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error "cannot run C compiled programs.
  3064. If you meant to cross compile, use \`--host'.
  3065. See \`config.log' for more details." "$LINENO" 5; }
  3066. fi
  3067. fi
  3068. fi
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3070. $as_echo "yes" >&6; }
  3071. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3072. ac_clean_files=$ac_clean_files_save
  3073. # Check that the compiler produces executables we can run. If not, either
  3074. # the compiler is broken, or we cross compile.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3076. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3078. $as_echo "$cross_compiling" >&6; }
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3080. $as_echo_n "checking for suffix of executables... " >&6; }
  3081. if { { ac_try="$ac_link"
  3082. case "(($ac_try" in
  3083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3084. *) ac_try_echo=$ac_try;;
  3085. esac
  3086. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3087. $as_echo "$ac_try_echo"; } >&5
  3088. (eval "$ac_link") 2>&5
  3089. ac_status=$?
  3090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3091. test $ac_status = 0; }; then :
  3092. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3093. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3094. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3095. # `rm'.
  3096. for ac_file in conftest.exe conftest conftest.*; do
  3097. test -f "$ac_file" || continue
  3098. case $ac_file in
  3099. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3100. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3101. break;;
  3102. * ) break;;
  3103. esac
  3104. done
  3105. else
  3106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3108. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3109. See \`config.log' for more details." "$LINENO" 5; }
  3110. fi
  3111. rm -f conftest$ac_cv_exeext
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3113. $as_echo "$ac_cv_exeext" >&6; }
  3114. rm -f conftest.$ac_ext
  3115. EXEEXT=$ac_cv_exeext
  3116. ac_exeext=$EXEEXT
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3118. $as_echo_n "checking for suffix of object files... " >&6; }
  3119. if test "${ac_cv_objext+set}" = set; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end confdefs.h. */
  3124. int
  3125. main ()
  3126. {
  3127. ;
  3128. return 0;
  3129. }
  3130. _ACEOF
  3131. rm -f conftest.o conftest.obj
  3132. if { { ac_try="$ac_compile"
  3133. case "(($ac_try" in
  3134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135. *) ac_try_echo=$ac_try;;
  3136. esac
  3137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3138. $as_echo "$ac_try_echo"; } >&5
  3139. (eval "$ac_compile") 2>&5
  3140. ac_status=$?
  3141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3142. test $ac_status = 0; }; then :
  3143. for ac_file in conftest.o conftest.obj conftest.*; do
  3144. test -f "$ac_file" || continue;
  3145. case $ac_file in
  3146. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3147. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3148. break;;
  3149. esac
  3150. done
  3151. else
  3152. $as_echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3156. as_fn_error "cannot compute suffix of object files: cannot compile
  3157. See \`config.log' for more details." "$LINENO" 5; }
  3158. fi
  3159. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3160. fi
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3162. $as_echo "$ac_cv_objext" >&6; }
  3163. OBJEXT=$ac_cv_objext
  3164. ac_objext=$OBJEXT
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3166. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3167. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3168. $as_echo_n "(cached) " >&6
  3169. else
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. int
  3173. main ()
  3174. {
  3175. #ifndef __GNUC__
  3176. choke me
  3177. #endif
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. if ac_fn_c_try_compile "$LINENO"; then :
  3183. ac_compiler_gnu=yes
  3184. else
  3185. ac_compiler_gnu=no
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3188. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3191. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3192. if test $ac_compiler_gnu = yes; then
  3193. GCC=yes
  3194. else
  3195. GCC=
  3196. fi
  3197. ac_test_CFLAGS=${CFLAGS+set}
  3198. ac_save_CFLAGS=$CFLAGS
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3200. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3201. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. ac_save_c_werror_flag=$ac_c_werror_flag
  3205. ac_c_werror_flag=yes
  3206. ac_cv_prog_cc_g=no
  3207. CFLAGS="-g"
  3208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3209. /* end confdefs.h. */
  3210. int
  3211. main ()
  3212. {
  3213. ;
  3214. return 0;
  3215. }
  3216. _ACEOF
  3217. if ac_fn_c_try_compile "$LINENO"; then :
  3218. ac_cv_prog_cc_g=yes
  3219. else
  3220. CFLAGS=""
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. ;
  3227. return 0;
  3228. }
  3229. _ACEOF
  3230. if ac_fn_c_try_compile "$LINENO"; then :
  3231. else
  3232. ac_c_werror_flag=$ac_save_c_werror_flag
  3233. CFLAGS="-g"
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. int
  3237. main ()
  3238. {
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. if ac_fn_c_try_compile "$LINENO"; then :
  3244. ac_cv_prog_cc_g=yes
  3245. fi
  3246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. fi
  3250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. ac_c_werror_flag=$ac_save_c_werror_flag
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3254. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3255. if test "$ac_test_CFLAGS" = set; then
  3256. CFLAGS=$ac_save_CFLAGS
  3257. elif test $ac_cv_prog_cc_g = yes; then
  3258. if test "$GCC" = yes; then
  3259. CFLAGS="-g -O2"
  3260. else
  3261. CFLAGS="-g"
  3262. fi
  3263. else
  3264. if test "$GCC" = yes; then
  3265. CFLAGS="-O2"
  3266. else
  3267. CFLAGS=
  3268. fi
  3269. fi
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3271. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3272. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. ac_cv_prog_cc_c89=no
  3276. ac_save_CC=$CC
  3277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end confdefs.h. */
  3279. #include <stdarg.h>
  3280. #include <stdio.h>
  3281. #include <sys/types.h>
  3282. #include <sys/stat.h>
  3283. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3284. struct buf { int x; };
  3285. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3286. static char *e (p, i)
  3287. char **p;
  3288. int i;
  3289. {
  3290. return p[i];
  3291. }
  3292. static char *f (char * (*g) (char **, int), char **p, ...)
  3293. {
  3294. char *s;
  3295. va_list v;
  3296. va_start (v,p);
  3297. s = g (p, va_arg (v,int));
  3298. va_end (v);
  3299. return s;
  3300. }
  3301. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3302. function prototypes and stuff, but not '\xHH' hex character constants.
  3303. These don't provoke an error unfortunately, instead are silently treated
  3304. as 'x'. The following induces an error, until -std is added to get
  3305. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3306. array size at least. It's necessary to write '\x00'==0 to get something
  3307. that's true only with -std. */
  3308. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3309. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3310. inside strings and character constants. */
  3311. #define FOO(x) 'x'
  3312. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3313. int test (int i, double x);
  3314. struct s1 {int (*f) (int a);};
  3315. struct s2 {int (*f) (double a);};
  3316. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3317. int argc;
  3318. char **argv;
  3319. int
  3320. main ()
  3321. {
  3322. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3323. ;
  3324. return 0;
  3325. }
  3326. _ACEOF
  3327. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3328. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3329. do
  3330. CC="$ac_save_CC $ac_arg"
  3331. if ac_fn_c_try_compile "$LINENO"; then :
  3332. ac_cv_prog_cc_c89=$ac_arg
  3333. fi
  3334. rm -f core conftest.err conftest.$ac_objext
  3335. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3336. done
  3337. rm -f conftest.$ac_ext
  3338. CC=$ac_save_CC
  3339. fi
  3340. # AC_CACHE_VAL
  3341. case "x$ac_cv_prog_cc_c89" in
  3342. x)
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3344. $as_echo "none needed" >&6; } ;;
  3345. xno)
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3347. $as_echo "unsupported" >&6; } ;;
  3348. *)
  3349. CC="$CC $ac_cv_prog_cc_c89"
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3351. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3352. esac
  3353. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3354. fi
  3355. ac_ext=c
  3356. ac_cpp='$CPP $CPPFLAGS'
  3357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3360. DEPDIR="${am__leading_dot}deps"
  3361. ac_config_commands="$ac_config_commands depfiles"
  3362. am_make=${MAKE-make}
  3363. cat > confinc << 'END'
  3364. am__doit:
  3365. @echo this is the am__doit target
  3366. .PHONY: am__doit
  3367. END
  3368. # If we don't find an include directive, just comment out the code.
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3370. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3371. am__include="#"
  3372. am__quote=
  3373. _am_result=none
  3374. # First try GNU make style include.
  3375. echo "include confinc" > confmf
  3376. # Ignore all kinds of additional output from `make'.
  3377. case `$am_make -s -f confmf 2> /dev/null` in #(
  3378. *the\ am__doit\ target*)
  3379. am__include=include
  3380. am__quote=
  3381. _am_result=GNU
  3382. ;;
  3383. esac
  3384. # Now try BSD make style include.
  3385. if test "$am__include" = "#"; then
  3386. echo '.include "confinc"' > confmf
  3387. case `$am_make -s -f confmf 2> /dev/null` in #(
  3388. *the\ am__doit\ target*)
  3389. am__include=.include
  3390. am__quote="\""
  3391. _am_result=BSD
  3392. ;;
  3393. esac
  3394. fi
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3396. $as_echo "$_am_result" >&6; }
  3397. rm -f confinc confmf
  3398. # Check whether --enable-dependency-tracking was given.
  3399. if test "${enable_dependency_tracking+set}" = set; then :
  3400. enableval=$enable_dependency_tracking;
  3401. fi
  3402. if test "x$enable_dependency_tracking" != xno; then
  3403. am_depcomp="$ac_aux_dir/depcomp"
  3404. AMDEPBACKSLASH='\'
  3405. fi
  3406. if test "x$enable_dependency_tracking" != xno; then
  3407. AMDEP_TRUE=
  3408. AMDEP_FALSE='#'
  3409. else
  3410. AMDEP_TRUE='#'
  3411. AMDEP_FALSE=
  3412. fi
  3413. depcc="$CC" am_compiler_list=
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3415. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3416. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3417. $as_echo_n "(cached) " >&6
  3418. else
  3419. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3420. # We make a subdir and do the tests there. Otherwise we can end up
  3421. # making bogus files that we don't know about and never remove. For
  3422. # instance it was reported that on HP-UX the gcc test will end up
  3423. # making a dummy file named `D' -- because `-MD' means `put the output
  3424. # in D'.
  3425. mkdir conftest.dir
  3426. # Copy depcomp to subdir because otherwise we won't find it if we're
  3427. # using a relative directory.
  3428. cp "$am_depcomp" conftest.dir
  3429. cd conftest.dir
  3430. # We will build objects and dependencies in a subdirectory because
  3431. # it helps to detect inapplicable dependency modes. For instance
  3432. # both Tru64's cc and ICC support -MD to output dependencies as a
  3433. # side effect of compilation, but ICC will put the dependencies in
  3434. # the current directory while Tru64 will put them in the object
  3435. # directory.
  3436. mkdir sub
  3437. am_cv_CC_dependencies_compiler_type=none
  3438. if test "$am_compiler_list" = ""; then
  3439. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3440. fi
  3441. am__universal=false
  3442. case " $depcc " in #(
  3443. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3444. esac
  3445. for depmode in $am_compiler_list; do
  3446. # Setup a source with many dependencies, because some compilers
  3447. # like to wrap large dependency lists on column 80 (with \), and
  3448. # we should not choose a depcomp mode which is confused by this.
  3449. #
  3450. # We need to recreate these files for each test, as the compiler may
  3451. # overwrite some of them when testing with obscure command lines.
  3452. # This happens at least with the AIX C compiler.
  3453. : > sub/conftest.c
  3454. for i in 1 2 3 4 5 6; do
  3455. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3456. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3457. # Solaris 8's {/usr,}/bin/sh.
  3458. touch sub/conftst$i.h
  3459. done
  3460. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3461. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3462. # mode. It turns out that the SunPro C++ compiler does not properly
  3463. # handle `-M -o', and we need to detect this. Also, some Intel
  3464. # versions had trouble with output in subdirs
  3465. am__obj=sub/conftest.${OBJEXT-o}
  3466. am__minus_obj="-o $am__obj"
  3467. case $depmode in
  3468. gcc)
  3469. # This depmode causes a compiler race in universal mode.
  3470. test "$am__universal" = false || continue
  3471. ;;
  3472. nosideeffect)
  3473. # after this tag, mechanisms are not by side-effect, so they'll
  3474. # only be used when explicitly requested
  3475. if test "x$enable_dependency_tracking" = xyes; then
  3476. continue
  3477. else
  3478. break
  3479. fi
  3480. ;;
  3481. msvisualcpp | msvcmsys)
  3482. # This compiler won't grok `-c -o', but also, the minuso test has
  3483. # not run yet. These depmodes are late enough in the game, and
  3484. # so weak that their functioning should not be impacted.
  3485. am__obj=conftest.${OBJEXT-o}
  3486. am__minus_obj=
  3487. ;;
  3488. none) break ;;
  3489. esac
  3490. if depmode=$depmode \
  3491. source=sub/conftest.c object=$am__obj \
  3492. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3493. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3494. >/dev/null 2>conftest.err &&
  3495. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3496. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3497. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3498. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3499. # icc doesn't choke on unknown options, it will just issue warnings
  3500. # or remarks (even with -Werror). So we grep stderr for any message
  3501. # that says an option was ignored or not supported.
  3502. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3503. # icc: Command line warning: ignoring option '-M'; no argument required
  3504. # The diagnosis changed in icc 8.0:
  3505. # icc: Command line remark: option '-MP' not supported
  3506. if (grep 'ignoring option' conftest.err ||
  3507. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3508. am_cv_CC_dependencies_compiler_type=$depmode
  3509. break
  3510. fi
  3511. fi
  3512. done
  3513. cd ..
  3514. rm -rf conftest.dir
  3515. else
  3516. am_cv_CC_dependencies_compiler_type=none
  3517. fi
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3520. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3521. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3522. if
  3523. test "x$enable_dependency_tracking" != xno \
  3524. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3525. am__fastdepCC_TRUE=
  3526. am__fastdepCC_FALSE='#'
  3527. else
  3528. am__fastdepCC_TRUE='#'
  3529. am__fastdepCC_FALSE=
  3530. fi
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  3532. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  3533. if test "${ac_cv_c_const+set}" = set; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3537. /* end confdefs.h. */
  3538. int
  3539. main ()
  3540. {
  3541. /* FIXME: Include the comments suggested by Paul. */
  3542. #ifndef __cplusplus
  3543. /* Ultrix mips cc rejects this. */
  3544. typedef int charset[2];
  3545. const charset cs;
  3546. /* SunOS 4.1.1 cc rejects this. */
  3547. char const *const *pcpcc;
  3548. char **ppc;
  3549. /* NEC SVR4.0.2 mips cc rejects this. */
  3550. struct point {int x, y;};
  3551. static struct point const zero = {0,0};
  3552. /* AIX XL C 1.02.0.0 rejects this.
  3553. It does not let you subtract one const X* pointer from another in
  3554. an arm of an if-expression whose if-part is not a constant
  3555. expression */
  3556. const char *g = "string";
  3557. pcpcc = &g + (g ? g-g : 0);
  3558. /* HPUX 7.0 cc rejects these. */
  3559. ++pcpcc;
  3560. ppc = (char**) pcpcc;
  3561. pcpcc = (char const *const *) ppc;
  3562. { /* SCO 3.2v4 cc rejects this. */
  3563. char *t;
  3564. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3565. *t++ = 0;
  3566. if (s) return 0;
  3567. }
  3568. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3569. int x[] = {25, 17};
  3570. const int *foo = &x[0];
  3571. ++foo;
  3572. }
  3573. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3574. typedef const int *iptr;
  3575. iptr p = 0;
  3576. ++p;
  3577. }
  3578. { /* AIX XL C 1.02.0.0 rejects this saying
  3579. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3580. struct s { int j; const int *ap[3]; };
  3581. struct s *b; b->j = 5;
  3582. }
  3583. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3584. const int foo = 10;
  3585. if (!foo) return 0;
  3586. }
  3587. return !cs[0] && !zero.x;
  3588. #endif
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. if ac_fn_c_try_compile "$LINENO"; then :
  3594. ac_cv_c_const=yes
  3595. else
  3596. ac_cv_c_const=no
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  3601. $as_echo "$ac_cv_c_const" >&6; }
  3602. if test $ac_cv_c_const = no; then
  3603. $as_echo "#define const /**/" >>confdefs.h
  3604. fi
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  3606. $as_echo_n "checking for inline... " >&6; }
  3607. if test "${ac_cv_c_inline+set}" = set; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. ac_cv_c_inline=no
  3611. for ac_kw in inline __inline__ __inline; do
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. #ifndef __cplusplus
  3615. typedef int foo_t;
  3616. static $ac_kw foo_t static_foo () {return 0; }
  3617. $ac_kw foo_t foo () {return 0; }
  3618. #endif
  3619. _ACEOF
  3620. if ac_fn_c_try_compile "$LINENO"; then :
  3621. ac_cv_c_inline=$ac_kw
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. test "$ac_cv_c_inline" != no && break
  3625. done
  3626. fi
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  3628. $as_echo "$ac_cv_c_inline" >&6; }
  3629. case $ac_cv_c_inline in
  3630. inline | yes) ;;
  3631. *)
  3632. case $ac_cv_c_inline in
  3633. no) ac_val=;;
  3634. *) ac_val=$ac_cv_c_inline;;
  3635. esac
  3636. cat >>confdefs.h <<_ACEOF
  3637. #ifndef __cplusplus
  3638. #define inline $ac_val
  3639. #endif
  3640. _ACEOF
  3641. ;;
  3642. esac
  3643. ## ----------------------- ##
  3644. ## Libtool initialisation. ##
  3645. ## ----------------------- ##
  3646. # Check whether --enable-shared was given.
  3647. if test "${enable_shared+set}" = set; then :
  3648. enableval=$enable_shared; p=${PACKAGE-default}
  3649. case $enableval in
  3650. yes) enable_shared=yes ;;
  3651. no) enable_shared=no ;;
  3652. *)
  3653. enable_shared=no
  3654. # Look at the argument we got. We use all the common list separators.
  3655. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3656. for pkg in $enableval; do
  3657. IFS="$lt_save_ifs"
  3658. if test "X$pkg" = "X$p"; then
  3659. enable_shared=yes
  3660. fi
  3661. done
  3662. IFS="$lt_save_ifs"
  3663. ;;
  3664. esac
  3665. else
  3666. enable_shared=yes
  3667. fi
  3668. # Check whether --enable-static was given.
  3669. if test "${enable_static+set}" = set; then :
  3670. enableval=$enable_static; p=${PACKAGE-default}
  3671. case $enableval in
  3672. yes) enable_static=yes ;;
  3673. no) enable_static=no ;;
  3674. *)
  3675. enable_static=no
  3676. # Look at the argument we got. We use all the common list separators.
  3677. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3678. for pkg in $enableval; do
  3679. IFS="$lt_save_ifs"
  3680. if test "X$pkg" = "X$p"; then
  3681. enable_static=yes
  3682. fi
  3683. done
  3684. IFS="$lt_save_ifs"
  3685. ;;
  3686. esac
  3687. else
  3688. enable_static=yes
  3689. fi
  3690. # Check whether --enable-fast-install was given.
  3691. if test "${enable_fast_install+set}" = set; then :
  3692. enableval=$enable_fast_install; p=${PACKAGE-default}
  3693. case $enableval in
  3694. yes) enable_fast_install=yes ;;
  3695. no) enable_fast_install=no ;;
  3696. *)
  3697. enable_fast_install=no
  3698. # Look at the argument we got. We use all the common list separators.
  3699. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3700. for pkg in $enableval; do
  3701. IFS="$lt_save_ifs"
  3702. if test "X$pkg" = "X$p"; then
  3703. enable_fast_install=yes
  3704. fi
  3705. done
  3706. IFS="$lt_save_ifs"
  3707. ;;
  3708. esac
  3709. else
  3710. enable_fast_install=yes
  3711. fi
  3712. # Make sure we can run config.sub.
  3713. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3714. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3716. $as_echo_n "checking build system type... " >&6; }
  3717. if test "${ac_cv_build+set}" = set; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. ac_build_alias=$build_alias
  3721. test "x$ac_build_alias" = x &&
  3722. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3723. test "x$ac_build_alias" = x &&
  3724. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3725. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3726. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3727. fi
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3729. $as_echo "$ac_cv_build" >&6; }
  3730. case $ac_cv_build in
  3731. *-*-*) ;;
  3732. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3733. esac
  3734. build=$ac_cv_build
  3735. ac_save_IFS=$IFS; IFS='-'
  3736. set x $ac_cv_build
  3737. shift
  3738. build_cpu=$1
  3739. build_vendor=$2
  3740. shift; shift
  3741. # Remember, the first character of IFS is used to create $*,
  3742. # except with old shells:
  3743. build_os=$*
  3744. IFS=$ac_save_IFS
  3745. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3747. $as_echo_n "checking host system type... " >&6; }
  3748. if test "${ac_cv_host+set}" = set; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test "x$host_alias" = x; then
  3752. ac_cv_host=$ac_cv_build
  3753. else
  3754. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3755. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3756. fi
  3757. fi
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3759. $as_echo "$ac_cv_host" >&6; }
  3760. case $ac_cv_host in
  3761. *-*-*) ;;
  3762. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3763. esac
  3764. host=$ac_cv_host
  3765. ac_save_IFS=$IFS; IFS='-'
  3766. set x $ac_cv_host
  3767. shift
  3768. host_cpu=$1
  3769. host_vendor=$2
  3770. shift; shift
  3771. # Remember, the first character of IFS is used to create $*,
  3772. # except with old shells:
  3773. host_os=$*
  3774. IFS=$ac_save_IFS
  3775. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3777. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3778. if test "${lt_cv_path_SED+set}" = set; then :
  3779. $as_echo_n "(cached) " >&6
  3780. else
  3781. # Loop through the user's path and test for sed and gsed.
  3782. # Then use that list of sed's as ones to test for truncation.
  3783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3784. for as_dir in $PATH
  3785. do
  3786. IFS=$as_save_IFS
  3787. test -z "$as_dir" && as_dir=.
  3788. for lt_ac_prog in sed gsed; do
  3789. for ac_exec_ext in '' $ac_executable_extensions; do
  3790. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3791. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3792. fi
  3793. done
  3794. done
  3795. done
  3796. lt_ac_max=0
  3797. lt_ac_count=0
  3798. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3799. # along with /bin/sed that truncates output.
  3800. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3801. test ! -f $lt_ac_sed && continue
  3802. cat /dev/null > conftest.in
  3803. lt_ac_count=0
  3804. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3805. # Check for GNU sed and select it if it is found.
  3806. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3807. lt_cv_path_SED=$lt_ac_sed
  3808. break
  3809. fi
  3810. while true; do
  3811. cat conftest.in conftest.in >conftest.tmp
  3812. mv conftest.tmp conftest.in
  3813. cp conftest.in conftest.nl
  3814. echo >>conftest.nl
  3815. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3816. cmp -s conftest.out conftest.nl || break
  3817. # 10000 chars as input seems more than enough
  3818. test $lt_ac_count -gt 10 && break
  3819. lt_ac_count=`expr $lt_ac_count + 1`
  3820. if test $lt_ac_count -gt $lt_ac_max; then
  3821. lt_ac_max=$lt_ac_count
  3822. lt_cv_path_SED=$lt_ac_sed
  3823. fi
  3824. done
  3825. done
  3826. fi
  3827. SED=$lt_cv_path_SED
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3829. $as_echo "$SED" >&6; }
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3831. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3832. if test "${ac_cv_path_GREP+set}" = set; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -z "$GREP"; then
  3836. ac_path_GREP_found=false
  3837. # Loop through the user's path and test for each of PROGNAME-LIST
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_prog in grep ggrep; do
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3846. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3847. # Check for GNU ac_path_GREP and select it if it is found.
  3848. # Check for GNU $ac_path_GREP
  3849. case `"$ac_path_GREP" --version 2>&1` in
  3850. *GNU*)
  3851. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3852. *)
  3853. ac_count=0
  3854. $as_echo_n 0123456789 >"conftest.in"
  3855. while :
  3856. do
  3857. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3858. mv "conftest.tmp" "conftest.in"
  3859. cp "conftest.in" "conftest.nl"
  3860. $as_echo 'GREP' >> "conftest.nl"
  3861. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3862. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3863. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3864. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3865. # Best one so far, save it but keep looking for a better one
  3866. ac_cv_path_GREP="$ac_path_GREP"
  3867. ac_path_GREP_max=$ac_count
  3868. fi
  3869. # 10*(2^10) chars as input seems more than enough
  3870. test $ac_count -gt 10 && break
  3871. done
  3872. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3873. esac
  3874. $ac_path_GREP_found && break 3
  3875. done
  3876. done
  3877. done
  3878. IFS=$as_save_IFS
  3879. if test -z "$ac_cv_path_GREP"; then
  3880. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3881. fi
  3882. else
  3883. ac_cv_path_GREP=$GREP
  3884. fi
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3887. $as_echo "$ac_cv_path_GREP" >&6; }
  3888. GREP="$ac_cv_path_GREP"
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3890. $as_echo_n "checking for egrep... " >&6; }
  3891. if test "${ac_cv_path_EGREP+set}" = set; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3895. then ac_cv_path_EGREP="$GREP -E"
  3896. else
  3897. if test -z "$EGREP"; then
  3898. ac_path_EGREP_found=false
  3899. # Loop through the user's path and test for each of PROGNAME-LIST
  3900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3902. do
  3903. IFS=$as_save_IFS
  3904. test -z "$as_dir" && as_dir=.
  3905. for ac_prog in egrep; do
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3908. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3909. # Check for GNU ac_path_EGREP and select it if it is found.
  3910. # Check for GNU $ac_path_EGREP
  3911. case `"$ac_path_EGREP" --version 2>&1` in
  3912. *GNU*)
  3913. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3914. *)
  3915. ac_count=0
  3916. $as_echo_n 0123456789 >"conftest.in"
  3917. while :
  3918. do
  3919. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3920. mv "conftest.tmp" "conftest.in"
  3921. cp "conftest.in" "conftest.nl"
  3922. $as_echo 'EGREP' >> "conftest.nl"
  3923. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3924. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3925. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3926. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3927. # Best one so far, save it but keep looking for a better one
  3928. ac_cv_path_EGREP="$ac_path_EGREP"
  3929. ac_path_EGREP_max=$ac_count
  3930. fi
  3931. # 10*(2^10) chars as input seems more than enough
  3932. test $ac_count -gt 10 && break
  3933. done
  3934. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3935. esac
  3936. $ac_path_EGREP_found && break 3
  3937. done
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. if test -z "$ac_cv_path_EGREP"; then
  3942. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3943. fi
  3944. else
  3945. ac_cv_path_EGREP=$EGREP
  3946. fi
  3947. fi
  3948. fi
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3950. $as_echo "$ac_cv_path_EGREP" >&6; }
  3951. EGREP="$ac_cv_path_EGREP"
  3952. # Check whether --with-gnu-ld was given.
  3953. if test "${with_gnu_ld+set}" = set; then :
  3954. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3955. else
  3956. with_gnu_ld=no
  3957. fi
  3958. ac_prog=ld
  3959. if test "$GCC" = yes; then
  3960. # Check if gcc -print-prog-name=ld gives a path.
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3962. $as_echo_n "checking for ld used by $CC... " >&6; }
  3963. case $host in
  3964. *-*-mingw*)
  3965. # gcc leaves a trailing carriage return which upsets mingw
  3966. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3967. *)
  3968. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3969. esac
  3970. case $ac_prog in
  3971. # Accept absolute paths.
  3972. [\\/]* | ?:[\\/]*)
  3973. re_direlt='/[^/][^/]*/\.\./'
  3974. # Canonicalize the pathname of ld
  3975. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3976. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3977. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3978. done
  3979. test -z "$LD" && LD="$ac_prog"
  3980. ;;
  3981. "")
  3982. # If it fails, then pretend we aren't using GCC.
  3983. ac_prog=ld
  3984. ;;
  3985. *)
  3986. # If it is relative, then search for the first ld in PATH.
  3987. with_gnu_ld=unknown
  3988. ;;
  3989. esac
  3990. elif test "$with_gnu_ld" = yes; then
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3992. $as_echo_n "checking for GNU ld... " >&6; }
  3993. else
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3995. $as_echo_n "checking for non-GNU ld... " >&6; }
  3996. fi
  3997. if test "${lt_cv_path_LD+set}" = set; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. if test -z "$LD"; then
  4001. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4002. for ac_dir in $PATH; do
  4003. IFS="$lt_save_ifs"
  4004. test -z "$ac_dir" && ac_dir=.
  4005. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4006. lt_cv_path_LD="$ac_dir/$ac_prog"
  4007. # Check to see if the program is GNU ld. I'd rather use --version,
  4008. # but apparently some GNU ld's only accept -v.
  4009. # Break only if it was the GNU/non-GNU ld that we prefer.
  4010. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4011. *GNU* | *'with BFD'*)
  4012. test "$with_gnu_ld" != no && break
  4013. ;;
  4014. *)
  4015. test "$with_gnu_ld" != yes && break
  4016. ;;
  4017. esac
  4018. fi
  4019. done
  4020. IFS="$lt_save_ifs"
  4021. else
  4022. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4023. fi
  4024. fi
  4025. LD="$lt_cv_path_LD"
  4026. if test -n "$LD"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4028. $as_echo "$LD" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4035. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4036. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4037. $as_echo_n "(cached) " >&6
  4038. else
  4039. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4040. case `$LD -v 2>&1 </dev/null` in
  4041. *GNU* | *'with BFD'*)
  4042. lt_cv_prog_gnu_ld=yes
  4043. ;;
  4044. *)
  4045. lt_cv_prog_gnu_ld=no
  4046. ;;
  4047. esac
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4050. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4051. with_gnu_ld=$lt_cv_prog_gnu_ld
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4053. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4054. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4055. $as_echo_n "(cached) " >&6
  4056. else
  4057. lt_cv_ld_reload_flag='-r'
  4058. fi
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4060. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4061. reload_flag=$lt_cv_ld_reload_flag
  4062. case $reload_flag in
  4063. "" | " "*) ;;
  4064. *) reload_flag=" $reload_flag" ;;
  4065. esac
  4066. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4067. case $host_os in
  4068. darwin*)
  4069. if test "$GCC" = yes; then
  4070. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  4071. else
  4072. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4073. fi
  4074. ;;
  4075. esac
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  4077. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  4078. if test "${lt_cv_path_NM+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$NM"; then
  4082. # Let the user override the test.
  4083. lt_cv_path_NM="$NM"
  4084. else
  4085. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4086. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4087. IFS="$lt_save_ifs"
  4088. test -z "$ac_dir" && ac_dir=.
  4089. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4090. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4091. # Check to see if the nm accepts a BSD-compat flag.
  4092. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4093. # nm: unknown option "B" ignored
  4094. # Tru64's nm complains that /dev/null is an invalid object file
  4095. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4096. */dev/null* | *'Invalid file or object type'*)
  4097. lt_cv_path_NM="$tmp_nm -B"
  4098. break
  4099. ;;
  4100. *)
  4101. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4102. */dev/null*)
  4103. lt_cv_path_NM="$tmp_nm -p"
  4104. break
  4105. ;;
  4106. *)
  4107. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4108. continue # so that we can try to find one that supports BSD flags
  4109. ;;
  4110. esac
  4111. esac
  4112. fi
  4113. done
  4114. IFS="$lt_save_ifs"
  4115. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4116. fi
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4119. $as_echo "$lt_cv_path_NM" >&6; }
  4120. NM="$lt_cv_path_NM"
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4122. $as_echo_n "checking whether ln -s works... " >&6; }
  4123. LN_S=$as_ln_s
  4124. if test "$LN_S" = "ln -s"; then
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4126. $as_echo "yes" >&6; }
  4127. else
  4128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4129. $as_echo "no, using $LN_S" >&6; }
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
  4132. $as_echo_n "checking how to recognise dependent libraries... " >&6; }
  4133. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4137. lt_cv_file_magic_test_file=
  4138. lt_cv_deplibs_check_method='unknown'
  4139. # Need to set the preceding variable on all platforms that support
  4140. # interlibrary dependencies.
  4141. # 'none' -- dependencies not supported.
  4142. # `unknown' -- same as none, but documents that we really don't know.
  4143. # 'pass_all' -- all dependencies passed with no checks.
  4144. # 'test_compile' -- check by making test program.
  4145. # 'file_magic [[regex]]' -- check by looking for files in library path
  4146. # which responds to the $file_magic_cmd with a given extended regex.
  4147. # If you have `file' or equivalent on your system and you're not sure
  4148. # whether `pass_all' will *always* work, you probably want this one.
  4149. case $host_os in
  4150. aix4* | aix5*)
  4151. lt_cv_deplibs_check_method=pass_all
  4152. ;;
  4153. beos*)
  4154. lt_cv_deplibs_check_method=pass_all
  4155. ;;
  4156. bsdi[45]*)
  4157. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4158. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4159. lt_cv_file_magic_test_file=/shlib/libc.so
  4160. ;;
  4161. cygwin*)
  4162. # func_win32_libid is a shell function defined in ltmain.sh
  4163. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4164. lt_cv_file_magic_cmd='func_win32_libid'
  4165. ;;
  4166. mingw* | pw32*)
  4167. # Base MSYS/MinGW do not provide the 'file' command needed by
  4168. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4169. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4170. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4171. ;;
  4172. darwin* | rhapsody*)
  4173. lt_cv_deplibs_check_method=pass_all
  4174. ;;
  4175. freebsd* | kfreebsd*-gnu | dragonfly*)
  4176. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4177. case $host_cpu in
  4178. i*86 )
  4179. # Not sure whether the presence of OpenBSD here was a mistake.
  4180. # Let's accept both of them until this is cleared up.
  4181. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4182. lt_cv_file_magic_cmd=/usr/bin/file
  4183. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4184. ;;
  4185. esac
  4186. else
  4187. lt_cv_deplibs_check_method=pass_all
  4188. fi
  4189. ;;
  4190. gnu*)
  4191. lt_cv_deplibs_check_method=pass_all
  4192. ;;
  4193. hpux10.20* | hpux11*)
  4194. lt_cv_file_magic_cmd=/usr/bin/file
  4195. case "$host_cpu" in
  4196. ia64*)
  4197. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4198. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4199. ;;
  4200. hppa*64*)
  4201. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4202. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4203. ;;
  4204. *)
  4205. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4206. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4207. ;;
  4208. esac
  4209. ;;
  4210. irix5* | irix6* | nonstopux*)
  4211. case $LD in
  4212. *-32|*"-32 ") libmagic=32-bit;;
  4213. *-n32|*"-n32 ") libmagic=N32;;
  4214. *-64|*"-64 ") libmagic=64-bit;;
  4215. *) libmagic=never-match;;
  4216. esac
  4217. lt_cv_deplibs_check_method=pass_all
  4218. ;;
  4219. # This must be Linux ELF.
  4220. linux*)
  4221. lt_cv_deplibs_check_method=pass_all
  4222. ;;
  4223. netbsd*)
  4224. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4225. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4226. else
  4227. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4228. fi
  4229. ;;
  4230. newos6*)
  4231. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4232. lt_cv_file_magic_cmd=/usr/bin/file
  4233. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4234. ;;
  4235. nto-qnx*)
  4236. lt_cv_deplibs_check_method=unknown
  4237. ;;
  4238. openbsd*)
  4239. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4240. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4241. else
  4242. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4243. fi
  4244. ;;
  4245. osf3* | osf4* | osf5*)
  4246. lt_cv_deplibs_check_method=pass_all
  4247. ;;
  4248. sco3.2v5*)
  4249. lt_cv_deplibs_check_method=pass_all
  4250. ;;
  4251. solaris*)
  4252. lt_cv_deplibs_check_method=pass_all
  4253. ;;
  4254. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4255. case $host_vendor in
  4256. motorola)
  4257. 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]'
  4258. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4259. ;;
  4260. ncr)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. sequent)
  4264. lt_cv_file_magic_cmd='/bin/file'
  4265. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4266. ;;
  4267. sni)
  4268. lt_cv_file_magic_cmd='/bin/file'
  4269. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4270. lt_cv_file_magic_test_file=/lib/libc.so
  4271. ;;
  4272. siemens)
  4273. lt_cv_deplibs_check_method=pass_all
  4274. ;;
  4275. esac
  4276. ;;
  4277. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4278. lt_cv_deplibs_check_method=pass_all
  4279. ;;
  4280. esac
  4281. fi
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4283. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4284. file_magic_cmd=$lt_cv_file_magic_cmd
  4285. deplibs_check_method=$lt_cv_deplibs_check_method
  4286. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4287. # If no C compiler was specified, use CC.
  4288. LTCC=${LTCC-"$CC"}
  4289. # Allow CC to be a program name with arguments.
  4290. compiler=$CC
  4291. # Check whether --enable-libtool-lock was given.
  4292. if test "${enable_libtool_lock+set}" = set; then :
  4293. enableval=$enable_libtool_lock;
  4294. fi
  4295. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4296. # Some flags need to be propagated to the compiler or linker for good
  4297. # libtool support.
  4298. case $host in
  4299. ia64-*-hpux*)
  4300. # Find out which ABI we are using.
  4301. echo 'int i;' > conftest.$ac_ext
  4302. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4303. (eval $ac_compile) 2>&5
  4304. ac_status=$?
  4305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4306. test $ac_status = 0; }; then
  4307. case `/usr/bin/file conftest.$ac_objext` in
  4308. *ELF-32*)
  4309. HPUX_IA64_MODE="32"
  4310. ;;
  4311. *ELF-64*)
  4312. HPUX_IA64_MODE="64"
  4313. ;;
  4314. esac
  4315. fi
  4316. rm -rf conftest*
  4317. ;;
  4318. *-*-irix6*)
  4319. # Find out which ABI we are using.
  4320. echo '#line 4774 "configure"' > conftest.$ac_ext
  4321. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4322. (eval $ac_compile) 2>&5
  4323. ac_status=$?
  4324. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4325. test $ac_status = 0; }; then
  4326. if test "$lt_cv_prog_gnu_ld" = yes; then
  4327. case `/usr/bin/file conftest.$ac_objext` in
  4328. *32-bit*)
  4329. LD="${LD-ld} -melf32bsmip"
  4330. ;;
  4331. *N32*)
  4332. LD="${LD-ld} -melf32bmipn32"
  4333. ;;
  4334. *64-bit*)
  4335. LD="${LD-ld} -melf64bmip"
  4336. ;;
  4337. esac
  4338. else
  4339. case `/usr/bin/file conftest.$ac_objext` in
  4340. *32-bit*)
  4341. LD="${LD-ld} -32"
  4342. ;;
  4343. *N32*)
  4344. LD="${LD-ld} -n32"
  4345. ;;
  4346. *64-bit*)
  4347. LD="${LD-ld} -64"
  4348. ;;
  4349. esac
  4350. fi
  4351. fi
  4352. rm -rf conftest*
  4353. ;;
  4354. x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4355. # Find out which ABI we are using.
  4356. echo 'int i;' > conftest.$ac_ext
  4357. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4358. (eval $ac_compile) 2>&5
  4359. ac_status=$?
  4360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4361. test $ac_status = 0; }; then
  4362. case "`/usr/bin/file conftest.o`" in
  4363. *32-bit*)
  4364. case $host in
  4365. x86_64-*linux*)
  4366. LD="${LD-ld} -m elf_i386"
  4367. ;;
  4368. powerpc64le-*linux*)
  4369. LD="${LD-ld} -m elf32lppclinux"
  4370. ;;
  4371. powerpc64-*linux*)
  4372. LD="${LD-ld} -m elf32ppclinux"
  4373. ;;
  4374. s390x-*linux*)
  4375. LD="${LD-ld} -m elf_s390"
  4376. ;;
  4377. sparc64-*linux*)
  4378. LD="${LD-ld} -m elf32_sparc"
  4379. ;;
  4380. esac
  4381. ;;
  4382. *64-bit*)
  4383. case $host in
  4384. x86_64-*linux*)
  4385. LD="${LD-ld} -m elf_x86_64"
  4386. ;;
  4387. powerpcle-*linux*)
  4388. LD="${LD-ld} -m elf64lppc"
  4389. ;;
  4390. powerpc-*linux*)
  4391. LD="${LD-ld} -m elf64ppc"
  4392. ;;
  4393. s390*-*linux*)
  4394. LD="${LD-ld} -m elf64_s390"
  4395. ;;
  4396. sparc*-*linux*)
  4397. LD="${LD-ld} -m elf64_sparc"
  4398. ;;
  4399. esac
  4400. ;;
  4401. esac
  4402. fi
  4403. rm -rf conftest*
  4404. ;;
  4405. *-*-sco3.2v5*)
  4406. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4407. SAVE_CFLAGS="$CFLAGS"
  4408. CFLAGS="$CFLAGS -belf"
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  4410. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4411. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  4412. $as_echo_n "(cached) " >&6
  4413. else
  4414. ac_ext=c
  4415. ac_cpp='$CPP $CPPFLAGS'
  4416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4420. /* end confdefs.h. */
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_link "$LINENO"; then :
  4429. lt_cv_cc_needs_belf=yes
  4430. else
  4431. lt_cv_cc_needs_belf=no
  4432. fi
  4433. rm -f core conftest.err conftest.$ac_objext \
  4434. conftest$ac_exeext conftest.$ac_ext
  4435. ac_ext=c
  4436. ac_cpp='$CPP $CPPFLAGS'
  4437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4440. fi
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  4442. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4443. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4444. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4445. CFLAGS="$SAVE_CFLAGS"
  4446. fi
  4447. ;;
  4448. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  4449. if test -n "$ac_tool_prefix"; then
  4450. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4451. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4453. $as_echo_n "checking for $ac_word... " >&6; }
  4454. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. if test -n "$DLLTOOL"; then
  4458. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4459. else
  4460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4461. for as_dir in $PATH
  4462. do
  4463. IFS=$as_save_IFS
  4464. test -z "$as_dir" && as_dir=.
  4465. for ac_exec_ext in '' $ac_executable_extensions; do
  4466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4467. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4469. break 2
  4470. fi
  4471. done
  4472. done
  4473. IFS=$as_save_IFS
  4474. fi
  4475. fi
  4476. DLLTOOL=$ac_cv_prog_DLLTOOL
  4477. if test -n "$DLLTOOL"; then
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4479. $as_echo "$DLLTOOL" >&6; }
  4480. else
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4482. $as_echo "no" >&6; }
  4483. fi
  4484. fi
  4485. if test -z "$ac_cv_prog_DLLTOOL"; then
  4486. ac_ct_DLLTOOL=$DLLTOOL
  4487. # Extract the first word of "dlltool", so it can be a program name with args.
  4488. set dummy dlltool; ac_word=$2
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4490. $as_echo_n "checking for $ac_word... " >&6; }
  4491. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  4492. $as_echo_n "(cached) " >&6
  4493. else
  4494. if test -n "$ac_ct_DLLTOOL"; then
  4495. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4496. else
  4497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4498. for as_dir in $PATH
  4499. do
  4500. IFS=$as_save_IFS
  4501. test -z "$as_dir" && as_dir=.
  4502. for ac_exec_ext in '' $ac_executable_extensions; do
  4503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4504. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4506. break 2
  4507. fi
  4508. done
  4509. done
  4510. IFS=$as_save_IFS
  4511. fi
  4512. fi
  4513. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4514. if test -n "$ac_ct_DLLTOOL"; then
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4516. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4517. else
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4519. $as_echo "no" >&6; }
  4520. fi
  4521. if test "x$ac_ct_DLLTOOL" = x; then
  4522. DLLTOOL="false"
  4523. else
  4524. case $cross_compiling:$ac_tool_warned in
  4525. yes:)
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4528. ac_tool_warned=yes ;;
  4529. esac
  4530. DLLTOOL=$ac_ct_DLLTOOL
  4531. fi
  4532. else
  4533. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4534. fi
  4535. if test -n "$ac_tool_prefix"; then
  4536. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4537. set dummy ${ac_tool_prefix}as; ac_word=$2
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4539. $as_echo_n "checking for $ac_word... " >&6; }
  4540. if test "${ac_cv_prog_AS+set}" = set; then :
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. if test -n "$AS"; then
  4544. ac_cv_prog_AS="$AS" # Let the user override the test.
  4545. else
  4546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4547. for as_dir in $PATH
  4548. do
  4549. IFS=$as_save_IFS
  4550. test -z "$as_dir" && as_dir=.
  4551. for ac_exec_ext in '' $ac_executable_extensions; do
  4552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4553. ac_cv_prog_AS="${ac_tool_prefix}as"
  4554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4555. break 2
  4556. fi
  4557. done
  4558. done
  4559. IFS=$as_save_IFS
  4560. fi
  4561. fi
  4562. AS=$ac_cv_prog_AS
  4563. if test -n "$AS"; then
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4565. $as_echo "$AS" >&6; }
  4566. else
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4568. $as_echo "no" >&6; }
  4569. fi
  4570. fi
  4571. if test -z "$ac_cv_prog_AS"; then
  4572. ac_ct_AS=$AS
  4573. # Extract the first word of "as", so it can be a program name with args.
  4574. set dummy as; ac_word=$2
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4576. $as_echo_n "checking for $ac_word... " >&6; }
  4577. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. if test -n "$ac_ct_AS"; then
  4581. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4582. else
  4583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4584. for as_dir in $PATH
  4585. do
  4586. IFS=$as_save_IFS
  4587. test -z "$as_dir" && as_dir=.
  4588. for ac_exec_ext in '' $ac_executable_extensions; do
  4589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4590. ac_cv_prog_ac_ct_AS="as"
  4591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4592. break 2
  4593. fi
  4594. done
  4595. done
  4596. IFS=$as_save_IFS
  4597. fi
  4598. fi
  4599. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4600. if test -n "$ac_ct_AS"; then
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4602. $as_echo "$ac_ct_AS" >&6; }
  4603. else
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. $as_echo "no" >&6; }
  4606. fi
  4607. if test "x$ac_ct_AS" = x; then
  4608. AS="false"
  4609. else
  4610. case $cross_compiling:$ac_tool_warned in
  4611. yes:)
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4614. ac_tool_warned=yes ;;
  4615. esac
  4616. AS=$ac_ct_AS
  4617. fi
  4618. else
  4619. AS="$ac_cv_prog_AS"
  4620. fi
  4621. if test -n "$ac_tool_prefix"; then
  4622. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4623. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. if test -n "$OBJDUMP"; then
  4630. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4631. else
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4639. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641. break 2
  4642. fi
  4643. done
  4644. done
  4645. IFS=$as_save_IFS
  4646. fi
  4647. fi
  4648. OBJDUMP=$ac_cv_prog_OBJDUMP
  4649. if test -n "$OBJDUMP"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4651. $as_echo "$OBJDUMP" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. fi
  4657. if test -z "$ac_cv_prog_OBJDUMP"; then
  4658. ac_ct_OBJDUMP=$OBJDUMP
  4659. # Extract the first word of "objdump", so it can be a program name with args.
  4660. set dummy objdump; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$ac_ct_OBJDUMP"; then
  4667. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4676. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. fi
  4684. fi
  4685. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4686. if test -n "$ac_ct_OBJDUMP"; then
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4688. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4689. else
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. $as_echo "no" >&6; }
  4692. fi
  4693. if test "x$ac_ct_OBJDUMP" = x; then
  4694. OBJDUMP="false"
  4695. else
  4696. case $cross_compiling:$ac_tool_warned in
  4697. yes:)
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4700. ac_tool_warned=yes ;;
  4701. esac
  4702. OBJDUMP=$ac_ct_OBJDUMP
  4703. fi
  4704. else
  4705. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4706. fi
  4707. ;;
  4708. esac
  4709. need_locks="$enable_libtool_lock"
  4710. ac_ext=c
  4711. ac_cpp='$CPP $CPPFLAGS'
  4712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4716. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4717. # On Suns, sometimes $CPP names a directory.
  4718. if test -n "$CPP" && test -d "$CPP"; then
  4719. CPP=
  4720. fi
  4721. if test -z "$CPP"; then
  4722. if test "${ac_cv_prog_CPP+set}" = set; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. # Double quotes because CPP needs to be expanded
  4726. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4727. do
  4728. ac_preproc_ok=false
  4729. for ac_c_preproc_warn_flag in '' yes
  4730. do
  4731. # Use a header file that comes with gcc, so configuring glibc
  4732. # with a fresh cross-compiler works.
  4733. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4734. # <limits.h> exists even on freestanding compilers.
  4735. # On the NeXT, cc -E runs the code through the compiler's parser,
  4736. # not just through cpp. "Syntax error" is here to catch this case.
  4737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4738. /* end confdefs.h. */
  4739. #ifdef __STDC__
  4740. # include <limits.h>
  4741. #else
  4742. # include <assert.h>
  4743. #endif
  4744. Syntax error
  4745. _ACEOF
  4746. if ac_fn_c_try_cpp "$LINENO"; then :
  4747. else
  4748. # Broken: fails on valid input.
  4749. continue
  4750. fi
  4751. rm -f conftest.err conftest.$ac_ext
  4752. # OK, works on sane cases. Now check whether nonexistent headers
  4753. # can be detected and how.
  4754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4755. /* end confdefs.h. */
  4756. #include <ac_nonexistent.h>
  4757. _ACEOF
  4758. if ac_fn_c_try_cpp "$LINENO"; then :
  4759. # Broken: success on invalid input.
  4760. continue
  4761. else
  4762. # Passes both tests.
  4763. ac_preproc_ok=:
  4764. break
  4765. fi
  4766. rm -f conftest.err conftest.$ac_ext
  4767. done
  4768. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4769. rm -f conftest.err conftest.$ac_ext
  4770. if $ac_preproc_ok; then :
  4771. break
  4772. fi
  4773. done
  4774. ac_cv_prog_CPP=$CPP
  4775. fi
  4776. CPP=$ac_cv_prog_CPP
  4777. else
  4778. ac_cv_prog_CPP=$CPP
  4779. fi
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4781. $as_echo "$CPP" >&6; }
  4782. ac_preproc_ok=false
  4783. for ac_c_preproc_warn_flag in '' yes
  4784. do
  4785. # Use a header file that comes with gcc, so configuring glibc
  4786. # with a fresh cross-compiler works.
  4787. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4788. # <limits.h> exists even on freestanding compilers.
  4789. # On the NeXT, cc -E runs the code through the compiler's parser,
  4790. # not just through cpp. "Syntax error" is here to catch this case.
  4791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4792. /* end confdefs.h. */
  4793. #ifdef __STDC__
  4794. # include <limits.h>
  4795. #else
  4796. # include <assert.h>
  4797. #endif
  4798. Syntax error
  4799. _ACEOF
  4800. if ac_fn_c_try_cpp "$LINENO"; then :
  4801. else
  4802. # Broken: fails on valid input.
  4803. continue
  4804. fi
  4805. rm -f conftest.err conftest.$ac_ext
  4806. # OK, works on sane cases. Now check whether nonexistent headers
  4807. # can be detected and how.
  4808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4809. /* end confdefs.h. */
  4810. #include <ac_nonexistent.h>
  4811. _ACEOF
  4812. if ac_fn_c_try_cpp "$LINENO"; then :
  4813. # Broken: success on invalid input.
  4814. continue
  4815. else
  4816. # Passes both tests.
  4817. ac_preproc_ok=:
  4818. break
  4819. fi
  4820. rm -f conftest.err conftest.$ac_ext
  4821. done
  4822. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4823. rm -f conftest.err conftest.$ac_ext
  4824. if $ac_preproc_ok; then :
  4825. else
  4826. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4828. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4829. See \`config.log' for more details." "$LINENO" 5; }
  4830. fi
  4831. ac_ext=c
  4832. ac_cpp='$CPP $CPPFLAGS'
  4833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4837. $as_echo_n "checking for ANSI C header files... " >&6; }
  4838. if test "${ac_cv_header_stdc+set}" = set; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4842. /* end confdefs.h. */
  4843. #include <stdlib.h>
  4844. #include <stdarg.h>
  4845. #include <string.h>
  4846. #include <float.h>
  4847. int
  4848. main ()
  4849. {
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_c_try_compile "$LINENO"; then :
  4855. ac_cv_header_stdc=yes
  4856. else
  4857. ac_cv_header_stdc=no
  4858. fi
  4859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4860. if test $ac_cv_header_stdc = yes; then
  4861. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4863. /* end confdefs.h. */
  4864. #include <string.h>
  4865. _ACEOF
  4866. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4867. $EGREP "memchr" >/dev/null 2>&1; then :
  4868. else
  4869. ac_cv_header_stdc=no
  4870. fi
  4871. rm -f conftest*
  4872. fi
  4873. if test $ac_cv_header_stdc = yes; then
  4874. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4876. /* end confdefs.h. */
  4877. #include <stdlib.h>
  4878. _ACEOF
  4879. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4880. $EGREP "free" >/dev/null 2>&1; then :
  4881. else
  4882. ac_cv_header_stdc=no
  4883. fi
  4884. rm -f conftest*
  4885. fi
  4886. if test $ac_cv_header_stdc = yes; then
  4887. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4888. if test "$cross_compiling" = yes; then :
  4889. :
  4890. else
  4891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4892. /* end confdefs.h. */
  4893. #include <ctype.h>
  4894. #include <stdlib.h>
  4895. #if ((' ' & 0x0FF) == 0x020)
  4896. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4897. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4898. #else
  4899. # define ISLOWER(c) \
  4900. (('a' <= (c) && (c) <= 'i') \
  4901. || ('j' <= (c) && (c) <= 'r') \
  4902. || ('s' <= (c) && (c) <= 'z'))
  4903. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4904. #endif
  4905. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4906. int
  4907. main ()
  4908. {
  4909. int i;
  4910. for (i = 0; i < 256; i++)
  4911. if (XOR (islower (i), ISLOWER (i))
  4912. || toupper (i) != TOUPPER (i))
  4913. return 2;
  4914. return 0;
  4915. }
  4916. _ACEOF
  4917. if ac_fn_c_try_run "$LINENO"; then :
  4918. else
  4919. ac_cv_header_stdc=no
  4920. fi
  4921. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4922. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4923. fi
  4924. fi
  4925. fi
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4927. $as_echo "$ac_cv_header_stdc" >&6; }
  4928. if test $ac_cv_header_stdc = yes; then
  4929. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4930. fi
  4931. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4932. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4933. inttypes.h stdint.h unistd.h
  4934. do :
  4935. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4936. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4937. "
  4938. eval as_val=\$$as_ac_Header
  4939. if test "x$as_val" = x""yes; then :
  4940. cat >>confdefs.h <<_ACEOF
  4941. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4942. _ACEOF
  4943. fi
  4944. done
  4945. for ac_header in dlfcn.h
  4946. do :
  4947. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  4948. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  4949. cat >>confdefs.h <<_ACEOF
  4950. #define HAVE_DLFCN_H 1
  4951. _ACEOF
  4952. fi
  4953. done
  4954. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4955. # find the maximum length of command line arguments
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4957. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4958. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4959. $as_echo_n "(cached) " >&6
  4960. else
  4961. i=0
  4962. teststring="ABCD"
  4963. case $build_os in
  4964. msdosdjgpp*)
  4965. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4966. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4967. # during glob expansion). Even if it were fixed, the result of this
  4968. # check would be larger than it should be.
  4969. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4970. ;;
  4971. gnu*)
  4972. # Under GNU Hurd, this test is not required because there is
  4973. # no limit to the length of command line arguments.
  4974. # Libtool will interpret -1 as no limit whatsoever
  4975. lt_cv_sys_max_cmd_len=-1;
  4976. ;;
  4977. cygwin* | mingw*)
  4978. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4979. # about 5 minutes as the teststring grows exponentially.
  4980. # Worse, since 9x/ME are not pre-emptively multitasking,
  4981. # you end up with a "frozen" computer, even though with patience
  4982. # the test eventually succeeds (with a max line length of 256k).
  4983. # Instead, let's just punt: use the minimum linelength reported by
  4984. # all of the supported platforms: 8192 (on NT/2K/XP).
  4985. lt_cv_sys_max_cmd_len=8192;
  4986. ;;
  4987. amigaos*)
  4988. # On AmigaOS with pdksh, this test takes hours, literally.
  4989. # So we just punt and use a minimum line length of 8192.
  4990. lt_cv_sys_max_cmd_len=8192;
  4991. ;;
  4992. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4993. # This has been around since 386BSD, at least. Likely further.
  4994. if test -x /sbin/sysctl; then
  4995. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4996. elif test -x /usr/sbin/sysctl; then
  4997. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4998. else
  4999. lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  5000. fi
  5001. # And add a safety zone
  5002. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5003. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5004. ;;
  5005. osf*)
  5006. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5007. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5008. # nice to cause kernel panics so lets avoid the loop below.
  5009. # First set a reasonable default.
  5010. lt_cv_sys_max_cmd_len=16384
  5011. #
  5012. if test -x /sbin/sysconfig; then
  5013. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5014. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5015. esac
  5016. fi
  5017. ;;
  5018. *)
  5019. # If test is not a shell built-in, we'll probably end up computing a
  5020. # maximum length that is only half of the actual maximum length, but
  5021. # we can't tell.
  5022. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5023. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5024. = "XX$teststring") >/dev/null 2>&1 &&
  5025. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5026. lt_cv_sys_max_cmd_len=$new_result &&
  5027. test $i != 17 # 1/2 MB should be enough
  5028. do
  5029. i=`expr $i + 1`
  5030. teststring=$teststring$teststring
  5031. done
  5032. teststring=
  5033. # Add a significant safety factor because C++ compilers can tack on massive
  5034. # amounts of additional arguments before passing them to the linker.
  5035. # It appears as though 1/2 is a usable value.
  5036. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5037. ;;
  5038. esac
  5039. fi
  5040. if test -n $lt_cv_sys_max_cmd_len ; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5042. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5045. $as_echo "none" >&6; }
  5046. fi
  5047. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5049. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5050. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. # These are sane defaults that work on at least a few old systems.
  5054. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5055. # Character class describing NM global symbol codes.
  5056. symcode='[BCDEGRST]'
  5057. # Regexp to match symbols that can be accessed directly from C.
  5058. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5059. # Transform an extracted symbol line into a proper C declaration
  5060. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5061. # Transform an extracted symbol line into symbol name and symbol address
  5062. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5063. # Define system-specific variables.
  5064. case $host_os in
  5065. aix*)
  5066. symcode='[BCDT]'
  5067. ;;
  5068. cygwin* | mingw* | pw32*)
  5069. symcode='[ABCDGISTW]'
  5070. ;;
  5071. hpux*) # Its linker distinguishes data from code symbols
  5072. if test "$host_cpu" = ia64; then
  5073. symcode='[ABCDEGRST]'
  5074. fi
  5075. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5076. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5077. ;;
  5078. linux*)
  5079. if test "$host_cpu" = ia64; then
  5080. symcode='[ABCDGIRSTW]'
  5081. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5082. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5083. fi
  5084. ;;
  5085. irix* | nonstopux*)
  5086. symcode='[BCDEGRST]'
  5087. ;;
  5088. osf*)
  5089. symcode='[BCDEGQRST]'
  5090. ;;
  5091. solaris* | sysv5*)
  5092. symcode='[BDRT]'
  5093. ;;
  5094. sysv4)
  5095. symcode='[DFNSTU]'
  5096. ;;
  5097. esac
  5098. # Handle CRLF in mingw tool chain
  5099. opt_cr=
  5100. case $build_os in
  5101. mingw*)
  5102. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5103. ;;
  5104. esac
  5105. # If we're using GNU nm, then use its standard symbol codes.
  5106. case `$NM -V 2>&1` in
  5107. *GNU* | *'with BFD'*)
  5108. symcode='[ABCDGIRSTW]' ;;
  5109. esac
  5110. # Try without a prefix undercore, then with it.
  5111. for ac_symprfx in "" "_"; do
  5112. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5113. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5114. # Write the raw and C identifiers.
  5115. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5116. # Check to see that the pipe works correctly.
  5117. pipe_works=no
  5118. rm -f conftest*
  5119. cat > conftest.$ac_ext <<EOF
  5120. #ifdef __cplusplus
  5121. extern "C" {
  5122. #endif
  5123. char nm_test_var;
  5124. void nm_test_func(){}
  5125. #ifdef __cplusplus
  5126. }
  5127. #endif
  5128. int main(){nm_test_var='a';nm_test_func();return(0);}
  5129. EOF
  5130. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5131. (eval $ac_compile) 2>&5
  5132. ac_status=$?
  5133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5134. test $ac_status = 0; }; then
  5135. # Now try to grab the symbols.
  5136. nlist=conftest.nm
  5137. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5138. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5139. ac_status=$?
  5140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5141. test $ac_status = 0; } && test -s "$nlist"; then
  5142. # Try sorting and uniquifying the output.
  5143. if sort "$nlist" | uniq > "$nlist"T; then
  5144. mv -f "$nlist"T "$nlist"
  5145. else
  5146. rm -f "$nlist"T
  5147. fi
  5148. # Make sure that we snagged all the symbols we need.
  5149. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5150. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5151. cat <<EOF > conftest.$ac_ext
  5152. #ifdef __cplusplus
  5153. extern "C" {
  5154. #endif
  5155. EOF
  5156. # Now generate the symbol file.
  5157. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5158. cat <<EOF >> conftest.$ac_ext
  5159. #if defined (__STDC__) && __STDC__
  5160. # define lt_ptr_t void *
  5161. #else
  5162. # define lt_ptr_t char *
  5163. # define const
  5164. #endif
  5165. /* The mapping between symbol names and symbols. */
  5166. const struct {
  5167. const char *name;
  5168. lt_ptr_t address;
  5169. }
  5170. lt_preloaded_symbols[] =
  5171. {
  5172. EOF
  5173. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5174. cat <<\EOF >> conftest.$ac_ext
  5175. {0, (lt_ptr_t) 0}
  5176. };
  5177. #ifdef __cplusplus
  5178. }
  5179. #endif
  5180. EOF
  5181. # Now try linking the two files.
  5182. mv conftest.$ac_objext conftstm.$ac_objext
  5183. lt_save_LIBS="$LIBS"
  5184. lt_save_CFLAGS="$CFLAGS"
  5185. LIBS="conftstm.$ac_objext"
  5186. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5188. (eval $ac_link) 2>&5
  5189. ac_status=$?
  5190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5191. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5192. pipe_works=yes
  5193. fi
  5194. LIBS="$lt_save_LIBS"
  5195. CFLAGS="$lt_save_CFLAGS"
  5196. else
  5197. echo "cannot find nm_test_func in $nlist" >&5
  5198. fi
  5199. else
  5200. echo "cannot find nm_test_var in $nlist" >&5
  5201. fi
  5202. else
  5203. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5204. fi
  5205. else
  5206. echo "$progname: failed program was:" >&5
  5207. cat conftest.$ac_ext >&5
  5208. fi
  5209. rm -f conftest* conftst*
  5210. # Do not use the global_symbol_pipe unless it works.
  5211. if test "$pipe_works" = yes; then
  5212. break
  5213. else
  5214. lt_cv_sys_global_symbol_pipe=
  5215. fi
  5216. done
  5217. fi
  5218. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5219. lt_cv_sys_global_symbol_to_cdecl=
  5220. fi
  5221. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5223. $as_echo "failed" >&6; }
  5224. else
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5226. $as_echo "ok" >&6; }
  5227. fi
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  5229. $as_echo_n "checking for objdir... " >&6; }
  5230. if test "${lt_cv_objdir+set}" = set; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. rm -f .libs 2>/dev/null
  5234. mkdir .libs 2>/dev/null
  5235. if test -d .libs; then
  5236. lt_cv_objdir=.libs
  5237. else
  5238. # MS-DOS does not allow filenames that begin with a dot.
  5239. lt_cv_objdir=_libs
  5240. fi
  5241. rmdir .libs 2>/dev/null
  5242. fi
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  5244. $as_echo "$lt_cv_objdir" >&6; }
  5245. objdir=$lt_cv_objdir
  5246. case $host_os in
  5247. aix3*)
  5248. # AIX sometimes has problems with the GCC collect2 program. For some
  5249. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5250. # vanish in a puff of smoke.
  5251. if test "X${COLLECT_NAMES+set}" != Xset; then
  5252. COLLECT_NAMES=
  5253. export COLLECT_NAMES
  5254. fi
  5255. ;;
  5256. esac
  5257. # Sed substitution that helps us do robust quoting. It backslashifies
  5258. # metacharacters that are still active within double-quoted strings.
  5259. Xsed='sed -e 1s/^X//'
  5260. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5261. # Same as above, but do not quote variable references.
  5262. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5263. # Sed substitution to delay expansion of an escaped shell variable in a
  5264. # double_quote_subst'ed string.
  5265. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5266. # Sed substitution to avoid accidental globbing in evaled expressions
  5267. no_glob_subst='s/\*/\\\*/g'
  5268. # Constants:
  5269. rm="rm -f"
  5270. # Global variables:
  5271. default_ofile=libtool
  5272. can_build_shared=yes
  5273. # All known linkers require a `.a' archive for static linking (except M$VC,
  5274. # which needs '.lib').
  5275. libext=a
  5276. ltmain="$ac_aux_dir/ltmain.sh"
  5277. ofile="$default_ofile"
  5278. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5279. if test -n "$ac_tool_prefix"; then
  5280. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5281. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5283. $as_echo_n "checking for $ac_word... " >&6; }
  5284. if test "${ac_cv_prog_AR+set}" = set; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. if test -n "$AR"; then
  5288. ac_cv_prog_AR="$AR" # Let the user override the test.
  5289. else
  5290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5291. for as_dir in $PATH
  5292. do
  5293. IFS=$as_save_IFS
  5294. test -z "$as_dir" && as_dir=.
  5295. for ac_exec_ext in '' $ac_executable_extensions; do
  5296. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5297. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5299. break 2
  5300. fi
  5301. done
  5302. done
  5303. IFS=$as_save_IFS
  5304. fi
  5305. fi
  5306. AR=$ac_cv_prog_AR
  5307. if test -n "$AR"; then
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5309. $as_echo "$AR" >&6; }
  5310. else
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5312. $as_echo "no" >&6; }
  5313. fi
  5314. fi
  5315. if test -z "$ac_cv_prog_AR"; then
  5316. ac_ct_AR=$AR
  5317. # Extract the first word of "ar", so it can be a program name with args.
  5318. set dummy ar; ac_word=$2
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5320. $as_echo_n "checking for $ac_word... " >&6; }
  5321. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. if test -n "$ac_ct_AR"; then
  5325. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5326. else
  5327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5328. for as_dir in $PATH
  5329. do
  5330. IFS=$as_save_IFS
  5331. test -z "$as_dir" && as_dir=.
  5332. for ac_exec_ext in '' $ac_executable_extensions; do
  5333. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5334. ac_cv_prog_ac_ct_AR="ar"
  5335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5336. break 2
  5337. fi
  5338. done
  5339. done
  5340. IFS=$as_save_IFS
  5341. fi
  5342. fi
  5343. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5344. if test -n "$ac_ct_AR"; then
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5346. $as_echo "$ac_ct_AR" >&6; }
  5347. else
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5349. $as_echo "no" >&6; }
  5350. fi
  5351. if test "x$ac_ct_AR" = x; then
  5352. AR="false"
  5353. else
  5354. case $cross_compiling:$ac_tool_warned in
  5355. yes:)
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5358. ac_tool_warned=yes ;;
  5359. esac
  5360. AR=$ac_ct_AR
  5361. fi
  5362. else
  5363. AR="$ac_cv_prog_AR"
  5364. fi
  5365. if test -n "$ac_tool_prefix"; then
  5366. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5367. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5369. $as_echo_n "checking for $ac_word... " >&6; }
  5370. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5371. $as_echo_n "(cached) " >&6
  5372. else
  5373. if test -n "$RANLIB"; then
  5374. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5375. else
  5376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5377. for as_dir in $PATH
  5378. do
  5379. IFS=$as_save_IFS
  5380. test -z "$as_dir" && as_dir=.
  5381. for ac_exec_ext in '' $ac_executable_extensions; do
  5382. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5383. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5385. break 2
  5386. fi
  5387. done
  5388. done
  5389. IFS=$as_save_IFS
  5390. fi
  5391. fi
  5392. RANLIB=$ac_cv_prog_RANLIB
  5393. if test -n "$RANLIB"; then
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5395. $as_echo "$RANLIB" >&6; }
  5396. else
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5398. $as_echo "no" >&6; }
  5399. fi
  5400. fi
  5401. if test -z "$ac_cv_prog_RANLIB"; then
  5402. ac_ct_RANLIB=$RANLIB
  5403. # Extract the first word of "ranlib", so it can be a program name with args.
  5404. set dummy ranlib; ac_word=$2
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5406. $as_echo_n "checking for $ac_word... " >&6; }
  5407. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. if test -n "$ac_ct_RANLIB"; then
  5411. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5412. else
  5413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5414. for as_dir in $PATH
  5415. do
  5416. IFS=$as_save_IFS
  5417. test -z "$as_dir" && as_dir=.
  5418. for ac_exec_ext in '' $ac_executable_extensions; do
  5419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5420. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5422. break 2
  5423. fi
  5424. done
  5425. done
  5426. IFS=$as_save_IFS
  5427. fi
  5428. fi
  5429. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5430. if test -n "$ac_ct_RANLIB"; then
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5432. $as_echo "$ac_ct_RANLIB" >&6; }
  5433. else
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5435. $as_echo "no" >&6; }
  5436. fi
  5437. if test "x$ac_ct_RANLIB" = x; then
  5438. RANLIB=":"
  5439. else
  5440. case $cross_compiling:$ac_tool_warned in
  5441. yes:)
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5444. ac_tool_warned=yes ;;
  5445. esac
  5446. RANLIB=$ac_ct_RANLIB
  5447. fi
  5448. else
  5449. RANLIB="$ac_cv_prog_RANLIB"
  5450. fi
  5451. if test -n "$ac_tool_prefix"; then
  5452. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5453. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5455. $as_echo_n "checking for $ac_word... " >&6; }
  5456. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5457. $as_echo_n "(cached) " >&6
  5458. else
  5459. if test -n "$STRIP"; then
  5460. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5461. else
  5462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5463. for as_dir in $PATH
  5464. do
  5465. IFS=$as_save_IFS
  5466. test -z "$as_dir" && as_dir=.
  5467. for ac_exec_ext in '' $ac_executable_extensions; do
  5468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5469. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5471. break 2
  5472. fi
  5473. done
  5474. done
  5475. IFS=$as_save_IFS
  5476. fi
  5477. fi
  5478. STRIP=$ac_cv_prog_STRIP
  5479. if test -n "$STRIP"; then
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5481. $as_echo "$STRIP" >&6; }
  5482. else
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5484. $as_echo "no" >&6; }
  5485. fi
  5486. fi
  5487. if test -z "$ac_cv_prog_STRIP"; then
  5488. ac_ct_STRIP=$STRIP
  5489. # Extract the first word of "strip", so it can be a program name with args.
  5490. set dummy strip; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$ac_ct_STRIP"; then
  5497. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5506. ac_cv_prog_ac_ct_STRIP="strip"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5516. if test -n "$ac_ct_STRIP"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5518. $as_echo "$ac_ct_STRIP" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. if test "x$ac_ct_STRIP" = x; then
  5524. STRIP=":"
  5525. else
  5526. case $cross_compiling:$ac_tool_warned in
  5527. yes:)
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5529. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5530. ac_tool_warned=yes ;;
  5531. esac
  5532. STRIP=$ac_ct_STRIP
  5533. fi
  5534. else
  5535. STRIP="$ac_cv_prog_STRIP"
  5536. fi
  5537. old_CC="$CC"
  5538. old_CFLAGS="$CFLAGS"
  5539. # Set sane defaults for various variables
  5540. test -z "$AR" && AR=ar
  5541. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5542. test -z "$AS" && AS=as
  5543. test -z "$CC" && CC=cc
  5544. test -z "$LTCC" && LTCC=$CC
  5545. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5546. test -z "$LD" && LD=ld
  5547. test -z "$LN_S" && LN_S="ln -s"
  5548. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5549. test -z "$NM" && NM=nm
  5550. test -z "$SED" && SED=sed
  5551. test -z "$OBJDUMP" && OBJDUMP=objdump
  5552. test -z "$RANLIB" && RANLIB=:
  5553. test -z "$STRIP" && STRIP=:
  5554. test -z "$ac_objext" && ac_objext=o
  5555. # Determine commands to create old-style static archives.
  5556. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5557. old_postinstall_cmds='chmod 644 $oldlib'
  5558. old_postuninstall_cmds=
  5559. if test -n "$RANLIB"; then
  5560. case $host_os in
  5561. openbsd*)
  5562. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5563. ;;
  5564. *)
  5565. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5566. ;;
  5567. esac
  5568. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5569. fi
  5570. for cc_temp in $compiler""; do
  5571. case $cc_temp in
  5572. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5573. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5574. \-*) ;;
  5575. *) break;;
  5576. esac
  5577. done
  5578. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5579. # Only perform the check for file, if the check method requires it
  5580. case $deplibs_check_method in
  5581. file_magic*)
  5582. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  5584. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  5585. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. case $MAGIC_CMD in
  5589. [\\/*] | ?:[\\/]*)
  5590. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5591. ;;
  5592. *)
  5593. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5594. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5595. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5596. for ac_dir in $ac_dummy; do
  5597. IFS="$lt_save_ifs"
  5598. test -z "$ac_dir" && ac_dir=.
  5599. if test -f $ac_dir/${ac_tool_prefix}file; then
  5600. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5601. if test -n "$file_magic_test_file"; then
  5602. case $deplibs_check_method in
  5603. "file_magic "*)
  5604. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5605. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5606. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5607. $EGREP "$file_magic_regex" > /dev/null; then
  5608. :
  5609. else
  5610. cat <<EOF 1>&2
  5611. *** Warning: the command libtool uses to detect shared libraries,
  5612. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5613. *** The result is that libtool may fail to recognize shared libraries
  5614. *** as such. This will affect the creation of libtool libraries that
  5615. *** depend on shared libraries, but programs linked with such libtool
  5616. *** libraries will work regardless of this problem. Nevertheless, you
  5617. *** may want to report the problem to your system manager and/or to
  5618. *** bug-libtool@gnu.org
  5619. EOF
  5620. fi ;;
  5621. esac
  5622. fi
  5623. break
  5624. fi
  5625. done
  5626. IFS="$lt_save_ifs"
  5627. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5628. ;;
  5629. esac
  5630. fi
  5631. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5632. if test -n "$MAGIC_CMD"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5634. $as_echo "$MAGIC_CMD" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5640. if test -n "$ac_tool_prefix"; then
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  5642. $as_echo_n "checking for file... " >&6; }
  5643. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. case $MAGIC_CMD in
  5647. [\\/*] | ?:[\\/]*)
  5648. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5649. ;;
  5650. *)
  5651. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5652. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5653. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5654. for ac_dir in $ac_dummy; do
  5655. IFS="$lt_save_ifs"
  5656. test -z "$ac_dir" && ac_dir=.
  5657. if test -f $ac_dir/file; then
  5658. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5659. if test -n "$file_magic_test_file"; then
  5660. case $deplibs_check_method in
  5661. "file_magic "*)
  5662. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5663. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5664. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5665. $EGREP "$file_magic_regex" > /dev/null; then
  5666. :
  5667. else
  5668. cat <<EOF 1>&2
  5669. *** Warning: the command libtool uses to detect shared libraries,
  5670. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5671. *** The result is that libtool may fail to recognize shared libraries
  5672. *** as such. This will affect the creation of libtool libraries that
  5673. *** depend on shared libraries, but programs linked with such libtool
  5674. *** libraries will work regardless of this problem. Nevertheless, you
  5675. *** may want to report the problem to your system manager and/or to
  5676. *** bug-libtool@gnu.org
  5677. EOF
  5678. fi ;;
  5679. esac
  5680. fi
  5681. break
  5682. fi
  5683. done
  5684. IFS="$lt_save_ifs"
  5685. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5686. ;;
  5687. esac
  5688. fi
  5689. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5690. if test -n "$MAGIC_CMD"; then
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5692. $as_echo "$MAGIC_CMD" >&6; }
  5693. else
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5695. $as_echo "no" >&6; }
  5696. fi
  5697. else
  5698. MAGIC_CMD=:
  5699. fi
  5700. fi
  5701. fi
  5702. ;;
  5703. esac
  5704. enable_dlopen=no
  5705. enable_win32_dll=yes
  5706. # Check whether --enable-libtool-lock was given.
  5707. if test "${enable_libtool_lock+set}" = set; then :
  5708. enableval=$enable_libtool_lock;
  5709. fi
  5710. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5711. # Check whether --with-pic was given.
  5712. if test "${with_pic+set}" = set; then :
  5713. withval=$with_pic; pic_mode="$withval"
  5714. else
  5715. pic_mode=default
  5716. fi
  5717. test -z "$pic_mode" && pic_mode=default
  5718. # Use C for the default configuration in the libtool script
  5719. tagname=
  5720. lt_save_CC="$CC"
  5721. ac_ext=c
  5722. ac_cpp='$CPP $CPPFLAGS'
  5723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5726. # Source file extension for C test sources.
  5727. ac_ext=c
  5728. # Object file extension for compiled C test sources.
  5729. objext=o
  5730. objext=$objext
  5731. # Code to be used in simple compile tests
  5732. lt_simple_compile_test_code="int some_variable = 0;\n"
  5733. # Code to be used in simple link tests
  5734. lt_simple_link_test_code='int main(){return(0);}\n'
  5735. # If no C compiler was specified, use CC.
  5736. LTCC=${LTCC-"$CC"}
  5737. # Allow CC to be a program name with arguments.
  5738. compiler=$CC
  5739. # save warnings/boilerplate of simple test code
  5740. ac_outfile=conftest.$ac_objext
  5741. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5742. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5743. _lt_compiler_boilerplate=`cat conftest.err`
  5744. $rm conftest*
  5745. ac_outfile=conftest.$ac_objext
  5746. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5747. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5748. _lt_linker_boilerplate=`cat conftest.err`
  5749. $rm conftest*
  5750. #
  5751. # Check for any special shared library compilation flags.
  5752. #
  5753. lt_prog_cc_shlib=
  5754. if test "$GCC" = no; then
  5755. case $host_os in
  5756. sco3.2v5*)
  5757. lt_prog_cc_shlib='-belf'
  5758. ;;
  5759. esac
  5760. fi
  5761. if test -n "$lt_prog_cc_shlib"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5763. $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5764. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5765. else
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5767. $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5768. lt_cv_prog_cc_can_build_shared=no
  5769. fi
  5770. fi
  5771. #
  5772. # Check to make sure the static flag actually works.
  5773. #
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5775. $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
  5776. if test "${lt_prog_compiler_static_works+set}" = set; then :
  5777. $as_echo_n "(cached) " >&6
  5778. else
  5779. lt_prog_compiler_static_works=no
  5780. save_LDFLAGS="$LDFLAGS"
  5781. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5782. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5783. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5784. # The compiler can only warn and ignore the option if not recognized
  5785. # So say no if there are warnings
  5786. if test -s conftest.err; then
  5787. # Append any errors to the config.log.
  5788. cat conftest.err 1>&5
  5789. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5790. $SED '/^$/d' conftest.err >conftest.er2
  5791. if diff conftest.exp conftest.er2 >/dev/null; then
  5792. lt_prog_compiler_static_works=yes
  5793. fi
  5794. else
  5795. lt_prog_compiler_static_works=yes
  5796. fi
  5797. fi
  5798. $rm conftest*
  5799. LDFLAGS="$save_LDFLAGS"
  5800. fi
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
  5802. $as_echo "$lt_prog_compiler_static_works" >&6; }
  5803. if test x"$lt_prog_compiler_static_works" = xyes; then
  5804. :
  5805. else
  5806. lt_prog_compiler_static=
  5807. fi
  5808. ## CAVEAT EMPTOR:
  5809. ## There is no encapsulation within the following macros, do not change
  5810. ## the running order or otherwise move them around unless you know exactly
  5811. ## what you are doing...
  5812. lt_prog_compiler_no_builtin_flag=
  5813. if test "$GCC" = yes; then
  5814. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5816. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  5817. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  5818. $as_echo_n "(cached) " >&6
  5819. else
  5820. lt_cv_prog_compiler_rtti_exceptions=no
  5821. ac_outfile=conftest.$ac_objext
  5822. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5823. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5824. # Insert the option either (1) after the last *FLAGS variable, or
  5825. # (2) before a word containing "conftest.", or (3) at the end.
  5826. # Note that $ac_compile itself does not contain backslashes and begins
  5827. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5828. # The option is referenced via a variable to avoid confusing sed.
  5829. lt_compile=`echo "$ac_compile" | $SED \
  5830. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  5831. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5832. -e 's:$: $lt_compiler_flag:'`
  5833. (eval echo "\"\$as_me:6465: $lt_compile\"" >&5)
  5834. (eval "$lt_compile" 2>conftest.err)
  5835. ac_status=$?
  5836. cat conftest.err >&5
  5837. echo "$as_me:6469: \$? = $ac_status" >&5
  5838. if (exit $ac_status) && test -s "$ac_outfile"; then
  5839. # The compiler can only warn and ignore the option if not recognized
  5840. # So say no if there are warnings other than the usual output.
  5841. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5842. $SED '/^$/d' conftest.err >conftest.er2
  5843. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5844. lt_cv_prog_compiler_rtti_exceptions=yes
  5845. fi
  5846. fi
  5847. $rm conftest*
  5848. fi
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5850. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5851. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5852. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5853. else
  5854. :
  5855. fi
  5856. fi
  5857. lt_prog_compiler_wl=
  5858. lt_prog_compiler_pic=
  5859. lt_prog_compiler_static=
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  5861. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  5862. if test "$GCC" = yes; then
  5863. lt_prog_compiler_wl='-Wl,'
  5864. lt_prog_compiler_static='-static'
  5865. case $host_os in
  5866. aix*)
  5867. # All AIX code is PIC.
  5868. if test "$host_cpu" = ia64; then
  5869. # AIX 5 now supports IA64 processor
  5870. lt_prog_compiler_static='-Bstatic'
  5871. fi
  5872. ;;
  5873. amigaos*)
  5874. # FIXME: we need at least 68020 code to build shared libraries, but
  5875. # adding the `-m68020' flag to GCC prevents building anything better,
  5876. # like `-m68040'.
  5877. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5878. ;;
  5879. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5880. # PIC is the default for these OSes.
  5881. ;;
  5882. mingw* | pw32* | os2*)
  5883. # This hack is so that the source file can tell whether it is being
  5884. # built for inclusion in a dll (and should export symbols for example).
  5885. lt_prog_compiler_pic='-DDLL_EXPORT'
  5886. ;;
  5887. darwin* | rhapsody*)
  5888. # PIC is the default on this platform
  5889. # Common symbols not allowed in MH_DYLIB files
  5890. lt_prog_compiler_pic='-fno-common'
  5891. ;;
  5892. msdosdjgpp*)
  5893. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5894. # on systems that don't support them.
  5895. lt_prog_compiler_can_build_shared=no
  5896. enable_shared=no
  5897. ;;
  5898. sysv4*MP*)
  5899. if test -d /usr/nec; then
  5900. lt_prog_compiler_pic=-Kconform_pic
  5901. fi
  5902. ;;
  5903. hpux*)
  5904. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5905. # not for PA HP-UX.
  5906. case "$host_cpu" in
  5907. hppa*64*|ia64*)
  5908. # +Z the default
  5909. ;;
  5910. *)
  5911. lt_prog_compiler_pic='-fPIC'
  5912. ;;
  5913. esac
  5914. ;;
  5915. *)
  5916. lt_prog_compiler_pic='-fPIC'
  5917. ;;
  5918. esac
  5919. else
  5920. # PORTME Check for flag to pass linker flags through the system compiler.
  5921. case $host_os in
  5922. aix*)
  5923. lt_prog_compiler_wl='-Wl,'
  5924. if test "$host_cpu" = ia64; then
  5925. # AIX 5 now supports IA64 processor
  5926. lt_prog_compiler_static='-Bstatic'
  5927. else
  5928. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5929. fi
  5930. ;;
  5931. darwin*)
  5932. # PIC is the default on this platform
  5933. # Common symbols not allowed in MH_DYLIB files
  5934. case $cc_basename in
  5935. xlc*)
  5936. lt_prog_compiler_pic='-qnocommon'
  5937. lt_prog_compiler_wl='-Wl,'
  5938. ;;
  5939. esac
  5940. ;;
  5941. mingw* | pw32* | os2*)
  5942. # This hack is so that the source file can tell whether it is being
  5943. # built for inclusion in a dll (and should export symbols for example).
  5944. lt_prog_compiler_pic='-DDLL_EXPORT'
  5945. ;;
  5946. hpux9* | hpux10* | hpux11*)
  5947. lt_prog_compiler_wl='-Wl,'
  5948. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5949. # not for PA HP-UX.
  5950. case "$host_cpu" in
  5951. hppa*64*|ia64*)
  5952. # +Z the default
  5953. ;;
  5954. *)
  5955. lt_prog_compiler_pic='+Z'
  5956. ;;
  5957. esac
  5958. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5959. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5960. ;;
  5961. irix5* | irix6* | nonstopux*)
  5962. lt_prog_compiler_wl='-Wl,'
  5963. # PIC (with -KPIC) is the default.
  5964. lt_prog_compiler_static='-non_shared'
  5965. ;;
  5966. newsos6)
  5967. lt_prog_compiler_pic='-KPIC'
  5968. lt_prog_compiler_static='-Bstatic'
  5969. ;;
  5970. linux*)
  5971. case $cc_basename in
  5972. icc* | ecc*)
  5973. lt_prog_compiler_wl='-Wl,'
  5974. lt_prog_compiler_pic='-KPIC'
  5975. lt_prog_compiler_static='-static'
  5976. ;;
  5977. pgcc* | pgf77* | pgf90*)
  5978. # Portland Group compilers (*not* the Pentium gcc compiler,
  5979. # which looks to be a dead project)
  5980. lt_prog_compiler_wl='-Wl,'
  5981. lt_prog_compiler_pic='-fpic'
  5982. lt_prog_compiler_static='-static'
  5983. ;;
  5984. ccc*)
  5985. lt_prog_compiler_wl='-Wl,'
  5986. # All Alpha code is PIC.
  5987. lt_prog_compiler_static='-non_shared'
  5988. ;;
  5989. esac
  5990. ;;
  5991. osf3* | osf4* | osf5*)
  5992. lt_prog_compiler_wl='-Wl,'
  5993. # All OSF/1 code is PIC.
  5994. lt_prog_compiler_static='-non_shared'
  5995. ;;
  5996. sco3.2v5*)
  5997. lt_prog_compiler_pic='-Kpic'
  5998. lt_prog_compiler_static='-dn'
  5999. ;;
  6000. solaris*)
  6001. lt_prog_compiler_pic='-KPIC'
  6002. lt_prog_compiler_static='-Bstatic'
  6003. case $cc_basename in
  6004. f77* | f90* | f95*)
  6005. lt_prog_compiler_wl='-Qoption ld ';;
  6006. *)
  6007. lt_prog_compiler_wl='-Wl,';;
  6008. esac
  6009. ;;
  6010. sunos4*)
  6011. lt_prog_compiler_wl='-Qoption ld '
  6012. lt_prog_compiler_pic='-PIC'
  6013. lt_prog_compiler_static='-Bstatic'
  6014. ;;
  6015. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6016. lt_prog_compiler_wl='-Wl,'
  6017. lt_prog_compiler_pic='-KPIC'
  6018. lt_prog_compiler_static='-Bstatic'
  6019. ;;
  6020. sysv4*MP*)
  6021. if test -d /usr/nec ;then
  6022. lt_prog_compiler_pic='-Kconform_pic'
  6023. lt_prog_compiler_static='-Bstatic'
  6024. fi
  6025. ;;
  6026. unicos*)
  6027. lt_prog_compiler_wl='-Wl,'
  6028. lt_prog_compiler_can_build_shared=no
  6029. ;;
  6030. uts4*)
  6031. lt_prog_compiler_pic='-pic'
  6032. lt_prog_compiler_static='-Bstatic'
  6033. ;;
  6034. *)
  6035. lt_prog_compiler_can_build_shared=no
  6036. ;;
  6037. esac
  6038. fi
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6040. $as_echo "$lt_prog_compiler_pic" >&6; }
  6041. #
  6042. # Check to make sure the PIC flag actually works.
  6043. #
  6044. if test -n "$lt_prog_compiler_pic"; then
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6046. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6047. if test "${lt_prog_compiler_pic_works+set}" = set; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. lt_prog_compiler_pic_works=no
  6051. ac_outfile=conftest.$ac_objext
  6052. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6053. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6054. # Insert the option either (1) after the last *FLAGS variable, or
  6055. # (2) before a word containing "conftest.", or (3) at the end.
  6056. # Note that $ac_compile itself does not contain backslashes and begins
  6057. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6058. # The option is referenced via a variable to avoid confusing sed.
  6059. lt_compile=`echo "$ac_compile" | $SED \
  6060. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6061. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6062. -e 's:$: $lt_compiler_flag:'`
  6063. (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
  6064. (eval "$lt_compile" 2>conftest.err)
  6065. ac_status=$?
  6066. cat conftest.err >&5
  6067. echo "$as_me:6731: \$? = $ac_status" >&5
  6068. if (exit $ac_status) && test -s "$ac_outfile"; then
  6069. # The compiler can only warn and ignore the option if not recognized
  6070. # So say no if there are warnings other than the usual output.
  6071. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  6072. $SED '/^$/d' conftest.err >conftest.er2
  6073. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  6074. lt_prog_compiler_pic_works=yes
  6075. fi
  6076. fi
  6077. $rm conftest*
  6078. fi
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
  6080. $as_echo "$lt_prog_compiler_pic_works" >&6; }
  6081. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6082. case $lt_prog_compiler_pic in
  6083. "" | " "*) ;;
  6084. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6085. esac
  6086. else
  6087. lt_prog_compiler_pic=
  6088. lt_prog_compiler_can_build_shared=no
  6089. fi
  6090. fi
  6091. case "$host_os" in
  6092. # For platforms which do not support PIC, -DPIC is meaningless:
  6093. *djgpp*)
  6094. lt_prog_compiler_pic=
  6095. ;;
  6096. *)
  6097. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6098. ;;
  6099. esac
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6101. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6102. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. lt_cv_prog_compiler_c_o=no
  6106. $rm -r conftest 2>/dev/null
  6107. mkdir conftest
  6108. cd conftest
  6109. mkdir out
  6110. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6111. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6112. # Insert the option either (1) after the last *FLAGS variable, or
  6113. # (2) before a word containing "conftest.", or (3) at the end.
  6114. # Note that $ac_compile itself does not contain backslashes and begins
  6115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6116. lt_compile=`echo "$ac_compile" | $SED \
  6117. -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  6118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6119. -e 's:$: $lt_compiler_flag:'`
  6120. (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
  6121. (eval "$lt_compile" 2>out/conftest.err)
  6122. ac_status=$?
  6123. cat out/conftest.err >&5
  6124. echo "$as_me:6793: \$? = $ac_status" >&5
  6125. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6126. then
  6127. # The compiler can only warn and ignore the option if not recognized
  6128. # So say no if there are warnings
  6129. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  6130. $SED '/^$/d' out/conftest.err >out/conftest.er2
  6131. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6132. lt_cv_prog_compiler_c_o=yes
  6133. fi
  6134. fi
  6135. chmod u+w .
  6136. $rm conftest*
  6137. # SGI C++ compiler will create directory out/ii_files/ for
  6138. # template instantiation
  6139. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6140. $rm out/* && rmdir out
  6141. cd ..
  6142. rmdir conftest
  6143. $rm conftest*
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6146. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6147. hard_links="nottested"
  6148. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6149. # do not overwrite the value of need_locks provided by the user
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6151. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6152. hard_links=yes
  6153. $rm conftest*
  6154. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6155. touch conftest.a
  6156. ln conftest.a conftest.b 2>&5 || hard_links=no
  6157. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6159. $as_echo "$hard_links" >&6; }
  6160. if test "$hard_links" = no; then
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6162. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6163. need_locks=warn
  6164. fi
  6165. else
  6166. need_locks=no
  6167. fi
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6169. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6170. runpath_var=
  6171. allow_undefined_flag=
  6172. enable_shared_with_static_runtimes=no
  6173. archive_cmds=
  6174. archive_expsym_cmds=
  6175. old_archive_From_new_cmds=
  6176. old_archive_from_expsyms_cmds=
  6177. export_dynamic_flag_spec=
  6178. whole_archive_flag_spec=
  6179. thread_safe_flag_spec=
  6180. hardcode_libdir_flag_spec=
  6181. hardcode_libdir_flag_spec_ld=
  6182. hardcode_libdir_separator=
  6183. hardcode_direct=no
  6184. hardcode_minus_L=no
  6185. hardcode_shlibpath_var=unsupported
  6186. link_all_deplibs=unknown
  6187. hardcode_automatic=no
  6188. module_cmds=
  6189. module_expsym_cmds=
  6190. always_export_symbols=no
  6191. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6192. # include_expsyms should be a list of space-separated symbols to be *always*
  6193. # included in the symbol list
  6194. include_expsyms=
  6195. # exclude_expsyms can be an extended regexp of symbols to exclude
  6196. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6197. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6198. # as well as any symbol that contains `d'.
  6199. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6200. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6201. # platforms (ab)use it in PIC code, but their linkers get confused if
  6202. # the symbol is explicitly referenced. Since portable code cannot
  6203. # rely on this symbol name, it's probably fine to never include it in
  6204. # preloaded symbol tables.
  6205. extract_expsyms_cmds=
  6206. # Just being paranoid about ensuring that cc_basename is set.
  6207. for cc_temp in $compiler""; do
  6208. case $cc_temp in
  6209. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6210. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6211. \-*) ;;
  6212. *) break;;
  6213. esac
  6214. done
  6215. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6216. case $host_os in
  6217. cygwin* | mingw* | pw32*)
  6218. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6219. # When not using gcc, we currently assume that we are using
  6220. # Microsoft Visual C++.
  6221. if test "$GCC" != yes; then
  6222. with_gnu_ld=no
  6223. fi
  6224. ;;
  6225. openbsd*)
  6226. with_gnu_ld=no
  6227. ;;
  6228. esac
  6229. ld_shlibs=yes
  6230. if test "$with_gnu_ld" = yes; then
  6231. # If archive_cmds runs LD, not CC, wlarc should be empty
  6232. wlarc='${wl}'
  6233. # Set some defaults for GNU ld with shared library support. These
  6234. # are reset later if shared libraries are not supported. Putting them
  6235. # here allows them to be overridden if necessary.
  6236. runpath_var=LD_RUN_PATH
  6237. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6238. export_dynamic_flag_spec='${wl}--export-dynamic'
  6239. # ancient GNU ld didn't support --whole-archive et. al.
  6240. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6241. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6242. else
  6243. whole_archive_flag_spec=
  6244. fi
  6245. supports_anon_versioning=no
  6246. case `$LD -v 2>/dev/null` in
  6247. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6248. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6249. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6250. *\ 2.11.*) ;; # other 2.11 versions
  6251. *) supports_anon_versioning=yes ;;
  6252. esac
  6253. # See if GNU ld supports shared libraries.
  6254. case $host_os in
  6255. aix3* | aix4* | aix5*)
  6256. # On AIX/PPC, the GNU linker is very broken
  6257. if test "$host_cpu" != ia64; then
  6258. ld_shlibs=no
  6259. cat <<EOF 1>&2
  6260. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6261. *** to be unable to reliably create shared libraries on AIX.
  6262. *** Therefore, libtool is disabling shared libraries support. If you
  6263. *** really care for shared libraries, you may want to modify your PATH
  6264. *** so that a non-GNU linker is found, and then restart.
  6265. EOF
  6266. fi
  6267. ;;
  6268. amigaos*)
  6269. 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)'
  6270. hardcode_libdir_flag_spec='-L$libdir'
  6271. hardcode_minus_L=yes
  6272. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6273. # that the semantics of dynamic libraries on AmigaOS, at least up
  6274. # to version 4, is to share data among multiple programs linked
  6275. # with the same dynamic library. Since this doesn't match the
  6276. # behavior of shared libraries on other platforms, we can't use
  6277. # them.
  6278. ld_shlibs=no
  6279. ;;
  6280. beos*)
  6281. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6282. allow_undefined_flag=unsupported
  6283. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6284. # support --undefined. This deserves some investigation. FIXME
  6285. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6286. else
  6287. ld_shlibs=no
  6288. fi
  6289. ;;
  6290. cygwin* | mingw* | pw32*)
  6291. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6292. # as there is no search path for DLLs.
  6293. hardcode_libdir_flag_spec='-L$libdir'
  6294. allow_undefined_flag=unsupported
  6295. always_export_symbols=no
  6296. enable_shared_with_static_runtimes=yes
  6297. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6298. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6299. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6300. # If the export-symbols file already is a .def file (1st line
  6301. # is EXPORTS), use it as is; otherwise, prepend...
  6302. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6303. cp $export_symbols $output_objdir/$soname.def;
  6304. else
  6305. echo EXPORTS > $output_objdir/$soname.def;
  6306. cat $export_symbols >> $output_objdir/$soname.def;
  6307. fi~
  6308. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6309. else
  6310. ld_shlibs=no
  6311. fi
  6312. ;;
  6313. linux*)
  6314. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6315. tmp_addflag=
  6316. case $cc_basename,$host_cpu in
  6317. pgcc*) # Portland Group C compiler
  6318. whole_archive_flag_spec=
  6319. ;;
  6320. pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  6321. whole_archive_flag_spec=
  6322. tmp_addflag=' -fpic -Mnomain' ;;
  6323. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6324. tmp_addflag=' -i_dynamic' ;;
  6325. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6326. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6327. ifc* | ifort*) # Intel Fortran compiler
  6328. tmp_addflag=' -nofor_main' ;;
  6329. esac
  6330. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6331. if test $supports_anon_versioning = yes; then
  6332. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6333. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6334. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6335. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6336. fi
  6337. else
  6338. ld_shlibs=no
  6339. fi
  6340. ;;
  6341. netbsd*)
  6342. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6343. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6344. wlarc=
  6345. else
  6346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6347. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6348. fi
  6349. ;;
  6350. solaris* | sysv5*)
  6351. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6352. ld_shlibs=no
  6353. cat <<EOF 1>&2
  6354. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6355. *** create shared libraries on Solaris systems. Therefore, libtool
  6356. *** is disabling shared libraries support. We urge you to upgrade GNU
  6357. *** binutils to release 2.9.1 or newer. Another option is to modify
  6358. *** your PATH or compiler configuration so that the native linker is
  6359. *** used, and then restart.
  6360. EOF
  6361. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6362. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6363. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6364. else
  6365. ld_shlibs=no
  6366. fi
  6367. ;;
  6368. sunos4*)
  6369. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6370. wlarc=
  6371. hardcode_direct=yes
  6372. hardcode_shlibpath_var=no
  6373. ;;
  6374. *)
  6375. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6376. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6377. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6378. else
  6379. ld_shlibs=no
  6380. fi
  6381. ;;
  6382. esac
  6383. if test "$ld_shlibs" = no; then
  6384. runpath_var=
  6385. hardcode_libdir_flag_spec=
  6386. export_dynamic_flag_spec=
  6387. whole_archive_flag_spec=
  6388. fi
  6389. else
  6390. # PORTME fill in a description of your system's linker (not GNU ld)
  6391. case $host_os in
  6392. aix3*)
  6393. allow_undefined_flag=unsupported
  6394. always_export_symbols=yes
  6395. 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'
  6396. # Note: this linker hardcodes the directories in LIBPATH if there
  6397. # are no directories specified by -L.
  6398. hardcode_minus_L=yes
  6399. if test "$GCC" = yes && test -z "$link_static_flag"; then
  6400. # Neither direct hardcoding nor static linking is supported with a
  6401. # broken collect2.
  6402. hardcode_direct=unsupported
  6403. fi
  6404. ;;
  6405. aix4* | aix5*)
  6406. if test "$host_cpu" = ia64; then
  6407. # On IA64, the linker does run time linking by default, so we don't
  6408. # have to do anything special.
  6409. aix_use_runtimelinking=no
  6410. exp_sym_flag='-Bexport'
  6411. no_entry_flag=""
  6412. else
  6413. # If we're using GNU nm, then we don't want the "-C" option.
  6414. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6415. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6416. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6417. else
  6418. 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'
  6419. fi
  6420. aix_use_runtimelinking=no
  6421. # Test if we are trying to use run time linking or normal
  6422. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6423. # need to do runtime linking.
  6424. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6425. for ld_flag in $LDFLAGS; do
  6426. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6427. aix_use_runtimelinking=yes
  6428. break
  6429. fi
  6430. done
  6431. esac
  6432. exp_sym_flag='-bexport'
  6433. no_entry_flag='-bnoentry'
  6434. fi
  6435. # When large executables or shared objects are built, AIX ld can
  6436. # have problems creating the table of contents. If linking a library
  6437. # or program results in "error TOC overflow" add -mminimal-toc to
  6438. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6439. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6440. archive_cmds=''
  6441. hardcode_direct=yes
  6442. hardcode_libdir_separator=':'
  6443. link_all_deplibs=yes
  6444. if test "$GCC" = yes; then
  6445. case $host_os in aix4.[012]|aix4.[012].*)
  6446. # We only want to do this on AIX 4.2 and lower, the check
  6447. # below for broken collect2 doesn't work under 4.3+
  6448. collect2name=`${CC} -print-prog-name=collect2`
  6449. if test -f "$collect2name" && \
  6450. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6451. then
  6452. # We have reworked collect2
  6453. hardcode_direct=yes
  6454. else
  6455. # We have old collect2
  6456. hardcode_direct=unsupported
  6457. # It fails to find uninstalled libraries when the uninstalled
  6458. # path is not listed in the libpath. Setting hardcode_minus_L
  6459. # to unsupported forces relinking
  6460. hardcode_minus_L=yes
  6461. hardcode_libdir_flag_spec='-L$libdir'
  6462. hardcode_libdir_separator=
  6463. fi
  6464. esac
  6465. shared_flag='-shared'
  6466. if test "$aix_use_runtimelinking" = yes; then
  6467. shared_flag="$shared_flag "'${wl}-G'
  6468. fi
  6469. else
  6470. # not using gcc
  6471. if test "$host_cpu" = ia64; then
  6472. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6473. # chokes on -Wl,-G. The following line is correct:
  6474. shared_flag='-G'
  6475. else
  6476. if test "$aix_use_runtimelinking" = yes; then
  6477. shared_flag='${wl}-G'
  6478. else
  6479. shared_flag='${wl}-bM:SRE'
  6480. fi
  6481. fi
  6482. fi
  6483. # It seems that -bexpall does not export symbols beginning with
  6484. # underscore (_), so it is better to generate a list of symbols to export.
  6485. always_export_symbols=yes
  6486. if test "$aix_use_runtimelinking" = yes; then
  6487. # Warning - without using the other runtime loading flags (-brtl),
  6488. # -berok will link without error, but may produce a broken library.
  6489. allow_undefined_flag='-berok'
  6490. # Determine the default libpath from the value encoded in an empty executable.
  6491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. int
  6494. main ()
  6495. {
  6496. ;
  6497. return 0;
  6498. }
  6499. _ACEOF
  6500. if ac_fn_c_try_link "$LINENO"; then :
  6501. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6502. }'`
  6503. # Check for a 64-bit object if we didn't find anything.
  6504. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6505. }'`; fi
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext \
  6508. conftest$ac_exeext conftest.$ac_ext
  6509. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6510. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6511. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6512. else
  6513. if test "$host_cpu" = ia64; then
  6514. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6515. allow_undefined_flag="-z nodefs"
  6516. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  6517. else
  6518. # Determine the default libpath from the value encoded in an empty executable.
  6519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. /* end confdefs.h. */
  6521. int
  6522. main ()
  6523. {
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. if ac_fn_c_try_link "$LINENO"; then :
  6529. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6530. }'`
  6531. # Check for a 64-bit object if we didn't find anything.
  6532. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6533. }'`; fi
  6534. fi
  6535. rm -f core conftest.err conftest.$ac_objext \
  6536. conftest$ac_exeext conftest.$ac_ext
  6537. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6538. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6539. # Warning - without using the other run time loading flags,
  6540. # -berok will link without error, but may produce a broken library.
  6541. no_undefined_flag=' ${wl}-bernotok'
  6542. allow_undefined_flag=' ${wl}-berok'
  6543. # -bexpall does not export symbols beginning with underscore (_)
  6544. always_export_symbols=yes
  6545. # Exported symbols can be pulled into shared objects from archives
  6546. whole_archive_flag_spec=' '
  6547. archive_cmds_need_lc=yes
  6548. # This is similar to how AIX traditionally builds it's shared libraries.
  6549. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6550. fi
  6551. fi
  6552. ;;
  6553. amigaos*)
  6554. 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)'
  6555. hardcode_libdir_flag_spec='-L$libdir'
  6556. hardcode_minus_L=yes
  6557. # see comment about different semantics on the GNU ld section
  6558. ld_shlibs=no
  6559. ;;
  6560. bsdi[45]*)
  6561. export_dynamic_flag_spec=-rdynamic
  6562. ;;
  6563. cygwin* | mingw* | pw32*)
  6564. # When not using gcc, we currently assume that we are using
  6565. # Microsoft Visual C++.
  6566. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6567. # no search path for DLLs.
  6568. hardcode_libdir_flag_spec=' '
  6569. allow_undefined_flag=unsupported
  6570. # Tell ltmain to make .lib files, not .a files.
  6571. libext=lib
  6572. # Tell ltmain to make .dll files, not .so files.
  6573. shrext_cmds=".dll"
  6574. # FIXME: Setting linknames here is a bad hack.
  6575. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6576. # The linker will automatically build a .lib file if we build a DLL.
  6577. old_archive_From_new_cmds='true'
  6578. # FIXME: Should let the user specify the lib program.
  6579. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6580. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6581. enable_shared_with_static_runtimes=yes
  6582. ;;
  6583. darwin* | rhapsody*)
  6584. case "$host_os" in
  6585. rhapsody* | darwin1.[012])
  6586. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6587. ;;
  6588. *) # Darwin 1.3 on
  6589. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6590. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6591. else
  6592. case ${MACOSX_DEPLOYMENT_TARGET} in
  6593. 10.[012])
  6594. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6595. ;;
  6596. 10.*)
  6597. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6598. ;;
  6599. esac
  6600. fi
  6601. ;;
  6602. esac
  6603. archive_cmds_need_lc=no
  6604. hardcode_direct=no
  6605. hardcode_automatic=yes
  6606. hardcode_shlibpath_var=unsupported
  6607. whole_archive_flag_spec=''
  6608. link_all_deplibs=yes
  6609. if test "$GCC" = yes ; then
  6610. output_verbose_link_cmd='echo'
  6611. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6612. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6613. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6614. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6615. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6616. else
  6617. case $cc_basename in
  6618. xlc*)
  6619. output_verbose_link_cmd='echo'
  6620. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6621. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6622. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  6623. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6624. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6625. ;;
  6626. *)
  6627. ld_shlibs=no
  6628. ;;
  6629. esac
  6630. fi
  6631. ;;
  6632. dgux*)
  6633. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6634. hardcode_libdir_flag_spec='-L$libdir'
  6635. hardcode_shlibpath_var=no
  6636. ;;
  6637. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6638. # support. Future versions do this automatically, but an explicit c++rt0.o
  6639. # does not break anything, and helps significantly (at the cost of a little
  6640. # extra space).
  6641. freebsd2.2*)
  6642. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6643. hardcode_libdir_flag_spec='-R$libdir'
  6644. hardcode_direct=yes
  6645. hardcode_shlibpath_var=no
  6646. ;;
  6647. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6648. freebsd2.*)
  6649. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6650. hardcode_direct=yes
  6651. hardcode_minus_L=yes
  6652. hardcode_shlibpath_var=no
  6653. ;;
  6654. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6655. freebsd* | kfreebsd*-gnu | dragonfly*)
  6656. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6657. hardcode_libdir_flag_spec='-R$libdir'
  6658. hardcode_direct=yes
  6659. hardcode_shlibpath_var=no
  6660. ;;
  6661. hpux9*)
  6662. if test "$GCC" = yes; then
  6663. 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'
  6664. else
  6665. 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'
  6666. fi
  6667. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6668. hardcode_libdir_separator=:
  6669. hardcode_direct=yes
  6670. # hardcode_minus_L: Not really in the search PATH,
  6671. # but as the default location of the library.
  6672. hardcode_minus_L=yes
  6673. export_dynamic_flag_spec='${wl}-E'
  6674. ;;
  6675. hpux10* | hpux11*)
  6676. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6677. case "$host_cpu" in
  6678. hppa*64*|ia64*)
  6679. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6680. ;;
  6681. *)
  6682. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6683. ;;
  6684. esac
  6685. else
  6686. case "$host_cpu" in
  6687. hppa*64*|ia64*)
  6688. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6689. ;;
  6690. *)
  6691. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6692. ;;
  6693. esac
  6694. fi
  6695. if test "$with_gnu_ld" = no; then
  6696. case "$host_cpu" in
  6697. hppa*64*)
  6698. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6699. hardcode_libdir_flag_spec_ld='+b $libdir'
  6700. hardcode_libdir_separator=:
  6701. hardcode_direct=no
  6702. hardcode_shlibpath_var=no
  6703. ;;
  6704. ia64*)
  6705. hardcode_libdir_flag_spec='-L$libdir'
  6706. hardcode_direct=no
  6707. hardcode_shlibpath_var=no
  6708. # hardcode_minus_L: Not really in the search PATH,
  6709. # but as the default location of the library.
  6710. hardcode_minus_L=yes
  6711. ;;
  6712. *)
  6713. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6714. hardcode_libdir_separator=:
  6715. hardcode_direct=yes
  6716. export_dynamic_flag_spec='${wl}-E'
  6717. # hardcode_minus_L: Not really in the search PATH,
  6718. # but as the default location of the library.
  6719. hardcode_minus_L=yes
  6720. ;;
  6721. esac
  6722. fi
  6723. ;;
  6724. irix5* | irix6* | nonstopux*)
  6725. if test "$GCC" = yes; then
  6726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6727. else
  6728. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6729. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6730. fi
  6731. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6732. hardcode_libdir_separator=:
  6733. link_all_deplibs=yes
  6734. ;;
  6735. netbsd*)
  6736. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6737. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6738. else
  6739. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6740. fi
  6741. hardcode_libdir_flag_spec='-R$libdir'
  6742. hardcode_direct=yes
  6743. hardcode_shlibpath_var=no
  6744. ;;
  6745. newsos6)
  6746. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6747. hardcode_direct=yes
  6748. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6749. hardcode_libdir_separator=:
  6750. hardcode_shlibpath_var=no
  6751. ;;
  6752. openbsd*)
  6753. hardcode_direct=yes
  6754. hardcode_shlibpath_var=no
  6755. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6756. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6757. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6758. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6759. export_dynamic_flag_spec='${wl}-E'
  6760. else
  6761. case $host_os in
  6762. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6763. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6764. hardcode_libdir_flag_spec='-R$libdir'
  6765. ;;
  6766. *)
  6767. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6768. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6769. ;;
  6770. esac
  6771. fi
  6772. ;;
  6773. os2*)
  6774. hardcode_libdir_flag_spec='-L$libdir'
  6775. hardcode_minus_L=yes
  6776. allow_undefined_flag=unsupported
  6777. 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'
  6778. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6779. ;;
  6780. osf3*)
  6781. if test "$GCC" = yes; then
  6782. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6783. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6784. else
  6785. allow_undefined_flag=' -expect_unresolved \*'
  6786. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6787. fi
  6788. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6789. hardcode_libdir_separator=:
  6790. ;;
  6791. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6792. if test "$GCC" = yes; then
  6793. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6794. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6795. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6796. else
  6797. allow_undefined_flag=' -expect_unresolved \*'
  6798. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6799. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6800. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6801. # Both c and cxx compiler support -rpath directly
  6802. hardcode_libdir_flag_spec='-rpath $libdir'
  6803. fi
  6804. hardcode_libdir_separator=:
  6805. ;;
  6806. sco3.2v5*)
  6807. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6808. hardcode_shlibpath_var=no
  6809. export_dynamic_flag_spec='${wl}-Bexport'
  6810. runpath_var=LD_RUN_PATH
  6811. hardcode_runpath_var=yes
  6812. ;;
  6813. solaris*)
  6814. no_undefined_flag=' -z text'
  6815. if test "$GCC" = yes; then
  6816. wlarc='${wl}'
  6817. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6818. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6819. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6820. else
  6821. wlarc=''
  6822. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6823. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6824. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6825. fi
  6826. hardcode_libdir_flag_spec='-R$libdir'
  6827. hardcode_shlibpath_var=no
  6828. case $host_os in
  6829. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6830. *)
  6831. # The compiler driver will combine linker options so we
  6832. # cannot just pass the convience library names through
  6833. # without $wl, iff we do not link with $LD.
  6834. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6835. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6836. case $wlarc in
  6837. '')
  6838. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6839. *)
  6840. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  6841. esac ;;
  6842. esac
  6843. link_all_deplibs=yes
  6844. ;;
  6845. sunos4*)
  6846. if test "x$host_vendor" = xsequent; then
  6847. # Use $CC to link under sequent, because it throws in some extra .o
  6848. # files that make .init and .fini sections work.
  6849. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6850. else
  6851. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6852. fi
  6853. hardcode_libdir_flag_spec='-L$libdir'
  6854. hardcode_direct=yes
  6855. hardcode_minus_L=yes
  6856. hardcode_shlibpath_var=no
  6857. ;;
  6858. sysv4)
  6859. case $host_vendor in
  6860. sni)
  6861. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6862. hardcode_direct=yes # is this really true???
  6863. ;;
  6864. siemens)
  6865. ## LD is ld it makes a PLAMLIB
  6866. ## CC just makes a GrossModule.
  6867. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6868. reload_cmds='$CC -r -o $output$reload_objs'
  6869. hardcode_direct=no
  6870. ;;
  6871. motorola)
  6872. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6873. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6874. ;;
  6875. esac
  6876. runpath_var='LD_RUN_PATH'
  6877. hardcode_shlibpath_var=no
  6878. ;;
  6879. sysv4.3*)
  6880. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6881. hardcode_shlibpath_var=no
  6882. export_dynamic_flag_spec='-Bexport'
  6883. ;;
  6884. sysv4*MP*)
  6885. if test -d /usr/nec; then
  6886. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6887. hardcode_shlibpath_var=no
  6888. runpath_var=LD_RUN_PATH
  6889. hardcode_runpath_var=yes
  6890. ld_shlibs=yes
  6891. fi
  6892. ;;
  6893. sysv4.2uw2*)
  6894. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6895. hardcode_direct=yes
  6896. hardcode_minus_L=no
  6897. hardcode_shlibpath_var=no
  6898. hardcode_runpath_var=yes
  6899. runpath_var=LD_RUN_PATH
  6900. ;;
  6901. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6902. no_undefined_flag='${wl}-z ${wl}text'
  6903. if test "$GCC" = yes; then
  6904. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6905. else
  6906. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6907. fi
  6908. runpath_var='LD_RUN_PATH'
  6909. hardcode_shlibpath_var=no
  6910. ;;
  6911. sysv5*)
  6912. no_undefined_flag=' -z text'
  6913. # $CC -shared without GNU ld will not create a library from C++
  6914. # object files and a static libstdc++, better avoid it by now
  6915. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6916. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6917. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6918. hardcode_libdir_flag_spec=
  6919. hardcode_shlibpath_var=no
  6920. runpath_var='LD_RUN_PATH'
  6921. ;;
  6922. uts4*)
  6923. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6924. hardcode_libdir_flag_spec='-L$libdir'
  6925. hardcode_shlibpath_var=no
  6926. ;;
  6927. *)
  6928. ld_shlibs=no
  6929. ;;
  6930. esac
  6931. fi
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  6933. $as_echo "$ld_shlibs" >&6; }
  6934. test "$ld_shlibs" = no && can_build_shared=no
  6935. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6936. if test "$GCC" = yes; then
  6937. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6938. fi
  6939. #
  6940. # Do we need to explicitly link libc?
  6941. #
  6942. case "x$archive_cmds_need_lc" in
  6943. x|xyes)
  6944. # Assume -lc should be added
  6945. archive_cmds_need_lc=yes
  6946. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6947. case $archive_cmds in
  6948. *'~'*)
  6949. # FIXME: we may have to deal with multi-command sequences.
  6950. ;;
  6951. '$CC '*)
  6952. # Test whether the compiler implicitly links with -lc since on some
  6953. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6954. # to ld, don't add -lc before -lgcc.
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  6956. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  6957. $rm conftest*
  6958. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6959. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6960. (eval $ac_compile) 2>&5
  6961. ac_status=$?
  6962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6963. test $ac_status = 0; } 2>conftest.err; then
  6964. soname=conftest
  6965. lib=conftest
  6966. libobjs=conftest.$ac_objext
  6967. deplibs=
  6968. wl=$lt_prog_compiler_wl
  6969. compiler_flags=-v
  6970. linker_flags=-v
  6971. verstring=
  6972. output_objdir=.
  6973. libname=conftest
  6974. lt_save_allow_undefined_flag=$allow_undefined_flag
  6975. allow_undefined_flag=
  6976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  6977. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6978. ac_status=$?
  6979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6980. test $ac_status = 0; }
  6981. then
  6982. archive_cmds_need_lc=no
  6983. else
  6984. archive_cmds_need_lc=yes
  6985. fi
  6986. allow_undefined_flag=$lt_save_allow_undefined_flag
  6987. else
  6988. cat conftest.err 1>&5
  6989. fi
  6990. $rm conftest*
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  6992. $as_echo "$archive_cmds_need_lc" >&6; }
  6993. ;;
  6994. esac
  6995. fi
  6996. ;;
  6997. esac
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  6999. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7000. library_names_spec=
  7001. libname_spec='lib$name'
  7002. soname_spec=
  7003. shrext_cmds=".so"
  7004. postinstall_cmds=
  7005. postuninstall_cmds=
  7006. finish_cmds=
  7007. finish_eval=
  7008. shlibpath_var=
  7009. shlibpath_overrides_runpath=unknown
  7010. version_type=none
  7011. dynamic_linker="$host_os ld.so"
  7012. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7013. if test "$GCC" = yes; then
  7014. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7015. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7016. # if the path contains ";" then we assume it to be the separator
  7017. # otherwise default to the standard path separator (i.e. ":") - it is
  7018. # assumed that no part of a normal pathname contains ";" but that should
  7019. # okay in the real world where ";" in dirpaths is itself problematic.
  7020. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7021. else
  7022. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7023. fi
  7024. else
  7025. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7026. fi
  7027. need_lib_prefix=unknown
  7028. hardcode_into_libs=no
  7029. # when you set need_version to no, make sure it does not cause -set_version
  7030. # flags to be left without arguments
  7031. need_version=unknown
  7032. case $host_os in
  7033. aix3*)
  7034. version_type=linux
  7035. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7036. shlibpath_var=LIBPATH
  7037. # AIX 3 has no versioning support, so we append a major version to the name.
  7038. soname_spec='${libname}${release}${shared_ext}$major'
  7039. ;;
  7040. aix4* | aix5*)
  7041. version_type=linux
  7042. need_lib_prefix=no
  7043. need_version=no
  7044. hardcode_into_libs=yes
  7045. if test "$host_cpu" = ia64; then
  7046. # AIX 5 supports IA64
  7047. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7048. shlibpath_var=LD_LIBRARY_PATH
  7049. else
  7050. # With GCC up to 2.95.x, collect2 would create an import file
  7051. # for dependence libraries. The import file would start with
  7052. # the line `#! .'. This would cause the generated library to
  7053. # depend on `.', always an invalid library. This was fixed in
  7054. # development snapshots of GCC prior to 3.0.
  7055. case $host_os in
  7056. aix4 | aix4.[01] | aix4.[01].*)
  7057. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7058. echo ' yes '
  7059. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7060. :
  7061. else
  7062. can_build_shared=no
  7063. fi
  7064. ;;
  7065. esac
  7066. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7067. # soname into executable. Probably we can add versioning support to
  7068. # collect2, so additional links can be useful in future.
  7069. if test "$aix_use_runtimelinking" = yes; then
  7070. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7071. # instead of lib<name>.a to let people know that these are not
  7072. # typical AIX shared libraries.
  7073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7074. else
  7075. # We preserve .a as extension for shared libraries through AIX4.2
  7076. # and later when we are not doing run time linking.
  7077. library_names_spec='${libname}${release}.a $libname.a'
  7078. soname_spec='${libname}${release}${shared_ext}$major'
  7079. fi
  7080. shlibpath_var=LIBPATH
  7081. fi
  7082. ;;
  7083. amigaos*)
  7084. library_names_spec='$libname.ixlibrary $libname.a'
  7085. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7086. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  7087. ;;
  7088. beos*)
  7089. library_names_spec='${libname}${shared_ext}'
  7090. dynamic_linker="$host_os ld.so"
  7091. shlibpath_var=LIBRARY_PATH
  7092. ;;
  7093. bsdi[45]*)
  7094. version_type=linux
  7095. need_version=no
  7096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7097. soname_spec='${libname}${release}${shared_ext}$major'
  7098. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7099. shlibpath_var=LD_LIBRARY_PATH
  7100. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7101. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7102. # the default ld.so.conf also contains /usr/contrib/lib and
  7103. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7104. # libtool to hard-code these into programs
  7105. ;;
  7106. cygwin* | mingw* | pw32*)
  7107. version_type=windows
  7108. shrext_cmds=".dll"
  7109. need_version=no
  7110. need_lib_prefix=no
  7111. case $GCC,$host_os in
  7112. yes,cygwin* | yes,mingw* | yes,pw32*)
  7113. library_names_spec='$libname.dll.a'
  7114. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7115. postinstall_cmds='base_file=`basename \${file}`~
  7116. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7117. dldir=$destdir/`dirname \$dlpath`~
  7118. test -d \$dldir || mkdir -p \$dldir~
  7119. $install_prog $dir/$dlname \$dldir/$dlname'
  7120. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7121. dlpath=$dir/\$dldll~
  7122. $rm \$dlpath'
  7123. shlibpath_overrides_runpath=yes
  7124. case $host_os in
  7125. cygwin*)
  7126. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7127. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7128. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7129. ;;
  7130. mingw*)
  7131. # MinGW DLLs use traditional 'lib' prefix
  7132. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7133. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7134. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7135. # It is most probably a Windows format PATH printed by
  7136. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7137. # path with ; separators, and with drive letters. We can handle the
  7138. # drive letters (cygwin fileutils understands them), so leave them,
  7139. # especially as we might pass files found there to a mingw objdump,
  7140. # which wouldn't understand a cygwinified path. Ahh.
  7141. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7142. else
  7143. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7144. fi
  7145. ;;
  7146. pw32*)
  7147. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7148. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7149. ;;
  7150. esac
  7151. ;;
  7152. *)
  7153. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7154. ;;
  7155. esac
  7156. dynamic_linker='Win32 ld.exe'
  7157. # FIXME: first we should search . and the directory the executable is in
  7158. shlibpath_var=PATH
  7159. ;;
  7160. darwin* | rhapsody*)
  7161. dynamic_linker="$host_os dyld"
  7162. version_type=darwin
  7163. need_lib_prefix=no
  7164. need_version=no
  7165. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7166. soname_spec='${libname}${release}${major}$shared_ext'
  7167. shlibpath_overrides_runpath=yes
  7168. shlibpath_var=DYLD_LIBRARY_PATH
  7169. shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  7170. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7171. if test "$GCC" = yes; then
  7172. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  7173. else
  7174. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7175. fi
  7176. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7177. ;;
  7178. dgux*)
  7179. version_type=linux
  7180. need_lib_prefix=no
  7181. need_version=no
  7182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7183. soname_spec='${libname}${release}${shared_ext}$major'
  7184. shlibpath_var=LD_LIBRARY_PATH
  7185. ;;
  7186. kfreebsd*-gnu)
  7187. version_type=linux
  7188. need_lib_prefix=no
  7189. need_version=no
  7190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7191. soname_spec='${libname}${release}${shared_ext}$major'
  7192. shlibpath_var=LD_LIBRARY_PATH
  7193. shlibpath_overrides_runpath=no
  7194. hardcode_into_libs=yes
  7195. dynamic_linker='GNU ld.so'
  7196. ;;
  7197. freebsd* | dragonfly*)
  7198. # DragonFly does not have aout. When/if they implement a new
  7199. # versioning mechanism, adjust this.
  7200. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7201. version_type=freebsd-$objformat
  7202. case $version_type in
  7203. freebsd-elf*)
  7204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7205. need_version=no
  7206. need_lib_prefix=no
  7207. ;;
  7208. freebsd-*)
  7209. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7210. need_version=yes
  7211. ;;
  7212. esac
  7213. shlibpath_var=LD_LIBRARY_PATH
  7214. case $host_os in
  7215. freebsd2.*)
  7216. shlibpath_overrides_runpath=yes
  7217. ;;
  7218. freebsd3.[01]* | freebsdelf3.[01]*)
  7219. shlibpath_overrides_runpath=yes
  7220. hardcode_into_libs=yes
  7221. ;;
  7222. *) # from 3.2 on
  7223. shlibpath_overrides_runpath=no
  7224. hardcode_into_libs=yes
  7225. ;;
  7226. esac
  7227. ;;
  7228. gnu*)
  7229. version_type=linux
  7230. need_lib_prefix=no
  7231. need_version=no
  7232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7233. soname_spec='${libname}${release}${shared_ext}$major'
  7234. shlibpath_var=LD_LIBRARY_PATH
  7235. hardcode_into_libs=yes
  7236. ;;
  7237. hpux9* | hpux10* | hpux11*)
  7238. # Give a soname corresponding to the major version so that dld.sl refuses to
  7239. # link against other versions.
  7240. version_type=sunos
  7241. need_lib_prefix=no
  7242. need_version=no
  7243. case "$host_cpu" in
  7244. ia64*)
  7245. shrext_cmds='.so'
  7246. hardcode_into_libs=yes
  7247. dynamic_linker="$host_os dld.so"
  7248. shlibpath_var=LD_LIBRARY_PATH
  7249. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7251. soname_spec='${libname}${release}${shared_ext}$major'
  7252. if test "X$HPUX_IA64_MODE" = X32; then
  7253. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7254. else
  7255. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7256. fi
  7257. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7258. ;;
  7259. hppa*64*)
  7260. shrext_cmds='.sl'
  7261. hardcode_into_libs=yes
  7262. dynamic_linker="$host_os dld.sl"
  7263. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7266. soname_spec='${libname}${release}${shared_ext}$major'
  7267. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7268. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7269. ;;
  7270. *)
  7271. shrext_cmds='.sl'
  7272. dynamic_linker="$host_os dld.sl"
  7273. shlibpath_var=SHLIB_PATH
  7274. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7276. soname_spec='${libname}${release}${shared_ext}$major'
  7277. ;;
  7278. esac
  7279. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7280. postinstall_cmds='chmod 555 $lib'
  7281. ;;
  7282. irix5* | irix6* | nonstopux*)
  7283. case $host_os in
  7284. nonstopux*) version_type=nonstopux ;;
  7285. *)
  7286. if test "$lt_cv_prog_gnu_ld" = yes; then
  7287. version_type=linux
  7288. else
  7289. version_type=irix
  7290. fi ;;
  7291. esac
  7292. need_lib_prefix=no
  7293. need_version=no
  7294. soname_spec='${libname}${release}${shared_ext}$major'
  7295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7296. case $host_os in
  7297. irix5* | nonstopux*)
  7298. libsuff= shlibsuff=
  7299. ;;
  7300. *)
  7301. case $LD in # libtool.m4 will add one of these switches to LD
  7302. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7303. libsuff= shlibsuff= libmagic=32-bit;;
  7304. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7305. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7306. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7307. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7308. *) libsuff= shlibsuff= libmagic=never-match;;
  7309. esac
  7310. ;;
  7311. esac
  7312. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7313. shlibpath_overrides_runpath=no
  7314. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7315. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7316. hardcode_into_libs=yes
  7317. ;;
  7318. # No shared lib support for Linux oldld, aout, or coff.
  7319. linux*oldld* | linux*aout* | linux*coff*)
  7320. dynamic_linker=no
  7321. ;;
  7322. # This must be Linux ELF.
  7323. linux*)
  7324. version_type=linux
  7325. need_lib_prefix=no
  7326. need_version=no
  7327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7328. soname_spec='${libname}${release}${shared_ext}$major'
  7329. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7330. shlibpath_var=LD_LIBRARY_PATH
  7331. shlibpath_overrides_runpath=no
  7332. # This implies no fast_install, which is unacceptable.
  7333. # Some rework will be needed to allow for fast_install
  7334. # before this can be enabled.
  7335. hardcode_into_libs=yes
  7336. # find out which ABI we are using
  7337. libsuff=
  7338. case "$host_cpu" in
  7339. x86_64*|s390x*|powerpc64*)
  7340. echo '#line 8108 "configure"' > conftest.$ac_ext
  7341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7342. (eval $ac_compile) 2>&5
  7343. ac_status=$?
  7344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7345. test $ac_status = 0; }; then
  7346. case `/usr/bin/file conftest.$ac_objext` in
  7347. *64-bit*)
  7348. libsuff=64
  7349. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7350. ;;
  7351. esac
  7352. fi
  7353. rm -rf conftest*
  7354. ;;
  7355. esac
  7356. # Append ld.so.conf contents to the search path
  7357. if test -f /etc/ld.so.conf; then
  7358. 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;/^$/d' | tr '\n' ' '`
  7359. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7360. fi
  7361. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7362. # powerpc, because MkLinux only supported shared libraries with the
  7363. # GNU dynamic linker. Since this was broken with cross compilers,
  7364. # most powerpc-linux boxes support dynamic linking these days and
  7365. # people can always --disable-shared, the test was removed, and we
  7366. # assume the GNU/Linux dynamic linker is in use.
  7367. dynamic_linker='GNU/Linux ld.so'
  7368. ;;
  7369. knetbsd*-gnu)
  7370. version_type=linux
  7371. need_lib_prefix=no
  7372. need_version=no
  7373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7374. soname_spec='${libname}${release}${shared_ext}$major'
  7375. shlibpath_var=LD_LIBRARY_PATH
  7376. shlibpath_overrides_runpath=no
  7377. hardcode_into_libs=yes
  7378. dynamic_linker='GNU ld.so'
  7379. ;;
  7380. netbsd*)
  7381. version_type=sunos
  7382. need_lib_prefix=no
  7383. need_version=no
  7384. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7386. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7387. dynamic_linker='NetBSD (a.out) ld.so'
  7388. else
  7389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7390. soname_spec='${libname}${release}${shared_ext}$major'
  7391. dynamic_linker='NetBSD ld.elf_so'
  7392. fi
  7393. shlibpath_var=LD_LIBRARY_PATH
  7394. shlibpath_overrides_runpath=yes
  7395. hardcode_into_libs=yes
  7396. ;;
  7397. newsos6)
  7398. version_type=linux
  7399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7400. shlibpath_var=LD_LIBRARY_PATH
  7401. shlibpath_overrides_runpath=yes
  7402. ;;
  7403. nto-qnx*)
  7404. version_type=linux
  7405. need_lib_prefix=no
  7406. need_version=no
  7407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7408. soname_spec='${libname}${release}${shared_ext}$major'
  7409. shlibpath_var=LD_LIBRARY_PATH
  7410. shlibpath_overrides_runpath=yes
  7411. ;;
  7412. openbsd*)
  7413. version_type=sunos
  7414. need_lib_prefix=no
  7415. need_version=no
  7416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7417. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7418. shlibpath_var=LD_LIBRARY_PATH
  7419. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7420. case $host_os in
  7421. openbsd2.[89] | openbsd2.[89].*)
  7422. shlibpath_overrides_runpath=no
  7423. ;;
  7424. *)
  7425. shlibpath_overrides_runpath=yes
  7426. ;;
  7427. esac
  7428. else
  7429. shlibpath_overrides_runpath=yes
  7430. fi
  7431. ;;
  7432. os2*)
  7433. libname_spec='$name'
  7434. shrext_cmds=".dll"
  7435. need_lib_prefix=no
  7436. library_names_spec='$libname${shared_ext} $libname.a'
  7437. dynamic_linker='OS/2 ld.exe'
  7438. shlibpath_var=LIBPATH
  7439. ;;
  7440. osf3* | osf4* | osf5*)
  7441. version_type=osf
  7442. need_lib_prefix=no
  7443. need_version=no
  7444. soname_spec='${libname}${release}${shared_ext}$major'
  7445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7448. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7449. ;;
  7450. sco3.2v5*)
  7451. version_type=osf
  7452. soname_spec='${libname}${release}${shared_ext}$major'
  7453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7454. shlibpath_var=LD_LIBRARY_PATH
  7455. ;;
  7456. solaris*)
  7457. version_type=linux
  7458. need_lib_prefix=no
  7459. need_version=no
  7460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7461. soname_spec='${libname}${release}${shared_ext}$major'
  7462. shlibpath_var=LD_LIBRARY_PATH
  7463. shlibpath_overrides_runpath=yes
  7464. hardcode_into_libs=yes
  7465. # ldd complains unless libraries are executable
  7466. postinstall_cmds='chmod +x $lib'
  7467. ;;
  7468. sunos4*)
  7469. version_type=sunos
  7470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7471. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7472. shlibpath_var=LD_LIBRARY_PATH
  7473. shlibpath_overrides_runpath=yes
  7474. if test "$with_gnu_ld" = yes; then
  7475. need_lib_prefix=no
  7476. fi
  7477. need_version=yes
  7478. ;;
  7479. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7480. version_type=linux
  7481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7482. soname_spec='${libname}${release}${shared_ext}$major'
  7483. shlibpath_var=LD_LIBRARY_PATH
  7484. case $host_vendor in
  7485. sni)
  7486. shlibpath_overrides_runpath=no
  7487. need_lib_prefix=no
  7488. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7489. runpath_var=LD_RUN_PATH
  7490. ;;
  7491. siemens)
  7492. need_lib_prefix=no
  7493. ;;
  7494. motorola)
  7495. need_lib_prefix=no
  7496. need_version=no
  7497. shlibpath_overrides_runpath=no
  7498. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7499. ;;
  7500. esac
  7501. ;;
  7502. sysv4*MP*)
  7503. if test -d /usr/nec ;then
  7504. version_type=linux
  7505. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7506. soname_spec='$libname${shared_ext}.$major'
  7507. shlibpath_var=LD_LIBRARY_PATH
  7508. fi
  7509. ;;
  7510. uts4*)
  7511. version_type=linux
  7512. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7513. soname_spec='${libname}${release}${shared_ext}$major'
  7514. shlibpath_var=LD_LIBRARY_PATH
  7515. ;;
  7516. *)
  7517. dynamic_linker=no
  7518. ;;
  7519. esac
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  7521. $as_echo "$dynamic_linker" >&6; }
  7522. test "$dynamic_linker" = no && can_build_shared=no
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  7524. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  7525. hardcode_action=
  7526. if test -n "$hardcode_libdir_flag_spec" || \
  7527. test -n "$runpath_var" || \
  7528. test "X$hardcode_automatic" = "Xyes" ; then
  7529. # We can hardcode non-existant directories.
  7530. if test "$hardcode_direct" != no &&
  7531. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7532. # have to relink, otherwise we might link with an installed library
  7533. # when we should be linking with a yet-to-be-installed one
  7534. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7535. test "$hardcode_minus_L" != no; then
  7536. # Linking always hardcodes the temporary library directory.
  7537. hardcode_action=relink
  7538. else
  7539. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7540. hardcode_action=immediate
  7541. fi
  7542. else
  7543. # We cannot hardcode anything, or else we can only hardcode existing
  7544. # directories.
  7545. hardcode_action=unsupported
  7546. fi
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  7548. $as_echo "$hardcode_action" >&6; }
  7549. if test "$hardcode_action" = relink; then
  7550. # Fast installation is not supported
  7551. enable_fast_install=no
  7552. elif test "$shlibpath_overrides_runpath" = yes ||
  7553. test "$enable_shared" = no; then
  7554. # Fast installation is not necessary
  7555. enable_fast_install=needless
  7556. fi
  7557. striplib=
  7558. old_striplib=
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  7560. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  7561. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7562. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7563. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7565. $as_echo "yes" >&6; }
  7566. else
  7567. # FIXME - insert some real tests, host_os isn't really good enough
  7568. case $host_os in
  7569. darwin*)
  7570. if test -n "$STRIP" ; then
  7571. striplib="$STRIP -x"
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7573. $as_echo "yes" >&6; }
  7574. else
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7576. $as_echo "no" >&6; }
  7577. fi
  7578. ;;
  7579. *)
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7581. $as_echo "no" >&6; }
  7582. ;;
  7583. esac
  7584. fi
  7585. if test "x$enable_dlopen" != xyes; then
  7586. enable_dlopen=unknown
  7587. enable_dlopen_self=unknown
  7588. enable_dlopen_self_static=unknown
  7589. else
  7590. lt_cv_dlopen=no
  7591. lt_cv_dlopen_libs=
  7592. case $host_os in
  7593. beos*)
  7594. lt_cv_dlopen="load_add_on"
  7595. lt_cv_dlopen_libs=
  7596. lt_cv_dlopen_self=yes
  7597. ;;
  7598. mingw* | pw32*)
  7599. lt_cv_dlopen="LoadLibrary"
  7600. lt_cv_dlopen_libs=
  7601. ;;
  7602. cygwin*)
  7603. lt_cv_dlopen="dlopen"
  7604. lt_cv_dlopen_libs=
  7605. ;;
  7606. darwin*)
  7607. # if libdl is installed we need to link against it
  7608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7609. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7610. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  7611. $as_echo_n "(cached) " >&6
  7612. else
  7613. ac_check_lib_save_LIBS=$LIBS
  7614. LIBS="-ldl $LIBS"
  7615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7616. /* end confdefs.h. */
  7617. /* Override any GCC internal prototype to avoid an error.
  7618. Use char because int might match the return type of a GCC
  7619. builtin and then its argument prototype would still apply. */
  7620. #ifdef __cplusplus
  7621. extern "C"
  7622. #endif
  7623. char dlopen ();
  7624. int
  7625. main ()
  7626. {
  7627. return dlopen ();
  7628. ;
  7629. return 0;
  7630. }
  7631. _ACEOF
  7632. if ac_fn_c_try_link "$LINENO"; then :
  7633. ac_cv_lib_dl_dlopen=yes
  7634. else
  7635. ac_cv_lib_dl_dlopen=no
  7636. fi
  7637. rm -f core conftest.err conftest.$ac_objext \
  7638. conftest$ac_exeext conftest.$ac_ext
  7639. LIBS=$ac_check_lib_save_LIBS
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7642. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7643. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  7644. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7645. else
  7646. lt_cv_dlopen="dyld"
  7647. lt_cv_dlopen_libs=
  7648. lt_cv_dlopen_self=yes
  7649. fi
  7650. ;;
  7651. *)
  7652. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  7653. if test "x$ac_cv_func_shl_load" = x""yes; then :
  7654. lt_cv_dlopen="shl_load"
  7655. else
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  7657. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  7658. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  7659. $as_echo_n "(cached) " >&6
  7660. else
  7661. ac_check_lib_save_LIBS=$LIBS
  7662. LIBS="-ldld $LIBS"
  7663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7664. /* end confdefs.h. */
  7665. /* Override any GCC internal prototype to avoid an error.
  7666. Use char because int might match the return type of a GCC
  7667. builtin and then its argument prototype would still apply. */
  7668. #ifdef __cplusplus
  7669. extern "C"
  7670. #endif
  7671. char shl_load ();
  7672. int
  7673. main ()
  7674. {
  7675. return shl_load ();
  7676. ;
  7677. return 0;
  7678. }
  7679. _ACEOF
  7680. if ac_fn_c_try_link "$LINENO"; then :
  7681. ac_cv_lib_dld_shl_load=yes
  7682. else
  7683. ac_cv_lib_dld_shl_load=no
  7684. fi
  7685. rm -f core conftest.err conftest.$ac_objext \
  7686. conftest$ac_exeext conftest.$ac_ext
  7687. LIBS=$ac_check_lib_save_LIBS
  7688. fi
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  7690. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  7691. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  7692. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7693. else
  7694. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  7695. if test "x$ac_cv_func_dlopen" = x""yes; then :
  7696. lt_cv_dlopen="dlopen"
  7697. else
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7699. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7700. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  7701. $as_echo_n "(cached) " >&6
  7702. else
  7703. ac_check_lib_save_LIBS=$LIBS
  7704. LIBS="-ldl $LIBS"
  7705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7706. /* end confdefs.h. */
  7707. /* Override any GCC internal prototype to avoid an error.
  7708. Use char because int might match the return type of a GCC
  7709. builtin and then its argument prototype would still apply. */
  7710. #ifdef __cplusplus
  7711. extern "C"
  7712. #endif
  7713. char dlopen ();
  7714. int
  7715. main ()
  7716. {
  7717. return dlopen ();
  7718. ;
  7719. return 0;
  7720. }
  7721. _ACEOF
  7722. if ac_fn_c_try_link "$LINENO"; then :
  7723. ac_cv_lib_dl_dlopen=yes
  7724. else
  7725. ac_cv_lib_dl_dlopen=no
  7726. fi
  7727. rm -f core conftest.err conftest.$ac_objext \
  7728. conftest$ac_exeext conftest.$ac_ext
  7729. LIBS=$ac_check_lib_save_LIBS
  7730. fi
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7732. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7733. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  7734. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7735. else
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  7737. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  7738. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  7739. $as_echo_n "(cached) " >&6
  7740. else
  7741. ac_check_lib_save_LIBS=$LIBS
  7742. LIBS="-lsvld $LIBS"
  7743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7744. /* end confdefs.h. */
  7745. /* Override any GCC internal prototype to avoid an error.
  7746. Use char because int might match the return type of a GCC
  7747. builtin and then its argument prototype would still apply. */
  7748. #ifdef __cplusplus
  7749. extern "C"
  7750. #endif
  7751. char dlopen ();
  7752. int
  7753. main ()
  7754. {
  7755. return dlopen ();
  7756. ;
  7757. return 0;
  7758. }
  7759. _ACEOF
  7760. if ac_fn_c_try_link "$LINENO"; then :
  7761. ac_cv_lib_svld_dlopen=yes
  7762. else
  7763. ac_cv_lib_svld_dlopen=no
  7764. fi
  7765. rm -f core conftest.err conftest.$ac_objext \
  7766. conftest$ac_exeext conftest.$ac_ext
  7767. LIBS=$ac_check_lib_save_LIBS
  7768. fi
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  7770. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  7771. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  7772. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7773. else
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  7775. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  7776. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  7777. $as_echo_n "(cached) " >&6
  7778. else
  7779. ac_check_lib_save_LIBS=$LIBS
  7780. LIBS="-ldld $LIBS"
  7781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7782. /* end confdefs.h. */
  7783. /* Override any GCC internal prototype to avoid an error.
  7784. Use char because int might match the return type of a GCC
  7785. builtin and then its argument prototype would still apply. */
  7786. #ifdef __cplusplus
  7787. extern "C"
  7788. #endif
  7789. char dld_link ();
  7790. int
  7791. main ()
  7792. {
  7793. return dld_link ();
  7794. ;
  7795. return 0;
  7796. }
  7797. _ACEOF
  7798. if ac_fn_c_try_link "$LINENO"; then :
  7799. ac_cv_lib_dld_dld_link=yes
  7800. else
  7801. ac_cv_lib_dld_dld_link=no
  7802. fi
  7803. rm -f core conftest.err conftest.$ac_objext \
  7804. conftest$ac_exeext conftest.$ac_ext
  7805. LIBS=$ac_check_lib_save_LIBS
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  7808. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  7809. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  7810. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7811. fi
  7812. fi
  7813. fi
  7814. fi
  7815. fi
  7816. fi
  7817. ;;
  7818. esac
  7819. if test "x$lt_cv_dlopen" != xno; then
  7820. enable_dlopen=yes
  7821. else
  7822. enable_dlopen=no
  7823. fi
  7824. case $lt_cv_dlopen in
  7825. dlopen)
  7826. save_CPPFLAGS="$CPPFLAGS"
  7827. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7828. save_LDFLAGS="$LDFLAGS"
  7829. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7830. save_LIBS="$LIBS"
  7831. LIBS="$lt_cv_dlopen_libs $LIBS"
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  7833. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  7834. if test "${lt_cv_dlopen_self+set}" = set; then :
  7835. $as_echo_n "(cached) " >&6
  7836. else
  7837. if test "$cross_compiling" = yes; then :
  7838. lt_cv_dlopen_self=cross
  7839. else
  7840. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7841. lt_status=$lt_dlunknown
  7842. cat > conftest.$ac_ext <<EOF
  7843. #line 8661 "configure"
  7844. #include "confdefs.h"
  7845. #if HAVE_DLFCN_H
  7846. #include <dlfcn.h>
  7847. #endif
  7848. #include <stdio.h>
  7849. #ifdef RTLD_GLOBAL
  7850. # define LT_DLGLOBAL RTLD_GLOBAL
  7851. #else
  7852. # ifdef DL_GLOBAL
  7853. # define LT_DLGLOBAL DL_GLOBAL
  7854. # else
  7855. # define LT_DLGLOBAL 0
  7856. # endif
  7857. #endif
  7858. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7859. find out it does not work in some platform. */
  7860. #ifndef LT_DLLAZY_OR_NOW
  7861. # ifdef RTLD_LAZY
  7862. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7863. # else
  7864. # ifdef DL_LAZY
  7865. # define LT_DLLAZY_OR_NOW DL_LAZY
  7866. # else
  7867. # ifdef RTLD_NOW
  7868. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7869. # else
  7870. # ifdef DL_NOW
  7871. # define LT_DLLAZY_OR_NOW DL_NOW
  7872. # else
  7873. # define LT_DLLAZY_OR_NOW 0
  7874. # endif
  7875. # endif
  7876. # endif
  7877. # endif
  7878. #endif
  7879. #ifdef __cplusplus
  7880. extern "C" void exit (int);
  7881. #endif
  7882. void fnord() { int i=42;}
  7883. int main ()
  7884. {
  7885. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7886. int status = $lt_dlunknown;
  7887. if (self)
  7888. {
  7889. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7890. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7891. /* dlclose (self); */
  7892. }
  7893. exit (status);
  7894. }
  7895. EOF
  7896. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7897. (eval $ac_link) 2>&5
  7898. ac_status=$?
  7899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7900. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  7901. (./conftest; exit; ) 2>/dev/null
  7902. lt_status=$?
  7903. case x$lt_status in
  7904. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7905. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7906. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7907. esac
  7908. else :
  7909. # compilation failed
  7910. lt_cv_dlopen_self=no
  7911. fi
  7912. fi
  7913. rm -fr conftest*
  7914. fi
  7915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  7916. $as_echo "$lt_cv_dlopen_self" >&6; }
  7917. if test "x$lt_cv_dlopen_self" = xyes; then
  7918. LDFLAGS="$LDFLAGS $link_static_flag"
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  7920. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  7921. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. if test "$cross_compiling" = yes; then :
  7925. lt_cv_dlopen_self_static=cross
  7926. else
  7927. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7928. lt_status=$lt_dlunknown
  7929. cat > conftest.$ac_ext <<EOF
  7930. #line 8759 "configure"
  7931. #include "confdefs.h"
  7932. #if HAVE_DLFCN_H
  7933. #include <dlfcn.h>
  7934. #endif
  7935. #include <stdio.h>
  7936. #ifdef RTLD_GLOBAL
  7937. # define LT_DLGLOBAL RTLD_GLOBAL
  7938. #else
  7939. # ifdef DL_GLOBAL
  7940. # define LT_DLGLOBAL DL_GLOBAL
  7941. # else
  7942. # define LT_DLGLOBAL 0
  7943. # endif
  7944. #endif
  7945. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7946. find out it does not work in some platform. */
  7947. #ifndef LT_DLLAZY_OR_NOW
  7948. # ifdef RTLD_LAZY
  7949. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7950. # else
  7951. # ifdef DL_LAZY
  7952. # define LT_DLLAZY_OR_NOW DL_LAZY
  7953. # else
  7954. # ifdef RTLD_NOW
  7955. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7956. # else
  7957. # ifdef DL_NOW
  7958. # define LT_DLLAZY_OR_NOW DL_NOW
  7959. # else
  7960. # define LT_DLLAZY_OR_NOW 0
  7961. # endif
  7962. # endif
  7963. # endif
  7964. # endif
  7965. #endif
  7966. #ifdef __cplusplus
  7967. extern "C" void exit (int);
  7968. #endif
  7969. void fnord() { int i=42;}
  7970. int main ()
  7971. {
  7972. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7973. int status = $lt_dlunknown;
  7974. if (self)
  7975. {
  7976. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7977. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7978. /* dlclose (self); */
  7979. }
  7980. exit (status);
  7981. }
  7982. EOF
  7983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7984. (eval $ac_link) 2>&5
  7985. ac_status=$?
  7986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7987. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  7988. (./conftest; exit; ) 2>/dev/null
  7989. lt_status=$?
  7990. case x$lt_status in
  7991. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7992. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7993. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7994. esac
  7995. else :
  7996. # compilation failed
  7997. lt_cv_dlopen_self_static=no
  7998. fi
  7999. fi
  8000. rm -fr conftest*
  8001. fi
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  8003. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8004. fi
  8005. CPPFLAGS="$save_CPPFLAGS"
  8006. LDFLAGS="$save_LDFLAGS"
  8007. LIBS="$save_LIBS"
  8008. ;;
  8009. esac
  8010. case $lt_cv_dlopen_self in
  8011. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8012. *) enable_dlopen_self=unknown ;;
  8013. esac
  8014. case $lt_cv_dlopen_self_static in
  8015. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8016. *) enable_dlopen_self_static=unknown ;;
  8017. esac
  8018. fi
  8019. # Report which librarie types wil actually be built
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  8021. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  8023. $as_echo "$can_build_shared" >&6; }
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  8025. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8026. test "$can_build_shared" = "no" && enable_shared=no
  8027. # On AIX, shared libraries and static libraries use the same namespace, and
  8028. # are all built from PIC.
  8029. case "$host_os" in
  8030. aix3*)
  8031. test "$enable_shared" = yes && enable_static=no
  8032. if test -n "$RANLIB"; then
  8033. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8034. postinstall_cmds='$RANLIB $lib'
  8035. fi
  8036. ;;
  8037. aix4* | aix5*)
  8038. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8039. test "$enable_shared" = yes && enable_static=no
  8040. fi
  8041. ;;
  8042. esac
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  8044. $as_echo "$enable_shared" >&6; }
  8045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  8046. $as_echo_n "checking whether to build static libraries... " >&6; }
  8047. # Make sure either enable_shared or enable_static is yes.
  8048. test "$enable_shared" = yes || enable_static=yes
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  8050. $as_echo "$enable_static" >&6; }
  8051. # The else clause should only fire when bootstrapping the
  8052. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8053. # with your package, and you will get complaints that there are
  8054. # no rules to generate ltmain.sh.
  8055. if test -f "$ltmain"; then
  8056. # See if we are running on zsh, and set the options which allow our commands through
  8057. # without removal of \ escapes.
  8058. if test -n "${ZSH_VERSION+set}" ; then
  8059. setopt NO_GLOB_SUBST
  8060. fi
  8061. # Now quote all the things that may contain metacharacters while being
  8062. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8063. # variables and quote the copies for generation of the libtool script.
  8064. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8065. SED SHELL STRIP \
  8066. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8067. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8068. deplibs_check_method reload_flag reload_cmds need_locks \
  8069. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8070. lt_cv_sys_global_symbol_to_c_name_address \
  8071. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8072. old_postinstall_cmds old_postuninstall_cmds \
  8073. compiler \
  8074. CC \
  8075. LD \
  8076. lt_prog_compiler_wl \
  8077. lt_prog_compiler_pic \
  8078. lt_prog_compiler_static \
  8079. lt_prog_compiler_no_builtin_flag \
  8080. export_dynamic_flag_spec \
  8081. thread_safe_flag_spec \
  8082. whole_archive_flag_spec \
  8083. enable_shared_with_static_runtimes \
  8084. old_archive_cmds \
  8085. old_archive_from_new_cmds \
  8086. predep_objects \
  8087. postdep_objects \
  8088. predeps \
  8089. postdeps \
  8090. compiler_lib_search_path \
  8091. archive_cmds \
  8092. archive_expsym_cmds \
  8093. postinstall_cmds \
  8094. postuninstall_cmds \
  8095. old_archive_from_expsyms_cmds \
  8096. allow_undefined_flag \
  8097. no_undefined_flag \
  8098. export_symbols_cmds \
  8099. hardcode_libdir_flag_spec \
  8100. hardcode_libdir_flag_spec_ld \
  8101. hardcode_libdir_separator \
  8102. hardcode_automatic \
  8103. module_cmds \
  8104. module_expsym_cmds \
  8105. lt_cv_prog_compiler_c_o \
  8106. exclude_expsyms \
  8107. include_expsyms; do
  8108. case $var in
  8109. old_archive_cmds | \
  8110. old_archive_from_new_cmds | \
  8111. archive_cmds | \
  8112. archive_expsym_cmds | \
  8113. module_cmds | \
  8114. module_expsym_cmds | \
  8115. old_archive_from_expsyms_cmds | \
  8116. export_symbols_cmds | \
  8117. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8118. postinstall_cmds | postuninstall_cmds | \
  8119. old_postinstall_cmds | old_postuninstall_cmds | \
  8120. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8121. # Double-quote double-evaled strings.
  8122. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8123. ;;
  8124. *)
  8125. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8126. ;;
  8127. esac
  8128. done
  8129. case $lt_echo in
  8130. *'\$0 --fallback-echo"')
  8131. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8132. ;;
  8133. esac
  8134. cfgfile="${ofile}T"
  8135. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8136. $rm -f "$cfgfile"
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
  8138. $as_echo "$as_me: creating $ofile" >&6;}
  8139. cat <<__EOF__ >> "$cfgfile"
  8140. #! $SHELL
  8141. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8142. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8143. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8144. #
  8145. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8146. # Free Software Foundation, Inc.
  8147. #
  8148. # This file is part of GNU Libtool:
  8149. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8150. #
  8151. # This program is free software; you can redistribute it and/or modify
  8152. # it under the terms of the GNU General Public License as published by
  8153. # the Free Software Foundation; either version 2 of the License, or
  8154. # (at your option) any later version.
  8155. #
  8156. # This program is distributed in the hope that it will be useful, but
  8157. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8158. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8159. # General Public License for more details.
  8160. #
  8161. # You should have received a copy of the GNU General Public License
  8162. # along with this program; if not, write to the Free Software
  8163. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8164. #
  8165. # As a special exception to the GNU General Public License, if you
  8166. # distribute this file as part of a program that contains a
  8167. # configuration script generated by Autoconf, you may include it under
  8168. # the same distribution terms that you use for the rest of that program.
  8169. # A sed program that does not truncate output.
  8170. SED=$lt_SED
  8171. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8172. Xsed="$SED -e 1s/^X//"
  8173. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8174. # if CDPATH is set.
  8175. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8176. # The names of the tagged configurations supported by this script.
  8177. available_tags=
  8178. # ### BEGIN LIBTOOL CONFIG
  8179. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8180. # Shell to use when invoking shell scripts.
  8181. SHELL=$lt_SHELL
  8182. # Whether or not to build shared libraries.
  8183. build_libtool_libs=$enable_shared
  8184. # Whether or not to build static libraries.
  8185. build_old_libs=$enable_static
  8186. # Whether or not to add -lc for building shared libraries.
  8187. build_libtool_need_lc=$archive_cmds_need_lc
  8188. # Whether or not to disallow shared libs when runtime libs are static
  8189. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8190. # Whether or not to optimize for fast installation.
  8191. fast_install=$enable_fast_install
  8192. # The host system.
  8193. host_alias=$host_alias
  8194. host=$host
  8195. host_os=$host_os
  8196. # The build system.
  8197. build_alias=$build_alias
  8198. build=$build
  8199. build_os=$build_os
  8200. # An echo program that does not interpret backslashes.
  8201. echo=$lt_echo
  8202. # The archiver.
  8203. AR=$lt_AR
  8204. AR_FLAGS=$lt_AR_FLAGS
  8205. # A C compiler.
  8206. LTCC=$lt_LTCC
  8207. # A language-specific compiler.
  8208. CC=$lt_compiler
  8209. # Is the compiler the GNU C compiler?
  8210. with_gcc=$GCC
  8211. # An ERE matcher.
  8212. EGREP=$lt_EGREP
  8213. # The linker used to build libraries.
  8214. LD=$lt_LD
  8215. # Whether we need hard or soft links.
  8216. LN_S=$lt_LN_S
  8217. # A BSD-compatible nm program.
  8218. NM=$lt_NM
  8219. # A symbol stripping program
  8220. STRIP=$lt_STRIP
  8221. # Used to examine libraries when file_magic_cmd begins "file"
  8222. MAGIC_CMD=$MAGIC_CMD
  8223. # Used on cygwin: DLL creation program.
  8224. DLLTOOL="$DLLTOOL"
  8225. # Used on cygwin: object dumper.
  8226. OBJDUMP="$OBJDUMP"
  8227. # Used on cygwin: assembler.
  8228. AS="$AS"
  8229. # The name of the directory that contains temporary libtool files.
  8230. objdir=$objdir
  8231. # How to create reloadable object files.
  8232. reload_flag=$lt_reload_flag
  8233. reload_cmds=$lt_reload_cmds
  8234. # How to pass a linker flag through the compiler.
  8235. wl=$lt_lt_prog_compiler_wl
  8236. # Object file suffix (normally "o").
  8237. objext="$ac_objext"
  8238. # Old archive suffix (normally "a").
  8239. libext="$libext"
  8240. # Shared library suffix (normally ".so").
  8241. shrext_cmds='$shrext_cmds'
  8242. # Executable file suffix (normally "").
  8243. exeext="$exeext"
  8244. # Additional compiler flags for building library objects.
  8245. pic_flag=$lt_lt_prog_compiler_pic
  8246. pic_mode=$pic_mode
  8247. # What is the maximum length of a command?
  8248. max_cmd_len=$lt_cv_sys_max_cmd_len
  8249. # Does compiler simultaneously support -c and -o options?
  8250. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8251. # Must we lock files when doing compilation?
  8252. need_locks=$lt_need_locks
  8253. # Do we need the lib prefix for modules?
  8254. need_lib_prefix=$need_lib_prefix
  8255. # Do we need a version for libraries?
  8256. need_version=$need_version
  8257. # Whether dlopen is supported.
  8258. dlopen_support=$enable_dlopen
  8259. # Whether dlopen of programs is supported.
  8260. dlopen_self=$enable_dlopen_self
  8261. # Whether dlopen of statically linked programs is supported.
  8262. dlopen_self_static=$enable_dlopen_self_static
  8263. # Compiler flag to prevent dynamic linking.
  8264. link_static_flag=$lt_lt_prog_compiler_static
  8265. # Compiler flag to turn off builtin functions.
  8266. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8267. # Compiler flag to allow reflexive dlopens.
  8268. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8269. # Compiler flag to generate shared objects directly from archives.
  8270. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8271. # Compiler flag to generate thread-safe objects.
  8272. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8273. # Library versioning type.
  8274. version_type=$version_type
  8275. # Format of library name prefix.
  8276. libname_spec=$lt_libname_spec
  8277. # List of archive names. First name is the real one, the rest are links.
  8278. # The last name is the one that the linker finds with -lNAME.
  8279. library_names_spec=$lt_library_names_spec
  8280. # The coded name of the library, if different from the real name.
  8281. soname_spec=$lt_soname_spec
  8282. # Commands used to build and install an old-style archive.
  8283. RANLIB=$lt_RANLIB
  8284. old_archive_cmds=$lt_old_archive_cmds
  8285. old_postinstall_cmds=$lt_old_postinstall_cmds
  8286. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8287. # Create an old-style archive from a shared archive.
  8288. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8289. # Create a temporary old-style archive to link instead of a shared archive.
  8290. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8291. # Commands used to build and install a shared archive.
  8292. archive_cmds=$lt_archive_cmds
  8293. archive_expsym_cmds=$lt_archive_expsym_cmds
  8294. postinstall_cmds=$lt_postinstall_cmds
  8295. postuninstall_cmds=$lt_postuninstall_cmds
  8296. # Commands used to build a loadable module (assumed same as above if empty)
  8297. module_cmds=$lt_module_cmds
  8298. module_expsym_cmds=$lt_module_expsym_cmds
  8299. # Commands to strip libraries.
  8300. old_striplib=$lt_old_striplib
  8301. striplib=$lt_striplib
  8302. # Dependencies to place before the objects being linked to create a
  8303. # shared library.
  8304. predep_objects=$lt_predep_objects
  8305. # Dependencies to place after the objects being linked to create a
  8306. # shared library.
  8307. postdep_objects=$lt_postdep_objects
  8308. # Dependencies to place before the objects being linked to create a
  8309. # shared library.
  8310. predeps=$lt_predeps
  8311. # Dependencies to place after the objects being linked to create a
  8312. # shared library.
  8313. postdeps=$lt_postdeps
  8314. # The library search path used internally by the compiler when linking
  8315. # a shared library.
  8316. compiler_lib_search_path=$lt_compiler_lib_search_path
  8317. # Method to check whether dependent libraries are shared objects.
  8318. deplibs_check_method=$lt_deplibs_check_method
  8319. # Command to use when deplibs_check_method == file_magic.
  8320. file_magic_cmd=$lt_file_magic_cmd
  8321. # Flag that allows shared libraries with undefined symbols to be built.
  8322. allow_undefined_flag=$lt_allow_undefined_flag
  8323. # Flag that forces no undefined symbols.
  8324. no_undefined_flag=$lt_no_undefined_flag
  8325. # Commands used to finish a libtool library installation in a directory.
  8326. finish_cmds=$lt_finish_cmds
  8327. # Same as above, but a single script fragment to be evaled but not shown.
  8328. finish_eval=$lt_finish_eval
  8329. # Take the output of nm and produce a listing of raw symbols and C names.
  8330. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8331. # Transform the output of nm in a proper C declaration
  8332. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8333. # Transform the output of nm in a C name address pair
  8334. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8335. # This is the shared library runtime path variable.
  8336. runpath_var=$runpath_var
  8337. # This is the shared library path variable.
  8338. shlibpath_var=$shlibpath_var
  8339. # Is shlibpath searched before the hard-coded library search path?
  8340. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8341. # How to hardcode a shared library path into an executable.
  8342. hardcode_action=$hardcode_action
  8343. # Whether we should hardcode library paths into libraries.
  8344. hardcode_into_libs=$hardcode_into_libs
  8345. # Flag to hardcode \$libdir into a binary during linking.
  8346. # This must work even if \$libdir does not exist.
  8347. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8348. # If ld is used when linking, flag to hardcode \$libdir into
  8349. # a binary during linking. This must work even if \$libdir does
  8350. # not exist.
  8351. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8352. # Whether we need a single -rpath flag with a separated argument.
  8353. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8354. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8355. # resulting binary.
  8356. hardcode_direct=$hardcode_direct
  8357. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8358. # resulting binary.
  8359. hardcode_minus_L=$hardcode_minus_L
  8360. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8361. # the resulting binary.
  8362. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8363. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8364. # and all subsequent libraries and executables linked against it.
  8365. hardcode_automatic=$hardcode_automatic
  8366. # Variables whose values should be saved in libtool wrapper scripts and
  8367. # restored at relink time.
  8368. variables_saved_for_relink="$variables_saved_for_relink"
  8369. # Whether libtool must link a program against all its dependency libraries.
  8370. link_all_deplibs=$link_all_deplibs
  8371. # Compile-time system search path for libraries
  8372. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8373. # Run-time system search path for libraries
  8374. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8375. # Fix the shell variable \$srcfile for the compiler.
  8376. fix_srcfile_path="$fix_srcfile_path"
  8377. # Set to yes if exported symbols are required.
  8378. always_export_symbols=$always_export_symbols
  8379. # The commands to list exported symbols.
  8380. export_symbols_cmds=$lt_export_symbols_cmds
  8381. # The commands to extract the exported symbol list from a shared archive.
  8382. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8383. # Symbols that should not be listed in the preloaded symbols.
  8384. exclude_expsyms=$lt_exclude_expsyms
  8385. # Symbols that must always be exported.
  8386. include_expsyms=$lt_include_expsyms
  8387. # ### END LIBTOOL CONFIG
  8388. __EOF__
  8389. case $host_os in
  8390. aix3*)
  8391. cat <<\EOF >> "$cfgfile"
  8392. # AIX sometimes has problems with the GCC collect2 program. For some
  8393. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8394. # vanish in a puff of smoke.
  8395. if test "X${COLLECT_NAMES+set}" != Xset; then
  8396. COLLECT_NAMES=
  8397. export COLLECT_NAMES
  8398. fi
  8399. EOF
  8400. ;;
  8401. esac
  8402. # We use sed instead of cat because bash on DJGPP gets confused if
  8403. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8404. # text mode, it properly converts lines to CR/LF. This bash problem
  8405. # is reportedly fixed, but why not run on old versions too?
  8406. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8407. mv -f "$cfgfile" "$ofile" || \
  8408. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8409. chmod +x "$ofile"
  8410. else
  8411. # If there is no Makefile yet, we rely on a make rule to execute
  8412. # `config.status --recheck' to rerun these tests and create the
  8413. # libtool script then.
  8414. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8415. if test -f "$ltmain_in"; then
  8416. test -f Makefile && make "$ltmain"
  8417. fi
  8418. fi
  8419. ac_ext=c
  8420. ac_cpp='$CPP $CPPFLAGS'
  8421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8424. CC="$lt_save_CC"
  8425. # Check whether --with-tags was given.
  8426. if test "${with_tags+set}" = set; then :
  8427. withval=$with_tags; tagnames="$withval"
  8428. fi
  8429. if test -f "$ltmain" && test -n "$tagnames"; then
  8430. if test ! -f "${ofile}"; then
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  8432. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8433. fi
  8434. if test -z "$LTCC"; then
  8435. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8436. if test -z "$LTCC"; then
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8438. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8439. else
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8441. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8442. fi
  8443. fi
  8444. # Extract list of available tagged configurations in $ofile.
  8445. # Note that this assumes the entire list is on one line.
  8446. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8447. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8448. for tagname in $tagnames; do
  8449. IFS="$lt_save_ifs"
  8450. # Check whether tagname contains only valid characters
  8451. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8452. "") ;;
  8453. *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
  8454. ;;
  8455. esac
  8456. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8457. then
  8458. as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
  8459. fi
  8460. # Update the list of available tags.
  8461. if test -n "$tagname"; then
  8462. echo appending configuration tag \"$tagname\" to $ofile
  8463. case $tagname in
  8464. CXX)
  8465. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8466. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8467. (test "X$CXX" != "Xg++"))) ; then
  8468. :
  8469. else
  8470. tagname=""
  8471. fi
  8472. ;;
  8473. F77)
  8474. if test -n "$F77" && test "X$F77" != "Xno"; then
  8475. :
  8476. else
  8477. tagname=""
  8478. fi
  8479. ;;
  8480. GCJ)
  8481. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  8482. :
  8483. else
  8484. tagname=""
  8485. fi
  8486. ;;
  8487. RC)
  8488. # Source file extension for RC test sources.
  8489. ac_ext=rc
  8490. # Object file extension for compiled RC test sources.
  8491. objext=o
  8492. objext_RC=$objext
  8493. # Code to be used in simple compile tests
  8494. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  8495. # Code to be used in simple link tests
  8496. lt_simple_link_test_code="$lt_simple_compile_test_code"
  8497. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8498. # If no C compiler was specified, use CC.
  8499. LTCC=${LTCC-"$CC"}
  8500. # Allow CC to be a program name with arguments.
  8501. compiler=$CC
  8502. # save warnings/boilerplate of simple test code
  8503. ac_outfile=conftest.$ac_objext
  8504. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8505. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8506. _lt_compiler_boilerplate=`cat conftest.err`
  8507. $rm conftest*
  8508. ac_outfile=conftest.$ac_objext
  8509. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8510. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8511. _lt_linker_boilerplate=`cat conftest.err`
  8512. $rm conftest*
  8513. # Allow CC to be a program name with arguments.
  8514. lt_save_CC="$CC"
  8515. CC=${RC-"windres"}
  8516. compiler=$CC
  8517. compiler_RC=$CC
  8518. for cc_temp in $compiler""; do
  8519. case $cc_temp in
  8520. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8521. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8522. \-*) ;;
  8523. *) break;;
  8524. esac
  8525. done
  8526. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8527. lt_cv_prog_compiler_c_o_RC=yes
  8528. # The else clause should only fire when bootstrapping the
  8529. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8530. # with your package, and you will get complaints that there are
  8531. # no rules to generate ltmain.sh.
  8532. if test -f "$ltmain"; then
  8533. # See if we are running on zsh, and set the options which allow our commands through
  8534. # without removal of \ escapes.
  8535. if test -n "${ZSH_VERSION+set}" ; then
  8536. setopt NO_GLOB_SUBST
  8537. fi
  8538. # Now quote all the things that may contain metacharacters while being
  8539. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8540. # variables and quote the copies for generation of the libtool script.
  8541. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  8542. SED SHELL STRIP \
  8543. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8544. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8545. deplibs_check_method reload_flag reload_cmds need_locks \
  8546. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8547. lt_cv_sys_global_symbol_to_c_name_address \
  8548. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8549. old_postinstall_cmds old_postuninstall_cmds \
  8550. compiler_RC \
  8551. CC_RC \
  8552. LD_RC \
  8553. lt_prog_compiler_wl_RC \
  8554. lt_prog_compiler_pic_RC \
  8555. lt_prog_compiler_static_RC \
  8556. lt_prog_compiler_no_builtin_flag_RC \
  8557. export_dynamic_flag_spec_RC \
  8558. thread_safe_flag_spec_RC \
  8559. whole_archive_flag_spec_RC \
  8560. enable_shared_with_static_runtimes_RC \
  8561. old_archive_cmds_RC \
  8562. old_archive_from_new_cmds_RC \
  8563. predep_objects_RC \
  8564. postdep_objects_RC \
  8565. predeps_RC \
  8566. postdeps_RC \
  8567. compiler_lib_search_path_RC \
  8568. archive_cmds_RC \
  8569. archive_expsym_cmds_RC \
  8570. postinstall_cmds_RC \
  8571. postuninstall_cmds_RC \
  8572. old_archive_from_expsyms_cmds_RC \
  8573. allow_undefined_flag_RC \
  8574. no_undefined_flag_RC \
  8575. export_symbols_cmds_RC \
  8576. hardcode_libdir_flag_spec_RC \
  8577. hardcode_libdir_flag_spec_ld_RC \
  8578. hardcode_libdir_separator_RC \
  8579. hardcode_automatic_RC \
  8580. module_cmds_RC \
  8581. module_expsym_cmds_RC \
  8582. lt_cv_prog_compiler_c_o_RC \
  8583. exclude_expsyms_RC \
  8584. include_expsyms_RC; do
  8585. case $var in
  8586. old_archive_cmds_RC | \
  8587. old_archive_from_new_cmds_RC | \
  8588. archive_cmds_RC | \
  8589. archive_expsym_cmds_RC | \
  8590. module_cmds_RC | \
  8591. module_expsym_cmds_RC | \
  8592. old_archive_from_expsyms_cmds_RC | \
  8593. export_symbols_cmds_RC | \
  8594. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8595. postinstall_cmds | postuninstall_cmds | \
  8596. old_postinstall_cmds | old_postuninstall_cmds | \
  8597. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8598. # Double-quote double-evaled strings.
  8599. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8600. ;;
  8601. *)
  8602. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8603. ;;
  8604. esac
  8605. done
  8606. case $lt_echo in
  8607. *'\$0 --fallback-echo"')
  8608. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8609. ;;
  8610. esac
  8611. cfgfile="$ofile"
  8612. cat <<__EOF__ >> "$cfgfile"
  8613. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  8614. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8615. # Shell to use when invoking shell scripts.
  8616. SHELL=$lt_SHELL
  8617. # Whether or not to build shared libraries.
  8618. build_libtool_libs=$enable_shared
  8619. # Whether or not to build static libraries.
  8620. build_old_libs=$enable_static
  8621. # Whether or not to add -lc for building shared libraries.
  8622. build_libtool_need_lc=$archive_cmds_need_lc_RC
  8623. # Whether or not to disallow shared libs when runtime libs are static
  8624. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  8625. # Whether or not to optimize for fast installation.
  8626. fast_install=$enable_fast_install
  8627. # The host system.
  8628. host_alias=$host_alias
  8629. host=$host
  8630. host_os=$host_os
  8631. # The build system.
  8632. build_alias=$build_alias
  8633. build=$build
  8634. build_os=$build_os
  8635. # An echo program that does not interpret backslashes.
  8636. echo=$lt_echo
  8637. # The archiver.
  8638. AR=$lt_AR
  8639. AR_FLAGS=$lt_AR_FLAGS
  8640. # A C compiler.
  8641. LTCC=$lt_LTCC
  8642. # A language-specific compiler.
  8643. CC=$lt_compiler_RC
  8644. # Is the compiler the GNU C compiler?
  8645. with_gcc=$GCC_RC
  8646. # An ERE matcher.
  8647. EGREP=$lt_EGREP
  8648. # The linker used to build libraries.
  8649. LD=$lt_LD_RC
  8650. # Whether we need hard or soft links.
  8651. LN_S=$lt_LN_S
  8652. # A BSD-compatible nm program.
  8653. NM=$lt_NM
  8654. # A symbol stripping program
  8655. STRIP=$lt_STRIP
  8656. # Used to examine libraries when file_magic_cmd begins "file"
  8657. MAGIC_CMD=$MAGIC_CMD
  8658. # Used on cygwin: DLL creation program.
  8659. DLLTOOL="$DLLTOOL"
  8660. # Used on cygwin: object dumper.
  8661. OBJDUMP="$OBJDUMP"
  8662. # Used on cygwin: assembler.
  8663. AS="$AS"
  8664. # The name of the directory that contains temporary libtool files.
  8665. objdir=$objdir
  8666. # How to create reloadable object files.
  8667. reload_flag=$lt_reload_flag
  8668. reload_cmds=$lt_reload_cmds
  8669. # How to pass a linker flag through the compiler.
  8670. wl=$lt_lt_prog_compiler_wl_RC
  8671. # Object file suffix (normally "o").
  8672. objext="$ac_objext"
  8673. # Old archive suffix (normally "a").
  8674. libext="$libext"
  8675. # Shared library suffix (normally ".so").
  8676. shrext_cmds='$shrext_cmds'
  8677. # Executable file suffix (normally "").
  8678. exeext="$exeext"
  8679. # Additional compiler flags for building library objects.
  8680. pic_flag=$lt_lt_prog_compiler_pic_RC
  8681. pic_mode=$pic_mode
  8682. # What is the maximum length of a command?
  8683. max_cmd_len=$lt_cv_sys_max_cmd_len
  8684. # Does compiler simultaneously support -c and -o options?
  8685. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  8686. # Must we lock files when doing compilation?
  8687. need_locks=$lt_need_locks
  8688. # Do we need the lib prefix for modules?
  8689. need_lib_prefix=$need_lib_prefix
  8690. # Do we need a version for libraries?
  8691. need_version=$need_version
  8692. # Whether dlopen is supported.
  8693. dlopen_support=$enable_dlopen
  8694. # Whether dlopen of programs is supported.
  8695. dlopen_self=$enable_dlopen_self
  8696. # Whether dlopen of statically linked programs is supported.
  8697. dlopen_self_static=$enable_dlopen_self_static
  8698. # Compiler flag to prevent dynamic linking.
  8699. link_static_flag=$lt_lt_prog_compiler_static_RC
  8700. # Compiler flag to turn off builtin functions.
  8701. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  8702. # Compiler flag to allow reflexive dlopens.
  8703. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  8704. # Compiler flag to generate shared objects directly from archives.
  8705. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  8706. # Compiler flag to generate thread-safe objects.
  8707. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  8708. # Library versioning type.
  8709. version_type=$version_type
  8710. # Format of library name prefix.
  8711. libname_spec=$lt_libname_spec
  8712. # List of archive names. First name is the real one, the rest are links.
  8713. # The last name is the one that the linker finds with -lNAME.
  8714. library_names_spec=$lt_library_names_spec
  8715. # The coded name of the library, if different from the real name.
  8716. soname_spec=$lt_soname_spec
  8717. # Commands used to build and install an old-style archive.
  8718. RANLIB=$lt_RANLIB
  8719. old_archive_cmds=$lt_old_archive_cmds_RC
  8720. old_postinstall_cmds=$lt_old_postinstall_cmds
  8721. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8722. # Create an old-style archive from a shared archive.
  8723. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  8724. # Create a temporary old-style archive to link instead of a shared archive.
  8725. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  8726. # Commands used to build and install a shared archive.
  8727. archive_cmds=$lt_archive_cmds_RC
  8728. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  8729. postinstall_cmds=$lt_postinstall_cmds
  8730. postuninstall_cmds=$lt_postuninstall_cmds
  8731. # Commands used to build a loadable module (assumed same as above if empty)
  8732. module_cmds=$lt_module_cmds_RC
  8733. module_expsym_cmds=$lt_module_expsym_cmds_RC
  8734. # Commands to strip libraries.
  8735. old_striplib=$lt_old_striplib
  8736. striplib=$lt_striplib
  8737. # Dependencies to place before the objects being linked to create a
  8738. # shared library.
  8739. predep_objects=$lt_predep_objects_RC
  8740. # Dependencies to place after the objects being linked to create a
  8741. # shared library.
  8742. postdep_objects=$lt_postdep_objects_RC
  8743. # Dependencies to place before the objects being linked to create a
  8744. # shared library.
  8745. predeps=$lt_predeps_RC
  8746. # Dependencies to place after the objects being linked to create a
  8747. # shared library.
  8748. postdeps=$lt_postdeps_RC
  8749. # The library search path used internally by the compiler when linking
  8750. # a shared library.
  8751. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  8752. # Method to check whether dependent libraries are shared objects.
  8753. deplibs_check_method=$lt_deplibs_check_method
  8754. # Command to use when deplibs_check_method == file_magic.
  8755. file_magic_cmd=$lt_file_magic_cmd
  8756. # Flag that allows shared libraries with undefined symbols to be built.
  8757. allow_undefined_flag=$lt_allow_undefined_flag_RC
  8758. # Flag that forces no undefined symbols.
  8759. no_undefined_flag=$lt_no_undefined_flag_RC
  8760. # Commands used to finish a libtool library installation in a directory.
  8761. finish_cmds=$lt_finish_cmds
  8762. # Same as above, but a single script fragment to be evaled but not shown.
  8763. finish_eval=$lt_finish_eval
  8764. # Take the output of nm and produce a listing of raw symbols and C names.
  8765. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8766. # Transform the output of nm in a proper C declaration
  8767. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8768. # Transform the output of nm in a C name address pair
  8769. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8770. # This is the shared library runtime path variable.
  8771. runpath_var=$runpath_var
  8772. # This is the shared library path variable.
  8773. shlibpath_var=$shlibpath_var
  8774. # Is shlibpath searched before the hard-coded library search path?
  8775. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8776. # How to hardcode a shared library path into an executable.
  8777. hardcode_action=$hardcode_action_RC
  8778. # Whether we should hardcode library paths into libraries.
  8779. hardcode_into_libs=$hardcode_into_libs
  8780. # Flag to hardcode \$libdir into a binary during linking.
  8781. # This must work even if \$libdir does not exist.
  8782. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  8783. # If ld is used when linking, flag to hardcode \$libdir into
  8784. # a binary during linking. This must work even if \$libdir does
  8785. # not exist.
  8786. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  8787. # Whether we need a single -rpath flag with a separated argument.
  8788. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  8789. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8790. # resulting binary.
  8791. hardcode_direct=$hardcode_direct_RC
  8792. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8793. # resulting binary.
  8794. hardcode_minus_L=$hardcode_minus_L_RC
  8795. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8796. # the resulting binary.
  8797. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  8798. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8799. # and all subsequent libraries and executables linked against it.
  8800. hardcode_automatic=$hardcode_automatic_RC
  8801. # Variables whose values should be saved in libtool wrapper scripts and
  8802. # restored at relink time.
  8803. variables_saved_for_relink="$variables_saved_for_relink"
  8804. # Whether libtool must link a program against all its dependency libraries.
  8805. link_all_deplibs=$link_all_deplibs_RC
  8806. # Compile-time system search path for libraries
  8807. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8808. # Run-time system search path for libraries
  8809. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8810. # Fix the shell variable \$srcfile for the compiler.
  8811. fix_srcfile_path="$fix_srcfile_path_RC"
  8812. # Set to yes if exported symbols are required.
  8813. always_export_symbols=$always_export_symbols_RC
  8814. # The commands to list exported symbols.
  8815. export_symbols_cmds=$lt_export_symbols_cmds_RC
  8816. # The commands to extract the exported symbol list from a shared archive.
  8817. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8818. # Symbols that should not be listed in the preloaded symbols.
  8819. exclude_expsyms=$lt_exclude_expsyms_RC
  8820. # Symbols that must always be exported.
  8821. include_expsyms=$lt_include_expsyms_RC
  8822. # ### END LIBTOOL TAG CONFIG: $tagname
  8823. __EOF__
  8824. else
  8825. # If there is no Makefile yet, we rely on a make rule to execute
  8826. # `config.status --recheck' to rerun these tests and create the
  8827. # libtool script then.
  8828. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8829. if test -f "$ltmain_in"; then
  8830. test -f Makefile && make "$ltmain"
  8831. fi
  8832. fi
  8833. ac_ext=c
  8834. ac_cpp='$CPP $CPPFLAGS'
  8835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8838. CC="$lt_save_CC"
  8839. ;;
  8840. *)
  8841. as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
  8842. ;;
  8843. esac
  8844. # Append the new tag name to the list of available tags.
  8845. if test -n "$tagname" ; then
  8846. available_tags="$available_tags $tagname"
  8847. fi
  8848. fi
  8849. done
  8850. IFS="$lt_save_ifs"
  8851. # Now substitute the updated list of available tags.
  8852. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  8853. mv "${ofile}T" "$ofile"
  8854. chmod +x "$ofile"
  8855. else
  8856. rm -f "${ofile}T"
  8857. as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
  8858. fi
  8859. fi
  8860. # This can be used to rebuild libtool when needed
  8861. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  8862. # Always use our own libtool.
  8863. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8864. # Prevent multiple expansion
  8865. ac_header_dirent=no
  8866. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  8867. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  8869. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  8870. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8874. /* end confdefs.h. */
  8875. #include <sys/types.h>
  8876. #include <$ac_hdr>
  8877. int
  8878. main ()
  8879. {
  8880. if ((DIR *) 0)
  8881. return 0;
  8882. ;
  8883. return 0;
  8884. }
  8885. _ACEOF
  8886. if ac_fn_c_try_compile "$LINENO"; then :
  8887. eval "$as_ac_Header=yes"
  8888. else
  8889. eval "$as_ac_Header=no"
  8890. fi
  8891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8892. fi
  8893. eval ac_res=\$$as_ac_Header
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  8895. $as_echo "$ac_res" >&6; }
  8896. eval as_val=\$$as_ac_Header
  8897. if test "x$as_val" = x""yes; then :
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  8900. _ACEOF
  8901. ac_header_dirent=$ac_hdr; break
  8902. fi
  8903. done
  8904. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  8905. if test $ac_header_dirent = dirent.h; then
  8906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8907. $as_echo_n "checking for library containing opendir... " >&6; }
  8908. if test "${ac_cv_search_opendir+set}" = set; then :
  8909. $as_echo_n "(cached) " >&6
  8910. else
  8911. ac_func_search_save_LIBS=$LIBS
  8912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8913. /* end confdefs.h. */
  8914. /* Override any GCC internal prototype to avoid an error.
  8915. Use char because int might match the return type of a GCC
  8916. builtin and then its argument prototype would still apply. */
  8917. #ifdef __cplusplus
  8918. extern "C"
  8919. #endif
  8920. char opendir ();
  8921. int
  8922. main ()
  8923. {
  8924. return opendir ();
  8925. ;
  8926. return 0;
  8927. }
  8928. _ACEOF
  8929. for ac_lib in '' dir; do
  8930. if test -z "$ac_lib"; then
  8931. ac_res="none required"
  8932. else
  8933. ac_res=-l$ac_lib
  8934. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8935. fi
  8936. if ac_fn_c_try_link "$LINENO"; then :
  8937. ac_cv_search_opendir=$ac_res
  8938. fi
  8939. rm -f core conftest.err conftest.$ac_objext \
  8940. conftest$ac_exeext
  8941. if test "${ac_cv_search_opendir+set}" = set; then :
  8942. break
  8943. fi
  8944. done
  8945. if test "${ac_cv_search_opendir+set}" = set; then :
  8946. else
  8947. ac_cv_search_opendir=no
  8948. fi
  8949. rm conftest.$ac_ext
  8950. LIBS=$ac_func_search_save_LIBS
  8951. fi
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  8953. $as_echo "$ac_cv_search_opendir" >&6; }
  8954. ac_res=$ac_cv_search_opendir
  8955. if test "$ac_res" != no; then :
  8956. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8957. fi
  8958. else
  8959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  8960. $as_echo_n "checking for library containing opendir... " >&6; }
  8961. if test "${ac_cv_search_opendir+set}" = set; then :
  8962. $as_echo_n "(cached) " >&6
  8963. else
  8964. ac_func_search_save_LIBS=$LIBS
  8965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8966. /* end confdefs.h. */
  8967. /* Override any GCC internal prototype to avoid an error.
  8968. Use char because int might match the return type of a GCC
  8969. builtin and then its argument prototype would still apply. */
  8970. #ifdef __cplusplus
  8971. extern "C"
  8972. #endif
  8973. char opendir ();
  8974. int
  8975. main ()
  8976. {
  8977. return opendir ();
  8978. ;
  8979. return 0;
  8980. }
  8981. _ACEOF
  8982. for ac_lib in '' x; do
  8983. if test -z "$ac_lib"; then
  8984. ac_res="none required"
  8985. else
  8986. ac_res=-l$ac_lib
  8987. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8988. fi
  8989. if ac_fn_c_try_link "$LINENO"; then :
  8990. ac_cv_search_opendir=$ac_res
  8991. fi
  8992. rm -f core conftest.err conftest.$ac_objext \
  8993. conftest$ac_exeext
  8994. if test "${ac_cv_search_opendir+set}" = set; then :
  8995. break
  8996. fi
  8997. done
  8998. if test "${ac_cv_search_opendir+set}" = set; then :
  8999. else
  9000. ac_cv_search_opendir=no
  9001. fi
  9002. rm conftest.$ac_ext
  9003. LIBS=$ac_func_search_save_LIBS
  9004. fi
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9006. $as_echo "$ac_cv_search_opendir" >&6; }
  9007. ac_res=$ac_cv_search_opendir
  9008. if test "$ac_res" != no; then :
  9009. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9010. fi
  9011. fi
  9012. # Check whether --enable-ltdl-install was given.
  9013. if test "${enable_ltdl_install+set}" = set; then :
  9014. enableval=$enable_ltdl_install;
  9015. fi
  9016. if test x"${enable_ltdl_install-no}" != xno; then
  9017. INSTALL_LTDL_TRUE=
  9018. INSTALL_LTDL_FALSE='#'
  9019. else
  9020. INSTALL_LTDL_TRUE='#'
  9021. INSTALL_LTDL_FALSE=
  9022. fi
  9023. if test x"${enable_ltdl_convenience-no}" != xno; then
  9024. CONVENIENCE_LTDL_TRUE=
  9025. CONVENIENCE_LTDL_FALSE='#'
  9026. else
  9027. CONVENIENCE_LTDL_TRUE='#'
  9028. CONVENIENCE_LTDL_FALSE=
  9029. fi
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
  9031. $as_echo_n "checking which extension is used for loadable modules... " >&6; }
  9032. if test "${libltdl_cv_shlibext+set}" = set; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. ## GCJ LOCAL: gcj specific stuff. Please keep it.
  9036. # Here in libltdl for libgcj we don't build modules for darwin.
  9037. # So we say no. Then the extension gets .dylib which is the right
  9038. # thing for shared libraries on darwin. Please keep me next time you
  9039. # import libltdl.
  9040. case "$host_os" in
  9041. darwin*)
  9042. module=no
  9043. ;;
  9044. *)
  9045. module=yes
  9046. ;;
  9047. esac
  9048. eval libltdl_cv_shlibext=$shrext_cmds
  9049. fi
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  9051. $as_echo "$libltdl_cv_shlibext" >&6; }
  9052. if test -n "$libltdl_cv_shlibext"; then
  9053. cat >>confdefs.h <<_ACEOF
  9054. #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
  9055. _ACEOF
  9056. fi
  9057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
  9058. $as_echo_n "checking which variable specifies run-time library path... " >&6; }
  9059. if test "${libltdl_cv_shlibpath_var+set}" = set; then :
  9060. $as_echo_n "(cached) " >&6
  9061. else
  9062. libltdl_cv_shlibpath_var="$shlibpath_var"
  9063. fi
  9064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
  9065. $as_echo "$libltdl_cv_shlibpath_var" >&6; }
  9066. if test -n "$libltdl_cv_shlibpath_var"; then
  9067. cat >>confdefs.h <<_ACEOF
  9068. #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
  9069. _ACEOF
  9070. fi
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
  9072. $as_echo_n "checking for the default library search path... " >&6; }
  9073. if test "${libltdl_cv_sys_search_path+set}" = set; then :
  9074. $as_echo_n "(cached) " >&6
  9075. else
  9076. libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
  9077. fi
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
  9079. $as_echo "$libltdl_cv_sys_search_path" >&6; }
  9080. if test -n "$libltdl_cv_sys_search_path"; then
  9081. sys_search_path=
  9082. for dir in $libltdl_cv_sys_search_path; do
  9083. if test -z "$sys_search_path"; then
  9084. sys_search_path="$dir"
  9085. else
  9086. sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
  9087. fi
  9088. done
  9089. cat >>confdefs.h <<_ACEOF
  9090. #define LTDL_SYSSEARCHPATH "$sys_search_path"
  9091. _ACEOF
  9092. fi
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9094. $as_echo_n "checking for objdir... " >&6; }
  9095. if test "${libltdl_cv_objdir+set}" = set; then :
  9096. $as_echo_n "(cached) " >&6
  9097. else
  9098. libltdl_cv_objdir="$objdir"
  9099. if test -n "$objdir"; then
  9100. :
  9101. else
  9102. rm -f .libs 2>/dev/null
  9103. mkdir .libs 2>/dev/null
  9104. if test -d .libs; then
  9105. libltdl_cv_objdir=.libs
  9106. else
  9107. # MS-DOS does not allow filenames that begin with a dot.
  9108. libltdl_cv_objdir=_libs
  9109. fi
  9110. rmdir .libs 2>/dev/null
  9111. fi
  9112. fi
  9113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
  9114. $as_echo "$libltdl_cv_objdir" >&6; }
  9115. cat >>confdefs.h <<_ACEOF
  9116. #define LTDL_OBJDIR "$libltdl_cv_objdir/"
  9117. _ACEOF
  9118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
  9119. $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
  9120. if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
  9121. $as_echo_n "(cached) " >&6
  9122. else
  9123. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  9124. libltdl_cv_preloaded_symbols=yes
  9125. else
  9126. libltdl_cv_preloaded_symbols=no
  9127. fi
  9128. fi
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
  9130. $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
  9131. if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  9132. $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
  9133. fi
  9134. LIBADD_DL=
  9135. ac_ext=c
  9136. ac_cpp='$CPP $CPPFLAGS'
  9137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9140. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9141. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9142. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  9143. else
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9145. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9146. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9147. $as_echo_n "(cached) " >&6
  9148. else
  9149. ac_check_lib_save_LIBS=$LIBS
  9150. LIBS="-ldld $LIBS"
  9151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9152. /* end confdefs.h. */
  9153. /* Override any GCC internal prototype to avoid an error.
  9154. Use char because int might match the return type of a GCC
  9155. builtin and then its argument prototype would still apply. */
  9156. #ifdef __cplusplus
  9157. extern "C"
  9158. #endif
  9159. char shl_load ();
  9160. int
  9161. main ()
  9162. {
  9163. return shl_load ();
  9164. ;
  9165. return 0;
  9166. }
  9167. _ACEOF
  9168. if ac_fn_c_try_link "$LINENO"; then :
  9169. ac_cv_lib_dld_shl_load=yes
  9170. else
  9171. ac_cv_lib_dld_shl_load=no
  9172. fi
  9173. rm -f core conftest.err conftest.$ac_objext \
  9174. conftest$ac_exeext conftest.$ac_ext
  9175. LIBS=$ac_check_lib_save_LIBS
  9176. fi
  9177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9178. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9179. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9180. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  9181. LIBADD_DL="$LIBADD_DL -ldld"
  9182. else
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9184. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9185. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9186. $as_echo_n "(cached) " >&6
  9187. else
  9188. ac_check_lib_save_LIBS=$LIBS
  9189. LIBS="-ldl $LIBS"
  9190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9191. /* end confdefs.h. */
  9192. /* Override any GCC internal prototype to avoid an error.
  9193. Use char because int might match the return type of a GCC
  9194. builtin and then its argument prototype would still apply. */
  9195. #ifdef __cplusplus
  9196. extern "C"
  9197. #endif
  9198. char dlopen ();
  9199. int
  9200. main ()
  9201. {
  9202. return dlopen ();
  9203. ;
  9204. return 0;
  9205. }
  9206. _ACEOF
  9207. if ac_fn_c_try_link "$LINENO"; then :
  9208. ac_cv_lib_dl_dlopen=yes
  9209. else
  9210. ac_cv_lib_dl_dlopen=no
  9211. fi
  9212. rm -f core conftest.err conftest.$ac_objext \
  9213. conftest$ac_exeext conftest.$ac_ext
  9214. LIBS=$ac_check_lib_save_LIBS
  9215. fi
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9217. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9218. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9219. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  9220. LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
  9221. else
  9222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9223. /* end confdefs.h. */
  9224. #if HAVE_DLFCN_H
  9225. # include <dlfcn.h>
  9226. #endif
  9227. int
  9228. main ()
  9229. {
  9230. dlopen(0, 0);
  9231. ;
  9232. return 0;
  9233. }
  9234. _ACEOF
  9235. if ac_fn_c_try_link "$LINENO"; then :
  9236. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  9237. libltdl_cv_func_dlopen="yes"
  9238. else
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9240. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9241. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9242. $as_echo_n "(cached) " >&6
  9243. else
  9244. ac_check_lib_save_LIBS=$LIBS
  9245. LIBS="-lsvld $LIBS"
  9246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9247. /* end confdefs.h. */
  9248. /* Override any GCC internal prototype to avoid an error.
  9249. Use char because int might match the return type of a GCC
  9250. builtin and then its argument prototype would still apply. */
  9251. #ifdef __cplusplus
  9252. extern "C"
  9253. #endif
  9254. char dlopen ();
  9255. int
  9256. main ()
  9257. {
  9258. return dlopen ();
  9259. ;
  9260. return 0;
  9261. }
  9262. _ACEOF
  9263. if ac_fn_c_try_link "$LINENO"; then :
  9264. ac_cv_lib_svld_dlopen=yes
  9265. else
  9266. ac_cv_lib_svld_dlopen=no
  9267. fi
  9268. rm -f core conftest.err conftest.$ac_objext \
  9269. conftest$ac_exeext conftest.$ac_ext
  9270. LIBS=$ac_check_lib_save_LIBS
  9271. fi
  9272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9273. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9274. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9275. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  9276. LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
  9277. else
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9279. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9280. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9281. $as_echo_n "(cached) " >&6
  9282. else
  9283. ac_check_lib_save_LIBS=$LIBS
  9284. LIBS="-ldld $LIBS"
  9285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9286. /* end confdefs.h. */
  9287. /* Override any GCC internal prototype to avoid an error.
  9288. Use char because int might match the return type of a GCC
  9289. builtin and then its argument prototype would still apply. */
  9290. #ifdef __cplusplus
  9291. extern "C"
  9292. #endif
  9293. char dld_link ();
  9294. int
  9295. main ()
  9296. {
  9297. return dld_link ();
  9298. ;
  9299. return 0;
  9300. }
  9301. _ACEOF
  9302. if ac_fn_c_try_link "$LINENO"; then :
  9303. ac_cv_lib_dld_dld_link=yes
  9304. else
  9305. ac_cv_lib_dld_dld_link=no
  9306. fi
  9307. rm -f core conftest.err conftest.$ac_objext \
  9308. conftest$ac_exeext conftest.$ac_ext
  9309. LIBS=$ac_check_lib_save_LIBS
  9310. fi
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9312. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9313. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9314. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  9315. LIBADD_DL="$LIBADD_DL -ldld"
  9316. else
  9317. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  9318. if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
  9319. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  9320. fi
  9321. fi
  9322. fi
  9323. fi
  9324. rm -f core conftest.err conftest.$ac_objext \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. fi
  9327. fi
  9328. fi
  9329. if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  9330. then
  9331. lt_save_LIBS="$LIBS"
  9332. LIBS="$LIBS $LIBADD_DL"
  9333. for ac_func in dlerror
  9334. do :
  9335. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  9336. if test "x$ac_cv_func_dlerror" = x""yes; then :
  9337. cat >>confdefs.h <<_ACEOF
  9338. #define HAVE_DLERROR 1
  9339. _ACEOF
  9340. fi
  9341. done
  9342. LIBS="$lt_save_LIBS"
  9343. fi
  9344. ac_ext=c
  9345. ac_cpp='$CPP $CPPFLAGS'
  9346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  9350. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  9351. if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
  9352. $as_echo_n "(cached) " >&6
  9353. else
  9354. ac_cv_sys_symbol_underscore=no
  9355. cat > conftest.$ac_ext <<EOF
  9356. void nm_test_func(){}
  9357. int main(){nm_test_func;return 0;}
  9358. EOF
  9359. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9360. (eval $ac_compile) 2>&5
  9361. ac_status=$?
  9362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9363. test $ac_status = 0; }; then
  9364. # Now try to grab the symbols.
  9365. ac_nlist=conftest.nm
  9366. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  9367. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  9368. ac_status=$?
  9369. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9370. test $ac_status = 0; } && test -s "$ac_nlist"; then
  9371. # See whether the symbols have a leading underscore.
  9372. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  9373. ac_cv_sys_symbol_underscore=yes
  9374. else
  9375. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  9376. :
  9377. else
  9378. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  9379. fi
  9380. fi
  9381. else
  9382. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9383. fi
  9384. else
  9385. echo "configure: failed program was:" >&5
  9386. cat conftest.c >&5
  9387. fi
  9388. rm -rf conftest*
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
  9391. $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
  9392. if test x"$ac_cv_sys_symbol_underscore" = xyes; then
  9393. if test x"$libltdl_cv_func_dlopen" = xyes ||
  9394. test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
  9396. $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
  9397. if test "${libltdl_cv_need_uscore+set}" = set; then :
  9398. $as_echo_n "(cached) " >&6
  9399. else
  9400. libltdl_cv_need_uscore=unknown
  9401. save_LIBS="$LIBS"
  9402. LIBS="$LIBS $LIBADD_DL"
  9403. if test "$cross_compiling" = yes; then :
  9404. libltdl_cv_need_uscore=cross
  9405. else
  9406. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9407. lt_status=$lt_dlunknown
  9408. cat > conftest.$ac_ext <<EOF
  9409. #line 10600 "configure"
  9410. #include "confdefs.h"
  9411. #if HAVE_DLFCN_H
  9412. #include <dlfcn.h>
  9413. #endif
  9414. #include <stdio.h>
  9415. #ifdef RTLD_GLOBAL
  9416. # define LT_DLGLOBAL RTLD_GLOBAL
  9417. #else
  9418. # ifdef DL_GLOBAL
  9419. # define LT_DLGLOBAL DL_GLOBAL
  9420. # else
  9421. # define LT_DLGLOBAL 0
  9422. # endif
  9423. #endif
  9424. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9425. find out it does not work in some platform. */
  9426. #ifndef LT_DLLAZY_OR_NOW
  9427. # ifdef RTLD_LAZY
  9428. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9429. # else
  9430. # ifdef DL_LAZY
  9431. # define LT_DLLAZY_OR_NOW DL_LAZY
  9432. # else
  9433. # ifdef RTLD_NOW
  9434. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9435. # else
  9436. # ifdef DL_NOW
  9437. # define LT_DLLAZY_OR_NOW DL_NOW
  9438. # else
  9439. # define LT_DLLAZY_OR_NOW 0
  9440. # endif
  9441. # endif
  9442. # endif
  9443. # endif
  9444. #endif
  9445. #ifdef __cplusplus
  9446. extern "C" void exit (int);
  9447. #endif
  9448. void fnord() { int i=42;}
  9449. int main ()
  9450. {
  9451. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9452. int status = $lt_dlunknown;
  9453. if (self)
  9454. {
  9455. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9456. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9457. /* dlclose (self); */
  9458. }
  9459. exit (status);
  9460. }
  9461. EOF
  9462. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9463. (eval $ac_link) 2>&5
  9464. ac_status=$?
  9465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9466. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9467. (./conftest; exit; ) 2>/dev/null
  9468. lt_status=$?
  9469. case x$lt_status in
  9470. x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
  9471. x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
  9472. x$lt_unknown|x*) ;;
  9473. esac
  9474. else :
  9475. # compilation failed
  9476. fi
  9477. fi
  9478. rm -fr conftest*
  9479. LIBS="$save_LIBS"
  9480. fi
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
  9482. $as_echo "$libltdl_cv_need_uscore" >&6; }
  9483. fi
  9484. fi
  9485. if test x"$libltdl_cv_need_uscore" = xyes; then
  9486. $as_echo "#define NEED_USCORE 1" >>confdefs.h
  9487. fi
  9488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
  9489. $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
  9490. if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
  9491. $as_echo_n "(cached) " >&6
  9492. else
  9493. # PORTME does your system automatically load deplibs for dlopen?
  9494. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  9495. # For now, we just catch OSes we know something about -- in the
  9496. # future, we'll try test this programmatically.
  9497. libltdl_cv_sys_dlopen_deplibs=unknown
  9498. case "$host_os" in
  9499. aix3*|aix4.1.*|aix4.2.*)
  9500. # Unknown whether this is true for these versions of AIX, but
  9501. # we want this `case' here to explicitly catch those versions.
  9502. libltdl_cv_sys_dlopen_deplibs=unknown
  9503. ;;
  9504. aix[45]*)
  9505. libltdl_cv_sys_dlopen_deplibs=yes
  9506. ;;
  9507. darwin*)
  9508. # Assuming the user has installed a libdl from somewhere, this is true
  9509. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  9510. libltdl_cv_sys_dlopen_deplibs=yes
  9511. ;;
  9512. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
  9513. # GNU and its variants, using gnu ld.so (Glibc)
  9514. libltdl_cv_sys_dlopen_deplibs=yes
  9515. ;;
  9516. hpux10*|hpux11*)
  9517. libltdl_cv_sys_dlopen_deplibs=yes
  9518. ;;
  9519. irix[12345]*|irix6.[01]*)
  9520. # Catch all versions of IRIX before 6.2, and indicate that we don't
  9521. # know how it worked for any of those versions.
  9522. libltdl_cv_sys_dlopen_deplibs=unknown
  9523. ;;
  9524. irix*)
  9525. # The case above catches anything before 6.2, and it's known that
  9526. # at 6.2 and later dlopen does load deplibs.
  9527. libltdl_cv_sys_dlopen_deplibs=yes
  9528. ;;
  9529. netbsd*)
  9530. libltdl_cv_sys_dlopen_deplibs=yes
  9531. ;;
  9532. openbsd*)
  9533. libltdl_cv_sys_dlopen_deplibs=yes
  9534. ;;
  9535. osf[1234]*)
  9536. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  9537. # it did *not* use an RPATH in a shared library to find objects the
  9538. # library depends on, so we explictly say `no'.
  9539. libltdl_cv_sys_dlopen_deplibs=no
  9540. ;;
  9541. osf5.0|osf5.0a|osf5.1)
  9542. # dlopen *does* load deplibs and with the right loader patch applied
  9543. # it even uses RPATH in a shared library to search for shared objects
  9544. # that the library depends on, but there's no easy way to know if that
  9545. # patch is installed. Since this is the case, all we can really
  9546. # say is unknown -- it depends on the patch being installed. If
  9547. # it is, this changes to `yes'. Without it, it would be `no'.
  9548. libltdl_cv_sys_dlopen_deplibs=unknown
  9549. ;;
  9550. osf*)
  9551. # the two cases above should catch all versions of osf <= 5.1. Read
  9552. # the comments above for what we know about them.
  9553. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  9554. # is used to find them so we can finally say `yes'.
  9555. libltdl_cv_sys_dlopen_deplibs=yes
  9556. ;;
  9557. solaris*)
  9558. libltdl_cv_sys_dlopen_deplibs=yes
  9559. ;;
  9560. esac
  9561. fi
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
  9563. $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
  9564. if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
  9565. $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
  9566. fi
  9567. for ac_header in argz.h
  9568. do :
  9569. ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
  9570. if test "x$ac_cv_header_argz_h" = x""yes; then :
  9571. cat >>confdefs.h <<_ACEOF
  9572. #define HAVE_ARGZ_H 1
  9573. _ACEOF
  9574. fi
  9575. done
  9576. ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
  9577. # include <argz.h>
  9578. #endif
  9579. "
  9580. if test "x$ac_cv_type_error_t" = x""yes; then :
  9581. cat >>confdefs.h <<_ACEOF
  9582. #define HAVE_ERROR_T 1
  9583. _ACEOF
  9584. else
  9585. $as_echo "#define error_t int" >>confdefs.h
  9586. fi
  9587. for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
  9588. do :
  9589. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9590. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9591. eval as_val=\$$as_ac_var
  9592. if test "x$as_val" = x""yes; then :
  9593. cat >>confdefs.h <<_ACEOF
  9594. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9595. _ACEOF
  9596. fi
  9597. done
  9598. for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
  9599. stdio.h unistd.h
  9600. do :
  9601. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9602. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9603. eval as_val=\$$as_ac_Header
  9604. if test "x$as_val" = x""yes; then :
  9605. cat >>confdefs.h <<_ACEOF
  9606. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9607. _ACEOF
  9608. fi
  9609. done
  9610. for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
  9611. do :
  9612. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9613. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9614. eval as_val=\$$as_ac_Header
  9615. if test "x$as_val" = x""yes; then :
  9616. cat >>confdefs.h <<_ACEOF
  9617. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9618. _ACEOF
  9619. fi
  9620. done
  9621. for ac_header in string.h strings.h
  9622. do :
  9623. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9624. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9625. eval as_val=\$$as_ac_Header
  9626. if test "x$as_val" = x""yes; then :
  9627. cat >>confdefs.h <<_ACEOF
  9628. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9629. _ACEOF
  9630. break
  9631. fi
  9632. done
  9633. for ac_func in strchr index
  9634. do :
  9635. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9636. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9637. eval as_val=\$$as_ac_var
  9638. if test "x$as_val" = x""yes; then :
  9639. cat >>confdefs.h <<_ACEOF
  9640. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9641. _ACEOF
  9642. break
  9643. fi
  9644. done
  9645. for ac_func in strrchr rindex
  9646. do :
  9647. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9648. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9649. eval as_val=\$$as_ac_var
  9650. if test "x$as_val" = x""yes; then :
  9651. cat >>confdefs.h <<_ACEOF
  9652. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9653. _ACEOF
  9654. break
  9655. fi
  9656. done
  9657. for ac_func in memcpy bcopy
  9658. do :
  9659. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9660. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9661. eval as_val=\$$as_ac_var
  9662. if test "x$as_val" = x""yes; then :
  9663. cat >>confdefs.h <<_ACEOF
  9664. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9665. _ACEOF
  9666. break
  9667. fi
  9668. done
  9669. for ac_func in memmove strcmp
  9670. do :
  9671. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9672. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9673. eval as_val=\$$as_ac_var
  9674. if test "x$as_val" = x""yes; then :
  9675. cat >>confdefs.h <<_ACEOF
  9676. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9677. _ACEOF
  9678. fi
  9679. done
  9680. for ac_func in closedir opendir readdir
  9681. do :
  9682. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9683. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9684. eval as_val=\$$as_ac_var
  9685. if test "x$as_val" = x""yes; then :
  9686. cat >>confdefs.h <<_ACEOF
  9687. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9688. _ACEOF
  9689. fi
  9690. done
  9691. ## -------- ##
  9692. ## Outputs. ##
  9693. ## -------- ##
  9694. ac_config_files="$ac_config_files Makefile"
  9695. cat >confcache <<\_ACEOF
  9696. # This file is a shell script that caches the results of configure
  9697. # tests run on this system so they can be shared between configure
  9698. # scripts and configure runs, see configure's option --config-cache.
  9699. # It is not useful on other systems. If it contains results you don't
  9700. # want to keep, you may remove or edit it.
  9701. #
  9702. # config.status only pays attention to the cache file if you give it
  9703. # the --recheck option to rerun configure.
  9704. #
  9705. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9706. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9707. # following values.
  9708. _ACEOF
  9709. # The following way of writing the cache mishandles newlines in values,
  9710. # but we know of no workaround that is simple, portable, and efficient.
  9711. # So, we kill variables containing newlines.
  9712. # Ultrix sh set writes to stderr and can't be redirected directly,
  9713. # and sets the high bit in the cache file unless we assign to the vars.
  9714. (
  9715. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9716. eval ac_val=\$$ac_var
  9717. case $ac_val in #(
  9718. *${as_nl}*)
  9719. case $ac_var in #(
  9720. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9721. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9722. esac
  9723. case $ac_var in #(
  9724. _ | IFS | as_nl) ;; #(
  9725. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9726. *) { eval $ac_var=; unset $ac_var;} ;;
  9727. esac ;;
  9728. esac
  9729. done
  9730. (set) 2>&1 |
  9731. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9732. *${as_nl}ac_space=\ *)
  9733. # `set' does not quote correctly, so add quotes: double-quote
  9734. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9735. sed -n \
  9736. "s/'/'\\\\''/g;
  9737. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9738. ;; #(
  9739. *)
  9740. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9741. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9742. ;;
  9743. esac |
  9744. sort
  9745. ) |
  9746. sed '
  9747. /^ac_cv_env_/b end
  9748. t clear
  9749. :clear
  9750. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9751. t end
  9752. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9753. :end' >>confcache
  9754. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9755. if test -w "$cache_file"; then
  9756. test "x$cache_file" != "x/dev/null" &&
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9758. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9759. cat confcache >$cache_file
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9762. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9763. fi
  9764. fi
  9765. rm -f confcache
  9766. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9767. # Let make expand exec_prefix.
  9768. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9769. DEFS=-DHAVE_CONFIG_H
  9770. ac_libobjs=
  9771. ac_ltlibobjs=
  9772. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9773. # 1. Remove the extension, and $U if already installed.
  9774. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9775. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9776. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9777. # will be set to the directory where LIBOBJS objects are built.
  9778. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9779. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9780. done
  9781. LIBOBJS=$ac_libobjs
  9782. LTLIBOBJS=$ac_ltlibobjs
  9783. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9784. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9785. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9786. fi
  9787. if test -n "$EXEEXT"; then
  9788. am__EXEEXT_TRUE=
  9789. am__EXEEXT_FALSE='#'
  9790. else
  9791. am__EXEEXT_TRUE='#'
  9792. am__EXEEXT_FALSE=
  9793. fi
  9794. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9795. as_fn_error "conditional \"AMDEP\" was never defined.
  9796. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9797. fi
  9798. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9799. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  9800. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9801. fi
  9802. if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  9803. as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
  9804. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9805. fi
  9806. if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  9807. as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
  9808. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9809. fi
  9810. : ${CONFIG_STATUS=./config.status}
  9811. ac_write_fail=0
  9812. ac_clean_files_save=$ac_clean_files
  9813. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9815. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9816. as_write_fail=0
  9817. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9818. #! $SHELL
  9819. # Generated by $as_me.
  9820. # Run this file to recreate the current configuration.
  9821. # Compiler output produced by configure, useful for debugging
  9822. # configure, is in config.log if it exists.
  9823. debug=false
  9824. ac_cs_recheck=false
  9825. ac_cs_silent=false
  9826. SHELL=\${CONFIG_SHELL-$SHELL}
  9827. export SHELL
  9828. _ASEOF
  9829. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9830. ## -------------------- ##
  9831. ## M4sh Initialization. ##
  9832. ## -------------------- ##
  9833. # Be more Bourne compatible
  9834. DUALCASE=1; export DUALCASE # for MKS sh
  9835. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9836. emulate sh
  9837. NULLCMD=:
  9838. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9839. # is contrary to our usage. Disable this feature.
  9840. alias -g '${1+"$@"}'='"$@"'
  9841. setopt NO_GLOB_SUBST
  9842. else
  9843. case `(set -o) 2>/dev/null` in #(
  9844. *posix*) :
  9845. set -o posix ;; #(
  9846. *) :
  9847. ;;
  9848. esac
  9849. fi
  9850. as_nl='
  9851. '
  9852. export as_nl
  9853. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9854. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9855. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9856. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9857. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9858. # but without wasting forks for bash or zsh.
  9859. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9860. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9861. as_echo='print -r --'
  9862. as_echo_n='print -rn --'
  9863. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9864. as_echo='printf %s\n'
  9865. as_echo_n='printf %s'
  9866. else
  9867. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9868. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9869. as_echo_n='/usr/ucb/echo -n'
  9870. else
  9871. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9872. as_echo_n_body='eval
  9873. arg=$1;
  9874. case $arg in #(
  9875. *"$as_nl"*)
  9876. expr "X$arg" : "X\\(.*\\)$as_nl";
  9877. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9878. esac;
  9879. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9880. '
  9881. export as_echo_n_body
  9882. as_echo_n='sh -c $as_echo_n_body as_echo'
  9883. fi
  9884. export as_echo_body
  9885. as_echo='sh -c $as_echo_body as_echo'
  9886. fi
  9887. # The user is always right.
  9888. if test "${PATH_SEPARATOR+set}" != set; then
  9889. PATH_SEPARATOR=:
  9890. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9891. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9892. PATH_SEPARATOR=';'
  9893. }
  9894. fi
  9895. # IFS
  9896. # We need space, tab and new line, in precisely that order. Quoting is
  9897. # there to prevent editors from complaining about space-tab.
  9898. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9899. # splitting by setting IFS to empty value.)
  9900. IFS=" "" $as_nl"
  9901. # Find who we are. Look in the path if we contain no directory separator.
  9902. case $0 in #((
  9903. *[\\/]* ) as_myself=$0 ;;
  9904. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9905. for as_dir in $PATH
  9906. do
  9907. IFS=$as_save_IFS
  9908. test -z "$as_dir" && as_dir=.
  9909. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9910. done
  9911. IFS=$as_save_IFS
  9912. ;;
  9913. esac
  9914. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9915. # in which case we are not to be found in the path.
  9916. if test "x$as_myself" = x; then
  9917. as_myself=$0
  9918. fi
  9919. if test ! -f "$as_myself"; then
  9920. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9921. exit 1
  9922. fi
  9923. # Unset variables that we do not need and which cause bugs (e.g. in
  9924. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9925. # suppresses any "Segmentation fault" message there. '((' could
  9926. # trigger a bug in pdksh 5.2.14.
  9927. for as_var in BASH_ENV ENV MAIL MAILPATH
  9928. do eval test x\${$as_var+set} = xset \
  9929. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9930. done
  9931. PS1='$ '
  9932. PS2='> '
  9933. PS4='+ '
  9934. # NLS nuisances.
  9935. LC_ALL=C
  9936. export LC_ALL
  9937. LANGUAGE=C
  9938. export LANGUAGE
  9939. # CDPATH.
  9940. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9941. # as_fn_error ERROR [LINENO LOG_FD]
  9942. # ---------------------------------
  9943. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9944. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9945. # script with status $?, using 1 if that was 0.
  9946. as_fn_error ()
  9947. {
  9948. as_status=$?; test $as_status -eq 0 && as_status=1
  9949. if test "$3"; then
  9950. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9951. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9952. fi
  9953. $as_echo "$as_me: error: $1" >&2
  9954. as_fn_exit $as_status
  9955. } # as_fn_error
  9956. # as_fn_set_status STATUS
  9957. # -----------------------
  9958. # Set $? to STATUS, without forking.
  9959. as_fn_set_status ()
  9960. {
  9961. return $1
  9962. } # as_fn_set_status
  9963. # as_fn_exit STATUS
  9964. # -----------------
  9965. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9966. as_fn_exit ()
  9967. {
  9968. set +e
  9969. as_fn_set_status $1
  9970. exit $1
  9971. } # as_fn_exit
  9972. # as_fn_unset VAR
  9973. # ---------------
  9974. # Portably unset VAR.
  9975. as_fn_unset ()
  9976. {
  9977. { eval $1=; unset $1;}
  9978. }
  9979. as_unset=as_fn_unset
  9980. # as_fn_append VAR VALUE
  9981. # ----------------------
  9982. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9983. # advantage of any shell optimizations that allow amortized linear growth over
  9984. # repeated appends, instead of the typical quadratic growth present in naive
  9985. # implementations.
  9986. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9987. eval 'as_fn_append ()
  9988. {
  9989. eval $1+=\$2
  9990. }'
  9991. else
  9992. as_fn_append ()
  9993. {
  9994. eval $1=\$$1\$2
  9995. }
  9996. fi # as_fn_append
  9997. # as_fn_arith ARG...
  9998. # ------------------
  9999. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10000. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10001. # must be portable across $(()) and expr.
  10002. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10003. eval 'as_fn_arith ()
  10004. {
  10005. as_val=$(( $* ))
  10006. }'
  10007. else
  10008. as_fn_arith ()
  10009. {
  10010. as_val=`expr "$@" || test $? -eq 1`
  10011. }
  10012. fi # as_fn_arith
  10013. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10014. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10015. as_expr=expr
  10016. else
  10017. as_expr=false
  10018. fi
  10019. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10020. as_basename=basename
  10021. else
  10022. as_basename=false
  10023. fi
  10024. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10025. as_dirname=dirname
  10026. else
  10027. as_dirname=false
  10028. fi
  10029. as_me=`$as_basename -- "$0" ||
  10030. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10031. X"$0" : 'X\(//\)$' \| \
  10032. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10033. $as_echo X/"$0" |
  10034. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10035. s//\1/
  10036. q
  10037. }
  10038. /^X\/\(\/\/\)$/{
  10039. s//\1/
  10040. q
  10041. }
  10042. /^X\/\(\/\).*/{
  10043. s//\1/
  10044. q
  10045. }
  10046. s/.*/./; q'`
  10047. # Avoid depending upon Character Ranges.
  10048. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10049. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10050. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10051. as_cr_digits='0123456789'
  10052. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10053. ECHO_C= ECHO_N= ECHO_T=
  10054. case `echo -n x` in #(((((
  10055. -n*)
  10056. case `echo 'xy\c'` in
  10057. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10058. xy) ECHO_C='\c';;
  10059. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10060. ECHO_T=' ';;
  10061. esac;;
  10062. *)
  10063. ECHO_N='-n';;
  10064. esac
  10065. rm -f conf$$ conf$$.exe conf$$.file
  10066. if test -d conf$$.dir; then
  10067. rm -f conf$$.dir/conf$$.file
  10068. else
  10069. rm -f conf$$.dir
  10070. mkdir conf$$.dir 2>/dev/null
  10071. fi
  10072. if (echo >conf$$.file) 2>/dev/null; then
  10073. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10074. as_ln_s='ln -s'
  10075. # ... but there are two gotchas:
  10076. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10077. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10078. # In both cases, we have to default to `cp -p'.
  10079. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10080. as_ln_s='cp -p'
  10081. elif ln conf$$.file conf$$ 2>/dev/null; then
  10082. as_ln_s=ln
  10083. else
  10084. as_ln_s='cp -p'
  10085. fi
  10086. else
  10087. as_ln_s='cp -p'
  10088. fi
  10089. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10090. rmdir conf$$.dir 2>/dev/null
  10091. # as_fn_mkdir_p
  10092. # -------------
  10093. # Create "$as_dir" as a directory, including parents if necessary.
  10094. as_fn_mkdir_p ()
  10095. {
  10096. case $as_dir in #(
  10097. -*) as_dir=./$as_dir;;
  10098. esac
  10099. test -d "$as_dir" || eval $as_mkdir_p || {
  10100. as_dirs=
  10101. while :; do
  10102. case $as_dir in #(
  10103. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10104. *) as_qdir=$as_dir;;
  10105. esac
  10106. as_dirs="'$as_qdir' $as_dirs"
  10107. as_dir=`$as_dirname -- "$as_dir" ||
  10108. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10109. X"$as_dir" : 'X\(//\)[^/]' \| \
  10110. X"$as_dir" : 'X\(//\)$' \| \
  10111. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10112. $as_echo X"$as_dir" |
  10113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10114. s//\1/
  10115. q
  10116. }
  10117. /^X\(\/\/\)[^/].*/{
  10118. s//\1/
  10119. q
  10120. }
  10121. /^X\(\/\/\)$/{
  10122. s//\1/
  10123. q
  10124. }
  10125. /^X\(\/\).*/{
  10126. s//\1/
  10127. q
  10128. }
  10129. s/.*/./; q'`
  10130. test -d "$as_dir" && break
  10131. done
  10132. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10133. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10134. } # as_fn_mkdir_p
  10135. if mkdir -p . 2>/dev/null; then
  10136. as_mkdir_p='mkdir -p "$as_dir"'
  10137. else
  10138. test -d ./-p && rmdir ./-p
  10139. as_mkdir_p=false
  10140. fi
  10141. if test -x / >/dev/null 2>&1; then
  10142. as_test_x='test -x'
  10143. else
  10144. if ls -dL / >/dev/null 2>&1; then
  10145. as_ls_L_option=L
  10146. else
  10147. as_ls_L_option=
  10148. fi
  10149. as_test_x='
  10150. eval sh -c '\''
  10151. if test -d "$1"; then
  10152. test -d "$1/.";
  10153. else
  10154. case $1 in #(
  10155. -*)set "./$1";;
  10156. esac;
  10157. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10158. ???[sx]*):;;*)false;;esac;fi
  10159. '\'' sh
  10160. '
  10161. fi
  10162. as_executable_p=$as_test_x
  10163. # Sed expression to map a string onto a valid CPP name.
  10164. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10165. # Sed expression to map a string onto a valid variable name.
  10166. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10167. exec 6>&1
  10168. ## ----------------------------------- ##
  10169. ## Main body of $CONFIG_STATUS script. ##
  10170. ## ----------------------------------- ##
  10171. _ASEOF
  10172. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10173. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10174. # Save the log message, to keep $0 and so on meaningful, and to
  10175. # report actual input values of CONFIG_FILES etc. instead of their
  10176. # values after options handling.
  10177. ac_log="
  10178. This file was extended by libltdl $as_me 1.2, which was
  10179. generated by GNU Autoconf 2.64. Invocation command line was
  10180. CONFIG_FILES = $CONFIG_FILES
  10181. CONFIG_HEADERS = $CONFIG_HEADERS
  10182. CONFIG_LINKS = $CONFIG_LINKS
  10183. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10184. $ $0 $@
  10185. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10186. "
  10187. _ACEOF
  10188. case $ac_config_files in *"
  10189. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10190. esac
  10191. case $ac_config_headers in *"
  10192. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10193. esac
  10194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10195. # Files that config.status was made for.
  10196. config_files="$ac_config_files"
  10197. config_headers="$ac_config_headers"
  10198. config_commands="$ac_config_commands"
  10199. _ACEOF
  10200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10201. ac_cs_usage="\
  10202. \`$as_me' instantiates files and other configuration actions
  10203. from templates according to the current configuration. Unless the files
  10204. and actions are specified as TAGs, all are instantiated by default.
  10205. Usage: $0 [OPTION]... [TAG]...
  10206. -h, --help print this help, then exit
  10207. -V, --version print version number and configuration settings, then exit
  10208. -q, --quiet, --silent
  10209. do not print progress messages
  10210. -d, --debug don't remove temporary files
  10211. --recheck update $as_me by reconfiguring in the same conditions
  10212. --file=FILE[:TEMPLATE]
  10213. instantiate the configuration file FILE
  10214. --header=FILE[:TEMPLATE]
  10215. instantiate the configuration header FILE
  10216. Configuration files:
  10217. $config_files
  10218. Configuration headers:
  10219. $config_headers
  10220. Configuration commands:
  10221. $config_commands
  10222. Report bugs to <bug-libtool@gnu.org>."
  10223. _ACEOF
  10224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10225. ac_cs_version="\\
  10226. libltdl config.status 1.2
  10227. configured by $0, generated by GNU Autoconf 2.64,
  10228. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10229. Copyright (C) 2009 Free Software Foundation, Inc.
  10230. This config.status script is free software; the Free Software Foundation
  10231. gives unlimited permission to copy, distribute and modify it."
  10232. ac_pwd='$ac_pwd'
  10233. srcdir='$srcdir'
  10234. INSTALL='$INSTALL'
  10235. MKDIR_P='$MKDIR_P'
  10236. AWK='$AWK'
  10237. test -n "\$AWK" || AWK=awk
  10238. _ACEOF
  10239. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10240. # The default lists apply if the user does not specify any file.
  10241. ac_need_defaults=:
  10242. while test $# != 0
  10243. do
  10244. case $1 in
  10245. --*=*)
  10246. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10247. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10248. ac_shift=:
  10249. ;;
  10250. *)
  10251. ac_option=$1
  10252. ac_optarg=$2
  10253. ac_shift=shift
  10254. ;;
  10255. esac
  10256. case $ac_option in
  10257. # Handling of the options.
  10258. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10259. ac_cs_recheck=: ;;
  10260. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10261. $as_echo "$ac_cs_version"; exit ;;
  10262. --debug | --debu | --deb | --de | --d | -d )
  10263. debug=: ;;
  10264. --file | --fil | --fi | --f )
  10265. $ac_shift
  10266. case $ac_optarg in
  10267. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10268. esac
  10269. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10270. ac_need_defaults=false;;
  10271. --header | --heade | --head | --hea )
  10272. $ac_shift
  10273. case $ac_optarg in
  10274. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10275. esac
  10276. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10277. ac_need_defaults=false;;
  10278. --he | --h)
  10279. # Conflict between --help and --header
  10280. as_fn_error "ambiguous option: \`$1'
  10281. Try \`$0 --help' for more information.";;
  10282. --help | --hel | -h )
  10283. $as_echo "$ac_cs_usage"; exit ;;
  10284. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10285. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10286. ac_cs_silent=: ;;
  10287. # This is an error.
  10288. -*) as_fn_error "unrecognized option: \`$1'
  10289. Try \`$0 --help' for more information." ;;
  10290. *) as_fn_append ac_config_targets " $1"
  10291. ac_need_defaults=false ;;
  10292. esac
  10293. shift
  10294. done
  10295. ac_configure_extra_args=
  10296. if $ac_cs_silent; then
  10297. exec 6>/dev/null
  10298. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10299. fi
  10300. _ACEOF
  10301. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10302. if \$ac_cs_recheck; then
  10303. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10304. shift
  10305. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10306. CONFIG_SHELL='$SHELL'
  10307. export CONFIG_SHELL
  10308. exec "\$@"
  10309. fi
  10310. _ACEOF
  10311. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10312. exec 5>>config.log
  10313. {
  10314. echo
  10315. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10316. ## Running $as_me. ##
  10317. _ASBOX
  10318. $as_echo "$ac_log"
  10319. } >&5
  10320. _ACEOF
  10321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10322. #
  10323. # INIT-COMMANDS
  10324. #
  10325. srcdir="$srcdir"
  10326. host="$host"
  10327. target="$target"
  10328. with_multisubdir="$with_multisubdir"
  10329. with_multisrctop="$with_multisrctop"
  10330. with_target_subdir="$with_target_subdir"
  10331. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10332. multi_basedir="$multi_basedir"
  10333. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10334. CC="$CC"
  10335. CXX="$CXX"
  10336. GFORTRAN="$GFORTRAN"
  10337. GCJ="$GCJ"
  10338. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10339. _ACEOF
  10340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10341. # Handling of arguments.
  10342. for ac_config_target in $ac_config_targets
  10343. do
  10344. case $ac_config_target in
  10345. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10346. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
  10347. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10348. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10349. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10350. esac
  10351. done
  10352. # If the user did not use the arguments to specify the items to instantiate,
  10353. # then the envvar interface is used. Set only those that are not.
  10354. # We use the long form for the default assignment because of an extremely
  10355. # bizarre bug on SunOS 4.1.3.
  10356. if $ac_need_defaults; then
  10357. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10358. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10359. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10360. fi
  10361. # Have a temporary directory for convenience. Make it in the build tree
  10362. # simply because there is no reason against having it here, and in addition,
  10363. # creating and moving files from /tmp can sometimes cause problems.
  10364. # Hook for its removal unless debugging.
  10365. # Note that there is a small window in which the directory will not be cleaned:
  10366. # after its creation but before its name has been assigned to `$tmp'.
  10367. $debug ||
  10368. {
  10369. tmp=
  10370. trap 'exit_status=$?
  10371. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10372. ' 0
  10373. trap 'as_fn_exit 1' 1 2 13 15
  10374. }
  10375. # Create a (secure) tmp directory for tmp files.
  10376. {
  10377. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10378. test -n "$tmp" && test -d "$tmp"
  10379. } ||
  10380. {
  10381. tmp=./conf$$-$RANDOM
  10382. (umask 077 && mkdir "$tmp")
  10383. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10384. # Set up the scripts for CONFIG_FILES section.
  10385. # No need to generate them if there are no CONFIG_FILES.
  10386. # This happens for instance with `./config.status config.h'.
  10387. if test -n "$CONFIG_FILES"; then
  10388. ac_cr=`echo X | tr X '\015'`
  10389. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10390. # But we know of no other shell where ac_cr would be empty at this
  10391. # point, so we can use a bashism as a fallback.
  10392. if test "x$ac_cr" = x; then
  10393. eval ac_cr=\$\'\\r\'
  10394. fi
  10395. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10396. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10397. ac_cs_awk_cr='\r'
  10398. else
  10399. ac_cs_awk_cr=$ac_cr
  10400. fi
  10401. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10402. _ACEOF
  10403. {
  10404. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10405. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10406. echo "_ACEOF"
  10407. } >conf$$subs.sh ||
  10408. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10409. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10410. ac_delim='%!_!# '
  10411. for ac_last_try in false false false false false :; do
  10412. . ./conf$$subs.sh ||
  10413. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10414. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10415. if test $ac_delim_n = $ac_delim_num; then
  10416. break
  10417. elif $ac_last_try; then
  10418. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10419. else
  10420. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10421. fi
  10422. done
  10423. rm -f conf$$subs.sh
  10424. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10425. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10426. _ACEOF
  10427. sed -n '
  10428. h
  10429. s/^/S["/; s/!.*/"]=/
  10430. p
  10431. g
  10432. s/^[^!]*!//
  10433. :repl
  10434. t repl
  10435. s/'"$ac_delim"'$//
  10436. t delim
  10437. :nl
  10438. h
  10439. s/\(.\{148\}\).*/\1/
  10440. t more1
  10441. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10442. p
  10443. n
  10444. b repl
  10445. :more1
  10446. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10447. p
  10448. g
  10449. s/.\{148\}//
  10450. t nl
  10451. :delim
  10452. h
  10453. s/\(.\{148\}\).*/\1/
  10454. t more2
  10455. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10456. p
  10457. b
  10458. :more2
  10459. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10460. p
  10461. g
  10462. s/.\{148\}//
  10463. t delim
  10464. ' <conf$$subs.awk | sed '
  10465. /^[^""]/{
  10466. N
  10467. s/\n//
  10468. }
  10469. ' >>$CONFIG_STATUS || ac_write_fail=1
  10470. rm -f conf$$subs.awk
  10471. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10472. _ACAWK
  10473. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10474. for (key in S) S_is_set[key] = 1
  10475. FS = ""
  10476. }
  10477. {
  10478. line = $ 0
  10479. nfields = split(line, field, "@")
  10480. substed = 0
  10481. len = length(field[1])
  10482. for (i = 2; i < nfields; i++) {
  10483. key = field[i]
  10484. keylen = length(key)
  10485. if (S_is_set[key]) {
  10486. value = S[key]
  10487. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10488. len += length(value) + length(field[++i])
  10489. substed = 1
  10490. } else
  10491. len += 1 + keylen
  10492. }
  10493. print line
  10494. }
  10495. _ACAWK
  10496. _ACEOF
  10497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10498. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10499. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10500. else
  10501. cat
  10502. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10503. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10504. _ACEOF
  10505. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10506. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10507. # trailing colons and then remove the whole line if VPATH becomes empty
  10508. # (actually we leave an empty line to preserve line numbers).
  10509. if test "x$srcdir" = x.; then
  10510. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10511. s/:*\$(srcdir):*/:/
  10512. s/:*\${srcdir}:*/:/
  10513. s/:*@srcdir@:*/:/
  10514. s/^\([^=]*=[ ]*\):*/\1/
  10515. s/:*$//
  10516. s/^[^=]*=[ ]*$//
  10517. }'
  10518. fi
  10519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10520. fi # test -n "$CONFIG_FILES"
  10521. # Set up the scripts for CONFIG_HEADERS section.
  10522. # No need to generate them if there are no CONFIG_HEADERS.
  10523. # This happens for instance with `./config.status Makefile'.
  10524. if test -n "$CONFIG_HEADERS"; then
  10525. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10526. BEGIN {
  10527. _ACEOF
  10528. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10529. # here-document in config.status, that substitutes the proper values into
  10530. # config.h.in to produce config.h.
  10531. # Create a delimiter string that does not exist in confdefs.h, to ease
  10532. # handling of long lines.
  10533. ac_delim='%!_!# '
  10534. for ac_last_try in false false :; do
  10535. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10536. if test -z "$ac_t"; then
  10537. break
  10538. elif $ac_last_try; then
  10539. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  10540. else
  10541. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10542. fi
  10543. done
  10544. # For the awk script, D is an array of macro values keyed by name,
  10545. # likewise P contains macro parameters if any. Preserve backslash
  10546. # newline sequences.
  10547. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10548. sed -n '
  10549. s/.\{148\}/&'"$ac_delim"'/g
  10550. t rset
  10551. :rset
  10552. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10553. t def
  10554. d
  10555. :def
  10556. s/\\$//
  10557. t bsnl
  10558. s/["\\]/\\&/g
  10559. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10560. D["\1"]=" \3"/p
  10561. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10562. d
  10563. :bsnl
  10564. s/["\\]/\\&/g
  10565. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10566. D["\1"]=" \3\\\\\\n"\\/p
  10567. t cont
  10568. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10569. t cont
  10570. d
  10571. :cont
  10572. n
  10573. s/.\{148\}/&'"$ac_delim"'/g
  10574. t clear
  10575. :clear
  10576. s/\\$//
  10577. t bsnlc
  10578. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10579. d
  10580. :bsnlc
  10581. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10582. b cont
  10583. ' <confdefs.h | sed '
  10584. s/'"$ac_delim"'/"\\\
  10585. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10587. for (key in D) D_is_set[key] = 1
  10588. FS = ""
  10589. }
  10590. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10591. line = \$ 0
  10592. split(line, arg, " ")
  10593. if (arg[1] == "#") {
  10594. defundef = arg[2]
  10595. mac1 = arg[3]
  10596. } else {
  10597. defundef = substr(arg[1], 2)
  10598. mac1 = arg[2]
  10599. }
  10600. split(mac1, mac2, "(") #)
  10601. macro = mac2[1]
  10602. prefix = substr(line, 1, index(line, defundef) - 1)
  10603. if (D_is_set[macro]) {
  10604. # Preserve the white space surrounding the "#".
  10605. print prefix "define", macro P[macro] D[macro]
  10606. next
  10607. } else {
  10608. # Replace #undef with comments. This is necessary, for example,
  10609. # in the case of _POSIX_SOURCE, which is predefined and required
  10610. # on some systems where configure will not decide to define it.
  10611. if (defundef == "undef") {
  10612. print "/*", prefix defundef, macro, "*/"
  10613. next
  10614. }
  10615. }
  10616. }
  10617. { print }
  10618. _ACAWK
  10619. _ACEOF
  10620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10621. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  10622. fi # test -n "$CONFIG_HEADERS"
  10623. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10624. shift
  10625. for ac_tag
  10626. do
  10627. case $ac_tag in
  10628. :[FHLC]) ac_mode=$ac_tag; continue;;
  10629. esac
  10630. case $ac_mode$ac_tag in
  10631. :[FHL]*:*);;
  10632. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10633. :[FH]-) ac_tag=-:-;;
  10634. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10635. esac
  10636. ac_save_IFS=$IFS
  10637. IFS=:
  10638. set x $ac_tag
  10639. IFS=$ac_save_IFS
  10640. shift
  10641. ac_file=$1
  10642. shift
  10643. case $ac_mode in
  10644. :L) ac_source=$1;;
  10645. :[FH])
  10646. ac_file_inputs=
  10647. for ac_f
  10648. do
  10649. case $ac_f in
  10650. -) ac_f="$tmp/stdin";;
  10651. *) # Look for the file first in the build tree, then in the source tree
  10652. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10653. # because $ac_f cannot contain `:'.
  10654. test -f "$ac_f" ||
  10655. case $ac_f in
  10656. [\\/$]*) false;;
  10657. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10658. esac ||
  10659. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10660. esac
  10661. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10662. as_fn_append ac_file_inputs " '$ac_f'"
  10663. done
  10664. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10665. # use $as_me), people would be surprised to read:
  10666. # /* config.h. Generated by config.status. */
  10667. configure_input='Generated from '`
  10668. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10669. `' by configure.'
  10670. if test x"$ac_file" != x-; then
  10671. configure_input="$ac_file. $configure_input"
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10673. $as_echo "$as_me: creating $ac_file" >&6;}
  10674. fi
  10675. # Neutralize special characters interpreted by sed in replacement strings.
  10676. case $configure_input in #(
  10677. *\&* | *\|* | *\\* )
  10678. ac_sed_conf_input=`$as_echo "$configure_input" |
  10679. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10680. *) ac_sed_conf_input=$configure_input;;
  10681. esac
  10682. case $ac_tag in
  10683. *:-:* | *:-) cat >"$tmp/stdin" \
  10684. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  10685. esac
  10686. ;;
  10687. esac
  10688. ac_dir=`$as_dirname -- "$ac_file" ||
  10689. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10690. X"$ac_file" : 'X\(//\)[^/]' \| \
  10691. X"$ac_file" : 'X\(//\)$' \| \
  10692. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10693. $as_echo X"$ac_file" |
  10694. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10695. s//\1/
  10696. q
  10697. }
  10698. /^X\(\/\/\)[^/].*/{
  10699. s//\1/
  10700. q
  10701. }
  10702. /^X\(\/\/\)$/{
  10703. s//\1/
  10704. q
  10705. }
  10706. /^X\(\/\).*/{
  10707. s//\1/
  10708. q
  10709. }
  10710. s/.*/./; q'`
  10711. as_dir="$ac_dir"; as_fn_mkdir_p
  10712. ac_builddir=.
  10713. case "$ac_dir" in
  10714. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10715. *)
  10716. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10717. # A ".." for each directory in $ac_dir_suffix.
  10718. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10719. case $ac_top_builddir_sub in
  10720. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10721. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10722. esac ;;
  10723. esac
  10724. ac_abs_top_builddir=$ac_pwd
  10725. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10726. # for backward compatibility:
  10727. ac_top_builddir=$ac_top_build_prefix
  10728. case $srcdir in
  10729. .) # We are building in place.
  10730. ac_srcdir=.
  10731. ac_top_srcdir=$ac_top_builddir_sub
  10732. ac_abs_top_srcdir=$ac_pwd ;;
  10733. [\\/]* | ?:[\\/]* ) # Absolute name.
  10734. ac_srcdir=$srcdir$ac_dir_suffix;
  10735. ac_top_srcdir=$srcdir
  10736. ac_abs_top_srcdir=$srcdir ;;
  10737. *) # Relative name.
  10738. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10739. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10740. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10741. esac
  10742. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10743. case $ac_mode in
  10744. :F)
  10745. #
  10746. # CONFIG_FILE
  10747. #
  10748. case $INSTALL in
  10749. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10750. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10751. esac
  10752. ac_MKDIR_P=$MKDIR_P
  10753. case $MKDIR_P in
  10754. [\\/$]* | ?:[\\/]* ) ;;
  10755. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10756. esac
  10757. _ACEOF
  10758. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10759. # If the template does not know about datarootdir, expand it.
  10760. # FIXME: This hack should be removed a few years after 2.60.
  10761. ac_datarootdir_hack=; ac_datarootdir_seen=
  10762. ac_sed_dataroot='
  10763. /datarootdir/ {
  10764. p
  10765. q
  10766. }
  10767. /@datadir@/p
  10768. /@docdir@/p
  10769. /@infodir@/p
  10770. /@localedir@/p
  10771. /@mandir@/p'
  10772. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10773. *datarootdir*) ac_datarootdir_seen=yes;;
  10774. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10776. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10777. _ACEOF
  10778. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10779. ac_datarootdir_hack='
  10780. s&@datadir@&$datadir&g
  10781. s&@docdir@&$docdir&g
  10782. s&@infodir@&$infodir&g
  10783. s&@localedir@&$localedir&g
  10784. s&@mandir@&$mandir&g
  10785. s&\\\${datarootdir}&$datarootdir&g' ;;
  10786. esac
  10787. _ACEOF
  10788. # Neutralize VPATH when `$srcdir' = `.'.
  10789. # Shell code in configure.ac might set extrasub.
  10790. # FIXME: do we really want to maintain this feature?
  10791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10792. ac_sed_extra="$ac_vpsub
  10793. $extrasub
  10794. _ACEOF
  10795. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10796. :t
  10797. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10798. s|@configure_input@|$ac_sed_conf_input|;t t
  10799. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10800. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10801. s&@srcdir@&$ac_srcdir&;t t
  10802. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10803. s&@top_srcdir@&$ac_top_srcdir&;t t
  10804. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10805. s&@builddir@&$ac_builddir&;t t
  10806. s&@abs_builddir@&$ac_abs_builddir&;t t
  10807. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10808. s&@INSTALL@&$ac_INSTALL&;t t
  10809. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10810. $ac_datarootdir_hack
  10811. "
  10812. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10813. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10814. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10815. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10816. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10818. which seems to be undefined. Please make sure it is defined." >&5
  10819. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10820. which seems to be undefined. Please make sure it is defined." >&2;}
  10821. rm -f "$tmp/stdin"
  10822. case $ac_file in
  10823. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10824. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10825. esac \
  10826. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10827. ;;
  10828. :H)
  10829. #
  10830. # CONFIG_HEADER
  10831. #
  10832. if test x"$ac_file" != x-; then
  10833. {
  10834. $as_echo "/* $configure_input */" \
  10835. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  10836. } >"$tmp/config.h" \
  10837. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10838. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10840. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10841. else
  10842. rm -f "$ac_file"
  10843. mv "$tmp/config.h" "$ac_file" \
  10844. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10845. fi
  10846. else
  10847. $as_echo "/* $configure_input */" \
  10848. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  10849. || as_fn_error "could not create -" "$LINENO" 5
  10850. fi
  10851. # Compute "$ac_file"'s index in $config_headers.
  10852. _am_arg="$ac_file"
  10853. _am_stamp_count=1
  10854. for _am_header in $config_headers :; do
  10855. case $_am_header in
  10856. $_am_arg | $_am_arg:* )
  10857. break ;;
  10858. * )
  10859. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10860. esac
  10861. done
  10862. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10863. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10864. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10865. X"$_am_arg" : 'X\(//\)$' \| \
  10866. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10867. $as_echo X"$_am_arg" |
  10868. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10869. s//\1/
  10870. q
  10871. }
  10872. /^X\(\/\/\)[^/].*/{
  10873. s//\1/
  10874. q
  10875. }
  10876. /^X\(\/\/\)$/{
  10877. s//\1/
  10878. q
  10879. }
  10880. /^X\(\/\).*/{
  10881. s//\1/
  10882. q
  10883. }
  10884. s/.*/./; q'`/stamp-h$_am_stamp_count
  10885. ;;
  10886. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10887. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10888. ;;
  10889. esac
  10890. case $ac_file$ac_mode in
  10891. "default-1":C)
  10892. # Only add multilib support code if we just rebuilt the top-level
  10893. # Makefile.
  10894. case " $CONFIG_FILES " in
  10895. *" Makefile "*)
  10896. ac_file=Makefile . ${multi_basedir}/config-ml.in
  10897. ;;
  10898. esac ;;
  10899. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10900. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10901. # are listed without --file. Let's play safe and only enable the eval
  10902. # if we detect the quoting.
  10903. case $CONFIG_FILES in
  10904. *\'*) eval set x "$CONFIG_FILES" ;;
  10905. *) set x $CONFIG_FILES ;;
  10906. esac
  10907. shift
  10908. for mf
  10909. do
  10910. # Strip MF so we end up with the name of the file.
  10911. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10912. # Check whether this is an Automake generated Makefile or not.
  10913. # We used to match only the files named `Makefile.in', but
  10914. # some people rename them; so instead we look at the file content.
  10915. # Grep'ing the first line is not enough: some people post-process
  10916. # each Makefile.in and add a new line on top of each file to say so.
  10917. # Grep'ing the whole file is not good either: AIX grep has a line
  10918. # limit of 2048, but all sed's we know have understand at least 4000.
  10919. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10920. dirpart=`$as_dirname -- "$mf" ||
  10921. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10922. X"$mf" : 'X\(//\)[^/]' \| \
  10923. X"$mf" : 'X\(//\)$' \| \
  10924. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10925. $as_echo X"$mf" |
  10926. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10927. s//\1/
  10928. q
  10929. }
  10930. /^X\(\/\/\)[^/].*/{
  10931. s//\1/
  10932. q
  10933. }
  10934. /^X\(\/\/\)$/{
  10935. s//\1/
  10936. q
  10937. }
  10938. /^X\(\/\).*/{
  10939. s//\1/
  10940. q
  10941. }
  10942. s/.*/./; q'`
  10943. else
  10944. continue
  10945. fi
  10946. # Extract the definition of DEPDIR, am__include, and am__quote
  10947. # from the Makefile without running `make'.
  10948. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10949. test -z "$DEPDIR" && continue
  10950. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10951. test -z "am__include" && continue
  10952. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10953. # When using ansi2knr, U may be empty or an underscore; expand it
  10954. U=`sed -n 's/^U = //p' < "$mf"`
  10955. # Find all dependency output files, they are included files with
  10956. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10957. # simplest approach to changing $(DEPDIR) to its actual value in the
  10958. # expansion.
  10959. for file in `sed -n "
  10960. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10961. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10962. # Make sure the directory exists.
  10963. test -f "$dirpart/$file" && continue
  10964. fdir=`$as_dirname -- "$file" ||
  10965. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10966. X"$file" : 'X\(//\)[^/]' \| \
  10967. X"$file" : 'X\(//\)$' \| \
  10968. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10969. $as_echo X"$file" |
  10970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10971. s//\1/
  10972. q
  10973. }
  10974. /^X\(\/\/\)[^/].*/{
  10975. s//\1/
  10976. q
  10977. }
  10978. /^X\(\/\/\)$/{
  10979. s//\1/
  10980. q
  10981. }
  10982. /^X\(\/\).*/{
  10983. s//\1/
  10984. q
  10985. }
  10986. s/.*/./; q'`
  10987. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10988. # echo "creating $dirpart/$file"
  10989. echo '# dummy' > "$dirpart/$file"
  10990. done
  10991. done
  10992. }
  10993. ;;
  10994. esac
  10995. done # for ac_tag
  10996. as_fn_exit 0
  10997. _ACEOF
  10998. ac_clean_files=$ac_clean_files_save
  10999. test $ac_write_fail = 0 ||
  11000. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11001. # configure is writing to config.log, and then calls config.status.
  11002. # config.status does its own redirection, appending to config.log.
  11003. # Unfortunately, on DOS this fails, as config.log is still kept open
  11004. # by configure, so config.status won't be able to write to it; its
  11005. # output is simply discarded. So we exec the FD to /dev/null,
  11006. # effectively closing config.log, so it can be properly (re)opened and
  11007. # appended to by config.status. When coming back to configure, we
  11008. # need to make the FD available again.
  11009. if test "$no_create" != yes; then
  11010. ac_cs_success=:
  11011. ac_config_status_args=
  11012. test "$silent" = yes &&
  11013. ac_config_status_args="$ac_config_status_args --quiet"
  11014. exec 5>/dev/null
  11015. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11016. exec 5>>config.log
  11017. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11018. # would make configure fail if this is the last instruction.
  11019. $ac_cs_success || as_fn_exit $?
  11020. fi
  11021. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11023. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11024. fi