configure 387 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME=
  509. PACKAGE_TARNAME=
  510. PACKAGE_VERSION=
  511. PACKAGE_STRING=
  512. PACKAGE_BUGREPORT=
  513. PACKAGE_URL=
  514. ac_unique_file="zlib.h"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. PICFLAG
  555. TARGET_LIBRARY_FALSE
  556. TARGET_LIBRARY_TRUE
  557. toolexeclibdir
  558. toolexecdir
  559. target_all
  560. CPP
  561. OTOOL64
  562. OTOOL
  563. LIPO
  564. NMEDIT
  565. DSYMUTIL
  566. RANLIB
  567. AR
  568. OBJDUMP
  569. LN_S
  570. NM
  571. ac_ct_DUMPBIN
  572. DUMPBIN
  573. LD
  574. FGREP
  575. EGREP
  576. GREP
  577. SED
  578. LIBTOOL
  579. am__fastdepCC_FALSE
  580. am__fastdepCC_TRUE
  581. CCDEPMODE
  582. AMDEPBACKSLASH
  583. AMDEP_FALSE
  584. AMDEP_TRUE
  585. am__quote
  586. am__include
  587. DEPDIR
  588. OBJEXT
  589. EXEEXT
  590. ac_ct_CC
  591. CPPFLAGS
  592. LDFLAGS
  593. CFLAGS
  594. CC
  595. COMPPATH
  596. MAINT
  597. MAINTAINER_MODE_FALSE
  598. MAINTAINER_MODE_TRUE
  599. am__untar
  600. am__tar
  601. AMTAR
  602. am__leading_dot
  603. SET_MAKE
  604. AWK
  605. mkdir_p
  606. MKDIR_P
  607. INSTALL_STRIP_PROGRAM
  608. STRIP
  609. install_sh
  610. MAKEINFO
  611. AUTOHEADER
  612. AUTOMAKE
  613. AUTOCONF
  614. ACLOCAL
  615. VERSION
  616. PACKAGE
  617. CYGPATH_W
  618. am__isrc
  619. INSTALL_DATA
  620. INSTALL_SCRIPT
  621. INSTALL_PROGRAM
  622. mkinstalldirs
  623. target_os
  624. target_vendor
  625. target_cpu
  626. target
  627. host_os
  628. host_vendor
  629. host_cpu
  630. host
  631. build_os
  632. build_vendor
  633. build_cpu
  634. build
  635. multi_basedir
  636. target_alias
  637. host_alias
  638. build_alias
  639. LIBS
  640. ECHO_T
  641. ECHO_N
  642. ECHO_C
  643. DEFS
  644. mandir
  645. localedir
  646. libdir
  647. psdir
  648. pdfdir
  649. dvidir
  650. htmldir
  651. infodir
  652. docdir
  653. oldincludedir
  654. includedir
  655. localstatedir
  656. sharedstatedir
  657. sysconfdir
  658. datadir
  659. datarootdir
  660. libexecdir
  661. sbindir
  662. bindir
  663. program_transform_name
  664. prefix
  665. exec_prefix
  666. PACKAGE_URL
  667. PACKAGE_BUGREPORT
  668. PACKAGE_STRING
  669. PACKAGE_VERSION
  670. PACKAGE_TARNAME
  671. PACKAGE_NAME
  672. PATH_SEPARATOR
  673. SHELL'
  674. ac_subst_files=''
  675. ac_user_opts='
  676. enable_option_checking
  677. enable_multilib
  678. enable_maintainer_mode
  679. with_target_subdir
  680. with_cross_host
  681. with_system_zlib
  682. enable_dependency_tracking
  683. enable_shared
  684. enable_static
  685. with_pic
  686. enable_fast_install
  687. with_gnu_ld
  688. enable_libtool_lock
  689. enable_host_shared
  690. '
  691. ac_precious_vars='build_alias
  692. host_alias
  693. target_alias
  694. CPP
  695. CPPFLAGS'
  696. # Initialize some variables set by options.
  697. ac_init_help=
  698. ac_init_version=false
  699. ac_unrecognized_opts=
  700. ac_unrecognized_sep=
  701. # The variables have the same names as the options, with
  702. # dashes changed to underlines.
  703. cache_file=/dev/null
  704. exec_prefix=NONE
  705. no_create=
  706. no_recursion=
  707. prefix=NONE
  708. program_prefix=NONE
  709. program_suffix=NONE
  710. program_transform_name=s,x,x,
  711. silent=
  712. site=
  713. srcdir=
  714. verbose=
  715. x_includes=NONE
  716. x_libraries=NONE
  717. # Installation directory options.
  718. # These are left unexpanded so users can "make install exec_prefix=/foo"
  719. # and all the variables that are supposed to be based on exec_prefix
  720. # by default will actually change.
  721. # Use braces instead of parens because sh, perl, etc. also accept them.
  722. # (The list follows the same order as the GNU Coding Standards.)
  723. bindir='${exec_prefix}/bin'
  724. sbindir='${exec_prefix}/sbin'
  725. libexecdir='${exec_prefix}/libexec'
  726. datarootdir='${prefix}/share'
  727. datadir='${datarootdir}'
  728. sysconfdir='${prefix}/etc'
  729. sharedstatedir='${prefix}/com'
  730. localstatedir='${prefix}/var'
  731. includedir='${prefix}/include'
  732. oldincludedir='/usr/include'
  733. docdir='${datarootdir}/doc/${PACKAGE}'
  734. infodir='${datarootdir}/info'
  735. htmldir='${docdir}'
  736. dvidir='${docdir}'
  737. pdfdir='${docdir}'
  738. psdir='${docdir}'
  739. libdir='${exec_prefix}/lib'
  740. localedir='${datarootdir}/locale'
  741. mandir='${datarootdir}/man'
  742. ac_prev=
  743. ac_dashdash=
  744. for ac_option
  745. do
  746. # If the previous option needs an argument, assign it.
  747. if test -n "$ac_prev"; then
  748. eval $ac_prev=\$ac_option
  749. ac_prev=
  750. continue
  751. fi
  752. case $ac_option in
  753. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  754. *) ac_optarg=yes ;;
  755. esac
  756. # Accept the important Cygnus configure options, so we can diagnose typos.
  757. case $ac_dashdash$ac_option in
  758. --)
  759. ac_dashdash=yes ;;
  760. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  761. ac_prev=bindir ;;
  762. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  763. bindir=$ac_optarg ;;
  764. -build | --build | --buil | --bui | --bu)
  765. ac_prev=build_alias ;;
  766. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  767. build_alias=$ac_optarg ;;
  768. -cache-file | --cache-file | --cache-fil | --cache-fi \
  769. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  770. ac_prev=cache_file ;;
  771. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  772. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  773. cache_file=$ac_optarg ;;
  774. --config-cache | -C)
  775. cache_file=config.cache ;;
  776. -datadir | --datadir | --datadi | --datad)
  777. ac_prev=datadir ;;
  778. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  779. datadir=$ac_optarg ;;
  780. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  781. | --dataroo | --dataro | --datar)
  782. ac_prev=datarootdir ;;
  783. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  784. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  785. datarootdir=$ac_optarg ;;
  786. -disable-* | --disable-*)
  787. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  788. # Reject names that are not valid shell variable names.
  789. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  790. as_fn_error "invalid feature name: $ac_useropt"
  791. ac_useropt_orig=$ac_useropt
  792. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  793. case $ac_user_opts in
  794. *"
  795. "enable_$ac_useropt"
  796. "*) ;;
  797. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  798. ac_unrecognized_sep=', ';;
  799. esac
  800. eval enable_$ac_useropt=no ;;
  801. -docdir | --docdir | --docdi | --doc | --do)
  802. ac_prev=docdir ;;
  803. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  804. docdir=$ac_optarg ;;
  805. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  806. ac_prev=dvidir ;;
  807. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  808. dvidir=$ac_optarg ;;
  809. -enable-* | --enable-*)
  810. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  811. # Reject names that are not valid shell variable names.
  812. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  813. as_fn_error "invalid feature name: $ac_useropt"
  814. ac_useropt_orig=$ac_useropt
  815. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  816. case $ac_user_opts in
  817. *"
  818. "enable_$ac_useropt"
  819. "*) ;;
  820. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  821. ac_unrecognized_sep=', ';;
  822. esac
  823. eval enable_$ac_useropt=\$ac_optarg ;;
  824. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  825. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  826. | --exec | --exe | --ex)
  827. ac_prev=exec_prefix ;;
  828. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  829. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  830. | --exec=* | --exe=* | --ex=*)
  831. exec_prefix=$ac_optarg ;;
  832. -gas | --gas | --ga | --g)
  833. # Obsolete; use --with-gas.
  834. with_gas=yes ;;
  835. -help | --help | --hel | --he | -h)
  836. ac_init_help=long ;;
  837. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  838. ac_init_help=recursive ;;
  839. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  840. ac_init_help=short ;;
  841. -host | --host | --hos | --ho)
  842. ac_prev=host_alias ;;
  843. -host=* | --host=* | --hos=* | --ho=*)
  844. host_alias=$ac_optarg ;;
  845. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  846. ac_prev=htmldir ;;
  847. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  848. | --ht=*)
  849. htmldir=$ac_optarg ;;
  850. -includedir | --includedir | --includedi | --included | --include \
  851. | --includ | --inclu | --incl | --inc)
  852. ac_prev=includedir ;;
  853. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  854. | --includ=* | --inclu=* | --incl=* | --inc=*)
  855. includedir=$ac_optarg ;;
  856. -infodir | --infodir | --infodi | --infod | --info | --inf)
  857. ac_prev=infodir ;;
  858. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  859. infodir=$ac_optarg ;;
  860. -libdir | --libdir | --libdi | --libd)
  861. ac_prev=libdir ;;
  862. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  863. libdir=$ac_optarg ;;
  864. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  865. | --libexe | --libex | --libe)
  866. ac_prev=libexecdir ;;
  867. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  868. | --libexe=* | --libex=* | --libe=*)
  869. libexecdir=$ac_optarg ;;
  870. -localedir | --localedir | --localedi | --localed | --locale)
  871. ac_prev=localedir ;;
  872. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  873. localedir=$ac_optarg ;;
  874. -localstatedir | --localstatedir | --localstatedi | --localstated \
  875. | --localstate | --localstat | --localsta | --localst | --locals)
  876. ac_prev=localstatedir ;;
  877. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  878. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  879. localstatedir=$ac_optarg ;;
  880. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  881. ac_prev=mandir ;;
  882. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  883. mandir=$ac_optarg ;;
  884. -nfp | --nfp | --nf)
  885. # Obsolete; use --without-fp.
  886. with_fp=no ;;
  887. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  888. | --no-cr | --no-c | -n)
  889. no_create=yes ;;
  890. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  891. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  892. no_recursion=yes ;;
  893. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  894. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  895. | --oldin | --oldi | --old | --ol | --o)
  896. ac_prev=oldincludedir ;;
  897. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  898. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  899. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  900. oldincludedir=$ac_optarg ;;
  901. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  902. ac_prev=prefix ;;
  903. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  904. prefix=$ac_optarg ;;
  905. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  906. | --program-pre | --program-pr | --program-p)
  907. ac_prev=program_prefix ;;
  908. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  909. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  910. program_prefix=$ac_optarg ;;
  911. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  912. | --program-suf | --program-su | --program-s)
  913. ac_prev=program_suffix ;;
  914. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  915. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  916. program_suffix=$ac_optarg ;;
  917. -program-transform-name | --program-transform-name \
  918. | --program-transform-nam | --program-transform-na \
  919. | --program-transform-n | --program-transform- \
  920. | --program-transform | --program-transfor \
  921. | --program-transfo | --program-transf \
  922. | --program-trans | --program-tran \
  923. | --progr-tra | --program-tr | --program-t)
  924. ac_prev=program_transform_name ;;
  925. -program-transform-name=* | --program-transform-name=* \
  926. | --program-transform-nam=* | --program-transform-na=* \
  927. | --program-transform-n=* | --program-transform-=* \
  928. | --program-transform=* | --program-transfor=* \
  929. | --program-transfo=* | --program-transf=* \
  930. | --program-trans=* | --program-tran=* \
  931. | --progr-tra=* | --program-tr=* | --program-t=*)
  932. program_transform_name=$ac_optarg ;;
  933. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  934. ac_prev=pdfdir ;;
  935. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  936. pdfdir=$ac_optarg ;;
  937. -psdir | --psdir | --psdi | --psd | --ps)
  938. ac_prev=psdir ;;
  939. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  940. psdir=$ac_optarg ;;
  941. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  942. | -silent | --silent | --silen | --sile | --sil)
  943. silent=yes ;;
  944. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  945. ac_prev=sbindir ;;
  946. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  947. | --sbi=* | --sb=*)
  948. sbindir=$ac_optarg ;;
  949. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  950. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  951. | --sharedst | --shareds | --shared | --share | --shar \
  952. | --sha | --sh)
  953. ac_prev=sharedstatedir ;;
  954. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  955. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  956. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  957. | --sha=* | --sh=*)
  958. sharedstatedir=$ac_optarg ;;
  959. -site | --site | --sit)
  960. ac_prev=site ;;
  961. -site=* | --site=* | --sit=*)
  962. site=$ac_optarg ;;
  963. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  964. ac_prev=srcdir ;;
  965. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  966. srcdir=$ac_optarg ;;
  967. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  968. | --syscon | --sysco | --sysc | --sys | --sy)
  969. ac_prev=sysconfdir ;;
  970. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  971. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  972. sysconfdir=$ac_optarg ;;
  973. -target | --target | --targe | --targ | --tar | --ta | --t)
  974. ac_prev=target_alias ;;
  975. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  976. target_alias=$ac_optarg ;;
  977. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  978. verbose=yes ;;
  979. -version | --version | --versio | --versi | --vers | -V)
  980. ac_init_version=: ;;
  981. -with-* | --with-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error "invalid package name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "with_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval with_$ac_useropt=\$ac_optarg ;;
  996. -without-* | --without-*)
  997. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1000. as_fn_error "invalid package name: $ac_useropt"
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=no ;;
  1011. --x)
  1012. # Obsolete; use --with-x.
  1013. with_x=yes ;;
  1014. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1015. | --x-incl | --x-inc | --x-in | --x-i)
  1016. ac_prev=x_includes ;;
  1017. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1018. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1019. x_includes=$ac_optarg ;;
  1020. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1021. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1022. ac_prev=x_libraries ;;
  1023. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1024. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1025. x_libraries=$ac_optarg ;;
  1026. -*) as_fn_error "unrecognized option: \`$ac_option'
  1027. Try \`$0 --help' for more information."
  1028. ;;
  1029. *=*)
  1030. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1031. # Reject names that are not valid shell variable names.
  1032. case $ac_envvar in #(
  1033. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1034. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1035. esac
  1036. eval $ac_envvar=\$ac_optarg
  1037. export $ac_envvar ;;
  1038. *)
  1039. # FIXME: should be removed in autoconf 3.0.
  1040. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1041. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1042. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1043. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1044. ;;
  1045. esac
  1046. done
  1047. if test -n "$ac_prev"; then
  1048. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1049. as_fn_error "missing argument to $ac_option"
  1050. fi
  1051. if test -n "$ac_unrecognized_opts"; then
  1052. case $enable_option_checking in
  1053. no) ;;
  1054. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1055. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1056. esac
  1057. fi
  1058. # Check all directory arguments for consistency.
  1059. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1060. datadir sysconfdir sharedstatedir localstatedir includedir \
  1061. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1062. libdir localedir mandir
  1063. do
  1064. eval ac_val=\$$ac_var
  1065. # Remove trailing slashes.
  1066. case $ac_val in
  1067. */ )
  1068. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1069. eval $ac_var=\$ac_val;;
  1070. esac
  1071. # Be sure to have absolute directory names.
  1072. case $ac_val in
  1073. [\\/$]* | ?:[\\/]* ) continue;;
  1074. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1075. esac
  1076. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1077. done
  1078. # There might be people who depend on the old broken behavior: `$host'
  1079. # used to hold the argument of --host etc.
  1080. # FIXME: To remove some day.
  1081. build=$build_alias
  1082. host=$host_alias
  1083. target=$target_alias
  1084. # FIXME: To remove some day.
  1085. if test "x$host_alias" != x; then
  1086. if test "x$build_alias" = x; then
  1087. cross_compiling=maybe
  1088. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1089. If a cross compiler is detected then cross compile mode will be used." >&2
  1090. elif test "x$build_alias" != "x$host_alias"; then
  1091. cross_compiling=yes
  1092. fi
  1093. fi
  1094. ac_tool_prefix=
  1095. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1096. test "$silent" = yes && exec 6>/dev/null
  1097. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1098. ac_ls_di=`ls -di .` &&
  1099. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1100. as_fn_error "working directory cannot be determined"
  1101. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1102. as_fn_error "pwd does not report name of working directory"
  1103. # Find the source files, if location was not specified.
  1104. if test -z "$srcdir"; then
  1105. ac_srcdir_defaulted=yes
  1106. # Try the directory containing this script, then the parent directory.
  1107. ac_confdir=`$as_dirname -- "$as_myself" ||
  1108. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1109. X"$as_myself" : 'X\(//\)[^/]' \| \
  1110. X"$as_myself" : 'X\(//\)$' \| \
  1111. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1112. $as_echo X"$as_myself" |
  1113. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1114. s//\1/
  1115. q
  1116. }
  1117. /^X\(\/\/\)[^/].*/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\/\)$/{
  1122. s//\1/
  1123. q
  1124. }
  1125. /^X\(\/\).*/{
  1126. s//\1/
  1127. q
  1128. }
  1129. s/.*/./; q'`
  1130. srcdir=$ac_confdir
  1131. if test ! -r "$srcdir/$ac_unique_file"; then
  1132. srcdir=..
  1133. fi
  1134. else
  1135. ac_srcdir_defaulted=no
  1136. fi
  1137. if test ! -r "$srcdir/$ac_unique_file"; then
  1138. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1139. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1140. fi
  1141. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1142. ac_abs_confdir=`(
  1143. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1144. pwd)`
  1145. # When building in place, set srcdir=.
  1146. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1147. srcdir=.
  1148. fi
  1149. # Remove unnecessary trailing slashes from srcdir.
  1150. # Double slashes in file names in object file debugging info
  1151. # mess up M-x gdb in Emacs.
  1152. case $srcdir in
  1153. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1154. esac
  1155. for ac_var in $ac_precious_vars; do
  1156. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1157. eval ac_env_${ac_var}_value=\$${ac_var}
  1158. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1159. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1160. done
  1161. #
  1162. # Report the --help message.
  1163. #
  1164. if test "$ac_init_help" = "long"; then
  1165. # Omit some internal or obsolete options to make the list less imposing.
  1166. # This message is too long to be a string in the A/UX 3.1 sh.
  1167. cat <<_ACEOF
  1168. \`configure' configures this package to adapt to many kinds of systems.
  1169. Usage: $0 [OPTION]... [VAR=VALUE]...
  1170. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1171. VAR=VALUE. See below for descriptions of some of the useful variables.
  1172. Defaults for the options are specified in brackets.
  1173. Configuration:
  1174. -h, --help display this help and exit
  1175. --help=short display options specific to this package
  1176. --help=recursive display the short help of all the included packages
  1177. -V, --version display version information and exit
  1178. -q, --quiet, --silent do not print \`checking...' messages
  1179. --cache-file=FILE cache test results in FILE [disabled]
  1180. -C, --config-cache alias for \`--cache-file=config.cache'
  1181. -n, --no-create do not create output files
  1182. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1183. Installation directories:
  1184. --prefix=PREFIX install architecture-independent files in PREFIX
  1185. [$ac_default_prefix]
  1186. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1187. [PREFIX]
  1188. By default, \`make install' will install all the files in
  1189. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1190. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1191. for instance \`--prefix=\$HOME'.
  1192. For better control, use the options below.
  1193. Fine tuning of the installation directories:
  1194. --bindir=DIR user executables [EPREFIX/bin]
  1195. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1196. --libexecdir=DIR program executables [EPREFIX/libexec]
  1197. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1198. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1199. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1200. --libdir=DIR object code libraries [EPREFIX/lib]
  1201. --includedir=DIR C header files [PREFIX/include]
  1202. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1203. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1204. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1205. --infodir=DIR info documentation [DATAROOTDIR/info]
  1206. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1207. --mandir=DIR man documentation [DATAROOTDIR/man]
  1208. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1209. --htmldir=DIR html documentation [DOCDIR]
  1210. --dvidir=DIR dvi documentation [DOCDIR]
  1211. --pdfdir=DIR pdf documentation [DOCDIR]
  1212. --psdir=DIR ps documentation [DOCDIR]
  1213. _ACEOF
  1214. cat <<\_ACEOF
  1215. Program names:
  1216. --program-prefix=PREFIX prepend PREFIX to installed program names
  1217. --program-suffix=SUFFIX append SUFFIX to installed program names
  1218. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1219. System types:
  1220. --build=BUILD configure for building on BUILD [guessed]
  1221. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1222. --target=TARGET configure for building compilers for TARGET [HOST]
  1223. _ACEOF
  1224. fi
  1225. if test -n "$ac_init_help"; then
  1226. cat <<\_ACEOF
  1227. Optional Features:
  1228. --disable-option-checking ignore unrecognized --enable/--with options
  1229. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1230. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1231. --enable-multilib build many library versions (default)
  1232. --enable-maintainer-mode enable make rules and dependencies not useful
  1233. (and sometimes confusing) to the casual installer
  1234. --disable-dependency-tracking speeds up one-time build
  1235. --enable-dependency-tracking do not reject slow dependency extractors
  1236. --enable-shared[=PKGS] build shared libraries [default=yes]
  1237. --enable-static[=PKGS] build static libraries [default=yes]
  1238. --enable-fast-install[=PKGS]
  1239. optimize for fast installation [default=yes]
  1240. --disable-libtool-lock avoid locking (might break parallel builds)
  1241. --enable-host-shared build host code as shared libraries
  1242. Optional Packages:
  1243. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1244. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1245. --with-target-subdir=SUBDIR
  1246. configuring in a subdirectory
  1247. --with-cross-host=HOST configuring with a cross compiler
  1248. --with-system-zlib use installed libz
  1249. --with-pic try to use only PIC/non-PIC objects [default=use
  1250. both]
  1251. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1252. Some influential environment variables:
  1253. CC C compiler command
  1254. CFLAGS C compiler flags
  1255. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1256. nonstandard directory <lib dir>
  1257. LIBS libraries to pass to the linker, e.g. -l<library>
  1258. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1259. you have headers in a nonstandard directory <include dir>
  1260. CPP C preprocessor
  1261. Use these variables to override the choices made by `configure' or to help
  1262. it to find libraries and programs with nonstandard names/locations.
  1263. Report bugs to the package provider.
  1264. _ACEOF
  1265. ac_status=$?
  1266. fi
  1267. if test "$ac_init_help" = "recursive"; then
  1268. # If there are subdirs, report their specific --help.
  1269. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1270. test -d "$ac_dir" ||
  1271. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1272. continue
  1273. ac_builddir=.
  1274. case "$ac_dir" in
  1275. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1276. *)
  1277. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1278. # A ".." for each directory in $ac_dir_suffix.
  1279. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1280. case $ac_top_builddir_sub in
  1281. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1282. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1283. esac ;;
  1284. esac
  1285. ac_abs_top_builddir=$ac_pwd
  1286. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1287. # for backward compatibility:
  1288. ac_top_builddir=$ac_top_build_prefix
  1289. case $srcdir in
  1290. .) # We are building in place.
  1291. ac_srcdir=.
  1292. ac_top_srcdir=$ac_top_builddir_sub
  1293. ac_abs_top_srcdir=$ac_pwd ;;
  1294. [\\/]* | ?:[\\/]* ) # Absolute name.
  1295. ac_srcdir=$srcdir$ac_dir_suffix;
  1296. ac_top_srcdir=$srcdir
  1297. ac_abs_top_srcdir=$srcdir ;;
  1298. *) # Relative name.
  1299. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1300. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1301. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1302. esac
  1303. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1304. cd "$ac_dir" || { ac_status=$?; continue; }
  1305. # Check for guested configure.
  1306. if test -f "$ac_srcdir/configure.gnu"; then
  1307. echo &&
  1308. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1309. elif test -f "$ac_srcdir/configure"; then
  1310. echo &&
  1311. $SHELL "$ac_srcdir/configure" --help=recursive
  1312. else
  1313. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1314. fi || ac_status=$?
  1315. cd "$ac_pwd" || { ac_status=$?; break; }
  1316. done
  1317. fi
  1318. test -n "$ac_init_help" && exit $ac_status
  1319. if $ac_init_version; then
  1320. cat <<\_ACEOF
  1321. configure
  1322. generated by GNU Autoconf 2.64
  1323. Copyright (C) 2009 Free Software Foundation, Inc.
  1324. This configure script is free software; the Free Software Foundation
  1325. gives unlimited permission to copy, distribute and modify it.
  1326. _ACEOF
  1327. exit
  1328. fi
  1329. ## ------------------------ ##
  1330. ## Autoconf initialization. ##
  1331. ## ------------------------ ##
  1332. # ac_fn_c_try_compile LINENO
  1333. # --------------------------
  1334. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1335. ac_fn_c_try_compile ()
  1336. {
  1337. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1338. rm -f conftest.$ac_objext
  1339. if { { ac_try="$ac_compile"
  1340. case "(($ac_try" in
  1341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1342. *) ac_try_echo=$ac_try;;
  1343. esac
  1344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1345. $as_echo "$ac_try_echo"; } >&5
  1346. (eval "$ac_compile") 2>conftest.err
  1347. ac_status=$?
  1348. if test -s conftest.err; then
  1349. grep -v '^ *+' conftest.err >conftest.er1
  1350. cat conftest.er1 >&5
  1351. mv -f conftest.er1 conftest.err
  1352. fi
  1353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1354. test $ac_status = 0; } && {
  1355. test -z "$ac_c_werror_flag" ||
  1356. test ! -s conftest.err
  1357. } && test -s conftest.$ac_objext; then :
  1358. ac_retval=0
  1359. else
  1360. $as_echo "$as_me: failed program was:" >&5
  1361. sed 's/^/| /' conftest.$ac_ext >&5
  1362. ac_retval=1
  1363. fi
  1364. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1365. return $ac_retval
  1366. } # ac_fn_c_try_compile
  1367. # ac_fn_c_try_link LINENO
  1368. # -----------------------
  1369. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1370. ac_fn_c_try_link ()
  1371. {
  1372. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1373. rm -f conftest.$ac_objext conftest$ac_exeext
  1374. if { { ac_try="$ac_link"
  1375. case "(($ac_try" in
  1376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1377. *) ac_try_echo=$ac_try;;
  1378. esac
  1379. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1380. $as_echo "$ac_try_echo"; } >&5
  1381. (eval "$ac_link") 2>conftest.err
  1382. ac_status=$?
  1383. if test -s conftest.err; then
  1384. grep -v '^ *+' conftest.err >conftest.er1
  1385. cat conftest.er1 >&5
  1386. mv -f conftest.er1 conftest.err
  1387. fi
  1388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1389. test $ac_status = 0; } && {
  1390. test -z "$ac_c_werror_flag" ||
  1391. test ! -s conftest.err
  1392. } && test -s conftest$ac_exeext && {
  1393. test "$cross_compiling" = yes ||
  1394. $as_test_x conftest$ac_exeext
  1395. }; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: failed program was:" >&5
  1399. sed 's/^/| /' conftest.$ac_ext >&5
  1400. ac_retval=1
  1401. fi
  1402. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1403. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1404. # interfere with the next link command; also delete a directory that is
  1405. # left behind by Apple's compiler. We do this before executing the actions.
  1406. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1407. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1408. return $ac_retval
  1409. } # ac_fn_c_try_link
  1410. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1411. # -------------------------------------------------------
  1412. # Tests whether HEADER exists and can be compiled using the include files in
  1413. # INCLUDES, setting the cache variable VAR accordingly.
  1414. ac_fn_c_check_header_compile ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1418. $as_echo_n "checking for $2... " >&6; }
  1419. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1420. $as_echo_n "(cached) " >&6
  1421. else
  1422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1423. /* end confdefs.h. */
  1424. $4
  1425. #include <$2>
  1426. _ACEOF
  1427. if ac_fn_c_try_compile "$LINENO"; then :
  1428. eval "$3=yes"
  1429. else
  1430. eval "$3=no"
  1431. fi
  1432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1433. fi
  1434. eval ac_res=\$$3
  1435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1436. $as_echo "$ac_res" >&6; }
  1437. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1438. } # ac_fn_c_check_header_compile
  1439. # ac_fn_c_try_cpp LINENO
  1440. # ----------------------
  1441. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1442. ac_fn_c_try_cpp ()
  1443. {
  1444. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1445. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } >/dev/null && {
  1461. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. }; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: failed program was:" >&5
  1467. sed 's/^/| /' conftest.$ac_ext >&5
  1468. ac_retval=1
  1469. fi
  1470. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1471. return $ac_retval
  1472. } # ac_fn_c_try_cpp
  1473. # ac_fn_c_try_run LINENO
  1474. # ----------------------
  1475. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1476. # that executables *can* be run.
  1477. ac_fn_c_try_run ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. if { { ac_try="$ac_link"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_link") 2>&5
  1488. ac_status=$?
  1489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1490. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1498. ac_status=$?
  1499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1500. test $ac_status = 0; }; }; then :
  1501. ac_retval=0
  1502. else
  1503. $as_echo "$as_me: program exited with status $ac_status" >&5
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=$ac_status
  1507. fi
  1508. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1509. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1510. return $ac_retval
  1511. } # ac_fn_c_try_run
  1512. # ac_fn_c_check_func LINENO FUNC VAR
  1513. # ----------------------------------
  1514. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1515. ac_fn_c_check_func ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1519. $as_echo_n "checking for $2... " >&6; }
  1520. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1521. $as_echo_n "(cached) " >&6
  1522. else
  1523. if test x$gcc_no_link = xyes; then
  1524. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1525. fi
  1526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1527. /* end confdefs.h. */
  1528. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1529. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1530. #define $2 innocuous_$2
  1531. /* System header to define __stub macros and hopefully few prototypes,
  1532. which can conflict with char $2 (); below.
  1533. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1534. <limits.h> exists even on freestanding compilers. */
  1535. #ifdef __STDC__
  1536. # include <limits.h>
  1537. #else
  1538. # include <assert.h>
  1539. #endif
  1540. #undef $2
  1541. /* Override any GCC internal prototype to avoid an error.
  1542. Use char because int might match the return type of a GCC
  1543. builtin and then its argument prototype would still apply. */
  1544. #ifdef __cplusplus
  1545. extern "C"
  1546. #endif
  1547. char $2 ();
  1548. /* The GNU C library defines this for functions which it implements
  1549. to always fail with ENOSYS. Some functions are actually named
  1550. something starting with __ and the normal name is an alias. */
  1551. #if defined __stub_$2 || defined __stub___$2
  1552. choke me
  1553. #endif
  1554. int
  1555. main ()
  1556. {
  1557. return $2 ();
  1558. ;
  1559. return 0;
  1560. }
  1561. _ACEOF
  1562. if ac_fn_c_try_link "$LINENO"; then :
  1563. eval "$3=yes"
  1564. else
  1565. eval "$3=no"
  1566. fi
  1567. rm -f core conftest.err conftest.$ac_objext \
  1568. conftest$ac_exeext conftest.$ac_ext
  1569. fi
  1570. eval ac_res=\$$3
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1572. $as_echo "$ac_res" >&6; }
  1573. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1574. } # ac_fn_c_check_func
  1575. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1576. # -------------------------------------------------------
  1577. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1578. # the include files in INCLUDES and setting the cache variable VAR
  1579. # accordingly.
  1580. ac_fn_c_check_header_mongrel ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1587. $as_echo_n "(cached) " >&6
  1588. fi
  1589. eval ac_res=\$$3
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1591. $as_echo "$ac_res" >&6; }
  1592. else
  1593. # Is the header compilable?
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1595. $as_echo_n "checking $2 usability... " >&6; }
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. $4
  1599. #include <$2>
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. ac_header_compiler=yes
  1603. else
  1604. ac_header_compiler=no
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1608. $as_echo "$ac_header_compiler" >&6; }
  1609. # Is the header present?
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1611. $as_echo_n "checking $2 presence... " >&6; }
  1612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1613. /* end confdefs.h. */
  1614. #include <$2>
  1615. _ACEOF
  1616. if ac_fn_c_try_cpp "$LINENO"; then :
  1617. ac_header_preproc=yes
  1618. else
  1619. ac_header_preproc=no
  1620. fi
  1621. rm -f conftest.err conftest.$ac_ext
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1623. $as_echo "$ac_header_preproc" >&6; }
  1624. # So? What about this header?
  1625. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1626. yes:no: )
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1628. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1630. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1631. ;;
  1632. no:yes:* )
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1634. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1636. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1638. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1640. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1642. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1643. ;;
  1644. esac
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1646. $as_echo_n "checking for $2... " >&6; }
  1647. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1648. $as_echo_n "(cached) " >&6
  1649. else
  1650. eval "$3=\$ac_header_compiler"
  1651. fi
  1652. eval ac_res=\$$3
  1653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1654. $as_echo "$ac_res" >&6; }
  1655. fi
  1656. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1657. } # ac_fn_c_check_header_mongrel
  1658. cat >config.log <<_ACEOF
  1659. This file contains any messages produced by compilers while
  1660. running configure, to aid debugging if configure makes a mistake.
  1661. It was created by $as_me, which was
  1662. generated by GNU Autoconf 2.64. Invocation command line was
  1663. $ $0 $@
  1664. _ACEOF
  1665. exec 5>>config.log
  1666. {
  1667. cat <<_ASUNAME
  1668. ## --------- ##
  1669. ## Platform. ##
  1670. ## --------- ##
  1671. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1672. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1673. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1674. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1675. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1676. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1677. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1678. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1679. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1680. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1681. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1682. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1683. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1684. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1685. _ASUNAME
  1686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1687. for as_dir in $PATH
  1688. do
  1689. IFS=$as_save_IFS
  1690. test -z "$as_dir" && as_dir=.
  1691. $as_echo "PATH: $as_dir"
  1692. done
  1693. IFS=$as_save_IFS
  1694. } >&5
  1695. cat >&5 <<_ACEOF
  1696. ## ----------- ##
  1697. ## Core tests. ##
  1698. ## ----------- ##
  1699. _ACEOF
  1700. # Keep a trace of the command line.
  1701. # Strip out --no-create and --no-recursion so they do not pile up.
  1702. # Strip out --silent because we don't want to record it for future runs.
  1703. # Also quote any args containing shell meta-characters.
  1704. # Make two passes to allow for proper duplicate-argument suppression.
  1705. ac_configure_args=
  1706. ac_configure_args0=
  1707. ac_configure_args1=
  1708. ac_must_keep_next=false
  1709. for ac_pass in 1 2
  1710. do
  1711. for ac_arg
  1712. do
  1713. case $ac_arg in
  1714. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1715. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1716. | -silent | --silent | --silen | --sile | --sil)
  1717. continue ;;
  1718. *\'*)
  1719. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1720. esac
  1721. case $ac_pass in
  1722. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1723. 2)
  1724. as_fn_append ac_configure_args1 " '$ac_arg'"
  1725. if test $ac_must_keep_next = true; then
  1726. ac_must_keep_next=false # Got value, back to normal.
  1727. else
  1728. case $ac_arg in
  1729. *=* | --config-cache | -C | -disable-* | --disable-* \
  1730. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1731. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1732. | -with-* | --with-* | -without-* | --without-* | --x)
  1733. case "$ac_configure_args0 " in
  1734. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1735. esac
  1736. ;;
  1737. -* ) ac_must_keep_next=true ;;
  1738. esac
  1739. fi
  1740. as_fn_append ac_configure_args " '$ac_arg'"
  1741. ;;
  1742. esac
  1743. done
  1744. done
  1745. { ac_configure_args0=; unset ac_configure_args0;}
  1746. { ac_configure_args1=; unset ac_configure_args1;}
  1747. # When interrupted or exit'd, cleanup temporary files, and complete
  1748. # config.log. We remove comments because anyway the quotes in there
  1749. # would cause problems or look ugly.
  1750. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1751. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1752. trap 'exit_status=$?
  1753. # Save into config.log some information that might help in debugging.
  1754. {
  1755. echo
  1756. cat <<\_ASBOX
  1757. ## ---------------- ##
  1758. ## Cache variables. ##
  1759. ## ---------------- ##
  1760. _ASBOX
  1761. echo
  1762. # The following way of writing the cache mishandles newlines in values,
  1763. (
  1764. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1765. eval ac_val=\$$ac_var
  1766. case $ac_val in #(
  1767. *${as_nl}*)
  1768. case $ac_var in #(
  1769. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1770. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1771. esac
  1772. case $ac_var in #(
  1773. _ | IFS | as_nl) ;; #(
  1774. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1775. *) { eval $ac_var=; unset $ac_var;} ;;
  1776. esac ;;
  1777. esac
  1778. done
  1779. (set) 2>&1 |
  1780. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1781. *${as_nl}ac_space=\ *)
  1782. sed -n \
  1783. "s/'\''/'\''\\\\'\'''\''/g;
  1784. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1785. ;; #(
  1786. *)
  1787. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1788. ;;
  1789. esac |
  1790. sort
  1791. )
  1792. echo
  1793. cat <<\_ASBOX
  1794. ## ----------------- ##
  1795. ## Output variables. ##
  1796. ## ----------------- ##
  1797. _ASBOX
  1798. echo
  1799. for ac_var in $ac_subst_vars
  1800. do
  1801. eval ac_val=\$$ac_var
  1802. case $ac_val in
  1803. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1804. esac
  1805. $as_echo "$ac_var='\''$ac_val'\''"
  1806. done | sort
  1807. echo
  1808. if test -n "$ac_subst_files"; then
  1809. cat <<\_ASBOX
  1810. ## ------------------- ##
  1811. ## File substitutions. ##
  1812. ## ------------------- ##
  1813. _ASBOX
  1814. echo
  1815. for ac_var in $ac_subst_files
  1816. do
  1817. eval ac_val=\$$ac_var
  1818. case $ac_val in
  1819. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1820. esac
  1821. $as_echo "$ac_var='\''$ac_val'\''"
  1822. done | sort
  1823. echo
  1824. fi
  1825. if test -s confdefs.h; then
  1826. cat <<\_ASBOX
  1827. ## ----------- ##
  1828. ## confdefs.h. ##
  1829. ## ----------- ##
  1830. _ASBOX
  1831. echo
  1832. cat confdefs.h
  1833. echo
  1834. fi
  1835. test "$ac_signal" != 0 &&
  1836. $as_echo "$as_me: caught signal $ac_signal"
  1837. $as_echo "$as_me: exit $exit_status"
  1838. } >&5
  1839. rm -f core *.core core.conftest.* &&
  1840. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1841. exit $exit_status
  1842. ' 0
  1843. for ac_signal in 1 2 13 15; do
  1844. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1845. done
  1846. ac_signal=0
  1847. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1848. rm -f -r conftest* confdefs.h
  1849. $as_echo "/* confdefs.h */" > confdefs.h
  1850. # Predefined preprocessor variables.
  1851. cat >>confdefs.h <<_ACEOF
  1852. #define PACKAGE_NAME "$PACKAGE_NAME"
  1853. _ACEOF
  1854. cat >>confdefs.h <<_ACEOF
  1855. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1856. _ACEOF
  1857. cat >>confdefs.h <<_ACEOF
  1858. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1859. _ACEOF
  1860. cat >>confdefs.h <<_ACEOF
  1861. #define PACKAGE_STRING "$PACKAGE_STRING"
  1862. _ACEOF
  1863. cat >>confdefs.h <<_ACEOF
  1864. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1865. _ACEOF
  1866. cat >>confdefs.h <<_ACEOF
  1867. #define PACKAGE_URL "$PACKAGE_URL"
  1868. _ACEOF
  1869. # Let the site file select an alternate cache file if it wants to.
  1870. # Prefer an explicitly selected file to automatically selected ones.
  1871. ac_site_file1=NONE
  1872. ac_site_file2=NONE
  1873. if test -n "$CONFIG_SITE"; then
  1874. ac_site_file1=$CONFIG_SITE
  1875. elif test "x$prefix" != xNONE; then
  1876. ac_site_file1=$prefix/share/config.site
  1877. ac_site_file2=$prefix/etc/config.site
  1878. else
  1879. ac_site_file1=$ac_default_prefix/share/config.site
  1880. ac_site_file2=$ac_default_prefix/etc/config.site
  1881. fi
  1882. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1883. do
  1884. test "x$ac_site_file" = xNONE && continue
  1885. if test -r "$ac_site_file"; then
  1886. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1887. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1888. sed 's/^/| /' "$ac_site_file" >&5
  1889. . "$ac_site_file"
  1890. fi
  1891. done
  1892. if test -r "$cache_file"; then
  1893. # Some versions of bash will fail to source /dev/null (special
  1894. # files actually), so we avoid doing that.
  1895. if test -f "$cache_file"; then
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1897. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1898. case $cache_file in
  1899. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1900. *) . "./$cache_file";;
  1901. esac
  1902. fi
  1903. else
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1905. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1906. >$cache_file
  1907. fi
  1908. # Check that the precious variables saved in the cache have kept the same
  1909. # value.
  1910. ac_cache_corrupted=false
  1911. for ac_var in $ac_precious_vars; do
  1912. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1913. eval ac_new_set=\$ac_env_${ac_var}_set
  1914. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1915. eval ac_new_val=\$ac_env_${ac_var}_value
  1916. case $ac_old_set,$ac_new_set in
  1917. set,)
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1919. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1920. ac_cache_corrupted=: ;;
  1921. ,set)
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1923. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1924. ac_cache_corrupted=: ;;
  1925. ,);;
  1926. *)
  1927. if test "x$ac_old_val" != "x$ac_new_val"; then
  1928. # differences in whitespace do not lead to failure.
  1929. ac_old_val_w=`echo x $ac_old_val`
  1930. ac_new_val_w=`echo x $ac_new_val`
  1931. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1933. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1934. ac_cache_corrupted=:
  1935. else
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1937. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1938. eval $ac_var=\$ac_old_val
  1939. fi
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1941. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1943. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1944. fi;;
  1945. esac
  1946. # Pass precious variables to config.status.
  1947. if test "$ac_new_set" = set; then
  1948. case $ac_new_val in
  1949. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1950. *) ac_arg=$ac_var=$ac_new_val ;;
  1951. esac
  1952. case " $ac_configure_args " in
  1953. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1954. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1955. esac
  1956. fi
  1957. done
  1958. if $ac_cache_corrupted; then
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1962. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1963. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1964. fi
  1965. ## -------------------- ##
  1966. ## Main body of script. ##
  1967. ## -------------------- ##
  1968. ac_ext=c
  1969. ac_cpp='$CPP $CPPFLAGS'
  1970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1973. if test -n "${with_target_subdir}"; then
  1974. # Default to --enable-multilib
  1975. # Check whether --enable-multilib was given.
  1976. if test "${enable_multilib+set}" = set; then :
  1977. enableval=$enable_multilib; case "$enableval" in
  1978. yes) multilib=yes ;;
  1979. no) multilib=no ;;
  1980. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  1981. esac
  1982. else
  1983. multilib=yes
  1984. fi
  1985. # We may get other options which we leave undocumented:
  1986. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  1987. # See config-ml.in if you want the gory details.
  1988. if test "$srcdir" = "."; then
  1989. if test "$with_target_subdir" != "."; then
  1990. multi_basedir="$srcdir/$with_multisrctop../.."
  1991. else
  1992. multi_basedir="$srcdir/$with_multisrctop.."
  1993. fi
  1994. else
  1995. multi_basedir="$srcdir/.."
  1996. fi
  1997. # Even if the default multilib is not a cross compilation,
  1998. # it may be that some of the other multilibs are.
  1999. if test $cross_compiling = no && test $multilib = yes \
  2000. && test "x${with_multisubdir}" != x ; then
  2001. cross_compiling=maybe
  2002. fi
  2003. ac_config_commands="$ac_config_commands default-1"
  2004. fi
  2005. ac_aux_dir=
  2006. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2007. for ac_t in install-sh install.sh shtool; do
  2008. if test -f "$ac_dir/$ac_t"; then
  2009. ac_aux_dir=$ac_dir
  2010. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2011. break 2
  2012. fi
  2013. done
  2014. done
  2015. if test -z "$ac_aux_dir"; then
  2016. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2017. fi
  2018. # These three variables are undocumented and unsupported,
  2019. # and are intended to be withdrawn in a future Autoconf release.
  2020. # They can cause serious problems if a builder's source tree is in a directory
  2021. # whose full name contains unusual characters.
  2022. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2023. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2024. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2025. # Make sure we can run config.sub.
  2026. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2027. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2029. $as_echo_n "checking build system type... " >&6; }
  2030. if test "${ac_cv_build+set}" = set; then :
  2031. $as_echo_n "(cached) " >&6
  2032. else
  2033. ac_build_alias=$build_alias
  2034. test "x$ac_build_alias" = x &&
  2035. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2036. test "x$ac_build_alias" = x &&
  2037. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2038. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2039. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2040. fi
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2042. $as_echo "$ac_cv_build" >&6; }
  2043. case $ac_cv_build in
  2044. *-*-*) ;;
  2045. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2046. esac
  2047. build=$ac_cv_build
  2048. ac_save_IFS=$IFS; IFS='-'
  2049. set x $ac_cv_build
  2050. shift
  2051. build_cpu=$1
  2052. build_vendor=$2
  2053. shift; shift
  2054. # Remember, the first character of IFS is used to create $*,
  2055. # except with old shells:
  2056. build_os=$*
  2057. IFS=$ac_save_IFS
  2058. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2060. $as_echo_n "checking host system type... " >&6; }
  2061. if test "${ac_cv_host+set}" = set; then :
  2062. $as_echo_n "(cached) " >&6
  2063. else
  2064. if test "x$host_alias" = x; then
  2065. ac_cv_host=$ac_cv_build
  2066. else
  2067. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2068. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2069. fi
  2070. fi
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2072. $as_echo "$ac_cv_host" >&6; }
  2073. case $ac_cv_host in
  2074. *-*-*) ;;
  2075. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2076. esac
  2077. host=$ac_cv_host
  2078. ac_save_IFS=$IFS; IFS='-'
  2079. set x $ac_cv_host
  2080. shift
  2081. host_cpu=$1
  2082. host_vendor=$2
  2083. shift; shift
  2084. # Remember, the first character of IFS is used to create $*,
  2085. # except with old shells:
  2086. host_os=$*
  2087. IFS=$ac_save_IFS
  2088. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2090. $as_echo_n "checking target system type... " >&6; }
  2091. if test "${ac_cv_target+set}" = set; then :
  2092. $as_echo_n "(cached) " >&6
  2093. else
  2094. if test "x$target_alias" = x; then
  2095. ac_cv_target=$ac_cv_host
  2096. else
  2097. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2098. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2099. fi
  2100. fi
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2102. $as_echo "$ac_cv_target" >&6; }
  2103. case $ac_cv_target in
  2104. *-*-*) ;;
  2105. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2106. esac
  2107. target=$ac_cv_target
  2108. ac_save_IFS=$IFS; IFS='-'
  2109. set x $ac_cv_target
  2110. shift
  2111. target_cpu=$1
  2112. target_vendor=$2
  2113. shift; shift
  2114. # Remember, the first character of IFS is used to create $*,
  2115. # except with old shells:
  2116. target_os=$*
  2117. IFS=$ac_save_IFS
  2118. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2119. # The aliases save the names the user supplied, while $host etc.
  2120. # will get canonicalized.
  2121. test -n "$target_alias" &&
  2122. test "$program_prefix$program_suffix$program_transform_name" = \
  2123. NONENONEs,x,x, &&
  2124. program_prefix=${target_alias}-
  2125. # This works around an automake problem.
  2126. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2127. am__api_version='1.11'
  2128. # Find a good install program. We prefer a C program (faster),
  2129. # so one script is as good as another. But avoid the broken or
  2130. # incompatible versions:
  2131. # SysV /etc/install, /usr/sbin/install
  2132. # SunOS /usr/etc/install
  2133. # IRIX /sbin/install
  2134. # AIX /bin/install
  2135. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2136. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2137. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2138. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2139. # OS/2's system install, which has a completely different semantic
  2140. # ./install, which can be erroneously created by make from ./install.sh.
  2141. # Reject install programs that cannot install multiple files.
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2143. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2144. if test -z "$INSTALL"; then
  2145. if test "${ac_cv_path_install+set}" = set; then :
  2146. $as_echo_n "(cached) " >&6
  2147. else
  2148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2149. for as_dir in $PATH
  2150. do
  2151. IFS=$as_save_IFS
  2152. test -z "$as_dir" && as_dir=.
  2153. # Account for people who put trailing slashes in PATH elements.
  2154. case $as_dir/ in #((
  2155. ./ | .// | /[cC]/* | \
  2156. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2157. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2158. /usr/ucb/* ) ;;
  2159. *)
  2160. # OSF1 and SCO ODT 3.0 have their own names for install.
  2161. # Don't use installbsd from OSF since it installs stuff as root
  2162. # by default.
  2163. for ac_prog in ginstall scoinst install; do
  2164. for ac_exec_ext in '' $ac_executable_extensions; do
  2165. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2166. if test $ac_prog = install &&
  2167. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2168. # AIX install. It has an incompatible calling convention.
  2169. :
  2170. elif test $ac_prog = install &&
  2171. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2172. # program-specific install script used by HP pwplus--don't use.
  2173. :
  2174. else
  2175. rm -rf conftest.one conftest.two conftest.dir
  2176. echo one > conftest.one
  2177. echo two > conftest.two
  2178. mkdir conftest.dir
  2179. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2180. test -s conftest.one && test -s conftest.two &&
  2181. test -s conftest.dir/conftest.one &&
  2182. test -s conftest.dir/conftest.two
  2183. then
  2184. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2185. break 3
  2186. fi
  2187. fi
  2188. fi
  2189. done
  2190. done
  2191. ;;
  2192. esac
  2193. done
  2194. IFS=$as_save_IFS
  2195. rm -rf conftest.one conftest.two conftest.dir
  2196. fi
  2197. if test "${ac_cv_path_install+set}" = set; then
  2198. INSTALL=$ac_cv_path_install
  2199. else
  2200. # As a last resort, use the slow shell script. Don't cache a
  2201. # value for INSTALL within a source directory, because that will
  2202. # break other packages using the cache if that directory is
  2203. # removed, or if the value is a relative name.
  2204. INSTALL=$ac_install_sh
  2205. fi
  2206. fi
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2208. $as_echo "$INSTALL" >&6; }
  2209. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2210. # It thinks the first close brace ends the variable substitution.
  2211. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2212. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2213. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2215. $as_echo_n "checking whether build environment is sane... " >&6; }
  2216. # Just in case
  2217. sleep 1
  2218. echo timestamp > conftest.file
  2219. # Reject unsafe characters in $srcdir or the absolute working directory
  2220. # name. Accept space and tab only in the latter.
  2221. am_lf='
  2222. '
  2223. case `pwd` in
  2224. *[\\\"\#\$\&\'\`$am_lf]*)
  2225. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2226. esac
  2227. case $srcdir in
  2228. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2229. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2230. esac
  2231. # Do `set' in a subshell so we don't clobber the current shell's
  2232. # arguments. Must try -L first in case configure is actually a
  2233. # symlink; some systems play weird games with the mod time of symlinks
  2234. # (eg FreeBSD returns the mod time of the symlink's containing
  2235. # directory).
  2236. if (
  2237. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2238. if test "$*" = "X"; then
  2239. # -L didn't work.
  2240. set X `ls -t "$srcdir/configure" conftest.file`
  2241. fi
  2242. rm -f conftest.file
  2243. if test "$*" != "X $srcdir/configure conftest.file" \
  2244. && test "$*" != "X conftest.file $srcdir/configure"; then
  2245. # If neither matched, then we have a broken ls. This can happen
  2246. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2247. # broken ls alias from the environment. This has actually
  2248. # happened. Such a system could not be considered "sane".
  2249. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2250. alias in your environment" "$LINENO" 5
  2251. fi
  2252. test "$2" = conftest.file
  2253. )
  2254. then
  2255. # Ok.
  2256. :
  2257. else
  2258. as_fn_error "newly created file is older than distributed files!
  2259. Check your system clock" "$LINENO" 5
  2260. fi
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2262. $as_echo "yes" >&6; }
  2263. test "$program_prefix" != NONE &&
  2264. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2265. # Use a double $ so make ignores it.
  2266. test "$program_suffix" != NONE &&
  2267. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2268. # Double any \ or $.
  2269. # By default was `s,x,x', remove it if useless.
  2270. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2271. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2272. # expand $ac_aux_dir to an absolute path
  2273. am_aux_dir=`cd $ac_aux_dir && pwd`
  2274. if test x"${MISSING+set}" != xset; then
  2275. case $am_aux_dir in
  2276. *\ * | *\ *)
  2277. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2278. *)
  2279. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2280. esac
  2281. fi
  2282. # Use eval to expand $SHELL
  2283. if eval "$MISSING --run true"; then
  2284. am_missing_run="$MISSING --run "
  2285. else
  2286. am_missing_run=
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2288. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2289. fi
  2290. if test x"${install_sh}" != xset; then
  2291. case $am_aux_dir in
  2292. *\ * | *\ *)
  2293. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2294. *)
  2295. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2296. esac
  2297. fi
  2298. # Installed binaries are usually stripped using `strip' when the user
  2299. # run `make install-strip'. However `strip' might not be the right
  2300. # tool to use in cross-compilation environments, therefore Automake
  2301. # will honor the `STRIP' environment variable to overrule this program.
  2302. if test "$cross_compiling" != no; then
  2303. if test -n "$ac_tool_prefix"; then
  2304. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2305. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2307. $as_echo_n "checking for $ac_word... " >&6; }
  2308. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2309. $as_echo_n "(cached) " >&6
  2310. else
  2311. if test -n "$STRIP"; then
  2312. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2313. else
  2314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2315. for as_dir in $PATH
  2316. do
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_exec_ext in '' $ac_executable_extensions; do
  2320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2321. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. fi
  2329. fi
  2330. STRIP=$ac_cv_prog_STRIP
  2331. if test -n "$STRIP"; then
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2333. $as_echo "$STRIP" >&6; }
  2334. else
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2336. $as_echo "no" >&6; }
  2337. fi
  2338. fi
  2339. if test -z "$ac_cv_prog_STRIP"; then
  2340. ac_ct_STRIP=$STRIP
  2341. # Extract the first word of "strip", so it can be a program name with args.
  2342. set dummy strip; ac_word=$2
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2344. $as_echo_n "checking for $ac_word... " >&6; }
  2345. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2346. $as_echo_n "(cached) " >&6
  2347. else
  2348. if test -n "$ac_ct_STRIP"; then
  2349. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2350. else
  2351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2352. for as_dir in $PATH
  2353. do
  2354. IFS=$as_save_IFS
  2355. test -z "$as_dir" && as_dir=.
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2358. ac_cv_prog_ac_ct_STRIP="strip"
  2359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2360. break 2
  2361. fi
  2362. done
  2363. done
  2364. IFS=$as_save_IFS
  2365. fi
  2366. fi
  2367. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2368. if test -n "$ac_ct_STRIP"; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2370. $as_echo "$ac_ct_STRIP" >&6; }
  2371. else
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2373. $as_echo "no" >&6; }
  2374. fi
  2375. if test "x$ac_ct_STRIP" = x; then
  2376. STRIP=":"
  2377. else
  2378. case $cross_compiling:$ac_tool_warned in
  2379. yes:)
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2382. ac_tool_warned=yes ;;
  2383. esac
  2384. STRIP=$ac_ct_STRIP
  2385. fi
  2386. else
  2387. STRIP="$ac_cv_prog_STRIP"
  2388. fi
  2389. fi
  2390. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2392. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2393. if test -z "$MKDIR_P"; then
  2394. if test "${ac_cv_path_mkdir+set}" = set; then :
  2395. $as_echo_n "(cached) " >&6
  2396. else
  2397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2398. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2399. do
  2400. IFS=$as_save_IFS
  2401. test -z "$as_dir" && as_dir=.
  2402. for ac_prog in mkdir gmkdir; do
  2403. for ac_exec_ext in '' $ac_executable_extensions; do
  2404. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2405. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2406. 'mkdir (GNU coreutils) '* | \
  2407. 'mkdir (coreutils) '* | \
  2408. 'mkdir (fileutils) '4.1*)
  2409. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2410. break 3;;
  2411. esac
  2412. done
  2413. done
  2414. done
  2415. IFS=$as_save_IFS
  2416. fi
  2417. if test "${ac_cv_path_mkdir+set}" = set; then
  2418. MKDIR_P="$ac_cv_path_mkdir -p"
  2419. else
  2420. # As a last resort, use the slow shell script. Don't cache a
  2421. # value for MKDIR_P within a source directory, because that will
  2422. # break other packages using the cache if that directory is
  2423. # removed, or if the value is a relative name.
  2424. test -d ./--version && rmdir ./--version
  2425. MKDIR_P="$ac_install_sh -d"
  2426. fi
  2427. fi
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2429. $as_echo "$MKDIR_P" >&6; }
  2430. mkdir_p="$MKDIR_P"
  2431. case $mkdir_p in
  2432. [\\/$]* | ?:[\\/]*) ;;
  2433. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2434. esac
  2435. for ac_prog in gawk mawk nawk awk
  2436. do
  2437. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2438. set dummy $ac_prog; ac_word=$2
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2440. $as_echo_n "checking for $ac_word... " >&6; }
  2441. if test "${ac_cv_prog_AWK+set}" = set; then :
  2442. $as_echo_n "(cached) " >&6
  2443. else
  2444. if test -n "$AWK"; then
  2445. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2446. else
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2454. ac_cv_prog_AWK="$ac_prog"
  2455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2456. break 2
  2457. fi
  2458. done
  2459. done
  2460. IFS=$as_save_IFS
  2461. fi
  2462. fi
  2463. AWK=$ac_cv_prog_AWK
  2464. if test -n "$AWK"; then
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2466. $as_echo "$AWK" >&6; }
  2467. else
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2469. $as_echo "no" >&6; }
  2470. fi
  2471. test -n "$AWK" && break
  2472. done
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2474. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2475. set x ${MAKE-make}
  2476. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2477. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2478. $as_echo_n "(cached) " >&6
  2479. else
  2480. cat >conftest.make <<\_ACEOF
  2481. SHELL = /bin/sh
  2482. all:
  2483. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2484. _ACEOF
  2485. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2486. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2487. *@@@%%%=?*=@@@%%%*)
  2488. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2489. *)
  2490. eval ac_cv_prog_make_${ac_make}_set=no;;
  2491. esac
  2492. rm -f conftest.make
  2493. fi
  2494. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2496. $as_echo "yes" >&6; }
  2497. SET_MAKE=
  2498. else
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2500. $as_echo "no" >&6; }
  2501. SET_MAKE="MAKE=${MAKE-make}"
  2502. fi
  2503. rm -rf .tst 2>/dev/null
  2504. mkdir .tst 2>/dev/null
  2505. if test -d .tst; then
  2506. am__leading_dot=.
  2507. else
  2508. am__leading_dot=_
  2509. fi
  2510. rmdir .tst 2>/dev/null
  2511. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2512. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2513. # is not polluted with repeated "-I."
  2514. am__isrc=' -I$(srcdir)'
  2515. # test to see if srcdir already configured
  2516. if test -f $srcdir/config.status; then
  2517. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2518. fi
  2519. fi
  2520. # test whether we have cygpath
  2521. if test -z "$CYGPATH_W"; then
  2522. if (cygpath --version) >/dev/null 2>/dev/null; then
  2523. CYGPATH_W='cygpath -w'
  2524. else
  2525. CYGPATH_W=echo
  2526. fi
  2527. fi
  2528. # Define the identity of the package.
  2529. PACKAGE=zlib
  2530. VERSION=1.1.4
  2531. cat >>confdefs.h <<_ACEOF
  2532. #define PACKAGE "$PACKAGE"
  2533. _ACEOF
  2534. cat >>confdefs.h <<_ACEOF
  2535. #define VERSION "$VERSION"
  2536. _ACEOF
  2537. # Some tools Automake needs.
  2538. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2539. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2540. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2541. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2542. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2543. # We need awk for the "check" target. The system "awk" is bad on
  2544. # some platforms.
  2545. # Always define AMTAR for backward compatibility.
  2546. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2547. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2549. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2550. # Check whether --enable-maintainer-mode was given.
  2551. if test "${enable_maintainer_mode+set}" = set; then :
  2552. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2553. else
  2554. USE_MAINTAINER_MODE=no
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2557. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2558. if test $USE_MAINTAINER_MODE = yes; then
  2559. MAINTAINER_MODE_TRUE=
  2560. MAINTAINER_MODE_FALSE='#'
  2561. else
  2562. MAINTAINER_MODE_TRUE='#'
  2563. MAINTAINER_MODE_FALSE=
  2564. fi
  2565. MAINT=$MAINTAINER_MODE_TRUE
  2566. # Check whether --with-target-subdir was given.
  2567. if test "${with_target_subdir+set}" = set; then :
  2568. withval=$with_target_subdir;
  2569. fi
  2570. if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
  2571. COMPPATH=.
  2572. else
  2573. COMPPATH=..
  2574. fi
  2575. # Check whether --with-cross-host was given.
  2576. if test "${with_cross_host+set}" = set; then :
  2577. withval=$with_cross_host;
  2578. fi
  2579. # Check whether --enable-multilib was given.
  2580. if test "${enable_multilib+set}" = set; then :
  2581. enableval=$enable_multilib; case "${enableval}" in
  2582. yes) multilib=yes ;;
  2583. no) multilib=no ;;
  2584. *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
  2585. esac
  2586. else
  2587. test -z "$with_target_subdir" && multilib=no || multilib=yes
  2588. fi
  2589. # Check whether --with-system-zlib was given.
  2590. if test "${with_system_zlib+set}" = set; then :
  2591. withval=$with_system_zlib;
  2592. fi
  2593. # Make sure we don't test executables when making cross-tools.
  2594. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2595. # We must force CC to /not/ be precious variables; otherwise
  2596. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2597. # As a side effect, we have to subst CFLAGS ourselves.
  2598. ac_ext=c
  2599. ac_cpp='$CPP $CPPFLAGS'
  2600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2603. if test -n "$ac_tool_prefix"; then
  2604. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2605. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if test "${ac_cv_prog_CC+set}" = set; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$CC"; then
  2612. ac_cv_prog_CC="$CC" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2621. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. CC=$ac_cv_prog_CC
  2631. if test -n "$CC"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2633. $as_echo "$CC" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. fi
  2639. if test -z "$ac_cv_prog_CC"; then
  2640. ac_ct_CC=$CC
  2641. # Extract the first word of "gcc", so it can be a program name with args.
  2642. set dummy gcc; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$ac_ct_CC"; then
  2649. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2658. ac_cv_prog_ac_ct_CC="gcc"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2668. if test -n "$ac_ct_CC"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2670. $as_echo "$ac_ct_CC" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. if test "x$ac_ct_CC" = x; then
  2676. CC=""
  2677. else
  2678. case $cross_compiling:$ac_tool_warned in
  2679. yes:)
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2681. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2682. ac_tool_warned=yes ;;
  2683. esac
  2684. CC=$ac_ct_CC
  2685. fi
  2686. else
  2687. CC="$ac_cv_prog_CC"
  2688. fi
  2689. if test -z "$CC"; then
  2690. if test -n "$ac_tool_prefix"; then
  2691. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2692. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2694. $as_echo_n "checking for $ac_word... " >&6; }
  2695. if test "${ac_cv_prog_CC+set}" = set; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. if test -n "$CC"; then
  2699. ac_cv_prog_CC="$CC" # Let the user override the test.
  2700. else
  2701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2702. for as_dir in $PATH
  2703. do
  2704. IFS=$as_save_IFS
  2705. test -z "$as_dir" && as_dir=.
  2706. for ac_exec_ext in '' $ac_executable_extensions; do
  2707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2708. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2710. break 2
  2711. fi
  2712. done
  2713. done
  2714. IFS=$as_save_IFS
  2715. fi
  2716. fi
  2717. CC=$ac_cv_prog_CC
  2718. if test -n "$CC"; then
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2720. $as_echo "$CC" >&6; }
  2721. else
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. fi
  2725. fi
  2726. fi
  2727. if test -z "$CC"; then
  2728. # Extract the first word of "cc", so it can be a program name with args.
  2729. set dummy cc; ac_word=$2
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2731. $as_echo_n "checking for $ac_word... " >&6; }
  2732. if test "${ac_cv_prog_CC+set}" = set; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. if test -n "$CC"; then
  2736. ac_cv_prog_CC="$CC" # Let the user override the test.
  2737. else
  2738. ac_prog_rejected=no
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2746. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2747. ac_prog_rejected=yes
  2748. continue
  2749. fi
  2750. ac_cv_prog_CC="cc"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. if test $ac_prog_rejected = yes; then
  2758. # We found a bogon in the path, so make sure we never use it.
  2759. set dummy $ac_cv_prog_CC
  2760. shift
  2761. if test $# != 0; then
  2762. # We chose a different compiler from the bogus one.
  2763. # However, it has the same basename, so the bogon will be chosen
  2764. # first if we set CC to just the basename; use the full file name.
  2765. shift
  2766. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2767. fi
  2768. fi
  2769. fi
  2770. fi
  2771. CC=$ac_cv_prog_CC
  2772. if test -n "$CC"; then
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2774. $as_echo "$CC" >&6; }
  2775. else
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2777. $as_echo "no" >&6; }
  2778. fi
  2779. fi
  2780. if test -z "$CC"; then
  2781. if test -n "$ac_tool_prefix"; then
  2782. for ac_prog in cl.exe
  2783. do
  2784. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2785. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2787. $as_echo_n "checking for $ac_word... " >&6; }
  2788. if test "${ac_cv_prog_CC+set}" = set; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. if test -n "$CC"; then
  2792. ac_cv_prog_CC="$CC" # Let the user override the test.
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2801. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. IFS=$as_save_IFS
  2808. fi
  2809. fi
  2810. CC=$ac_cv_prog_CC
  2811. if test -n "$CC"; then
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2813. $as_echo "$CC" >&6; }
  2814. else
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2816. $as_echo "no" >&6; }
  2817. fi
  2818. test -n "$CC" && break
  2819. done
  2820. fi
  2821. if test -z "$CC"; then
  2822. ac_ct_CC=$CC
  2823. for ac_prog in cl.exe
  2824. do
  2825. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2826. set dummy $ac_prog; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$ac_ct_CC"; then
  2833. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_exec_ext in '' $ac_executable_extensions; do
  2841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2842. ac_cv_prog_ac_ct_CC="$ac_prog"
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844. break 2
  2845. fi
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. fi
  2851. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2852. if test -n "$ac_ct_CC"; then
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2854. $as_echo "$ac_ct_CC" >&6; }
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. fi
  2859. test -n "$ac_ct_CC" && break
  2860. done
  2861. if test "x$ac_ct_CC" = x; then
  2862. CC=""
  2863. else
  2864. case $cross_compiling:$ac_tool_warned in
  2865. yes:)
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2868. ac_tool_warned=yes ;;
  2869. esac
  2870. CC=$ac_ct_CC
  2871. fi
  2872. fi
  2873. fi
  2874. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2876. as_fn_error "no acceptable C compiler found in \$PATH
  2877. See \`config.log' for more details." "$LINENO" 5; }
  2878. # Provide some information about the compiler.
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2880. set X $ac_compile
  2881. ac_compiler=$2
  2882. for ac_option in --version -v -V -qversion; do
  2883. { { ac_try="$ac_compiler $ac_option >&5"
  2884. case "(($ac_try" in
  2885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2886. *) ac_try_echo=$ac_try;;
  2887. esac
  2888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2889. $as_echo "$ac_try_echo"; } >&5
  2890. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2891. ac_status=$?
  2892. if test -s conftest.err; then
  2893. sed '10a\
  2894. ... rest of stderr output deleted ...
  2895. 10q' conftest.err >conftest.er1
  2896. cat conftest.er1 >&5
  2897. rm -f conftest.er1 conftest.err
  2898. fi
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2900. test $ac_status = 0; }
  2901. done
  2902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. ;
  2908. return 0;
  2909. }
  2910. _ACEOF
  2911. # FIXME: Cleanup?
  2912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2913. (eval $ac_link) 2>&5
  2914. ac_status=$?
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }; then :
  2917. gcc_no_link=no
  2918. else
  2919. gcc_no_link=yes
  2920. fi
  2921. if test x$gcc_no_link = xyes; then
  2922. # Setting cross_compile will disable run tests; it will
  2923. # also disable AC_CHECK_FILE but that's generally
  2924. # correct if we can't link.
  2925. cross_compiling=yes
  2926. EXEEXT=
  2927. else
  2928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2929. /* end confdefs.h. */
  2930. int
  2931. main ()
  2932. {
  2933. ;
  2934. return 0;
  2935. }
  2936. _ACEOF
  2937. ac_clean_files_save=$ac_clean_files
  2938. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2939. # Try to create an executable without -o first, disregard a.out.
  2940. # It will help us diagnose broken compilers, and finding out an intuition
  2941. # of exeext.
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2943. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2944. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2945. # The possible output files:
  2946. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2947. ac_rmfiles=
  2948. for ac_file in $ac_files
  2949. do
  2950. case $ac_file in
  2951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2952. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2953. esac
  2954. done
  2955. rm -f $ac_rmfiles
  2956. if { { ac_try="$ac_link_default"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2962. $as_echo "$ac_try_echo"; } >&5
  2963. (eval "$ac_link_default") 2>&5
  2964. ac_status=$?
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2966. test $ac_status = 0; }; then :
  2967. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2968. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2969. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2970. # so that the user can short-circuit this test for compilers unknown to
  2971. # Autoconf.
  2972. for ac_file in $ac_files ''
  2973. do
  2974. test -f "$ac_file" || continue
  2975. case $ac_file in
  2976. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2977. ;;
  2978. [ab].out )
  2979. # We found the default executable, but exeext='' is most
  2980. # certainly right.
  2981. break;;
  2982. *.* )
  2983. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2984. then :; else
  2985. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2986. fi
  2987. # We set ac_cv_exeext here because the later test for it is not
  2988. # safe: cross compilers may not add the suffix if given an `-o'
  2989. # argument, so we may need to know it at that point already.
  2990. # Even if this section looks crufty: it has the advantage of
  2991. # actually working.
  2992. break;;
  2993. * )
  2994. break;;
  2995. esac
  2996. done
  2997. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2998. else
  2999. ac_file=''
  3000. fi
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3002. $as_echo "$ac_file" >&6; }
  3003. if test -z "$ac_file"; then :
  3004. $as_echo "$as_me: failed program was:" >&5
  3005. sed 's/^/| /' conftest.$ac_ext >&5
  3006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3008. { as_fn_set_status 77
  3009. as_fn_error "C compiler cannot create executables
  3010. See \`config.log' for more details." "$LINENO" 5; }; }
  3011. fi
  3012. ac_exeext=$ac_cv_exeext
  3013. # Check that the compiler produces executables we can run. If not, either
  3014. # the compiler is broken, or we cross compile.
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3016. $as_echo_n "checking whether the C compiler works... " >&6; }
  3017. # If not cross compiling, check that we can run a simple program.
  3018. if test "$cross_compiling" != yes; then
  3019. if { ac_try='./$ac_file'
  3020. { { case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_try") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }; }; then
  3030. cross_compiling=no
  3031. else
  3032. if test "$cross_compiling" = maybe; then
  3033. cross_compiling=yes
  3034. else
  3035. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error "cannot run C compiled programs.
  3038. If you meant to cross compile, use \`--host'.
  3039. See \`config.log' for more details." "$LINENO" 5; }
  3040. fi
  3041. fi
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3044. $as_echo "yes" >&6; }
  3045. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3046. ac_clean_files=$ac_clean_files_save
  3047. # Check that the compiler produces executables we can run. If not, either
  3048. # the compiler is broken, or we cross compile.
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3050. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3052. $as_echo "$cross_compiling" >&6; }
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3054. $as_echo_n "checking for suffix of executables... " >&6; }
  3055. if { { ac_try="$ac_link"
  3056. case "(($ac_try" in
  3057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3058. *) ac_try_echo=$ac_try;;
  3059. esac
  3060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3061. $as_echo "$ac_try_echo"; } >&5
  3062. (eval "$ac_link") 2>&5
  3063. ac_status=$?
  3064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3065. test $ac_status = 0; }; then :
  3066. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3067. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3068. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3069. # `rm'.
  3070. for ac_file in conftest.exe conftest conftest.*; do
  3071. test -f "$ac_file" || continue
  3072. case $ac_file in
  3073. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3074. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3075. break;;
  3076. * ) break;;
  3077. esac
  3078. done
  3079. else
  3080. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3081. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3082. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3083. See \`config.log' for more details." "$LINENO" 5; }
  3084. fi
  3085. rm -f conftest$ac_cv_exeext
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3087. $as_echo "$ac_cv_exeext" >&6; }
  3088. rm -f conftest.$ac_ext
  3089. EXEEXT=$ac_cv_exeext
  3090. ac_exeext=$EXEEXT
  3091. fi
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3093. $as_echo_n "checking for suffix of object files... " >&6; }
  3094. if test "${ac_cv_objext+set}" = set; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3098. /* end confdefs.h. */
  3099. int
  3100. main ()
  3101. {
  3102. ;
  3103. return 0;
  3104. }
  3105. _ACEOF
  3106. rm -f conftest.o conftest.obj
  3107. if { { ac_try="$ac_compile"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo"; } >&5
  3114. (eval "$ac_compile") 2>&5
  3115. ac_status=$?
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3117. test $ac_status = 0; }; then :
  3118. for ac_file in conftest.o conftest.obj conftest.*; do
  3119. test -f "$ac_file" || continue;
  3120. case $ac_file in
  3121. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3122. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3123. break;;
  3124. esac
  3125. done
  3126. else
  3127. $as_echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3131. as_fn_error "cannot compute suffix of object files: cannot compile
  3132. See \`config.log' for more details." "$LINENO" 5; }
  3133. fi
  3134. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3135. fi
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3137. $as_echo "$ac_cv_objext" >&6; }
  3138. OBJEXT=$ac_cv_objext
  3139. ac_objext=$OBJEXT
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3141. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3142. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. int
  3148. main ()
  3149. {
  3150. #ifndef __GNUC__
  3151. choke me
  3152. #endif
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. if ac_fn_c_try_compile "$LINENO"; then :
  3158. ac_compiler_gnu=yes
  3159. else
  3160. ac_compiler_gnu=no
  3161. fi
  3162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3163. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3164. fi
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3166. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3167. if test $ac_compiler_gnu = yes; then
  3168. GCC=yes
  3169. else
  3170. GCC=
  3171. fi
  3172. ac_test_CFLAGS=${CFLAGS+set}
  3173. ac_save_CFLAGS=$CFLAGS
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3175. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3176. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. ac_save_c_werror_flag=$ac_c_werror_flag
  3180. ac_c_werror_flag=yes
  3181. ac_cv_prog_cc_g=no
  3182. CFLAGS="-g"
  3183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3184. /* end confdefs.h. */
  3185. int
  3186. main ()
  3187. {
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. if ac_fn_c_try_compile "$LINENO"; then :
  3193. ac_cv_prog_cc_g=yes
  3194. else
  3195. CFLAGS=""
  3196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. if ac_fn_c_try_compile "$LINENO"; then :
  3206. else
  3207. ac_c_werror_flag=$ac_save_c_werror_flag
  3208. CFLAGS="-g"
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. ;
  3215. return 0;
  3216. }
  3217. _ACEOF
  3218. if ac_fn_c_try_compile "$LINENO"; then :
  3219. ac_cv_prog_cc_g=yes
  3220. fi
  3221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3222. fi
  3223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3224. fi
  3225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3226. ac_c_werror_flag=$ac_save_c_werror_flag
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3229. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3230. if test "$ac_test_CFLAGS" = set; then
  3231. CFLAGS=$ac_save_CFLAGS
  3232. elif test $ac_cv_prog_cc_g = yes; then
  3233. if test "$GCC" = yes; then
  3234. CFLAGS="-g -O2"
  3235. else
  3236. CFLAGS="-g"
  3237. fi
  3238. else
  3239. if test "$GCC" = yes; then
  3240. CFLAGS="-O2"
  3241. else
  3242. CFLAGS=
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3246. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3247. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. ac_cv_prog_cc_c89=no
  3251. ac_save_CC=$CC
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. #include <stdarg.h>
  3255. #include <stdio.h>
  3256. #include <sys/types.h>
  3257. #include <sys/stat.h>
  3258. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3259. struct buf { int x; };
  3260. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3261. static char *e (p, i)
  3262. char **p;
  3263. int i;
  3264. {
  3265. return p[i];
  3266. }
  3267. static char *f (char * (*g) (char **, int), char **p, ...)
  3268. {
  3269. char *s;
  3270. va_list v;
  3271. va_start (v,p);
  3272. s = g (p, va_arg (v,int));
  3273. va_end (v);
  3274. return s;
  3275. }
  3276. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3277. function prototypes and stuff, but not '\xHH' hex character constants.
  3278. These don't provoke an error unfortunately, instead are silently treated
  3279. as 'x'. The following induces an error, until -std is added to get
  3280. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3281. array size at least. It's necessary to write '\x00'==0 to get something
  3282. that's true only with -std. */
  3283. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3284. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3285. inside strings and character constants. */
  3286. #define FOO(x) 'x'
  3287. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3288. int test (int i, double x);
  3289. struct s1 {int (*f) (int a);};
  3290. struct s2 {int (*f) (double a);};
  3291. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3292. int argc;
  3293. char **argv;
  3294. int
  3295. main ()
  3296. {
  3297. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3303. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3304. do
  3305. CC="$ac_save_CC $ac_arg"
  3306. if ac_fn_c_try_compile "$LINENO"; then :
  3307. ac_cv_prog_cc_c89=$ac_arg
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext
  3310. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3311. done
  3312. rm -f conftest.$ac_ext
  3313. CC=$ac_save_CC
  3314. fi
  3315. # AC_CACHE_VAL
  3316. case "x$ac_cv_prog_cc_c89" in
  3317. x)
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3319. $as_echo "none needed" >&6; } ;;
  3320. xno)
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3322. $as_echo "unsupported" >&6; } ;;
  3323. *)
  3324. CC="$CC $ac_cv_prog_cc_c89"
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3326. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3327. esac
  3328. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3329. fi
  3330. ac_ext=c
  3331. ac_cpp='$CPP $CPPFLAGS'
  3332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3335. DEPDIR="${am__leading_dot}deps"
  3336. ac_config_commands="$ac_config_commands depfiles"
  3337. am_make=${MAKE-make}
  3338. cat > confinc << 'END'
  3339. am__doit:
  3340. @echo this is the am__doit target
  3341. .PHONY: am__doit
  3342. END
  3343. # If we don't find an include directive, just comment out the code.
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3345. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3346. am__include="#"
  3347. am__quote=
  3348. _am_result=none
  3349. # First try GNU make style include.
  3350. echo "include confinc" > confmf
  3351. # Ignore all kinds of additional output from `make'.
  3352. case `$am_make -s -f confmf 2> /dev/null` in #(
  3353. *the\ am__doit\ target*)
  3354. am__include=include
  3355. am__quote=
  3356. _am_result=GNU
  3357. ;;
  3358. esac
  3359. # Now try BSD make style include.
  3360. if test "$am__include" = "#"; then
  3361. echo '.include "confinc"' > confmf
  3362. case `$am_make -s -f confmf 2> /dev/null` in #(
  3363. *the\ am__doit\ target*)
  3364. am__include=.include
  3365. am__quote="\""
  3366. _am_result=BSD
  3367. ;;
  3368. esac
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3371. $as_echo "$_am_result" >&6; }
  3372. rm -f confinc confmf
  3373. # Check whether --enable-dependency-tracking was given.
  3374. if test "${enable_dependency_tracking+set}" = set; then :
  3375. enableval=$enable_dependency_tracking;
  3376. fi
  3377. if test "x$enable_dependency_tracking" != xno; then
  3378. am_depcomp="$ac_aux_dir/depcomp"
  3379. AMDEPBACKSLASH='\'
  3380. fi
  3381. if test "x$enable_dependency_tracking" != xno; then
  3382. AMDEP_TRUE=
  3383. AMDEP_FALSE='#'
  3384. else
  3385. AMDEP_TRUE='#'
  3386. AMDEP_FALSE=
  3387. fi
  3388. depcc="$CC" am_compiler_list=
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3390. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3391. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3395. # We make a subdir and do the tests there. Otherwise we can end up
  3396. # making bogus files that we don't know about and never remove. For
  3397. # instance it was reported that on HP-UX the gcc test will end up
  3398. # making a dummy file named `D' -- because `-MD' means `put the output
  3399. # in D'.
  3400. mkdir conftest.dir
  3401. # Copy depcomp to subdir because otherwise we won't find it if we're
  3402. # using a relative directory.
  3403. cp "$am_depcomp" conftest.dir
  3404. cd conftest.dir
  3405. # We will build objects and dependencies in a subdirectory because
  3406. # it helps to detect inapplicable dependency modes. For instance
  3407. # both Tru64's cc and ICC support -MD to output dependencies as a
  3408. # side effect of compilation, but ICC will put the dependencies in
  3409. # the current directory while Tru64 will put them in the object
  3410. # directory.
  3411. mkdir sub
  3412. am_cv_CC_dependencies_compiler_type=none
  3413. if test "$am_compiler_list" = ""; then
  3414. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3415. fi
  3416. am__universal=false
  3417. case " $depcc " in #(
  3418. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3419. esac
  3420. for depmode in $am_compiler_list; do
  3421. # Setup a source with many dependencies, because some compilers
  3422. # like to wrap large dependency lists on column 80 (with \), and
  3423. # we should not choose a depcomp mode which is confused by this.
  3424. #
  3425. # We need to recreate these files for each test, as the compiler may
  3426. # overwrite some of them when testing with obscure command lines.
  3427. # This happens at least with the AIX C compiler.
  3428. : > sub/conftest.c
  3429. for i in 1 2 3 4 5 6; do
  3430. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3431. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3432. # Solaris 8's {/usr,}/bin/sh.
  3433. touch sub/conftst$i.h
  3434. done
  3435. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3436. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3437. # mode. It turns out that the SunPro C++ compiler does not properly
  3438. # handle `-M -o', and we need to detect this. Also, some Intel
  3439. # versions had trouble with output in subdirs
  3440. am__obj=sub/conftest.${OBJEXT-o}
  3441. am__minus_obj="-o $am__obj"
  3442. case $depmode in
  3443. gcc)
  3444. # This depmode causes a compiler race in universal mode.
  3445. test "$am__universal" = false || continue
  3446. ;;
  3447. nosideeffect)
  3448. # after this tag, mechanisms are not by side-effect, so they'll
  3449. # only be used when explicitly requested
  3450. if test "x$enable_dependency_tracking" = xyes; then
  3451. continue
  3452. else
  3453. break
  3454. fi
  3455. ;;
  3456. msvisualcpp | msvcmsys)
  3457. # This compiler won't grok `-c -o', but also, the minuso test has
  3458. # not run yet. These depmodes are late enough in the game, and
  3459. # so weak that their functioning should not be impacted.
  3460. am__obj=conftest.${OBJEXT-o}
  3461. am__minus_obj=
  3462. ;;
  3463. none) break ;;
  3464. esac
  3465. if depmode=$depmode \
  3466. source=sub/conftest.c object=$am__obj \
  3467. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3468. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3469. >/dev/null 2>conftest.err &&
  3470. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3471. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3472. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3473. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3474. # icc doesn't choke on unknown options, it will just issue warnings
  3475. # or remarks (even with -Werror). So we grep stderr for any message
  3476. # that says an option was ignored or not supported.
  3477. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3478. # icc: Command line warning: ignoring option '-M'; no argument required
  3479. # The diagnosis changed in icc 8.0:
  3480. # icc: Command line remark: option '-MP' not supported
  3481. if (grep 'ignoring option' conftest.err ||
  3482. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3483. am_cv_CC_dependencies_compiler_type=$depmode
  3484. break
  3485. fi
  3486. fi
  3487. done
  3488. cd ..
  3489. rm -rf conftest.dir
  3490. else
  3491. am_cv_CC_dependencies_compiler_type=none
  3492. fi
  3493. fi
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3495. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3496. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3497. if
  3498. test "x$enable_dependency_tracking" != xno \
  3499. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3500. am__fastdepCC_TRUE=
  3501. am__fastdepCC_FALSE='#'
  3502. else
  3503. am__fastdepCC_TRUE='#'
  3504. am__fastdepCC_FALSE=
  3505. fi
  3506. case `pwd` in
  3507. *\ * | *\ *)
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3509. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3510. esac
  3511. macro_version='2.2.7a'
  3512. macro_revision='1.3134'
  3513. ltmain="$ac_aux_dir/ltmain.sh"
  3514. # Backslashify metacharacters that are still active within
  3515. # double-quoted strings.
  3516. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3517. # Same as above, but do not quote variable references.
  3518. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3519. # Sed substitution to delay expansion of an escaped shell variable in a
  3520. # double_quote_subst'ed string.
  3521. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3522. # Sed substitution to delay expansion of an escaped single quote.
  3523. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3524. # Sed substitution to avoid accidental globbing in evaled expressions
  3525. no_glob_subst='s/\*/\\\*/g'
  3526. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3527. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3528. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3530. $as_echo_n "checking how to print strings... " >&6; }
  3531. # Test print first, because it will be a builtin if present.
  3532. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3533. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3534. ECHO='print -r --'
  3535. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3536. ECHO='printf %s\n'
  3537. else
  3538. # Use this function as a fallback that always works.
  3539. func_fallback_echo ()
  3540. {
  3541. eval 'cat <<_LTECHO_EOF
  3542. $1
  3543. _LTECHO_EOF'
  3544. }
  3545. ECHO='func_fallback_echo'
  3546. fi
  3547. # func_echo_all arg...
  3548. # Invoke $ECHO with all args, space-separated.
  3549. func_echo_all ()
  3550. {
  3551. $ECHO ""
  3552. }
  3553. case "$ECHO" in
  3554. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3555. $as_echo "printf" >&6; } ;;
  3556. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3557. $as_echo "print -r" >&6; } ;;
  3558. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3559. $as_echo "cat" >&6; } ;;
  3560. esac
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3562. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3563. if test "${ac_cv_path_SED+set}" = set; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3567. for ac_i in 1 2 3 4 5 6 7; do
  3568. ac_script="$ac_script$as_nl$ac_script"
  3569. done
  3570. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3571. { ac_script=; unset ac_script;}
  3572. if test -z "$SED"; then
  3573. ac_path_SED_found=false
  3574. # Loop through the user's path and test for each of PROGNAME-LIST
  3575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3576. for as_dir in $PATH
  3577. do
  3578. IFS=$as_save_IFS
  3579. test -z "$as_dir" && as_dir=.
  3580. for ac_prog in sed gsed; do
  3581. for ac_exec_ext in '' $ac_executable_extensions; do
  3582. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3583. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3584. # Check for GNU ac_path_SED and select it if it is found.
  3585. # Check for GNU $ac_path_SED
  3586. case `"$ac_path_SED" --version 2>&1` in
  3587. *GNU*)
  3588. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3589. *)
  3590. ac_count=0
  3591. $as_echo_n 0123456789 >"conftest.in"
  3592. while :
  3593. do
  3594. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3595. mv "conftest.tmp" "conftest.in"
  3596. cp "conftest.in" "conftest.nl"
  3597. $as_echo '' >> "conftest.nl"
  3598. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3600. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3601. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3602. # Best one so far, save it but keep looking for a better one
  3603. ac_cv_path_SED="$ac_path_SED"
  3604. ac_path_SED_max=$ac_count
  3605. fi
  3606. # 10*(2^10) chars as input seems more than enough
  3607. test $ac_count -gt 10 && break
  3608. done
  3609. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3610. esac
  3611. $ac_path_SED_found && break 3
  3612. done
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. if test -z "$ac_cv_path_SED"; then
  3617. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3618. fi
  3619. else
  3620. ac_cv_path_SED=$SED
  3621. fi
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3624. $as_echo "$ac_cv_path_SED" >&6; }
  3625. SED="$ac_cv_path_SED"
  3626. rm -f conftest.sed
  3627. test -z "$SED" && SED=sed
  3628. Xsed="$SED -e 1s/^X//"
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3630. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3631. if test "${ac_cv_path_GREP+set}" = set; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. if test -z "$GREP"; then
  3635. ac_path_GREP_found=false
  3636. # Loop through the user's path and test for each of PROGNAME-LIST
  3637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3638. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3639. do
  3640. IFS=$as_save_IFS
  3641. test -z "$as_dir" && as_dir=.
  3642. for ac_prog in grep ggrep; do
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3645. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3646. # Check for GNU ac_path_GREP and select it if it is found.
  3647. # Check for GNU $ac_path_GREP
  3648. case `"$ac_path_GREP" --version 2>&1` in
  3649. *GNU*)
  3650. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3651. *)
  3652. ac_count=0
  3653. $as_echo_n 0123456789 >"conftest.in"
  3654. while :
  3655. do
  3656. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3657. mv "conftest.tmp" "conftest.in"
  3658. cp "conftest.in" "conftest.nl"
  3659. $as_echo 'GREP' >> "conftest.nl"
  3660. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3661. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3662. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3663. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3664. # Best one so far, save it but keep looking for a better one
  3665. ac_cv_path_GREP="$ac_path_GREP"
  3666. ac_path_GREP_max=$ac_count
  3667. fi
  3668. # 10*(2^10) chars as input seems more than enough
  3669. test $ac_count -gt 10 && break
  3670. done
  3671. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3672. esac
  3673. $ac_path_GREP_found && break 3
  3674. done
  3675. done
  3676. done
  3677. IFS=$as_save_IFS
  3678. if test -z "$ac_cv_path_GREP"; then
  3679. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3680. fi
  3681. else
  3682. ac_cv_path_GREP=$GREP
  3683. fi
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3686. $as_echo "$ac_cv_path_GREP" >&6; }
  3687. GREP="$ac_cv_path_GREP"
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3689. $as_echo_n "checking for egrep... " >&6; }
  3690. if test "${ac_cv_path_EGREP+set}" = set; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3694. then ac_cv_path_EGREP="$GREP -E"
  3695. else
  3696. if test -z "$EGREP"; then
  3697. ac_path_EGREP_found=false
  3698. # Loop through the user's path and test for each of PROGNAME-LIST
  3699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3700. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3701. do
  3702. IFS=$as_save_IFS
  3703. test -z "$as_dir" && as_dir=.
  3704. for ac_prog in egrep; do
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3707. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3708. # Check for GNU ac_path_EGREP and select it if it is found.
  3709. # Check for GNU $ac_path_EGREP
  3710. case `"$ac_path_EGREP" --version 2>&1` in
  3711. *GNU*)
  3712. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3713. *)
  3714. ac_count=0
  3715. $as_echo_n 0123456789 >"conftest.in"
  3716. while :
  3717. do
  3718. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3719. mv "conftest.tmp" "conftest.in"
  3720. cp "conftest.in" "conftest.nl"
  3721. $as_echo 'EGREP' >> "conftest.nl"
  3722. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3723. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3724. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3725. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3726. # Best one so far, save it but keep looking for a better one
  3727. ac_cv_path_EGREP="$ac_path_EGREP"
  3728. ac_path_EGREP_max=$ac_count
  3729. fi
  3730. # 10*(2^10) chars as input seems more than enough
  3731. test $ac_count -gt 10 && break
  3732. done
  3733. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3734. esac
  3735. $ac_path_EGREP_found && break 3
  3736. done
  3737. done
  3738. done
  3739. IFS=$as_save_IFS
  3740. if test -z "$ac_cv_path_EGREP"; then
  3741. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3742. fi
  3743. else
  3744. ac_cv_path_EGREP=$EGREP
  3745. fi
  3746. fi
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3749. $as_echo "$ac_cv_path_EGREP" >&6; }
  3750. EGREP="$ac_cv_path_EGREP"
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3752. $as_echo_n "checking for fgrep... " >&6; }
  3753. if test "${ac_cv_path_FGREP+set}" = set; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3757. then ac_cv_path_FGREP="$GREP -F"
  3758. else
  3759. if test -z "$FGREP"; then
  3760. ac_path_FGREP_found=false
  3761. # Loop through the user's path and test for each of PROGNAME-LIST
  3762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3764. do
  3765. IFS=$as_save_IFS
  3766. test -z "$as_dir" && as_dir=.
  3767. for ac_prog in fgrep; do
  3768. for ac_exec_ext in '' $ac_executable_extensions; do
  3769. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3770. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3771. # Check for GNU ac_path_FGREP and select it if it is found.
  3772. # Check for GNU $ac_path_FGREP
  3773. case `"$ac_path_FGREP" --version 2>&1` in
  3774. *GNU*)
  3775. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3776. *)
  3777. ac_count=0
  3778. $as_echo_n 0123456789 >"conftest.in"
  3779. while :
  3780. do
  3781. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3782. mv "conftest.tmp" "conftest.in"
  3783. cp "conftest.in" "conftest.nl"
  3784. $as_echo 'FGREP' >> "conftest.nl"
  3785. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3786. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3787. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3788. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3789. # Best one so far, save it but keep looking for a better one
  3790. ac_cv_path_FGREP="$ac_path_FGREP"
  3791. ac_path_FGREP_max=$ac_count
  3792. fi
  3793. # 10*(2^10) chars as input seems more than enough
  3794. test $ac_count -gt 10 && break
  3795. done
  3796. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3797. esac
  3798. $ac_path_FGREP_found && break 3
  3799. done
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. if test -z "$ac_cv_path_FGREP"; then
  3804. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3805. fi
  3806. else
  3807. ac_cv_path_FGREP=$FGREP
  3808. fi
  3809. fi
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3812. $as_echo "$ac_cv_path_FGREP" >&6; }
  3813. FGREP="$ac_cv_path_FGREP"
  3814. test -z "$GREP" && GREP=grep
  3815. # Check whether --with-gnu-ld was given.
  3816. if test "${with_gnu_ld+set}" = set; then :
  3817. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3818. else
  3819. with_gnu_ld=no
  3820. fi
  3821. ac_prog=ld
  3822. if test "$GCC" = yes; then
  3823. # Check if gcc -print-prog-name=ld gives a path.
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3825. $as_echo_n "checking for ld used by $CC... " >&6; }
  3826. case $host in
  3827. *-*-mingw*)
  3828. # gcc leaves a trailing carriage return which upsets mingw
  3829. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3830. *)
  3831. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3832. esac
  3833. case $ac_prog in
  3834. # Accept absolute paths.
  3835. [\\/]* | ?:[\\/]*)
  3836. re_direlt='/[^/][^/]*/\.\./'
  3837. # Canonicalize the pathname of ld
  3838. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3839. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3840. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3841. done
  3842. test -z "$LD" && LD="$ac_prog"
  3843. ;;
  3844. "")
  3845. # If it fails, then pretend we aren't using GCC.
  3846. ac_prog=ld
  3847. ;;
  3848. *)
  3849. # If it is relative, then search for the first ld in PATH.
  3850. with_gnu_ld=unknown
  3851. ;;
  3852. esac
  3853. elif test "$with_gnu_ld" = yes; then
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3855. $as_echo_n "checking for GNU ld... " >&6; }
  3856. else
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3858. $as_echo_n "checking for non-GNU ld... " >&6; }
  3859. fi
  3860. if test "${lt_cv_path_LD+set}" = set; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. if test -z "$LD"; then
  3864. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3865. for ac_dir in $PATH; do
  3866. IFS="$lt_save_ifs"
  3867. test -z "$ac_dir" && ac_dir=.
  3868. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3869. lt_cv_path_LD="$ac_dir/$ac_prog"
  3870. # Check to see if the program is GNU ld. I'd rather use --version,
  3871. # but apparently some variants of GNU ld only accept -v.
  3872. # Break only if it was the GNU/non-GNU ld that we prefer.
  3873. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3874. *GNU* | *'with BFD'*)
  3875. test "$with_gnu_ld" != no && break
  3876. ;;
  3877. *)
  3878. test "$with_gnu_ld" != yes && break
  3879. ;;
  3880. esac
  3881. fi
  3882. done
  3883. IFS="$lt_save_ifs"
  3884. else
  3885. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3886. fi
  3887. fi
  3888. LD="$lt_cv_path_LD"
  3889. if test -n "$LD"; then
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3891. $as_echo "$LD" >&6; }
  3892. else
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3894. $as_echo "no" >&6; }
  3895. fi
  3896. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3898. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3899. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3903. case `$LD -v 2>&1 </dev/null` in
  3904. *GNU* | *'with BFD'*)
  3905. lt_cv_prog_gnu_ld=yes
  3906. ;;
  3907. *)
  3908. lt_cv_prog_gnu_ld=no
  3909. ;;
  3910. esac
  3911. fi
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3913. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3914. with_gnu_ld=$lt_cv_prog_gnu_ld
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3916. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3917. if test "${lt_cv_path_NM+set}" = set; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if test -n "$NM"; then
  3921. # Let the user override the test.
  3922. lt_cv_path_NM="$NM"
  3923. else
  3924. lt_nm_to_check="${ac_tool_prefix}nm"
  3925. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3926. lt_nm_to_check="$lt_nm_to_check nm"
  3927. fi
  3928. for lt_tmp_nm in $lt_nm_to_check; do
  3929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3930. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3931. IFS="$lt_save_ifs"
  3932. test -z "$ac_dir" && ac_dir=.
  3933. tmp_nm="$ac_dir/$lt_tmp_nm"
  3934. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3935. # Check to see if the nm accepts a BSD-compat flag.
  3936. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3937. # nm: unknown option "B" ignored
  3938. # Tru64's nm complains that /dev/null is an invalid object file
  3939. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3940. */dev/null* | *'Invalid file or object type'*)
  3941. lt_cv_path_NM="$tmp_nm -B"
  3942. break
  3943. ;;
  3944. *)
  3945. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3946. */dev/null*)
  3947. lt_cv_path_NM="$tmp_nm -p"
  3948. break
  3949. ;;
  3950. *)
  3951. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3952. continue # so that we can try to find one that supports BSD flags
  3953. ;;
  3954. esac
  3955. ;;
  3956. esac
  3957. fi
  3958. done
  3959. IFS="$lt_save_ifs"
  3960. done
  3961. : ${lt_cv_path_NM=no}
  3962. fi
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3965. $as_echo "$lt_cv_path_NM" >&6; }
  3966. if test "$lt_cv_path_NM" != "no"; then
  3967. NM="$lt_cv_path_NM"
  3968. else
  3969. # Didn't find any BSD compatible name lister, look for dumpbin.
  3970. if test -n "$DUMPBIN"; then :
  3971. # Let the user override the test.
  3972. else
  3973. if test -n "$ac_tool_prefix"; then
  3974. for ac_prog in dumpbin "link -dump"
  3975. do
  3976. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3977. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3979. $as_echo_n "checking for $ac_word... " >&6; }
  3980. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if test -n "$DUMPBIN"; then
  3984. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3993. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. fi
  4001. fi
  4002. DUMPBIN=$ac_cv_prog_DUMPBIN
  4003. if test -n "$DUMPBIN"; then
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4005. $as_echo "$DUMPBIN" >&6; }
  4006. else
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4008. $as_echo "no" >&6; }
  4009. fi
  4010. test -n "$DUMPBIN" && break
  4011. done
  4012. fi
  4013. if test -z "$DUMPBIN"; then
  4014. ac_ct_DUMPBIN=$DUMPBIN
  4015. for ac_prog in dumpbin "link -dump"
  4016. do
  4017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4018. set dummy $ac_prog; ac_word=$2
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4020. $as_echo_n "checking for $ac_word... " >&6; }
  4021. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4022. $as_echo_n "(cached) " >&6
  4023. else
  4024. if test -n "$ac_ct_DUMPBIN"; then
  4025. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4044. if test -n "$ac_ct_DUMPBIN"; then
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4046. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4047. else
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4049. $as_echo "no" >&6; }
  4050. fi
  4051. test -n "$ac_ct_DUMPBIN" && break
  4052. done
  4053. if test "x$ac_ct_DUMPBIN" = x; then
  4054. DUMPBIN=":"
  4055. else
  4056. case $cross_compiling:$ac_tool_warned in
  4057. yes:)
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4059. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4060. ac_tool_warned=yes ;;
  4061. esac
  4062. DUMPBIN=$ac_ct_DUMPBIN
  4063. fi
  4064. fi
  4065. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4066. *COFF*)
  4067. DUMPBIN="$DUMPBIN -symbols"
  4068. ;;
  4069. *)
  4070. DUMPBIN=:
  4071. ;;
  4072. esac
  4073. fi
  4074. if test "$DUMPBIN" != ":"; then
  4075. NM="$DUMPBIN"
  4076. fi
  4077. fi
  4078. test -z "$NM" && NM=nm
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4080. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4081. if test "${lt_cv_nm_interface+set}" = set; then :
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. lt_cv_nm_interface="BSD nm"
  4085. echo "int some_variable = 0;" > conftest.$ac_ext
  4086. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4087. (eval "$ac_compile" 2>conftest.err)
  4088. cat conftest.err >&5
  4089. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4090. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4091. cat conftest.err >&5
  4092. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4093. cat conftest.out >&5
  4094. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4095. lt_cv_nm_interface="MS dumpbin"
  4096. fi
  4097. rm -f conftest*
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4100. $as_echo "$lt_cv_nm_interface" >&6; }
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4102. $as_echo_n "checking whether ln -s works... " >&6; }
  4103. LN_S=$as_ln_s
  4104. if test "$LN_S" = "ln -s"; then
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4106. $as_echo "yes" >&6; }
  4107. else
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4109. $as_echo "no, using $LN_S" >&6; }
  4110. fi
  4111. # find the maximum length of command line arguments
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4113. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4114. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4115. $as_echo_n "(cached) " >&6
  4116. else
  4117. i=0
  4118. teststring="ABCD"
  4119. case $build_os in
  4120. msdosdjgpp*)
  4121. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4122. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4123. # during glob expansion). Even if it were fixed, the result of this
  4124. # check would be larger than it should be.
  4125. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4126. ;;
  4127. gnu*)
  4128. # Under GNU Hurd, this test is not required because there is
  4129. # no limit to the length of command line arguments.
  4130. # Libtool will interpret -1 as no limit whatsoever
  4131. lt_cv_sys_max_cmd_len=-1;
  4132. ;;
  4133. cygwin* | mingw* | cegcc*)
  4134. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4135. # about 5 minutes as the teststring grows exponentially.
  4136. # Worse, since 9x/ME are not pre-emptively multitasking,
  4137. # you end up with a "frozen" computer, even though with patience
  4138. # the test eventually succeeds (with a max line length of 256k).
  4139. # Instead, let's just punt: use the minimum linelength reported by
  4140. # all of the supported platforms: 8192 (on NT/2K/XP).
  4141. lt_cv_sys_max_cmd_len=8192;
  4142. ;;
  4143. mint*)
  4144. # On MiNT this can take a long time and run out of memory.
  4145. lt_cv_sys_max_cmd_len=8192;
  4146. ;;
  4147. amigaos*)
  4148. # On AmigaOS with pdksh, this test takes hours, literally.
  4149. # So we just punt and use a minimum line length of 8192.
  4150. lt_cv_sys_max_cmd_len=8192;
  4151. ;;
  4152. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4153. # This has been around since 386BSD, at least. Likely further.
  4154. if test -x /sbin/sysctl; then
  4155. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4156. elif test -x /usr/sbin/sysctl; then
  4157. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4158. else
  4159. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4160. fi
  4161. # And add a safety zone
  4162. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4163. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4164. ;;
  4165. interix*)
  4166. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4167. lt_cv_sys_max_cmd_len=196608
  4168. ;;
  4169. osf*)
  4170. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4171. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4172. # nice to cause kernel panics so lets avoid the loop below.
  4173. # First set a reasonable default.
  4174. lt_cv_sys_max_cmd_len=16384
  4175. #
  4176. if test -x /sbin/sysconfig; then
  4177. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4178. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4179. esac
  4180. fi
  4181. ;;
  4182. sco3.2v5*)
  4183. lt_cv_sys_max_cmd_len=102400
  4184. ;;
  4185. sysv5* | sco5v6* | sysv4.2uw2*)
  4186. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4187. if test -n "$kargmax"; then
  4188. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4189. else
  4190. lt_cv_sys_max_cmd_len=32768
  4191. fi
  4192. ;;
  4193. *)
  4194. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4195. if test -n "$lt_cv_sys_max_cmd_len"; then
  4196. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4197. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4198. else
  4199. # Make teststring a little bigger before we do anything with it.
  4200. # a 1K string should be a reasonable start.
  4201. for i in 1 2 3 4 5 6 7 8 ; do
  4202. teststring=$teststring$teststring
  4203. done
  4204. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4205. # If test is not a shell built-in, we'll probably end up computing a
  4206. # maximum length that is only half of the actual maximum length, but
  4207. # we can't tell.
  4208. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4209. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4210. test $i != 17 # 1/2 MB should be enough
  4211. do
  4212. i=`expr $i + 1`
  4213. teststring=$teststring$teststring
  4214. done
  4215. # Only check the string length outside the loop.
  4216. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4217. teststring=
  4218. # Add a significant safety factor because C++ compilers can tack on
  4219. # massive amounts of additional arguments before passing them to the
  4220. # linker. It appears as though 1/2 is a usable value.
  4221. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4222. fi
  4223. ;;
  4224. esac
  4225. fi
  4226. if test -n $lt_cv_sys_max_cmd_len ; then
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4228. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4229. else
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4231. $as_echo "none" >&6; }
  4232. fi
  4233. max_cmd_len=$lt_cv_sys_max_cmd_len
  4234. : ${CP="cp -f"}
  4235. : ${MV="mv -f"}
  4236. : ${RM="rm -f"}
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4238. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4239. # Try some XSI features
  4240. xsi_shell=no
  4241. ( _lt_dummy="a/b/c"
  4242. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4243. = c,a/b,, \
  4244. && eval 'test $(( 1 + 1 )) -eq 2 \
  4245. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4246. && xsi_shell=yes
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4248. $as_echo "$xsi_shell" >&6; }
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4250. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4251. lt_shell_append=no
  4252. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4253. >/dev/null 2>&1 \
  4254. && lt_shell_append=yes
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4256. $as_echo "$lt_shell_append" >&6; }
  4257. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4258. lt_unset=unset
  4259. else
  4260. lt_unset=false
  4261. fi
  4262. # test EBCDIC or ASCII
  4263. case `echo X|tr X '\101'` in
  4264. A) # ASCII based system
  4265. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4266. lt_SP2NL='tr \040 \012'
  4267. lt_NL2SP='tr \015\012 \040\040'
  4268. ;;
  4269. *) # EBCDIC based system
  4270. lt_SP2NL='tr \100 \n'
  4271. lt_NL2SP='tr \r\n \100\100'
  4272. ;;
  4273. esac
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4275. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4276. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4277. $as_echo_n "(cached) " >&6
  4278. else
  4279. lt_cv_ld_reload_flag='-r'
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4282. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4283. reload_flag=$lt_cv_ld_reload_flag
  4284. case $reload_flag in
  4285. "" | " "*) ;;
  4286. *) reload_flag=" $reload_flag" ;;
  4287. esac
  4288. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4289. case $host_os in
  4290. darwin*)
  4291. if test "$GCC" = yes; then
  4292. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4293. else
  4294. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4295. fi
  4296. ;;
  4297. esac
  4298. if test -n "$ac_tool_prefix"; then
  4299. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4300. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4302. $as_echo_n "checking for $ac_word... " >&6; }
  4303. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. if test -n "$OBJDUMP"; then
  4307. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4308. else
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. for ac_exec_ext in '' $ac_executable_extensions; do
  4315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4316. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4318. break 2
  4319. fi
  4320. done
  4321. done
  4322. IFS=$as_save_IFS
  4323. fi
  4324. fi
  4325. OBJDUMP=$ac_cv_prog_OBJDUMP
  4326. if test -n "$OBJDUMP"; then
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4328. $as_echo "$OBJDUMP" >&6; }
  4329. else
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4331. $as_echo "no" >&6; }
  4332. fi
  4333. fi
  4334. if test -z "$ac_cv_prog_OBJDUMP"; then
  4335. ac_ct_OBJDUMP=$OBJDUMP
  4336. # Extract the first word of "objdump", so it can be a program name with args.
  4337. set dummy objdump; ac_word=$2
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4339. $as_echo_n "checking for $ac_word... " >&6; }
  4340. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4341. $as_echo_n "(cached) " >&6
  4342. else
  4343. if test -n "$ac_ct_OBJDUMP"; then
  4344. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4345. else
  4346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4347. for as_dir in $PATH
  4348. do
  4349. IFS=$as_save_IFS
  4350. test -z "$as_dir" && as_dir=.
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4353. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4355. break 2
  4356. fi
  4357. done
  4358. done
  4359. IFS=$as_save_IFS
  4360. fi
  4361. fi
  4362. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4363. if test -n "$ac_ct_OBJDUMP"; then
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4365. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4366. else
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4368. $as_echo "no" >&6; }
  4369. fi
  4370. if test "x$ac_ct_OBJDUMP" = x; then
  4371. OBJDUMP="false"
  4372. else
  4373. case $cross_compiling:$ac_tool_warned in
  4374. yes:)
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4376. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4377. ac_tool_warned=yes ;;
  4378. esac
  4379. OBJDUMP=$ac_ct_OBJDUMP
  4380. fi
  4381. else
  4382. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4383. fi
  4384. test -z "$OBJDUMP" && OBJDUMP=objdump
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4386. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4387. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4388. $as_echo_n "(cached) " >&6
  4389. else
  4390. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4391. lt_cv_file_magic_test_file=
  4392. lt_cv_deplibs_check_method='unknown'
  4393. # Need to set the preceding variable on all platforms that support
  4394. # interlibrary dependencies.
  4395. # 'none' -- dependencies not supported.
  4396. # `unknown' -- same as none, but documents that we really don't know.
  4397. # 'pass_all' -- all dependencies passed with no checks.
  4398. # 'test_compile' -- check by making test program.
  4399. # 'file_magic [[regex]]' -- check by looking for files in library path
  4400. # which responds to the $file_magic_cmd with a given extended regex.
  4401. # If you have `file' or equivalent on your system and you're not sure
  4402. # whether `pass_all' will *always* work, you probably want this one.
  4403. case $host_os in
  4404. aix[4-9]*)
  4405. lt_cv_deplibs_check_method=pass_all
  4406. ;;
  4407. beos*)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. bsdi[45]*)
  4411. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4412. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4413. lt_cv_file_magic_test_file=/shlib/libc.so
  4414. ;;
  4415. cygwin*)
  4416. # func_win32_libid is a shell function defined in ltmain.sh
  4417. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4418. lt_cv_file_magic_cmd='func_win32_libid'
  4419. ;;
  4420. mingw* | pw32*)
  4421. # Base MSYS/MinGW do not provide the 'file' command needed by
  4422. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4423. # unless we find 'file', for example because we are cross-compiling.
  4424. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4425. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4426. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4427. lt_cv_file_magic_cmd='func_win32_libid'
  4428. else
  4429. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4430. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4431. fi
  4432. ;;
  4433. cegcc*)
  4434. # use the weaker test based on 'objdump'. See mingw*.
  4435. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4436. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4437. ;;
  4438. darwin* | rhapsody*)
  4439. lt_cv_deplibs_check_method=pass_all
  4440. ;;
  4441. freebsd* | dragonfly*)
  4442. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4443. case $host_cpu in
  4444. i*86 )
  4445. # Not sure whether the presence of OpenBSD here was a mistake.
  4446. # Let's accept both of them until this is cleared up.
  4447. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4448. lt_cv_file_magic_cmd=/usr/bin/file
  4449. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4450. ;;
  4451. esac
  4452. else
  4453. lt_cv_deplibs_check_method=pass_all
  4454. fi
  4455. ;;
  4456. gnu*)
  4457. lt_cv_deplibs_check_method=pass_all
  4458. ;;
  4459. haiku*)
  4460. lt_cv_deplibs_check_method=pass_all
  4461. ;;
  4462. hpux10.20* | hpux11*)
  4463. lt_cv_file_magic_cmd=/usr/bin/file
  4464. case $host_cpu in
  4465. ia64*)
  4466. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4467. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4468. ;;
  4469. hppa*64*)
  4470. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4471. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4472. ;;
  4473. *)
  4474. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4475. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4476. ;;
  4477. esac
  4478. ;;
  4479. interix[3-9]*)
  4480. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4481. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4482. ;;
  4483. irix5* | irix6* | nonstopux*)
  4484. case $LD in
  4485. *-32|*"-32 ") libmagic=32-bit;;
  4486. *-n32|*"-n32 ") libmagic=N32;;
  4487. *-64|*"-64 ") libmagic=64-bit;;
  4488. *) libmagic=never-match;;
  4489. esac
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. # This must be Linux ELF.
  4493. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. netbsd*)
  4497. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4498. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4499. else
  4500. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4501. fi
  4502. ;;
  4503. newos6*)
  4504. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4505. lt_cv_file_magic_cmd=/usr/bin/file
  4506. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4507. ;;
  4508. *nto* | *qnx*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. openbsd*)
  4512. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4513. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4514. else
  4515. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4516. fi
  4517. ;;
  4518. osf3* | osf4* | osf5*)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. rdos*)
  4522. lt_cv_deplibs_check_method=pass_all
  4523. ;;
  4524. solaris*)
  4525. lt_cv_deplibs_check_method=pass_all
  4526. ;;
  4527. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4528. lt_cv_deplibs_check_method=pass_all
  4529. ;;
  4530. sysv4 | sysv4.3*)
  4531. case $host_vendor in
  4532. motorola)
  4533. 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]'
  4534. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4535. ;;
  4536. ncr)
  4537. lt_cv_deplibs_check_method=pass_all
  4538. ;;
  4539. sequent)
  4540. lt_cv_file_magic_cmd='/bin/file'
  4541. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4542. ;;
  4543. sni)
  4544. lt_cv_file_magic_cmd='/bin/file'
  4545. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4546. lt_cv_file_magic_test_file=/lib/libc.so
  4547. ;;
  4548. siemens)
  4549. lt_cv_deplibs_check_method=pass_all
  4550. ;;
  4551. pc)
  4552. lt_cv_deplibs_check_method=pass_all
  4553. ;;
  4554. esac
  4555. ;;
  4556. tpf*)
  4557. lt_cv_deplibs_check_method=pass_all
  4558. ;;
  4559. esac
  4560. fi
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4562. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4563. file_magic_cmd=$lt_cv_file_magic_cmd
  4564. deplibs_check_method=$lt_cv_deplibs_check_method
  4565. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4566. if test -n "$ac_tool_prefix"; then
  4567. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4568. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. $as_echo_n "checking for $ac_word... " >&6; }
  4571. if test "${ac_cv_prog_AR+set}" = set; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -n "$AR"; then
  4575. ac_cv_prog_AR="$AR" # Let the user override the test.
  4576. else
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4584. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4586. break 2
  4587. fi
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. fi
  4592. fi
  4593. AR=$ac_cv_prog_AR
  4594. if test -n "$AR"; then
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4596. $as_echo "$AR" >&6; }
  4597. else
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4599. $as_echo "no" >&6; }
  4600. fi
  4601. fi
  4602. if test -z "$ac_cv_prog_AR"; then
  4603. ac_ct_AR=$AR
  4604. # Extract the first word of "ar", so it can be a program name with args.
  4605. set dummy ar; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_AR"; then
  4612. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4621. ac_cv_prog_ac_ct_AR="ar"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4631. if test -n "$ac_ct_AR"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4633. $as_echo "$ac_ct_AR" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. if test "x$ac_ct_AR" = x; then
  4639. AR="false"
  4640. else
  4641. case $cross_compiling:$ac_tool_warned in
  4642. yes:)
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4645. ac_tool_warned=yes ;;
  4646. esac
  4647. AR=$ac_ct_AR
  4648. fi
  4649. else
  4650. AR="$ac_cv_prog_AR"
  4651. fi
  4652. test -z "$AR" && AR=ar
  4653. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4654. if test -n "$ac_tool_prefix"; then
  4655. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4656. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4658. $as_echo_n "checking for $ac_word... " >&6; }
  4659. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. if test -n "$STRIP"; then
  4663. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4672. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. fi
  4680. fi
  4681. STRIP=$ac_cv_prog_STRIP
  4682. if test -n "$STRIP"; then
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4684. $as_echo "$STRIP" >&6; }
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4687. $as_echo "no" >&6; }
  4688. fi
  4689. fi
  4690. if test -z "$ac_cv_prog_STRIP"; then
  4691. ac_ct_STRIP=$STRIP
  4692. # Extract the first word of "strip", so it can be a program name with args.
  4693. set dummy strip; ac_word=$2
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4695. $as_echo_n "checking for $ac_word... " >&6; }
  4696. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. if test -n "$ac_ct_STRIP"; then
  4700. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4709. ac_cv_prog_ac_ct_STRIP="strip"
  4710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4719. if test -n "$ac_ct_STRIP"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4721. $as_echo "$ac_ct_STRIP" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. $as_echo "no" >&6; }
  4725. fi
  4726. if test "x$ac_ct_STRIP" = x; then
  4727. STRIP=":"
  4728. else
  4729. case $cross_compiling:$ac_tool_warned in
  4730. yes:)
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4733. ac_tool_warned=yes ;;
  4734. esac
  4735. STRIP=$ac_ct_STRIP
  4736. fi
  4737. else
  4738. STRIP="$ac_cv_prog_STRIP"
  4739. fi
  4740. test -z "$STRIP" && STRIP=:
  4741. if test -n "$ac_tool_prefix"; then
  4742. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4743. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4745. $as_echo_n "checking for $ac_word... " >&6; }
  4746. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. if test -n "$RANLIB"; then
  4750. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4751. else
  4752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4753. for as_dir in $PATH
  4754. do
  4755. IFS=$as_save_IFS
  4756. test -z "$as_dir" && as_dir=.
  4757. for ac_exec_ext in '' $ac_executable_extensions; do
  4758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4759. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4761. break 2
  4762. fi
  4763. done
  4764. done
  4765. IFS=$as_save_IFS
  4766. fi
  4767. fi
  4768. RANLIB=$ac_cv_prog_RANLIB
  4769. if test -n "$RANLIB"; then
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4771. $as_echo "$RANLIB" >&6; }
  4772. else
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4774. $as_echo "no" >&6; }
  4775. fi
  4776. fi
  4777. if test -z "$ac_cv_prog_RANLIB"; then
  4778. ac_ct_RANLIB=$RANLIB
  4779. # Extract the first word of "ranlib", so it can be a program name with args.
  4780. set dummy ranlib; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. if test -n "$ac_ct_RANLIB"; then
  4787. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792. IFS=$as_save_IFS
  4793. test -z "$as_dir" && as_dir=.
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4796. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798. break 2
  4799. fi
  4800. done
  4801. done
  4802. IFS=$as_save_IFS
  4803. fi
  4804. fi
  4805. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4806. if test -n "$ac_ct_RANLIB"; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4808. $as_echo "$ac_ct_RANLIB" >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4811. $as_echo "no" >&6; }
  4812. fi
  4813. if test "x$ac_ct_RANLIB" = x; then
  4814. RANLIB=":"
  4815. else
  4816. case $cross_compiling:$ac_tool_warned in
  4817. yes:)
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4820. ac_tool_warned=yes ;;
  4821. esac
  4822. RANLIB=$ac_ct_RANLIB
  4823. fi
  4824. else
  4825. RANLIB="$ac_cv_prog_RANLIB"
  4826. fi
  4827. test -z "$RANLIB" && RANLIB=:
  4828. # Determine commands to create old-style static archives.
  4829. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4830. old_postinstall_cmds='chmod 644 $oldlib'
  4831. old_postuninstall_cmds=
  4832. if test -n "$RANLIB"; then
  4833. case $host_os in
  4834. openbsd*)
  4835. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4836. ;;
  4837. *)
  4838. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4839. ;;
  4840. esac
  4841. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4842. fi
  4843. case $host_os in
  4844. darwin*)
  4845. lock_old_archive_extraction=yes ;;
  4846. *)
  4847. lock_old_archive_extraction=no ;;
  4848. esac
  4849. # If no C compiler was specified, use CC.
  4850. LTCC=${LTCC-"$CC"}
  4851. # If no C compiler flags were specified, use CFLAGS.
  4852. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4853. # Allow CC to be a program name with arguments.
  4854. compiler=$CC
  4855. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4857. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4858. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. # These are sane defaults that work on at least a few old systems.
  4862. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4863. # Character class describing NM global symbol codes.
  4864. symcode='[BCDEGRST]'
  4865. # Regexp to match symbols that can be accessed directly from C.
  4866. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4867. # Define system-specific variables.
  4868. case $host_os in
  4869. aix*)
  4870. symcode='[BCDT]'
  4871. ;;
  4872. cygwin* | mingw* | pw32* | cegcc*)
  4873. symcode='[ABCDGISTW]'
  4874. ;;
  4875. hpux*)
  4876. if test "$host_cpu" = ia64; then
  4877. symcode='[ABCDEGRST]'
  4878. fi
  4879. ;;
  4880. irix* | nonstopux*)
  4881. symcode='[BCDEGRST]'
  4882. ;;
  4883. osf*)
  4884. symcode='[BCDEGQRST]'
  4885. ;;
  4886. solaris*)
  4887. symcode='[BDRT]'
  4888. ;;
  4889. sco3.2v5*)
  4890. symcode='[DT]'
  4891. ;;
  4892. sysv4.2uw2*)
  4893. symcode='[DT]'
  4894. ;;
  4895. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4896. symcode='[ABDT]'
  4897. ;;
  4898. sysv4)
  4899. symcode='[DFNSTU]'
  4900. ;;
  4901. esac
  4902. # If we're using GNU nm, then use its standard symbol codes.
  4903. case `$NM -V 2>&1` in
  4904. *GNU* | *'with BFD'*)
  4905. symcode='[ABCDGIRSTW]' ;;
  4906. esac
  4907. # Transform an extracted symbol line into a proper C declaration.
  4908. # Some systems (esp. on ia64) link data and code symbols differently,
  4909. # so use this general approach.
  4910. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4911. # Transform an extracted symbol line into symbol name and symbol address
  4912. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4913. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4914. # Handle CRLF in mingw tool chain
  4915. opt_cr=
  4916. case $build_os in
  4917. mingw*)
  4918. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4919. ;;
  4920. esac
  4921. # Try without a prefix underscore, then with it.
  4922. for ac_symprfx in "" "_"; do
  4923. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4924. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4925. # Write the raw and C identifiers.
  4926. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4927. # Fake it for dumpbin and say T for any non-static function
  4928. # and D for any global variable.
  4929. # Also find C++ and __fastcall symbols from MSVC++,
  4930. # which start with @ or ?.
  4931. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4932. " {last_section=section; section=\$ 3};"\
  4933. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4934. " \$ 0!~/External *\|/{next};"\
  4935. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4936. " {if(hide[section]) next};"\
  4937. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4938. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4939. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4940. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4941. " ' prfx=^$ac_symprfx"
  4942. else
  4943. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4944. fi
  4945. # Check to see that the pipe works correctly.
  4946. pipe_works=no
  4947. rm -f conftest*
  4948. cat > conftest.$ac_ext <<_LT_EOF
  4949. #ifdef __cplusplus
  4950. extern "C" {
  4951. #endif
  4952. char nm_test_var;
  4953. void nm_test_func(void);
  4954. void nm_test_func(void){}
  4955. #ifdef __cplusplus
  4956. }
  4957. #endif
  4958. int main(){nm_test_var='a';nm_test_func();return(0);}
  4959. _LT_EOF
  4960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4961. (eval $ac_compile) 2>&5
  4962. ac_status=$?
  4963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4964. test $ac_status = 0; }; then
  4965. # Now try to grab the symbols.
  4966. nlist=conftest.nm
  4967. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4968. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4969. ac_status=$?
  4970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4971. test $ac_status = 0; } && test -s "$nlist"; then
  4972. # Try sorting and uniquifying the output.
  4973. if sort "$nlist" | uniq > "$nlist"T; then
  4974. mv -f "$nlist"T "$nlist"
  4975. else
  4976. rm -f "$nlist"T
  4977. fi
  4978. # Make sure that we snagged all the symbols we need.
  4979. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4980. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4981. cat <<_LT_EOF > conftest.$ac_ext
  4982. #ifdef __cplusplus
  4983. extern "C" {
  4984. #endif
  4985. _LT_EOF
  4986. # Now generate the symbol file.
  4987. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4988. cat <<_LT_EOF >> conftest.$ac_ext
  4989. /* The mapping between symbol names and symbols. */
  4990. const struct {
  4991. const char *name;
  4992. void *address;
  4993. }
  4994. lt__PROGRAM__LTX_preloaded_symbols[] =
  4995. {
  4996. { "@PROGRAM@", (void *) 0 },
  4997. _LT_EOF
  4998. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4999. cat <<\_LT_EOF >> conftest.$ac_ext
  5000. {0, (void *) 0}
  5001. };
  5002. /* This works around a problem in FreeBSD linker */
  5003. #ifdef FREEBSD_WORKAROUND
  5004. static const void *lt_preloaded_setup() {
  5005. return lt__PROGRAM__LTX_preloaded_symbols;
  5006. }
  5007. #endif
  5008. #ifdef __cplusplus
  5009. }
  5010. #endif
  5011. _LT_EOF
  5012. # Now try linking the two files.
  5013. mv conftest.$ac_objext conftstm.$ac_objext
  5014. lt_save_LIBS="$LIBS"
  5015. lt_save_CFLAGS="$CFLAGS"
  5016. LIBS="conftstm.$ac_objext"
  5017. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5019. (eval $ac_link) 2>&5
  5020. ac_status=$?
  5021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5022. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5023. pipe_works=yes
  5024. fi
  5025. LIBS="$lt_save_LIBS"
  5026. CFLAGS="$lt_save_CFLAGS"
  5027. else
  5028. echo "cannot find nm_test_func in $nlist" >&5
  5029. fi
  5030. else
  5031. echo "cannot find nm_test_var in $nlist" >&5
  5032. fi
  5033. else
  5034. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5035. fi
  5036. else
  5037. echo "$progname: failed program was:" >&5
  5038. cat conftest.$ac_ext >&5
  5039. fi
  5040. rm -rf conftest* conftst*
  5041. # Do not use the global_symbol_pipe unless it works.
  5042. if test "$pipe_works" = yes; then
  5043. break
  5044. else
  5045. lt_cv_sys_global_symbol_pipe=
  5046. fi
  5047. done
  5048. fi
  5049. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5050. lt_cv_sys_global_symbol_to_cdecl=
  5051. fi
  5052. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5054. $as_echo "failed" >&6; }
  5055. else
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5057. $as_echo "ok" >&6; }
  5058. fi
  5059. # Check whether --enable-libtool-lock was given.
  5060. if test "${enable_libtool_lock+set}" = set; then :
  5061. enableval=$enable_libtool_lock;
  5062. fi
  5063. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5064. # Some flags need to be propagated to the compiler or linker for good
  5065. # libtool support.
  5066. case $host in
  5067. ia64-*-hpux*)
  5068. # Find out which ABI we are using.
  5069. echo 'int i;' > conftest.$ac_ext
  5070. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5071. (eval $ac_compile) 2>&5
  5072. ac_status=$?
  5073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5074. test $ac_status = 0; }; then
  5075. case `/usr/bin/file conftest.$ac_objext` in
  5076. *ELF-32*)
  5077. HPUX_IA64_MODE="32"
  5078. ;;
  5079. *ELF-64*)
  5080. HPUX_IA64_MODE="64"
  5081. ;;
  5082. esac
  5083. fi
  5084. rm -rf conftest*
  5085. ;;
  5086. *-*-irix6*)
  5087. # Find out which ABI we are using.
  5088. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5090. (eval $ac_compile) 2>&5
  5091. ac_status=$?
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5093. test $ac_status = 0; }; then
  5094. if test "$lt_cv_prog_gnu_ld" = yes; then
  5095. case `/usr/bin/file conftest.$ac_objext` in
  5096. *32-bit*)
  5097. LD="${LD-ld} -melf32bsmip"
  5098. ;;
  5099. *N32*)
  5100. LD="${LD-ld} -melf32bmipn32"
  5101. ;;
  5102. *64-bit*)
  5103. LD="${LD-ld} -melf64bmip"
  5104. ;;
  5105. esac
  5106. else
  5107. case `/usr/bin/file conftest.$ac_objext` in
  5108. *32-bit*)
  5109. LD="${LD-ld} -32"
  5110. ;;
  5111. *N32*)
  5112. LD="${LD-ld} -n32"
  5113. ;;
  5114. *64-bit*)
  5115. LD="${LD-ld} -64"
  5116. ;;
  5117. esac
  5118. fi
  5119. fi
  5120. rm -rf conftest*
  5121. ;;
  5122. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5123. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5124. # Find out which ABI we are using.
  5125. echo 'int i;' > conftest.$ac_ext
  5126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5127. (eval $ac_compile) 2>&5
  5128. ac_status=$?
  5129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5130. test $ac_status = 0; }; then
  5131. case `/usr/bin/file conftest.o` in
  5132. *32-bit*)
  5133. case $host in
  5134. x86_64-*kfreebsd*-gnu)
  5135. LD="${LD-ld} -m elf_i386_fbsd"
  5136. ;;
  5137. x86_64-*linux*)
  5138. case `/usr/bin/file conftest.o` in
  5139. *x86-64*)
  5140. LD="${LD-ld} -m elf32_x86_64"
  5141. ;;
  5142. *)
  5143. LD="${LD-ld} -m elf_i386"
  5144. ;;
  5145. esac
  5146. ;;
  5147. powerpc64le-*linux*)
  5148. LD="${LD-ld} -m elf32lppclinux"
  5149. ;;
  5150. powerpc64-*linux*)
  5151. LD="${LD-ld} -m elf32ppclinux"
  5152. ;;
  5153. s390x-*linux*)
  5154. LD="${LD-ld} -m elf_s390"
  5155. ;;
  5156. sparc64-*linux*)
  5157. LD="${LD-ld} -m elf32_sparc"
  5158. ;;
  5159. esac
  5160. ;;
  5161. *64-bit*)
  5162. case $host in
  5163. x86_64-*kfreebsd*-gnu)
  5164. LD="${LD-ld} -m elf_x86_64_fbsd"
  5165. ;;
  5166. x86_64-*linux*)
  5167. LD="${LD-ld} -m elf_x86_64"
  5168. ;;
  5169. powerpcle-*linux*)
  5170. LD="${LD-ld} -m elf64lppc"
  5171. ;;
  5172. powerpc-*linux*)
  5173. LD="${LD-ld} -m elf64ppc"
  5174. ;;
  5175. s390*-*linux*|s390*-*tpf*)
  5176. LD="${LD-ld} -m elf64_s390"
  5177. ;;
  5178. sparc*-*linux*)
  5179. LD="${LD-ld} -m elf64_sparc"
  5180. ;;
  5181. esac
  5182. ;;
  5183. esac
  5184. fi
  5185. rm -rf conftest*
  5186. ;;
  5187. *-*-sco3.2v5*)
  5188. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5189. SAVE_CFLAGS="$CFLAGS"
  5190. CFLAGS="$CFLAGS -belf"
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5192. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5193. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5194. $as_echo_n "(cached) " >&6
  5195. else
  5196. ac_ext=c
  5197. ac_cpp='$CPP $CPPFLAGS'
  5198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5201. if test x$gcc_no_link = xyes; then
  5202. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5203. fi
  5204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5205. /* end confdefs.h. */
  5206. int
  5207. main ()
  5208. {
  5209. ;
  5210. return 0;
  5211. }
  5212. _ACEOF
  5213. if ac_fn_c_try_link "$LINENO"; then :
  5214. lt_cv_cc_needs_belf=yes
  5215. else
  5216. lt_cv_cc_needs_belf=no
  5217. fi
  5218. rm -f core conftest.err conftest.$ac_objext \
  5219. conftest$ac_exeext conftest.$ac_ext
  5220. ac_ext=c
  5221. ac_cpp='$CPP $CPPFLAGS'
  5222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5225. fi
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5227. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5228. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5229. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5230. CFLAGS="$SAVE_CFLAGS"
  5231. fi
  5232. ;;
  5233. sparc*-*solaris*)
  5234. # Find out which ABI we are using.
  5235. echo 'int i;' > conftest.$ac_ext
  5236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5237. (eval $ac_compile) 2>&5
  5238. ac_status=$?
  5239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5240. test $ac_status = 0; }; then
  5241. case `/usr/bin/file conftest.o` in
  5242. *64-bit*)
  5243. case $lt_cv_prog_gnu_ld in
  5244. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5245. *)
  5246. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5247. LD="${LD-ld} -64"
  5248. fi
  5249. ;;
  5250. esac
  5251. ;;
  5252. esac
  5253. fi
  5254. rm -rf conftest*
  5255. ;;
  5256. esac
  5257. need_locks="$enable_libtool_lock"
  5258. case $host_os in
  5259. rhapsody* | darwin*)
  5260. if test -n "$ac_tool_prefix"; then
  5261. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5262. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5264. $as_echo_n "checking for $ac_word... " >&6; }
  5265. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5266. $as_echo_n "(cached) " >&6
  5267. else
  5268. if test -n "$DSYMUTIL"; then
  5269. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5270. else
  5271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5272. for as_dir in $PATH
  5273. do
  5274. IFS=$as_save_IFS
  5275. test -z "$as_dir" && as_dir=.
  5276. for ac_exec_ext in '' $ac_executable_extensions; do
  5277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5278. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5280. break 2
  5281. fi
  5282. done
  5283. done
  5284. IFS=$as_save_IFS
  5285. fi
  5286. fi
  5287. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5288. if test -n "$DSYMUTIL"; then
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5290. $as_echo "$DSYMUTIL" >&6; }
  5291. else
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5293. $as_echo "no" >&6; }
  5294. fi
  5295. fi
  5296. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5297. ac_ct_DSYMUTIL=$DSYMUTIL
  5298. # Extract the first word of "dsymutil", so it can be a program name with args.
  5299. set dummy dsymutil; ac_word=$2
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5301. $as_echo_n "checking for $ac_word... " >&6; }
  5302. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. if test -n "$ac_ct_DSYMUTIL"; then
  5306. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5307. else
  5308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5309. for as_dir in $PATH
  5310. do
  5311. IFS=$as_save_IFS
  5312. test -z "$as_dir" && as_dir=.
  5313. for ac_exec_ext in '' $ac_executable_extensions; do
  5314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5315. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5317. break 2
  5318. fi
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. fi
  5323. fi
  5324. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5325. if test -n "$ac_ct_DSYMUTIL"; then
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5327. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5328. else
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5330. $as_echo "no" >&6; }
  5331. fi
  5332. if test "x$ac_ct_DSYMUTIL" = x; then
  5333. DSYMUTIL=":"
  5334. else
  5335. case $cross_compiling:$ac_tool_warned in
  5336. yes:)
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5339. ac_tool_warned=yes ;;
  5340. esac
  5341. DSYMUTIL=$ac_ct_DSYMUTIL
  5342. fi
  5343. else
  5344. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5345. fi
  5346. if test -n "$ac_tool_prefix"; then
  5347. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5348. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5350. $as_echo_n "checking for $ac_word... " >&6; }
  5351. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. if test -n "$NMEDIT"; then
  5355. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5356. else
  5357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5358. for as_dir in $PATH
  5359. do
  5360. IFS=$as_save_IFS
  5361. test -z "$as_dir" && as_dir=.
  5362. for ac_exec_ext in '' $ac_executable_extensions; do
  5363. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5364. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5366. break 2
  5367. fi
  5368. done
  5369. done
  5370. IFS=$as_save_IFS
  5371. fi
  5372. fi
  5373. NMEDIT=$ac_cv_prog_NMEDIT
  5374. if test -n "$NMEDIT"; then
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5376. $as_echo "$NMEDIT" >&6; }
  5377. else
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5379. $as_echo "no" >&6; }
  5380. fi
  5381. fi
  5382. if test -z "$ac_cv_prog_NMEDIT"; then
  5383. ac_ct_NMEDIT=$NMEDIT
  5384. # Extract the first word of "nmedit", so it can be a program name with args.
  5385. set dummy nmedit; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$ac_ct_NMEDIT"; then
  5392. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5401. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5411. if test -n "$ac_ct_NMEDIT"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5413. $as_echo "$ac_ct_NMEDIT" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. if test "x$ac_ct_NMEDIT" = x; then
  5419. NMEDIT=":"
  5420. else
  5421. case $cross_compiling:$ac_tool_warned in
  5422. yes:)
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5424. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5425. ac_tool_warned=yes ;;
  5426. esac
  5427. NMEDIT=$ac_ct_NMEDIT
  5428. fi
  5429. else
  5430. NMEDIT="$ac_cv_prog_NMEDIT"
  5431. fi
  5432. if test -n "$ac_tool_prefix"; then
  5433. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5434. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5436. $as_echo_n "checking for $ac_word... " >&6; }
  5437. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5438. $as_echo_n "(cached) " >&6
  5439. else
  5440. if test -n "$LIPO"; then
  5441. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5442. else
  5443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5444. for as_dir in $PATH
  5445. do
  5446. IFS=$as_save_IFS
  5447. test -z "$as_dir" && as_dir=.
  5448. for ac_exec_ext in '' $ac_executable_extensions; do
  5449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5450. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5452. break 2
  5453. fi
  5454. done
  5455. done
  5456. IFS=$as_save_IFS
  5457. fi
  5458. fi
  5459. LIPO=$ac_cv_prog_LIPO
  5460. if test -n "$LIPO"; then
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5462. $as_echo "$LIPO" >&6; }
  5463. else
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5465. $as_echo "no" >&6; }
  5466. fi
  5467. fi
  5468. if test -z "$ac_cv_prog_LIPO"; then
  5469. ac_ct_LIPO=$LIPO
  5470. # Extract the first word of "lipo", so it can be a program name with args.
  5471. set dummy lipo; ac_word=$2
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5473. $as_echo_n "checking for $ac_word... " >&6; }
  5474. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5475. $as_echo_n "(cached) " >&6
  5476. else
  5477. if test -n "$ac_ct_LIPO"; then
  5478. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5479. else
  5480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5481. for as_dir in $PATH
  5482. do
  5483. IFS=$as_save_IFS
  5484. test -z "$as_dir" && as_dir=.
  5485. for ac_exec_ext in '' $ac_executable_extensions; do
  5486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5487. ac_cv_prog_ac_ct_LIPO="lipo"
  5488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5489. break 2
  5490. fi
  5491. done
  5492. done
  5493. IFS=$as_save_IFS
  5494. fi
  5495. fi
  5496. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5497. if test -n "$ac_ct_LIPO"; then
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5499. $as_echo "$ac_ct_LIPO" >&6; }
  5500. else
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5502. $as_echo "no" >&6; }
  5503. fi
  5504. if test "x$ac_ct_LIPO" = x; then
  5505. LIPO=":"
  5506. else
  5507. case $cross_compiling:$ac_tool_warned in
  5508. yes:)
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5510. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5511. ac_tool_warned=yes ;;
  5512. esac
  5513. LIPO=$ac_ct_LIPO
  5514. fi
  5515. else
  5516. LIPO="$ac_cv_prog_LIPO"
  5517. fi
  5518. if test -n "$ac_tool_prefix"; then
  5519. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5520. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5522. $as_echo_n "checking for $ac_word... " >&6; }
  5523. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. if test -n "$OTOOL"; then
  5527. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5528. else
  5529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5530. for as_dir in $PATH
  5531. do
  5532. IFS=$as_save_IFS
  5533. test -z "$as_dir" && as_dir=.
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5536. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. OTOOL=$ac_cv_prog_OTOOL
  5546. if test -n "$OTOOL"; then
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5548. $as_echo "$OTOOL" >&6; }
  5549. else
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. $as_echo "no" >&6; }
  5552. fi
  5553. fi
  5554. if test -z "$ac_cv_prog_OTOOL"; then
  5555. ac_ct_OTOOL=$OTOOL
  5556. # Extract the first word of "otool", so it can be a program name with args.
  5557. set dummy otool; ac_word=$2
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5559. $as_echo_n "checking for $ac_word... " >&6; }
  5560. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5561. $as_echo_n "(cached) " >&6
  5562. else
  5563. if test -n "$ac_ct_OTOOL"; then
  5564. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5565. else
  5566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5567. for as_dir in $PATH
  5568. do
  5569. IFS=$as_save_IFS
  5570. test -z "$as_dir" && as_dir=.
  5571. for ac_exec_ext in '' $ac_executable_extensions; do
  5572. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5573. ac_cv_prog_ac_ct_OTOOL="otool"
  5574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5575. break 2
  5576. fi
  5577. done
  5578. done
  5579. IFS=$as_save_IFS
  5580. fi
  5581. fi
  5582. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5583. if test -n "$ac_ct_OTOOL"; then
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5585. $as_echo "$ac_ct_OTOOL" >&6; }
  5586. else
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5588. $as_echo "no" >&6; }
  5589. fi
  5590. if test "x$ac_ct_OTOOL" = x; then
  5591. OTOOL=":"
  5592. else
  5593. case $cross_compiling:$ac_tool_warned in
  5594. yes:)
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5597. ac_tool_warned=yes ;;
  5598. esac
  5599. OTOOL=$ac_ct_OTOOL
  5600. fi
  5601. else
  5602. OTOOL="$ac_cv_prog_OTOOL"
  5603. fi
  5604. if test -n "$ac_tool_prefix"; then
  5605. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5606. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$OTOOL64"; then
  5613. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5622. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. OTOOL64=$ac_cv_prog_OTOOL64
  5632. if test -n "$OTOOL64"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5634. $as_echo "$OTOOL64" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_OTOOL64"; then
  5641. ac_ct_OTOOL64=$OTOOL64
  5642. # Extract the first word of "otool64", so it can be a program name with args.
  5643. set dummy otool64; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$ac_ct_OTOOL64"; then
  5650. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5659. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5669. if test -n "$ac_ct_OTOOL64"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5671. $as_echo "$ac_ct_OTOOL64" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. if test "x$ac_ct_OTOOL64" = x; then
  5677. OTOOL64=":"
  5678. else
  5679. case $cross_compiling:$ac_tool_warned in
  5680. yes:)
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5683. ac_tool_warned=yes ;;
  5684. esac
  5685. OTOOL64=$ac_ct_OTOOL64
  5686. fi
  5687. else
  5688. OTOOL64="$ac_cv_prog_OTOOL64"
  5689. fi
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5691. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5692. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. lt_cv_apple_cc_single_mod=no
  5696. if test -z "${LT_MULTI_MODULE}"; then
  5697. # By default we will add the -single_module flag. You can override
  5698. # by either setting the environment variable LT_MULTI_MODULE
  5699. # non-empty at configure time, or by adding -multi_module to the
  5700. # link flags.
  5701. rm -rf libconftest.dylib*
  5702. echo "int foo(void){return 1;}" > conftest.c
  5703. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5704. -dynamiclib -Wl,-single_module conftest.c" >&5
  5705. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5706. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5707. _lt_result=$?
  5708. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5709. lt_cv_apple_cc_single_mod=yes
  5710. else
  5711. cat conftest.err >&5
  5712. fi
  5713. rm -rf libconftest.dylib*
  5714. rm -f conftest.*
  5715. fi
  5716. fi
  5717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5718. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5720. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5721. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5722. $as_echo_n "(cached) " >&6
  5723. else
  5724. lt_cv_ld_exported_symbols_list=no
  5725. save_LDFLAGS=$LDFLAGS
  5726. echo "_main" > conftest.sym
  5727. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5728. if test x$gcc_no_link = xyes; then
  5729. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5730. fi
  5731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5732. /* end confdefs.h. */
  5733. int
  5734. main ()
  5735. {
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. if ac_fn_c_try_link "$LINENO"; then :
  5741. lt_cv_ld_exported_symbols_list=yes
  5742. else
  5743. lt_cv_ld_exported_symbols_list=no
  5744. fi
  5745. rm -f core conftest.err conftest.$ac_objext \
  5746. conftest$ac_exeext conftest.$ac_ext
  5747. LDFLAGS="$save_LDFLAGS"
  5748. fi
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5750. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5752. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5753. if test "${lt_cv_ld_force_load+set}" = set; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. lt_cv_ld_force_load=no
  5757. cat > conftest.c << _LT_EOF
  5758. int forced_loaded() { return 2;}
  5759. _LT_EOF
  5760. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5761. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5762. echo "$AR cru libconftest.a conftest.o" >&5
  5763. $AR cru libconftest.a conftest.o 2>&5
  5764. cat > conftest.c << _LT_EOF
  5765. int main() { return 0;}
  5766. _LT_EOF
  5767. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5768. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5769. _lt_result=$?
  5770. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  5771. lt_cv_ld_force_load=yes
  5772. else
  5773. cat conftest.err >&5
  5774. fi
  5775. rm -f conftest.err libconftest.a conftest conftest.c
  5776. rm -rf conftest.dSYM
  5777. fi
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5779. $as_echo "$lt_cv_ld_force_load" >&6; }
  5780. case $host_os in
  5781. rhapsody* | darwin1.[012])
  5782. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5783. darwin1.*)
  5784. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5785. darwin*) # darwin 5.x on
  5786. # if running on 10.5 or later, the deployment target defaults
  5787. # to the OS version, if on x86, and 10.4, the deployment
  5788. # target defaults to 10.4. Don't you love it?
  5789. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5790. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5791. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5792. 10.[012][,.]*)
  5793. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5794. 10.*)
  5795. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5796. esac
  5797. ;;
  5798. esac
  5799. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5800. _lt_dar_single_mod='$single_module'
  5801. fi
  5802. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5803. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5804. else
  5805. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5806. fi
  5807. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  5808. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5809. else
  5810. _lt_dsymutil=
  5811. fi
  5812. ;;
  5813. esac
  5814. ac_ext=c
  5815. ac_cpp='$CPP $CPPFLAGS'
  5816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5820. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5821. # On Suns, sometimes $CPP names a directory.
  5822. if test -n "$CPP" && test -d "$CPP"; then
  5823. CPP=
  5824. fi
  5825. if test -z "$CPP"; then
  5826. if test "${ac_cv_prog_CPP+set}" = set; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. # Double quotes because CPP needs to be expanded
  5830. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5831. do
  5832. ac_preproc_ok=false
  5833. for ac_c_preproc_warn_flag in '' yes
  5834. do
  5835. # Use a header file that comes with gcc, so configuring glibc
  5836. # with a fresh cross-compiler works.
  5837. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5838. # <limits.h> exists even on freestanding compilers.
  5839. # On the NeXT, cc -E runs the code through the compiler's parser,
  5840. # not just through cpp. "Syntax error" is here to catch this case.
  5841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5842. /* end confdefs.h. */
  5843. #ifdef __STDC__
  5844. # include <limits.h>
  5845. #else
  5846. # include <assert.h>
  5847. #endif
  5848. Syntax error
  5849. _ACEOF
  5850. if ac_fn_c_try_cpp "$LINENO"; then :
  5851. else
  5852. # Broken: fails on valid input.
  5853. continue
  5854. fi
  5855. rm -f conftest.err conftest.$ac_ext
  5856. # OK, works on sane cases. Now check whether nonexistent headers
  5857. # can be detected and how.
  5858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5859. /* end confdefs.h. */
  5860. #include <ac_nonexistent.h>
  5861. _ACEOF
  5862. if ac_fn_c_try_cpp "$LINENO"; then :
  5863. # Broken: success on invalid input.
  5864. continue
  5865. else
  5866. # Passes both tests.
  5867. ac_preproc_ok=:
  5868. break
  5869. fi
  5870. rm -f conftest.err conftest.$ac_ext
  5871. done
  5872. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5873. rm -f conftest.err conftest.$ac_ext
  5874. if $ac_preproc_ok; then :
  5875. break
  5876. fi
  5877. done
  5878. ac_cv_prog_CPP=$CPP
  5879. fi
  5880. CPP=$ac_cv_prog_CPP
  5881. else
  5882. ac_cv_prog_CPP=$CPP
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5885. $as_echo "$CPP" >&6; }
  5886. ac_preproc_ok=false
  5887. for ac_c_preproc_warn_flag in '' yes
  5888. do
  5889. # Use a header file that comes with gcc, so configuring glibc
  5890. # with a fresh cross-compiler works.
  5891. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5892. # <limits.h> exists even on freestanding compilers.
  5893. # On the NeXT, cc -E runs the code through the compiler's parser,
  5894. # not just through cpp. "Syntax error" is here to catch this case.
  5895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5896. /* end confdefs.h. */
  5897. #ifdef __STDC__
  5898. # include <limits.h>
  5899. #else
  5900. # include <assert.h>
  5901. #endif
  5902. Syntax error
  5903. _ACEOF
  5904. if ac_fn_c_try_cpp "$LINENO"; then :
  5905. else
  5906. # Broken: fails on valid input.
  5907. continue
  5908. fi
  5909. rm -f conftest.err conftest.$ac_ext
  5910. # OK, works on sane cases. Now check whether nonexistent headers
  5911. # can be detected and how.
  5912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5913. /* end confdefs.h. */
  5914. #include <ac_nonexistent.h>
  5915. _ACEOF
  5916. if ac_fn_c_try_cpp "$LINENO"; then :
  5917. # Broken: success on invalid input.
  5918. continue
  5919. else
  5920. # Passes both tests.
  5921. ac_preproc_ok=:
  5922. break
  5923. fi
  5924. rm -f conftest.err conftest.$ac_ext
  5925. done
  5926. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5927. rm -f conftest.err conftest.$ac_ext
  5928. if $ac_preproc_ok; then :
  5929. else
  5930. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5932. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5933. See \`config.log' for more details." "$LINENO" 5; }
  5934. fi
  5935. ac_ext=c
  5936. ac_cpp='$CPP $CPPFLAGS'
  5937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5941. $as_echo_n "checking for ANSI C header files... " >&6; }
  5942. if test "${ac_cv_header_stdc+set}" = set; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5946. /* end confdefs.h. */
  5947. #include <stdlib.h>
  5948. #include <stdarg.h>
  5949. #include <string.h>
  5950. #include <float.h>
  5951. int
  5952. main ()
  5953. {
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. if ac_fn_c_try_compile "$LINENO"; then :
  5959. ac_cv_header_stdc=yes
  5960. else
  5961. ac_cv_header_stdc=no
  5962. fi
  5963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5964. if test $ac_cv_header_stdc = yes; then
  5965. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5967. /* end confdefs.h. */
  5968. #include <string.h>
  5969. _ACEOF
  5970. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5971. $EGREP "memchr" >/dev/null 2>&1; then :
  5972. else
  5973. ac_cv_header_stdc=no
  5974. fi
  5975. rm -f conftest*
  5976. fi
  5977. if test $ac_cv_header_stdc = yes; then
  5978. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5980. /* end confdefs.h. */
  5981. #include <stdlib.h>
  5982. _ACEOF
  5983. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5984. $EGREP "free" >/dev/null 2>&1; then :
  5985. else
  5986. ac_cv_header_stdc=no
  5987. fi
  5988. rm -f conftest*
  5989. fi
  5990. if test $ac_cv_header_stdc = yes; then
  5991. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5992. if test "$cross_compiling" = yes; then :
  5993. :
  5994. else
  5995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5996. /* end confdefs.h. */
  5997. #include <ctype.h>
  5998. #include <stdlib.h>
  5999. #if ((' ' & 0x0FF) == 0x020)
  6000. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6001. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6002. #else
  6003. # define ISLOWER(c) \
  6004. (('a' <= (c) && (c) <= 'i') \
  6005. || ('j' <= (c) && (c) <= 'r') \
  6006. || ('s' <= (c) && (c) <= 'z'))
  6007. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6008. #endif
  6009. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6010. int
  6011. main ()
  6012. {
  6013. int i;
  6014. for (i = 0; i < 256; i++)
  6015. if (XOR (islower (i), ISLOWER (i))
  6016. || toupper (i) != TOUPPER (i))
  6017. return 2;
  6018. return 0;
  6019. }
  6020. _ACEOF
  6021. if ac_fn_c_try_run "$LINENO"; then :
  6022. else
  6023. ac_cv_header_stdc=no
  6024. fi
  6025. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6026. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6027. fi
  6028. fi
  6029. fi
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6031. $as_echo "$ac_cv_header_stdc" >&6; }
  6032. if test $ac_cv_header_stdc = yes; then
  6033. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6034. fi
  6035. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6036. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6037. inttypes.h stdint.h unistd.h
  6038. do :
  6039. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6040. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6041. "
  6042. eval as_val=\$$as_ac_Header
  6043. if test "x$as_val" = x""yes; then :
  6044. cat >>confdefs.h <<_ACEOF
  6045. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6046. _ACEOF
  6047. fi
  6048. done
  6049. for ac_header in dlfcn.h
  6050. do :
  6051. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6052. "
  6053. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6054. cat >>confdefs.h <<_ACEOF
  6055. #define HAVE_DLFCN_H 1
  6056. _ACEOF
  6057. fi
  6058. done
  6059. # Set options
  6060. enable_dlopen=no
  6061. enable_win32_dll=no
  6062. # Check whether --enable-shared was given.
  6063. if test "${enable_shared+set}" = set; then :
  6064. enableval=$enable_shared; p=${PACKAGE-default}
  6065. case $enableval in
  6066. yes) enable_shared=yes ;;
  6067. no) enable_shared=no ;;
  6068. *)
  6069. enable_shared=no
  6070. # Look at the argument we got. We use all the common list separators.
  6071. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6072. for pkg in $enableval; do
  6073. IFS="$lt_save_ifs"
  6074. if test "X$pkg" = "X$p"; then
  6075. enable_shared=yes
  6076. fi
  6077. done
  6078. IFS="$lt_save_ifs"
  6079. ;;
  6080. esac
  6081. else
  6082. enable_shared=yes
  6083. fi
  6084. # Check whether --enable-static was given.
  6085. if test "${enable_static+set}" = set; then :
  6086. enableval=$enable_static; p=${PACKAGE-default}
  6087. case $enableval in
  6088. yes) enable_static=yes ;;
  6089. no) enable_static=no ;;
  6090. *)
  6091. enable_static=no
  6092. # Look at the argument we got. We use all the common list separators.
  6093. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6094. for pkg in $enableval; do
  6095. IFS="$lt_save_ifs"
  6096. if test "X$pkg" = "X$p"; then
  6097. enable_static=yes
  6098. fi
  6099. done
  6100. IFS="$lt_save_ifs"
  6101. ;;
  6102. esac
  6103. else
  6104. enable_static=yes
  6105. fi
  6106. # Check whether --with-pic was given.
  6107. if test "${with_pic+set}" = set; then :
  6108. withval=$with_pic; pic_mode="$withval"
  6109. else
  6110. pic_mode=default
  6111. fi
  6112. test -z "$pic_mode" && pic_mode=default
  6113. # Check whether --enable-fast-install was given.
  6114. if test "${enable_fast_install+set}" = set; then :
  6115. enableval=$enable_fast_install; p=${PACKAGE-default}
  6116. case $enableval in
  6117. yes) enable_fast_install=yes ;;
  6118. no) enable_fast_install=no ;;
  6119. *)
  6120. enable_fast_install=no
  6121. # Look at the argument we got. We use all the common list separators.
  6122. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6123. for pkg in $enableval; do
  6124. IFS="$lt_save_ifs"
  6125. if test "X$pkg" = "X$p"; then
  6126. enable_fast_install=yes
  6127. fi
  6128. done
  6129. IFS="$lt_save_ifs"
  6130. ;;
  6131. esac
  6132. else
  6133. enable_fast_install=yes
  6134. fi
  6135. # This can be used to rebuild libtool when needed
  6136. LIBTOOL_DEPS="$ltmain"
  6137. # Always use our own libtool.
  6138. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6139. test -z "$LN_S" && LN_S="ln -s"
  6140. if test -n "${ZSH_VERSION+set}" ; then
  6141. setopt NO_GLOB_SUBST
  6142. fi
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6144. $as_echo_n "checking for objdir... " >&6; }
  6145. if test "${lt_cv_objdir+set}" = set; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. rm -f .libs 2>/dev/null
  6149. mkdir .libs 2>/dev/null
  6150. if test -d .libs; then
  6151. lt_cv_objdir=.libs
  6152. else
  6153. # MS-DOS does not allow filenames that begin with a dot.
  6154. lt_cv_objdir=_libs
  6155. fi
  6156. rmdir .libs 2>/dev/null
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6159. $as_echo "$lt_cv_objdir" >&6; }
  6160. objdir=$lt_cv_objdir
  6161. cat >>confdefs.h <<_ACEOF
  6162. #define LT_OBJDIR "$lt_cv_objdir/"
  6163. _ACEOF
  6164. case $host_os in
  6165. aix3*)
  6166. # AIX sometimes has problems with the GCC collect2 program. For some
  6167. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6168. # vanish in a puff of smoke.
  6169. if test "X${COLLECT_NAMES+set}" != Xset; then
  6170. COLLECT_NAMES=
  6171. export COLLECT_NAMES
  6172. fi
  6173. ;;
  6174. esac
  6175. # Global variables:
  6176. ofile=libtool
  6177. can_build_shared=yes
  6178. # All known linkers require a `.a' archive for static linking (except MSVC,
  6179. # which needs '.lib').
  6180. libext=a
  6181. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6182. old_CC="$CC"
  6183. old_CFLAGS="$CFLAGS"
  6184. # Set sane defaults for various variables
  6185. test -z "$CC" && CC=cc
  6186. test -z "$LTCC" && LTCC=$CC
  6187. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6188. test -z "$LD" && LD=ld
  6189. test -z "$ac_objext" && ac_objext=o
  6190. for cc_temp in $compiler""; do
  6191. case $cc_temp in
  6192. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6193. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6194. \-*) ;;
  6195. *) break;;
  6196. esac
  6197. done
  6198. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6199. # Only perform the check for file, if the check method requires it
  6200. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6201. case $deplibs_check_method in
  6202. file_magic*)
  6203. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6205. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6206. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. case $MAGIC_CMD in
  6210. [\\/*] | ?:[\\/]*)
  6211. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6212. ;;
  6213. *)
  6214. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6215. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6216. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6217. for ac_dir in $ac_dummy; do
  6218. IFS="$lt_save_ifs"
  6219. test -z "$ac_dir" && ac_dir=.
  6220. if test -f $ac_dir/${ac_tool_prefix}file; then
  6221. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6222. if test -n "$file_magic_test_file"; then
  6223. case $deplibs_check_method in
  6224. "file_magic "*)
  6225. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6226. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6227. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6228. $EGREP "$file_magic_regex" > /dev/null; then
  6229. :
  6230. else
  6231. cat <<_LT_EOF 1>&2
  6232. *** Warning: the command libtool uses to detect shared libraries,
  6233. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6234. *** The result is that libtool may fail to recognize shared libraries
  6235. *** as such. This will affect the creation of libtool libraries that
  6236. *** depend on shared libraries, but programs linked with such libtool
  6237. *** libraries will work regardless of this problem. Nevertheless, you
  6238. *** may want to report the problem to your system manager and/or to
  6239. *** bug-libtool@gnu.org
  6240. _LT_EOF
  6241. fi ;;
  6242. esac
  6243. fi
  6244. break
  6245. fi
  6246. done
  6247. IFS="$lt_save_ifs"
  6248. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6249. ;;
  6250. esac
  6251. fi
  6252. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6253. if test -n "$MAGIC_CMD"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6255. $as_echo "$MAGIC_CMD" >&6; }
  6256. else
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6258. $as_echo "no" >&6; }
  6259. fi
  6260. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6261. if test -n "$ac_tool_prefix"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6263. $as_echo_n "checking for file... " >&6; }
  6264. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. case $MAGIC_CMD in
  6268. [\\/*] | ?:[\\/]*)
  6269. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6270. ;;
  6271. *)
  6272. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6273. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6274. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6275. for ac_dir in $ac_dummy; do
  6276. IFS="$lt_save_ifs"
  6277. test -z "$ac_dir" && ac_dir=.
  6278. if test -f $ac_dir/file; then
  6279. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6280. if test -n "$file_magic_test_file"; then
  6281. case $deplibs_check_method in
  6282. "file_magic "*)
  6283. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6284. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6285. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6286. $EGREP "$file_magic_regex" > /dev/null; then
  6287. :
  6288. else
  6289. cat <<_LT_EOF 1>&2
  6290. *** Warning: the command libtool uses to detect shared libraries,
  6291. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6292. *** The result is that libtool may fail to recognize shared libraries
  6293. *** as such. This will affect the creation of libtool libraries that
  6294. *** depend on shared libraries, but programs linked with such libtool
  6295. *** libraries will work regardless of this problem. Nevertheless, you
  6296. *** may want to report the problem to your system manager and/or to
  6297. *** bug-libtool@gnu.org
  6298. _LT_EOF
  6299. fi ;;
  6300. esac
  6301. fi
  6302. break
  6303. fi
  6304. done
  6305. IFS="$lt_save_ifs"
  6306. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6307. ;;
  6308. esac
  6309. fi
  6310. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6311. if test -n "$MAGIC_CMD"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6313. $as_echo "$MAGIC_CMD" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. else
  6319. MAGIC_CMD=:
  6320. fi
  6321. fi
  6322. fi
  6323. ;;
  6324. esac
  6325. # Use C for the default configuration in the libtool script
  6326. lt_save_CC="$CC"
  6327. ac_ext=c
  6328. ac_cpp='$CPP $CPPFLAGS'
  6329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6332. # Source file extension for C test sources.
  6333. ac_ext=c
  6334. # Object file extension for compiled C test sources.
  6335. objext=o
  6336. objext=$objext
  6337. # Code to be used in simple compile tests
  6338. lt_simple_compile_test_code="int some_variable = 0;"
  6339. # Code to be used in simple link tests
  6340. lt_simple_link_test_code='int main(){return(0);}'
  6341. # If no C compiler was specified, use CC.
  6342. LTCC=${LTCC-"$CC"}
  6343. # If no C compiler flags were specified, use CFLAGS.
  6344. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6345. # Allow CC to be a program name with arguments.
  6346. compiler=$CC
  6347. # Save the default compiler, since it gets overwritten when the other
  6348. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6349. compiler_DEFAULT=$CC
  6350. # save warnings/boilerplate of simple test code
  6351. ac_outfile=conftest.$ac_objext
  6352. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6353. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6354. _lt_compiler_boilerplate=`cat conftest.err`
  6355. $RM conftest*
  6356. ac_outfile=conftest.$ac_objext
  6357. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6358. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6359. _lt_linker_boilerplate=`cat conftest.err`
  6360. $RM -r conftest*
  6361. ## CAVEAT EMPTOR:
  6362. ## There is no encapsulation within the following macros, do not change
  6363. ## the running order or otherwise move them around unless you know exactly
  6364. ## what you are doing...
  6365. if test -n "$compiler"; then
  6366. lt_prog_compiler_no_builtin_flag=
  6367. if test "$GCC" = yes; then
  6368. case $cc_basename in
  6369. nvcc*)
  6370. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6371. *)
  6372. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6373. esac
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6375. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6376. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. lt_cv_prog_compiler_rtti_exceptions=no
  6380. ac_outfile=conftest.$ac_objext
  6381. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6382. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6383. # Insert the option either (1) after the last *FLAGS variable, or
  6384. # (2) before a word containing "conftest.", or (3) at the end.
  6385. # Note that $ac_compile itself does not contain backslashes and begins
  6386. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6387. # The option is referenced via a variable to avoid confusing sed.
  6388. lt_compile=`echo "$ac_compile" | $SED \
  6389. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6390. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6391. -e 's:$: $lt_compiler_flag:'`
  6392. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6393. (eval "$lt_compile" 2>conftest.err)
  6394. ac_status=$?
  6395. cat conftest.err >&5
  6396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6397. if (exit $ac_status) && test -s "$ac_outfile"; then
  6398. # The compiler can only warn and ignore the option if not recognized
  6399. # So say no if there are warnings other than the usual output.
  6400. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6401. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6402. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6403. lt_cv_prog_compiler_rtti_exceptions=yes
  6404. fi
  6405. fi
  6406. $RM conftest*
  6407. fi
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6409. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6410. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6411. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6412. else
  6413. :
  6414. fi
  6415. fi
  6416. lt_prog_compiler_wl=
  6417. lt_prog_compiler_pic=
  6418. lt_prog_compiler_static=
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6420. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6421. if test "$GCC" = yes; then
  6422. lt_prog_compiler_wl='-Wl,'
  6423. lt_prog_compiler_static='-static'
  6424. case $host_os in
  6425. aix*)
  6426. # All AIX code is PIC.
  6427. if test "$host_cpu" = ia64; then
  6428. # AIX 5 now supports IA64 processor
  6429. lt_prog_compiler_static='-Bstatic'
  6430. fi
  6431. lt_prog_compiler_pic='-fPIC'
  6432. ;;
  6433. amigaos*)
  6434. case $host_cpu in
  6435. powerpc)
  6436. # see comment about AmigaOS4 .so support
  6437. lt_prog_compiler_pic='-fPIC'
  6438. ;;
  6439. m68k)
  6440. # FIXME: we need at least 68020 code to build shared libraries, but
  6441. # adding the `-m68020' flag to GCC prevents building anything better,
  6442. # like `-m68040'.
  6443. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6444. ;;
  6445. esac
  6446. ;;
  6447. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6448. # PIC is the default for these OSes.
  6449. ;;
  6450. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6451. # This hack is so that the source file can tell whether it is being
  6452. # built for inclusion in a dll (and should export symbols for example).
  6453. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6454. # (--disable-auto-import) libraries
  6455. lt_prog_compiler_pic='-DDLL_EXPORT'
  6456. ;;
  6457. darwin* | rhapsody*)
  6458. # PIC is the default on this platform
  6459. # Common symbols not allowed in MH_DYLIB files
  6460. lt_prog_compiler_pic='-fno-common'
  6461. ;;
  6462. haiku*)
  6463. # PIC is the default for Haiku.
  6464. # The "-static" flag exists, but is broken.
  6465. lt_prog_compiler_static=
  6466. ;;
  6467. hpux*)
  6468. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6469. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6470. # sets the default TLS model and affects inlining.
  6471. case $host_cpu in
  6472. hppa*64*)
  6473. # +Z the default
  6474. ;;
  6475. *)
  6476. lt_prog_compiler_pic='-fPIC'
  6477. ;;
  6478. esac
  6479. ;;
  6480. interix[3-9]*)
  6481. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6482. # Instead, we relocate shared libraries at runtime.
  6483. ;;
  6484. msdosdjgpp*)
  6485. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6486. # on systems that don't support them.
  6487. lt_prog_compiler_can_build_shared=no
  6488. enable_shared=no
  6489. ;;
  6490. *nto* | *qnx*)
  6491. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6492. # it will coredump.
  6493. lt_prog_compiler_pic='-fPIC -shared'
  6494. ;;
  6495. sysv4*MP*)
  6496. if test -d /usr/nec; then
  6497. lt_prog_compiler_pic=-Kconform_pic
  6498. fi
  6499. ;;
  6500. *)
  6501. lt_prog_compiler_pic='-fPIC'
  6502. ;;
  6503. esac
  6504. case $cc_basename in
  6505. nvcc*) # Cuda Compiler Driver 2.2
  6506. lt_prog_compiler_wl='-Xlinker '
  6507. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6508. ;;
  6509. esac
  6510. else
  6511. # PORTME Check for flag to pass linker flags through the system compiler.
  6512. case $host_os in
  6513. aix*)
  6514. lt_prog_compiler_wl='-Wl,'
  6515. if test "$host_cpu" = ia64; then
  6516. # AIX 5 now supports IA64 processor
  6517. lt_prog_compiler_static='-Bstatic'
  6518. else
  6519. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6520. fi
  6521. ;;
  6522. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6523. # This hack is so that the source file can tell whether it is being
  6524. # built for inclusion in a dll (and should export symbols for example).
  6525. lt_prog_compiler_pic='-DDLL_EXPORT'
  6526. ;;
  6527. hpux9* | hpux10* | hpux11*)
  6528. lt_prog_compiler_wl='-Wl,'
  6529. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6530. # not for PA HP-UX.
  6531. case $host_cpu in
  6532. hppa*64*|ia64*)
  6533. # +Z the default
  6534. ;;
  6535. *)
  6536. lt_prog_compiler_pic='+Z'
  6537. ;;
  6538. esac
  6539. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6540. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6541. ;;
  6542. irix5* | irix6* | nonstopux*)
  6543. lt_prog_compiler_wl='-Wl,'
  6544. # PIC (with -KPIC) is the default.
  6545. lt_prog_compiler_static='-non_shared'
  6546. ;;
  6547. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6548. case $cc_basename in
  6549. # old Intel for x86_64 which still supported -KPIC.
  6550. ecc*)
  6551. lt_prog_compiler_wl='-Wl,'
  6552. lt_prog_compiler_pic='-KPIC'
  6553. lt_prog_compiler_static='-static'
  6554. ;;
  6555. # icc used to be incompatible with GCC.
  6556. # ICC 10 doesn't accept -KPIC any more.
  6557. icc* | ifort*)
  6558. lt_prog_compiler_wl='-Wl,'
  6559. lt_prog_compiler_pic='-fPIC'
  6560. lt_prog_compiler_static='-static'
  6561. ;;
  6562. # Lahey Fortran 8.1.
  6563. lf95*)
  6564. lt_prog_compiler_wl='-Wl,'
  6565. lt_prog_compiler_pic='--shared'
  6566. lt_prog_compiler_static='--static'
  6567. ;;
  6568. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6569. # Portland Group compilers (*not* the Pentium gcc compiler,
  6570. # which looks to be a dead project)
  6571. lt_prog_compiler_wl='-Wl,'
  6572. lt_prog_compiler_pic='-fpic'
  6573. lt_prog_compiler_static='-Bstatic'
  6574. ;;
  6575. ccc*)
  6576. lt_prog_compiler_wl='-Wl,'
  6577. # All Alpha code is PIC.
  6578. lt_prog_compiler_static='-non_shared'
  6579. ;;
  6580. xl* | bgxl* | bgf* | mpixl*)
  6581. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6582. lt_prog_compiler_wl='-Wl,'
  6583. lt_prog_compiler_pic='-qpic'
  6584. lt_prog_compiler_static='-qstaticlink'
  6585. ;;
  6586. *)
  6587. case `$CC -V 2>&1 | sed 5q` in
  6588. *Sun\ F* | *Sun*Fortran*)
  6589. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6590. lt_prog_compiler_pic='-KPIC'
  6591. lt_prog_compiler_static='-Bstatic'
  6592. lt_prog_compiler_wl=''
  6593. ;;
  6594. *Sun\ C*)
  6595. # Sun C 5.9
  6596. lt_prog_compiler_pic='-KPIC'
  6597. lt_prog_compiler_static='-Bstatic'
  6598. lt_prog_compiler_wl='-Wl,'
  6599. ;;
  6600. esac
  6601. ;;
  6602. esac
  6603. ;;
  6604. newsos6)
  6605. lt_prog_compiler_pic='-KPIC'
  6606. lt_prog_compiler_static='-Bstatic'
  6607. ;;
  6608. *nto* | *qnx*)
  6609. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6610. # it will coredump.
  6611. lt_prog_compiler_pic='-fPIC -shared'
  6612. ;;
  6613. osf3* | osf4* | osf5*)
  6614. lt_prog_compiler_wl='-Wl,'
  6615. # All OSF/1 code is PIC.
  6616. lt_prog_compiler_static='-non_shared'
  6617. ;;
  6618. rdos*)
  6619. lt_prog_compiler_static='-non_shared'
  6620. ;;
  6621. solaris*)
  6622. lt_prog_compiler_pic='-KPIC'
  6623. lt_prog_compiler_static='-Bstatic'
  6624. case $cc_basename in
  6625. f77* | f90* | f95*)
  6626. lt_prog_compiler_wl='-Qoption ld ';;
  6627. *)
  6628. lt_prog_compiler_wl='-Wl,';;
  6629. esac
  6630. ;;
  6631. sunos4*)
  6632. lt_prog_compiler_wl='-Qoption ld '
  6633. lt_prog_compiler_pic='-PIC'
  6634. lt_prog_compiler_static='-Bstatic'
  6635. ;;
  6636. sysv4 | sysv4.2uw2* | sysv4.3*)
  6637. lt_prog_compiler_wl='-Wl,'
  6638. lt_prog_compiler_pic='-KPIC'
  6639. lt_prog_compiler_static='-Bstatic'
  6640. ;;
  6641. sysv4*MP*)
  6642. if test -d /usr/nec ;then
  6643. lt_prog_compiler_pic='-Kconform_pic'
  6644. lt_prog_compiler_static='-Bstatic'
  6645. fi
  6646. ;;
  6647. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6648. lt_prog_compiler_wl='-Wl,'
  6649. lt_prog_compiler_pic='-KPIC'
  6650. lt_prog_compiler_static='-Bstatic'
  6651. ;;
  6652. unicos*)
  6653. lt_prog_compiler_wl='-Wl,'
  6654. lt_prog_compiler_can_build_shared=no
  6655. ;;
  6656. uts4*)
  6657. lt_prog_compiler_pic='-pic'
  6658. lt_prog_compiler_static='-Bstatic'
  6659. ;;
  6660. *)
  6661. lt_prog_compiler_can_build_shared=no
  6662. ;;
  6663. esac
  6664. fi
  6665. case $host_os in
  6666. # For platforms which do not support PIC, -DPIC is meaningless:
  6667. *djgpp*)
  6668. lt_prog_compiler_pic=
  6669. ;;
  6670. *)
  6671. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6672. ;;
  6673. esac
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6675. $as_echo "$lt_prog_compiler_pic" >&6; }
  6676. #
  6677. # Check to make sure the PIC flag actually works.
  6678. #
  6679. if test -n "$lt_prog_compiler_pic"; then
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6681. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6682. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6683. $as_echo_n "(cached) " >&6
  6684. else
  6685. lt_cv_prog_compiler_pic_works=no
  6686. ac_outfile=conftest.$ac_objext
  6687. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6688. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6689. # Insert the option either (1) after the last *FLAGS variable, or
  6690. # (2) before a word containing "conftest.", or (3) at the end.
  6691. # Note that $ac_compile itself does not contain backslashes and begins
  6692. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6693. # The option is referenced via a variable to avoid confusing sed.
  6694. lt_compile=`echo "$ac_compile" | $SED \
  6695. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6696. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6697. -e 's:$: $lt_compiler_flag:'`
  6698. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6699. (eval "$lt_compile" 2>conftest.err)
  6700. ac_status=$?
  6701. cat conftest.err >&5
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. if (exit $ac_status) && test -s "$ac_outfile"; then
  6704. # The compiler can only warn and ignore the option if not recognized
  6705. # So say no if there are warnings other than the usual output.
  6706. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6707. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6708. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6709. lt_cv_prog_compiler_pic_works=yes
  6710. fi
  6711. fi
  6712. $RM conftest*
  6713. fi
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6715. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6716. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6717. case $lt_prog_compiler_pic in
  6718. "" | " "*) ;;
  6719. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6720. esac
  6721. else
  6722. lt_prog_compiler_pic=
  6723. lt_prog_compiler_can_build_shared=no
  6724. fi
  6725. fi
  6726. #
  6727. # Check to make sure the static flag actually works.
  6728. #
  6729. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6731. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6732. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. lt_cv_prog_compiler_static_works=no
  6736. save_LDFLAGS="$LDFLAGS"
  6737. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6738. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6739. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6740. # The linker can only warn and ignore the option if not recognized
  6741. # So say no if there are warnings
  6742. if test -s conftest.err; then
  6743. # Append any errors to the config.log.
  6744. cat conftest.err 1>&5
  6745. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6746. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6747. if diff conftest.exp conftest.er2 >/dev/null; then
  6748. lt_cv_prog_compiler_static_works=yes
  6749. fi
  6750. else
  6751. lt_cv_prog_compiler_static_works=yes
  6752. fi
  6753. fi
  6754. $RM -r conftest*
  6755. LDFLAGS="$save_LDFLAGS"
  6756. fi
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6758. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6759. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6760. :
  6761. else
  6762. lt_prog_compiler_static=
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6765. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6766. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6767. $as_echo_n "(cached) " >&6
  6768. else
  6769. lt_cv_prog_compiler_c_o=no
  6770. $RM -r conftest 2>/dev/null
  6771. mkdir conftest
  6772. cd conftest
  6773. mkdir out
  6774. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6775. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6776. # Insert the option either (1) after the last *FLAGS variable, or
  6777. # (2) before a word containing "conftest.", or (3) at the end.
  6778. # Note that $ac_compile itself does not contain backslashes and begins
  6779. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6780. lt_compile=`echo "$ac_compile" | $SED \
  6781. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6782. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6783. -e 's:$: $lt_compiler_flag:'`
  6784. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6785. (eval "$lt_compile" 2>out/conftest.err)
  6786. ac_status=$?
  6787. cat out/conftest.err >&5
  6788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6789. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6790. then
  6791. # The compiler can only warn and ignore the option if not recognized
  6792. # So say no if there are warnings
  6793. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6794. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6795. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6796. lt_cv_prog_compiler_c_o=yes
  6797. fi
  6798. fi
  6799. chmod u+w . 2>&5
  6800. $RM conftest*
  6801. # SGI C++ compiler will create directory out/ii_files/ for
  6802. # template instantiation
  6803. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6804. $RM out/* && rmdir out
  6805. cd ..
  6806. $RM -r conftest
  6807. $RM conftest*
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6810. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6812. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6813. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. lt_cv_prog_compiler_c_o=no
  6817. $RM -r conftest 2>/dev/null
  6818. mkdir conftest
  6819. cd conftest
  6820. mkdir out
  6821. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6822. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6823. # Insert the option either (1) after the last *FLAGS variable, or
  6824. # (2) before a word containing "conftest.", or (3) at the end.
  6825. # Note that $ac_compile itself does not contain backslashes and begins
  6826. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6827. lt_compile=`echo "$ac_compile" | $SED \
  6828. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6829. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6830. -e 's:$: $lt_compiler_flag:'`
  6831. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6832. (eval "$lt_compile" 2>out/conftest.err)
  6833. ac_status=$?
  6834. cat out/conftest.err >&5
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6837. then
  6838. # The compiler can only warn and ignore the option if not recognized
  6839. # So say no if there are warnings
  6840. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  6841. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6842. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6843. lt_cv_prog_compiler_c_o=yes
  6844. fi
  6845. fi
  6846. chmod u+w . 2>&5
  6847. $RM conftest*
  6848. # SGI C++ compiler will create directory out/ii_files/ for
  6849. # template instantiation
  6850. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6851. $RM out/* && rmdir out
  6852. cd ..
  6853. $RM -r conftest
  6854. $RM conftest*
  6855. fi
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6857. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6858. hard_links="nottested"
  6859. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6860. # do not overwrite the value of need_locks provided by the user
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6862. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6863. hard_links=yes
  6864. $RM conftest*
  6865. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6866. touch conftest.a
  6867. ln conftest.a conftest.b 2>&5 || hard_links=no
  6868. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6870. $as_echo "$hard_links" >&6; }
  6871. if test "$hard_links" = no; then
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6873. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6874. need_locks=warn
  6875. fi
  6876. else
  6877. need_locks=no
  6878. fi
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6880. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6881. runpath_var=
  6882. allow_undefined_flag=
  6883. always_export_symbols=no
  6884. archive_cmds=
  6885. archive_expsym_cmds=
  6886. compiler_needs_object=no
  6887. enable_shared_with_static_runtimes=no
  6888. export_dynamic_flag_spec=
  6889. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6890. hardcode_automatic=no
  6891. hardcode_direct=no
  6892. hardcode_direct_absolute=no
  6893. hardcode_libdir_flag_spec=
  6894. hardcode_libdir_flag_spec_ld=
  6895. hardcode_libdir_separator=
  6896. hardcode_minus_L=no
  6897. hardcode_shlibpath_var=unsupported
  6898. inherit_rpath=no
  6899. link_all_deplibs=unknown
  6900. module_cmds=
  6901. module_expsym_cmds=
  6902. old_archive_from_new_cmds=
  6903. old_archive_from_expsyms_cmds=
  6904. thread_safe_flag_spec=
  6905. whole_archive_flag_spec=
  6906. # include_expsyms should be a list of space-separated symbols to be *always*
  6907. # included in the symbol list
  6908. include_expsyms=
  6909. # exclude_expsyms can be an extended regexp of symbols to exclude
  6910. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6911. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6912. # as well as any symbol that contains `d'.
  6913. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6914. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6915. # platforms (ab)use it in PIC code, but their linkers get confused if
  6916. # the symbol is explicitly referenced. Since portable code cannot
  6917. # rely on this symbol name, it's probably fine to never include it in
  6918. # preloaded symbol tables.
  6919. # Exclude shared library initialization/finalization symbols.
  6920. extract_expsyms_cmds=
  6921. case $host_os in
  6922. cygwin* | mingw* | pw32* | cegcc*)
  6923. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6924. # When not using gcc, we currently assume that we are using
  6925. # Microsoft Visual C++.
  6926. if test "$GCC" != yes; then
  6927. with_gnu_ld=no
  6928. fi
  6929. ;;
  6930. interix*)
  6931. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6932. with_gnu_ld=yes
  6933. ;;
  6934. openbsd*)
  6935. with_gnu_ld=no
  6936. ;;
  6937. esac
  6938. ld_shlibs=yes
  6939. # On some targets, GNU ld is compatible enough with the native linker
  6940. # that we're better off using the native interface for both.
  6941. lt_use_gnu_ld_interface=no
  6942. if test "$with_gnu_ld" = yes; then
  6943. case $host_os in
  6944. aix*)
  6945. # The AIX port of GNU ld has always aspired to compatibility
  6946. # with the native linker. However, as the warning in the GNU ld
  6947. # block says, versions before 2.19.5* couldn't really create working
  6948. # shared libraries, regardless of the interface used.
  6949. case `$LD -v 2>&1` in
  6950. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  6951. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  6952. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  6953. *)
  6954. lt_use_gnu_ld_interface=yes
  6955. ;;
  6956. esac
  6957. ;;
  6958. *)
  6959. lt_use_gnu_ld_interface=yes
  6960. ;;
  6961. esac
  6962. fi
  6963. if test "$lt_use_gnu_ld_interface" = yes; then
  6964. # If archive_cmds runs LD, not CC, wlarc should be empty
  6965. wlarc='${wl}'
  6966. # Set some defaults for GNU ld with shared library support. These
  6967. # are reset later if shared libraries are not supported. Putting them
  6968. # here allows them to be overridden if necessary.
  6969. runpath_var=LD_RUN_PATH
  6970. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6971. export_dynamic_flag_spec='${wl}--export-dynamic'
  6972. # ancient GNU ld didn't support --whole-archive et. al.
  6973. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6974. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6975. else
  6976. whole_archive_flag_spec=
  6977. fi
  6978. supports_anon_versioning=no
  6979. case `$LD -v 2>&1` in
  6980. *GNU\ gold*) supports_anon_versioning=yes ;;
  6981. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6982. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6983. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6984. *\ 2.11.*) ;; # other 2.11 versions
  6985. *) supports_anon_versioning=yes ;;
  6986. esac
  6987. # See if GNU ld supports shared libraries.
  6988. case $host_os in
  6989. aix[3-9]*)
  6990. # On AIX/PPC, the GNU linker is very broken
  6991. if test "$host_cpu" != ia64; then
  6992. ld_shlibs=no
  6993. cat <<_LT_EOF 1>&2
  6994. *** Warning: the GNU linker, at least up to release 2.19, is reported
  6995. *** to be unable to reliably create shared libraries on AIX.
  6996. *** Therefore, libtool is disabling shared libraries support. If you
  6997. *** really care for shared libraries, you may want to install binutils
  6998. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  6999. *** You will then need to restart the configuration process.
  7000. _LT_EOF
  7001. fi
  7002. ;;
  7003. amigaos*)
  7004. case $host_cpu in
  7005. powerpc)
  7006. # see comment about AmigaOS4 .so support
  7007. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7008. archive_expsym_cmds=''
  7009. ;;
  7010. m68k)
  7011. 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)'
  7012. hardcode_libdir_flag_spec='-L$libdir'
  7013. hardcode_minus_L=yes
  7014. ;;
  7015. esac
  7016. ;;
  7017. beos*)
  7018. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7019. allow_undefined_flag=unsupported
  7020. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7021. # support --undefined. This deserves some investigation. FIXME
  7022. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7023. else
  7024. ld_shlibs=no
  7025. fi
  7026. ;;
  7027. cygwin* | mingw* | pw32* | cegcc*)
  7028. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7029. # as there is no search path for DLLs.
  7030. hardcode_libdir_flag_spec='-L$libdir'
  7031. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7032. allow_undefined_flag=unsupported
  7033. always_export_symbols=no
  7034. enable_shared_with_static_runtimes=yes
  7035. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7036. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7037. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7038. # If the export-symbols file already is a .def file (1st line
  7039. # is EXPORTS), use it as is; otherwise, prepend...
  7040. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7041. cp $export_symbols $output_objdir/$soname.def;
  7042. else
  7043. echo EXPORTS > $output_objdir/$soname.def;
  7044. cat $export_symbols >> $output_objdir/$soname.def;
  7045. fi~
  7046. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7047. else
  7048. ld_shlibs=no
  7049. fi
  7050. ;;
  7051. haiku*)
  7052. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7053. link_all_deplibs=yes
  7054. ;;
  7055. interix[3-9]*)
  7056. hardcode_direct=no
  7057. hardcode_shlibpath_var=no
  7058. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7059. export_dynamic_flag_spec='${wl}-E'
  7060. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7061. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7062. # default) and relocated if they conflict, which is a slow very memory
  7063. # consuming and fragmenting process. To avoid this, we pick a random,
  7064. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7065. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7066. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7067. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7068. ;;
  7069. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7070. tmp_diet=no
  7071. if test "$host_os" = linux-dietlibc; then
  7072. case $cc_basename in
  7073. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7074. esac
  7075. fi
  7076. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7077. && test "$tmp_diet" = no
  7078. then
  7079. tmp_addflag=' $pic_flag'
  7080. tmp_sharedflag='-shared'
  7081. case $cc_basename,$host_cpu in
  7082. pgcc*) # Portland Group C compiler
  7083. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7084. tmp_addflag=' $pic_flag'
  7085. ;;
  7086. pgf77* | pgf90* | pgf95* | pgfortran*)
  7087. # Portland Group f77 and f90 compilers
  7088. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7089. tmp_addflag=' $pic_flag -Mnomain' ;;
  7090. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7091. tmp_addflag=' -i_dynamic' ;;
  7092. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7093. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7094. ifc* | ifort*) # Intel Fortran compiler
  7095. tmp_addflag=' -nofor_main' ;;
  7096. lf95*) # Lahey Fortran 8.1
  7097. whole_archive_flag_spec=
  7098. tmp_sharedflag='--shared' ;;
  7099. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7100. tmp_sharedflag='-qmkshrobj'
  7101. tmp_addflag= ;;
  7102. nvcc*) # Cuda Compiler Driver 2.2
  7103. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7104. compiler_needs_object=yes
  7105. ;;
  7106. esac
  7107. case `$CC -V 2>&1 | sed 5q` in
  7108. *Sun\ C*) # Sun C 5.9
  7109. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7110. compiler_needs_object=yes
  7111. tmp_sharedflag='-G' ;;
  7112. *Sun\ F*) # Sun Fortran 8.3
  7113. tmp_sharedflag='-G' ;;
  7114. esac
  7115. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7116. if test "x$supports_anon_versioning" = xyes; then
  7117. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7118. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7119. echo "local: *; };" >> $output_objdir/$libname.ver~
  7120. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7121. fi
  7122. case $cc_basename in
  7123. xlf* | bgf* | bgxlf* | mpixlf*)
  7124. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7125. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7126. hardcode_libdir_flag_spec=
  7127. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7128. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7129. if test "x$supports_anon_versioning" = xyes; then
  7130. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7131. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7132. echo "local: *; };" >> $output_objdir/$libname.ver~
  7133. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7134. fi
  7135. ;;
  7136. esac
  7137. else
  7138. ld_shlibs=no
  7139. fi
  7140. ;;
  7141. netbsd*)
  7142. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7143. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7144. wlarc=
  7145. else
  7146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7147. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7148. fi
  7149. ;;
  7150. solaris*)
  7151. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7152. ld_shlibs=no
  7153. cat <<_LT_EOF 1>&2
  7154. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7155. *** create shared libraries on Solaris systems. Therefore, libtool
  7156. *** is disabling shared libraries support. We urge you to upgrade GNU
  7157. *** binutils to release 2.9.1 or newer. Another option is to modify
  7158. *** your PATH or compiler configuration so that the native linker is
  7159. *** used, and then restart.
  7160. _LT_EOF
  7161. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7163. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7164. else
  7165. ld_shlibs=no
  7166. fi
  7167. ;;
  7168. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7169. case `$LD -v 2>&1` in
  7170. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7171. ld_shlibs=no
  7172. cat <<_LT_EOF 1>&2
  7173. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7174. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7175. *** is disabling shared libraries support. We urge you to upgrade GNU
  7176. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7177. *** your PATH or compiler configuration so that the native linker is
  7178. *** used, and then restart.
  7179. _LT_EOF
  7180. ;;
  7181. *)
  7182. # For security reasons, it is highly recommended that you always
  7183. # use absolute paths for naming shared libraries, and exclude the
  7184. # DT_RUNPATH tag from executables and libraries. But doing so
  7185. # requires that you compile everything twice, which is a pain.
  7186. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7187. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7188. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7189. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7190. else
  7191. ld_shlibs=no
  7192. fi
  7193. ;;
  7194. esac
  7195. ;;
  7196. sunos4*)
  7197. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7198. wlarc=
  7199. hardcode_direct=yes
  7200. hardcode_shlibpath_var=no
  7201. ;;
  7202. *)
  7203. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7205. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7206. else
  7207. ld_shlibs=no
  7208. fi
  7209. ;;
  7210. esac
  7211. if test "$ld_shlibs" = no; then
  7212. runpath_var=
  7213. hardcode_libdir_flag_spec=
  7214. export_dynamic_flag_spec=
  7215. whole_archive_flag_spec=
  7216. fi
  7217. else
  7218. # PORTME fill in a description of your system's linker (not GNU ld)
  7219. case $host_os in
  7220. aix3*)
  7221. allow_undefined_flag=unsupported
  7222. always_export_symbols=yes
  7223. 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'
  7224. # Note: this linker hardcodes the directories in LIBPATH if there
  7225. # are no directories specified by -L.
  7226. hardcode_minus_L=yes
  7227. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7228. # Neither direct hardcoding nor static linking is supported with a
  7229. # broken collect2.
  7230. hardcode_direct=unsupported
  7231. fi
  7232. ;;
  7233. aix[4-9]*)
  7234. if test "$host_cpu" = ia64; then
  7235. # On IA64, the linker does run time linking by default, so we don't
  7236. # have to do anything special.
  7237. aix_use_runtimelinking=no
  7238. exp_sym_flag='-Bexport'
  7239. no_entry_flag=""
  7240. else
  7241. # If we're using GNU nm, then we don't want the "-C" option.
  7242. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7243. # Also, AIX nm treats weak defined symbols like other global
  7244. # defined symbols, whereas GNU nm marks them as "W".
  7245. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7246. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7247. else
  7248. 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'
  7249. fi
  7250. aix_use_runtimelinking=no
  7251. # Test if we are trying to use run time linking or normal
  7252. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7253. # need to do runtime linking.
  7254. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7255. for ld_flag in $LDFLAGS; do
  7256. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7257. aix_use_runtimelinking=yes
  7258. break
  7259. fi
  7260. done
  7261. ;;
  7262. esac
  7263. exp_sym_flag='-bexport'
  7264. no_entry_flag='-bnoentry'
  7265. fi
  7266. # When large executables or shared objects are built, AIX ld can
  7267. # have problems creating the table of contents. If linking a library
  7268. # or program results in "error TOC overflow" add -mminimal-toc to
  7269. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7270. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7271. archive_cmds=''
  7272. hardcode_direct=yes
  7273. hardcode_direct_absolute=yes
  7274. hardcode_libdir_separator=':'
  7275. link_all_deplibs=yes
  7276. file_list_spec='${wl}-f,'
  7277. if test "$GCC" = yes; then
  7278. case $host_os in aix4.[012]|aix4.[012].*)
  7279. # We only want to do this on AIX 4.2 and lower, the check
  7280. # below for broken collect2 doesn't work under 4.3+
  7281. collect2name=`${CC} -print-prog-name=collect2`
  7282. if test -f "$collect2name" &&
  7283. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7284. then
  7285. # We have reworked collect2
  7286. :
  7287. else
  7288. # We have old collect2
  7289. hardcode_direct=unsupported
  7290. # It fails to find uninstalled libraries when the uninstalled
  7291. # path is not listed in the libpath. Setting hardcode_minus_L
  7292. # to unsupported forces relinking
  7293. hardcode_minus_L=yes
  7294. hardcode_libdir_flag_spec='-L$libdir'
  7295. hardcode_libdir_separator=
  7296. fi
  7297. ;;
  7298. esac
  7299. shared_flag='-shared'
  7300. if test "$aix_use_runtimelinking" = yes; then
  7301. shared_flag="$shared_flag "'${wl}-G'
  7302. fi
  7303. else
  7304. # not using gcc
  7305. if test "$host_cpu" = ia64; then
  7306. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7307. # chokes on -Wl,-G. The following line is correct:
  7308. shared_flag='-G'
  7309. else
  7310. if test "$aix_use_runtimelinking" = yes; then
  7311. shared_flag='${wl}-G'
  7312. else
  7313. shared_flag='${wl}-bM:SRE'
  7314. fi
  7315. fi
  7316. fi
  7317. export_dynamic_flag_spec='${wl}-bexpall'
  7318. # It seems that -bexpall does not export symbols beginning with
  7319. # underscore (_), so it is better to generate a list of symbols to export.
  7320. always_export_symbols=yes
  7321. if test "$aix_use_runtimelinking" = yes; then
  7322. # Warning - without using the other runtime loading flags (-brtl),
  7323. # -berok will link without error, but may produce a broken library.
  7324. allow_undefined_flag='-berok'
  7325. # Determine the default libpath from the value encoded in an
  7326. # empty executable.
  7327. if test x$gcc_no_link = xyes; then
  7328. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7329. fi
  7330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7331. /* end confdefs.h. */
  7332. int
  7333. main ()
  7334. {
  7335. ;
  7336. return 0;
  7337. }
  7338. _ACEOF
  7339. if ac_fn_c_try_link "$LINENO"; then :
  7340. lt_aix_libpath_sed='
  7341. /Import File Strings/,/^$/ {
  7342. /^0/ {
  7343. s/^0 *\(.*\)$/\1/
  7344. p
  7345. }
  7346. }'
  7347. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7348. # Check for a 64-bit object if we didn't find anything.
  7349. if test -z "$aix_libpath"; then
  7350. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7351. fi
  7352. fi
  7353. rm -f core conftest.err conftest.$ac_objext \
  7354. conftest$ac_exeext conftest.$ac_ext
  7355. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7356. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7357. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7358. else
  7359. if test "$host_cpu" = ia64; then
  7360. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7361. allow_undefined_flag="-z nodefs"
  7362. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7363. else
  7364. # Determine the default libpath from the value encoded in an
  7365. # empty executable.
  7366. if test x$gcc_no_link = xyes; then
  7367. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7368. fi
  7369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7370. /* end confdefs.h. */
  7371. int
  7372. main ()
  7373. {
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_c_try_link "$LINENO"; then :
  7379. lt_aix_libpath_sed='
  7380. /Import File Strings/,/^$/ {
  7381. /^0/ {
  7382. s/^0 *\(.*\)$/\1/
  7383. p
  7384. }
  7385. }'
  7386. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7387. # Check for a 64-bit object if we didn't find anything.
  7388. if test -z "$aix_libpath"; then
  7389. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7390. fi
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext \
  7393. conftest$ac_exeext conftest.$ac_ext
  7394. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7395. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7396. # Warning - without using the other run time loading flags,
  7397. # -berok will link without error, but may produce a broken library.
  7398. no_undefined_flag=' ${wl}-bernotok'
  7399. allow_undefined_flag=' ${wl}-berok'
  7400. if test "$with_gnu_ld" = yes; then
  7401. # We only use this code for GNU lds that support --whole-archive.
  7402. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7403. else
  7404. # Exported symbols can be pulled into shared objects from archives
  7405. whole_archive_flag_spec='$convenience'
  7406. fi
  7407. archive_cmds_need_lc=yes
  7408. # This is similar to how AIX traditionally builds its shared libraries.
  7409. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7410. fi
  7411. fi
  7412. ;;
  7413. amigaos*)
  7414. case $host_cpu in
  7415. powerpc)
  7416. # see comment about AmigaOS4 .so support
  7417. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7418. archive_expsym_cmds=''
  7419. ;;
  7420. m68k)
  7421. 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)'
  7422. hardcode_libdir_flag_spec='-L$libdir'
  7423. hardcode_minus_L=yes
  7424. ;;
  7425. esac
  7426. ;;
  7427. bsdi[45]*)
  7428. export_dynamic_flag_spec=-rdynamic
  7429. ;;
  7430. cygwin* | mingw* | pw32* | cegcc*)
  7431. # When not using gcc, we currently assume that we are using
  7432. # Microsoft Visual C++.
  7433. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7434. # no search path for DLLs.
  7435. hardcode_libdir_flag_spec=' '
  7436. allow_undefined_flag=unsupported
  7437. # Tell ltmain to make .lib files, not .a files.
  7438. libext=lib
  7439. # Tell ltmain to make .dll files, not .so files.
  7440. shrext_cmds=".dll"
  7441. # FIXME: Setting linknames here is a bad hack.
  7442. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7443. # The linker will automatically build a .lib file if we build a DLL.
  7444. old_archive_from_new_cmds='true'
  7445. # FIXME: Should let the user specify the lib program.
  7446. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7447. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7448. enable_shared_with_static_runtimes=yes
  7449. ;;
  7450. darwin* | rhapsody*)
  7451. archive_cmds_need_lc=no
  7452. hardcode_direct=no
  7453. hardcode_automatic=yes
  7454. hardcode_shlibpath_var=unsupported
  7455. if test "$lt_cv_ld_force_load" = "yes"; then
  7456. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7457. else
  7458. whole_archive_flag_spec=''
  7459. fi
  7460. link_all_deplibs=yes
  7461. allow_undefined_flag="$_lt_dar_allow_undefined"
  7462. case $cc_basename in
  7463. ifort*) _lt_dar_can_shared=yes ;;
  7464. *) _lt_dar_can_shared=$GCC ;;
  7465. esac
  7466. if test "$_lt_dar_can_shared" = "yes"; then
  7467. output_verbose_link_cmd=func_echo_all
  7468. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7469. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7470. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7471. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7472. else
  7473. ld_shlibs=no
  7474. fi
  7475. ;;
  7476. dgux*)
  7477. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7478. hardcode_libdir_flag_spec='-L$libdir'
  7479. hardcode_shlibpath_var=no
  7480. ;;
  7481. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7482. # support. Future versions do this automatically, but an explicit c++rt0.o
  7483. # does not break anything, and helps significantly (at the cost of a little
  7484. # extra space).
  7485. freebsd2.2*)
  7486. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7487. hardcode_libdir_flag_spec='-R$libdir'
  7488. hardcode_direct=yes
  7489. hardcode_shlibpath_var=no
  7490. ;;
  7491. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7492. freebsd2.*)
  7493. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7494. hardcode_direct=yes
  7495. hardcode_minus_L=yes
  7496. hardcode_shlibpath_var=no
  7497. ;;
  7498. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7499. freebsd* | dragonfly*)
  7500. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7501. hardcode_libdir_flag_spec='-R$libdir'
  7502. hardcode_direct=yes
  7503. hardcode_shlibpath_var=no
  7504. ;;
  7505. hpux9*)
  7506. if test "$GCC" = yes; then
  7507. 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'
  7508. else
  7509. 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'
  7510. fi
  7511. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7512. hardcode_libdir_separator=:
  7513. hardcode_direct=yes
  7514. # hardcode_minus_L: Not really in the search PATH,
  7515. # but as the default location of the library.
  7516. hardcode_minus_L=yes
  7517. export_dynamic_flag_spec='${wl}-E'
  7518. ;;
  7519. hpux10*)
  7520. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7521. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7522. else
  7523. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7524. fi
  7525. if test "$with_gnu_ld" = no; then
  7526. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7527. hardcode_libdir_flag_spec_ld='+b $libdir'
  7528. hardcode_libdir_separator=:
  7529. hardcode_direct=yes
  7530. hardcode_direct_absolute=yes
  7531. export_dynamic_flag_spec='${wl}-E'
  7532. # hardcode_minus_L: Not really in the search PATH,
  7533. # but as the default location of the library.
  7534. hardcode_minus_L=yes
  7535. fi
  7536. ;;
  7537. hpux11*)
  7538. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7539. case $host_cpu in
  7540. hppa*64*)
  7541. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7542. ;;
  7543. ia64*)
  7544. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7545. ;;
  7546. *)
  7547. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7548. ;;
  7549. esac
  7550. else
  7551. case $host_cpu in
  7552. hppa*64*)
  7553. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7554. ;;
  7555. ia64*)
  7556. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7557. ;;
  7558. *)
  7559. # Older versions of the 11.00 compiler do not understand -b yet
  7560. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7562. $as_echo_n "checking if $CC understands -b... " >&6; }
  7563. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. lt_cv_prog_compiler__b=no
  7567. save_LDFLAGS="$LDFLAGS"
  7568. LDFLAGS="$LDFLAGS -b"
  7569. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7570. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7571. # The linker can only warn and ignore the option if not recognized
  7572. # So say no if there are warnings
  7573. if test -s conftest.err; then
  7574. # Append any errors to the config.log.
  7575. cat conftest.err 1>&5
  7576. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7577. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7578. if diff conftest.exp conftest.er2 >/dev/null; then
  7579. lt_cv_prog_compiler__b=yes
  7580. fi
  7581. else
  7582. lt_cv_prog_compiler__b=yes
  7583. fi
  7584. fi
  7585. $RM -r conftest*
  7586. LDFLAGS="$save_LDFLAGS"
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7589. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7590. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7591. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7592. else
  7593. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7594. fi
  7595. ;;
  7596. esac
  7597. fi
  7598. if test "$with_gnu_ld" = no; then
  7599. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7600. hardcode_libdir_separator=:
  7601. case $host_cpu in
  7602. hppa*64*|ia64*)
  7603. hardcode_direct=no
  7604. hardcode_shlibpath_var=no
  7605. ;;
  7606. *)
  7607. hardcode_direct=yes
  7608. hardcode_direct_absolute=yes
  7609. export_dynamic_flag_spec='${wl}-E'
  7610. # hardcode_minus_L: Not really in the search PATH,
  7611. # but as the default location of the library.
  7612. hardcode_minus_L=yes
  7613. ;;
  7614. esac
  7615. fi
  7616. ;;
  7617. irix5* | irix6* | nonstopux*)
  7618. if test "$GCC" = yes; then
  7619. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7620. # Try to use the -exported_symbol ld option, if it does not
  7621. # work, assume that -exports_file does not work either and
  7622. # implicitly export all symbols.
  7623. save_LDFLAGS="$LDFLAGS"
  7624. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7625. if test x$gcc_no_link = xyes; then
  7626. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7627. fi
  7628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7629. /* end confdefs.h. */
  7630. int foo(void) {}
  7631. _ACEOF
  7632. if ac_fn_c_try_link "$LINENO"; then :
  7633. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7634. fi
  7635. rm -f core conftest.err conftest.$ac_objext \
  7636. conftest$ac_exeext conftest.$ac_ext
  7637. LDFLAGS="$save_LDFLAGS"
  7638. else
  7639. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7640. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7641. fi
  7642. archive_cmds_need_lc='no'
  7643. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7644. hardcode_libdir_separator=:
  7645. inherit_rpath=yes
  7646. link_all_deplibs=yes
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7651. else
  7652. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7653. fi
  7654. hardcode_libdir_flag_spec='-R$libdir'
  7655. hardcode_direct=yes
  7656. hardcode_shlibpath_var=no
  7657. ;;
  7658. newsos6)
  7659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7660. hardcode_direct=yes
  7661. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7662. hardcode_libdir_separator=:
  7663. hardcode_shlibpath_var=no
  7664. ;;
  7665. *nto* | *qnx*)
  7666. ;;
  7667. openbsd*)
  7668. if test -f /usr/libexec/ld.so; then
  7669. hardcode_direct=yes
  7670. hardcode_shlibpath_var=no
  7671. hardcode_direct_absolute=yes
  7672. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7673. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7674. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7675. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7676. export_dynamic_flag_spec='${wl}-E'
  7677. else
  7678. case $host_os in
  7679. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7680. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7681. hardcode_libdir_flag_spec='-R$libdir'
  7682. ;;
  7683. *)
  7684. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7685. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7686. ;;
  7687. esac
  7688. fi
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. os2*)
  7694. hardcode_libdir_flag_spec='-L$libdir'
  7695. hardcode_minus_L=yes
  7696. allow_undefined_flag=unsupported
  7697. 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'
  7698. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7699. ;;
  7700. osf3*)
  7701. if test "$GCC" = yes; then
  7702. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7703. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7704. else
  7705. allow_undefined_flag=' -expect_unresolved \*'
  7706. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7707. fi
  7708. archive_cmds_need_lc='no'
  7709. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7710. hardcode_libdir_separator=:
  7711. ;;
  7712. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7713. if test "$GCC" = yes; then
  7714. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7715. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7716. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7717. else
  7718. allow_undefined_flag=' -expect_unresolved \*'
  7719. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  7720. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7721. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7722. # Both c and cxx compiler support -rpath directly
  7723. hardcode_libdir_flag_spec='-rpath $libdir'
  7724. fi
  7725. archive_cmds_need_lc='no'
  7726. hardcode_libdir_separator=:
  7727. ;;
  7728. solaris*)
  7729. no_undefined_flag=' -z defs'
  7730. if test "$GCC" = yes; then
  7731. wlarc='${wl}'
  7732. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7733. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7734. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7735. else
  7736. case `$CC -V 2>&1` in
  7737. *"Compilers 5.0"*)
  7738. wlarc=''
  7739. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7740. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7741. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7742. ;;
  7743. *)
  7744. wlarc='${wl}'
  7745. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7746. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7747. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7748. ;;
  7749. esac
  7750. fi
  7751. hardcode_libdir_flag_spec='-R$libdir'
  7752. hardcode_shlibpath_var=no
  7753. case $host_os in
  7754. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7755. *)
  7756. # The compiler driver will combine and reorder linker options,
  7757. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7758. # but is careful enough not to reorder.
  7759. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7760. if test "$GCC" = yes; then
  7761. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7762. else
  7763. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7764. fi
  7765. ;;
  7766. esac
  7767. link_all_deplibs=yes
  7768. ;;
  7769. sunos4*)
  7770. if test "x$host_vendor" = xsequent; then
  7771. # Use $CC to link under sequent, because it throws in some extra .o
  7772. # files that make .init and .fini sections work.
  7773. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7774. else
  7775. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7776. fi
  7777. hardcode_libdir_flag_spec='-L$libdir'
  7778. hardcode_direct=yes
  7779. hardcode_minus_L=yes
  7780. hardcode_shlibpath_var=no
  7781. ;;
  7782. sysv4)
  7783. case $host_vendor in
  7784. sni)
  7785. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7786. hardcode_direct=yes # is this really true???
  7787. ;;
  7788. siemens)
  7789. ## LD is ld it makes a PLAMLIB
  7790. ## CC just makes a GrossModule.
  7791. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7792. reload_cmds='$CC -r -o $output$reload_objs'
  7793. hardcode_direct=no
  7794. ;;
  7795. motorola)
  7796. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7797. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7798. ;;
  7799. esac
  7800. runpath_var='LD_RUN_PATH'
  7801. hardcode_shlibpath_var=no
  7802. ;;
  7803. sysv4.3*)
  7804. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7805. hardcode_shlibpath_var=no
  7806. export_dynamic_flag_spec='-Bexport'
  7807. ;;
  7808. sysv4*MP*)
  7809. if test -d /usr/nec; then
  7810. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7811. hardcode_shlibpath_var=no
  7812. runpath_var=LD_RUN_PATH
  7813. hardcode_runpath_var=yes
  7814. ld_shlibs=yes
  7815. fi
  7816. ;;
  7817. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7818. no_undefined_flag='${wl}-z,text'
  7819. archive_cmds_need_lc=no
  7820. hardcode_shlibpath_var=no
  7821. runpath_var='LD_RUN_PATH'
  7822. if test "$GCC" = yes; then
  7823. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7824. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7825. else
  7826. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7827. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7828. fi
  7829. ;;
  7830. sysv5* | sco3.2v5* | sco5v6*)
  7831. # Note: We can NOT use -z defs as we might desire, because we do not
  7832. # link with -lc, and that would cause any symbols used from libc to
  7833. # always be unresolved, which means just about no library would
  7834. # ever link correctly. If we're not using GNU ld we use -z text
  7835. # though, which does catch some bad symbols but isn't as heavy-handed
  7836. # as -z defs.
  7837. no_undefined_flag='${wl}-z,text'
  7838. allow_undefined_flag='${wl}-z,nodefs'
  7839. archive_cmds_need_lc=no
  7840. hardcode_shlibpath_var=no
  7841. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7842. hardcode_libdir_separator=':'
  7843. link_all_deplibs=yes
  7844. export_dynamic_flag_spec='${wl}-Bexport'
  7845. runpath_var='LD_RUN_PATH'
  7846. if test "$GCC" = yes; then
  7847. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7848. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7849. else
  7850. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7851. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7852. fi
  7853. ;;
  7854. uts4*)
  7855. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7856. hardcode_libdir_flag_spec='-L$libdir'
  7857. hardcode_shlibpath_var=no
  7858. ;;
  7859. *)
  7860. ld_shlibs=no
  7861. ;;
  7862. esac
  7863. if test x$host_vendor = xsni; then
  7864. case $host in
  7865. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7866. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7867. ;;
  7868. esac
  7869. fi
  7870. fi
  7871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7872. $as_echo "$ld_shlibs" >&6; }
  7873. test "$ld_shlibs" = no && can_build_shared=no
  7874. with_gnu_ld=$with_gnu_ld
  7875. #
  7876. # Do we need to explicitly link libc?
  7877. #
  7878. case "x$archive_cmds_need_lc" in
  7879. x|xyes)
  7880. # Assume -lc should be added
  7881. archive_cmds_need_lc=yes
  7882. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7883. case $archive_cmds in
  7884. *'~'*)
  7885. # FIXME: we may have to deal with multi-command sequences.
  7886. ;;
  7887. '$CC '*)
  7888. # Test whether the compiler implicitly links with -lc since on some
  7889. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7890. # to ld, don't add -lc before -lgcc.
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7892. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7893. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. $RM conftest*
  7897. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7899. (eval $ac_compile) 2>&5
  7900. ac_status=$?
  7901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7902. test $ac_status = 0; } 2>conftest.err; then
  7903. soname=conftest
  7904. lib=conftest
  7905. libobjs=conftest.$ac_objext
  7906. deplibs=
  7907. wl=$lt_prog_compiler_wl
  7908. pic_flag=$lt_prog_compiler_pic
  7909. compiler_flags=-v
  7910. linker_flags=-v
  7911. verstring=
  7912. output_objdir=.
  7913. libname=conftest
  7914. lt_save_allow_undefined_flag=$allow_undefined_flag
  7915. allow_undefined_flag=
  7916. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7917. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7918. ac_status=$?
  7919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7920. test $ac_status = 0; }
  7921. then
  7922. lt_cv_archive_cmds_need_lc=no
  7923. else
  7924. lt_cv_archive_cmds_need_lc=yes
  7925. fi
  7926. allow_undefined_flag=$lt_save_allow_undefined_flag
  7927. else
  7928. cat conftest.err 1>&5
  7929. fi
  7930. $RM conftest*
  7931. fi
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  7933. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  7934. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  7935. ;;
  7936. esac
  7937. fi
  7938. ;;
  7939. esac
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7941. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7942. if test "$GCC" = yes; then
  7943. case $host_os in
  7944. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7945. *) lt_awk_arg="/^libraries:/" ;;
  7946. esac
  7947. case $host_os in
  7948. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  7949. *) lt_sed_strip_eq="s,=/,/,g" ;;
  7950. esac
  7951. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  7952. case $lt_search_path_spec in
  7953. *\;*)
  7954. # if the path contains ";" then we assume it to be the separator
  7955. # otherwise default to the standard path separator (i.e. ":") - it is
  7956. # assumed that no part of a normal pathname contains ";" but that should
  7957. # okay in the real world where ";" in dirpaths is itself problematic.
  7958. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  7959. ;;
  7960. *)
  7961. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  7962. ;;
  7963. esac
  7964. # Ok, now we have the path, separated by spaces, we can step through it
  7965. # and add multilib dir if necessary.
  7966. lt_tmp_lt_search_path_spec=
  7967. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7968. for lt_sys_path in $lt_search_path_spec; do
  7969. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7970. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7971. else
  7972. test -d "$lt_sys_path" && \
  7973. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7974. fi
  7975. done
  7976. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  7977. BEGIN {RS=" "; FS="/|\n";} {
  7978. lt_foo="";
  7979. lt_count=0;
  7980. for (lt_i = NF; lt_i > 0; lt_i--) {
  7981. if ($lt_i != "" && $lt_i != ".") {
  7982. if ($lt_i == "..") {
  7983. lt_count++;
  7984. } else {
  7985. if (lt_count == 0) {
  7986. lt_foo="/" $lt_i lt_foo;
  7987. } else {
  7988. lt_count--;
  7989. }
  7990. }
  7991. }
  7992. }
  7993. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7994. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7995. }'`
  7996. # AWK program above erroneously prepends '/' to C:/dos/paths
  7997. # for these hosts.
  7998. case $host_os in
  7999. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8000. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8001. esac
  8002. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8003. else
  8004. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8005. fi
  8006. library_names_spec=
  8007. libname_spec='lib$name'
  8008. soname_spec=
  8009. shrext_cmds=".so"
  8010. postinstall_cmds=
  8011. postuninstall_cmds=
  8012. finish_cmds=
  8013. finish_eval=
  8014. shlibpath_var=
  8015. shlibpath_overrides_runpath=unknown
  8016. version_type=none
  8017. dynamic_linker="$host_os ld.so"
  8018. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8019. need_lib_prefix=unknown
  8020. hardcode_into_libs=no
  8021. # when you set need_version to no, make sure it does not cause -set_version
  8022. # flags to be left without arguments
  8023. need_version=unknown
  8024. case $host_os in
  8025. aix3*)
  8026. version_type=linux
  8027. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8028. shlibpath_var=LIBPATH
  8029. # AIX 3 has no versioning support, so we append a major version to the name.
  8030. soname_spec='${libname}${release}${shared_ext}$major'
  8031. ;;
  8032. aix[4-9]*)
  8033. version_type=linux
  8034. need_lib_prefix=no
  8035. need_version=no
  8036. hardcode_into_libs=yes
  8037. if test "$host_cpu" = ia64; then
  8038. # AIX 5 supports IA64
  8039. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8040. shlibpath_var=LD_LIBRARY_PATH
  8041. else
  8042. # With GCC up to 2.95.x, collect2 would create an import file
  8043. # for dependence libraries. The import file would start with
  8044. # the line `#! .'. This would cause the generated library to
  8045. # depend on `.', always an invalid library. This was fixed in
  8046. # development snapshots of GCC prior to 3.0.
  8047. case $host_os in
  8048. aix4 | aix4.[01] | aix4.[01].*)
  8049. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8050. echo ' yes '
  8051. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8052. :
  8053. else
  8054. can_build_shared=no
  8055. fi
  8056. ;;
  8057. esac
  8058. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8059. # soname into executable. Probably we can add versioning support to
  8060. # collect2, so additional links can be useful in future.
  8061. if test "$aix_use_runtimelinking" = yes; then
  8062. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8063. # instead of lib<name>.a to let people know that these are not
  8064. # typical AIX shared libraries.
  8065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8066. else
  8067. # We preserve .a as extension for shared libraries through AIX4.2
  8068. # and later when we are not doing run time linking.
  8069. library_names_spec='${libname}${release}.a $libname.a'
  8070. soname_spec='${libname}${release}${shared_ext}$major'
  8071. fi
  8072. shlibpath_var=LIBPATH
  8073. fi
  8074. ;;
  8075. amigaos*)
  8076. case $host_cpu in
  8077. powerpc)
  8078. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8079. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8081. ;;
  8082. m68k)
  8083. library_names_spec='$libname.ixlibrary $libname.a'
  8084. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8085. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8086. ;;
  8087. esac
  8088. ;;
  8089. beos*)
  8090. library_names_spec='${libname}${shared_ext}'
  8091. dynamic_linker="$host_os ld.so"
  8092. shlibpath_var=LIBRARY_PATH
  8093. ;;
  8094. bsdi[45]*)
  8095. version_type=linux
  8096. need_version=no
  8097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8098. soname_spec='${libname}${release}${shared_ext}$major'
  8099. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8100. shlibpath_var=LD_LIBRARY_PATH
  8101. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8102. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8103. # the default ld.so.conf also contains /usr/contrib/lib and
  8104. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8105. # libtool to hard-code these into programs
  8106. ;;
  8107. cygwin* | mingw* | pw32* | cegcc*)
  8108. version_type=windows
  8109. shrext_cmds=".dll"
  8110. need_version=no
  8111. need_lib_prefix=no
  8112. case $GCC,$host_os in
  8113. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8114. library_names_spec='$libname.dll.a'
  8115. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8116. postinstall_cmds='base_file=`basename \${file}`~
  8117. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8118. dldir=$destdir/`dirname \$dlpath`~
  8119. test -d \$dldir || mkdir -p \$dldir~
  8120. $install_prog $dir/$dlname \$dldir/$dlname~
  8121. chmod a+x \$dldir/$dlname~
  8122. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8123. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8124. fi'
  8125. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8126. dlpath=$dir/\$dldll~
  8127. $RM \$dlpath'
  8128. shlibpath_overrides_runpath=yes
  8129. case $host_os in
  8130. cygwin*)
  8131. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8132. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8133. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8134. ;;
  8135. mingw* | cegcc*)
  8136. # MinGW DLLs use traditional 'lib' prefix
  8137. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8138. ;;
  8139. pw32*)
  8140. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8141. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8142. ;;
  8143. esac
  8144. ;;
  8145. *)
  8146. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8147. ;;
  8148. esac
  8149. dynamic_linker='Win32 ld.exe'
  8150. # FIXME: first we should search . and the directory the executable is in
  8151. shlibpath_var=PATH
  8152. ;;
  8153. darwin* | rhapsody*)
  8154. dynamic_linker="$host_os dyld"
  8155. version_type=darwin
  8156. need_lib_prefix=no
  8157. need_version=no
  8158. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8159. soname_spec='${libname}${release}${major}$shared_ext'
  8160. shlibpath_overrides_runpath=yes
  8161. shlibpath_var=DYLD_LIBRARY_PATH
  8162. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8163. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8164. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8165. ;;
  8166. dgux*)
  8167. version_type=linux
  8168. need_lib_prefix=no
  8169. need_version=no
  8170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8171. soname_spec='${libname}${release}${shared_ext}$major'
  8172. shlibpath_var=LD_LIBRARY_PATH
  8173. ;;
  8174. freebsd* | dragonfly*)
  8175. # DragonFly does not have aout. When/if they implement a new
  8176. # versioning mechanism, adjust this.
  8177. if test -x /usr/bin/objformat; then
  8178. objformat=`/usr/bin/objformat`
  8179. else
  8180. case $host_os in
  8181. freebsd[23].*) objformat=aout ;;
  8182. *) objformat=elf ;;
  8183. esac
  8184. fi
  8185. version_type=freebsd-$objformat
  8186. case $version_type in
  8187. freebsd-elf*)
  8188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8189. need_version=no
  8190. need_lib_prefix=no
  8191. ;;
  8192. freebsd-*)
  8193. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8194. need_version=yes
  8195. ;;
  8196. esac
  8197. shlibpath_var=LD_LIBRARY_PATH
  8198. case $host_os in
  8199. freebsd2.*)
  8200. shlibpath_overrides_runpath=yes
  8201. ;;
  8202. freebsd3.[01]* | freebsdelf3.[01]*)
  8203. shlibpath_overrides_runpath=yes
  8204. hardcode_into_libs=yes
  8205. ;;
  8206. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8207. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8208. shlibpath_overrides_runpath=no
  8209. hardcode_into_libs=yes
  8210. ;;
  8211. *) # from 4.6 on, and DragonFly
  8212. shlibpath_overrides_runpath=yes
  8213. hardcode_into_libs=yes
  8214. ;;
  8215. esac
  8216. ;;
  8217. gnu*)
  8218. version_type=linux
  8219. need_lib_prefix=no
  8220. need_version=no
  8221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8222. soname_spec='${libname}${release}${shared_ext}$major'
  8223. shlibpath_var=LD_LIBRARY_PATH
  8224. hardcode_into_libs=yes
  8225. ;;
  8226. haiku*)
  8227. version_type=linux
  8228. need_lib_prefix=no
  8229. need_version=no
  8230. dynamic_linker="$host_os runtime_loader"
  8231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8232. soname_spec='${libname}${release}${shared_ext}$major'
  8233. shlibpath_var=LIBRARY_PATH
  8234. shlibpath_overrides_runpath=yes
  8235. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8236. hardcode_into_libs=yes
  8237. ;;
  8238. hpux9* | hpux10* | hpux11*)
  8239. # Give a soname corresponding to the major version so that dld.sl refuses to
  8240. # link against other versions.
  8241. version_type=sunos
  8242. need_lib_prefix=no
  8243. need_version=no
  8244. case $host_cpu in
  8245. ia64*)
  8246. shrext_cmds='.so'
  8247. hardcode_into_libs=yes
  8248. dynamic_linker="$host_os dld.so"
  8249. shlibpath_var=LD_LIBRARY_PATH
  8250. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8252. soname_spec='${libname}${release}${shared_ext}$major'
  8253. if test "X$HPUX_IA64_MODE" = X32; then
  8254. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8255. else
  8256. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8257. fi
  8258. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8259. ;;
  8260. hppa*64*)
  8261. shrext_cmds='.sl'
  8262. hardcode_into_libs=yes
  8263. dynamic_linker="$host_os dld.sl"
  8264. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8265. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8267. soname_spec='${libname}${release}${shared_ext}$major'
  8268. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8269. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8270. ;;
  8271. *)
  8272. shrext_cmds='.sl'
  8273. dynamic_linker="$host_os dld.sl"
  8274. shlibpath_var=SHLIB_PATH
  8275. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8277. soname_spec='${libname}${release}${shared_ext}$major'
  8278. ;;
  8279. esac
  8280. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8281. postinstall_cmds='chmod 555 $lib'
  8282. # or fails outright, so override atomically:
  8283. install_override_mode=555
  8284. ;;
  8285. interix[3-9]*)
  8286. version_type=linux
  8287. need_lib_prefix=no
  8288. need_version=no
  8289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8290. soname_spec='${libname}${release}${shared_ext}$major'
  8291. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8292. shlibpath_var=LD_LIBRARY_PATH
  8293. shlibpath_overrides_runpath=no
  8294. hardcode_into_libs=yes
  8295. ;;
  8296. irix5* | irix6* | nonstopux*)
  8297. case $host_os in
  8298. nonstopux*) version_type=nonstopux ;;
  8299. *)
  8300. if test "$lt_cv_prog_gnu_ld" = yes; then
  8301. version_type=linux
  8302. else
  8303. version_type=irix
  8304. fi ;;
  8305. esac
  8306. need_lib_prefix=no
  8307. need_version=no
  8308. soname_spec='${libname}${release}${shared_ext}$major'
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8310. case $host_os in
  8311. irix5* | nonstopux*)
  8312. libsuff= shlibsuff=
  8313. ;;
  8314. *)
  8315. case $LD in # libtool.m4 will add one of these switches to LD
  8316. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8317. libsuff= shlibsuff= libmagic=32-bit;;
  8318. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8319. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8320. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8321. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8322. *) libsuff= shlibsuff= libmagic=never-match;;
  8323. esac
  8324. ;;
  8325. esac
  8326. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8327. shlibpath_overrides_runpath=no
  8328. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8329. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8330. hardcode_into_libs=yes
  8331. ;;
  8332. # No shared lib support for Linux oldld, aout, or coff.
  8333. linux*oldld* | linux*aout* | linux*coff*)
  8334. dynamic_linker=no
  8335. ;;
  8336. # This must be Linux ELF.
  8337. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8338. version_type=linux
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8344. shlibpath_var=LD_LIBRARY_PATH
  8345. shlibpath_overrides_runpath=no
  8346. # Some binutils ld are patched to set DT_RUNPATH
  8347. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8348. $as_echo_n "(cached) " >&6
  8349. else
  8350. lt_cv_shlibpath_overrides_runpath=no
  8351. save_LDFLAGS=$LDFLAGS
  8352. save_libdir=$libdir
  8353. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8354. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8355. if test x$gcc_no_link = xyes; then
  8356. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8357. fi
  8358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8359. /* end confdefs.h. */
  8360. int
  8361. main ()
  8362. {
  8363. ;
  8364. return 0;
  8365. }
  8366. _ACEOF
  8367. if ac_fn_c_try_link "$LINENO"; then :
  8368. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8369. lt_cv_shlibpath_overrides_runpath=yes
  8370. fi
  8371. fi
  8372. rm -f core conftest.err conftest.$ac_objext \
  8373. conftest$ac_exeext conftest.$ac_ext
  8374. LDFLAGS=$save_LDFLAGS
  8375. libdir=$save_libdir
  8376. fi
  8377. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8378. # This implies no fast_install, which is unacceptable.
  8379. # Some rework will be needed to allow for fast_install
  8380. # before this can be enabled.
  8381. hardcode_into_libs=yes
  8382. # Append ld.so.conf contents to the search path
  8383. if test -f /etc/ld.so.conf; then
  8384. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8385. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8386. fi
  8387. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8388. # powerpc, because MkLinux only supported shared libraries with the
  8389. # GNU dynamic linker. Since this was broken with cross compilers,
  8390. # most powerpc-linux boxes support dynamic linking these days and
  8391. # people can always --disable-shared, the test was removed, and we
  8392. # assume the GNU/Linux dynamic linker is in use.
  8393. dynamic_linker='GNU/Linux ld.so'
  8394. ;;
  8395. netbsd*)
  8396. version_type=sunos
  8397. need_lib_prefix=no
  8398. need_version=no
  8399. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8401. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8402. dynamic_linker='NetBSD (a.out) ld.so'
  8403. else
  8404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8405. soname_spec='${libname}${release}${shared_ext}$major'
  8406. dynamic_linker='NetBSD ld.elf_so'
  8407. fi
  8408. shlibpath_var=LD_LIBRARY_PATH
  8409. shlibpath_overrides_runpath=yes
  8410. hardcode_into_libs=yes
  8411. ;;
  8412. newsos6)
  8413. version_type=linux
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. shlibpath_var=LD_LIBRARY_PATH
  8416. shlibpath_overrides_runpath=yes
  8417. ;;
  8418. *nto* | *qnx*)
  8419. version_type=qnx
  8420. need_lib_prefix=no
  8421. need_version=no
  8422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8423. soname_spec='${libname}${release}${shared_ext}$major'
  8424. shlibpath_var=LD_LIBRARY_PATH
  8425. shlibpath_overrides_runpath=no
  8426. hardcode_into_libs=yes
  8427. dynamic_linker='ldqnx.so'
  8428. ;;
  8429. openbsd*)
  8430. version_type=sunos
  8431. sys_lib_dlsearch_path_spec="/usr/lib"
  8432. need_lib_prefix=no
  8433. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8434. case $host_os in
  8435. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8436. *) need_version=no ;;
  8437. esac
  8438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8439. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8440. shlibpath_var=LD_LIBRARY_PATH
  8441. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8442. case $host_os in
  8443. openbsd2.[89] | openbsd2.[89].*)
  8444. shlibpath_overrides_runpath=no
  8445. ;;
  8446. *)
  8447. shlibpath_overrides_runpath=yes
  8448. ;;
  8449. esac
  8450. else
  8451. shlibpath_overrides_runpath=yes
  8452. fi
  8453. ;;
  8454. os2*)
  8455. libname_spec='$name'
  8456. shrext_cmds=".dll"
  8457. need_lib_prefix=no
  8458. library_names_spec='$libname${shared_ext} $libname.a'
  8459. dynamic_linker='OS/2 ld.exe'
  8460. shlibpath_var=LIBPATH
  8461. ;;
  8462. osf3* | osf4* | osf5*)
  8463. version_type=osf
  8464. need_lib_prefix=no
  8465. need_version=no
  8466. soname_spec='${libname}${release}${shared_ext}$major'
  8467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8468. shlibpath_var=LD_LIBRARY_PATH
  8469. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8470. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8471. ;;
  8472. rdos*)
  8473. dynamic_linker=no
  8474. ;;
  8475. solaris*)
  8476. version_type=linux
  8477. need_lib_prefix=no
  8478. need_version=no
  8479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8480. soname_spec='${libname}${release}${shared_ext}$major'
  8481. shlibpath_var=LD_LIBRARY_PATH
  8482. shlibpath_overrides_runpath=yes
  8483. hardcode_into_libs=yes
  8484. # ldd complains unless libraries are executable
  8485. postinstall_cmds='chmod +x $lib'
  8486. ;;
  8487. sunos4*)
  8488. version_type=sunos
  8489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8490. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8491. shlibpath_var=LD_LIBRARY_PATH
  8492. shlibpath_overrides_runpath=yes
  8493. if test "$with_gnu_ld" = yes; then
  8494. need_lib_prefix=no
  8495. fi
  8496. need_version=yes
  8497. ;;
  8498. sysv4 | sysv4.3*)
  8499. version_type=linux
  8500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8501. soname_spec='${libname}${release}${shared_ext}$major'
  8502. shlibpath_var=LD_LIBRARY_PATH
  8503. case $host_vendor in
  8504. sni)
  8505. shlibpath_overrides_runpath=no
  8506. need_lib_prefix=no
  8507. runpath_var=LD_RUN_PATH
  8508. ;;
  8509. siemens)
  8510. need_lib_prefix=no
  8511. ;;
  8512. motorola)
  8513. need_lib_prefix=no
  8514. need_version=no
  8515. shlibpath_overrides_runpath=no
  8516. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8517. ;;
  8518. esac
  8519. ;;
  8520. sysv4*MP*)
  8521. if test -d /usr/nec ;then
  8522. version_type=linux
  8523. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8524. soname_spec='$libname${shared_ext}.$major'
  8525. shlibpath_var=LD_LIBRARY_PATH
  8526. fi
  8527. ;;
  8528. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8529. version_type=freebsd-elf
  8530. need_lib_prefix=no
  8531. need_version=no
  8532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8533. soname_spec='${libname}${release}${shared_ext}$major'
  8534. shlibpath_var=LD_LIBRARY_PATH
  8535. shlibpath_overrides_runpath=yes
  8536. hardcode_into_libs=yes
  8537. if test "$with_gnu_ld" = yes; then
  8538. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8539. else
  8540. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8541. case $host_os in
  8542. sco3.2v5*)
  8543. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8544. ;;
  8545. esac
  8546. fi
  8547. sys_lib_dlsearch_path_spec='/usr/lib'
  8548. ;;
  8549. tpf*)
  8550. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8551. version_type=linux
  8552. need_lib_prefix=no
  8553. need_version=no
  8554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8555. shlibpath_var=LD_LIBRARY_PATH
  8556. shlibpath_overrides_runpath=no
  8557. hardcode_into_libs=yes
  8558. ;;
  8559. uts4*)
  8560. version_type=linux
  8561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8562. soname_spec='${libname}${release}${shared_ext}$major'
  8563. shlibpath_var=LD_LIBRARY_PATH
  8564. ;;
  8565. *)
  8566. dynamic_linker=no
  8567. ;;
  8568. esac
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8570. $as_echo "$dynamic_linker" >&6; }
  8571. test "$dynamic_linker" = no && can_build_shared=no
  8572. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8573. if test "$GCC" = yes; then
  8574. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8575. fi
  8576. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8577. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8578. fi
  8579. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8580. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8581. fi
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8583. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8584. hardcode_action=
  8585. if test -n "$hardcode_libdir_flag_spec" ||
  8586. test -n "$runpath_var" ||
  8587. test "X$hardcode_automatic" = "Xyes" ; then
  8588. # We can hardcode non-existent directories.
  8589. if test "$hardcode_direct" != no &&
  8590. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8591. # have to relink, otherwise we might link with an installed library
  8592. # when we should be linking with a yet-to-be-installed one
  8593. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8594. test "$hardcode_minus_L" != no; then
  8595. # Linking always hardcodes the temporary library directory.
  8596. hardcode_action=relink
  8597. else
  8598. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8599. hardcode_action=immediate
  8600. fi
  8601. else
  8602. # We cannot hardcode anything, or else we can only hardcode existing
  8603. # directories.
  8604. hardcode_action=unsupported
  8605. fi
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8607. $as_echo "$hardcode_action" >&6; }
  8608. if test "$hardcode_action" = relink ||
  8609. test "$inherit_rpath" = yes; then
  8610. # Fast installation is not supported
  8611. enable_fast_install=no
  8612. elif test "$shlibpath_overrides_runpath" = yes ||
  8613. test "$enable_shared" = no; then
  8614. # Fast installation is not necessary
  8615. enable_fast_install=needless
  8616. fi
  8617. if test "x$enable_dlopen" != xyes; then
  8618. enable_dlopen=unknown
  8619. enable_dlopen_self=unknown
  8620. enable_dlopen_self_static=unknown
  8621. else
  8622. lt_cv_dlopen=no
  8623. lt_cv_dlopen_libs=
  8624. case $host_os in
  8625. beos*)
  8626. lt_cv_dlopen="load_add_on"
  8627. lt_cv_dlopen_libs=
  8628. lt_cv_dlopen_self=yes
  8629. ;;
  8630. mingw* | pw32* | cegcc*)
  8631. lt_cv_dlopen="LoadLibrary"
  8632. lt_cv_dlopen_libs=
  8633. ;;
  8634. cygwin*)
  8635. lt_cv_dlopen="dlopen"
  8636. lt_cv_dlopen_libs=
  8637. ;;
  8638. darwin*)
  8639. # if libdl is installed we need to link against it
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8641. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8642. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8643. $as_echo_n "(cached) " >&6
  8644. else
  8645. ac_check_lib_save_LIBS=$LIBS
  8646. LIBS="-ldl $LIBS"
  8647. if test x$gcc_no_link = xyes; then
  8648. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8649. fi
  8650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8651. /* end confdefs.h. */
  8652. /* Override any GCC internal prototype to avoid an error.
  8653. Use char because int might match the return type of a GCC
  8654. builtin and then its argument prototype would still apply. */
  8655. #ifdef __cplusplus
  8656. extern "C"
  8657. #endif
  8658. char dlopen ();
  8659. int
  8660. main ()
  8661. {
  8662. return dlopen ();
  8663. ;
  8664. return 0;
  8665. }
  8666. _ACEOF
  8667. if ac_fn_c_try_link "$LINENO"; then :
  8668. ac_cv_lib_dl_dlopen=yes
  8669. else
  8670. ac_cv_lib_dl_dlopen=no
  8671. fi
  8672. rm -f core conftest.err conftest.$ac_objext \
  8673. conftest$ac_exeext conftest.$ac_ext
  8674. LIBS=$ac_check_lib_save_LIBS
  8675. fi
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8677. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8678. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8679. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8680. else
  8681. lt_cv_dlopen="dyld"
  8682. lt_cv_dlopen_libs=
  8683. lt_cv_dlopen_self=yes
  8684. fi
  8685. ;;
  8686. *)
  8687. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8688. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8689. lt_cv_dlopen="shl_load"
  8690. else
  8691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8692. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8693. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8694. $as_echo_n "(cached) " >&6
  8695. else
  8696. ac_check_lib_save_LIBS=$LIBS
  8697. LIBS="-ldld $LIBS"
  8698. if test x$gcc_no_link = xyes; then
  8699. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8700. fi
  8701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8702. /* end confdefs.h. */
  8703. /* Override any GCC internal prototype to avoid an error.
  8704. Use char because int might match the return type of a GCC
  8705. builtin and then its argument prototype would still apply. */
  8706. #ifdef __cplusplus
  8707. extern "C"
  8708. #endif
  8709. char shl_load ();
  8710. int
  8711. main ()
  8712. {
  8713. return shl_load ();
  8714. ;
  8715. return 0;
  8716. }
  8717. _ACEOF
  8718. if ac_fn_c_try_link "$LINENO"; then :
  8719. ac_cv_lib_dld_shl_load=yes
  8720. else
  8721. ac_cv_lib_dld_shl_load=no
  8722. fi
  8723. rm -f core conftest.err conftest.$ac_objext \
  8724. conftest$ac_exeext conftest.$ac_ext
  8725. LIBS=$ac_check_lib_save_LIBS
  8726. fi
  8727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8728. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8729. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8730. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8731. else
  8732. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8733. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8734. lt_cv_dlopen="dlopen"
  8735. else
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8737. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8738. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8739. $as_echo_n "(cached) " >&6
  8740. else
  8741. ac_check_lib_save_LIBS=$LIBS
  8742. LIBS="-ldl $LIBS"
  8743. if test x$gcc_no_link = xyes; then
  8744. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8745. fi
  8746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8747. /* end confdefs.h. */
  8748. /* Override any GCC internal prototype to avoid an error.
  8749. Use char because int might match the return type of a GCC
  8750. builtin and then its argument prototype would still apply. */
  8751. #ifdef __cplusplus
  8752. extern "C"
  8753. #endif
  8754. char dlopen ();
  8755. int
  8756. main ()
  8757. {
  8758. return dlopen ();
  8759. ;
  8760. return 0;
  8761. }
  8762. _ACEOF
  8763. if ac_fn_c_try_link "$LINENO"; then :
  8764. ac_cv_lib_dl_dlopen=yes
  8765. else
  8766. ac_cv_lib_dl_dlopen=no
  8767. fi
  8768. rm -f core conftest.err conftest.$ac_objext \
  8769. conftest$ac_exeext conftest.$ac_ext
  8770. LIBS=$ac_check_lib_save_LIBS
  8771. fi
  8772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8773. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8774. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8775. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8776. else
  8777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8778. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8779. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8780. $as_echo_n "(cached) " >&6
  8781. else
  8782. ac_check_lib_save_LIBS=$LIBS
  8783. LIBS="-lsvld $LIBS"
  8784. if test x$gcc_no_link = xyes; then
  8785. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8786. fi
  8787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8788. /* end confdefs.h. */
  8789. /* Override any GCC internal prototype to avoid an error.
  8790. Use char because int might match the return type of a GCC
  8791. builtin and then its argument prototype would still apply. */
  8792. #ifdef __cplusplus
  8793. extern "C"
  8794. #endif
  8795. char dlopen ();
  8796. int
  8797. main ()
  8798. {
  8799. return dlopen ();
  8800. ;
  8801. return 0;
  8802. }
  8803. _ACEOF
  8804. if ac_fn_c_try_link "$LINENO"; then :
  8805. ac_cv_lib_svld_dlopen=yes
  8806. else
  8807. ac_cv_lib_svld_dlopen=no
  8808. fi
  8809. rm -f core conftest.err conftest.$ac_objext \
  8810. conftest$ac_exeext conftest.$ac_ext
  8811. LIBS=$ac_check_lib_save_LIBS
  8812. fi
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8814. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8815. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8816. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8817. else
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8819. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8820. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8821. $as_echo_n "(cached) " >&6
  8822. else
  8823. ac_check_lib_save_LIBS=$LIBS
  8824. LIBS="-ldld $LIBS"
  8825. if test x$gcc_no_link = xyes; then
  8826. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8827. fi
  8828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8829. /* end confdefs.h. */
  8830. /* Override any GCC internal prototype to avoid an error.
  8831. Use char because int might match the return type of a GCC
  8832. builtin and then its argument prototype would still apply. */
  8833. #ifdef __cplusplus
  8834. extern "C"
  8835. #endif
  8836. char dld_link ();
  8837. int
  8838. main ()
  8839. {
  8840. return dld_link ();
  8841. ;
  8842. return 0;
  8843. }
  8844. _ACEOF
  8845. if ac_fn_c_try_link "$LINENO"; then :
  8846. ac_cv_lib_dld_dld_link=yes
  8847. else
  8848. ac_cv_lib_dld_dld_link=no
  8849. fi
  8850. rm -f core conftest.err conftest.$ac_objext \
  8851. conftest$ac_exeext conftest.$ac_ext
  8852. LIBS=$ac_check_lib_save_LIBS
  8853. fi
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8855. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8856. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8857. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8858. fi
  8859. fi
  8860. fi
  8861. fi
  8862. fi
  8863. fi
  8864. ;;
  8865. esac
  8866. if test "x$lt_cv_dlopen" != xno; then
  8867. enable_dlopen=yes
  8868. else
  8869. enable_dlopen=no
  8870. fi
  8871. case $lt_cv_dlopen in
  8872. dlopen)
  8873. save_CPPFLAGS="$CPPFLAGS"
  8874. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8875. save_LDFLAGS="$LDFLAGS"
  8876. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8877. save_LIBS="$LIBS"
  8878. LIBS="$lt_cv_dlopen_libs $LIBS"
  8879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8880. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8881. if test "${lt_cv_dlopen_self+set}" = set; then :
  8882. $as_echo_n "(cached) " >&6
  8883. else
  8884. if test "$cross_compiling" = yes; then :
  8885. lt_cv_dlopen_self=cross
  8886. else
  8887. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8888. lt_status=$lt_dlunknown
  8889. cat > conftest.$ac_ext <<_LT_EOF
  8890. #line 10408 "configure"
  8891. #include "confdefs.h"
  8892. #if HAVE_DLFCN_H
  8893. #include <dlfcn.h>
  8894. #endif
  8895. #include <stdio.h>
  8896. #ifdef RTLD_GLOBAL
  8897. # define LT_DLGLOBAL RTLD_GLOBAL
  8898. #else
  8899. # ifdef DL_GLOBAL
  8900. # define LT_DLGLOBAL DL_GLOBAL
  8901. # else
  8902. # define LT_DLGLOBAL 0
  8903. # endif
  8904. #endif
  8905. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8906. find out it does not work in some platform. */
  8907. #ifndef LT_DLLAZY_OR_NOW
  8908. # ifdef RTLD_LAZY
  8909. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8910. # else
  8911. # ifdef DL_LAZY
  8912. # define LT_DLLAZY_OR_NOW DL_LAZY
  8913. # else
  8914. # ifdef RTLD_NOW
  8915. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8916. # else
  8917. # ifdef DL_NOW
  8918. # define LT_DLLAZY_OR_NOW DL_NOW
  8919. # else
  8920. # define LT_DLLAZY_OR_NOW 0
  8921. # endif
  8922. # endif
  8923. # endif
  8924. # endif
  8925. #endif
  8926. /* When -fvisbility=hidden is used, assume the code has been annotated
  8927. correspondingly for the symbols needed. */
  8928. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  8929. void fnord () __attribute__((visibility("default")));
  8930. #endif
  8931. void fnord () { int i=42; }
  8932. int main ()
  8933. {
  8934. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8935. int status = $lt_dlunknown;
  8936. if (self)
  8937. {
  8938. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8939. else
  8940. {
  8941. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8942. else puts (dlerror ());
  8943. }
  8944. /* dlclose (self); */
  8945. }
  8946. else
  8947. puts (dlerror ());
  8948. return status;
  8949. }
  8950. _LT_EOF
  8951. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8952. (eval $ac_link) 2>&5
  8953. ac_status=$?
  8954. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8955. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8956. (./conftest; exit; ) >&5 2>/dev/null
  8957. lt_status=$?
  8958. case x$lt_status in
  8959. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8960. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8961. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8962. esac
  8963. else :
  8964. # compilation failed
  8965. lt_cv_dlopen_self=no
  8966. fi
  8967. fi
  8968. rm -fr conftest*
  8969. fi
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8971. $as_echo "$lt_cv_dlopen_self" >&6; }
  8972. if test "x$lt_cv_dlopen_self" = xyes; then
  8973. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8975. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8976. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  8977. $as_echo_n "(cached) " >&6
  8978. else
  8979. if test "$cross_compiling" = yes; then :
  8980. lt_cv_dlopen_self_static=cross
  8981. else
  8982. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8983. lt_status=$lt_dlunknown
  8984. cat > conftest.$ac_ext <<_LT_EOF
  8985. #line 10514 "configure"
  8986. #include "confdefs.h"
  8987. #if HAVE_DLFCN_H
  8988. #include <dlfcn.h>
  8989. #endif
  8990. #include <stdio.h>
  8991. #ifdef RTLD_GLOBAL
  8992. # define LT_DLGLOBAL RTLD_GLOBAL
  8993. #else
  8994. # ifdef DL_GLOBAL
  8995. # define LT_DLGLOBAL DL_GLOBAL
  8996. # else
  8997. # define LT_DLGLOBAL 0
  8998. # endif
  8999. #endif
  9000. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9001. find out it does not work in some platform. */
  9002. #ifndef LT_DLLAZY_OR_NOW
  9003. # ifdef RTLD_LAZY
  9004. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9005. # else
  9006. # ifdef DL_LAZY
  9007. # define LT_DLLAZY_OR_NOW DL_LAZY
  9008. # else
  9009. # ifdef RTLD_NOW
  9010. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9011. # else
  9012. # ifdef DL_NOW
  9013. # define LT_DLLAZY_OR_NOW DL_NOW
  9014. # else
  9015. # define LT_DLLAZY_OR_NOW 0
  9016. # endif
  9017. # endif
  9018. # endif
  9019. # endif
  9020. #endif
  9021. /* When -fvisbility=hidden is used, assume the code has been annotated
  9022. correspondingly for the symbols needed. */
  9023. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9024. void fnord () __attribute__((visibility("default")));
  9025. #endif
  9026. void fnord () { int i=42; }
  9027. int main ()
  9028. {
  9029. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9030. int status = $lt_dlunknown;
  9031. if (self)
  9032. {
  9033. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9034. else
  9035. {
  9036. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9037. else puts (dlerror ());
  9038. }
  9039. /* dlclose (self); */
  9040. }
  9041. else
  9042. puts (dlerror ());
  9043. return status;
  9044. }
  9045. _LT_EOF
  9046. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9047. (eval $ac_link) 2>&5
  9048. ac_status=$?
  9049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9050. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9051. (./conftest; exit; ) >&5 2>/dev/null
  9052. lt_status=$?
  9053. case x$lt_status in
  9054. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9055. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9056. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9057. esac
  9058. else :
  9059. # compilation failed
  9060. lt_cv_dlopen_self_static=no
  9061. fi
  9062. fi
  9063. rm -fr conftest*
  9064. fi
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9066. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9067. fi
  9068. CPPFLAGS="$save_CPPFLAGS"
  9069. LDFLAGS="$save_LDFLAGS"
  9070. LIBS="$save_LIBS"
  9071. ;;
  9072. esac
  9073. case $lt_cv_dlopen_self in
  9074. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9075. *) enable_dlopen_self=unknown ;;
  9076. esac
  9077. case $lt_cv_dlopen_self_static in
  9078. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9079. *) enable_dlopen_self_static=unknown ;;
  9080. esac
  9081. fi
  9082. striplib=
  9083. old_striplib=
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9085. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9086. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9087. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9088. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9090. $as_echo "yes" >&6; }
  9091. else
  9092. # FIXME - insert some real tests, host_os isn't really good enough
  9093. case $host_os in
  9094. darwin*)
  9095. if test -n "$STRIP" ; then
  9096. striplib="$STRIP -x"
  9097. old_striplib="$STRIP -S"
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9099. $as_echo "yes" >&6; }
  9100. else
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9102. $as_echo "no" >&6; }
  9103. fi
  9104. ;;
  9105. *)
  9106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9107. $as_echo "no" >&6; }
  9108. ;;
  9109. esac
  9110. fi
  9111. # Report which library types will actually be built
  9112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9113. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9115. $as_echo "$can_build_shared" >&6; }
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9117. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9118. test "$can_build_shared" = "no" && enable_shared=no
  9119. # On AIX, shared libraries and static libraries use the same namespace, and
  9120. # are all built from PIC.
  9121. case $host_os in
  9122. aix3*)
  9123. test "$enable_shared" = yes && enable_static=no
  9124. if test -n "$RANLIB"; then
  9125. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9126. postinstall_cmds='$RANLIB $lib'
  9127. fi
  9128. ;;
  9129. aix[4-9]*)
  9130. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9131. test "$enable_shared" = yes && enable_static=no
  9132. fi
  9133. ;;
  9134. esac
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9136. $as_echo "$enable_shared" >&6; }
  9137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9138. $as_echo_n "checking whether to build static libraries... " >&6; }
  9139. # Make sure either enable_shared or enable_static is yes.
  9140. test "$enable_shared" = yes || enable_static=yes
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9142. $as_echo "$enable_static" >&6; }
  9143. fi
  9144. ac_ext=c
  9145. ac_cpp='$CPP $CPPFLAGS'
  9146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9149. CC="$lt_save_CC"
  9150. ac_config_commands="$ac_config_commands libtool"
  9151. # Only expand once:
  9152. # Find CPP now so that any conditional tests below won't do it and
  9153. # thereby make the resulting definitions conditional.
  9154. ac_ext=c
  9155. ac_cpp='$CPP $CPPFLAGS'
  9156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  9160. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  9161. # On Suns, sometimes $CPP names a directory.
  9162. if test -n "$CPP" && test -d "$CPP"; then
  9163. CPP=
  9164. fi
  9165. if test -z "$CPP"; then
  9166. if test "${ac_cv_prog_CPP+set}" = set; then :
  9167. $as_echo_n "(cached) " >&6
  9168. else
  9169. # Double quotes because CPP needs to be expanded
  9170. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  9171. do
  9172. ac_preproc_ok=false
  9173. for ac_c_preproc_warn_flag in '' yes
  9174. do
  9175. # Use a header file that comes with gcc, so configuring glibc
  9176. # with a fresh cross-compiler works.
  9177. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9178. # <limits.h> exists even on freestanding compilers.
  9179. # On the NeXT, cc -E runs the code through the compiler's parser,
  9180. # not just through cpp. "Syntax error" is here to catch this case.
  9181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9182. /* end confdefs.h. */
  9183. #ifdef __STDC__
  9184. # include <limits.h>
  9185. #else
  9186. # include <assert.h>
  9187. #endif
  9188. Syntax error
  9189. _ACEOF
  9190. if ac_fn_c_try_cpp "$LINENO"; then :
  9191. else
  9192. # Broken: fails on valid input.
  9193. continue
  9194. fi
  9195. rm -f conftest.err conftest.$ac_ext
  9196. # OK, works on sane cases. Now check whether nonexistent headers
  9197. # can be detected and how.
  9198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9199. /* end confdefs.h. */
  9200. #include <ac_nonexistent.h>
  9201. _ACEOF
  9202. if ac_fn_c_try_cpp "$LINENO"; then :
  9203. # Broken: success on invalid input.
  9204. continue
  9205. else
  9206. # Passes both tests.
  9207. ac_preproc_ok=:
  9208. break
  9209. fi
  9210. rm -f conftest.err conftest.$ac_ext
  9211. done
  9212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9213. rm -f conftest.err conftest.$ac_ext
  9214. if $ac_preproc_ok; then :
  9215. break
  9216. fi
  9217. done
  9218. ac_cv_prog_CPP=$CPP
  9219. fi
  9220. CPP=$ac_cv_prog_CPP
  9221. else
  9222. ac_cv_prog_CPP=$CPP
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  9225. $as_echo "$CPP" >&6; }
  9226. ac_preproc_ok=false
  9227. for ac_c_preproc_warn_flag in '' yes
  9228. do
  9229. # Use a header file that comes with gcc, so configuring glibc
  9230. # with a fresh cross-compiler works.
  9231. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9232. # <limits.h> exists even on freestanding compilers.
  9233. # On the NeXT, cc -E runs the code through the compiler's parser,
  9234. # not just through cpp. "Syntax error" is here to catch this case.
  9235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9236. /* end confdefs.h. */
  9237. #ifdef __STDC__
  9238. # include <limits.h>
  9239. #else
  9240. # include <assert.h>
  9241. #endif
  9242. Syntax error
  9243. _ACEOF
  9244. if ac_fn_c_try_cpp "$LINENO"; then :
  9245. else
  9246. # Broken: fails on valid input.
  9247. continue
  9248. fi
  9249. rm -f conftest.err conftest.$ac_ext
  9250. # OK, works on sane cases. Now check whether nonexistent headers
  9251. # can be detected and how.
  9252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9253. /* end confdefs.h. */
  9254. #include <ac_nonexistent.h>
  9255. _ACEOF
  9256. if ac_fn_c_try_cpp "$LINENO"; then :
  9257. # Broken: success on invalid input.
  9258. continue
  9259. else
  9260. # Passes both tests.
  9261. ac_preproc_ok=:
  9262. break
  9263. fi
  9264. rm -f conftest.err conftest.$ac_ext
  9265. done
  9266. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9267. rm -f conftest.err conftest.$ac_ext
  9268. if $ac_preproc_ok; then :
  9269. else
  9270. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9272. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  9273. See \`config.log' for more details." "$LINENO" 5; }
  9274. fi
  9275. ac_ext=c
  9276. ac_cpp='$CPP $CPPFLAGS'
  9277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9280. if test -n "$with_cross_host"; then
  9281. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  9282. # may not work correctly, because the compiler may not be able to
  9283. # link executables.
  9284. # We assume newlib. This lets us hard-code the functions we know
  9285. # we'll have.
  9286. $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
  9287. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  9288. # We ignore --with-system-zlib in this case.
  9289. target_all=libzgcj.la
  9290. else
  9291. if test x$gcc_no_link = xyes; then
  9292. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  9293. ac_cv_func_mmap_fixed_mapped=no
  9294. fi
  9295. fi
  9296. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  9297. for ac_header in stdlib.h unistd.h
  9298. do :
  9299. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9300. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9301. eval as_val=\$$as_ac_Header
  9302. if test "x$as_val" = x""yes; then :
  9303. cat >>confdefs.h <<_ACEOF
  9304. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9305. _ACEOF
  9306. fi
  9307. done
  9308. for ac_func in getpagesize
  9309. do :
  9310. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  9311. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  9312. cat >>confdefs.h <<_ACEOF
  9313. #define HAVE_GETPAGESIZE 1
  9314. _ACEOF
  9315. fi
  9316. done
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9318. $as_echo_n "checking for working mmap... " >&6; }
  9319. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  9320. $as_echo_n "(cached) " >&6
  9321. else
  9322. if test "$cross_compiling" = yes; then :
  9323. ac_cv_func_mmap_fixed_mapped=no
  9324. else
  9325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9326. /* end confdefs.h. */
  9327. $ac_includes_default
  9328. /* malloc might have been renamed as rpl_malloc. */
  9329. #undef malloc
  9330. /* Thanks to Mike Haertel and Jim Avera for this test.
  9331. Here is a matrix of mmap possibilities:
  9332. mmap private not fixed
  9333. mmap private fixed at somewhere currently unmapped
  9334. mmap private fixed at somewhere already mapped
  9335. mmap shared not fixed
  9336. mmap shared fixed at somewhere currently unmapped
  9337. mmap shared fixed at somewhere already mapped
  9338. For private mappings, we should verify that changes cannot be read()
  9339. back from the file, nor mmap's back from the file at a different
  9340. address. (There have been systems where private was not correctly
  9341. implemented like the infamous i386 svr4.0, and systems where the
  9342. VM page cache was not coherent with the file system buffer cache
  9343. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9344. For shared mappings, we should conversely verify that changes get
  9345. propagated back to all the places they're supposed to be.
  9346. Grep wants private fixed already mapped.
  9347. The main things grep needs to know about mmap are:
  9348. * does it exist and is it safe to write into the mmap'd area
  9349. * how to use it (BSD variants) */
  9350. #include <fcntl.h>
  9351. #include <sys/mman.h>
  9352. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9353. char *malloc ();
  9354. #endif
  9355. /* This mess was copied from the GNU getpagesize.h. */
  9356. #ifndef HAVE_GETPAGESIZE
  9357. /* Assume that all systems that can run configure have sys/param.h. */
  9358. # ifndef HAVE_SYS_PARAM_H
  9359. # define HAVE_SYS_PARAM_H 1
  9360. # endif
  9361. # ifdef _SC_PAGESIZE
  9362. # define getpagesize() sysconf(_SC_PAGESIZE)
  9363. # else /* no _SC_PAGESIZE */
  9364. # ifdef HAVE_SYS_PARAM_H
  9365. # include <sys/param.h>
  9366. # ifdef EXEC_PAGESIZE
  9367. # define getpagesize() EXEC_PAGESIZE
  9368. # else /* no EXEC_PAGESIZE */
  9369. # ifdef NBPG
  9370. # define getpagesize() NBPG * CLSIZE
  9371. # ifndef CLSIZE
  9372. # define CLSIZE 1
  9373. # endif /* no CLSIZE */
  9374. # else /* no NBPG */
  9375. # ifdef NBPC
  9376. # define getpagesize() NBPC
  9377. # else /* no NBPC */
  9378. # ifdef PAGESIZE
  9379. # define getpagesize() PAGESIZE
  9380. # endif /* PAGESIZE */
  9381. # endif /* no NBPC */
  9382. # endif /* no NBPG */
  9383. # endif /* no EXEC_PAGESIZE */
  9384. # else /* no HAVE_SYS_PARAM_H */
  9385. # define getpagesize() 8192 /* punt totally */
  9386. # endif /* no HAVE_SYS_PARAM_H */
  9387. # endif /* no _SC_PAGESIZE */
  9388. #endif /* no HAVE_GETPAGESIZE */
  9389. int
  9390. main ()
  9391. {
  9392. char *data, *data2, *data3;
  9393. int i, pagesize;
  9394. int fd;
  9395. pagesize = getpagesize ();
  9396. /* First, make a file with some known garbage in it. */
  9397. data = (char *) malloc (pagesize);
  9398. if (!data)
  9399. return 1;
  9400. for (i = 0; i < pagesize; ++i)
  9401. *(data + i) = rand ();
  9402. umask (0);
  9403. fd = creat ("conftest.mmap", 0600);
  9404. if (fd < 0)
  9405. return 1;
  9406. if (write (fd, data, pagesize) != pagesize)
  9407. return 1;
  9408. close (fd);
  9409. /* Next, try to mmap the file at a fixed address which already has
  9410. something else allocated at it. If we can, also make sure that
  9411. we see the same garbage. */
  9412. fd = open ("conftest.mmap", O_RDWR);
  9413. if (fd < 0)
  9414. return 1;
  9415. data2 = (char *) malloc (2 * pagesize);
  9416. if (!data2)
  9417. return 1;
  9418. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9419. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9420. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9421. return 1;
  9422. for (i = 0; i < pagesize; ++i)
  9423. if (*(data + i) != *(data2 + i))
  9424. return 1;
  9425. /* Finally, make sure that changes to the mapped area do not
  9426. percolate back to the file as seen by read(). (This is a bug on
  9427. some variants of i386 svr4.0.) */
  9428. for (i = 0; i < pagesize; ++i)
  9429. *(data2 + i) = *(data2 + i) + 1;
  9430. data3 = (char *) malloc (pagesize);
  9431. if (!data3)
  9432. return 1;
  9433. if (read (fd, data3, pagesize) != pagesize)
  9434. return 1;
  9435. for (i = 0; i < pagesize; ++i)
  9436. if (*(data + i) != *(data3 + i))
  9437. return 1;
  9438. close (fd);
  9439. return 0;
  9440. }
  9441. _ACEOF
  9442. if ac_fn_c_try_run "$LINENO"; then :
  9443. ac_cv_func_mmap_fixed_mapped=yes
  9444. else
  9445. ac_cv_func_mmap_fixed_mapped=no
  9446. fi
  9447. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9448. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9449. fi
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9452. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9453. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9454. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9455. fi
  9456. rm -f conftest.mmap
  9457. fi
  9458. for ac_func in memcpy strerror
  9459. do :
  9460. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9461. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9462. eval as_val=\$$as_ac_var
  9463. if test "x$as_val" = x""yes; then :
  9464. cat >>confdefs.h <<_ACEOF
  9465. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9466. _ACEOF
  9467. fi
  9468. done
  9469. if test "$with_system_zlib" = yes; then
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  9471. $as_echo_n "checking for deflate in -lz... " >&6; }
  9472. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-lz $LIBS"
  9477. if test x$gcc_no_link = xyes; then
  9478. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9479. fi
  9480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9481. /* end confdefs.h. */
  9482. /* Override any GCC internal prototype to avoid an error.
  9483. Use char because int might match the return type of a GCC
  9484. builtin and then its argument prototype would still apply. */
  9485. #ifdef __cplusplus
  9486. extern "C"
  9487. #endif
  9488. char deflate ();
  9489. int
  9490. main ()
  9491. {
  9492. return deflate ();
  9493. ;
  9494. return 0;
  9495. }
  9496. _ACEOF
  9497. if ac_fn_c_try_link "$LINENO"; then :
  9498. ac_cv_lib_z_deflate=yes
  9499. else
  9500. ac_cv_lib_z_deflate=no
  9501. fi
  9502. rm -f core conftest.err conftest.$ac_objext \
  9503. conftest$ac_exeext conftest.$ac_ext
  9504. LIBS=$ac_check_lib_save_LIBS
  9505. fi
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  9507. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  9508. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  9509. target_all=
  9510. else
  9511. target_all=libzgcj.la
  9512. fi
  9513. else
  9514. target_all=libzgcj.la
  9515. fi
  9516. fi
  9517. for ac_header in unistd.h
  9518. do :
  9519. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  9520. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  9521. cat >>confdefs.h <<_ACEOF
  9522. #define HAVE_UNISTD_H 1
  9523. _ACEOF
  9524. fi
  9525. done
  9526. if test -n "$with_cross_host" &&
  9527. test x"$with_cross_host" != x"no"; then
  9528. toolexecdir='$(exec_prefix)/$(target_alias)'
  9529. toolexeclibdir='$(toolexecdir)/lib'
  9530. else
  9531. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9532. toolexeclibdir='$(libdir)'
  9533. fi
  9534. if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
  9535. multiosdir=/`$CC -print-multi-os-directory`
  9536. case $multiosdir in
  9537. /.) multiosdir= ;; # Avoid trailing /.
  9538. esac
  9539. else
  9540. multiosdir=
  9541. fi
  9542. toolexeclibdir=${toolexeclibdir}${multiosdir}
  9543. if test -n "$with_target_subdir"; then
  9544. TARGET_LIBRARY_TRUE=
  9545. TARGET_LIBRARY_FALSE='#'
  9546. else
  9547. TARGET_LIBRARY_TRUE='#'
  9548. TARGET_LIBRARY_FALSE=
  9549. fi
  9550. if test "${multilib}" = "yes"; then
  9551. multilib_arg="--enable-multilib"
  9552. else
  9553. multilib_arg=
  9554. fi
  9555. # Check whether --enable-host-shared was given.
  9556. if test "${enable_host_shared+set}" = set; then :
  9557. enableval=$enable_host_shared; PICFLAG=-fPIC
  9558. else
  9559. PICFLAG=
  9560. fi
  9561. ac_config_files="$ac_config_files Makefile"
  9562. cat >confcache <<\_ACEOF
  9563. # This file is a shell script that caches the results of configure
  9564. # tests run on this system so they can be shared between configure
  9565. # scripts and configure runs, see configure's option --config-cache.
  9566. # It is not useful on other systems. If it contains results you don't
  9567. # want to keep, you may remove or edit it.
  9568. #
  9569. # config.status only pays attention to the cache file if you give it
  9570. # the --recheck option to rerun configure.
  9571. #
  9572. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9573. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9574. # following values.
  9575. _ACEOF
  9576. # The following way of writing the cache mishandles newlines in values,
  9577. # but we know of no workaround that is simple, portable, and efficient.
  9578. # So, we kill variables containing newlines.
  9579. # Ultrix sh set writes to stderr and can't be redirected directly,
  9580. # and sets the high bit in the cache file unless we assign to the vars.
  9581. (
  9582. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9583. eval ac_val=\$$ac_var
  9584. case $ac_val in #(
  9585. *${as_nl}*)
  9586. case $ac_var in #(
  9587. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9588. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9589. esac
  9590. case $ac_var in #(
  9591. _ | IFS | as_nl) ;; #(
  9592. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9593. *) { eval $ac_var=; unset $ac_var;} ;;
  9594. esac ;;
  9595. esac
  9596. done
  9597. (set) 2>&1 |
  9598. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9599. *${as_nl}ac_space=\ *)
  9600. # `set' does not quote correctly, so add quotes: double-quote
  9601. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9602. sed -n \
  9603. "s/'/'\\\\''/g;
  9604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9605. ;; #(
  9606. *)
  9607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9608. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9609. ;;
  9610. esac |
  9611. sort
  9612. ) |
  9613. sed '
  9614. /^ac_cv_env_/b end
  9615. t clear
  9616. :clear
  9617. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9618. t end
  9619. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9620. :end' >>confcache
  9621. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9622. if test -w "$cache_file"; then
  9623. test "x$cache_file" != "x/dev/null" &&
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9625. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9626. cat confcache >$cache_file
  9627. else
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9629. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9630. fi
  9631. fi
  9632. rm -f confcache
  9633. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9634. # Let make expand exec_prefix.
  9635. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9636. # Transform confdefs.h into DEFS.
  9637. # Protect against shell expansion while executing Makefile rules.
  9638. # Protect against Makefile macro expansion.
  9639. #
  9640. # If the first sed substitution is executed (which looks for macros that
  9641. # take arguments), then branch to the quote section. Otherwise,
  9642. # look for a macro that doesn't take arguments.
  9643. ac_script='
  9644. :mline
  9645. /\\$/{
  9646. N
  9647. s,\\\n,,
  9648. b mline
  9649. }
  9650. t clear
  9651. :clear
  9652. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9653. t quote
  9654. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9655. t quote
  9656. b any
  9657. :quote
  9658. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9659. s/\[/\\&/g
  9660. s/\]/\\&/g
  9661. s/\$/$$/g
  9662. H
  9663. :any
  9664. ${
  9665. g
  9666. s/^\n//
  9667. s/\n/ /g
  9668. p
  9669. }
  9670. '
  9671. DEFS=`sed -n "$ac_script" confdefs.h`
  9672. ac_libobjs=
  9673. ac_ltlibobjs=
  9674. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9675. # 1. Remove the extension, and $U if already installed.
  9676. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9677. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9678. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9679. # will be set to the directory where LIBOBJS objects are built.
  9680. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9681. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9682. done
  9683. LIBOBJS=$ac_libobjs
  9684. LTLIBOBJS=$ac_ltlibobjs
  9685. if test -n "$EXEEXT"; then
  9686. am__EXEEXT_TRUE=
  9687. am__EXEEXT_FALSE='#'
  9688. else
  9689. am__EXEEXT_TRUE='#'
  9690. am__EXEEXT_FALSE=
  9691. fi
  9692. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9693. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9695. fi
  9696. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9697. as_fn_error "conditional \"AMDEP\" was never defined.
  9698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9699. fi
  9700. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9701. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  9702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9703. fi
  9704. if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
  9705. as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
  9706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9707. fi
  9708. : ${CONFIG_STATUS=./config.status}
  9709. ac_write_fail=0
  9710. ac_clean_files_save=$ac_clean_files
  9711. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9713. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9714. as_write_fail=0
  9715. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9716. #! $SHELL
  9717. # Generated by $as_me.
  9718. # Run this file to recreate the current configuration.
  9719. # Compiler output produced by configure, useful for debugging
  9720. # configure, is in config.log if it exists.
  9721. debug=false
  9722. ac_cs_recheck=false
  9723. ac_cs_silent=false
  9724. SHELL=\${CONFIG_SHELL-$SHELL}
  9725. export SHELL
  9726. _ASEOF
  9727. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9728. ## -------------------- ##
  9729. ## M4sh Initialization. ##
  9730. ## -------------------- ##
  9731. # Be more Bourne compatible
  9732. DUALCASE=1; export DUALCASE # for MKS sh
  9733. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9734. emulate sh
  9735. NULLCMD=:
  9736. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9737. # is contrary to our usage. Disable this feature.
  9738. alias -g '${1+"$@"}'='"$@"'
  9739. setopt NO_GLOB_SUBST
  9740. else
  9741. case `(set -o) 2>/dev/null` in #(
  9742. *posix*) :
  9743. set -o posix ;; #(
  9744. *) :
  9745. ;;
  9746. esac
  9747. fi
  9748. as_nl='
  9749. '
  9750. export as_nl
  9751. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9752. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9753. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9754. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9755. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9756. # but without wasting forks for bash or zsh.
  9757. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9758. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9759. as_echo='print -r --'
  9760. as_echo_n='print -rn --'
  9761. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9762. as_echo='printf %s\n'
  9763. as_echo_n='printf %s'
  9764. else
  9765. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9766. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9767. as_echo_n='/usr/ucb/echo -n'
  9768. else
  9769. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9770. as_echo_n_body='eval
  9771. arg=$1;
  9772. case $arg in #(
  9773. *"$as_nl"*)
  9774. expr "X$arg" : "X\\(.*\\)$as_nl";
  9775. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9776. esac;
  9777. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9778. '
  9779. export as_echo_n_body
  9780. as_echo_n='sh -c $as_echo_n_body as_echo'
  9781. fi
  9782. export as_echo_body
  9783. as_echo='sh -c $as_echo_body as_echo'
  9784. fi
  9785. # The user is always right.
  9786. if test "${PATH_SEPARATOR+set}" != set; then
  9787. PATH_SEPARATOR=:
  9788. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9789. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9790. PATH_SEPARATOR=';'
  9791. }
  9792. fi
  9793. # IFS
  9794. # We need space, tab and new line, in precisely that order. Quoting is
  9795. # there to prevent editors from complaining about space-tab.
  9796. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9797. # splitting by setting IFS to empty value.)
  9798. IFS=" "" $as_nl"
  9799. # Find who we are. Look in the path if we contain no directory separator.
  9800. case $0 in #((
  9801. *[\\/]* ) as_myself=$0 ;;
  9802. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9803. for as_dir in $PATH
  9804. do
  9805. IFS=$as_save_IFS
  9806. test -z "$as_dir" && as_dir=.
  9807. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9808. done
  9809. IFS=$as_save_IFS
  9810. ;;
  9811. esac
  9812. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9813. # in which case we are not to be found in the path.
  9814. if test "x$as_myself" = x; then
  9815. as_myself=$0
  9816. fi
  9817. if test ! -f "$as_myself"; then
  9818. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9819. exit 1
  9820. fi
  9821. # Unset variables that we do not need and which cause bugs (e.g. in
  9822. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9823. # suppresses any "Segmentation fault" message there. '((' could
  9824. # trigger a bug in pdksh 5.2.14.
  9825. for as_var in BASH_ENV ENV MAIL MAILPATH
  9826. do eval test x\${$as_var+set} = xset \
  9827. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9828. done
  9829. PS1='$ '
  9830. PS2='> '
  9831. PS4='+ '
  9832. # NLS nuisances.
  9833. LC_ALL=C
  9834. export LC_ALL
  9835. LANGUAGE=C
  9836. export LANGUAGE
  9837. # CDPATH.
  9838. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9839. # as_fn_error ERROR [LINENO LOG_FD]
  9840. # ---------------------------------
  9841. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9842. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9843. # script with status $?, using 1 if that was 0.
  9844. as_fn_error ()
  9845. {
  9846. as_status=$?; test $as_status -eq 0 && as_status=1
  9847. if test "$3"; then
  9848. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9849. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9850. fi
  9851. $as_echo "$as_me: error: $1" >&2
  9852. as_fn_exit $as_status
  9853. } # as_fn_error
  9854. # as_fn_set_status STATUS
  9855. # -----------------------
  9856. # Set $? to STATUS, without forking.
  9857. as_fn_set_status ()
  9858. {
  9859. return $1
  9860. } # as_fn_set_status
  9861. # as_fn_exit STATUS
  9862. # -----------------
  9863. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9864. as_fn_exit ()
  9865. {
  9866. set +e
  9867. as_fn_set_status $1
  9868. exit $1
  9869. } # as_fn_exit
  9870. # as_fn_unset VAR
  9871. # ---------------
  9872. # Portably unset VAR.
  9873. as_fn_unset ()
  9874. {
  9875. { eval $1=; unset $1;}
  9876. }
  9877. as_unset=as_fn_unset
  9878. # as_fn_append VAR VALUE
  9879. # ----------------------
  9880. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9881. # advantage of any shell optimizations that allow amortized linear growth over
  9882. # repeated appends, instead of the typical quadratic growth present in naive
  9883. # implementations.
  9884. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9885. eval 'as_fn_append ()
  9886. {
  9887. eval $1+=\$2
  9888. }'
  9889. else
  9890. as_fn_append ()
  9891. {
  9892. eval $1=\$$1\$2
  9893. }
  9894. fi # as_fn_append
  9895. # as_fn_arith ARG...
  9896. # ------------------
  9897. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9898. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9899. # must be portable across $(()) and expr.
  9900. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9901. eval 'as_fn_arith ()
  9902. {
  9903. as_val=$(( $* ))
  9904. }'
  9905. else
  9906. as_fn_arith ()
  9907. {
  9908. as_val=`expr "$@" || test $? -eq 1`
  9909. }
  9910. fi # as_fn_arith
  9911. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9912. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9913. as_expr=expr
  9914. else
  9915. as_expr=false
  9916. fi
  9917. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9918. as_basename=basename
  9919. else
  9920. as_basename=false
  9921. fi
  9922. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9923. as_dirname=dirname
  9924. else
  9925. as_dirname=false
  9926. fi
  9927. as_me=`$as_basename -- "$0" ||
  9928. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9929. X"$0" : 'X\(//\)$' \| \
  9930. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9931. $as_echo X/"$0" |
  9932. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9933. s//\1/
  9934. q
  9935. }
  9936. /^X\/\(\/\/\)$/{
  9937. s//\1/
  9938. q
  9939. }
  9940. /^X\/\(\/\).*/{
  9941. s//\1/
  9942. q
  9943. }
  9944. s/.*/./; q'`
  9945. # Avoid depending upon Character Ranges.
  9946. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9947. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9948. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9949. as_cr_digits='0123456789'
  9950. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9951. ECHO_C= ECHO_N= ECHO_T=
  9952. case `echo -n x` in #(((((
  9953. -n*)
  9954. case `echo 'xy\c'` in
  9955. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9956. xy) ECHO_C='\c';;
  9957. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9958. ECHO_T=' ';;
  9959. esac;;
  9960. *)
  9961. ECHO_N='-n';;
  9962. esac
  9963. rm -f conf$$ conf$$.exe conf$$.file
  9964. if test -d conf$$.dir; then
  9965. rm -f conf$$.dir/conf$$.file
  9966. else
  9967. rm -f conf$$.dir
  9968. mkdir conf$$.dir 2>/dev/null
  9969. fi
  9970. if (echo >conf$$.file) 2>/dev/null; then
  9971. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9972. as_ln_s='ln -s'
  9973. # ... but there are two gotchas:
  9974. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9975. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9976. # In both cases, we have to default to `cp -p'.
  9977. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9978. as_ln_s='cp -p'
  9979. elif ln conf$$.file conf$$ 2>/dev/null; then
  9980. as_ln_s=ln
  9981. else
  9982. as_ln_s='cp -p'
  9983. fi
  9984. else
  9985. as_ln_s='cp -p'
  9986. fi
  9987. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9988. rmdir conf$$.dir 2>/dev/null
  9989. # as_fn_mkdir_p
  9990. # -------------
  9991. # Create "$as_dir" as a directory, including parents if necessary.
  9992. as_fn_mkdir_p ()
  9993. {
  9994. case $as_dir in #(
  9995. -*) as_dir=./$as_dir;;
  9996. esac
  9997. test -d "$as_dir" || eval $as_mkdir_p || {
  9998. as_dirs=
  9999. while :; do
  10000. case $as_dir in #(
  10001. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10002. *) as_qdir=$as_dir;;
  10003. esac
  10004. as_dirs="'$as_qdir' $as_dirs"
  10005. as_dir=`$as_dirname -- "$as_dir" ||
  10006. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10007. X"$as_dir" : 'X\(//\)[^/]' \| \
  10008. X"$as_dir" : 'X\(//\)$' \| \
  10009. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10010. $as_echo X"$as_dir" |
  10011. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10012. s//\1/
  10013. q
  10014. }
  10015. /^X\(\/\/\)[^/].*/{
  10016. s//\1/
  10017. q
  10018. }
  10019. /^X\(\/\/\)$/{
  10020. s//\1/
  10021. q
  10022. }
  10023. /^X\(\/\).*/{
  10024. s//\1/
  10025. q
  10026. }
  10027. s/.*/./; q'`
  10028. test -d "$as_dir" && break
  10029. done
  10030. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10031. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10032. } # as_fn_mkdir_p
  10033. if mkdir -p . 2>/dev/null; then
  10034. as_mkdir_p='mkdir -p "$as_dir"'
  10035. else
  10036. test -d ./-p && rmdir ./-p
  10037. as_mkdir_p=false
  10038. fi
  10039. if test -x / >/dev/null 2>&1; then
  10040. as_test_x='test -x'
  10041. else
  10042. if ls -dL / >/dev/null 2>&1; then
  10043. as_ls_L_option=L
  10044. else
  10045. as_ls_L_option=
  10046. fi
  10047. as_test_x='
  10048. eval sh -c '\''
  10049. if test -d "$1"; then
  10050. test -d "$1/.";
  10051. else
  10052. case $1 in #(
  10053. -*)set "./$1";;
  10054. esac;
  10055. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10056. ???[sx]*):;;*)false;;esac;fi
  10057. '\'' sh
  10058. '
  10059. fi
  10060. as_executable_p=$as_test_x
  10061. # Sed expression to map a string onto a valid CPP name.
  10062. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10063. # Sed expression to map a string onto a valid variable name.
  10064. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10065. exec 6>&1
  10066. ## ----------------------------------- ##
  10067. ## Main body of $CONFIG_STATUS script. ##
  10068. ## ----------------------------------- ##
  10069. _ASEOF
  10070. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10072. # Save the log message, to keep $0 and so on meaningful, and to
  10073. # report actual input values of CONFIG_FILES etc. instead of their
  10074. # values after options handling.
  10075. ac_log="
  10076. This file was extended by $as_me, which was
  10077. generated by GNU Autoconf 2.64. Invocation command line was
  10078. CONFIG_FILES = $CONFIG_FILES
  10079. CONFIG_HEADERS = $CONFIG_HEADERS
  10080. CONFIG_LINKS = $CONFIG_LINKS
  10081. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10082. $ $0 $@
  10083. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10084. "
  10085. _ACEOF
  10086. case $ac_config_files in *"
  10087. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10088. esac
  10089. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10090. # Files that config.status was made for.
  10091. config_files="$ac_config_files"
  10092. config_commands="$ac_config_commands"
  10093. _ACEOF
  10094. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10095. ac_cs_usage="\
  10096. \`$as_me' instantiates files and other configuration actions
  10097. from templates according to the current configuration. Unless the files
  10098. and actions are specified as TAGs, all are instantiated by default.
  10099. Usage: $0 [OPTION]... [TAG]...
  10100. -h, --help print this help, then exit
  10101. -V, --version print version number and configuration settings, then exit
  10102. -q, --quiet, --silent
  10103. do not print progress messages
  10104. -d, --debug don't remove temporary files
  10105. --recheck update $as_me by reconfiguring in the same conditions
  10106. --file=FILE[:TEMPLATE]
  10107. instantiate the configuration file FILE
  10108. Configuration files:
  10109. $config_files
  10110. Configuration commands:
  10111. $config_commands
  10112. Report bugs to the package provider."
  10113. _ACEOF
  10114. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10115. ac_cs_version="\\
  10116. config.status
  10117. configured by $0, generated by GNU Autoconf 2.64,
  10118. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10119. Copyright (C) 2009 Free Software Foundation, Inc.
  10120. This config.status script is free software; the Free Software Foundation
  10121. gives unlimited permission to copy, distribute and modify it."
  10122. ac_pwd='$ac_pwd'
  10123. srcdir='$srcdir'
  10124. INSTALL='$INSTALL'
  10125. MKDIR_P='$MKDIR_P'
  10126. AWK='$AWK'
  10127. test -n "\$AWK" || AWK=awk
  10128. _ACEOF
  10129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10130. # The default lists apply if the user does not specify any file.
  10131. ac_need_defaults=:
  10132. while test $# != 0
  10133. do
  10134. case $1 in
  10135. --*=*)
  10136. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10137. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10138. ac_shift=:
  10139. ;;
  10140. *)
  10141. ac_option=$1
  10142. ac_optarg=$2
  10143. ac_shift=shift
  10144. ;;
  10145. esac
  10146. case $ac_option in
  10147. # Handling of the options.
  10148. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10149. ac_cs_recheck=: ;;
  10150. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10151. $as_echo "$ac_cs_version"; exit ;;
  10152. --debug | --debu | --deb | --de | --d | -d )
  10153. debug=: ;;
  10154. --file | --fil | --fi | --f )
  10155. $ac_shift
  10156. case $ac_optarg in
  10157. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10158. esac
  10159. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10160. ac_need_defaults=false;;
  10161. --he | --h | --help | --hel | -h )
  10162. $as_echo "$ac_cs_usage"; exit ;;
  10163. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10164. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10165. ac_cs_silent=: ;;
  10166. # This is an error.
  10167. -*) as_fn_error "unrecognized option: \`$1'
  10168. Try \`$0 --help' for more information." ;;
  10169. *) as_fn_append ac_config_targets " $1"
  10170. ac_need_defaults=false ;;
  10171. esac
  10172. shift
  10173. done
  10174. ac_configure_extra_args=
  10175. if $ac_cs_silent; then
  10176. exec 6>/dev/null
  10177. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10178. fi
  10179. _ACEOF
  10180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10181. if \$ac_cs_recheck; then
  10182. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10183. shift
  10184. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10185. CONFIG_SHELL='$SHELL'
  10186. export CONFIG_SHELL
  10187. exec "\$@"
  10188. fi
  10189. _ACEOF
  10190. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10191. exec 5>>config.log
  10192. {
  10193. echo
  10194. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10195. ## Running $as_me. ##
  10196. _ASBOX
  10197. $as_echo "$ac_log"
  10198. } >&5
  10199. _ACEOF
  10200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10201. #
  10202. # INIT-COMMANDS
  10203. #
  10204. srcdir="$srcdir"
  10205. host="$host"
  10206. target="$target"
  10207. with_multisubdir="$with_multisubdir"
  10208. with_multisrctop="$with_multisrctop"
  10209. with_target_subdir="$with_target_subdir"
  10210. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10211. multi_basedir="$multi_basedir"
  10212. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10213. CC="$CC"
  10214. CXX="$CXX"
  10215. GFORTRAN="$GFORTRAN"
  10216. GCJ="$GCJ"
  10217. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10218. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10219. # if CDPATH is set.
  10220. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10221. sed_quote_subst='$sed_quote_subst'
  10222. double_quote_subst='$double_quote_subst'
  10223. delay_variable_subst='$delay_variable_subst'
  10224. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10225. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10226. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10227. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10228. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10229. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10230. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10231. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10232. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10233. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10234. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10235. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10236. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10237. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10238. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10239. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10240. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10241. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10242. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10243. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10244. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10245. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10246. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10247. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10248. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10249. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10250. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10251. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10252. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10253. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10254. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10255. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10256. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10257. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10258. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10259. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10260. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10261. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10262. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10263. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10264. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10265. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10266. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10267. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10268. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10269. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10270. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10271. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10272. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10273. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10274. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10275. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10276. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10277. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10278. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10279. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10280. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10281. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10282. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10283. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10284. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10285. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10286. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10287. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10288. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10289. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10290. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10291. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10292. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10293. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10294. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10295. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10296. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10297. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10298. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10299. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10300. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10301. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10302. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10303. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10304. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10305. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10306. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10307. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10308. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10309. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10310. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10311. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10312. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10313. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10314. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10315. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10316. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10317. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10318. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10319. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10320. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10321. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10322. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10323. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10324. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10325. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10326. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10327. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10328. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10329. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10330. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10331. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10332. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10333. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10334. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10335. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10336. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10337. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10338. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10339. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10340. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10341. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10342. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10343. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10344. LTCC='$LTCC'
  10345. LTCFLAGS='$LTCFLAGS'
  10346. compiler='$compiler_DEFAULT'
  10347. # A function that is used when there is no print builtin or printf.
  10348. func_fallback_echo ()
  10349. {
  10350. eval 'cat <<_LTECHO_EOF
  10351. \$1
  10352. _LTECHO_EOF'
  10353. }
  10354. # Quote evaled strings.
  10355. for var in SHELL \
  10356. ECHO \
  10357. SED \
  10358. GREP \
  10359. EGREP \
  10360. FGREP \
  10361. LD \
  10362. NM \
  10363. LN_S \
  10364. lt_SP2NL \
  10365. lt_NL2SP \
  10366. reload_flag \
  10367. OBJDUMP \
  10368. deplibs_check_method \
  10369. file_magic_cmd \
  10370. AR \
  10371. AR_FLAGS \
  10372. STRIP \
  10373. RANLIB \
  10374. CC \
  10375. CFLAGS \
  10376. compiler \
  10377. lt_cv_sys_global_symbol_pipe \
  10378. lt_cv_sys_global_symbol_to_cdecl \
  10379. lt_cv_sys_global_symbol_to_c_name_address \
  10380. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10381. lt_prog_compiler_no_builtin_flag \
  10382. lt_prog_compiler_wl \
  10383. lt_prog_compiler_pic \
  10384. lt_prog_compiler_static \
  10385. lt_cv_prog_compiler_c_o \
  10386. need_locks \
  10387. DSYMUTIL \
  10388. NMEDIT \
  10389. LIPO \
  10390. OTOOL \
  10391. OTOOL64 \
  10392. shrext_cmds \
  10393. export_dynamic_flag_spec \
  10394. whole_archive_flag_spec \
  10395. compiler_needs_object \
  10396. with_gnu_ld \
  10397. allow_undefined_flag \
  10398. no_undefined_flag \
  10399. hardcode_libdir_flag_spec \
  10400. hardcode_libdir_flag_spec_ld \
  10401. hardcode_libdir_separator \
  10402. fix_srcfile_path \
  10403. exclude_expsyms \
  10404. include_expsyms \
  10405. file_list_spec \
  10406. variables_saved_for_relink \
  10407. libname_spec \
  10408. library_names_spec \
  10409. soname_spec \
  10410. install_override_mode \
  10411. finish_eval \
  10412. old_striplib \
  10413. striplib; do
  10414. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10415. *[\\\\\\\`\\"\\\$]*)
  10416. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10417. ;;
  10418. *)
  10419. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10420. ;;
  10421. esac
  10422. done
  10423. # Double-quote double-evaled strings.
  10424. for var in reload_cmds \
  10425. old_postinstall_cmds \
  10426. old_postuninstall_cmds \
  10427. old_archive_cmds \
  10428. extract_expsyms_cmds \
  10429. old_archive_from_new_cmds \
  10430. old_archive_from_expsyms_cmds \
  10431. archive_cmds \
  10432. archive_expsym_cmds \
  10433. module_cmds \
  10434. module_expsym_cmds \
  10435. export_symbols_cmds \
  10436. prelink_cmds \
  10437. postinstall_cmds \
  10438. postuninstall_cmds \
  10439. finish_cmds \
  10440. sys_lib_search_path_spec \
  10441. sys_lib_dlsearch_path_spec; do
  10442. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10443. *[\\\\\\\`\\"\\\$]*)
  10444. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10445. ;;
  10446. *)
  10447. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10448. ;;
  10449. esac
  10450. done
  10451. ac_aux_dir='$ac_aux_dir'
  10452. xsi_shell='$xsi_shell'
  10453. lt_shell_append='$lt_shell_append'
  10454. # See if we are running on zsh, and set the options which allow our
  10455. # commands through without removal of \ escapes INIT.
  10456. if test -n "\${ZSH_VERSION+set}" ; then
  10457. setopt NO_GLOB_SUBST
  10458. fi
  10459. PACKAGE='$PACKAGE'
  10460. VERSION='$VERSION'
  10461. TIMESTAMP='$TIMESTAMP'
  10462. RM='$RM'
  10463. ofile='$ofile'
  10464. _ACEOF
  10465. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10466. # Handling of arguments.
  10467. for ac_config_target in $ac_config_targets
  10468. do
  10469. case $ac_config_target in
  10470. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10471. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10472. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10473. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10474. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10475. esac
  10476. done
  10477. # If the user did not use the arguments to specify the items to instantiate,
  10478. # then the envvar interface is used. Set only those that are not.
  10479. # We use the long form for the default assignment because of an extremely
  10480. # bizarre bug on SunOS 4.1.3.
  10481. if $ac_need_defaults; then
  10482. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10483. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10484. fi
  10485. # Have a temporary directory for convenience. Make it in the build tree
  10486. # simply because there is no reason against having it here, and in addition,
  10487. # creating and moving files from /tmp can sometimes cause problems.
  10488. # Hook for its removal unless debugging.
  10489. # Note that there is a small window in which the directory will not be cleaned:
  10490. # after its creation but before its name has been assigned to `$tmp'.
  10491. $debug ||
  10492. {
  10493. tmp=
  10494. trap 'exit_status=$?
  10495. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10496. ' 0
  10497. trap 'as_fn_exit 1' 1 2 13 15
  10498. }
  10499. # Create a (secure) tmp directory for tmp files.
  10500. {
  10501. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10502. test -n "$tmp" && test -d "$tmp"
  10503. } ||
  10504. {
  10505. tmp=./conf$$-$RANDOM
  10506. (umask 077 && mkdir "$tmp")
  10507. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10508. # Set up the scripts for CONFIG_FILES section.
  10509. # No need to generate them if there are no CONFIG_FILES.
  10510. # This happens for instance with `./config.status config.h'.
  10511. if test -n "$CONFIG_FILES"; then
  10512. ac_cr=`echo X | tr X '\015'`
  10513. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10514. # But we know of no other shell where ac_cr would be empty at this
  10515. # point, so we can use a bashism as a fallback.
  10516. if test "x$ac_cr" = x; then
  10517. eval ac_cr=\$\'\\r\'
  10518. fi
  10519. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10520. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10521. ac_cs_awk_cr='\r'
  10522. else
  10523. ac_cs_awk_cr=$ac_cr
  10524. fi
  10525. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10526. _ACEOF
  10527. {
  10528. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10529. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10530. echo "_ACEOF"
  10531. } >conf$$subs.sh ||
  10532. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10533. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10534. ac_delim='%!_!# '
  10535. for ac_last_try in false false false false false :; do
  10536. . ./conf$$subs.sh ||
  10537. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10538. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10539. if test $ac_delim_n = $ac_delim_num; then
  10540. break
  10541. elif $ac_last_try; then
  10542. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10543. else
  10544. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10545. fi
  10546. done
  10547. rm -f conf$$subs.sh
  10548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10549. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10550. _ACEOF
  10551. sed -n '
  10552. h
  10553. s/^/S["/; s/!.*/"]=/
  10554. p
  10555. g
  10556. s/^[^!]*!//
  10557. :repl
  10558. t repl
  10559. s/'"$ac_delim"'$//
  10560. t delim
  10561. :nl
  10562. h
  10563. s/\(.\{148\}\).*/\1/
  10564. t more1
  10565. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10566. p
  10567. n
  10568. b repl
  10569. :more1
  10570. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10571. p
  10572. g
  10573. s/.\{148\}//
  10574. t nl
  10575. :delim
  10576. h
  10577. s/\(.\{148\}\).*/\1/
  10578. t more2
  10579. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10580. p
  10581. b
  10582. :more2
  10583. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10584. p
  10585. g
  10586. s/.\{148\}//
  10587. t delim
  10588. ' <conf$$subs.awk | sed '
  10589. /^[^""]/{
  10590. N
  10591. s/\n//
  10592. }
  10593. ' >>$CONFIG_STATUS || ac_write_fail=1
  10594. rm -f conf$$subs.awk
  10595. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10596. _ACAWK
  10597. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10598. for (key in S) S_is_set[key] = 1
  10599. FS = ""
  10600. }
  10601. {
  10602. line = $ 0
  10603. nfields = split(line, field, "@")
  10604. substed = 0
  10605. len = length(field[1])
  10606. for (i = 2; i < nfields; i++) {
  10607. key = field[i]
  10608. keylen = length(key)
  10609. if (S_is_set[key]) {
  10610. value = S[key]
  10611. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10612. len += length(value) + length(field[++i])
  10613. substed = 1
  10614. } else
  10615. len += 1 + keylen
  10616. }
  10617. print line
  10618. }
  10619. _ACAWK
  10620. _ACEOF
  10621. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10622. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10623. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10624. else
  10625. cat
  10626. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10627. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10628. _ACEOF
  10629. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10630. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10631. # trailing colons and then remove the whole line if VPATH becomes empty
  10632. # (actually we leave an empty line to preserve line numbers).
  10633. if test "x$srcdir" = x.; then
  10634. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10635. s/:*\$(srcdir):*/:/
  10636. s/:*\${srcdir}:*/:/
  10637. s/:*@srcdir@:*/:/
  10638. s/^\([^=]*=[ ]*\):*/\1/
  10639. s/:*$//
  10640. s/^[^=]*=[ ]*$//
  10641. }'
  10642. fi
  10643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10644. fi # test -n "$CONFIG_FILES"
  10645. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10646. shift
  10647. for ac_tag
  10648. do
  10649. case $ac_tag in
  10650. :[FHLC]) ac_mode=$ac_tag; continue;;
  10651. esac
  10652. case $ac_mode$ac_tag in
  10653. :[FHL]*:*);;
  10654. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10655. :[FH]-) ac_tag=-:-;;
  10656. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10657. esac
  10658. ac_save_IFS=$IFS
  10659. IFS=:
  10660. set x $ac_tag
  10661. IFS=$ac_save_IFS
  10662. shift
  10663. ac_file=$1
  10664. shift
  10665. case $ac_mode in
  10666. :L) ac_source=$1;;
  10667. :[FH])
  10668. ac_file_inputs=
  10669. for ac_f
  10670. do
  10671. case $ac_f in
  10672. -) ac_f="$tmp/stdin";;
  10673. *) # Look for the file first in the build tree, then in the source tree
  10674. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10675. # because $ac_f cannot contain `:'.
  10676. test -f "$ac_f" ||
  10677. case $ac_f in
  10678. [\\/$]*) false;;
  10679. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10680. esac ||
  10681. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10682. esac
  10683. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10684. as_fn_append ac_file_inputs " '$ac_f'"
  10685. done
  10686. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10687. # use $as_me), people would be surprised to read:
  10688. # /* config.h. Generated by config.status. */
  10689. configure_input='Generated from '`
  10690. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10691. `' by configure.'
  10692. if test x"$ac_file" != x-; then
  10693. configure_input="$ac_file. $configure_input"
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10695. $as_echo "$as_me: creating $ac_file" >&6;}
  10696. fi
  10697. # Neutralize special characters interpreted by sed in replacement strings.
  10698. case $configure_input in #(
  10699. *\&* | *\|* | *\\* )
  10700. ac_sed_conf_input=`$as_echo "$configure_input" |
  10701. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10702. *) ac_sed_conf_input=$configure_input;;
  10703. esac
  10704. case $ac_tag in
  10705. *:-:* | *:-) cat >"$tmp/stdin" \
  10706. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  10707. esac
  10708. ;;
  10709. esac
  10710. ac_dir=`$as_dirname -- "$ac_file" ||
  10711. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10712. X"$ac_file" : 'X\(//\)[^/]' \| \
  10713. X"$ac_file" : 'X\(//\)$' \| \
  10714. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10715. $as_echo X"$ac_file" |
  10716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10717. s//\1/
  10718. q
  10719. }
  10720. /^X\(\/\/\)[^/].*/{
  10721. s//\1/
  10722. q
  10723. }
  10724. /^X\(\/\/\)$/{
  10725. s//\1/
  10726. q
  10727. }
  10728. /^X\(\/\).*/{
  10729. s//\1/
  10730. q
  10731. }
  10732. s/.*/./; q'`
  10733. as_dir="$ac_dir"; as_fn_mkdir_p
  10734. ac_builddir=.
  10735. case "$ac_dir" in
  10736. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10737. *)
  10738. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10739. # A ".." for each directory in $ac_dir_suffix.
  10740. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10741. case $ac_top_builddir_sub in
  10742. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10743. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10744. esac ;;
  10745. esac
  10746. ac_abs_top_builddir=$ac_pwd
  10747. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10748. # for backward compatibility:
  10749. ac_top_builddir=$ac_top_build_prefix
  10750. case $srcdir in
  10751. .) # We are building in place.
  10752. ac_srcdir=.
  10753. ac_top_srcdir=$ac_top_builddir_sub
  10754. ac_abs_top_srcdir=$ac_pwd ;;
  10755. [\\/]* | ?:[\\/]* ) # Absolute name.
  10756. ac_srcdir=$srcdir$ac_dir_suffix;
  10757. ac_top_srcdir=$srcdir
  10758. ac_abs_top_srcdir=$srcdir ;;
  10759. *) # Relative name.
  10760. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10761. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10762. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10763. esac
  10764. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10765. case $ac_mode in
  10766. :F)
  10767. #
  10768. # CONFIG_FILE
  10769. #
  10770. case $INSTALL in
  10771. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10772. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10773. esac
  10774. ac_MKDIR_P=$MKDIR_P
  10775. case $MKDIR_P in
  10776. [\\/$]* | ?:[\\/]* ) ;;
  10777. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10778. esac
  10779. _ACEOF
  10780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10781. # If the template does not know about datarootdir, expand it.
  10782. # FIXME: This hack should be removed a few years after 2.60.
  10783. ac_datarootdir_hack=; ac_datarootdir_seen=
  10784. ac_sed_dataroot='
  10785. /datarootdir/ {
  10786. p
  10787. q
  10788. }
  10789. /@datadir@/p
  10790. /@docdir@/p
  10791. /@infodir@/p
  10792. /@localedir@/p
  10793. /@mandir@/p'
  10794. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10795. *datarootdir*) ac_datarootdir_seen=yes;;
  10796. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10798. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10799. _ACEOF
  10800. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10801. ac_datarootdir_hack='
  10802. s&@datadir@&$datadir&g
  10803. s&@docdir@&$docdir&g
  10804. s&@infodir@&$infodir&g
  10805. s&@localedir@&$localedir&g
  10806. s&@mandir@&$mandir&g
  10807. s&\\\${datarootdir}&$datarootdir&g' ;;
  10808. esac
  10809. _ACEOF
  10810. # Neutralize VPATH when `$srcdir' = `.'.
  10811. # Shell code in configure.ac might set extrasub.
  10812. # FIXME: do we really want to maintain this feature?
  10813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10814. ac_sed_extra="$ac_vpsub
  10815. $extrasub
  10816. _ACEOF
  10817. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10818. :t
  10819. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10820. s|@configure_input@|$ac_sed_conf_input|;t t
  10821. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10822. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10823. s&@srcdir@&$ac_srcdir&;t t
  10824. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10825. s&@top_srcdir@&$ac_top_srcdir&;t t
  10826. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10827. s&@builddir@&$ac_builddir&;t t
  10828. s&@abs_builddir@&$ac_abs_builddir&;t t
  10829. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10830. s&@INSTALL@&$ac_INSTALL&;t t
  10831. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10832. $ac_datarootdir_hack
  10833. "
  10834. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10835. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10836. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10837. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10838. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10840. which seems to be undefined. Please make sure it is defined." >&5
  10841. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10842. which seems to be undefined. Please make sure it is defined." >&2;}
  10843. rm -f "$tmp/stdin"
  10844. case $ac_file in
  10845. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10846. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10847. esac \
  10848. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10849. ;;
  10850. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10851. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10852. ;;
  10853. esac
  10854. case $ac_file$ac_mode in
  10855. "default-1":C)
  10856. # Only add multilib support code if we just rebuilt the top-level
  10857. # Makefile.
  10858. case " $CONFIG_FILES " in
  10859. *" Makefile "*)
  10860. ac_file=Makefile . ${multi_basedir}/config-ml.in
  10861. ;;
  10862. esac ;;
  10863. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10864. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10865. # are listed without --file. Let's play safe and only enable the eval
  10866. # if we detect the quoting.
  10867. case $CONFIG_FILES in
  10868. *\'*) eval set x "$CONFIG_FILES" ;;
  10869. *) set x $CONFIG_FILES ;;
  10870. esac
  10871. shift
  10872. for mf
  10873. do
  10874. # Strip MF so we end up with the name of the file.
  10875. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10876. # Check whether this is an Automake generated Makefile or not.
  10877. # We used to match only the files named `Makefile.in', but
  10878. # some people rename them; so instead we look at the file content.
  10879. # Grep'ing the first line is not enough: some people post-process
  10880. # each Makefile.in and add a new line on top of each file to say so.
  10881. # Grep'ing the whole file is not good either: AIX grep has a line
  10882. # limit of 2048, but all sed's we know have understand at least 4000.
  10883. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10884. dirpart=`$as_dirname -- "$mf" ||
  10885. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10886. X"$mf" : 'X\(//\)[^/]' \| \
  10887. X"$mf" : 'X\(//\)$' \| \
  10888. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10889. $as_echo X"$mf" |
  10890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10891. s//\1/
  10892. q
  10893. }
  10894. /^X\(\/\/\)[^/].*/{
  10895. s//\1/
  10896. q
  10897. }
  10898. /^X\(\/\/\)$/{
  10899. s//\1/
  10900. q
  10901. }
  10902. /^X\(\/\).*/{
  10903. s//\1/
  10904. q
  10905. }
  10906. s/.*/./; q'`
  10907. else
  10908. continue
  10909. fi
  10910. # Extract the definition of DEPDIR, am__include, and am__quote
  10911. # from the Makefile without running `make'.
  10912. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10913. test -z "$DEPDIR" && continue
  10914. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10915. test -z "am__include" && continue
  10916. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10917. # When using ansi2knr, U may be empty or an underscore; expand it
  10918. U=`sed -n 's/^U = //p' < "$mf"`
  10919. # Find all dependency output files, they are included files with
  10920. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10921. # simplest approach to changing $(DEPDIR) to its actual value in the
  10922. # expansion.
  10923. for file in `sed -n "
  10924. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10925. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10926. # Make sure the directory exists.
  10927. test -f "$dirpart/$file" && continue
  10928. fdir=`$as_dirname -- "$file" ||
  10929. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10930. X"$file" : 'X\(//\)[^/]' \| \
  10931. X"$file" : 'X\(//\)$' \| \
  10932. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10933. $as_echo X"$file" |
  10934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10935. s//\1/
  10936. q
  10937. }
  10938. /^X\(\/\/\)[^/].*/{
  10939. s//\1/
  10940. q
  10941. }
  10942. /^X\(\/\/\)$/{
  10943. s//\1/
  10944. q
  10945. }
  10946. /^X\(\/\).*/{
  10947. s//\1/
  10948. q
  10949. }
  10950. s/.*/./; q'`
  10951. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10952. # echo "creating $dirpart/$file"
  10953. echo '# dummy' > "$dirpart/$file"
  10954. done
  10955. done
  10956. }
  10957. ;;
  10958. "libtool":C)
  10959. # See if we are running on zsh, and set the options which allow our
  10960. # commands through without removal of \ escapes.
  10961. if test -n "${ZSH_VERSION+set}" ; then
  10962. setopt NO_GLOB_SUBST
  10963. fi
  10964. cfgfile="${ofile}T"
  10965. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10966. $RM "$cfgfile"
  10967. cat <<_LT_EOF >> "$cfgfile"
  10968. #! $SHELL
  10969. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10970. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10971. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10972. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10973. #
  10974. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10975. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10976. # Written by Gordon Matzigkeit, 1996
  10977. #
  10978. # This file is part of GNU Libtool.
  10979. #
  10980. # GNU Libtool is free software; you can redistribute it and/or
  10981. # modify it under the terms of the GNU General Public License as
  10982. # published by the Free Software Foundation; either version 2 of
  10983. # the License, or (at your option) any later version.
  10984. #
  10985. # As a special exception to the GNU General Public License,
  10986. # if you distribute this file as part of a program or library that
  10987. # is built using GNU Libtool, you may include this file under the
  10988. # same distribution terms that you use for the rest of that program.
  10989. #
  10990. # GNU Libtool is distributed in the hope that it will be useful,
  10991. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10992. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10993. # GNU General Public License for more details.
  10994. #
  10995. # You should have received a copy of the GNU General Public License
  10996. # along with GNU Libtool; see the file COPYING. If not, a copy
  10997. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10998. # obtained by writing to the Free Software Foundation, Inc.,
  10999. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11000. # The names of the tagged configurations supported by this script.
  11001. available_tags=""
  11002. # ### BEGIN LIBTOOL CONFIG
  11003. # Which release of libtool.m4 was used?
  11004. macro_version=$macro_version
  11005. macro_revision=$macro_revision
  11006. # Whether or not to build shared libraries.
  11007. build_libtool_libs=$enable_shared
  11008. # Whether or not to build static libraries.
  11009. build_old_libs=$enable_static
  11010. # What type of objects to build.
  11011. pic_mode=$pic_mode
  11012. # Whether or not to optimize for fast installation.
  11013. fast_install=$enable_fast_install
  11014. # Shell to use when invoking shell scripts.
  11015. SHELL=$lt_SHELL
  11016. # An echo program that protects backslashes.
  11017. ECHO=$lt_ECHO
  11018. # The host system.
  11019. host_alias=$host_alias
  11020. host=$host
  11021. host_os=$host_os
  11022. # The build system.
  11023. build_alias=$build_alias
  11024. build=$build
  11025. build_os=$build_os
  11026. # A sed program that does not truncate output.
  11027. SED=$lt_SED
  11028. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11029. Xsed="\$SED -e 1s/^X//"
  11030. # A grep program that handles long lines.
  11031. GREP=$lt_GREP
  11032. # An ERE matcher.
  11033. EGREP=$lt_EGREP
  11034. # A literal string matcher.
  11035. FGREP=$lt_FGREP
  11036. # A BSD- or MS-compatible name lister.
  11037. NM=$lt_NM
  11038. # Whether we need soft or hard links.
  11039. LN_S=$lt_LN_S
  11040. # What is the maximum length of a command?
  11041. max_cmd_len=$max_cmd_len
  11042. # Object file suffix (normally "o").
  11043. objext=$ac_objext
  11044. # Executable file suffix (normally "").
  11045. exeext=$exeext
  11046. # whether the shell understands "unset".
  11047. lt_unset=$lt_unset
  11048. # turn spaces into newlines.
  11049. SP2NL=$lt_lt_SP2NL
  11050. # turn newlines into spaces.
  11051. NL2SP=$lt_lt_NL2SP
  11052. # An object symbol dumper.
  11053. OBJDUMP=$lt_OBJDUMP
  11054. # Method to check whether dependent libraries are shared objects.
  11055. deplibs_check_method=$lt_deplibs_check_method
  11056. # Command to use when deplibs_check_method == "file_magic".
  11057. file_magic_cmd=$lt_file_magic_cmd
  11058. # The archiver.
  11059. AR=$lt_AR
  11060. AR_FLAGS=$lt_AR_FLAGS
  11061. # A symbol stripping program.
  11062. STRIP=$lt_STRIP
  11063. # Commands used to install an old-style archive.
  11064. RANLIB=$lt_RANLIB
  11065. old_postinstall_cmds=$lt_old_postinstall_cmds
  11066. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11067. # Whether to use a lock for old archive extraction.
  11068. lock_old_archive_extraction=$lock_old_archive_extraction
  11069. # A C compiler.
  11070. LTCC=$lt_CC
  11071. # LTCC compiler flags.
  11072. LTCFLAGS=$lt_CFLAGS
  11073. # Take the output of nm and produce a listing of raw symbols and C names.
  11074. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11075. # Transform the output of nm in a proper C declaration.
  11076. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11077. # Transform the output of nm in a C name address pair.
  11078. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11079. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11080. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11081. # The name of the directory that contains temporary libtool files.
  11082. objdir=$objdir
  11083. # Used to examine libraries when file_magic_cmd begins with "file".
  11084. MAGIC_CMD=$MAGIC_CMD
  11085. # Must we lock files when doing compilation?
  11086. need_locks=$lt_need_locks
  11087. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11088. DSYMUTIL=$lt_DSYMUTIL
  11089. # Tool to change global to local symbols on Mac OS X.
  11090. NMEDIT=$lt_NMEDIT
  11091. # Tool to manipulate fat objects and archives on Mac OS X.
  11092. LIPO=$lt_LIPO
  11093. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11094. OTOOL=$lt_OTOOL
  11095. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11096. OTOOL64=$lt_OTOOL64
  11097. # Old archive suffix (normally "a").
  11098. libext=$libext
  11099. # Shared library suffix (normally ".so").
  11100. shrext_cmds=$lt_shrext_cmds
  11101. # The commands to extract the exported symbol list from a shared archive.
  11102. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11103. # Variables whose values should be saved in libtool wrapper scripts and
  11104. # restored at link time.
  11105. variables_saved_for_relink=$lt_variables_saved_for_relink
  11106. # Do we need the "lib" prefix for modules?
  11107. need_lib_prefix=$need_lib_prefix
  11108. # Do we need a version for libraries?
  11109. need_version=$need_version
  11110. # Library versioning type.
  11111. version_type=$version_type
  11112. # Shared library runtime path variable.
  11113. runpath_var=$runpath_var
  11114. # Shared library path variable.
  11115. shlibpath_var=$shlibpath_var
  11116. # Is shlibpath searched before the hard-coded library search path?
  11117. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11118. # Format of library name prefix.
  11119. libname_spec=$lt_libname_spec
  11120. # List of archive names. First name is the real one, the rest are links.
  11121. # The last name is the one that the linker finds with -lNAME
  11122. library_names_spec=$lt_library_names_spec
  11123. # The coded name of the library, if different from the real name.
  11124. soname_spec=$lt_soname_spec
  11125. # Permission mode override for installation of shared libraries.
  11126. install_override_mode=$lt_install_override_mode
  11127. # Command to use after installation of a shared archive.
  11128. postinstall_cmds=$lt_postinstall_cmds
  11129. # Command to use after uninstallation of a shared archive.
  11130. postuninstall_cmds=$lt_postuninstall_cmds
  11131. # Commands used to finish a libtool library installation in a directory.
  11132. finish_cmds=$lt_finish_cmds
  11133. # As "finish_cmds", except a single script fragment to be evaled but
  11134. # not shown.
  11135. finish_eval=$lt_finish_eval
  11136. # Whether we should hardcode library paths into libraries.
  11137. hardcode_into_libs=$hardcode_into_libs
  11138. # Compile-time system search path for libraries.
  11139. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11140. # Run-time system search path for libraries.
  11141. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11142. # Whether dlopen is supported.
  11143. dlopen_support=$enable_dlopen
  11144. # Whether dlopen of programs is supported.
  11145. dlopen_self=$enable_dlopen_self
  11146. # Whether dlopen of statically linked programs is supported.
  11147. dlopen_self_static=$enable_dlopen_self_static
  11148. # Commands to strip libraries.
  11149. old_striplib=$lt_old_striplib
  11150. striplib=$lt_striplib
  11151. # The linker used to build libraries.
  11152. LD=$lt_LD
  11153. # How to create reloadable object files.
  11154. reload_flag=$lt_reload_flag
  11155. reload_cmds=$lt_reload_cmds
  11156. # Commands used to build an old-style archive.
  11157. old_archive_cmds=$lt_old_archive_cmds
  11158. # A language specific compiler.
  11159. CC=$lt_compiler
  11160. # Is the compiler the GNU compiler?
  11161. with_gcc=$GCC
  11162. # Compiler flag to turn off builtin functions.
  11163. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11164. # How to pass a linker flag through the compiler.
  11165. wl=$lt_lt_prog_compiler_wl
  11166. # Additional compiler flags for building library objects.
  11167. pic_flag=$lt_lt_prog_compiler_pic
  11168. # Compiler flag to prevent dynamic linking.
  11169. link_static_flag=$lt_lt_prog_compiler_static
  11170. # Does compiler simultaneously support -c and -o options?
  11171. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11172. # Whether or not to add -lc for building shared libraries.
  11173. build_libtool_need_lc=$archive_cmds_need_lc
  11174. # Whether or not to disallow shared libs when runtime libs are static.
  11175. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11176. # Compiler flag to allow reflexive dlopens.
  11177. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11178. # Compiler flag to generate shared objects directly from archives.
  11179. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11180. # Whether the compiler copes with passing no objects directly.
  11181. compiler_needs_object=$lt_compiler_needs_object
  11182. # Create an old-style archive from a shared archive.
  11183. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11184. # Create a temporary old-style archive to link instead of a shared archive.
  11185. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11186. # Commands used to build a shared archive.
  11187. archive_cmds=$lt_archive_cmds
  11188. archive_expsym_cmds=$lt_archive_expsym_cmds
  11189. # Commands used to build a loadable module if different from building
  11190. # a shared archive.
  11191. module_cmds=$lt_module_cmds
  11192. module_expsym_cmds=$lt_module_expsym_cmds
  11193. # Whether we are building with GNU ld or not.
  11194. with_gnu_ld=$lt_with_gnu_ld
  11195. # Flag that allows shared libraries with undefined symbols to be built.
  11196. allow_undefined_flag=$lt_allow_undefined_flag
  11197. # Flag that enforces no undefined symbols.
  11198. no_undefined_flag=$lt_no_undefined_flag
  11199. # Flag to hardcode \$libdir into a binary during linking.
  11200. # This must work even if \$libdir does not exist
  11201. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11202. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11203. # during linking. This must work even if \$libdir does not exist.
  11204. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11205. # Whether we need a single "-rpath" flag with a separated argument.
  11206. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11207. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11208. # DIR into the resulting binary.
  11209. hardcode_direct=$hardcode_direct
  11210. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11211. # DIR into the resulting binary and the resulting library dependency is
  11212. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11213. # library is relocated.
  11214. hardcode_direct_absolute=$hardcode_direct_absolute
  11215. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11216. # into the resulting binary.
  11217. hardcode_minus_L=$hardcode_minus_L
  11218. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11219. # into the resulting binary.
  11220. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11221. # Set to "yes" if building a shared library automatically hardcodes DIR
  11222. # into the library and all subsequent libraries and executables linked
  11223. # against it.
  11224. hardcode_automatic=$hardcode_automatic
  11225. # Set to yes if linker adds runtime paths of dependent libraries
  11226. # to runtime path list.
  11227. inherit_rpath=$inherit_rpath
  11228. # Whether libtool must link a program against all its dependency libraries.
  11229. link_all_deplibs=$link_all_deplibs
  11230. # Fix the shell variable \$srcfile for the compiler.
  11231. fix_srcfile_path=$lt_fix_srcfile_path
  11232. # Set to "yes" if exported symbols are required.
  11233. always_export_symbols=$always_export_symbols
  11234. # The commands to list exported symbols.
  11235. export_symbols_cmds=$lt_export_symbols_cmds
  11236. # Symbols that should not be listed in the preloaded symbols.
  11237. exclude_expsyms=$lt_exclude_expsyms
  11238. # Symbols that must always be exported.
  11239. include_expsyms=$lt_include_expsyms
  11240. # Commands necessary for linking programs (against libraries) with templates.
  11241. prelink_cmds=$lt_prelink_cmds
  11242. # Specify filename containing input files.
  11243. file_list_spec=$lt_file_list_spec
  11244. # How to hardcode a shared library path into an executable.
  11245. hardcode_action=$hardcode_action
  11246. # ### END LIBTOOL CONFIG
  11247. _LT_EOF
  11248. case $host_os in
  11249. aix3*)
  11250. cat <<\_LT_EOF >> "$cfgfile"
  11251. # AIX sometimes has problems with the GCC collect2 program. For some
  11252. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11253. # vanish in a puff of smoke.
  11254. if test "X${COLLECT_NAMES+set}" != Xset; then
  11255. COLLECT_NAMES=
  11256. export COLLECT_NAMES
  11257. fi
  11258. _LT_EOF
  11259. ;;
  11260. esac
  11261. ltmain="$ac_aux_dir/ltmain.sh"
  11262. # We use sed instead of cat because bash on DJGPP gets confused if
  11263. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11264. # text mode, it properly converts lines to CR/LF. This bash problem
  11265. # is reportedly fixed, but why not run on old versions too?
  11266. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11267. || (rm -f "$cfgfile"; exit 1)
  11268. case $xsi_shell in
  11269. yes)
  11270. cat << \_LT_EOF >> "$cfgfile"
  11271. # func_dirname file append nondir_replacement
  11272. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11273. # otherwise set result to NONDIR_REPLACEMENT.
  11274. func_dirname ()
  11275. {
  11276. case ${1} in
  11277. */*) func_dirname_result="${1%/*}${2}" ;;
  11278. * ) func_dirname_result="${3}" ;;
  11279. esac
  11280. }
  11281. # func_basename file
  11282. func_basename ()
  11283. {
  11284. func_basename_result="${1##*/}"
  11285. }
  11286. # func_dirname_and_basename file append nondir_replacement
  11287. # perform func_basename and func_dirname in a single function
  11288. # call:
  11289. # dirname: Compute the dirname of FILE. If nonempty,
  11290. # add APPEND to the result, otherwise set result
  11291. # to NONDIR_REPLACEMENT.
  11292. # value returned in "$func_dirname_result"
  11293. # basename: Compute filename of FILE.
  11294. # value retuned in "$func_basename_result"
  11295. # Implementation must be kept synchronized with func_dirname
  11296. # and func_basename. For efficiency, we do not delegate to
  11297. # those functions but instead duplicate the functionality here.
  11298. func_dirname_and_basename ()
  11299. {
  11300. case ${1} in
  11301. */*) func_dirname_result="${1%/*}${2}" ;;
  11302. * ) func_dirname_result="${3}" ;;
  11303. esac
  11304. func_basename_result="${1##*/}"
  11305. }
  11306. # func_stripname prefix suffix name
  11307. # strip PREFIX and SUFFIX off of NAME.
  11308. # PREFIX and SUFFIX must not contain globbing or regex special
  11309. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11310. # dot (in which case that matches only a dot).
  11311. func_stripname ()
  11312. {
  11313. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11314. # positional parameters, so assign one to ordinary parameter first.
  11315. func_stripname_result=${3}
  11316. func_stripname_result=${func_stripname_result#"${1}"}
  11317. func_stripname_result=${func_stripname_result%"${2}"}
  11318. }
  11319. # func_opt_split
  11320. func_opt_split ()
  11321. {
  11322. func_opt_split_opt=${1%%=*}
  11323. func_opt_split_arg=${1#*=}
  11324. }
  11325. # func_lo2o object
  11326. func_lo2o ()
  11327. {
  11328. case ${1} in
  11329. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11330. *) func_lo2o_result=${1} ;;
  11331. esac
  11332. }
  11333. # func_xform libobj-or-source
  11334. func_xform ()
  11335. {
  11336. func_xform_result=${1%.*}.lo
  11337. }
  11338. # func_arith arithmetic-term...
  11339. func_arith ()
  11340. {
  11341. func_arith_result=$(( $* ))
  11342. }
  11343. # func_len string
  11344. # STRING may not start with a hyphen.
  11345. func_len ()
  11346. {
  11347. func_len_result=${#1}
  11348. }
  11349. _LT_EOF
  11350. ;;
  11351. *) # Bourne compatible functions.
  11352. cat << \_LT_EOF >> "$cfgfile"
  11353. # func_dirname file append nondir_replacement
  11354. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11355. # otherwise set result to NONDIR_REPLACEMENT.
  11356. func_dirname ()
  11357. {
  11358. # Extract subdirectory from the argument.
  11359. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11360. if test "X$func_dirname_result" = "X${1}"; then
  11361. func_dirname_result="${3}"
  11362. else
  11363. func_dirname_result="$func_dirname_result${2}"
  11364. fi
  11365. }
  11366. # func_basename file
  11367. func_basename ()
  11368. {
  11369. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11370. }
  11371. # func_stripname prefix suffix name
  11372. # strip PREFIX and SUFFIX off of NAME.
  11373. # PREFIX and SUFFIX must not contain globbing or regex special
  11374. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11375. # dot (in which case that matches only a dot).
  11376. # func_strip_suffix prefix name
  11377. func_stripname ()
  11378. {
  11379. case ${2} in
  11380. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11381. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11382. esac
  11383. }
  11384. # sed scripts:
  11385. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11386. my_sed_long_arg='1s/^-[^=]*=//'
  11387. # func_opt_split
  11388. func_opt_split ()
  11389. {
  11390. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11391. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11392. }
  11393. # func_lo2o object
  11394. func_lo2o ()
  11395. {
  11396. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11397. }
  11398. # func_xform libobj-or-source
  11399. func_xform ()
  11400. {
  11401. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11402. }
  11403. # func_arith arithmetic-term...
  11404. func_arith ()
  11405. {
  11406. func_arith_result=`expr "$@"`
  11407. }
  11408. # func_len string
  11409. # STRING may not start with a hyphen.
  11410. func_len ()
  11411. {
  11412. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11413. }
  11414. _LT_EOF
  11415. esac
  11416. case $lt_shell_append in
  11417. yes)
  11418. cat << \_LT_EOF >> "$cfgfile"
  11419. # func_append var value
  11420. # Append VALUE to the end of shell variable VAR.
  11421. func_append ()
  11422. {
  11423. eval "$1+=\$2"
  11424. }
  11425. _LT_EOF
  11426. ;;
  11427. *)
  11428. cat << \_LT_EOF >> "$cfgfile"
  11429. # func_append var value
  11430. # Append VALUE to the end of shell variable VAR.
  11431. func_append ()
  11432. {
  11433. eval "$1=\$$1\$2"
  11434. }
  11435. _LT_EOF
  11436. ;;
  11437. esac
  11438. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11439. || (rm -f "$cfgfile"; exit 1)
  11440. mv -f "$cfgfile" "$ofile" ||
  11441. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11442. chmod +x "$ofile"
  11443. ;;
  11444. esac
  11445. done # for ac_tag
  11446. as_fn_exit 0
  11447. _ACEOF
  11448. ac_clean_files=$ac_clean_files_save
  11449. test $ac_write_fail = 0 ||
  11450. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11451. # configure is writing to config.log, and then calls config.status.
  11452. # config.status does its own redirection, appending to config.log.
  11453. # Unfortunately, on DOS this fails, as config.log is still kept open
  11454. # by configure, so config.status won't be able to write to it; its
  11455. # output is simply discarded. So we exec the FD to /dev/null,
  11456. # effectively closing config.log, so it can be properly (re)opened and
  11457. # appended to by config.status. When coming back to configure, we
  11458. # need to make the FD available again.
  11459. if test "$no_create" != yes; then
  11460. ac_cs_success=:
  11461. ac_config_status_args=
  11462. test "$silent" = yes &&
  11463. ac_config_status_args="$ac_config_status_args --quiet"
  11464. exec 5>/dev/null
  11465. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11466. exec 5>>config.log
  11467. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11468. # would make configure fail if this is the last instruction.
  11469. $ac_cs_success || as_fn_exit $?
  11470. fi
  11471. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11473. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11474. fi