configure 386 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
  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='LTO plugin for ld'
  509. PACKAGE_TARNAME='lto-plugin'
  510. PACKAGE_VERSION='0.1'
  511. PACKAGE_STRING='LTO plugin for ld 0.1'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. target_noncanonical
  554. lt_host_flags
  555. CPP
  556. OTOOL64
  557. OTOOL
  558. LIPO
  559. NMEDIT
  560. DSYMUTIL
  561. RANLIB
  562. AR
  563. OBJDUMP
  564. LN_S
  565. NM
  566. ac_ct_DUMPBIN
  567. DUMPBIN
  568. LD
  569. FGREP
  570. EGREP
  571. GREP
  572. SED
  573. LIBTOOL
  574. real_target_noncanonical
  575. accel_dir_suffix
  576. gcc_build_dir
  577. ac_lto_plugin_ldflags
  578. ac_lto_plugin_warn_cflags
  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. with_libiberty
  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. target_subdir
  623. host_subdir
  624. build_subdir
  625. build_libsubdir
  626. target_os
  627. target_vendor
  628. target_cpu
  629. target
  630. host_os
  631. host_vendor
  632. host_cpu
  633. host
  634. build_os
  635. build_vendor
  636. build_cpu
  637. build
  638. target_alias
  639. host_alias
  640. build_alias
  641. LIBS
  642. ECHO_T
  643. ECHO_N
  644. ECHO_C
  645. DEFS
  646. mandir
  647. localedir
  648. libdir
  649. psdir
  650. pdfdir
  651. dvidir
  652. htmldir
  653. infodir
  654. docdir
  655. oldincludedir
  656. includedir
  657. localstatedir
  658. sharedstatedir
  659. sysconfdir
  660. datadir
  661. datarootdir
  662. libexecdir
  663. sbindir
  664. bindir
  665. program_transform_name
  666. prefix
  667. exec_prefix
  668. PACKAGE_URL
  669. PACKAGE_BUGREPORT
  670. PACKAGE_STRING
  671. PACKAGE_VERSION
  672. PACKAGE_TARNAME
  673. PACKAGE_NAME
  674. PATH_SEPARATOR
  675. SHELL'
  676. ac_subst_files=''
  677. ac_user_opts='
  678. enable_option_checking
  679. with_build_libsubdir
  680. enable_maintainer_mode
  681. with_libiberty
  682. enable_dependency_tracking
  683. enable_largefile
  684. enable_shared
  685. enable_static
  686. with_pic
  687. enable_fast_install
  688. with_gnu_ld
  689. enable_libtool_lock
  690. '
  691. ac_precious_vars='build_alias
  692. host_alias
  693. target_alias
  694. CC
  695. CFLAGS
  696. LDFLAGS
  697. LIBS
  698. CPPFLAGS
  699. CPP'
  700. # Initialize some variables set by options.
  701. ac_init_help=
  702. ac_init_version=false
  703. ac_unrecognized_opts=
  704. ac_unrecognized_sep=
  705. # The variables have the same names as the options, with
  706. # dashes changed to underlines.
  707. cache_file=/dev/null
  708. exec_prefix=NONE
  709. no_create=
  710. no_recursion=
  711. prefix=NONE
  712. program_prefix=NONE
  713. program_suffix=NONE
  714. program_transform_name=s,x,x,
  715. silent=
  716. site=
  717. srcdir=
  718. verbose=
  719. x_includes=NONE
  720. x_libraries=NONE
  721. # Installation directory options.
  722. # These are left unexpanded so users can "make install exec_prefix=/foo"
  723. # and all the variables that are supposed to be based on exec_prefix
  724. # by default will actually change.
  725. # Use braces instead of parens because sh, perl, etc. also accept them.
  726. # (The list follows the same order as the GNU Coding Standards.)
  727. bindir='${exec_prefix}/bin'
  728. sbindir='${exec_prefix}/sbin'
  729. libexecdir='${exec_prefix}/libexec'
  730. datarootdir='${prefix}/share'
  731. datadir='${datarootdir}'
  732. sysconfdir='${prefix}/etc'
  733. sharedstatedir='${prefix}/com'
  734. localstatedir='${prefix}/var'
  735. includedir='${prefix}/include'
  736. oldincludedir='/usr/include'
  737. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  738. infodir='${datarootdir}/info'
  739. htmldir='${docdir}'
  740. dvidir='${docdir}'
  741. pdfdir='${docdir}'
  742. psdir='${docdir}'
  743. libdir='${exec_prefix}/lib'
  744. localedir='${datarootdir}/locale'
  745. mandir='${datarootdir}/man'
  746. ac_prev=
  747. ac_dashdash=
  748. for ac_option
  749. do
  750. # If the previous option needs an argument, assign it.
  751. if test -n "$ac_prev"; then
  752. eval $ac_prev=\$ac_option
  753. ac_prev=
  754. continue
  755. fi
  756. case $ac_option in
  757. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  758. *) ac_optarg=yes ;;
  759. esac
  760. # Accept the important Cygnus configure options, so we can diagnose typos.
  761. case $ac_dashdash$ac_option in
  762. --)
  763. ac_dashdash=yes ;;
  764. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  765. ac_prev=bindir ;;
  766. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  767. bindir=$ac_optarg ;;
  768. -build | --build | --buil | --bui | --bu)
  769. ac_prev=build_alias ;;
  770. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  771. build_alias=$ac_optarg ;;
  772. -cache-file | --cache-file | --cache-fil | --cache-fi \
  773. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  774. ac_prev=cache_file ;;
  775. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  776. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  777. cache_file=$ac_optarg ;;
  778. --config-cache | -C)
  779. cache_file=config.cache ;;
  780. -datadir | --datadir | --datadi | --datad)
  781. ac_prev=datadir ;;
  782. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  783. datadir=$ac_optarg ;;
  784. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  785. | --dataroo | --dataro | --datar)
  786. ac_prev=datarootdir ;;
  787. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  788. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  789. datarootdir=$ac_optarg ;;
  790. -disable-* | --disable-*)
  791. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  792. # Reject names that are not valid shell variable names.
  793. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  794. as_fn_error "invalid feature name: $ac_useropt"
  795. ac_useropt_orig=$ac_useropt
  796. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  797. case $ac_user_opts in
  798. *"
  799. "enable_$ac_useropt"
  800. "*) ;;
  801. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  802. ac_unrecognized_sep=', ';;
  803. esac
  804. eval enable_$ac_useropt=no ;;
  805. -docdir | --docdir | --docdi | --doc | --do)
  806. ac_prev=docdir ;;
  807. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  808. docdir=$ac_optarg ;;
  809. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  810. ac_prev=dvidir ;;
  811. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  812. dvidir=$ac_optarg ;;
  813. -enable-* | --enable-*)
  814. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  817. as_fn_error "invalid feature name: $ac_useropt"
  818. ac_useropt_orig=$ac_useropt
  819. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  820. case $ac_user_opts in
  821. *"
  822. "enable_$ac_useropt"
  823. "*) ;;
  824. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  825. ac_unrecognized_sep=', ';;
  826. esac
  827. eval enable_$ac_useropt=\$ac_optarg ;;
  828. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  829. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  830. | --exec | --exe | --ex)
  831. ac_prev=exec_prefix ;;
  832. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  833. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  834. | --exec=* | --exe=* | --ex=*)
  835. exec_prefix=$ac_optarg ;;
  836. -gas | --gas | --ga | --g)
  837. # Obsolete; use --with-gas.
  838. with_gas=yes ;;
  839. -help | --help | --hel | --he | -h)
  840. ac_init_help=long ;;
  841. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  842. ac_init_help=recursive ;;
  843. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  844. ac_init_help=short ;;
  845. -host | --host | --hos | --ho)
  846. ac_prev=host_alias ;;
  847. -host=* | --host=* | --hos=* | --ho=*)
  848. host_alias=$ac_optarg ;;
  849. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  850. ac_prev=htmldir ;;
  851. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  852. | --ht=*)
  853. htmldir=$ac_optarg ;;
  854. -includedir | --includedir | --includedi | --included | --include \
  855. | --includ | --inclu | --incl | --inc)
  856. ac_prev=includedir ;;
  857. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  858. | --includ=* | --inclu=* | --incl=* | --inc=*)
  859. includedir=$ac_optarg ;;
  860. -infodir | --infodir | --infodi | --infod | --info | --inf)
  861. ac_prev=infodir ;;
  862. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  863. infodir=$ac_optarg ;;
  864. -libdir | --libdir | --libdi | --libd)
  865. ac_prev=libdir ;;
  866. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  867. libdir=$ac_optarg ;;
  868. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  869. | --libexe | --libex | --libe)
  870. ac_prev=libexecdir ;;
  871. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  872. | --libexe=* | --libex=* | --libe=*)
  873. libexecdir=$ac_optarg ;;
  874. -localedir | --localedir | --localedi | --localed | --locale)
  875. ac_prev=localedir ;;
  876. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  877. localedir=$ac_optarg ;;
  878. -localstatedir | --localstatedir | --localstatedi | --localstated \
  879. | --localstate | --localstat | --localsta | --localst | --locals)
  880. ac_prev=localstatedir ;;
  881. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  882. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  883. localstatedir=$ac_optarg ;;
  884. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  885. ac_prev=mandir ;;
  886. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  887. mandir=$ac_optarg ;;
  888. -nfp | --nfp | --nf)
  889. # Obsolete; use --without-fp.
  890. with_fp=no ;;
  891. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  892. | --no-cr | --no-c | -n)
  893. no_create=yes ;;
  894. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  895. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  896. no_recursion=yes ;;
  897. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  898. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  899. | --oldin | --oldi | --old | --ol | --o)
  900. ac_prev=oldincludedir ;;
  901. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  902. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  903. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  904. oldincludedir=$ac_optarg ;;
  905. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  906. ac_prev=prefix ;;
  907. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  908. prefix=$ac_optarg ;;
  909. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  910. | --program-pre | --program-pr | --program-p)
  911. ac_prev=program_prefix ;;
  912. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  913. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  914. program_prefix=$ac_optarg ;;
  915. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  916. | --program-suf | --program-su | --program-s)
  917. ac_prev=program_suffix ;;
  918. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  919. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  920. program_suffix=$ac_optarg ;;
  921. -program-transform-name | --program-transform-name \
  922. | --program-transform-nam | --program-transform-na \
  923. | --program-transform-n | --program-transform- \
  924. | --program-transform | --program-transfor \
  925. | --program-transfo | --program-transf \
  926. | --program-trans | --program-tran \
  927. | --progr-tra | --program-tr | --program-t)
  928. ac_prev=program_transform_name ;;
  929. -program-transform-name=* | --program-transform-name=* \
  930. | --program-transform-nam=* | --program-transform-na=* \
  931. | --program-transform-n=* | --program-transform-=* \
  932. | --program-transform=* | --program-transfor=* \
  933. | --program-transfo=* | --program-transf=* \
  934. | --program-trans=* | --program-tran=* \
  935. | --progr-tra=* | --program-tr=* | --program-t=*)
  936. program_transform_name=$ac_optarg ;;
  937. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  938. ac_prev=pdfdir ;;
  939. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  940. pdfdir=$ac_optarg ;;
  941. -psdir | --psdir | --psdi | --psd | --ps)
  942. ac_prev=psdir ;;
  943. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  944. psdir=$ac_optarg ;;
  945. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  946. | -silent | --silent | --silen | --sile | --sil)
  947. silent=yes ;;
  948. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  949. ac_prev=sbindir ;;
  950. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  951. | --sbi=* | --sb=*)
  952. sbindir=$ac_optarg ;;
  953. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  954. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  955. | --sharedst | --shareds | --shared | --share | --shar \
  956. | --sha | --sh)
  957. ac_prev=sharedstatedir ;;
  958. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  959. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  960. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  961. | --sha=* | --sh=*)
  962. sharedstatedir=$ac_optarg ;;
  963. -site | --site | --sit)
  964. ac_prev=site ;;
  965. -site=* | --site=* | --sit=*)
  966. site=$ac_optarg ;;
  967. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  968. ac_prev=srcdir ;;
  969. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  970. srcdir=$ac_optarg ;;
  971. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  972. | --syscon | --sysco | --sysc | --sys | --sy)
  973. ac_prev=sysconfdir ;;
  974. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  975. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  976. sysconfdir=$ac_optarg ;;
  977. -target | --target | --targe | --targ | --tar | --ta | --t)
  978. ac_prev=target_alias ;;
  979. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  980. target_alias=$ac_optarg ;;
  981. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  982. verbose=yes ;;
  983. -version | --version | --versio | --versi | --vers | -V)
  984. ac_init_version=: ;;
  985. -with-* | --with-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error "invalid package name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "with_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval with_$ac_useropt=\$ac_optarg ;;
  1000. -without-* | --without-*)
  1001. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1002. # Reject names that are not valid shell variable names.
  1003. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1004. as_fn_error "invalid package name: $ac_useropt"
  1005. ac_useropt_orig=$ac_useropt
  1006. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1007. case $ac_user_opts in
  1008. *"
  1009. "with_$ac_useropt"
  1010. "*) ;;
  1011. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1012. ac_unrecognized_sep=', ';;
  1013. esac
  1014. eval with_$ac_useropt=no ;;
  1015. --x)
  1016. # Obsolete; use --with-x.
  1017. with_x=yes ;;
  1018. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1019. | --x-incl | --x-inc | --x-in | --x-i)
  1020. ac_prev=x_includes ;;
  1021. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1022. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1023. x_includes=$ac_optarg ;;
  1024. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1025. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1026. ac_prev=x_libraries ;;
  1027. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1028. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1029. x_libraries=$ac_optarg ;;
  1030. -*) as_fn_error "unrecognized option: \`$ac_option'
  1031. Try \`$0 --help' for more information."
  1032. ;;
  1033. *=*)
  1034. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1035. # Reject names that are not valid shell variable names.
  1036. case $ac_envvar in #(
  1037. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1038. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1039. esac
  1040. eval $ac_envvar=\$ac_optarg
  1041. export $ac_envvar ;;
  1042. *)
  1043. # FIXME: should be removed in autoconf 3.0.
  1044. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1045. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1046. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1047. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1048. ;;
  1049. esac
  1050. done
  1051. if test -n "$ac_prev"; then
  1052. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1053. as_fn_error "missing argument to $ac_option"
  1054. fi
  1055. if test -n "$ac_unrecognized_opts"; then
  1056. case $enable_option_checking in
  1057. no) ;;
  1058. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1059. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1060. esac
  1061. fi
  1062. # Check all directory arguments for consistency.
  1063. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1064. datadir sysconfdir sharedstatedir localstatedir includedir \
  1065. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1066. libdir localedir mandir
  1067. do
  1068. eval ac_val=\$$ac_var
  1069. # Remove trailing slashes.
  1070. case $ac_val in
  1071. */ )
  1072. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1073. eval $ac_var=\$ac_val;;
  1074. esac
  1075. # Be sure to have absolute directory names.
  1076. case $ac_val in
  1077. [\\/$]* | ?:[\\/]* ) continue;;
  1078. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1079. esac
  1080. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1081. done
  1082. # There might be people who depend on the old broken behavior: `$host'
  1083. # used to hold the argument of --host etc.
  1084. # FIXME: To remove some day.
  1085. build=$build_alias
  1086. host=$host_alias
  1087. target=$target_alias
  1088. # FIXME: To remove some day.
  1089. if test "x$host_alias" != x; then
  1090. if test "x$build_alias" = x; then
  1091. cross_compiling=maybe
  1092. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1093. If a cross compiler is detected then cross compile mode will be used." >&2
  1094. elif test "x$build_alias" != "x$host_alias"; then
  1095. cross_compiling=yes
  1096. fi
  1097. fi
  1098. ac_tool_prefix=
  1099. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1100. test "$silent" = yes && exec 6>/dev/null
  1101. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1102. ac_ls_di=`ls -di .` &&
  1103. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1104. as_fn_error "working directory cannot be determined"
  1105. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1106. as_fn_error "pwd does not report name of working directory"
  1107. # Find the source files, if location was not specified.
  1108. if test -z "$srcdir"; then
  1109. ac_srcdir_defaulted=yes
  1110. # Try the directory containing this script, then the parent directory.
  1111. ac_confdir=`$as_dirname -- "$as_myself" ||
  1112. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1113. X"$as_myself" : 'X\(//\)[^/]' \| \
  1114. X"$as_myself" : 'X\(//\)$' \| \
  1115. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1116. $as_echo X"$as_myself" |
  1117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\/\)[^/].*/{
  1122. s//\1/
  1123. q
  1124. }
  1125. /^X\(\/\/\)$/{
  1126. s//\1/
  1127. q
  1128. }
  1129. /^X\(\/\).*/{
  1130. s//\1/
  1131. q
  1132. }
  1133. s/.*/./; q'`
  1134. srcdir=$ac_confdir
  1135. if test ! -r "$srcdir/$ac_unique_file"; then
  1136. srcdir=..
  1137. fi
  1138. else
  1139. ac_srcdir_defaulted=no
  1140. fi
  1141. if test ! -r "$srcdir/$ac_unique_file"; then
  1142. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1143. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1144. fi
  1145. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1146. ac_abs_confdir=`(
  1147. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1148. pwd)`
  1149. # When building in place, set srcdir=.
  1150. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1151. srcdir=.
  1152. fi
  1153. # Remove unnecessary trailing slashes from srcdir.
  1154. # Double slashes in file names in object file debugging info
  1155. # mess up M-x gdb in Emacs.
  1156. case $srcdir in
  1157. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1158. esac
  1159. for ac_var in $ac_precious_vars; do
  1160. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1161. eval ac_env_${ac_var}_value=\$${ac_var}
  1162. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1163. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1164. done
  1165. #
  1166. # Report the --help message.
  1167. #
  1168. if test "$ac_init_help" = "long"; then
  1169. # Omit some internal or obsolete options to make the list less imposing.
  1170. # This message is too long to be a string in the A/UX 3.1 sh.
  1171. cat <<_ACEOF
  1172. \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
  1173. Usage: $0 [OPTION]... [VAR=VALUE]...
  1174. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1175. VAR=VALUE. See below for descriptions of some of the useful variables.
  1176. Defaults for the options are specified in brackets.
  1177. Configuration:
  1178. -h, --help display this help and exit
  1179. --help=short display options specific to this package
  1180. --help=recursive display the short help of all the included packages
  1181. -V, --version display version information and exit
  1182. -q, --quiet, --silent do not print \`checking...' messages
  1183. --cache-file=FILE cache test results in FILE [disabled]
  1184. -C, --config-cache alias for \`--cache-file=config.cache'
  1185. -n, --no-create do not create output files
  1186. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1187. Installation directories:
  1188. --prefix=PREFIX install architecture-independent files in PREFIX
  1189. [$ac_default_prefix]
  1190. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1191. [PREFIX]
  1192. By default, \`make install' will install all the files in
  1193. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1194. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1195. for instance \`--prefix=\$HOME'.
  1196. For better control, use the options below.
  1197. Fine tuning of the installation directories:
  1198. --bindir=DIR user executables [EPREFIX/bin]
  1199. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1200. --libexecdir=DIR program executables [EPREFIX/libexec]
  1201. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1202. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1203. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1204. --libdir=DIR object code libraries [EPREFIX/lib]
  1205. --includedir=DIR C header files [PREFIX/include]
  1206. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1207. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1208. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1209. --infodir=DIR info documentation [DATAROOTDIR/info]
  1210. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1211. --mandir=DIR man documentation [DATAROOTDIR/man]
  1212. --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
  1213. --htmldir=DIR html documentation [DOCDIR]
  1214. --dvidir=DIR dvi documentation [DOCDIR]
  1215. --pdfdir=DIR pdf documentation [DOCDIR]
  1216. --psdir=DIR ps documentation [DOCDIR]
  1217. _ACEOF
  1218. cat <<\_ACEOF
  1219. Program names:
  1220. --program-prefix=PREFIX prepend PREFIX to installed program names
  1221. --program-suffix=SUFFIX append SUFFIX to installed program names
  1222. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1223. System types:
  1224. --build=BUILD configure for building on BUILD [guessed]
  1225. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1226. --target=TARGET configure for building compilers for TARGET [HOST]
  1227. _ACEOF
  1228. fi
  1229. if test -n "$ac_init_help"; then
  1230. case $ac_init_help in
  1231. short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
  1232. esac
  1233. cat <<\_ACEOF
  1234. Optional Features:
  1235. --disable-option-checking ignore unrecognized --enable/--with options
  1236. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1237. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1238. --enable-maintainer-mode enable make rules and dependencies not useful
  1239. (and sometimes confusing) to the casual installer
  1240. --disable-dependency-tracking speeds up one-time build
  1241. --enable-dependency-tracking do not reject slow dependency extractors
  1242. --disable-largefile omit support for large files
  1243. --enable-shared[=PKGS] build shared libraries [default=yes]
  1244. --enable-static[=PKGS] build static libraries [default=yes]
  1245. --enable-fast-install[=PKGS]
  1246. optimize for fast installation [default=yes]
  1247. --disable-libtool-lock avoid locking (might break parallel builds)
  1248. Optional Packages:
  1249. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1250. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1251. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1252. --with-libiberty=PATH specify the directory where to find libiberty
  1253. [../libiberty]
  1254. --with-pic try to use only PIC/non-PIC objects [default=use
  1255. both]
  1256. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1257. Some influential environment variables:
  1258. CC C compiler command
  1259. CFLAGS C compiler flags
  1260. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1261. nonstandard directory <lib dir>
  1262. LIBS libraries to pass to the linker, e.g. -l<library>
  1263. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1264. you have headers in a nonstandard directory <include dir>
  1265. CPP C preprocessor
  1266. Use these variables to override the choices made by `configure' or to help
  1267. it to find libraries and programs with nonstandard names/locations.
  1268. Report bugs to the package provider.
  1269. _ACEOF
  1270. ac_status=$?
  1271. fi
  1272. if test "$ac_init_help" = "recursive"; then
  1273. # If there are subdirs, report their specific --help.
  1274. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1275. test -d "$ac_dir" ||
  1276. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1277. continue
  1278. ac_builddir=.
  1279. case "$ac_dir" in
  1280. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1281. *)
  1282. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1283. # A ".." for each directory in $ac_dir_suffix.
  1284. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1285. case $ac_top_builddir_sub in
  1286. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1287. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1288. esac ;;
  1289. esac
  1290. ac_abs_top_builddir=$ac_pwd
  1291. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1292. # for backward compatibility:
  1293. ac_top_builddir=$ac_top_build_prefix
  1294. case $srcdir in
  1295. .) # We are building in place.
  1296. ac_srcdir=.
  1297. ac_top_srcdir=$ac_top_builddir_sub
  1298. ac_abs_top_srcdir=$ac_pwd ;;
  1299. [\\/]* | ?:[\\/]* ) # Absolute name.
  1300. ac_srcdir=$srcdir$ac_dir_suffix;
  1301. ac_top_srcdir=$srcdir
  1302. ac_abs_top_srcdir=$srcdir ;;
  1303. *) # Relative name.
  1304. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1305. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1306. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1307. esac
  1308. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1309. cd "$ac_dir" || { ac_status=$?; continue; }
  1310. # Check for guested configure.
  1311. if test -f "$ac_srcdir/configure.gnu"; then
  1312. echo &&
  1313. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1314. elif test -f "$ac_srcdir/configure"; then
  1315. echo &&
  1316. $SHELL "$ac_srcdir/configure" --help=recursive
  1317. else
  1318. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1319. fi || ac_status=$?
  1320. cd "$ac_pwd" || { ac_status=$?; break; }
  1321. done
  1322. fi
  1323. test -n "$ac_init_help" && exit $ac_status
  1324. if $ac_init_version; then
  1325. cat <<\_ACEOF
  1326. LTO plugin for ld configure 0.1
  1327. generated by GNU Autoconf 2.64
  1328. Copyright (C) 2009 Free Software Foundation, Inc.
  1329. This configure script is free software; the Free Software Foundation
  1330. gives unlimited permission to copy, distribute and modify it.
  1331. _ACEOF
  1332. exit
  1333. fi
  1334. ## ------------------------ ##
  1335. ## Autoconf initialization. ##
  1336. ## ------------------------ ##
  1337. # ac_fn_c_try_compile LINENO
  1338. # --------------------------
  1339. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_compile ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext
  1344. if { { ac_try="$ac_compile"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_compile") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest.$ac_objext; then :
  1363. ac_retval=0
  1364. else
  1365. $as_echo "$as_me: failed program was:" >&5
  1366. sed 's/^/| /' conftest.$ac_ext >&5
  1367. ac_retval=1
  1368. fi
  1369. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1370. return $ac_retval
  1371. } # ac_fn_c_try_compile
  1372. # ac_fn_c_try_link LINENO
  1373. # -----------------------
  1374. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_c_try_link ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. rm -f conftest.$ac_objext conftest$ac_exeext
  1379. if { { ac_try="$ac_link"
  1380. case "(($ac_try" in
  1381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1382. *) ac_try_echo=$ac_try;;
  1383. esac
  1384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1385. $as_echo "$ac_try_echo"; } >&5
  1386. (eval "$ac_link") 2>conftest.err
  1387. ac_status=$?
  1388. if test -s conftest.err; then
  1389. grep -v '^ *+' conftest.err >conftest.er1
  1390. cat conftest.er1 >&5
  1391. mv -f conftest.er1 conftest.err
  1392. fi
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; } && {
  1395. test -z "$ac_c_werror_flag" ||
  1396. test ! -s conftest.err
  1397. } && test -s conftest$ac_exeext && {
  1398. test "$cross_compiling" = yes ||
  1399. $as_test_x conftest$ac_exeext
  1400. }; then :
  1401. ac_retval=0
  1402. else
  1403. $as_echo "$as_me: failed program was:" >&5
  1404. sed 's/^/| /' conftest.$ac_ext >&5
  1405. ac_retval=1
  1406. fi
  1407. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1408. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1409. # interfere with the next link command; also delete a directory that is
  1410. # left behind by Apple's compiler. We do this before executing the actions.
  1411. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1412. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1413. return $ac_retval
  1414. } # ac_fn_c_try_link
  1415. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1416. # -------------------------------------------------------
  1417. # Tests whether HEADER exists and can be compiled using the include files in
  1418. # INCLUDES, setting the cache variable VAR accordingly.
  1419. ac_fn_c_check_header_compile ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1423. $as_echo_n "checking for $2... " >&6; }
  1424. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1425. $as_echo_n "(cached) " >&6
  1426. else
  1427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1428. /* end confdefs.h. */
  1429. $4
  1430. #include <$2>
  1431. _ACEOF
  1432. if ac_fn_c_try_compile "$LINENO"; then :
  1433. eval "$3=yes"
  1434. else
  1435. eval "$3=no"
  1436. fi
  1437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1438. fi
  1439. eval ac_res=\$$3
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1441. $as_echo "$ac_res" >&6; }
  1442. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1443. } # ac_fn_c_check_header_compile
  1444. # ac_fn_c_try_cpp LINENO
  1445. # ----------------------
  1446. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1447. ac_fn_c_try_cpp ()
  1448. {
  1449. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1450. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1451. case "(($ac_try" in
  1452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1453. *) ac_try_echo=$ac_try;;
  1454. esac
  1455. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1456. $as_echo "$ac_try_echo"; } >&5
  1457. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1458. ac_status=$?
  1459. if test -s conftest.err; then
  1460. grep -v '^ *+' conftest.err >conftest.er1
  1461. cat conftest.er1 >&5
  1462. mv -f conftest.er1 conftest.err
  1463. fi
  1464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1465. test $ac_status = 0; } >/dev/null && {
  1466. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1467. test ! -s conftest.err
  1468. }; then :
  1469. ac_retval=0
  1470. else
  1471. $as_echo "$as_me: failed program was:" >&5
  1472. sed 's/^/| /' conftest.$ac_ext >&5
  1473. ac_retval=1
  1474. fi
  1475. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1476. return $ac_retval
  1477. } # ac_fn_c_try_cpp
  1478. # ac_fn_c_try_run LINENO
  1479. # ----------------------
  1480. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1481. # that executables *can* be run.
  1482. ac_fn_c_try_run ()
  1483. {
  1484. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1485. if { { ac_try="$ac_link"
  1486. case "(($ac_try" in
  1487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1488. *) ac_try_echo=$ac_try;;
  1489. esac
  1490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1491. $as_echo "$ac_try_echo"; } >&5
  1492. (eval "$ac_link") 2>&5
  1493. ac_status=$?
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1496. { { case "(($ac_try" in
  1497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1498. *) ac_try_echo=$ac_try;;
  1499. esac
  1500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1501. $as_echo "$ac_try_echo"; } >&5
  1502. (eval "$ac_try") 2>&5
  1503. ac_status=$?
  1504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1505. test $ac_status = 0; }; }; then :
  1506. ac_retval=0
  1507. else
  1508. $as_echo "$as_me: program exited with status $ac_status" >&5
  1509. $as_echo "$as_me: failed program was:" >&5
  1510. sed 's/^/| /' conftest.$ac_ext >&5
  1511. ac_retval=$ac_status
  1512. fi
  1513. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1514. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1515. return $ac_retval
  1516. } # ac_fn_c_try_run
  1517. # ac_fn_c_check_func LINENO FUNC VAR
  1518. # ----------------------------------
  1519. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1520. ac_fn_c_check_func ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1526. $as_echo_n "(cached) " >&6
  1527. else
  1528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1529. /* end confdefs.h. */
  1530. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1532. #define $2 innocuous_$2
  1533. /* System header to define __stub macros and hopefully few prototypes,
  1534. which can conflict with char $2 (); below.
  1535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1536. <limits.h> exists even on freestanding compilers. */
  1537. #ifdef __STDC__
  1538. # include <limits.h>
  1539. #else
  1540. # include <assert.h>
  1541. #endif
  1542. #undef $2
  1543. /* Override any GCC internal prototype to avoid an error.
  1544. Use char because int might match the return type of a GCC
  1545. builtin and then its argument prototype would still apply. */
  1546. #ifdef __cplusplus
  1547. extern "C"
  1548. #endif
  1549. char $2 ();
  1550. /* The GNU C library defines this for functions which it implements
  1551. to always fail with ENOSYS. Some functions are actually named
  1552. something starting with __ and the normal name is an alias. */
  1553. #if defined __stub_$2 || defined __stub___$2
  1554. choke me
  1555. #endif
  1556. int
  1557. main ()
  1558. {
  1559. return $2 ();
  1560. ;
  1561. return 0;
  1562. }
  1563. _ACEOF
  1564. if ac_fn_c_try_link "$LINENO"; then :
  1565. eval "$3=yes"
  1566. else
  1567. eval "$3=no"
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext \
  1570. conftest$ac_exeext conftest.$ac_ext
  1571. fi
  1572. eval ac_res=\$$3
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1574. $as_echo "$ac_res" >&6; }
  1575. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1576. } # ac_fn_c_check_func
  1577. # ac_fn_c_find_intX_t LINENO BITS VAR
  1578. # -----------------------------------
  1579. # Finds a signed integer type with width BITS, setting cache variable VAR
  1580. # accordingly.
  1581. ac_fn_c_find_intX_t ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1585. $as_echo_n "checking for int$2_t... " >&6; }
  1586. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1587. $as_echo_n "(cached) " >&6
  1588. else
  1589. eval "$3=no"
  1590. for ac_type in int$2_t 'int' 'long int' \
  1591. 'long long int' 'short int' 'signed char'; do
  1592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1593. /* end confdefs.h. */
  1594. $ac_includes_default
  1595. int
  1596. main ()
  1597. {
  1598. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  1599. test_array [0] = 0
  1600. ;
  1601. return 0;
  1602. }
  1603. _ACEOF
  1604. if ac_fn_c_try_compile "$LINENO"; then :
  1605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1606. /* end confdefs.h. */
  1607. $ac_includes_default
  1608. int
  1609. main ()
  1610. {
  1611. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  1612. < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  1613. test_array [0] = 0
  1614. ;
  1615. return 0;
  1616. }
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. else
  1620. case $ac_type in #(
  1621. int$2_t) :
  1622. eval "$3=yes" ;; #(
  1623. *) :
  1624. eval "$3=\$ac_type" ;;
  1625. esac
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. eval as_val=\$$3
  1631. if test "x$as_val" = x""no; then :
  1632. else
  1633. break
  1634. fi
  1635. done
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1641. } # ac_fn_c_find_intX_t
  1642. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1643. # ------------------------------------
  1644. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1645. # accordingly.
  1646. ac_fn_c_find_uintX_t ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1650. $as_echo_n "checking for uint$2_t... " >&6; }
  1651. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. eval "$3=no"
  1655. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1656. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1658. /* end confdefs.h. */
  1659. $ac_includes_default
  1660. int
  1661. main ()
  1662. {
  1663. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  1664. test_array [0] = 0
  1665. ;
  1666. return 0;
  1667. }
  1668. _ACEOF
  1669. if ac_fn_c_try_compile "$LINENO"; then :
  1670. case $ac_type in #(
  1671. uint$2_t) :
  1672. eval "$3=yes" ;; #(
  1673. *) :
  1674. eval "$3=\$ac_type" ;;
  1675. esac
  1676. fi
  1677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1678. eval as_val=\$$3
  1679. if test "x$as_val" = x""no; then :
  1680. else
  1681. break
  1682. fi
  1683. done
  1684. fi
  1685. eval ac_res=\$$3
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1687. $as_echo "$ac_res" >&6; }
  1688. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1689. } # ac_fn_c_find_uintX_t
  1690. cat >config.log <<_ACEOF
  1691. This file contains any messages produced by compilers while
  1692. running configure, to aid debugging if configure makes a mistake.
  1693. It was created by LTO plugin for ld $as_me 0.1, which was
  1694. generated by GNU Autoconf 2.64. Invocation command line was
  1695. $ $0 $@
  1696. _ACEOF
  1697. exec 5>>config.log
  1698. {
  1699. cat <<_ASUNAME
  1700. ## --------- ##
  1701. ## Platform. ##
  1702. ## --------- ##
  1703. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1704. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1705. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1706. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1707. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1708. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1709. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1710. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1711. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1712. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1713. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1714. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1715. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1716. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1717. _ASUNAME
  1718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1719. for as_dir in $PATH
  1720. do
  1721. IFS=$as_save_IFS
  1722. test -z "$as_dir" && as_dir=.
  1723. $as_echo "PATH: $as_dir"
  1724. done
  1725. IFS=$as_save_IFS
  1726. } >&5
  1727. cat >&5 <<_ACEOF
  1728. ## ----------- ##
  1729. ## Core tests. ##
  1730. ## ----------- ##
  1731. _ACEOF
  1732. # Keep a trace of the command line.
  1733. # Strip out --no-create and --no-recursion so they do not pile up.
  1734. # Strip out --silent because we don't want to record it for future runs.
  1735. # Also quote any args containing shell meta-characters.
  1736. # Make two passes to allow for proper duplicate-argument suppression.
  1737. ac_configure_args=
  1738. ac_configure_args0=
  1739. ac_configure_args1=
  1740. ac_must_keep_next=false
  1741. for ac_pass in 1 2
  1742. do
  1743. for ac_arg
  1744. do
  1745. case $ac_arg in
  1746. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1747. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1748. | -silent | --silent | --silen | --sile | --sil)
  1749. continue ;;
  1750. *\'*)
  1751. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1752. esac
  1753. case $ac_pass in
  1754. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1755. 2)
  1756. as_fn_append ac_configure_args1 " '$ac_arg'"
  1757. if test $ac_must_keep_next = true; then
  1758. ac_must_keep_next=false # Got value, back to normal.
  1759. else
  1760. case $ac_arg in
  1761. *=* | --config-cache | -C | -disable-* | --disable-* \
  1762. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1763. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1764. | -with-* | --with-* | -without-* | --without-* | --x)
  1765. case "$ac_configure_args0 " in
  1766. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1767. esac
  1768. ;;
  1769. -* ) ac_must_keep_next=true ;;
  1770. esac
  1771. fi
  1772. as_fn_append ac_configure_args " '$ac_arg'"
  1773. ;;
  1774. esac
  1775. done
  1776. done
  1777. { ac_configure_args0=; unset ac_configure_args0;}
  1778. { ac_configure_args1=; unset ac_configure_args1;}
  1779. # When interrupted or exit'd, cleanup temporary files, and complete
  1780. # config.log. We remove comments because anyway the quotes in there
  1781. # would cause problems or look ugly.
  1782. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1783. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1784. trap 'exit_status=$?
  1785. # Save into config.log some information that might help in debugging.
  1786. {
  1787. echo
  1788. cat <<\_ASBOX
  1789. ## ---------------- ##
  1790. ## Cache variables. ##
  1791. ## ---------------- ##
  1792. _ASBOX
  1793. echo
  1794. # The following way of writing the cache mishandles newlines in values,
  1795. (
  1796. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1797. eval ac_val=\$$ac_var
  1798. case $ac_val in #(
  1799. *${as_nl}*)
  1800. case $ac_var in #(
  1801. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1802. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1803. esac
  1804. case $ac_var in #(
  1805. _ | IFS | as_nl) ;; #(
  1806. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1807. *) { eval $ac_var=; unset $ac_var;} ;;
  1808. esac ;;
  1809. esac
  1810. done
  1811. (set) 2>&1 |
  1812. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1813. *${as_nl}ac_space=\ *)
  1814. sed -n \
  1815. "s/'\''/'\''\\\\'\'''\''/g;
  1816. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1817. ;; #(
  1818. *)
  1819. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1820. ;;
  1821. esac |
  1822. sort
  1823. )
  1824. echo
  1825. cat <<\_ASBOX
  1826. ## ----------------- ##
  1827. ## Output variables. ##
  1828. ## ----------------- ##
  1829. _ASBOX
  1830. echo
  1831. for ac_var in $ac_subst_vars
  1832. do
  1833. eval ac_val=\$$ac_var
  1834. case $ac_val in
  1835. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1836. esac
  1837. $as_echo "$ac_var='\''$ac_val'\''"
  1838. done | sort
  1839. echo
  1840. if test -n "$ac_subst_files"; then
  1841. cat <<\_ASBOX
  1842. ## ------------------- ##
  1843. ## File substitutions. ##
  1844. ## ------------------- ##
  1845. _ASBOX
  1846. echo
  1847. for ac_var in $ac_subst_files
  1848. do
  1849. eval ac_val=\$$ac_var
  1850. case $ac_val in
  1851. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1852. esac
  1853. $as_echo "$ac_var='\''$ac_val'\''"
  1854. done | sort
  1855. echo
  1856. fi
  1857. if test -s confdefs.h; then
  1858. cat <<\_ASBOX
  1859. ## ----------- ##
  1860. ## confdefs.h. ##
  1861. ## ----------- ##
  1862. _ASBOX
  1863. echo
  1864. cat confdefs.h
  1865. echo
  1866. fi
  1867. test "$ac_signal" != 0 &&
  1868. $as_echo "$as_me: caught signal $ac_signal"
  1869. $as_echo "$as_me: exit $exit_status"
  1870. } >&5
  1871. rm -f core *.core core.conftest.* &&
  1872. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1873. exit $exit_status
  1874. ' 0
  1875. for ac_signal in 1 2 13 15; do
  1876. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1877. done
  1878. ac_signal=0
  1879. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1880. rm -f -r conftest* confdefs.h
  1881. $as_echo "/* confdefs.h */" > confdefs.h
  1882. # Predefined preprocessor variables.
  1883. cat >>confdefs.h <<_ACEOF
  1884. #define PACKAGE_NAME "$PACKAGE_NAME"
  1885. _ACEOF
  1886. cat >>confdefs.h <<_ACEOF
  1887. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1888. _ACEOF
  1889. cat >>confdefs.h <<_ACEOF
  1890. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1891. _ACEOF
  1892. cat >>confdefs.h <<_ACEOF
  1893. #define PACKAGE_STRING "$PACKAGE_STRING"
  1894. _ACEOF
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1897. _ACEOF
  1898. cat >>confdefs.h <<_ACEOF
  1899. #define PACKAGE_URL "$PACKAGE_URL"
  1900. _ACEOF
  1901. # Let the site file select an alternate cache file if it wants to.
  1902. # Prefer an explicitly selected file to automatically selected ones.
  1903. ac_site_file1=NONE
  1904. ac_site_file2=NONE
  1905. if test -n "$CONFIG_SITE"; then
  1906. ac_site_file1=$CONFIG_SITE
  1907. elif test "x$prefix" != xNONE; then
  1908. ac_site_file1=$prefix/share/config.site
  1909. ac_site_file2=$prefix/etc/config.site
  1910. else
  1911. ac_site_file1=$ac_default_prefix/share/config.site
  1912. ac_site_file2=$ac_default_prefix/etc/config.site
  1913. fi
  1914. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1915. do
  1916. test "x$ac_site_file" = xNONE && continue
  1917. if test -r "$ac_site_file"; then
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1919. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1920. sed 's/^/| /' "$ac_site_file" >&5
  1921. . "$ac_site_file"
  1922. fi
  1923. done
  1924. if test -r "$cache_file"; then
  1925. # Some versions of bash will fail to source /dev/null (special
  1926. # files actually), so we avoid doing that.
  1927. if test -f "$cache_file"; then
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1929. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1930. case $cache_file in
  1931. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1932. *) . "./$cache_file";;
  1933. esac
  1934. fi
  1935. else
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1937. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1938. >$cache_file
  1939. fi
  1940. # Check that the precious variables saved in the cache have kept the same
  1941. # value.
  1942. ac_cache_corrupted=false
  1943. for ac_var in $ac_precious_vars; do
  1944. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1945. eval ac_new_set=\$ac_env_${ac_var}_set
  1946. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1947. eval ac_new_val=\$ac_env_${ac_var}_value
  1948. case $ac_old_set,$ac_new_set in
  1949. set,)
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1951. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1952. ac_cache_corrupted=: ;;
  1953. ,set)
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1955. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1956. ac_cache_corrupted=: ;;
  1957. ,);;
  1958. *)
  1959. if test "x$ac_old_val" != "x$ac_new_val"; then
  1960. # differences in whitespace do not lead to failure.
  1961. ac_old_val_w=`echo x $ac_old_val`
  1962. ac_new_val_w=`echo x $ac_new_val`
  1963. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1965. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1966. ac_cache_corrupted=:
  1967. else
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1969. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1970. eval $ac_var=\$ac_old_val
  1971. fi
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1973. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1975. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1976. fi;;
  1977. esac
  1978. # Pass precious variables to config.status.
  1979. if test "$ac_new_set" = set; then
  1980. case $ac_new_val in
  1981. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1982. *) ac_arg=$ac_var=$ac_new_val ;;
  1983. esac
  1984. case " $ac_configure_args " in
  1985. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1986. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1987. esac
  1988. fi
  1989. done
  1990. if $ac_cache_corrupted; then
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1994. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1995. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1996. fi
  1997. ## -------------------- ##
  1998. ## Main body of script. ##
  1999. ## -------------------- ##
  2000. ac_ext=c
  2001. ac_cpp='$CPP $CPPFLAGS'
  2002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  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. case ${build_alias} in
  2126. "") build_noncanonical=${build} ;;
  2127. *) build_noncanonical=${build_alias} ;;
  2128. esac
  2129. case ${host_alias} in
  2130. "") host_noncanonical=${build_noncanonical} ;;
  2131. *) host_noncanonical=${host_alias} ;;
  2132. esac
  2133. case ${target_alias} in
  2134. "") target_noncanonical=${host_noncanonical} ;;
  2135. *) target_noncanonical=${target_alias} ;;
  2136. esac
  2137. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2138. # have matching libraries, they should use host libraries: Makefile.tpl
  2139. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2140. # However, they still use the build modules, because the corresponding
  2141. # host modules (e.g. bison) are only built for the host when bootstrap
  2142. # finishes. So:
  2143. # - build_subdir is where we find build modules, and never changes.
  2144. # - build_libsubdir is where we find build libraries, and can be overridden.
  2145. # Prefix 'build-' so this never conflicts with target_subdir.
  2146. build_subdir="build-${build_noncanonical}"
  2147. # Check whether --with-build-libsubdir was given.
  2148. if test "${with_build_libsubdir+set}" = set; then :
  2149. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2150. else
  2151. build_libsubdir="$build_subdir"
  2152. fi
  2153. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2154. if ( test $srcdir = . && test -d gcc ) \
  2155. || test -d $srcdir/../host-${host_noncanonical}; then
  2156. host_subdir="host-${host_noncanonical}"
  2157. else
  2158. host_subdir=.
  2159. fi
  2160. # No prefix.
  2161. target_subdir=${target_noncanonical}
  2162. am__api_version='1.11'
  2163. # Find a good install program. We prefer a C program (faster),
  2164. # so one script is as good as another. But avoid the broken or
  2165. # incompatible versions:
  2166. # SysV /etc/install, /usr/sbin/install
  2167. # SunOS /usr/etc/install
  2168. # IRIX /sbin/install
  2169. # AIX /bin/install
  2170. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2171. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2172. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2173. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2174. # OS/2's system install, which has a completely different semantic
  2175. # ./install, which can be erroneously created by make from ./install.sh.
  2176. # Reject install programs that cannot install multiple files.
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2178. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2179. if test -z "$INSTALL"; then
  2180. if test "${ac_cv_path_install+set}" = set; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2184. for as_dir in $PATH
  2185. do
  2186. IFS=$as_save_IFS
  2187. test -z "$as_dir" && as_dir=.
  2188. # Account for people who put trailing slashes in PATH elements.
  2189. case $as_dir/ in #((
  2190. ./ | .// | /[cC]/* | \
  2191. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2192. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2193. /usr/ucb/* ) ;;
  2194. *)
  2195. # OSF1 and SCO ODT 3.0 have their own names for install.
  2196. # Don't use installbsd from OSF since it installs stuff as root
  2197. # by default.
  2198. for ac_prog in ginstall scoinst install; do
  2199. for ac_exec_ext in '' $ac_executable_extensions; do
  2200. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2201. if test $ac_prog = install &&
  2202. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2203. # AIX install. It has an incompatible calling convention.
  2204. :
  2205. elif test $ac_prog = install &&
  2206. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2207. # program-specific install script used by HP pwplus--don't use.
  2208. :
  2209. else
  2210. rm -rf conftest.one conftest.two conftest.dir
  2211. echo one > conftest.one
  2212. echo two > conftest.two
  2213. mkdir conftest.dir
  2214. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2215. test -s conftest.one && test -s conftest.two &&
  2216. test -s conftest.dir/conftest.one &&
  2217. test -s conftest.dir/conftest.two
  2218. then
  2219. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2220. break 3
  2221. fi
  2222. fi
  2223. fi
  2224. done
  2225. done
  2226. ;;
  2227. esac
  2228. done
  2229. IFS=$as_save_IFS
  2230. rm -rf conftest.one conftest.two conftest.dir
  2231. fi
  2232. if test "${ac_cv_path_install+set}" = set; then
  2233. INSTALL=$ac_cv_path_install
  2234. else
  2235. # As a last resort, use the slow shell script. Don't cache a
  2236. # value for INSTALL within a source directory, because that will
  2237. # break other packages using the cache if that directory is
  2238. # removed, or if the value is a relative name.
  2239. INSTALL=$ac_install_sh
  2240. fi
  2241. fi
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2243. $as_echo "$INSTALL" >&6; }
  2244. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2245. # It thinks the first close brace ends the variable substitution.
  2246. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2247. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2248. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2250. $as_echo_n "checking whether build environment is sane... " >&6; }
  2251. # Just in case
  2252. sleep 1
  2253. echo timestamp > conftest.file
  2254. # Reject unsafe characters in $srcdir or the absolute working directory
  2255. # name. Accept space and tab only in the latter.
  2256. am_lf='
  2257. '
  2258. case `pwd` in
  2259. *[\\\"\#\$\&\'\`$am_lf]*)
  2260. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2261. esac
  2262. case $srcdir in
  2263. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2264. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2265. esac
  2266. # Do `set' in a subshell so we don't clobber the current shell's
  2267. # arguments. Must try -L first in case configure is actually a
  2268. # symlink; some systems play weird games with the mod time of symlinks
  2269. # (eg FreeBSD returns the mod time of the symlink's containing
  2270. # directory).
  2271. if (
  2272. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2273. if test "$*" = "X"; then
  2274. # -L didn't work.
  2275. set X `ls -t "$srcdir/configure" conftest.file`
  2276. fi
  2277. rm -f conftest.file
  2278. if test "$*" != "X $srcdir/configure conftest.file" \
  2279. && test "$*" != "X conftest.file $srcdir/configure"; then
  2280. # If neither matched, then we have a broken ls. This can happen
  2281. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2282. # broken ls alias from the environment. This has actually
  2283. # happened. Such a system could not be considered "sane".
  2284. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2285. alias in your environment" "$LINENO" 5
  2286. fi
  2287. test "$2" = conftest.file
  2288. )
  2289. then
  2290. # Ok.
  2291. :
  2292. else
  2293. as_fn_error "newly created file is older than distributed files!
  2294. Check your system clock" "$LINENO" 5
  2295. fi
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2297. $as_echo "yes" >&6; }
  2298. test "$program_prefix" != NONE &&
  2299. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2300. # Use a double $ so make ignores it.
  2301. test "$program_suffix" != NONE &&
  2302. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2303. # Double any \ or $.
  2304. # By default was `s,x,x', remove it if useless.
  2305. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2306. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2307. # expand $ac_aux_dir to an absolute path
  2308. am_aux_dir=`cd $ac_aux_dir && pwd`
  2309. if test x"${MISSING+set}" != xset; then
  2310. case $am_aux_dir in
  2311. *\ * | *\ *)
  2312. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2313. *)
  2314. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2315. esac
  2316. fi
  2317. # Use eval to expand $SHELL
  2318. if eval "$MISSING --run true"; then
  2319. am_missing_run="$MISSING --run "
  2320. else
  2321. am_missing_run=
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2323. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2324. fi
  2325. if test x"${install_sh}" != xset; then
  2326. case $am_aux_dir in
  2327. *\ * | *\ *)
  2328. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2329. *)
  2330. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2331. esac
  2332. fi
  2333. # Installed binaries are usually stripped using `strip' when the user
  2334. # run `make install-strip'. However `strip' might not be the right
  2335. # tool to use in cross-compilation environments, therefore Automake
  2336. # will honor the `STRIP' environment variable to overrule this program.
  2337. if test "$cross_compiling" != no; then
  2338. if test -n "$ac_tool_prefix"; then
  2339. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2340. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2342. $as_echo_n "checking for $ac_word... " >&6; }
  2343. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2344. $as_echo_n "(cached) " >&6
  2345. else
  2346. if test -n "$STRIP"; then
  2347. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2348. else
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_exec_ext in '' $ac_executable_extensions; do
  2355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2356. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2358. break 2
  2359. fi
  2360. done
  2361. done
  2362. IFS=$as_save_IFS
  2363. fi
  2364. fi
  2365. STRIP=$ac_cv_prog_STRIP
  2366. if test -n "$STRIP"; then
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2368. $as_echo "$STRIP" >&6; }
  2369. else
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2371. $as_echo "no" >&6; }
  2372. fi
  2373. fi
  2374. if test -z "$ac_cv_prog_STRIP"; then
  2375. ac_ct_STRIP=$STRIP
  2376. # Extract the first word of "strip", so it can be a program name with args.
  2377. set dummy strip; ac_word=$2
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2379. $as_echo_n "checking for $ac_word... " >&6; }
  2380. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2381. $as_echo_n "(cached) " >&6
  2382. else
  2383. if test -n "$ac_ct_STRIP"; then
  2384. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2385. else
  2386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2387. for as_dir in $PATH
  2388. do
  2389. IFS=$as_save_IFS
  2390. test -z "$as_dir" && as_dir=.
  2391. for ac_exec_ext in '' $ac_executable_extensions; do
  2392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2393. ac_cv_prog_ac_ct_STRIP="strip"
  2394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2395. break 2
  2396. fi
  2397. done
  2398. done
  2399. IFS=$as_save_IFS
  2400. fi
  2401. fi
  2402. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2403. if test -n "$ac_ct_STRIP"; then
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2405. $as_echo "$ac_ct_STRIP" >&6; }
  2406. else
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2408. $as_echo "no" >&6; }
  2409. fi
  2410. if test "x$ac_ct_STRIP" = x; then
  2411. STRIP=":"
  2412. else
  2413. case $cross_compiling:$ac_tool_warned in
  2414. yes:)
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2416. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2417. ac_tool_warned=yes ;;
  2418. esac
  2419. STRIP=$ac_ct_STRIP
  2420. fi
  2421. else
  2422. STRIP="$ac_cv_prog_STRIP"
  2423. fi
  2424. fi
  2425. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2427. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2428. if test -z "$MKDIR_P"; then
  2429. if test "${ac_cv_path_mkdir+set}" = set; then :
  2430. $as_echo_n "(cached) " >&6
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_prog in mkdir gmkdir; do
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2440. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2441. 'mkdir (GNU coreutils) '* | \
  2442. 'mkdir (coreutils) '* | \
  2443. 'mkdir (fileutils) '4.1*)
  2444. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2445. break 3;;
  2446. esac
  2447. done
  2448. done
  2449. done
  2450. IFS=$as_save_IFS
  2451. fi
  2452. if test "${ac_cv_path_mkdir+set}" = set; then
  2453. MKDIR_P="$ac_cv_path_mkdir -p"
  2454. else
  2455. # As a last resort, use the slow shell script. Don't cache a
  2456. # value for MKDIR_P within a source directory, because that will
  2457. # break other packages using the cache if that directory is
  2458. # removed, or if the value is a relative name.
  2459. test -d ./--version && rmdir ./--version
  2460. MKDIR_P="$ac_install_sh -d"
  2461. fi
  2462. fi
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2464. $as_echo "$MKDIR_P" >&6; }
  2465. mkdir_p="$MKDIR_P"
  2466. case $mkdir_p in
  2467. [\\/$]* | ?:[\\/]*) ;;
  2468. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2469. esac
  2470. for ac_prog in gawk mawk nawk awk
  2471. do
  2472. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2473. set dummy $ac_prog; ac_word=$2
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2475. $as_echo_n "checking for $ac_word... " >&6; }
  2476. if test "${ac_cv_prog_AWK+set}" = set; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. if test -n "$AWK"; then
  2480. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2481. else
  2482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2483. for as_dir in $PATH
  2484. do
  2485. IFS=$as_save_IFS
  2486. test -z "$as_dir" && as_dir=.
  2487. for ac_exec_ext in '' $ac_executable_extensions; do
  2488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2489. ac_cv_prog_AWK="$ac_prog"
  2490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2491. break 2
  2492. fi
  2493. done
  2494. done
  2495. IFS=$as_save_IFS
  2496. fi
  2497. fi
  2498. AWK=$ac_cv_prog_AWK
  2499. if test -n "$AWK"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2501. $as_echo "$AWK" >&6; }
  2502. else
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2504. $as_echo "no" >&6; }
  2505. fi
  2506. test -n "$AWK" && break
  2507. done
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2509. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2510. set x ${MAKE-make}
  2511. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2512. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. cat >conftest.make <<\_ACEOF
  2516. SHELL = /bin/sh
  2517. all:
  2518. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2519. _ACEOF
  2520. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2521. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2522. *@@@%%%=?*=@@@%%%*)
  2523. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2524. *)
  2525. eval ac_cv_prog_make_${ac_make}_set=no;;
  2526. esac
  2527. rm -f conftest.make
  2528. fi
  2529. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2531. $as_echo "yes" >&6; }
  2532. SET_MAKE=
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2535. $as_echo "no" >&6; }
  2536. SET_MAKE="MAKE=${MAKE-make}"
  2537. fi
  2538. rm -rf .tst 2>/dev/null
  2539. mkdir .tst 2>/dev/null
  2540. if test -d .tst; then
  2541. am__leading_dot=.
  2542. else
  2543. am__leading_dot=_
  2544. fi
  2545. rmdir .tst 2>/dev/null
  2546. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2547. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2548. # is not polluted with repeated "-I."
  2549. am__isrc=' -I$(srcdir)'
  2550. # test to see if srcdir already configured
  2551. if test -f $srcdir/config.status; then
  2552. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2553. fi
  2554. fi
  2555. # test whether we have cygpath
  2556. if test -z "$CYGPATH_W"; then
  2557. if (cygpath --version) >/dev/null 2>/dev/null; then
  2558. CYGPATH_W='cygpath -w'
  2559. else
  2560. CYGPATH_W=echo
  2561. fi
  2562. fi
  2563. # Define the identity of the package.
  2564. PACKAGE='lto-plugin'
  2565. VERSION='0.1'
  2566. cat >>confdefs.h <<_ACEOF
  2567. #define PACKAGE "$PACKAGE"
  2568. _ACEOF
  2569. cat >>confdefs.h <<_ACEOF
  2570. #define VERSION "$VERSION"
  2571. _ACEOF
  2572. # Some tools Automake needs.
  2573. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2574. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2575. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2576. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2577. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2578. # We need awk for the "check" target. The system "awk" is bad on
  2579. # some platforms.
  2580. # Always define AMTAR for backward compatibility.
  2581. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2582. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2584. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2585. # Check whether --enable-maintainer-mode was given.
  2586. if test "${enable_maintainer_mode+set}" = set; then :
  2587. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2588. else
  2589. USE_MAINTAINER_MODE=no
  2590. fi
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2592. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2593. if test $USE_MAINTAINER_MODE = yes; then
  2594. MAINTAINER_MODE_TRUE=
  2595. MAINTAINER_MODE_FALSE='#'
  2596. else
  2597. MAINTAINER_MODE_TRUE='#'
  2598. MAINTAINER_MODE_FALSE=
  2599. fi
  2600. MAINT=$MAINTAINER_MODE_TRUE
  2601. # Check whether --with-libiberty was given.
  2602. if test "${with_libiberty+set}" = set; then :
  2603. withval=$with_libiberty;
  2604. else
  2605. with_libiberty=../libiberty
  2606. fi
  2607. ac_ext=c
  2608. ac_cpp='$CPP $CPPFLAGS'
  2609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2612. if test -n "$ac_tool_prefix"; then
  2613. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2614. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2616. $as_echo_n "checking for $ac_word... " >&6; }
  2617. if test "${ac_cv_prog_CC+set}" = set; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. if test -n "$CC"; then
  2621. ac_cv_prog_CC="$CC" # Let the user override the test.
  2622. else
  2623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2624. for as_dir in $PATH
  2625. do
  2626. IFS=$as_save_IFS
  2627. test -z "$as_dir" && as_dir=.
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2630. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. fi
  2638. fi
  2639. CC=$ac_cv_prog_CC
  2640. if test -n "$CC"; then
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2642. $as_echo "$CC" >&6; }
  2643. else
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2645. $as_echo "no" >&6; }
  2646. fi
  2647. fi
  2648. if test -z "$ac_cv_prog_CC"; then
  2649. ac_ct_CC=$CC
  2650. # Extract the first word of "gcc", so it can be a program name with args.
  2651. set dummy gcc; ac_word=$2
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2653. $as_echo_n "checking for $ac_word... " >&6; }
  2654. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2655. $as_echo_n "(cached) " >&6
  2656. else
  2657. if test -n "$ac_ct_CC"; then
  2658. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2659. else
  2660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2661. for as_dir in $PATH
  2662. do
  2663. IFS=$as_save_IFS
  2664. test -z "$as_dir" && as_dir=.
  2665. for ac_exec_ext in '' $ac_executable_extensions; do
  2666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2667. ac_cv_prog_ac_ct_CC="gcc"
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2669. break 2
  2670. fi
  2671. done
  2672. done
  2673. IFS=$as_save_IFS
  2674. fi
  2675. fi
  2676. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2677. if test -n "$ac_ct_CC"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2679. $as_echo "$ac_ct_CC" >&6; }
  2680. else
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2682. $as_echo "no" >&6; }
  2683. fi
  2684. if test "x$ac_ct_CC" = x; then
  2685. CC=""
  2686. else
  2687. case $cross_compiling:$ac_tool_warned in
  2688. yes:)
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2691. ac_tool_warned=yes ;;
  2692. esac
  2693. CC=$ac_ct_CC
  2694. fi
  2695. else
  2696. CC="$ac_cv_prog_CC"
  2697. fi
  2698. if test -z "$CC"; then
  2699. if test -n "$ac_tool_prefix"; then
  2700. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2701. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2703. $as_echo_n "checking for $ac_word... " >&6; }
  2704. if test "${ac_cv_prog_CC+set}" = set; then :
  2705. $as_echo_n "(cached) " >&6
  2706. else
  2707. if test -n "$CC"; then
  2708. ac_cv_prog_CC="$CC" # Let the user override the test.
  2709. else
  2710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2711. for as_dir in $PATH
  2712. do
  2713. IFS=$as_save_IFS
  2714. test -z "$as_dir" && as_dir=.
  2715. for ac_exec_ext in '' $ac_executable_extensions; do
  2716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2717. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2719. break 2
  2720. fi
  2721. done
  2722. done
  2723. IFS=$as_save_IFS
  2724. fi
  2725. fi
  2726. CC=$ac_cv_prog_CC
  2727. if test -n "$CC"; then
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2729. $as_echo "$CC" >&6; }
  2730. else
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2732. $as_echo "no" >&6; }
  2733. fi
  2734. fi
  2735. fi
  2736. if test -z "$CC"; then
  2737. # Extract the first word of "cc", so it can be a program name with args.
  2738. set dummy cc; ac_word=$2
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2740. $as_echo_n "checking for $ac_word... " >&6; }
  2741. if test "${ac_cv_prog_CC+set}" = set; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if test -n "$CC"; then
  2745. ac_cv_prog_CC="$CC" # Let the user override the test.
  2746. else
  2747. ac_prog_rejected=no
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2755. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2756. ac_prog_rejected=yes
  2757. continue
  2758. fi
  2759. ac_cv_prog_CC="cc"
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2761. break 2
  2762. fi
  2763. done
  2764. done
  2765. IFS=$as_save_IFS
  2766. if test $ac_prog_rejected = yes; then
  2767. # We found a bogon in the path, so make sure we never use it.
  2768. set dummy $ac_cv_prog_CC
  2769. shift
  2770. if test $# != 0; then
  2771. # We chose a different compiler from the bogus one.
  2772. # However, it has the same basename, so the bogon will be chosen
  2773. # first if we set CC to just the basename; use the full file name.
  2774. shift
  2775. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2776. fi
  2777. fi
  2778. fi
  2779. fi
  2780. CC=$ac_cv_prog_CC
  2781. if test -n "$CC"; then
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2783. $as_echo "$CC" >&6; }
  2784. else
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2786. $as_echo "no" >&6; }
  2787. fi
  2788. fi
  2789. if test -z "$CC"; then
  2790. if test -n "$ac_tool_prefix"; then
  2791. for ac_prog in cl.exe
  2792. do
  2793. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2794. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if test "${ac_cv_prog_CC+set}" = set; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$CC"; then
  2801. ac_cv_prog_CC="$CC" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2810. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. CC=$ac_cv_prog_CC
  2820. if test -n "$CC"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2822. $as_echo "$CC" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. test -n "$CC" && break
  2828. done
  2829. fi
  2830. if test -z "$CC"; then
  2831. ac_ct_CC=$CC
  2832. for ac_prog in cl.exe
  2833. do
  2834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2835. set dummy $ac_prog; ac_word=$2
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2837. $as_echo_n "checking for $ac_word... " >&6; }
  2838. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. if test -n "$ac_ct_CC"; then
  2842. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2843. else
  2844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2845. for as_dir in $PATH
  2846. do
  2847. IFS=$as_save_IFS
  2848. test -z "$as_dir" && as_dir=.
  2849. for ac_exec_ext in '' $ac_executable_extensions; do
  2850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2851. ac_cv_prog_ac_ct_CC="$ac_prog"
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2853. break 2
  2854. fi
  2855. done
  2856. done
  2857. IFS=$as_save_IFS
  2858. fi
  2859. fi
  2860. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2861. if test -n "$ac_ct_CC"; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2863. $as_echo "$ac_ct_CC" >&6; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2866. $as_echo "no" >&6; }
  2867. fi
  2868. test -n "$ac_ct_CC" && break
  2869. done
  2870. if test "x$ac_ct_CC" = x; then
  2871. CC=""
  2872. else
  2873. case $cross_compiling:$ac_tool_warned in
  2874. yes:)
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2877. ac_tool_warned=yes ;;
  2878. esac
  2879. CC=$ac_ct_CC
  2880. fi
  2881. fi
  2882. fi
  2883. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2884. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2885. as_fn_error "no acceptable C compiler found in \$PATH
  2886. See \`config.log' for more details." "$LINENO" 5; }
  2887. # Provide some information about the compiler.
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2889. set X $ac_compile
  2890. ac_compiler=$2
  2891. for ac_option in --version -v -V -qversion; do
  2892. { { ac_try="$ac_compiler $ac_option >&5"
  2893. case "(($ac_try" in
  2894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2895. *) ac_try_echo=$ac_try;;
  2896. esac
  2897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2898. $as_echo "$ac_try_echo"; } >&5
  2899. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2900. ac_status=$?
  2901. if test -s conftest.err; then
  2902. sed '10a\
  2903. ... rest of stderr output deleted ...
  2904. 10q' conftest.err >conftest.er1
  2905. cat conftest.er1 >&5
  2906. rm -f conftest.er1 conftest.err
  2907. fi
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2909. test $ac_status = 0; }
  2910. done
  2911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2912. /* end confdefs.h. */
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. ac_clean_files_save=$ac_clean_files
  2921. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2922. # Try to create an executable without -o first, disregard a.out.
  2923. # It will help us diagnose broken compilers, and finding out an intuition
  2924. # of exeext.
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2926. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2927. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2928. # The possible output files:
  2929. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2930. ac_rmfiles=
  2931. for ac_file in $ac_files
  2932. do
  2933. case $ac_file in
  2934. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2935. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2936. esac
  2937. done
  2938. rm -f $ac_rmfiles
  2939. if { { ac_try="$ac_link_default"
  2940. case "(($ac_try" in
  2941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2942. *) ac_try_echo=$ac_try;;
  2943. esac
  2944. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2945. $as_echo "$ac_try_echo"; } >&5
  2946. (eval "$ac_link_default") 2>&5
  2947. ac_status=$?
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2949. test $ac_status = 0; }; then :
  2950. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2951. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2952. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2953. # so that the user can short-circuit this test for compilers unknown to
  2954. # Autoconf.
  2955. for ac_file in $ac_files ''
  2956. do
  2957. test -f "$ac_file" || continue
  2958. case $ac_file in
  2959. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2960. ;;
  2961. [ab].out )
  2962. # We found the default executable, but exeext='' is most
  2963. # certainly right.
  2964. break;;
  2965. *.* )
  2966. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2967. then :; else
  2968. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2969. fi
  2970. # We set ac_cv_exeext here because the later test for it is not
  2971. # safe: cross compilers may not add the suffix if given an `-o'
  2972. # argument, so we may need to know it at that point already.
  2973. # Even if this section looks crufty: it has the advantage of
  2974. # actually working.
  2975. break;;
  2976. * )
  2977. break;;
  2978. esac
  2979. done
  2980. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2981. else
  2982. ac_file=''
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2985. $as_echo "$ac_file" >&6; }
  2986. if test -z "$ac_file"; then :
  2987. $as_echo "$as_me: failed program was:" >&5
  2988. sed 's/^/| /' conftest.$ac_ext >&5
  2989. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. { as_fn_set_status 77
  2992. as_fn_error "C compiler cannot create executables
  2993. See \`config.log' for more details." "$LINENO" 5; }; }
  2994. fi
  2995. ac_exeext=$ac_cv_exeext
  2996. # Check that the compiler produces executables we can run. If not, either
  2997. # the compiler is broken, or we cross compile.
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2999. $as_echo_n "checking whether the C compiler works... " >&6; }
  3000. # If not cross compiling, check that we can run a simple program.
  3001. if test "$cross_compiling" != yes; then
  3002. if { ac_try='./$ac_file'
  3003. { { case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo"; } >&5
  3009. (eval "$ac_try") 2>&5
  3010. ac_status=$?
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }; }; then
  3013. cross_compiling=no
  3014. else
  3015. if test "$cross_compiling" = maybe; then
  3016. cross_compiling=yes
  3017. else
  3018. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3019. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3020. as_fn_error "cannot run C compiled programs.
  3021. If you meant to cross compile, use \`--host'.
  3022. See \`config.log' for more details." "$LINENO" 5; }
  3023. fi
  3024. fi
  3025. fi
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3027. $as_echo "yes" >&6; }
  3028. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3029. ac_clean_files=$ac_clean_files_save
  3030. # Check that the compiler produces executables we can run. If not, either
  3031. # the compiler is broken, or we cross compile.
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3033. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3035. $as_echo "$cross_compiling" >&6; }
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3037. $as_echo_n "checking for suffix of executables... " >&6; }
  3038. if { { ac_try="$ac_link"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3044. $as_echo "$ac_try_echo"; } >&5
  3045. (eval "$ac_link") 2>&5
  3046. ac_status=$?
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3048. test $ac_status = 0; }; then :
  3049. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3050. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3051. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3052. # `rm'.
  3053. for ac_file in conftest.exe conftest conftest.*; do
  3054. test -f "$ac_file" || continue
  3055. case $ac_file in
  3056. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3057. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3058. break;;
  3059. * ) break;;
  3060. esac
  3061. done
  3062. else
  3063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3066. See \`config.log' for more details." "$LINENO" 5; }
  3067. fi
  3068. rm -f conftest$ac_cv_exeext
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3070. $as_echo "$ac_cv_exeext" >&6; }
  3071. rm -f conftest.$ac_ext
  3072. EXEEXT=$ac_cv_exeext
  3073. ac_exeext=$EXEEXT
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3075. $as_echo_n "checking for suffix of object files... " >&6; }
  3076. if test "${ac_cv_objext+set}" = set; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. ;
  3085. return 0;
  3086. }
  3087. _ACEOF
  3088. rm -f conftest.o conftest.obj
  3089. if { { ac_try="$ac_compile"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_compile") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. for ac_file in conftest.o conftest.obj conftest.*; do
  3101. test -f "$ac_file" || continue;
  3102. case $ac_file in
  3103. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3104. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3105. break;;
  3106. esac
  3107. done
  3108. else
  3109. $as_echo "$as_me: failed program was:" >&5
  3110. sed 's/^/| /' conftest.$ac_ext >&5
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error "cannot compute suffix of object files: cannot compile
  3114. See \`config.log' for more details." "$LINENO" 5; }
  3115. fi
  3116. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3119. $as_echo "$ac_cv_objext" >&6; }
  3120. OBJEXT=$ac_cv_objext
  3121. ac_objext=$OBJEXT
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3123. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3124. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3128. /* end confdefs.h. */
  3129. int
  3130. main ()
  3131. {
  3132. #ifndef __GNUC__
  3133. choke me
  3134. #endif
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. ac_compiler_gnu=yes
  3141. else
  3142. ac_compiler_gnu=no
  3143. fi
  3144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3148. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3149. if test $ac_compiler_gnu = yes; then
  3150. GCC=yes
  3151. else
  3152. GCC=
  3153. fi
  3154. ac_test_CFLAGS=${CFLAGS+set}
  3155. ac_save_CFLAGS=$CFLAGS
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3157. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3158. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. ac_save_c_werror_flag=$ac_c_werror_flag
  3162. ac_c_werror_flag=yes
  3163. ac_cv_prog_cc_g=no
  3164. CFLAGS="-g"
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. int
  3168. main ()
  3169. {
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. if ac_fn_c_try_compile "$LINENO"; then :
  3175. ac_cv_prog_cc_g=yes
  3176. else
  3177. CFLAGS=""
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. if ac_fn_c_try_compile "$LINENO"; then :
  3188. else
  3189. ac_c_werror_flag=$ac_save_c_werror_flag
  3190. CFLAGS="-g"
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. ac_cv_prog_cc_g=yes
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. ac_c_werror_flag=$ac_save_c_werror_flag
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3211. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3212. if test "$ac_test_CFLAGS" = set; then
  3213. CFLAGS=$ac_save_CFLAGS
  3214. elif test $ac_cv_prog_cc_g = yes; then
  3215. if test "$GCC" = yes; then
  3216. CFLAGS="-g -O2"
  3217. else
  3218. CFLAGS="-g"
  3219. fi
  3220. else
  3221. if test "$GCC" = yes; then
  3222. CFLAGS="-O2"
  3223. else
  3224. CFLAGS=
  3225. fi
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3228. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3229. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. ac_cv_prog_cc_c89=no
  3233. ac_save_CC=$CC
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. #include <stdarg.h>
  3237. #include <stdio.h>
  3238. #include <sys/types.h>
  3239. #include <sys/stat.h>
  3240. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3241. struct buf { int x; };
  3242. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3243. static char *e (p, i)
  3244. char **p;
  3245. int i;
  3246. {
  3247. return p[i];
  3248. }
  3249. static char *f (char * (*g) (char **, int), char **p, ...)
  3250. {
  3251. char *s;
  3252. va_list v;
  3253. va_start (v,p);
  3254. s = g (p, va_arg (v,int));
  3255. va_end (v);
  3256. return s;
  3257. }
  3258. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3259. function prototypes and stuff, but not '\xHH' hex character constants.
  3260. These don't provoke an error unfortunately, instead are silently treated
  3261. as 'x'. The following induces an error, until -std is added to get
  3262. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3263. array size at least. It's necessary to write '\x00'==0 to get something
  3264. that's true only with -std. */
  3265. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3266. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3267. inside strings and character constants. */
  3268. #define FOO(x) 'x'
  3269. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3270. int test (int i, double x);
  3271. struct s1 {int (*f) (int a);};
  3272. struct s2 {int (*f) (double a);};
  3273. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3274. int argc;
  3275. char **argv;
  3276. int
  3277. main ()
  3278. {
  3279. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3285. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3286. do
  3287. CC="$ac_save_CC $ac_arg"
  3288. if ac_fn_c_try_compile "$LINENO"; then :
  3289. ac_cv_prog_cc_c89=$ac_arg
  3290. fi
  3291. rm -f core conftest.err conftest.$ac_objext
  3292. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3293. done
  3294. rm -f conftest.$ac_ext
  3295. CC=$ac_save_CC
  3296. fi
  3297. # AC_CACHE_VAL
  3298. case "x$ac_cv_prog_cc_c89" in
  3299. x)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3301. $as_echo "none needed" >&6; } ;;
  3302. xno)
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3304. $as_echo "unsupported" >&6; } ;;
  3305. *)
  3306. CC="$CC $ac_cv_prog_cc_c89"
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3308. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3309. esac
  3310. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3311. fi
  3312. ac_ext=c
  3313. ac_cpp='$CPP $CPPFLAGS'
  3314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3317. DEPDIR="${am__leading_dot}deps"
  3318. ac_config_commands="$ac_config_commands depfiles"
  3319. am_make=${MAKE-make}
  3320. cat > confinc << 'END'
  3321. am__doit:
  3322. @echo this is the am__doit target
  3323. .PHONY: am__doit
  3324. END
  3325. # If we don't find an include directive, just comment out the code.
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3327. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3328. am__include="#"
  3329. am__quote=
  3330. _am_result=none
  3331. # First try GNU make style include.
  3332. echo "include confinc" > confmf
  3333. # Ignore all kinds of additional output from `make'.
  3334. case `$am_make -s -f confmf 2> /dev/null` in #(
  3335. *the\ am__doit\ target*)
  3336. am__include=include
  3337. am__quote=
  3338. _am_result=GNU
  3339. ;;
  3340. esac
  3341. # Now try BSD make style include.
  3342. if test "$am__include" = "#"; then
  3343. echo '.include "confinc"' > confmf
  3344. case `$am_make -s -f confmf 2> /dev/null` in #(
  3345. *the\ am__doit\ target*)
  3346. am__include=.include
  3347. am__quote="\""
  3348. _am_result=BSD
  3349. ;;
  3350. esac
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3353. $as_echo "$_am_result" >&6; }
  3354. rm -f confinc confmf
  3355. # Check whether --enable-dependency-tracking was given.
  3356. if test "${enable_dependency_tracking+set}" = set; then :
  3357. enableval=$enable_dependency_tracking;
  3358. fi
  3359. if test "x$enable_dependency_tracking" != xno; then
  3360. am_depcomp="$ac_aux_dir/depcomp"
  3361. AMDEPBACKSLASH='\'
  3362. fi
  3363. if test "x$enable_dependency_tracking" != xno; then
  3364. AMDEP_TRUE=
  3365. AMDEP_FALSE='#'
  3366. else
  3367. AMDEP_TRUE='#'
  3368. AMDEP_FALSE=
  3369. fi
  3370. depcc="$CC" am_compiler_list=
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3372. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3373. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3374. $as_echo_n "(cached) " >&6
  3375. else
  3376. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3377. # We make a subdir and do the tests there. Otherwise we can end up
  3378. # making bogus files that we don't know about and never remove. For
  3379. # instance it was reported that on HP-UX the gcc test will end up
  3380. # making a dummy file named `D' -- because `-MD' means `put the output
  3381. # in D'.
  3382. mkdir conftest.dir
  3383. # Copy depcomp to subdir because otherwise we won't find it if we're
  3384. # using a relative directory.
  3385. cp "$am_depcomp" conftest.dir
  3386. cd conftest.dir
  3387. # We will build objects and dependencies in a subdirectory because
  3388. # it helps to detect inapplicable dependency modes. For instance
  3389. # both Tru64's cc and ICC support -MD to output dependencies as a
  3390. # side effect of compilation, but ICC will put the dependencies in
  3391. # the current directory while Tru64 will put them in the object
  3392. # directory.
  3393. mkdir sub
  3394. am_cv_CC_dependencies_compiler_type=none
  3395. if test "$am_compiler_list" = ""; then
  3396. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3397. fi
  3398. am__universal=false
  3399. case " $depcc " in #(
  3400. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3401. esac
  3402. for depmode in $am_compiler_list; do
  3403. # Setup a source with many dependencies, because some compilers
  3404. # like to wrap large dependency lists on column 80 (with \), and
  3405. # we should not choose a depcomp mode which is confused by this.
  3406. #
  3407. # We need to recreate these files for each test, as the compiler may
  3408. # overwrite some of them when testing with obscure command lines.
  3409. # This happens at least with the AIX C compiler.
  3410. : > sub/conftest.c
  3411. for i in 1 2 3 4 5 6; do
  3412. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3413. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3414. # Solaris 8's {/usr,}/bin/sh.
  3415. touch sub/conftst$i.h
  3416. done
  3417. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3418. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3419. # mode. It turns out that the SunPro C++ compiler does not properly
  3420. # handle `-M -o', and we need to detect this. Also, some Intel
  3421. # versions had trouble with output in subdirs
  3422. am__obj=sub/conftest.${OBJEXT-o}
  3423. am__minus_obj="-o $am__obj"
  3424. case $depmode in
  3425. gcc)
  3426. # This depmode causes a compiler race in universal mode.
  3427. test "$am__universal" = false || continue
  3428. ;;
  3429. nosideeffect)
  3430. # after this tag, mechanisms are not by side-effect, so they'll
  3431. # only be used when explicitly requested
  3432. if test "x$enable_dependency_tracking" = xyes; then
  3433. continue
  3434. else
  3435. break
  3436. fi
  3437. ;;
  3438. msvisualcpp | msvcmsys)
  3439. # This compiler won't grok `-c -o', but also, the minuso test has
  3440. # not run yet. These depmodes are late enough in the game, and
  3441. # so weak that their functioning should not be impacted.
  3442. am__obj=conftest.${OBJEXT-o}
  3443. am__minus_obj=
  3444. ;;
  3445. none) break ;;
  3446. esac
  3447. if depmode=$depmode \
  3448. source=sub/conftest.c object=$am__obj \
  3449. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3450. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3451. >/dev/null 2>conftest.err &&
  3452. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3453. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3454. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3455. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3456. # icc doesn't choke on unknown options, it will just issue warnings
  3457. # or remarks (even with -Werror). So we grep stderr for any message
  3458. # that says an option was ignored or not supported.
  3459. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3460. # icc: Command line warning: ignoring option '-M'; no argument required
  3461. # The diagnosis changed in icc 8.0:
  3462. # icc: Command line remark: option '-MP' not supported
  3463. if (grep 'ignoring option' conftest.err ||
  3464. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3465. am_cv_CC_dependencies_compiler_type=$depmode
  3466. break
  3467. fi
  3468. fi
  3469. done
  3470. cd ..
  3471. rm -rf conftest.dir
  3472. else
  3473. am_cv_CC_dependencies_compiler_type=none
  3474. fi
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3477. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3478. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3479. if
  3480. test "x$enable_dependency_tracking" != xno \
  3481. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3482. am__fastdepCC_TRUE=
  3483. am__fastdepCC_FALSE='#'
  3484. else
  3485. am__fastdepCC_TRUE='#'
  3486. am__fastdepCC_FALSE=
  3487. fi
  3488. # Check whether --enable-largefile was given.
  3489. if test "${enable_largefile+set}" = set; then :
  3490. enableval=$enable_largefile;
  3491. fi
  3492. if test "$enable_largefile" != no; then
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3494. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3495. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  3496. $as_echo_n "(cached) " >&6
  3497. else
  3498. ac_cv_sys_largefile_CC=no
  3499. if test "$GCC" != yes; then
  3500. ac_save_CC=$CC
  3501. while :; do
  3502. # IRIX 6.2 and later do not support large files by default,
  3503. # so use the C compiler's -n32 option if that helps.
  3504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3505. /* end confdefs.h. */
  3506. #include <sys/types.h>
  3507. /* Check that off_t can represent 2**63 - 1 correctly.
  3508. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3509. since some C++ compilers masquerading as C compilers
  3510. incorrectly reject 9223372036854775807. */
  3511. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3512. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3513. && LARGE_OFF_T % 2147483647 == 1)
  3514. ? 1 : -1];
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. if ac_fn_c_try_compile "$LINENO"; then :
  3523. break
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext
  3526. CC="$CC -n32"
  3527. if ac_fn_c_try_compile "$LINENO"; then :
  3528. ac_cv_sys_largefile_CC=' -n32'; break
  3529. fi
  3530. rm -f core conftest.err conftest.$ac_objext
  3531. break
  3532. done
  3533. CC=$ac_save_CC
  3534. rm -f conftest.$ac_ext
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3538. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3539. if test "$ac_cv_sys_largefile_CC" != no; then
  3540. CC=$CC$ac_cv_sys_largefile_CC
  3541. fi
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3543. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3544. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. while :; do
  3548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3549. /* end confdefs.h. */
  3550. #include <sys/types.h>
  3551. /* Check that off_t can represent 2**63 - 1 correctly.
  3552. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3553. since some C++ compilers masquerading as C compilers
  3554. incorrectly reject 9223372036854775807. */
  3555. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3556. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3557. && LARGE_OFF_T % 2147483647 == 1)
  3558. ? 1 : -1];
  3559. int
  3560. main ()
  3561. {
  3562. ;
  3563. return 0;
  3564. }
  3565. _ACEOF
  3566. if ac_fn_c_try_compile "$LINENO"; then :
  3567. ac_cv_sys_file_offset_bits=no; break
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3571. /* end confdefs.h. */
  3572. #define _FILE_OFFSET_BITS 64
  3573. #include <sys/types.h>
  3574. /* Check that off_t can represent 2**63 - 1 correctly.
  3575. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3576. since some C++ compilers masquerading as C compilers
  3577. incorrectly reject 9223372036854775807. */
  3578. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3579. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3580. && LARGE_OFF_T % 2147483647 == 1)
  3581. ? 1 : -1];
  3582. int
  3583. main ()
  3584. {
  3585. ;
  3586. return 0;
  3587. }
  3588. _ACEOF
  3589. if ac_fn_c_try_compile "$LINENO"; then :
  3590. ac_cv_sys_file_offset_bits=64; break
  3591. fi
  3592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3593. ac_cv_sys_file_offset_bits=unknown
  3594. break
  3595. done
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3598. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3599. case $ac_cv_sys_file_offset_bits in #(
  3600. no | unknown) ;;
  3601. *)
  3602. cat >>confdefs.h <<_ACEOF
  3603. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3604. _ACEOF
  3605. ;;
  3606. esac
  3607. rm -rf conftest*
  3608. if test $ac_cv_sys_file_offset_bits = unknown; then
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3610. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3611. if test "${ac_cv_sys_large_files+set}" = set; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. while :; do
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. #include <sys/types.h>
  3618. /* Check that off_t can represent 2**63 - 1 correctly.
  3619. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3620. since some C++ compilers masquerading as C compilers
  3621. incorrectly reject 9223372036854775807. */
  3622. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3623. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3624. && LARGE_OFF_T % 2147483647 == 1)
  3625. ? 1 : -1];
  3626. int
  3627. main ()
  3628. {
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. if ac_fn_c_try_compile "$LINENO"; then :
  3634. ac_cv_sys_large_files=no; break
  3635. fi
  3636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. #define _LARGE_FILES 1
  3640. #include <sys/types.h>
  3641. /* Check that off_t can represent 2**63 - 1 correctly.
  3642. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3643. since some C++ compilers masquerading as C compilers
  3644. incorrectly reject 9223372036854775807. */
  3645. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3646. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3647. && LARGE_OFF_T % 2147483647 == 1)
  3648. ? 1 : -1];
  3649. int
  3650. main ()
  3651. {
  3652. ;
  3653. return 0;
  3654. }
  3655. _ACEOF
  3656. if ac_fn_c_try_compile "$LINENO"; then :
  3657. ac_cv_sys_large_files=1; break
  3658. fi
  3659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3660. ac_cv_sys_large_files=unknown
  3661. break
  3662. done
  3663. fi
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3665. $as_echo "$ac_cv_sys_large_files" >&6; }
  3666. case $ac_cv_sys_large_files in #(
  3667. no | unknown) ;;
  3668. *)
  3669. cat >>confdefs.h <<_ACEOF
  3670. #define _LARGE_FILES $ac_cv_sys_large_files
  3671. _ACEOF
  3672. ;;
  3673. esac
  3674. rm -rf conftest*
  3675. fi
  3676. fi
  3677. ac_lto_plugin_warn_cflags=
  3678. save_CFLAGS="$CFLAGS"
  3679. for real_option in -Wall; do
  3680. # Do the check with the no- prefix removed since gcc silently
  3681. # accepts any -Wno-* option on purpose
  3682. case $real_option in
  3683. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  3684. *) option=$real_option ;;
  3685. esac
  3686. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  3688. $as_echo_n "checking whether $CC supports $option... " >&6; }
  3689. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. CFLAGS="$option"
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. ;
  3699. return 0;
  3700. }
  3701. _ACEOF
  3702. if ac_fn_c_try_compile "$LINENO"; then :
  3703. eval "$as_acx_Woption=yes"
  3704. else
  3705. eval "$as_acx_Woption=no"
  3706. fi
  3707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3708. fi
  3709. eval ac_res=\$$as_acx_Woption
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3711. $as_echo "$ac_res" >&6; }
  3712. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  3713. ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
  3714. fi
  3715. done
  3716. CFLAGS="$save_CFLAGS"
  3717. # Check whether -static-libgcc is supported.
  3718. saved_LDFLAGS="$LDFLAGS"
  3719. LDFLAGS="$LDFLAGS -static-libgcc"
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
  3721. $as_echo_n "checking for -static-libgcc... " >&6; }
  3722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3723. /* end confdefs.h. */
  3724. int main() {}
  3725. _ACEOF
  3726. if ac_fn_c_try_link "$LINENO"; then :
  3727. have_static_libgcc=yes
  3728. else
  3729. have_static_libgcc=no
  3730. fi
  3731. rm -f core conftest.err conftest.$ac_objext \
  3732. conftest$ac_exeext conftest.$ac_ext
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
  3734. $as_echo "$have_static_libgcc" >&6; };
  3735. LDFLAGS="$saved_LDFLAGS"
  3736. # Need -Wc to get it through libtool.
  3737. if test "x$have_static_libgcc" = xyes; then
  3738. ac_lto_plugin_ldflags="-Wc,-static-libgcc"
  3739. fi
  3740. if test x"$host_subdir" = x.; then
  3741. gcc_build_dir=../gcc
  3742. else
  3743. gcc_build_dir=../../$host_subdir/gcc
  3744. fi
  3745. # Used for constructing correct paths for offload compilers.
  3746. accel_dir_suffix=
  3747. real_target_noncanonical=${target_noncanonical}
  3748. if test x"$enable_as_accelerator_for" != x; then
  3749. accel_dir_suffix=/accel/${target_noncanonical}
  3750. real_target_noncanonical=${enable_as_accelerator_for}
  3751. fi
  3752. case `pwd` in
  3753. *\ * | *\ *)
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3755. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3756. esac
  3757. macro_version='2.2.7a'
  3758. macro_revision='1.3134'
  3759. ltmain="$ac_aux_dir/ltmain.sh"
  3760. # Backslashify metacharacters that are still active within
  3761. # double-quoted strings.
  3762. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3763. # Same as above, but do not quote variable references.
  3764. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3765. # Sed substitution to delay expansion of an escaped shell variable in a
  3766. # double_quote_subst'ed string.
  3767. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3768. # Sed substitution to delay expansion of an escaped single quote.
  3769. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3770. # Sed substitution to avoid accidental globbing in evaled expressions
  3771. no_glob_subst='s/\*/\\\*/g'
  3772. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3773. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3774. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3776. $as_echo_n "checking how to print strings... " >&6; }
  3777. # Test print first, because it will be a builtin if present.
  3778. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3779. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3780. ECHO='print -r --'
  3781. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3782. ECHO='printf %s\n'
  3783. else
  3784. # Use this function as a fallback that always works.
  3785. func_fallback_echo ()
  3786. {
  3787. eval 'cat <<_LTECHO_EOF
  3788. $1
  3789. _LTECHO_EOF'
  3790. }
  3791. ECHO='func_fallback_echo'
  3792. fi
  3793. # func_echo_all arg...
  3794. # Invoke $ECHO with all args, space-separated.
  3795. func_echo_all ()
  3796. {
  3797. $ECHO ""
  3798. }
  3799. case "$ECHO" in
  3800. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3801. $as_echo "printf" >&6; } ;;
  3802. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3803. $as_echo "print -r" >&6; } ;;
  3804. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3805. $as_echo "cat" >&6; } ;;
  3806. esac
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3808. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3809. if test "${ac_cv_path_SED+set}" = set; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3813. for ac_i in 1 2 3 4 5 6 7; do
  3814. ac_script="$ac_script$as_nl$ac_script"
  3815. done
  3816. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3817. { ac_script=; unset ac_script;}
  3818. if test -z "$SED"; then
  3819. ac_path_SED_found=false
  3820. # Loop through the user's path and test for each of PROGNAME-LIST
  3821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3822. for as_dir in $PATH
  3823. do
  3824. IFS=$as_save_IFS
  3825. test -z "$as_dir" && as_dir=.
  3826. for ac_prog in sed gsed; do
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3829. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3830. # Check for GNU ac_path_SED and select it if it is found.
  3831. # Check for GNU $ac_path_SED
  3832. case `"$ac_path_SED" --version 2>&1` in
  3833. *GNU*)
  3834. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3835. *)
  3836. ac_count=0
  3837. $as_echo_n 0123456789 >"conftest.in"
  3838. while :
  3839. do
  3840. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3841. mv "conftest.tmp" "conftest.in"
  3842. cp "conftest.in" "conftest.nl"
  3843. $as_echo '' >> "conftest.nl"
  3844. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3845. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3846. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3847. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3848. # Best one so far, save it but keep looking for a better one
  3849. ac_cv_path_SED="$ac_path_SED"
  3850. ac_path_SED_max=$ac_count
  3851. fi
  3852. # 10*(2^10) chars as input seems more than enough
  3853. test $ac_count -gt 10 && break
  3854. done
  3855. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3856. esac
  3857. $ac_path_SED_found && break 3
  3858. done
  3859. done
  3860. done
  3861. IFS=$as_save_IFS
  3862. if test -z "$ac_cv_path_SED"; then
  3863. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3864. fi
  3865. else
  3866. ac_cv_path_SED=$SED
  3867. fi
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3870. $as_echo "$ac_cv_path_SED" >&6; }
  3871. SED="$ac_cv_path_SED"
  3872. rm -f conftest.sed
  3873. test -z "$SED" && SED=sed
  3874. Xsed="$SED -e 1s/^X//"
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3876. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3877. if test "${ac_cv_path_GREP+set}" = set; then :
  3878. $as_echo_n "(cached) " >&6
  3879. else
  3880. if test -z "$GREP"; then
  3881. ac_path_GREP_found=false
  3882. # Loop through the user's path and test for each of PROGNAME-LIST
  3883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3884. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3885. do
  3886. IFS=$as_save_IFS
  3887. test -z "$as_dir" && as_dir=.
  3888. for ac_prog in grep ggrep; do
  3889. for ac_exec_ext in '' $ac_executable_extensions; do
  3890. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3891. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3892. # Check for GNU ac_path_GREP and select it if it is found.
  3893. # Check for GNU $ac_path_GREP
  3894. case `"$ac_path_GREP" --version 2>&1` in
  3895. *GNU*)
  3896. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3897. *)
  3898. ac_count=0
  3899. $as_echo_n 0123456789 >"conftest.in"
  3900. while :
  3901. do
  3902. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3903. mv "conftest.tmp" "conftest.in"
  3904. cp "conftest.in" "conftest.nl"
  3905. $as_echo 'GREP' >> "conftest.nl"
  3906. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3907. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3908. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3909. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3910. # Best one so far, save it but keep looking for a better one
  3911. ac_cv_path_GREP="$ac_path_GREP"
  3912. ac_path_GREP_max=$ac_count
  3913. fi
  3914. # 10*(2^10) chars as input seems more than enough
  3915. test $ac_count -gt 10 && break
  3916. done
  3917. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3918. esac
  3919. $ac_path_GREP_found && break 3
  3920. done
  3921. done
  3922. done
  3923. IFS=$as_save_IFS
  3924. if test -z "$ac_cv_path_GREP"; then
  3925. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3926. fi
  3927. else
  3928. ac_cv_path_GREP=$GREP
  3929. fi
  3930. fi
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3932. $as_echo "$ac_cv_path_GREP" >&6; }
  3933. GREP="$ac_cv_path_GREP"
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3935. $as_echo_n "checking for egrep... " >&6; }
  3936. if test "${ac_cv_path_EGREP+set}" = set; then :
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3940. then ac_cv_path_EGREP="$GREP -E"
  3941. else
  3942. if test -z "$EGREP"; then
  3943. ac_path_EGREP_found=false
  3944. # Loop through the user's path and test for each of PROGNAME-LIST
  3945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3946. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3947. do
  3948. IFS=$as_save_IFS
  3949. test -z "$as_dir" && as_dir=.
  3950. for ac_prog in egrep; do
  3951. for ac_exec_ext in '' $ac_executable_extensions; do
  3952. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3953. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3954. # Check for GNU ac_path_EGREP and select it if it is found.
  3955. # Check for GNU $ac_path_EGREP
  3956. case `"$ac_path_EGREP" --version 2>&1` in
  3957. *GNU*)
  3958. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3959. *)
  3960. ac_count=0
  3961. $as_echo_n 0123456789 >"conftest.in"
  3962. while :
  3963. do
  3964. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3965. mv "conftest.tmp" "conftest.in"
  3966. cp "conftest.in" "conftest.nl"
  3967. $as_echo 'EGREP' >> "conftest.nl"
  3968. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3969. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3970. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3971. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3972. # Best one so far, save it but keep looking for a better one
  3973. ac_cv_path_EGREP="$ac_path_EGREP"
  3974. ac_path_EGREP_max=$ac_count
  3975. fi
  3976. # 10*(2^10) chars as input seems more than enough
  3977. test $ac_count -gt 10 && break
  3978. done
  3979. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3980. esac
  3981. $ac_path_EGREP_found && break 3
  3982. done
  3983. done
  3984. done
  3985. IFS=$as_save_IFS
  3986. if test -z "$ac_cv_path_EGREP"; then
  3987. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3988. fi
  3989. else
  3990. ac_cv_path_EGREP=$EGREP
  3991. fi
  3992. fi
  3993. fi
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3995. $as_echo "$ac_cv_path_EGREP" >&6; }
  3996. EGREP="$ac_cv_path_EGREP"
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3998. $as_echo_n "checking for fgrep... " >&6; }
  3999. if test "${ac_cv_path_FGREP+set}" = set; then :
  4000. $as_echo_n "(cached) " >&6
  4001. else
  4002. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4003. then ac_cv_path_FGREP="$GREP -F"
  4004. else
  4005. if test -z "$FGREP"; then
  4006. ac_path_FGREP_found=false
  4007. # Loop through the user's path and test for each of PROGNAME-LIST
  4008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4009. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4010. do
  4011. IFS=$as_save_IFS
  4012. test -z "$as_dir" && as_dir=.
  4013. for ac_prog in fgrep; do
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4016. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4017. # Check for GNU ac_path_FGREP and select it if it is found.
  4018. # Check for GNU $ac_path_FGREP
  4019. case `"$ac_path_FGREP" --version 2>&1` in
  4020. *GNU*)
  4021. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4022. *)
  4023. ac_count=0
  4024. $as_echo_n 0123456789 >"conftest.in"
  4025. while :
  4026. do
  4027. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4028. mv "conftest.tmp" "conftest.in"
  4029. cp "conftest.in" "conftest.nl"
  4030. $as_echo 'FGREP' >> "conftest.nl"
  4031. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4032. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4033. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4034. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4035. # Best one so far, save it but keep looking for a better one
  4036. ac_cv_path_FGREP="$ac_path_FGREP"
  4037. ac_path_FGREP_max=$ac_count
  4038. fi
  4039. # 10*(2^10) chars as input seems more than enough
  4040. test $ac_count -gt 10 && break
  4041. done
  4042. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4043. esac
  4044. $ac_path_FGREP_found && break 3
  4045. done
  4046. done
  4047. done
  4048. IFS=$as_save_IFS
  4049. if test -z "$ac_cv_path_FGREP"; then
  4050. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4051. fi
  4052. else
  4053. ac_cv_path_FGREP=$FGREP
  4054. fi
  4055. fi
  4056. fi
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4058. $as_echo "$ac_cv_path_FGREP" >&6; }
  4059. FGREP="$ac_cv_path_FGREP"
  4060. test -z "$GREP" && GREP=grep
  4061. # Check whether --with-gnu-ld was given.
  4062. if test "${with_gnu_ld+set}" = set; then :
  4063. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4064. else
  4065. with_gnu_ld=no
  4066. fi
  4067. ac_prog=ld
  4068. if test "$GCC" = yes; then
  4069. # Check if gcc -print-prog-name=ld gives a path.
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4071. $as_echo_n "checking for ld used by $CC... " >&6; }
  4072. case $host in
  4073. *-*-mingw*)
  4074. # gcc leaves a trailing carriage return which upsets mingw
  4075. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4076. *)
  4077. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4078. esac
  4079. case $ac_prog in
  4080. # Accept absolute paths.
  4081. [\\/]* | ?:[\\/]*)
  4082. re_direlt='/[^/][^/]*/\.\./'
  4083. # Canonicalize the pathname of ld
  4084. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4085. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4086. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4087. done
  4088. test -z "$LD" && LD="$ac_prog"
  4089. ;;
  4090. "")
  4091. # If it fails, then pretend we aren't using GCC.
  4092. ac_prog=ld
  4093. ;;
  4094. *)
  4095. # If it is relative, then search for the first ld in PATH.
  4096. with_gnu_ld=unknown
  4097. ;;
  4098. esac
  4099. elif test "$with_gnu_ld" = yes; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4101. $as_echo_n "checking for GNU ld... " >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4104. $as_echo_n "checking for non-GNU ld... " >&6; }
  4105. fi
  4106. if test "${lt_cv_path_LD+set}" = set; then :
  4107. $as_echo_n "(cached) " >&6
  4108. else
  4109. if test -z "$LD"; then
  4110. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4111. for ac_dir in $PATH; do
  4112. IFS="$lt_save_ifs"
  4113. test -z "$ac_dir" && ac_dir=.
  4114. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4115. lt_cv_path_LD="$ac_dir/$ac_prog"
  4116. # Check to see if the program is GNU ld. I'd rather use --version,
  4117. # but apparently some variants of GNU ld only accept -v.
  4118. # Break only if it was the GNU/non-GNU ld that we prefer.
  4119. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4120. *GNU* | *'with BFD'*)
  4121. test "$with_gnu_ld" != no && break
  4122. ;;
  4123. *)
  4124. test "$with_gnu_ld" != yes && break
  4125. ;;
  4126. esac
  4127. fi
  4128. done
  4129. IFS="$lt_save_ifs"
  4130. else
  4131. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4132. fi
  4133. fi
  4134. LD="$lt_cv_path_LD"
  4135. if test -n "$LD"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4137. $as_echo "$LD" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4144. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4145. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4146. $as_echo_n "(cached) " >&6
  4147. else
  4148. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4149. case `$LD -v 2>&1 </dev/null` in
  4150. *GNU* | *'with BFD'*)
  4151. lt_cv_prog_gnu_ld=yes
  4152. ;;
  4153. *)
  4154. lt_cv_prog_gnu_ld=no
  4155. ;;
  4156. esac
  4157. fi
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4159. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4160. with_gnu_ld=$lt_cv_prog_gnu_ld
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4162. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4163. if test "${lt_cv_path_NM+set}" = set; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. if test -n "$NM"; then
  4167. # Let the user override the test.
  4168. lt_cv_path_NM="$NM"
  4169. else
  4170. lt_nm_to_check="${ac_tool_prefix}nm"
  4171. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4172. lt_nm_to_check="$lt_nm_to_check nm"
  4173. fi
  4174. for lt_tmp_nm in $lt_nm_to_check; do
  4175. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4176. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4177. IFS="$lt_save_ifs"
  4178. test -z "$ac_dir" && ac_dir=.
  4179. tmp_nm="$ac_dir/$lt_tmp_nm"
  4180. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4181. # Check to see if the nm accepts a BSD-compat flag.
  4182. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4183. # nm: unknown option "B" ignored
  4184. # Tru64's nm complains that /dev/null is an invalid object file
  4185. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4186. */dev/null* | *'Invalid file or object type'*)
  4187. lt_cv_path_NM="$tmp_nm -B"
  4188. break
  4189. ;;
  4190. *)
  4191. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4192. */dev/null*)
  4193. lt_cv_path_NM="$tmp_nm -p"
  4194. break
  4195. ;;
  4196. *)
  4197. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4198. continue # so that we can try to find one that supports BSD flags
  4199. ;;
  4200. esac
  4201. ;;
  4202. esac
  4203. fi
  4204. done
  4205. IFS="$lt_save_ifs"
  4206. done
  4207. : ${lt_cv_path_NM=no}
  4208. fi
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4211. $as_echo "$lt_cv_path_NM" >&6; }
  4212. if test "$lt_cv_path_NM" != "no"; then
  4213. NM="$lt_cv_path_NM"
  4214. else
  4215. # Didn't find any BSD compatible name lister, look for dumpbin.
  4216. if test -n "$DUMPBIN"; then :
  4217. # Let the user override the test.
  4218. else
  4219. if test -n "$ac_tool_prefix"; then
  4220. for ac_prog in dumpbin "link -dump"
  4221. do
  4222. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4223. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4225. $as_echo_n "checking for $ac_word... " >&6; }
  4226. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. if test -n "$DUMPBIN"; then
  4230. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4231. else
  4232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4233. for as_dir in $PATH
  4234. do
  4235. IFS=$as_save_IFS
  4236. test -z "$as_dir" && as_dir=.
  4237. for ac_exec_ext in '' $ac_executable_extensions; do
  4238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4239. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4241. break 2
  4242. fi
  4243. done
  4244. done
  4245. IFS=$as_save_IFS
  4246. fi
  4247. fi
  4248. DUMPBIN=$ac_cv_prog_DUMPBIN
  4249. if test -n "$DUMPBIN"; then
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4251. $as_echo "$DUMPBIN" >&6; }
  4252. else
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4254. $as_echo "no" >&6; }
  4255. fi
  4256. test -n "$DUMPBIN" && break
  4257. done
  4258. fi
  4259. if test -z "$DUMPBIN"; then
  4260. ac_ct_DUMPBIN=$DUMPBIN
  4261. for ac_prog in dumpbin "link -dump"
  4262. do
  4263. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4264. set dummy $ac_prog; ac_word=$2
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4266. $as_echo_n "checking for $ac_word... " >&6; }
  4267. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$ac_ct_DUMPBIN"; then
  4271. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4272. else
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. fi
  4288. fi
  4289. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4290. if test -n "$ac_ct_DUMPBIN"; then
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4292. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4293. else
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4295. $as_echo "no" >&6; }
  4296. fi
  4297. test -n "$ac_ct_DUMPBIN" && break
  4298. done
  4299. if test "x$ac_ct_DUMPBIN" = x; then
  4300. DUMPBIN=":"
  4301. else
  4302. case $cross_compiling:$ac_tool_warned in
  4303. yes:)
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4305. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4306. ac_tool_warned=yes ;;
  4307. esac
  4308. DUMPBIN=$ac_ct_DUMPBIN
  4309. fi
  4310. fi
  4311. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4312. *COFF*)
  4313. DUMPBIN="$DUMPBIN -symbols"
  4314. ;;
  4315. *)
  4316. DUMPBIN=:
  4317. ;;
  4318. esac
  4319. fi
  4320. if test "$DUMPBIN" != ":"; then
  4321. NM="$DUMPBIN"
  4322. fi
  4323. fi
  4324. test -z "$NM" && NM=nm
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4326. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4327. if test "${lt_cv_nm_interface+set}" = set; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. lt_cv_nm_interface="BSD nm"
  4331. echo "int some_variable = 0;" > conftest.$ac_ext
  4332. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4333. (eval "$ac_compile" 2>conftest.err)
  4334. cat conftest.err >&5
  4335. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4336. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4337. cat conftest.err >&5
  4338. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4339. cat conftest.out >&5
  4340. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4341. lt_cv_nm_interface="MS dumpbin"
  4342. fi
  4343. rm -f conftest*
  4344. fi
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4346. $as_echo "$lt_cv_nm_interface" >&6; }
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4348. $as_echo_n "checking whether ln -s works... " >&6; }
  4349. LN_S=$as_ln_s
  4350. if test "$LN_S" = "ln -s"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4352. $as_echo "yes" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4355. $as_echo "no, using $LN_S" >&6; }
  4356. fi
  4357. # find the maximum length of command line arguments
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4359. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4360. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. i=0
  4364. teststring="ABCD"
  4365. case $build_os in
  4366. msdosdjgpp*)
  4367. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4368. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4369. # during glob expansion). Even if it were fixed, the result of this
  4370. # check would be larger than it should be.
  4371. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4372. ;;
  4373. gnu*)
  4374. # Under GNU Hurd, this test is not required because there is
  4375. # no limit to the length of command line arguments.
  4376. # Libtool will interpret -1 as no limit whatsoever
  4377. lt_cv_sys_max_cmd_len=-1;
  4378. ;;
  4379. cygwin* | mingw* | cegcc*)
  4380. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4381. # about 5 minutes as the teststring grows exponentially.
  4382. # Worse, since 9x/ME are not pre-emptively multitasking,
  4383. # you end up with a "frozen" computer, even though with patience
  4384. # the test eventually succeeds (with a max line length of 256k).
  4385. # Instead, let's just punt: use the minimum linelength reported by
  4386. # all of the supported platforms: 8192 (on NT/2K/XP).
  4387. lt_cv_sys_max_cmd_len=8192;
  4388. ;;
  4389. mint*)
  4390. # On MiNT this can take a long time and run out of memory.
  4391. lt_cv_sys_max_cmd_len=8192;
  4392. ;;
  4393. amigaos*)
  4394. # On AmigaOS with pdksh, this test takes hours, literally.
  4395. # So we just punt and use a minimum line length of 8192.
  4396. lt_cv_sys_max_cmd_len=8192;
  4397. ;;
  4398. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4399. # This has been around since 386BSD, at least. Likely further.
  4400. if test -x /sbin/sysctl; then
  4401. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4402. elif test -x /usr/sbin/sysctl; then
  4403. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4404. else
  4405. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4406. fi
  4407. # And add a safety zone
  4408. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4409. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4410. ;;
  4411. interix*)
  4412. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4413. lt_cv_sys_max_cmd_len=196608
  4414. ;;
  4415. osf*)
  4416. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4417. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4418. # nice to cause kernel panics so lets avoid the loop below.
  4419. # First set a reasonable default.
  4420. lt_cv_sys_max_cmd_len=16384
  4421. #
  4422. if test -x /sbin/sysconfig; then
  4423. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4424. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4425. esac
  4426. fi
  4427. ;;
  4428. sco3.2v5*)
  4429. lt_cv_sys_max_cmd_len=102400
  4430. ;;
  4431. sysv5* | sco5v6* | sysv4.2uw2*)
  4432. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4433. if test -n "$kargmax"; then
  4434. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4435. else
  4436. lt_cv_sys_max_cmd_len=32768
  4437. fi
  4438. ;;
  4439. *)
  4440. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4441. if test -n "$lt_cv_sys_max_cmd_len"; then
  4442. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4443. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4444. else
  4445. # Make teststring a little bigger before we do anything with it.
  4446. # a 1K string should be a reasonable start.
  4447. for i in 1 2 3 4 5 6 7 8 ; do
  4448. teststring=$teststring$teststring
  4449. done
  4450. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4451. # If test is not a shell built-in, we'll probably end up computing a
  4452. # maximum length that is only half of the actual maximum length, but
  4453. # we can't tell.
  4454. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4455. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4456. test $i != 17 # 1/2 MB should be enough
  4457. do
  4458. i=`expr $i + 1`
  4459. teststring=$teststring$teststring
  4460. done
  4461. # Only check the string length outside the loop.
  4462. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4463. teststring=
  4464. # Add a significant safety factor because C++ compilers can tack on
  4465. # massive amounts of additional arguments before passing them to the
  4466. # linker. It appears as though 1/2 is a usable value.
  4467. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4468. fi
  4469. ;;
  4470. esac
  4471. fi
  4472. if test -n $lt_cv_sys_max_cmd_len ; then
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4474. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4475. else
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4477. $as_echo "none" >&6; }
  4478. fi
  4479. max_cmd_len=$lt_cv_sys_max_cmd_len
  4480. : ${CP="cp -f"}
  4481. : ${MV="mv -f"}
  4482. : ${RM="rm -f"}
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4484. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4485. # Try some XSI features
  4486. xsi_shell=no
  4487. ( _lt_dummy="a/b/c"
  4488. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4489. = c,a/b,, \
  4490. && eval 'test $(( 1 + 1 )) -eq 2 \
  4491. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4492. && xsi_shell=yes
  4493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4494. $as_echo "$xsi_shell" >&6; }
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4496. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4497. lt_shell_append=no
  4498. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4499. >/dev/null 2>&1 \
  4500. && lt_shell_append=yes
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4502. $as_echo "$lt_shell_append" >&6; }
  4503. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4504. lt_unset=unset
  4505. else
  4506. lt_unset=false
  4507. fi
  4508. # test EBCDIC or ASCII
  4509. case `echo X|tr X '\101'` in
  4510. A) # ASCII based system
  4511. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4512. lt_SP2NL='tr \040 \012'
  4513. lt_NL2SP='tr \015\012 \040\040'
  4514. ;;
  4515. *) # EBCDIC based system
  4516. lt_SP2NL='tr \100 \n'
  4517. lt_NL2SP='tr \r\n \100\100'
  4518. ;;
  4519. esac
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4521. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4522. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. lt_cv_ld_reload_flag='-r'
  4526. fi
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4528. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4529. reload_flag=$lt_cv_ld_reload_flag
  4530. case $reload_flag in
  4531. "" | " "*) ;;
  4532. *) reload_flag=" $reload_flag" ;;
  4533. esac
  4534. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4535. case $host_os in
  4536. darwin*)
  4537. if test "$GCC" = yes; then
  4538. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4539. else
  4540. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4541. fi
  4542. ;;
  4543. esac
  4544. if test -n "$ac_tool_prefix"; then
  4545. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4546. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4548. $as_echo_n "checking for $ac_word... " >&6; }
  4549. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. if test -n "$OBJDUMP"; then
  4553. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4554. else
  4555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4556. for as_dir in $PATH
  4557. do
  4558. IFS=$as_save_IFS
  4559. test -z "$as_dir" && as_dir=.
  4560. for ac_exec_ext in '' $ac_executable_extensions; do
  4561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4562. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4564. break 2
  4565. fi
  4566. done
  4567. done
  4568. IFS=$as_save_IFS
  4569. fi
  4570. fi
  4571. OBJDUMP=$ac_cv_prog_OBJDUMP
  4572. if test -n "$OBJDUMP"; then
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4574. $as_echo "$OBJDUMP" >&6; }
  4575. else
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4577. $as_echo "no" >&6; }
  4578. fi
  4579. fi
  4580. if test -z "$ac_cv_prog_OBJDUMP"; then
  4581. ac_ct_OBJDUMP=$OBJDUMP
  4582. # Extract the first word of "objdump", so it can be a program name with args.
  4583. set dummy objdump; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$ac_ct_OBJDUMP"; then
  4590. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4599. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4609. if test -n "$ac_ct_OBJDUMP"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4611. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. if test "x$ac_ct_OBJDUMP" = x; then
  4617. OBJDUMP="false"
  4618. else
  4619. case $cross_compiling:$ac_tool_warned in
  4620. yes:)
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4623. ac_tool_warned=yes ;;
  4624. esac
  4625. OBJDUMP=$ac_ct_OBJDUMP
  4626. fi
  4627. else
  4628. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4629. fi
  4630. test -z "$OBJDUMP" && OBJDUMP=objdump
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4632. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4633. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4637. lt_cv_file_magic_test_file=
  4638. lt_cv_deplibs_check_method='unknown'
  4639. # Need to set the preceding variable on all platforms that support
  4640. # interlibrary dependencies.
  4641. # 'none' -- dependencies not supported.
  4642. # `unknown' -- same as none, but documents that we really don't know.
  4643. # 'pass_all' -- all dependencies passed with no checks.
  4644. # 'test_compile' -- check by making test program.
  4645. # 'file_magic [[regex]]' -- check by looking for files in library path
  4646. # which responds to the $file_magic_cmd with a given extended regex.
  4647. # If you have `file' or equivalent on your system and you're not sure
  4648. # whether `pass_all' will *always* work, you probably want this one.
  4649. case $host_os in
  4650. aix[4-9]*)
  4651. lt_cv_deplibs_check_method=pass_all
  4652. ;;
  4653. beos*)
  4654. lt_cv_deplibs_check_method=pass_all
  4655. ;;
  4656. bsdi[45]*)
  4657. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4658. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4659. lt_cv_file_magic_test_file=/shlib/libc.so
  4660. ;;
  4661. cygwin*)
  4662. # func_win32_libid is a shell function defined in ltmain.sh
  4663. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4664. lt_cv_file_magic_cmd='func_win32_libid'
  4665. ;;
  4666. mingw* | pw32*)
  4667. # Base MSYS/MinGW do not provide the 'file' command needed by
  4668. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4669. # unless we find 'file', for example because we are cross-compiling.
  4670. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4671. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4672. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4673. lt_cv_file_magic_cmd='func_win32_libid'
  4674. else
  4675. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4676. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4677. fi
  4678. ;;
  4679. cegcc*)
  4680. # use the weaker test based on 'objdump'. See mingw*.
  4681. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4682. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4683. ;;
  4684. darwin* | rhapsody*)
  4685. lt_cv_deplibs_check_method=pass_all
  4686. ;;
  4687. freebsd* | dragonfly*)
  4688. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4689. case $host_cpu in
  4690. i*86 )
  4691. # Not sure whether the presence of OpenBSD here was a mistake.
  4692. # Let's accept both of them until this is cleared up.
  4693. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4694. lt_cv_file_magic_cmd=/usr/bin/file
  4695. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4696. ;;
  4697. esac
  4698. else
  4699. lt_cv_deplibs_check_method=pass_all
  4700. fi
  4701. ;;
  4702. gnu*)
  4703. lt_cv_deplibs_check_method=pass_all
  4704. ;;
  4705. haiku*)
  4706. lt_cv_deplibs_check_method=pass_all
  4707. ;;
  4708. hpux10.20* | hpux11*)
  4709. lt_cv_file_magic_cmd=/usr/bin/file
  4710. case $host_cpu in
  4711. ia64*)
  4712. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4713. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4714. ;;
  4715. hppa*64*)
  4716. 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]'
  4717. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4718. ;;
  4719. *)
  4720. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4721. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4722. ;;
  4723. esac
  4724. ;;
  4725. interix[3-9]*)
  4726. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4727. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4728. ;;
  4729. irix5* | irix6* | nonstopux*)
  4730. case $LD in
  4731. *-32|*"-32 ") libmagic=32-bit;;
  4732. *-n32|*"-n32 ") libmagic=N32;;
  4733. *-64|*"-64 ") libmagic=64-bit;;
  4734. *) libmagic=never-match;;
  4735. esac
  4736. lt_cv_deplibs_check_method=pass_all
  4737. ;;
  4738. # This must be Linux ELF.
  4739. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4740. lt_cv_deplibs_check_method=pass_all
  4741. ;;
  4742. netbsd*)
  4743. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4744. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4745. else
  4746. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4747. fi
  4748. ;;
  4749. newos6*)
  4750. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4751. lt_cv_file_magic_cmd=/usr/bin/file
  4752. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4753. ;;
  4754. *nto* | *qnx*)
  4755. lt_cv_deplibs_check_method=pass_all
  4756. ;;
  4757. openbsd*)
  4758. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4759. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4760. else
  4761. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4762. fi
  4763. ;;
  4764. osf3* | osf4* | osf5*)
  4765. lt_cv_deplibs_check_method=pass_all
  4766. ;;
  4767. rdos*)
  4768. lt_cv_deplibs_check_method=pass_all
  4769. ;;
  4770. solaris*)
  4771. lt_cv_deplibs_check_method=pass_all
  4772. ;;
  4773. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4774. lt_cv_deplibs_check_method=pass_all
  4775. ;;
  4776. sysv4 | sysv4.3*)
  4777. case $host_vendor in
  4778. motorola)
  4779. 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]'
  4780. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4781. ;;
  4782. ncr)
  4783. lt_cv_deplibs_check_method=pass_all
  4784. ;;
  4785. sequent)
  4786. lt_cv_file_magic_cmd='/bin/file'
  4787. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4788. ;;
  4789. sni)
  4790. lt_cv_file_magic_cmd='/bin/file'
  4791. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4792. lt_cv_file_magic_test_file=/lib/libc.so
  4793. ;;
  4794. siemens)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. pc)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. esac
  4801. ;;
  4802. tpf*)
  4803. lt_cv_deplibs_check_method=pass_all
  4804. ;;
  4805. esac
  4806. fi
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4808. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4809. file_magic_cmd=$lt_cv_file_magic_cmd
  4810. deplibs_check_method=$lt_cv_deplibs_check_method
  4811. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4812. if test -n "$ac_tool_prefix"; then
  4813. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4814. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if test "${ac_cv_prog_AR+set}" = set; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$AR"; then
  4821. ac_cv_prog_AR="$AR" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4830. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. AR=$ac_cv_prog_AR
  4840. if test -n "$AR"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4842. $as_echo "$AR" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. fi
  4848. if test -z "$ac_cv_prog_AR"; then
  4849. ac_ct_AR=$AR
  4850. # Extract the first word of "ar", so it can be a program name with args.
  4851. set dummy ar; ac_word=$2
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4853. $as_echo_n "checking for $ac_word... " >&6; }
  4854. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. if test -n "$ac_ct_AR"; then
  4858. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4859. else
  4860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4861. for as_dir in $PATH
  4862. do
  4863. IFS=$as_save_IFS
  4864. test -z "$as_dir" && as_dir=.
  4865. for ac_exec_ext in '' $ac_executable_extensions; do
  4866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4867. ac_cv_prog_ac_ct_AR="ar"
  4868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4869. break 2
  4870. fi
  4871. done
  4872. done
  4873. IFS=$as_save_IFS
  4874. fi
  4875. fi
  4876. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4877. if test -n "$ac_ct_AR"; then
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4879. $as_echo "$ac_ct_AR" >&6; }
  4880. else
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4882. $as_echo "no" >&6; }
  4883. fi
  4884. if test "x$ac_ct_AR" = x; then
  4885. AR="false"
  4886. else
  4887. case $cross_compiling:$ac_tool_warned in
  4888. yes:)
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4890. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4891. ac_tool_warned=yes ;;
  4892. esac
  4893. AR=$ac_ct_AR
  4894. fi
  4895. else
  4896. AR="$ac_cv_prog_AR"
  4897. fi
  4898. test -z "$AR" && AR=ar
  4899. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4900. if test -n "$ac_tool_prefix"; then
  4901. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4902. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4904. $as_echo_n "checking for $ac_word... " >&6; }
  4905. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. if test -n "$STRIP"; then
  4909. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4910. else
  4911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4912. for as_dir in $PATH
  4913. do
  4914. IFS=$as_save_IFS
  4915. test -z "$as_dir" && as_dir=.
  4916. for ac_exec_ext in '' $ac_executable_extensions; do
  4917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4918. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4920. break 2
  4921. fi
  4922. done
  4923. done
  4924. IFS=$as_save_IFS
  4925. fi
  4926. fi
  4927. STRIP=$ac_cv_prog_STRIP
  4928. if test -n "$STRIP"; then
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4930. $as_echo "$STRIP" >&6; }
  4931. else
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4933. $as_echo "no" >&6; }
  4934. fi
  4935. fi
  4936. if test -z "$ac_cv_prog_STRIP"; then
  4937. ac_ct_STRIP=$STRIP
  4938. # Extract the first word of "strip", so it can be a program name with args.
  4939. set dummy strip; ac_word=$2
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4941. $as_echo_n "checking for $ac_word... " >&6; }
  4942. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. if test -n "$ac_ct_STRIP"; then
  4946. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4947. else
  4948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4949. for as_dir in $PATH
  4950. do
  4951. IFS=$as_save_IFS
  4952. test -z "$as_dir" && as_dir=.
  4953. for ac_exec_ext in '' $ac_executable_extensions; do
  4954. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4955. ac_cv_prog_ac_ct_STRIP="strip"
  4956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4957. break 2
  4958. fi
  4959. done
  4960. done
  4961. IFS=$as_save_IFS
  4962. fi
  4963. fi
  4964. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4965. if test -n "$ac_ct_STRIP"; then
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4967. $as_echo "$ac_ct_STRIP" >&6; }
  4968. else
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4970. $as_echo "no" >&6; }
  4971. fi
  4972. if test "x$ac_ct_STRIP" = x; then
  4973. STRIP=":"
  4974. else
  4975. case $cross_compiling:$ac_tool_warned in
  4976. yes:)
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4979. ac_tool_warned=yes ;;
  4980. esac
  4981. STRIP=$ac_ct_STRIP
  4982. fi
  4983. else
  4984. STRIP="$ac_cv_prog_STRIP"
  4985. fi
  4986. test -z "$STRIP" && STRIP=:
  4987. if test -n "$ac_tool_prefix"; then
  4988. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4989. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4991. $as_echo_n "checking for $ac_word... " >&6; }
  4992. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. if test -n "$RANLIB"; then
  4996. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4997. else
  4998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4999. for as_dir in $PATH
  5000. do
  5001. IFS=$as_save_IFS
  5002. test -z "$as_dir" && as_dir=.
  5003. for ac_exec_ext in '' $ac_executable_extensions; do
  5004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5005. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5007. break 2
  5008. fi
  5009. done
  5010. done
  5011. IFS=$as_save_IFS
  5012. fi
  5013. fi
  5014. RANLIB=$ac_cv_prog_RANLIB
  5015. if test -n "$RANLIB"; then
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5017. $as_echo "$RANLIB" >&6; }
  5018. else
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5020. $as_echo "no" >&6; }
  5021. fi
  5022. fi
  5023. if test -z "$ac_cv_prog_RANLIB"; then
  5024. ac_ct_RANLIB=$RANLIB
  5025. # Extract the first word of "ranlib", so it can be a program name with args.
  5026. set dummy ranlib; ac_word=$2
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5028. $as_echo_n "checking for $ac_word... " >&6; }
  5029. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5030. $as_echo_n "(cached) " >&6
  5031. else
  5032. if test -n "$ac_ct_RANLIB"; then
  5033. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5034. else
  5035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5036. for as_dir in $PATH
  5037. do
  5038. IFS=$as_save_IFS
  5039. test -z "$as_dir" && as_dir=.
  5040. for ac_exec_ext in '' $ac_executable_extensions; do
  5041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5042. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5044. break 2
  5045. fi
  5046. done
  5047. done
  5048. IFS=$as_save_IFS
  5049. fi
  5050. fi
  5051. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5052. if test -n "$ac_ct_RANLIB"; then
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5054. $as_echo "$ac_ct_RANLIB" >&6; }
  5055. else
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5057. $as_echo "no" >&6; }
  5058. fi
  5059. if test "x$ac_ct_RANLIB" = x; then
  5060. RANLIB=":"
  5061. else
  5062. case $cross_compiling:$ac_tool_warned in
  5063. yes:)
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5065. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5066. ac_tool_warned=yes ;;
  5067. esac
  5068. RANLIB=$ac_ct_RANLIB
  5069. fi
  5070. else
  5071. RANLIB="$ac_cv_prog_RANLIB"
  5072. fi
  5073. test -z "$RANLIB" && RANLIB=:
  5074. # Determine commands to create old-style static archives.
  5075. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5076. old_postinstall_cmds='chmod 644 $oldlib'
  5077. old_postuninstall_cmds=
  5078. if test -n "$RANLIB"; then
  5079. case $host_os in
  5080. openbsd*)
  5081. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5082. ;;
  5083. *)
  5084. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5085. ;;
  5086. esac
  5087. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5088. fi
  5089. case $host_os in
  5090. darwin*)
  5091. lock_old_archive_extraction=yes ;;
  5092. *)
  5093. lock_old_archive_extraction=no ;;
  5094. esac
  5095. # If no C compiler was specified, use CC.
  5096. LTCC=${LTCC-"$CC"}
  5097. # If no C compiler flags were specified, use CFLAGS.
  5098. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5099. # Allow CC to be a program name with arguments.
  5100. compiler=$CC
  5101. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5103. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5104. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5105. $as_echo_n "(cached) " >&6
  5106. else
  5107. # These are sane defaults that work on at least a few old systems.
  5108. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5109. # Character class describing NM global symbol codes.
  5110. symcode='[BCDEGRST]'
  5111. # Regexp to match symbols that can be accessed directly from C.
  5112. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5113. # Define system-specific variables.
  5114. case $host_os in
  5115. aix*)
  5116. symcode='[BCDT]'
  5117. ;;
  5118. cygwin* | mingw* | pw32* | cegcc*)
  5119. symcode='[ABCDGISTW]'
  5120. ;;
  5121. hpux*)
  5122. if test "$host_cpu" = ia64; then
  5123. symcode='[ABCDEGRST]'
  5124. fi
  5125. ;;
  5126. irix* | nonstopux*)
  5127. symcode='[BCDEGRST]'
  5128. ;;
  5129. osf*)
  5130. symcode='[BCDEGQRST]'
  5131. ;;
  5132. solaris*)
  5133. symcode='[BDRT]'
  5134. ;;
  5135. sco3.2v5*)
  5136. symcode='[DT]'
  5137. ;;
  5138. sysv4.2uw2*)
  5139. symcode='[DT]'
  5140. ;;
  5141. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5142. symcode='[ABDT]'
  5143. ;;
  5144. sysv4)
  5145. symcode='[DFNSTU]'
  5146. ;;
  5147. esac
  5148. # If we're using GNU nm, then use its standard symbol codes.
  5149. case `$NM -V 2>&1` in
  5150. *GNU* | *'with BFD'*)
  5151. symcode='[ABCDGIRSTW]' ;;
  5152. esac
  5153. # Transform an extracted symbol line into a proper C declaration.
  5154. # Some systems (esp. on ia64) link data and code symbols differently,
  5155. # so use this general approach.
  5156. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5157. # Transform an extracted symbol line into symbol name and symbol address
  5158. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5159. 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'"
  5160. # Handle CRLF in mingw tool chain
  5161. opt_cr=
  5162. case $build_os in
  5163. mingw*)
  5164. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5165. ;;
  5166. esac
  5167. # Try without a prefix underscore, then with it.
  5168. for ac_symprfx in "" "_"; do
  5169. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5170. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5171. # Write the raw and C identifiers.
  5172. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5173. # Fake it for dumpbin and say T for any non-static function
  5174. # and D for any global variable.
  5175. # Also find C++ and __fastcall symbols from MSVC++,
  5176. # which start with @ or ?.
  5177. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5178. " {last_section=section; section=\$ 3};"\
  5179. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5180. " \$ 0!~/External *\|/{next};"\
  5181. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5182. " {if(hide[section]) next};"\
  5183. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5184. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5185. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5186. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5187. " ' prfx=^$ac_symprfx"
  5188. else
  5189. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5190. fi
  5191. # Check to see that the pipe works correctly.
  5192. pipe_works=no
  5193. rm -f conftest*
  5194. cat > conftest.$ac_ext <<_LT_EOF
  5195. #ifdef __cplusplus
  5196. extern "C" {
  5197. #endif
  5198. char nm_test_var;
  5199. void nm_test_func(void);
  5200. void nm_test_func(void){}
  5201. #ifdef __cplusplus
  5202. }
  5203. #endif
  5204. int main(){nm_test_var='a';nm_test_func();return(0);}
  5205. _LT_EOF
  5206. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5207. (eval $ac_compile) 2>&5
  5208. ac_status=$?
  5209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5210. test $ac_status = 0; }; then
  5211. # Now try to grab the symbols.
  5212. nlist=conftest.nm
  5213. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5214. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5215. ac_status=$?
  5216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5217. test $ac_status = 0; } && test -s "$nlist"; then
  5218. # Try sorting and uniquifying the output.
  5219. if sort "$nlist" | uniq > "$nlist"T; then
  5220. mv -f "$nlist"T "$nlist"
  5221. else
  5222. rm -f "$nlist"T
  5223. fi
  5224. # Make sure that we snagged all the symbols we need.
  5225. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5226. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5227. cat <<_LT_EOF > conftest.$ac_ext
  5228. #ifdef __cplusplus
  5229. extern "C" {
  5230. #endif
  5231. _LT_EOF
  5232. # Now generate the symbol file.
  5233. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5234. cat <<_LT_EOF >> conftest.$ac_ext
  5235. /* The mapping between symbol names and symbols. */
  5236. const struct {
  5237. const char *name;
  5238. void *address;
  5239. }
  5240. lt__PROGRAM__LTX_preloaded_symbols[] =
  5241. {
  5242. { "@PROGRAM@", (void *) 0 },
  5243. _LT_EOF
  5244. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5245. cat <<\_LT_EOF >> conftest.$ac_ext
  5246. {0, (void *) 0}
  5247. };
  5248. /* This works around a problem in FreeBSD linker */
  5249. #ifdef FREEBSD_WORKAROUND
  5250. static const void *lt_preloaded_setup() {
  5251. return lt__PROGRAM__LTX_preloaded_symbols;
  5252. }
  5253. #endif
  5254. #ifdef __cplusplus
  5255. }
  5256. #endif
  5257. _LT_EOF
  5258. # Now try linking the two files.
  5259. mv conftest.$ac_objext conftstm.$ac_objext
  5260. lt_save_LIBS="$LIBS"
  5261. lt_save_CFLAGS="$CFLAGS"
  5262. LIBS="conftstm.$ac_objext"
  5263. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5264. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5265. (eval $ac_link) 2>&5
  5266. ac_status=$?
  5267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5268. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5269. pipe_works=yes
  5270. fi
  5271. LIBS="$lt_save_LIBS"
  5272. CFLAGS="$lt_save_CFLAGS"
  5273. else
  5274. echo "cannot find nm_test_func in $nlist" >&5
  5275. fi
  5276. else
  5277. echo "cannot find nm_test_var in $nlist" >&5
  5278. fi
  5279. else
  5280. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5281. fi
  5282. else
  5283. echo "$progname: failed program was:" >&5
  5284. cat conftest.$ac_ext >&5
  5285. fi
  5286. rm -rf conftest* conftst*
  5287. # Do not use the global_symbol_pipe unless it works.
  5288. if test "$pipe_works" = yes; then
  5289. break
  5290. else
  5291. lt_cv_sys_global_symbol_pipe=
  5292. fi
  5293. done
  5294. fi
  5295. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5296. lt_cv_sys_global_symbol_to_cdecl=
  5297. fi
  5298. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5300. $as_echo "failed" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5303. $as_echo "ok" >&6; }
  5304. fi
  5305. # Check whether --enable-libtool-lock was given.
  5306. if test "${enable_libtool_lock+set}" = set; then :
  5307. enableval=$enable_libtool_lock;
  5308. fi
  5309. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5310. # Some flags need to be propagated to the compiler or linker for good
  5311. # libtool support.
  5312. case $host in
  5313. ia64-*-hpux*)
  5314. # Find out which ABI we are using.
  5315. echo 'int i;' > conftest.$ac_ext
  5316. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5317. (eval $ac_compile) 2>&5
  5318. ac_status=$?
  5319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5320. test $ac_status = 0; }; then
  5321. case `/usr/bin/file conftest.$ac_objext` in
  5322. *ELF-32*)
  5323. HPUX_IA64_MODE="32"
  5324. ;;
  5325. *ELF-64*)
  5326. HPUX_IA64_MODE="64"
  5327. ;;
  5328. esac
  5329. fi
  5330. rm -rf conftest*
  5331. ;;
  5332. *-*-irix6*)
  5333. # Find out which ABI we are using.
  5334. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5336. (eval $ac_compile) 2>&5
  5337. ac_status=$?
  5338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5339. test $ac_status = 0; }; then
  5340. if test "$lt_cv_prog_gnu_ld" = yes; then
  5341. case `/usr/bin/file conftest.$ac_objext` in
  5342. *32-bit*)
  5343. LD="${LD-ld} -melf32bsmip"
  5344. ;;
  5345. *N32*)
  5346. LD="${LD-ld} -melf32bmipn32"
  5347. ;;
  5348. *64-bit*)
  5349. LD="${LD-ld} -melf64bmip"
  5350. ;;
  5351. esac
  5352. else
  5353. case `/usr/bin/file conftest.$ac_objext` in
  5354. *32-bit*)
  5355. LD="${LD-ld} -32"
  5356. ;;
  5357. *N32*)
  5358. LD="${LD-ld} -n32"
  5359. ;;
  5360. *64-bit*)
  5361. LD="${LD-ld} -64"
  5362. ;;
  5363. esac
  5364. fi
  5365. fi
  5366. rm -rf conftest*
  5367. ;;
  5368. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5369. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5370. # Find out which ABI we are using.
  5371. echo 'int i;' > conftest.$ac_ext
  5372. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5373. (eval $ac_compile) 2>&5
  5374. ac_status=$?
  5375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5376. test $ac_status = 0; }; then
  5377. case `/usr/bin/file conftest.o` in
  5378. *32-bit*)
  5379. case $host in
  5380. x86_64-*kfreebsd*-gnu)
  5381. LD="${LD-ld} -m elf_i386_fbsd"
  5382. ;;
  5383. x86_64-*linux*)
  5384. case `/usr/bin/file conftest.o` in
  5385. *x86-64*)
  5386. LD="${LD-ld} -m elf32_x86_64"
  5387. ;;
  5388. *)
  5389. LD="${LD-ld} -m elf_i386"
  5390. ;;
  5391. esac
  5392. ;;
  5393. powerpc64le-*linux*)
  5394. LD="${LD-ld} -m elf32lppclinux"
  5395. ;;
  5396. powerpc64-*linux*)
  5397. LD="${LD-ld} -m elf32ppclinux"
  5398. ;;
  5399. s390x-*linux*)
  5400. LD="${LD-ld} -m elf_s390"
  5401. ;;
  5402. sparc64-*linux*)
  5403. LD="${LD-ld} -m elf32_sparc"
  5404. ;;
  5405. esac
  5406. ;;
  5407. *64-bit*)
  5408. case $host in
  5409. x86_64-*kfreebsd*-gnu)
  5410. LD="${LD-ld} -m elf_x86_64_fbsd"
  5411. ;;
  5412. x86_64-*linux*)
  5413. LD="${LD-ld} -m elf_x86_64"
  5414. ;;
  5415. powerpcle-*linux*)
  5416. LD="${LD-ld} -m elf64lppc"
  5417. ;;
  5418. powerpc-*linux*)
  5419. LD="${LD-ld} -m elf64ppc"
  5420. ;;
  5421. s390*-*linux*|s390*-*tpf*)
  5422. LD="${LD-ld} -m elf64_s390"
  5423. ;;
  5424. sparc*-*linux*)
  5425. LD="${LD-ld} -m elf64_sparc"
  5426. ;;
  5427. esac
  5428. ;;
  5429. esac
  5430. fi
  5431. rm -rf conftest*
  5432. ;;
  5433. *-*-sco3.2v5*)
  5434. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5435. SAVE_CFLAGS="$CFLAGS"
  5436. CFLAGS="$CFLAGS -belf"
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5438. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5439. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5448. /* end confdefs.h. */
  5449. int
  5450. main ()
  5451. {
  5452. ;
  5453. return 0;
  5454. }
  5455. _ACEOF
  5456. if ac_fn_c_try_link "$LINENO"; then :
  5457. lt_cv_cc_needs_belf=yes
  5458. else
  5459. lt_cv_cc_needs_belf=no
  5460. fi
  5461. rm -f core conftest.err conftest.$ac_objext \
  5462. conftest$ac_exeext conftest.$ac_ext
  5463. ac_ext=c
  5464. ac_cpp='$CPP $CPPFLAGS'
  5465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5468. fi
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5470. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5471. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5472. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5473. CFLAGS="$SAVE_CFLAGS"
  5474. fi
  5475. ;;
  5476. sparc*-*solaris*)
  5477. # Find out which ABI we are using.
  5478. echo 'int i;' > conftest.$ac_ext
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5480. (eval $ac_compile) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; }; then
  5484. case `/usr/bin/file conftest.o` in
  5485. *64-bit*)
  5486. case $lt_cv_prog_gnu_ld in
  5487. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5488. *)
  5489. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5490. LD="${LD-ld} -64"
  5491. fi
  5492. ;;
  5493. esac
  5494. ;;
  5495. esac
  5496. fi
  5497. rm -rf conftest*
  5498. ;;
  5499. esac
  5500. need_locks="$enable_libtool_lock"
  5501. case $host_os in
  5502. rhapsody* | darwin*)
  5503. if test -n "$ac_tool_prefix"; then
  5504. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5505. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5507. $as_echo_n "checking for $ac_word... " >&6; }
  5508. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. if test -n "$DSYMUTIL"; then
  5512. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5513. else
  5514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5515. for as_dir in $PATH
  5516. do
  5517. IFS=$as_save_IFS
  5518. test -z "$as_dir" && as_dir=.
  5519. for ac_exec_ext in '' $ac_executable_extensions; do
  5520. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5521. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5523. break 2
  5524. fi
  5525. done
  5526. done
  5527. IFS=$as_save_IFS
  5528. fi
  5529. fi
  5530. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5531. if test -n "$DSYMUTIL"; then
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5533. $as_echo "$DSYMUTIL" >&6; }
  5534. else
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5536. $as_echo "no" >&6; }
  5537. fi
  5538. fi
  5539. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5540. ac_ct_DSYMUTIL=$DSYMUTIL
  5541. # Extract the first word of "dsymutil", so it can be a program name with args.
  5542. set dummy dsymutil; ac_word=$2
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5544. $as_echo_n "checking for $ac_word... " >&6; }
  5545. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. if test -n "$ac_ct_DSYMUTIL"; then
  5549. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5558. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. IFS=$as_save_IFS
  5565. fi
  5566. fi
  5567. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5568. if test -n "$ac_ct_DSYMUTIL"; then
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5570. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5571. else
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5573. $as_echo "no" >&6; }
  5574. fi
  5575. if test "x$ac_ct_DSYMUTIL" = x; then
  5576. DSYMUTIL=":"
  5577. else
  5578. case $cross_compiling:$ac_tool_warned in
  5579. yes:)
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5582. ac_tool_warned=yes ;;
  5583. esac
  5584. DSYMUTIL=$ac_ct_DSYMUTIL
  5585. fi
  5586. else
  5587. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5588. fi
  5589. if test -n "$ac_tool_prefix"; then
  5590. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5591. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$NMEDIT"; then
  5598. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5607. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. NMEDIT=$ac_cv_prog_NMEDIT
  5617. if test -n "$NMEDIT"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5619. $as_echo "$NMEDIT" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. fi
  5625. if test -z "$ac_cv_prog_NMEDIT"; then
  5626. ac_ct_NMEDIT=$NMEDIT
  5627. # Extract the first word of "nmedit", so it can be a program name with args.
  5628. set dummy nmedit; ac_word=$2
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5630. $as_echo_n "checking for $ac_word... " >&6; }
  5631. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5632. $as_echo_n "(cached) " >&6
  5633. else
  5634. if test -n "$ac_ct_NMEDIT"; then
  5635. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5636. else
  5637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5638. for as_dir in $PATH
  5639. do
  5640. IFS=$as_save_IFS
  5641. test -z "$as_dir" && as_dir=.
  5642. for ac_exec_ext in '' $ac_executable_extensions; do
  5643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5644. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5646. break 2
  5647. fi
  5648. done
  5649. done
  5650. IFS=$as_save_IFS
  5651. fi
  5652. fi
  5653. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5654. if test -n "$ac_ct_NMEDIT"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5656. $as_echo "$ac_ct_NMEDIT" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5659. $as_echo "no" >&6; }
  5660. fi
  5661. if test "x$ac_ct_NMEDIT" = x; then
  5662. NMEDIT=":"
  5663. else
  5664. case $cross_compiling:$ac_tool_warned in
  5665. yes:)
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5668. ac_tool_warned=yes ;;
  5669. esac
  5670. NMEDIT=$ac_ct_NMEDIT
  5671. fi
  5672. else
  5673. NMEDIT="$ac_cv_prog_NMEDIT"
  5674. fi
  5675. if test -n "$ac_tool_prefix"; then
  5676. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5677. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5679. $as_echo_n "checking for $ac_word... " >&6; }
  5680. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5681. $as_echo_n "(cached) " >&6
  5682. else
  5683. if test -n "$LIPO"; then
  5684. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5685. else
  5686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5687. for as_dir in $PATH
  5688. do
  5689. IFS=$as_save_IFS
  5690. test -z "$as_dir" && as_dir=.
  5691. for ac_exec_ext in '' $ac_executable_extensions; do
  5692. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5693. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5695. break 2
  5696. fi
  5697. done
  5698. done
  5699. IFS=$as_save_IFS
  5700. fi
  5701. fi
  5702. LIPO=$ac_cv_prog_LIPO
  5703. if test -n "$LIPO"; then
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5705. $as_echo "$LIPO" >&6; }
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5708. $as_echo "no" >&6; }
  5709. fi
  5710. fi
  5711. if test -z "$ac_cv_prog_LIPO"; then
  5712. ac_ct_LIPO=$LIPO
  5713. # Extract the first word of "lipo", so it can be a program name with args.
  5714. set dummy lipo; ac_word=$2
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5716. $as_echo_n "checking for $ac_word... " >&6; }
  5717. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. if test -n "$ac_ct_LIPO"; then
  5721. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5722. else
  5723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5724. for as_dir in $PATH
  5725. do
  5726. IFS=$as_save_IFS
  5727. test -z "$as_dir" && as_dir=.
  5728. for ac_exec_ext in '' $ac_executable_extensions; do
  5729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5730. ac_cv_prog_ac_ct_LIPO="lipo"
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5732. break 2
  5733. fi
  5734. done
  5735. done
  5736. IFS=$as_save_IFS
  5737. fi
  5738. fi
  5739. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5740. if test -n "$ac_ct_LIPO"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5742. $as_echo "$ac_ct_LIPO" >&6; }
  5743. else
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5745. $as_echo "no" >&6; }
  5746. fi
  5747. if test "x$ac_ct_LIPO" = x; then
  5748. LIPO=":"
  5749. else
  5750. case $cross_compiling:$ac_tool_warned in
  5751. yes:)
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5754. ac_tool_warned=yes ;;
  5755. esac
  5756. LIPO=$ac_ct_LIPO
  5757. fi
  5758. else
  5759. LIPO="$ac_cv_prog_LIPO"
  5760. fi
  5761. if test -n "$ac_tool_prefix"; then
  5762. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5763. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5765. $as_echo_n "checking for $ac_word... " >&6; }
  5766. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5767. $as_echo_n "(cached) " >&6
  5768. else
  5769. if test -n "$OTOOL"; then
  5770. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5771. else
  5772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5773. for as_dir in $PATH
  5774. do
  5775. IFS=$as_save_IFS
  5776. test -z "$as_dir" && as_dir=.
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5779. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. OTOOL=$ac_cv_prog_OTOOL
  5789. if test -n "$OTOOL"; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5791. $as_echo "$OTOOL" >&6; }
  5792. else
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. $as_echo "no" >&6; }
  5795. fi
  5796. fi
  5797. if test -z "$ac_cv_prog_OTOOL"; then
  5798. ac_ct_OTOOL=$OTOOL
  5799. # Extract the first word of "otool", so it can be a program name with args.
  5800. set dummy otool; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$ac_ct_OTOOL"; then
  5807. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5816. ac_cv_prog_ac_ct_OTOOL="otool"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5826. if test -n "$ac_ct_OTOOL"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5828. $as_echo "$ac_ct_OTOOL" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. if test "x$ac_ct_OTOOL" = x; then
  5834. OTOOL=":"
  5835. else
  5836. case $cross_compiling:$ac_tool_warned in
  5837. yes:)
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5840. ac_tool_warned=yes ;;
  5841. esac
  5842. OTOOL=$ac_ct_OTOOL
  5843. fi
  5844. else
  5845. OTOOL="$ac_cv_prog_OTOOL"
  5846. fi
  5847. if test -n "$ac_tool_prefix"; then
  5848. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5849. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5851. $as_echo_n "checking for $ac_word... " >&6; }
  5852. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. if test -n "$OTOOL64"; then
  5856. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5857. else
  5858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5859. for as_dir in $PATH
  5860. do
  5861. IFS=$as_save_IFS
  5862. test -z "$as_dir" && as_dir=.
  5863. for ac_exec_ext in '' $ac_executable_extensions; do
  5864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5865. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5867. break 2
  5868. fi
  5869. done
  5870. done
  5871. IFS=$as_save_IFS
  5872. fi
  5873. fi
  5874. OTOOL64=$ac_cv_prog_OTOOL64
  5875. if test -n "$OTOOL64"; then
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5877. $as_echo "$OTOOL64" >&6; }
  5878. else
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5880. $as_echo "no" >&6; }
  5881. fi
  5882. fi
  5883. if test -z "$ac_cv_prog_OTOOL64"; then
  5884. ac_ct_OTOOL64=$OTOOL64
  5885. # Extract the first word of "otool64", so it can be a program name with args.
  5886. set dummy otool64; ac_word=$2
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5888. $as_echo_n "checking for $ac_word... " >&6; }
  5889. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5890. $as_echo_n "(cached) " >&6
  5891. else
  5892. if test -n "$ac_ct_OTOOL64"; then
  5893. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5894. else
  5895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5896. for as_dir in $PATH
  5897. do
  5898. IFS=$as_save_IFS
  5899. test -z "$as_dir" && as_dir=.
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5902. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5904. break 2
  5905. fi
  5906. done
  5907. done
  5908. IFS=$as_save_IFS
  5909. fi
  5910. fi
  5911. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5912. if test -n "$ac_ct_OTOOL64"; then
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5914. $as_echo "$ac_ct_OTOOL64" >&6; }
  5915. else
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5917. $as_echo "no" >&6; }
  5918. fi
  5919. if test "x$ac_ct_OTOOL64" = x; then
  5920. OTOOL64=":"
  5921. else
  5922. case $cross_compiling:$ac_tool_warned in
  5923. yes:)
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5925. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5926. ac_tool_warned=yes ;;
  5927. esac
  5928. OTOOL64=$ac_ct_OTOOL64
  5929. fi
  5930. else
  5931. OTOOL64="$ac_cv_prog_OTOOL64"
  5932. fi
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5934. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5935. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5936. $as_echo_n "(cached) " >&6
  5937. else
  5938. lt_cv_apple_cc_single_mod=no
  5939. if test -z "${LT_MULTI_MODULE}"; then
  5940. # By default we will add the -single_module flag. You can override
  5941. # by either setting the environment variable LT_MULTI_MODULE
  5942. # non-empty at configure time, or by adding -multi_module to the
  5943. # link flags.
  5944. rm -rf libconftest.dylib*
  5945. echo "int foo(void){return 1;}" > conftest.c
  5946. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5947. -dynamiclib -Wl,-single_module conftest.c" >&5
  5948. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5949. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5950. _lt_result=$?
  5951. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5952. lt_cv_apple_cc_single_mod=yes
  5953. else
  5954. cat conftest.err >&5
  5955. fi
  5956. rm -rf libconftest.dylib*
  5957. rm -f conftest.*
  5958. fi
  5959. fi
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5961. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5963. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5964. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. lt_cv_ld_exported_symbols_list=no
  5968. save_LDFLAGS=$LDFLAGS
  5969. echo "_main" > conftest.sym
  5970. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. int
  5974. main ()
  5975. {
  5976. ;
  5977. return 0;
  5978. }
  5979. _ACEOF
  5980. if ac_fn_c_try_link "$LINENO"; then :
  5981. lt_cv_ld_exported_symbols_list=yes
  5982. else
  5983. lt_cv_ld_exported_symbols_list=no
  5984. fi
  5985. rm -f core conftest.err conftest.$ac_objext \
  5986. conftest$ac_exeext conftest.$ac_ext
  5987. LDFLAGS="$save_LDFLAGS"
  5988. fi
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5990. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5992. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5993. if test "${lt_cv_ld_force_load+set}" = set; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. lt_cv_ld_force_load=no
  5997. cat > conftest.c << _LT_EOF
  5998. int forced_loaded() { return 2;}
  5999. _LT_EOF
  6000. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6001. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6002. echo "$AR cru libconftest.a conftest.o" >&5
  6003. $AR cru libconftest.a conftest.o 2>&5
  6004. cat > conftest.c << _LT_EOF
  6005. int main() { return 0;}
  6006. _LT_EOF
  6007. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6008. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6009. _lt_result=$?
  6010. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6011. lt_cv_ld_force_load=yes
  6012. else
  6013. cat conftest.err >&5
  6014. fi
  6015. rm -f conftest.err libconftest.a conftest conftest.c
  6016. rm -rf conftest.dSYM
  6017. fi
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6019. $as_echo "$lt_cv_ld_force_load" >&6; }
  6020. case $host_os in
  6021. rhapsody* | darwin1.[012])
  6022. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6023. darwin1.*)
  6024. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6025. darwin*) # darwin 5.x on
  6026. # if running on 10.5 or later, the deployment target defaults
  6027. # to the OS version, if on x86, and 10.4, the deployment
  6028. # target defaults to 10.4. Don't you love it?
  6029. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6030. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6031. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6032. 10.[012][,.]*)
  6033. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6034. 10.*)
  6035. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6036. esac
  6037. ;;
  6038. esac
  6039. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6040. _lt_dar_single_mod='$single_module'
  6041. fi
  6042. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6043. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6044. else
  6045. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6046. fi
  6047. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6048. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6049. else
  6050. _lt_dsymutil=
  6051. fi
  6052. ;;
  6053. esac
  6054. ac_ext=c
  6055. ac_cpp='$CPP $CPPFLAGS'
  6056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6060. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6061. # On Suns, sometimes $CPP names a directory.
  6062. if test -n "$CPP" && test -d "$CPP"; then
  6063. CPP=
  6064. fi
  6065. if test -z "$CPP"; then
  6066. if test "${ac_cv_prog_CPP+set}" = set; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. # Double quotes because CPP needs to be expanded
  6070. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6071. do
  6072. ac_preproc_ok=false
  6073. for ac_c_preproc_warn_flag in '' yes
  6074. do
  6075. # Use a header file that comes with gcc, so configuring glibc
  6076. # with a fresh cross-compiler works.
  6077. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6078. # <limits.h> exists even on freestanding compilers.
  6079. # On the NeXT, cc -E runs the code through the compiler's parser,
  6080. # not just through cpp. "Syntax error" is here to catch this case.
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. #ifdef __STDC__
  6084. # include <limits.h>
  6085. #else
  6086. # include <assert.h>
  6087. #endif
  6088. Syntax error
  6089. _ACEOF
  6090. if ac_fn_c_try_cpp "$LINENO"; then :
  6091. else
  6092. # Broken: fails on valid input.
  6093. continue
  6094. fi
  6095. rm -f conftest.err conftest.$ac_ext
  6096. # OK, works on sane cases. Now check whether nonexistent headers
  6097. # can be detected and how.
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. #include <ac_nonexistent.h>
  6101. _ACEOF
  6102. if ac_fn_c_try_cpp "$LINENO"; then :
  6103. # Broken: success on invalid input.
  6104. continue
  6105. else
  6106. # Passes both tests.
  6107. ac_preproc_ok=:
  6108. break
  6109. fi
  6110. rm -f conftest.err conftest.$ac_ext
  6111. done
  6112. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6113. rm -f conftest.err conftest.$ac_ext
  6114. if $ac_preproc_ok; then :
  6115. break
  6116. fi
  6117. done
  6118. ac_cv_prog_CPP=$CPP
  6119. fi
  6120. CPP=$ac_cv_prog_CPP
  6121. else
  6122. ac_cv_prog_CPP=$CPP
  6123. fi
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6125. $as_echo "$CPP" >&6; }
  6126. ac_preproc_ok=false
  6127. for ac_c_preproc_warn_flag in '' yes
  6128. do
  6129. # Use a header file that comes with gcc, so configuring glibc
  6130. # with a fresh cross-compiler works.
  6131. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6132. # <limits.h> exists even on freestanding compilers.
  6133. # On the NeXT, cc -E runs the code through the compiler's parser,
  6134. # not just through cpp. "Syntax error" is here to catch this case.
  6135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6136. /* end confdefs.h. */
  6137. #ifdef __STDC__
  6138. # include <limits.h>
  6139. #else
  6140. # include <assert.h>
  6141. #endif
  6142. Syntax error
  6143. _ACEOF
  6144. if ac_fn_c_try_cpp "$LINENO"; then :
  6145. else
  6146. # Broken: fails on valid input.
  6147. continue
  6148. fi
  6149. rm -f conftest.err conftest.$ac_ext
  6150. # OK, works on sane cases. Now check whether nonexistent headers
  6151. # can be detected and how.
  6152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. #include <ac_nonexistent.h>
  6155. _ACEOF
  6156. if ac_fn_c_try_cpp "$LINENO"; then :
  6157. # Broken: success on invalid input.
  6158. continue
  6159. else
  6160. # Passes both tests.
  6161. ac_preproc_ok=:
  6162. break
  6163. fi
  6164. rm -f conftest.err conftest.$ac_ext
  6165. done
  6166. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6167. rm -f conftest.err conftest.$ac_ext
  6168. if $ac_preproc_ok; then :
  6169. else
  6170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6172. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6173. See \`config.log' for more details." "$LINENO" 5; }
  6174. fi
  6175. ac_ext=c
  6176. ac_cpp='$CPP $CPPFLAGS'
  6177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6181. $as_echo_n "checking for ANSI C header files... " >&6; }
  6182. if test "${ac_cv_header_stdc+set}" = set; then :
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #include <stdlib.h>
  6188. #include <stdarg.h>
  6189. #include <string.h>
  6190. #include <float.h>
  6191. int
  6192. main ()
  6193. {
  6194. ;
  6195. return 0;
  6196. }
  6197. _ACEOF
  6198. if ac_fn_c_try_compile "$LINENO"; then :
  6199. ac_cv_header_stdc=yes
  6200. else
  6201. ac_cv_header_stdc=no
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. if test $ac_cv_header_stdc = yes; then
  6205. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <string.h>
  6209. _ACEOF
  6210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6211. $EGREP "memchr" >/dev/null 2>&1; then :
  6212. else
  6213. ac_cv_header_stdc=no
  6214. fi
  6215. rm -f conftest*
  6216. fi
  6217. if test $ac_cv_header_stdc = yes; then
  6218. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6220. /* end confdefs.h. */
  6221. #include <stdlib.h>
  6222. _ACEOF
  6223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6224. $EGREP "free" >/dev/null 2>&1; then :
  6225. else
  6226. ac_cv_header_stdc=no
  6227. fi
  6228. rm -f conftest*
  6229. fi
  6230. if test $ac_cv_header_stdc = yes; then
  6231. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6232. if test "$cross_compiling" = yes; then :
  6233. :
  6234. else
  6235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6236. /* end confdefs.h. */
  6237. #include <ctype.h>
  6238. #include <stdlib.h>
  6239. #if ((' ' & 0x0FF) == 0x020)
  6240. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6241. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6242. #else
  6243. # define ISLOWER(c) \
  6244. (('a' <= (c) && (c) <= 'i') \
  6245. || ('j' <= (c) && (c) <= 'r') \
  6246. || ('s' <= (c) && (c) <= 'z'))
  6247. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6248. #endif
  6249. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6250. int
  6251. main ()
  6252. {
  6253. int i;
  6254. for (i = 0; i < 256; i++)
  6255. if (XOR (islower (i), ISLOWER (i))
  6256. || toupper (i) != TOUPPER (i))
  6257. return 2;
  6258. return 0;
  6259. }
  6260. _ACEOF
  6261. if ac_fn_c_try_run "$LINENO"; then :
  6262. else
  6263. ac_cv_header_stdc=no
  6264. fi
  6265. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6266. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6267. fi
  6268. fi
  6269. fi
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6271. $as_echo "$ac_cv_header_stdc" >&6; }
  6272. if test $ac_cv_header_stdc = yes; then
  6273. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6274. fi
  6275. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6276. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6277. inttypes.h stdint.h unistd.h
  6278. do :
  6279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6280. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6281. "
  6282. eval as_val=\$$as_ac_Header
  6283. if test "x$as_val" = x""yes; then :
  6284. cat >>confdefs.h <<_ACEOF
  6285. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6286. _ACEOF
  6287. fi
  6288. done
  6289. for ac_header in dlfcn.h
  6290. do :
  6291. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6292. "
  6293. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6294. cat >>confdefs.h <<_ACEOF
  6295. #define HAVE_DLFCN_H 1
  6296. _ACEOF
  6297. fi
  6298. done
  6299. # Set options
  6300. enable_dlopen=no
  6301. enable_win32_dll=no
  6302. # Check whether --enable-shared was given.
  6303. if test "${enable_shared+set}" = set; then :
  6304. enableval=$enable_shared; p=${PACKAGE-default}
  6305. case $enableval in
  6306. yes) enable_shared=yes ;;
  6307. no) enable_shared=no ;;
  6308. *)
  6309. enable_shared=no
  6310. # Look at the argument we got. We use all the common list separators.
  6311. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6312. for pkg in $enableval; do
  6313. IFS="$lt_save_ifs"
  6314. if test "X$pkg" = "X$p"; then
  6315. enable_shared=yes
  6316. fi
  6317. done
  6318. IFS="$lt_save_ifs"
  6319. ;;
  6320. esac
  6321. else
  6322. enable_shared=yes
  6323. fi
  6324. # Check whether --enable-static was given.
  6325. if test "${enable_static+set}" = set; then :
  6326. enableval=$enable_static; p=${PACKAGE-default}
  6327. case $enableval in
  6328. yes) enable_static=yes ;;
  6329. no) enable_static=no ;;
  6330. *)
  6331. enable_static=no
  6332. # Look at the argument we got. We use all the common list separators.
  6333. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6334. for pkg in $enableval; do
  6335. IFS="$lt_save_ifs"
  6336. if test "X$pkg" = "X$p"; then
  6337. enable_static=yes
  6338. fi
  6339. done
  6340. IFS="$lt_save_ifs"
  6341. ;;
  6342. esac
  6343. else
  6344. enable_static=yes
  6345. fi
  6346. # Check whether --with-pic was given.
  6347. if test "${with_pic+set}" = set; then :
  6348. withval=$with_pic; pic_mode="$withval"
  6349. else
  6350. pic_mode=default
  6351. fi
  6352. test -z "$pic_mode" && pic_mode=default
  6353. # Check whether --enable-fast-install was given.
  6354. if test "${enable_fast_install+set}" = set; then :
  6355. enableval=$enable_fast_install; p=${PACKAGE-default}
  6356. case $enableval in
  6357. yes) enable_fast_install=yes ;;
  6358. no) enable_fast_install=no ;;
  6359. *)
  6360. enable_fast_install=no
  6361. # Look at the argument we got. We use all the common list separators.
  6362. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6363. for pkg in $enableval; do
  6364. IFS="$lt_save_ifs"
  6365. if test "X$pkg" = "X$p"; then
  6366. enable_fast_install=yes
  6367. fi
  6368. done
  6369. IFS="$lt_save_ifs"
  6370. ;;
  6371. esac
  6372. else
  6373. enable_fast_install=yes
  6374. fi
  6375. # This can be used to rebuild libtool when needed
  6376. LIBTOOL_DEPS="$ltmain"
  6377. # Always use our own libtool.
  6378. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6379. test -z "$LN_S" && LN_S="ln -s"
  6380. if test -n "${ZSH_VERSION+set}" ; then
  6381. setopt NO_GLOB_SUBST
  6382. fi
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6384. $as_echo_n "checking for objdir... " >&6; }
  6385. if test "${lt_cv_objdir+set}" = set; then :
  6386. $as_echo_n "(cached) " >&6
  6387. else
  6388. rm -f .libs 2>/dev/null
  6389. mkdir .libs 2>/dev/null
  6390. if test -d .libs; then
  6391. lt_cv_objdir=.libs
  6392. else
  6393. # MS-DOS does not allow filenames that begin with a dot.
  6394. lt_cv_objdir=_libs
  6395. fi
  6396. rmdir .libs 2>/dev/null
  6397. fi
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6399. $as_echo "$lt_cv_objdir" >&6; }
  6400. objdir=$lt_cv_objdir
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define LT_OBJDIR "$lt_cv_objdir/"
  6403. _ACEOF
  6404. case $host_os in
  6405. aix3*)
  6406. # AIX sometimes has problems with the GCC collect2 program. For some
  6407. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6408. # vanish in a puff of smoke.
  6409. if test "X${COLLECT_NAMES+set}" != Xset; then
  6410. COLLECT_NAMES=
  6411. export COLLECT_NAMES
  6412. fi
  6413. ;;
  6414. esac
  6415. # Global variables:
  6416. ofile=libtool
  6417. can_build_shared=yes
  6418. # All known linkers require a `.a' archive for static linking (except MSVC,
  6419. # which needs '.lib').
  6420. libext=a
  6421. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6422. old_CC="$CC"
  6423. old_CFLAGS="$CFLAGS"
  6424. # Set sane defaults for various variables
  6425. test -z "$CC" && CC=cc
  6426. test -z "$LTCC" && LTCC=$CC
  6427. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6428. test -z "$LD" && LD=ld
  6429. test -z "$ac_objext" && ac_objext=o
  6430. for cc_temp in $compiler""; do
  6431. case $cc_temp in
  6432. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6433. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6434. \-*) ;;
  6435. *) break;;
  6436. esac
  6437. done
  6438. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6439. # Only perform the check for file, if the check method requires it
  6440. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6441. case $deplibs_check_method in
  6442. file_magic*)
  6443. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6445. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6446. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. case $MAGIC_CMD in
  6450. [\\/*] | ?:[\\/]*)
  6451. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6452. ;;
  6453. *)
  6454. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6455. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6456. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6457. for ac_dir in $ac_dummy; do
  6458. IFS="$lt_save_ifs"
  6459. test -z "$ac_dir" && ac_dir=.
  6460. if test -f $ac_dir/${ac_tool_prefix}file; then
  6461. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6462. if test -n "$file_magic_test_file"; then
  6463. case $deplibs_check_method in
  6464. "file_magic "*)
  6465. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6466. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6467. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6468. $EGREP "$file_magic_regex" > /dev/null; then
  6469. :
  6470. else
  6471. cat <<_LT_EOF 1>&2
  6472. *** Warning: the command libtool uses to detect shared libraries,
  6473. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6474. *** The result is that libtool may fail to recognize shared libraries
  6475. *** as such. This will affect the creation of libtool libraries that
  6476. *** depend on shared libraries, but programs linked with such libtool
  6477. *** libraries will work regardless of this problem. Nevertheless, you
  6478. *** may want to report the problem to your system manager and/or to
  6479. *** bug-libtool@gnu.org
  6480. _LT_EOF
  6481. fi ;;
  6482. esac
  6483. fi
  6484. break
  6485. fi
  6486. done
  6487. IFS="$lt_save_ifs"
  6488. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6489. ;;
  6490. esac
  6491. fi
  6492. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6493. if test -n "$MAGIC_CMD"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6495. $as_echo "$MAGIC_CMD" >&6; }
  6496. else
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6501. if test -n "$ac_tool_prefix"; then
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6503. $as_echo_n "checking for file... " >&6; }
  6504. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. case $MAGIC_CMD in
  6508. [\\/*] | ?:[\\/]*)
  6509. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6510. ;;
  6511. *)
  6512. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6513. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6514. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6515. for ac_dir in $ac_dummy; do
  6516. IFS="$lt_save_ifs"
  6517. test -z "$ac_dir" && ac_dir=.
  6518. if test -f $ac_dir/file; then
  6519. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6520. if test -n "$file_magic_test_file"; then
  6521. case $deplibs_check_method in
  6522. "file_magic "*)
  6523. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6524. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6525. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6526. $EGREP "$file_magic_regex" > /dev/null; then
  6527. :
  6528. else
  6529. cat <<_LT_EOF 1>&2
  6530. *** Warning: the command libtool uses to detect shared libraries,
  6531. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6532. *** The result is that libtool may fail to recognize shared libraries
  6533. *** as such. This will affect the creation of libtool libraries that
  6534. *** depend on shared libraries, but programs linked with such libtool
  6535. *** libraries will work regardless of this problem. Nevertheless, you
  6536. *** may want to report the problem to your system manager and/or to
  6537. *** bug-libtool@gnu.org
  6538. _LT_EOF
  6539. fi ;;
  6540. esac
  6541. fi
  6542. break
  6543. fi
  6544. done
  6545. IFS="$lt_save_ifs"
  6546. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6547. ;;
  6548. esac
  6549. fi
  6550. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6551. if test -n "$MAGIC_CMD"; then
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6553. $as_echo "$MAGIC_CMD" >&6; }
  6554. else
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6556. $as_echo "no" >&6; }
  6557. fi
  6558. else
  6559. MAGIC_CMD=:
  6560. fi
  6561. fi
  6562. fi
  6563. ;;
  6564. esac
  6565. # Use C for the default configuration in the libtool script
  6566. lt_save_CC="$CC"
  6567. ac_ext=c
  6568. ac_cpp='$CPP $CPPFLAGS'
  6569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6572. # Source file extension for C test sources.
  6573. ac_ext=c
  6574. # Object file extension for compiled C test sources.
  6575. objext=o
  6576. objext=$objext
  6577. # Code to be used in simple compile tests
  6578. lt_simple_compile_test_code="int some_variable = 0;"
  6579. # Code to be used in simple link tests
  6580. lt_simple_link_test_code='int main(){return(0);}'
  6581. # If no C compiler was specified, use CC.
  6582. LTCC=${LTCC-"$CC"}
  6583. # If no C compiler flags were specified, use CFLAGS.
  6584. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6585. # Allow CC to be a program name with arguments.
  6586. compiler=$CC
  6587. # Save the default compiler, since it gets overwritten when the other
  6588. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6589. compiler_DEFAULT=$CC
  6590. # save warnings/boilerplate of simple test code
  6591. ac_outfile=conftest.$ac_objext
  6592. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6593. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6594. _lt_compiler_boilerplate=`cat conftest.err`
  6595. $RM conftest*
  6596. ac_outfile=conftest.$ac_objext
  6597. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6598. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6599. _lt_linker_boilerplate=`cat conftest.err`
  6600. $RM -r conftest*
  6601. ## CAVEAT EMPTOR:
  6602. ## There is no encapsulation within the following macros, do not change
  6603. ## the running order or otherwise move them around unless you know exactly
  6604. ## what you are doing...
  6605. if test -n "$compiler"; then
  6606. lt_prog_compiler_no_builtin_flag=
  6607. if test "$GCC" = yes; then
  6608. case $cc_basename in
  6609. nvcc*)
  6610. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6611. *)
  6612. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6613. esac
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6615. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6616. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6617. $as_echo_n "(cached) " >&6
  6618. else
  6619. lt_cv_prog_compiler_rtti_exceptions=no
  6620. ac_outfile=conftest.$ac_objext
  6621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6622. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6623. # Insert the option either (1) after the last *FLAGS variable, or
  6624. # (2) before a word containing "conftest.", or (3) at the end.
  6625. # Note that $ac_compile itself does not contain backslashes and begins
  6626. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6627. # The option is referenced via a variable to avoid confusing sed.
  6628. lt_compile=`echo "$ac_compile" | $SED \
  6629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6631. -e 's:$: $lt_compiler_flag:'`
  6632. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6633. (eval "$lt_compile" 2>conftest.err)
  6634. ac_status=$?
  6635. cat conftest.err >&5
  6636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6637. if (exit $ac_status) && test -s "$ac_outfile"; then
  6638. # The compiler can only warn and ignore the option if not recognized
  6639. # So say no if there are warnings other than the usual output.
  6640. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6641. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6642. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6643. lt_cv_prog_compiler_rtti_exceptions=yes
  6644. fi
  6645. fi
  6646. $RM conftest*
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6649. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6650. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6651. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6652. else
  6653. :
  6654. fi
  6655. fi
  6656. lt_prog_compiler_wl=
  6657. lt_prog_compiler_pic=
  6658. lt_prog_compiler_static=
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6660. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6661. if test "$GCC" = yes; then
  6662. lt_prog_compiler_wl='-Wl,'
  6663. lt_prog_compiler_static='-static'
  6664. case $host_os in
  6665. aix*)
  6666. # All AIX code is PIC.
  6667. if test "$host_cpu" = ia64; then
  6668. # AIX 5 now supports IA64 processor
  6669. lt_prog_compiler_static='-Bstatic'
  6670. fi
  6671. lt_prog_compiler_pic='-fPIC'
  6672. ;;
  6673. amigaos*)
  6674. case $host_cpu in
  6675. powerpc)
  6676. # see comment about AmigaOS4 .so support
  6677. lt_prog_compiler_pic='-fPIC'
  6678. ;;
  6679. m68k)
  6680. # FIXME: we need at least 68020 code to build shared libraries, but
  6681. # adding the `-m68020' flag to GCC prevents building anything better,
  6682. # like `-m68040'.
  6683. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6684. ;;
  6685. esac
  6686. ;;
  6687. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6688. # PIC is the default for these OSes.
  6689. ;;
  6690. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6691. # This hack is so that the source file can tell whether it is being
  6692. # built for inclusion in a dll (and should export symbols for example).
  6693. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6694. # (--disable-auto-import) libraries
  6695. lt_prog_compiler_pic='-DDLL_EXPORT'
  6696. ;;
  6697. darwin* | rhapsody*)
  6698. # PIC is the default on this platform
  6699. # Common symbols not allowed in MH_DYLIB files
  6700. lt_prog_compiler_pic='-fno-common'
  6701. ;;
  6702. haiku*)
  6703. # PIC is the default for Haiku.
  6704. # The "-static" flag exists, but is broken.
  6705. lt_prog_compiler_static=
  6706. ;;
  6707. hpux*)
  6708. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6709. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6710. # sets the default TLS model and affects inlining.
  6711. case $host_cpu in
  6712. hppa*64*)
  6713. # +Z the default
  6714. ;;
  6715. *)
  6716. lt_prog_compiler_pic='-fPIC'
  6717. ;;
  6718. esac
  6719. ;;
  6720. interix[3-9]*)
  6721. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6722. # Instead, we relocate shared libraries at runtime.
  6723. ;;
  6724. msdosdjgpp*)
  6725. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6726. # on systems that don't support them.
  6727. lt_prog_compiler_can_build_shared=no
  6728. enable_shared=no
  6729. ;;
  6730. *nto* | *qnx*)
  6731. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6732. # it will coredump.
  6733. lt_prog_compiler_pic='-fPIC -shared'
  6734. ;;
  6735. sysv4*MP*)
  6736. if test -d /usr/nec; then
  6737. lt_prog_compiler_pic=-Kconform_pic
  6738. fi
  6739. ;;
  6740. *)
  6741. lt_prog_compiler_pic='-fPIC'
  6742. ;;
  6743. esac
  6744. case $cc_basename in
  6745. nvcc*) # Cuda Compiler Driver 2.2
  6746. lt_prog_compiler_wl='-Xlinker '
  6747. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6748. ;;
  6749. esac
  6750. else
  6751. # PORTME Check for flag to pass linker flags through the system compiler.
  6752. case $host_os in
  6753. aix*)
  6754. lt_prog_compiler_wl='-Wl,'
  6755. if test "$host_cpu" = ia64; then
  6756. # AIX 5 now supports IA64 processor
  6757. lt_prog_compiler_static='-Bstatic'
  6758. else
  6759. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6760. fi
  6761. ;;
  6762. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6763. # This hack is so that the source file can tell whether it is being
  6764. # built for inclusion in a dll (and should export symbols for example).
  6765. lt_prog_compiler_pic='-DDLL_EXPORT'
  6766. ;;
  6767. hpux9* | hpux10* | hpux11*)
  6768. lt_prog_compiler_wl='-Wl,'
  6769. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6770. # not for PA HP-UX.
  6771. case $host_cpu in
  6772. hppa*64*|ia64*)
  6773. # +Z the default
  6774. ;;
  6775. *)
  6776. lt_prog_compiler_pic='+Z'
  6777. ;;
  6778. esac
  6779. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6780. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6781. ;;
  6782. irix5* | irix6* | nonstopux*)
  6783. lt_prog_compiler_wl='-Wl,'
  6784. # PIC (with -KPIC) is the default.
  6785. lt_prog_compiler_static='-non_shared'
  6786. ;;
  6787. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6788. case $cc_basename in
  6789. # old Intel for x86_64 which still supported -KPIC.
  6790. ecc*)
  6791. lt_prog_compiler_wl='-Wl,'
  6792. lt_prog_compiler_pic='-KPIC'
  6793. lt_prog_compiler_static='-static'
  6794. ;;
  6795. # icc used to be incompatible with GCC.
  6796. # ICC 10 doesn't accept -KPIC any more.
  6797. icc* | ifort*)
  6798. lt_prog_compiler_wl='-Wl,'
  6799. lt_prog_compiler_pic='-fPIC'
  6800. lt_prog_compiler_static='-static'
  6801. ;;
  6802. # Lahey Fortran 8.1.
  6803. lf95*)
  6804. lt_prog_compiler_wl='-Wl,'
  6805. lt_prog_compiler_pic='--shared'
  6806. lt_prog_compiler_static='--static'
  6807. ;;
  6808. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6809. # Portland Group compilers (*not* the Pentium gcc compiler,
  6810. # which looks to be a dead project)
  6811. lt_prog_compiler_wl='-Wl,'
  6812. lt_prog_compiler_pic='-fpic'
  6813. lt_prog_compiler_static='-Bstatic'
  6814. ;;
  6815. ccc*)
  6816. lt_prog_compiler_wl='-Wl,'
  6817. # All Alpha code is PIC.
  6818. lt_prog_compiler_static='-non_shared'
  6819. ;;
  6820. xl* | bgxl* | bgf* | mpixl*)
  6821. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6822. lt_prog_compiler_wl='-Wl,'
  6823. lt_prog_compiler_pic='-qpic'
  6824. lt_prog_compiler_static='-qstaticlink'
  6825. ;;
  6826. *)
  6827. case `$CC -V 2>&1 | sed 5q` in
  6828. *Sun\ F* | *Sun*Fortran*)
  6829. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6830. lt_prog_compiler_pic='-KPIC'
  6831. lt_prog_compiler_static='-Bstatic'
  6832. lt_prog_compiler_wl=''
  6833. ;;
  6834. *Sun\ C*)
  6835. # Sun C 5.9
  6836. lt_prog_compiler_pic='-KPIC'
  6837. lt_prog_compiler_static='-Bstatic'
  6838. lt_prog_compiler_wl='-Wl,'
  6839. ;;
  6840. esac
  6841. ;;
  6842. esac
  6843. ;;
  6844. newsos6)
  6845. lt_prog_compiler_pic='-KPIC'
  6846. lt_prog_compiler_static='-Bstatic'
  6847. ;;
  6848. *nto* | *qnx*)
  6849. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6850. # it will coredump.
  6851. lt_prog_compiler_pic='-fPIC -shared'
  6852. ;;
  6853. osf3* | osf4* | osf5*)
  6854. lt_prog_compiler_wl='-Wl,'
  6855. # All OSF/1 code is PIC.
  6856. lt_prog_compiler_static='-non_shared'
  6857. ;;
  6858. rdos*)
  6859. lt_prog_compiler_static='-non_shared'
  6860. ;;
  6861. solaris*)
  6862. lt_prog_compiler_pic='-KPIC'
  6863. lt_prog_compiler_static='-Bstatic'
  6864. case $cc_basename in
  6865. f77* | f90* | f95*)
  6866. lt_prog_compiler_wl='-Qoption ld ';;
  6867. *)
  6868. lt_prog_compiler_wl='-Wl,';;
  6869. esac
  6870. ;;
  6871. sunos4*)
  6872. lt_prog_compiler_wl='-Qoption ld '
  6873. lt_prog_compiler_pic='-PIC'
  6874. lt_prog_compiler_static='-Bstatic'
  6875. ;;
  6876. sysv4 | sysv4.2uw2* | sysv4.3*)
  6877. lt_prog_compiler_wl='-Wl,'
  6878. lt_prog_compiler_pic='-KPIC'
  6879. lt_prog_compiler_static='-Bstatic'
  6880. ;;
  6881. sysv4*MP*)
  6882. if test -d /usr/nec ;then
  6883. lt_prog_compiler_pic='-Kconform_pic'
  6884. lt_prog_compiler_static='-Bstatic'
  6885. fi
  6886. ;;
  6887. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6888. lt_prog_compiler_wl='-Wl,'
  6889. lt_prog_compiler_pic='-KPIC'
  6890. lt_prog_compiler_static='-Bstatic'
  6891. ;;
  6892. unicos*)
  6893. lt_prog_compiler_wl='-Wl,'
  6894. lt_prog_compiler_can_build_shared=no
  6895. ;;
  6896. uts4*)
  6897. lt_prog_compiler_pic='-pic'
  6898. lt_prog_compiler_static='-Bstatic'
  6899. ;;
  6900. *)
  6901. lt_prog_compiler_can_build_shared=no
  6902. ;;
  6903. esac
  6904. fi
  6905. case $host_os in
  6906. # For platforms which do not support PIC, -DPIC is meaningless:
  6907. *djgpp*)
  6908. lt_prog_compiler_pic=
  6909. ;;
  6910. *)
  6911. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6912. ;;
  6913. esac
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6915. $as_echo "$lt_prog_compiler_pic" >&6; }
  6916. #
  6917. # Check to make sure the PIC flag actually works.
  6918. #
  6919. if test -n "$lt_prog_compiler_pic"; then
  6920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6921. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6922. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6923. $as_echo_n "(cached) " >&6
  6924. else
  6925. lt_cv_prog_compiler_pic_works=no
  6926. ac_outfile=conftest.$ac_objext
  6927. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6928. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6929. # Insert the option either (1) after the last *FLAGS variable, or
  6930. # (2) before a word containing "conftest.", or (3) at the end.
  6931. # Note that $ac_compile itself does not contain backslashes and begins
  6932. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6933. # The option is referenced via a variable to avoid confusing sed.
  6934. lt_compile=`echo "$ac_compile" | $SED \
  6935. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6936. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6937. -e 's:$: $lt_compiler_flag:'`
  6938. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6939. (eval "$lt_compile" 2>conftest.err)
  6940. ac_status=$?
  6941. cat conftest.err >&5
  6942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943. if (exit $ac_status) && test -s "$ac_outfile"; then
  6944. # The compiler can only warn and ignore the option if not recognized
  6945. # So say no if there are warnings other than the usual output.
  6946. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6947. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6948. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6949. lt_cv_prog_compiler_pic_works=yes
  6950. fi
  6951. fi
  6952. $RM conftest*
  6953. fi
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6955. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6956. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6957. case $lt_prog_compiler_pic in
  6958. "" | " "*) ;;
  6959. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6960. esac
  6961. else
  6962. lt_prog_compiler_pic=
  6963. lt_prog_compiler_can_build_shared=no
  6964. fi
  6965. fi
  6966. #
  6967. # Check to make sure the static flag actually works.
  6968. #
  6969. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6971. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6972. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6973. $as_echo_n "(cached) " >&6
  6974. else
  6975. lt_cv_prog_compiler_static_works=no
  6976. save_LDFLAGS="$LDFLAGS"
  6977. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6978. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6979. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6980. # The linker can only warn and ignore the option if not recognized
  6981. # So say no if there are warnings
  6982. if test -s conftest.err; then
  6983. # Append any errors to the config.log.
  6984. cat conftest.err 1>&5
  6985. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  6986. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6987. if diff conftest.exp conftest.er2 >/dev/null; then
  6988. lt_cv_prog_compiler_static_works=yes
  6989. fi
  6990. else
  6991. lt_cv_prog_compiler_static_works=yes
  6992. fi
  6993. fi
  6994. $RM -r conftest*
  6995. LDFLAGS="$save_LDFLAGS"
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6998. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6999. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7000. :
  7001. else
  7002. lt_prog_compiler_static=
  7003. fi
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7005. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7006. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. lt_cv_prog_compiler_c_o=no
  7010. $RM -r conftest 2>/dev/null
  7011. mkdir conftest
  7012. cd conftest
  7013. mkdir out
  7014. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7015. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7016. # Insert the option either (1) after the last *FLAGS variable, or
  7017. # (2) before a word containing "conftest.", or (3) at the end.
  7018. # Note that $ac_compile itself does not contain backslashes and begins
  7019. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7020. lt_compile=`echo "$ac_compile" | $SED \
  7021. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7022. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7023. -e 's:$: $lt_compiler_flag:'`
  7024. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7025. (eval "$lt_compile" 2>out/conftest.err)
  7026. ac_status=$?
  7027. cat out/conftest.err >&5
  7028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7029. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7030. then
  7031. # The compiler can only warn and ignore the option if not recognized
  7032. # So say no if there are warnings
  7033. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7034. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7035. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7036. lt_cv_prog_compiler_c_o=yes
  7037. fi
  7038. fi
  7039. chmod u+w . 2>&5
  7040. $RM conftest*
  7041. # SGI C++ compiler will create directory out/ii_files/ for
  7042. # template instantiation
  7043. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7044. $RM out/* && rmdir out
  7045. cd ..
  7046. $RM -r conftest
  7047. $RM conftest*
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7050. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7052. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7053. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. lt_cv_prog_compiler_c_o=no
  7057. $RM -r conftest 2>/dev/null
  7058. mkdir conftest
  7059. cd conftest
  7060. mkdir out
  7061. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7062. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7063. # Insert the option either (1) after the last *FLAGS variable, or
  7064. # (2) before a word containing "conftest.", or (3) at the end.
  7065. # Note that $ac_compile itself does not contain backslashes and begins
  7066. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7067. lt_compile=`echo "$ac_compile" | $SED \
  7068. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7069. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7070. -e 's:$: $lt_compiler_flag:'`
  7071. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7072. (eval "$lt_compile" 2>out/conftest.err)
  7073. ac_status=$?
  7074. cat out/conftest.err >&5
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7077. then
  7078. # The compiler can only warn and ignore the option if not recognized
  7079. # So say no if there are warnings
  7080. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7081. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7082. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7083. lt_cv_prog_compiler_c_o=yes
  7084. fi
  7085. fi
  7086. chmod u+w . 2>&5
  7087. $RM conftest*
  7088. # SGI C++ compiler will create directory out/ii_files/ for
  7089. # template instantiation
  7090. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7091. $RM out/* && rmdir out
  7092. cd ..
  7093. $RM -r conftest
  7094. $RM conftest*
  7095. fi
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7097. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7098. hard_links="nottested"
  7099. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7100. # do not overwrite the value of need_locks provided by the user
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7102. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7103. hard_links=yes
  7104. $RM conftest*
  7105. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7106. touch conftest.a
  7107. ln conftest.a conftest.b 2>&5 || hard_links=no
  7108. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7110. $as_echo "$hard_links" >&6; }
  7111. if test "$hard_links" = no; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7113. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7114. need_locks=warn
  7115. fi
  7116. else
  7117. need_locks=no
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7120. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7121. runpath_var=
  7122. allow_undefined_flag=
  7123. always_export_symbols=no
  7124. archive_cmds=
  7125. archive_expsym_cmds=
  7126. compiler_needs_object=no
  7127. enable_shared_with_static_runtimes=no
  7128. export_dynamic_flag_spec=
  7129. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7130. hardcode_automatic=no
  7131. hardcode_direct=no
  7132. hardcode_direct_absolute=no
  7133. hardcode_libdir_flag_spec=
  7134. hardcode_libdir_flag_spec_ld=
  7135. hardcode_libdir_separator=
  7136. hardcode_minus_L=no
  7137. hardcode_shlibpath_var=unsupported
  7138. inherit_rpath=no
  7139. link_all_deplibs=unknown
  7140. module_cmds=
  7141. module_expsym_cmds=
  7142. old_archive_from_new_cmds=
  7143. old_archive_from_expsyms_cmds=
  7144. thread_safe_flag_spec=
  7145. whole_archive_flag_spec=
  7146. # include_expsyms should be a list of space-separated symbols to be *always*
  7147. # included in the symbol list
  7148. include_expsyms=
  7149. # exclude_expsyms can be an extended regexp of symbols to exclude
  7150. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7151. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7152. # as well as any symbol that contains `d'.
  7153. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7154. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7155. # platforms (ab)use it in PIC code, but their linkers get confused if
  7156. # the symbol is explicitly referenced. Since portable code cannot
  7157. # rely on this symbol name, it's probably fine to never include it in
  7158. # preloaded symbol tables.
  7159. # Exclude shared library initialization/finalization symbols.
  7160. extract_expsyms_cmds=
  7161. case $host_os in
  7162. cygwin* | mingw* | pw32* | cegcc*)
  7163. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7164. # When not using gcc, we currently assume that we are using
  7165. # Microsoft Visual C++.
  7166. if test "$GCC" != yes; then
  7167. with_gnu_ld=no
  7168. fi
  7169. ;;
  7170. interix*)
  7171. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7172. with_gnu_ld=yes
  7173. ;;
  7174. openbsd*)
  7175. with_gnu_ld=no
  7176. ;;
  7177. esac
  7178. ld_shlibs=yes
  7179. # On some targets, GNU ld is compatible enough with the native linker
  7180. # that we're better off using the native interface for both.
  7181. lt_use_gnu_ld_interface=no
  7182. if test "$with_gnu_ld" = yes; then
  7183. case $host_os in
  7184. aix*)
  7185. # The AIX port of GNU ld has always aspired to compatibility
  7186. # with the native linker. However, as the warning in the GNU ld
  7187. # block says, versions before 2.19.5* couldn't really create working
  7188. # shared libraries, regardless of the interface used.
  7189. case `$LD -v 2>&1` in
  7190. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7191. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7192. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7193. *)
  7194. lt_use_gnu_ld_interface=yes
  7195. ;;
  7196. esac
  7197. ;;
  7198. *)
  7199. lt_use_gnu_ld_interface=yes
  7200. ;;
  7201. esac
  7202. fi
  7203. if test "$lt_use_gnu_ld_interface" = yes; then
  7204. # If archive_cmds runs LD, not CC, wlarc should be empty
  7205. wlarc='${wl}'
  7206. # Set some defaults for GNU ld with shared library support. These
  7207. # are reset later if shared libraries are not supported. Putting them
  7208. # here allows them to be overridden if necessary.
  7209. runpath_var=LD_RUN_PATH
  7210. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7211. export_dynamic_flag_spec='${wl}--export-dynamic'
  7212. # ancient GNU ld didn't support --whole-archive et. al.
  7213. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7214. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7215. else
  7216. whole_archive_flag_spec=
  7217. fi
  7218. supports_anon_versioning=no
  7219. case `$LD -v 2>&1` in
  7220. *GNU\ gold*) supports_anon_versioning=yes ;;
  7221. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7222. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7223. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7224. *\ 2.11.*) ;; # other 2.11 versions
  7225. *) supports_anon_versioning=yes ;;
  7226. esac
  7227. # See if GNU ld supports shared libraries.
  7228. case $host_os in
  7229. aix[3-9]*)
  7230. # On AIX/PPC, the GNU linker is very broken
  7231. if test "$host_cpu" != ia64; then
  7232. ld_shlibs=no
  7233. cat <<_LT_EOF 1>&2
  7234. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7235. *** to be unable to reliably create shared libraries on AIX.
  7236. *** Therefore, libtool is disabling shared libraries support. If you
  7237. *** really care for shared libraries, you may want to install binutils
  7238. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7239. *** You will then need to restart the configuration process.
  7240. _LT_EOF
  7241. fi
  7242. ;;
  7243. amigaos*)
  7244. case $host_cpu in
  7245. powerpc)
  7246. # see comment about AmigaOS4 .so support
  7247. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7248. archive_expsym_cmds=''
  7249. ;;
  7250. m68k)
  7251. 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)'
  7252. hardcode_libdir_flag_spec='-L$libdir'
  7253. hardcode_minus_L=yes
  7254. ;;
  7255. esac
  7256. ;;
  7257. beos*)
  7258. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7259. allow_undefined_flag=unsupported
  7260. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7261. # support --undefined. This deserves some investigation. FIXME
  7262. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7263. else
  7264. ld_shlibs=no
  7265. fi
  7266. ;;
  7267. cygwin* | mingw* | pw32* | cegcc*)
  7268. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7269. # as there is no search path for DLLs.
  7270. hardcode_libdir_flag_spec='-L$libdir'
  7271. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7272. allow_undefined_flag=unsupported
  7273. always_export_symbols=no
  7274. enable_shared_with_static_runtimes=yes
  7275. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7276. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7277. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7278. # If the export-symbols file already is a .def file (1st line
  7279. # is EXPORTS), use it as is; otherwise, prepend...
  7280. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7281. cp $export_symbols $output_objdir/$soname.def;
  7282. else
  7283. echo EXPORTS > $output_objdir/$soname.def;
  7284. cat $export_symbols >> $output_objdir/$soname.def;
  7285. fi~
  7286. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7287. else
  7288. ld_shlibs=no
  7289. fi
  7290. ;;
  7291. haiku*)
  7292. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7293. link_all_deplibs=yes
  7294. ;;
  7295. interix[3-9]*)
  7296. hardcode_direct=no
  7297. hardcode_shlibpath_var=no
  7298. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7299. export_dynamic_flag_spec='${wl}-E'
  7300. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7301. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7302. # default) and relocated if they conflict, which is a slow very memory
  7303. # consuming and fragmenting process. To avoid this, we pick a random,
  7304. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7305. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7306. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7307. 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'
  7308. ;;
  7309. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7310. tmp_diet=no
  7311. if test "$host_os" = linux-dietlibc; then
  7312. case $cc_basename in
  7313. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7314. esac
  7315. fi
  7316. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7317. && test "$tmp_diet" = no
  7318. then
  7319. tmp_addflag=' $pic_flag'
  7320. tmp_sharedflag='-shared'
  7321. case $cc_basename,$host_cpu in
  7322. pgcc*) # Portland Group C compiler
  7323. 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'
  7324. tmp_addflag=' $pic_flag'
  7325. ;;
  7326. pgf77* | pgf90* | pgf95* | pgfortran*)
  7327. # Portland Group f77 and f90 compilers
  7328. 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'
  7329. tmp_addflag=' $pic_flag -Mnomain' ;;
  7330. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7331. tmp_addflag=' -i_dynamic' ;;
  7332. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7333. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7334. ifc* | ifort*) # Intel Fortran compiler
  7335. tmp_addflag=' -nofor_main' ;;
  7336. lf95*) # Lahey Fortran 8.1
  7337. whole_archive_flag_spec=
  7338. tmp_sharedflag='--shared' ;;
  7339. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7340. tmp_sharedflag='-qmkshrobj'
  7341. tmp_addflag= ;;
  7342. nvcc*) # Cuda Compiler Driver 2.2
  7343. 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'
  7344. compiler_needs_object=yes
  7345. ;;
  7346. esac
  7347. case `$CC -V 2>&1 | sed 5q` in
  7348. *Sun\ C*) # Sun C 5.9
  7349. 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'
  7350. compiler_needs_object=yes
  7351. tmp_sharedflag='-G' ;;
  7352. *Sun\ F*) # Sun Fortran 8.3
  7353. tmp_sharedflag='-G' ;;
  7354. esac
  7355. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7356. if test "x$supports_anon_versioning" = xyes; then
  7357. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7358. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7359. echo "local: *; };" >> $output_objdir/$libname.ver~
  7360. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7361. fi
  7362. case $cc_basename in
  7363. xlf* | bgf* | bgxlf* | mpixlf*)
  7364. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7365. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7366. hardcode_libdir_flag_spec=
  7367. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7368. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7369. if test "x$supports_anon_versioning" = xyes; then
  7370. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7371. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7372. echo "local: *; };" >> $output_objdir/$libname.ver~
  7373. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7374. fi
  7375. ;;
  7376. esac
  7377. else
  7378. ld_shlibs=no
  7379. fi
  7380. ;;
  7381. netbsd*)
  7382. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7383. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7384. wlarc=
  7385. else
  7386. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7387. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7388. fi
  7389. ;;
  7390. solaris*)
  7391. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7392. ld_shlibs=no
  7393. cat <<_LT_EOF 1>&2
  7394. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7395. *** create shared libraries on Solaris systems. Therefore, libtool
  7396. *** is disabling shared libraries support. We urge you to upgrade GNU
  7397. *** binutils to release 2.9.1 or newer. Another option is to modify
  7398. *** your PATH or compiler configuration so that the native linker is
  7399. *** used, and then restart.
  7400. _LT_EOF
  7401. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7402. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7403. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7404. else
  7405. ld_shlibs=no
  7406. fi
  7407. ;;
  7408. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7409. case `$LD -v 2>&1` in
  7410. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7411. ld_shlibs=no
  7412. cat <<_LT_EOF 1>&2
  7413. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7414. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7415. *** is disabling shared libraries support. We urge you to upgrade GNU
  7416. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7417. *** your PATH or compiler configuration so that the native linker is
  7418. *** used, and then restart.
  7419. _LT_EOF
  7420. ;;
  7421. *)
  7422. # For security reasons, it is highly recommended that you always
  7423. # use absolute paths for naming shared libraries, and exclude the
  7424. # DT_RUNPATH tag from executables and libraries. But doing so
  7425. # requires that you compile everything twice, which is a pain.
  7426. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7427. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7428. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7429. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7430. else
  7431. ld_shlibs=no
  7432. fi
  7433. ;;
  7434. esac
  7435. ;;
  7436. sunos4*)
  7437. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7438. wlarc=
  7439. hardcode_direct=yes
  7440. hardcode_shlibpath_var=no
  7441. ;;
  7442. *)
  7443. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7444. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7445. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7446. else
  7447. ld_shlibs=no
  7448. fi
  7449. ;;
  7450. esac
  7451. if test "$ld_shlibs" = no; then
  7452. runpath_var=
  7453. hardcode_libdir_flag_spec=
  7454. export_dynamic_flag_spec=
  7455. whole_archive_flag_spec=
  7456. fi
  7457. else
  7458. # PORTME fill in a description of your system's linker (not GNU ld)
  7459. case $host_os in
  7460. aix3*)
  7461. allow_undefined_flag=unsupported
  7462. always_export_symbols=yes
  7463. 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'
  7464. # Note: this linker hardcodes the directories in LIBPATH if there
  7465. # are no directories specified by -L.
  7466. hardcode_minus_L=yes
  7467. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7468. # Neither direct hardcoding nor static linking is supported with a
  7469. # broken collect2.
  7470. hardcode_direct=unsupported
  7471. fi
  7472. ;;
  7473. aix[4-9]*)
  7474. if test "$host_cpu" = ia64; then
  7475. # On IA64, the linker does run time linking by default, so we don't
  7476. # have to do anything special.
  7477. aix_use_runtimelinking=no
  7478. exp_sym_flag='-Bexport'
  7479. no_entry_flag=""
  7480. else
  7481. # If we're using GNU nm, then we don't want the "-C" option.
  7482. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7483. # Also, AIX nm treats weak defined symbols like other global
  7484. # defined symbols, whereas GNU nm marks them as "W".
  7485. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7486. 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'
  7487. else
  7488. 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'
  7489. fi
  7490. aix_use_runtimelinking=no
  7491. # Test if we are trying to use run time linking or normal
  7492. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7493. # need to do runtime linking.
  7494. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7495. for ld_flag in $LDFLAGS; do
  7496. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7497. aix_use_runtimelinking=yes
  7498. break
  7499. fi
  7500. done
  7501. ;;
  7502. esac
  7503. exp_sym_flag='-bexport'
  7504. no_entry_flag='-bnoentry'
  7505. fi
  7506. # When large executables or shared objects are built, AIX ld can
  7507. # have problems creating the table of contents. If linking a library
  7508. # or program results in "error TOC overflow" add -mminimal-toc to
  7509. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7510. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7511. archive_cmds=''
  7512. hardcode_direct=yes
  7513. hardcode_direct_absolute=yes
  7514. hardcode_libdir_separator=':'
  7515. link_all_deplibs=yes
  7516. file_list_spec='${wl}-f,'
  7517. if test "$GCC" = yes; then
  7518. case $host_os in aix4.[012]|aix4.[012].*)
  7519. # We only want to do this on AIX 4.2 and lower, the check
  7520. # below for broken collect2 doesn't work under 4.3+
  7521. collect2name=`${CC} -print-prog-name=collect2`
  7522. if test -f "$collect2name" &&
  7523. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7524. then
  7525. # We have reworked collect2
  7526. :
  7527. else
  7528. # We have old collect2
  7529. hardcode_direct=unsupported
  7530. # It fails to find uninstalled libraries when the uninstalled
  7531. # path is not listed in the libpath. Setting hardcode_minus_L
  7532. # to unsupported forces relinking
  7533. hardcode_minus_L=yes
  7534. hardcode_libdir_flag_spec='-L$libdir'
  7535. hardcode_libdir_separator=
  7536. fi
  7537. ;;
  7538. esac
  7539. shared_flag='-shared'
  7540. if test "$aix_use_runtimelinking" = yes; then
  7541. shared_flag="$shared_flag "'${wl}-G'
  7542. fi
  7543. else
  7544. # not using gcc
  7545. if test "$host_cpu" = ia64; then
  7546. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7547. # chokes on -Wl,-G. The following line is correct:
  7548. shared_flag='-G'
  7549. else
  7550. if test "$aix_use_runtimelinking" = yes; then
  7551. shared_flag='${wl}-G'
  7552. else
  7553. shared_flag='${wl}-bM:SRE'
  7554. fi
  7555. fi
  7556. fi
  7557. export_dynamic_flag_spec='${wl}-bexpall'
  7558. # It seems that -bexpall does not export symbols beginning with
  7559. # underscore (_), so it is better to generate a list of symbols to export.
  7560. always_export_symbols=yes
  7561. if test "$aix_use_runtimelinking" = yes; then
  7562. # Warning - without using the other runtime loading flags (-brtl),
  7563. # -berok will link without error, but may produce a broken library.
  7564. allow_undefined_flag='-berok'
  7565. # Determine the default libpath from the value encoded in an
  7566. # empty executable.
  7567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7568. /* end confdefs.h. */
  7569. int
  7570. main ()
  7571. {
  7572. ;
  7573. return 0;
  7574. }
  7575. _ACEOF
  7576. if ac_fn_c_try_link "$LINENO"; then :
  7577. lt_aix_libpath_sed='
  7578. /Import File Strings/,/^$/ {
  7579. /^0/ {
  7580. s/^0 *\(.*\)$/\1/
  7581. p
  7582. }
  7583. }'
  7584. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7585. # Check for a 64-bit object if we didn't find anything.
  7586. if test -z "$aix_libpath"; then
  7587. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7588. fi
  7589. fi
  7590. rm -f core conftest.err conftest.$ac_objext \
  7591. conftest$ac_exeext conftest.$ac_ext
  7592. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7593. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7594. 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"
  7595. else
  7596. if test "$host_cpu" = ia64; then
  7597. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7598. allow_undefined_flag="-z nodefs"
  7599. 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"
  7600. else
  7601. # Determine the default libpath from the value encoded in an
  7602. # empty executable.
  7603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7604. /* end confdefs.h. */
  7605. int
  7606. main ()
  7607. {
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. if ac_fn_c_try_link "$LINENO"; then :
  7613. lt_aix_libpath_sed='
  7614. /Import File Strings/,/^$/ {
  7615. /^0/ {
  7616. s/^0 *\(.*\)$/\1/
  7617. p
  7618. }
  7619. }'
  7620. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7621. # Check for a 64-bit object if we didn't find anything.
  7622. if test -z "$aix_libpath"; then
  7623. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7624. fi
  7625. fi
  7626. rm -f core conftest.err conftest.$ac_objext \
  7627. conftest$ac_exeext conftest.$ac_ext
  7628. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7629. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7630. # Warning - without using the other run time loading flags,
  7631. # -berok will link without error, but may produce a broken library.
  7632. no_undefined_flag=' ${wl}-bernotok'
  7633. allow_undefined_flag=' ${wl}-berok'
  7634. if test "$with_gnu_ld" = yes; then
  7635. # We only use this code for GNU lds that support --whole-archive.
  7636. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7637. else
  7638. # Exported symbols can be pulled into shared objects from archives
  7639. whole_archive_flag_spec='$convenience'
  7640. fi
  7641. archive_cmds_need_lc=yes
  7642. # This is similar to how AIX traditionally builds its shared libraries.
  7643. 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'
  7644. fi
  7645. fi
  7646. ;;
  7647. amigaos*)
  7648. case $host_cpu in
  7649. powerpc)
  7650. # see comment about AmigaOS4 .so support
  7651. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7652. archive_expsym_cmds=''
  7653. ;;
  7654. m68k)
  7655. 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)'
  7656. hardcode_libdir_flag_spec='-L$libdir'
  7657. hardcode_minus_L=yes
  7658. ;;
  7659. esac
  7660. ;;
  7661. bsdi[45]*)
  7662. export_dynamic_flag_spec=-rdynamic
  7663. ;;
  7664. cygwin* | mingw* | pw32* | cegcc*)
  7665. # When not using gcc, we currently assume that we are using
  7666. # Microsoft Visual C++.
  7667. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7668. # no search path for DLLs.
  7669. hardcode_libdir_flag_spec=' '
  7670. allow_undefined_flag=unsupported
  7671. # Tell ltmain to make .lib files, not .a files.
  7672. libext=lib
  7673. # Tell ltmain to make .dll files, not .so files.
  7674. shrext_cmds=".dll"
  7675. # FIXME: Setting linknames here is a bad hack.
  7676. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7677. # The linker will automatically build a .lib file if we build a DLL.
  7678. old_archive_from_new_cmds='true'
  7679. # FIXME: Should let the user specify the lib program.
  7680. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7681. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7682. enable_shared_with_static_runtimes=yes
  7683. ;;
  7684. darwin* | rhapsody*)
  7685. archive_cmds_need_lc=no
  7686. hardcode_direct=no
  7687. hardcode_automatic=yes
  7688. hardcode_shlibpath_var=unsupported
  7689. if test "$lt_cv_ld_force_load" = "yes"; then
  7690. 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\"`'
  7691. else
  7692. whole_archive_flag_spec=''
  7693. fi
  7694. link_all_deplibs=yes
  7695. allow_undefined_flag="$_lt_dar_allow_undefined"
  7696. case $cc_basename in
  7697. ifort*) _lt_dar_can_shared=yes ;;
  7698. *) _lt_dar_can_shared=$GCC ;;
  7699. esac
  7700. if test "$_lt_dar_can_shared" = "yes"; then
  7701. output_verbose_link_cmd=func_echo_all
  7702. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7703. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7704. 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}"
  7705. 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}"
  7706. else
  7707. ld_shlibs=no
  7708. fi
  7709. ;;
  7710. dgux*)
  7711. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7712. hardcode_libdir_flag_spec='-L$libdir'
  7713. hardcode_shlibpath_var=no
  7714. ;;
  7715. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7716. # support. Future versions do this automatically, but an explicit c++rt0.o
  7717. # does not break anything, and helps significantly (at the cost of a little
  7718. # extra space).
  7719. freebsd2.2*)
  7720. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7721. hardcode_libdir_flag_spec='-R$libdir'
  7722. hardcode_direct=yes
  7723. hardcode_shlibpath_var=no
  7724. ;;
  7725. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7726. freebsd2.*)
  7727. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7728. hardcode_direct=yes
  7729. hardcode_minus_L=yes
  7730. hardcode_shlibpath_var=no
  7731. ;;
  7732. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7733. freebsd* | dragonfly*)
  7734. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7735. hardcode_libdir_flag_spec='-R$libdir'
  7736. hardcode_direct=yes
  7737. hardcode_shlibpath_var=no
  7738. ;;
  7739. hpux9*)
  7740. if test "$GCC" = yes; then
  7741. 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'
  7742. else
  7743. 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'
  7744. fi
  7745. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7746. hardcode_libdir_separator=:
  7747. hardcode_direct=yes
  7748. # hardcode_minus_L: Not really in the search PATH,
  7749. # but as the default location of the library.
  7750. hardcode_minus_L=yes
  7751. export_dynamic_flag_spec='${wl}-E'
  7752. ;;
  7753. hpux10*)
  7754. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7755. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7756. else
  7757. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7758. fi
  7759. if test "$with_gnu_ld" = no; then
  7760. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7761. hardcode_libdir_flag_spec_ld='+b $libdir'
  7762. hardcode_libdir_separator=:
  7763. hardcode_direct=yes
  7764. hardcode_direct_absolute=yes
  7765. export_dynamic_flag_spec='${wl}-E'
  7766. # hardcode_minus_L: Not really in the search PATH,
  7767. # but as the default location of the library.
  7768. hardcode_minus_L=yes
  7769. fi
  7770. ;;
  7771. hpux11*)
  7772. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7773. case $host_cpu in
  7774. hppa*64*)
  7775. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7776. ;;
  7777. ia64*)
  7778. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7779. ;;
  7780. *)
  7781. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7782. ;;
  7783. esac
  7784. else
  7785. case $host_cpu in
  7786. hppa*64*)
  7787. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7788. ;;
  7789. ia64*)
  7790. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7791. ;;
  7792. *)
  7793. # Older versions of the 11.00 compiler do not understand -b yet
  7794. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7796. $as_echo_n "checking if $CC understands -b... " >&6; }
  7797. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  7798. $as_echo_n "(cached) " >&6
  7799. else
  7800. lt_cv_prog_compiler__b=no
  7801. save_LDFLAGS="$LDFLAGS"
  7802. LDFLAGS="$LDFLAGS -b"
  7803. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7804. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7805. # The linker can only warn and ignore the option if not recognized
  7806. # So say no if there are warnings
  7807. if test -s conftest.err; then
  7808. # Append any errors to the config.log.
  7809. cat conftest.err 1>&5
  7810. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7811. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7812. if diff conftest.exp conftest.er2 >/dev/null; then
  7813. lt_cv_prog_compiler__b=yes
  7814. fi
  7815. else
  7816. lt_cv_prog_compiler__b=yes
  7817. fi
  7818. fi
  7819. $RM -r conftest*
  7820. LDFLAGS="$save_LDFLAGS"
  7821. fi
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7823. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7824. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7825. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7826. else
  7827. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7828. fi
  7829. ;;
  7830. esac
  7831. fi
  7832. if test "$with_gnu_ld" = no; then
  7833. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7834. hardcode_libdir_separator=:
  7835. case $host_cpu in
  7836. hppa*64*|ia64*)
  7837. hardcode_direct=no
  7838. hardcode_shlibpath_var=no
  7839. ;;
  7840. *)
  7841. hardcode_direct=yes
  7842. hardcode_direct_absolute=yes
  7843. export_dynamic_flag_spec='${wl}-E'
  7844. # hardcode_minus_L: Not really in the search PATH,
  7845. # but as the default location of the library.
  7846. hardcode_minus_L=yes
  7847. ;;
  7848. esac
  7849. fi
  7850. ;;
  7851. irix5* | irix6* | nonstopux*)
  7852. if test "$GCC" = yes; then
  7853. 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'
  7854. # Try to use the -exported_symbol ld option, if it does not
  7855. # work, assume that -exports_file does not work either and
  7856. # implicitly export all symbols.
  7857. save_LDFLAGS="$LDFLAGS"
  7858. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7860. /* end confdefs.h. */
  7861. int foo(void) {}
  7862. _ACEOF
  7863. if ac_fn_c_try_link "$LINENO"; then :
  7864. 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'
  7865. fi
  7866. rm -f core conftest.err conftest.$ac_objext \
  7867. conftest$ac_exeext conftest.$ac_ext
  7868. LDFLAGS="$save_LDFLAGS"
  7869. else
  7870. 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'
  7871. 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'
  7872. fi
  7873. archive_cmds_need_lc='no'
  7874. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7875. hardcode_libdir_separator=:
  7876. inherit_rpath=yes
  7877. link_all_deplibs=yes
  7878. ;;
  7879. netbsd*)
  7880. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7881. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7882. else
  7883. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7884. fi
  7885. hardcode_libdir_flag_spec='-R$libdir'
  7886. hardcode_direct=yes
  7887. hardcode_shlibpath_var=no
  7888. ;;
  7889. newsos6)
  7890. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7891. hardcode_direct=yes
  7892. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7893. hardcode_libdir_separator=:
  7894. hardcode_shlibpath_var=no
  7895. ;;
  7896. *nto* | *qnx*)
  7897. ;;
  7898. openbsd*)
  7899. if test -f /usr/libexec/ld.so; then
  7900. hardcode_direct=yes
  7901. hardcode_shlibpath_var=no
  7902. hardcode_direct_absolute=yes
  7903. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7904. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7905. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7906. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7907. export_dynamic_flag_spec='${wl}-E'
  7908. else
  7909. case $host_os in
  7910. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7911. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7912. hardcode_libdir_flag_spec='-R$libdir'
  7913. ;;
  7914. *)
  7915. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7916. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7917. ;;
  7918. esac
  7919. fi
  7920. else
  7921. ld_shlibs=no
  7922. fi
  7923. ;;
  7924. os2*)
  7925. hardcode_libdir_flag_spec='-L$libdir'
  7926. hardcode_minus_L=yes
  7927. allow_undefined_flag=unsupported
  7928. 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'
  7929. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7930. ;;
  7931. osf3*)
  7932. if test "$GCC" = yes; then
  7933. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7934. 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'
  7935. else
  7936. allow_undefined_flag=' -expect_unresolved \*'
  7937. 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'
  7938. fi
  7939. archive_cmds_need_lc='no'
  7940. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7941. hardcode_libdir_separator=:
  7942. ;;
  7943. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7944. if test "$GCC" = yes; then
  7945. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7946. 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'
  7947. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7948. else
  7949. allow_undefined_flag=' -expect_unresolved \*'
  7950. 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'
  7951. 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~
  7952. $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'
  7953. # Both c and cxx compiler support -rpath directly
  7954. hardcode_libdir_flag_spec='-rpath $libdir'
  7955. fi
  7956. archive_cmds_need_lc='no'
  7957. hardcode_libdir_separator=:
  7958. ;;
  7959. solaris*)
  7960. no_undefined_flag=' -z defs'
  7961. if test "$GCC" = yes; then
  7962. wlarc='${wl}'
  7963. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7964. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7965. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7966. else
  7967. case `$CC -V 2>&1` in
  7968. *"Compilers 5.0"*)
  7969. wlarc=''
  7970. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7971. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7972. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7973. ;;
  7974. *)
  7975. wlarc='${wl}'
  7976. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7977. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7978. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7979. ;;
  7980. esac
  7981. fi
  7982. hardcode_libdir_flag_spec='-R$libdir'
  7983. hardcode_shlibpath_var=no
  7984. case $host_os in
  7985. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7986. *)
  7987. # The compiler driver will combine and reorder linker options,
  7988. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7989. # but is careful enough not to reorder.
  7990. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7991. if test "$GCC" = yes; then
  7992. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7993. else
  7994. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7995. fi
  7996. ;;
  7997. esac
  7998. link_all_deplibs=yes
  7999. ;;
  8000. sunos4*)
  8001. if test "x$host_vendor" = xsequent; then
  8002. # Use $CC to link under sequent, because it throws in some extra .o
  8003. # files that make .init and .fini sections work.
  8004. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8005. else
  8006. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8007. fi
  8008. hardcode_libdir_flag_spec='-L$libdir'
  8009. hardcode_direct=yes
  8010. hardcode_minus_L=yes
  8011. hardcode_shlibpath_var=no
  8012. ;;
  8013. sysv4)
  8014. case $host_vendor in
  8015. sni)
  8016. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8017. hardcode_direct=yes # is this really true???
  8018. ;;
  8019. siemens)
  8020. ## LD is ld it makes a PLAMLIB
  8021. ## CC just makes a GrossModule.
  8022. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8023. reload_cmds='$CC -r -o $output$reload_objs'
  8024. hardcode_direct=no
  8025. ;;
  8026. motorola)
  8027. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8028. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8029. ;;
  8030. esac
  8031. runpath_var='LD_RUN_PATH'
  8032. hardcode_shlibpath_var=no
  8033. ;;
  8034. sysv4.3*)
  8035. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8036. hardcode_shlibpath_var=no
  8037. export_dynamic_flag_spec='-Bexport'
  8038. ;;
  8039. sysv4*MP*)
  8040. if test -d /usr/nec; then
  8041. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8042. hardcode_shlibpath_var=no
  8043. runpath_var=LD_RUN_PATH
  8044. hardcode_runpath_var=yes
  8045. ld_shlibs=yes
  8046. fi
  8047. ;;
  8048. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8049. no_undefined_flag='${wl}-z,text'
  8050. archive_cmds_need_lc=no
  8051. hardcode_shlibpath_var=no
  8052. runpath_var='LD_RUN_PATH'
  8053. if test "$GCC" = yes; then
  8054. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8055. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8056. else
  8057. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8058. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8059. fi
  8060. ;;
  8061. sysv5* | sco3.2v5* | sco5v6*)
  8062. # Note: We can NOT use -z defs as we might desire, because we do not
  8063. # link with -lc, and that would cause any symbols used from libc to
  8064. # always be unresolved, which means just about no library would
  8065. # ever link correctly. If we're not using GNU ld we use -z text
  8066. # though, which does catch some bad symbols but isn't as heavy-handed
  8067. # as -z defs.
  8068. no_undefined_flag='${wl}-z,text'
  8069. allow_undefined_flag='${wl}-z,nodefs'
  8070. archive_cmds_need_lc=no
  8071. hardcode_shlibpath_var=no
  8072. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8073. hardcode_libdir_separator=':'
  8074. link_all_deplibs=yes
  8075. export_dynamic_flag_spec='${wl}-Bexport'
  8076. runpath_var='LD_RUN_PATH'
  8077. if test "$GCC" = yes; then
  8078. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8079. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8080. else
  8081. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8082. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8083. fi
  8084. ;;
  8085. uts4*)
  8086. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. hardcode_shlibpath_var=no
  8089. ;;
  8090. *)
  8091. ld_shlibs=no
  8092. ;;
  8093. esac
  8094. if test x$host_vendor = xsni; then
  8095. case $host in
  8096. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8097. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8098. ;;
  8099. esac
  8100. fi
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8103. $as_echo "$ld_shlibs" >&6; }
  8104. test "$ld_shlibs" = no && can_build_shared=no
  8105. with_gnu_ld=$with_gnu_ld
  8106. #
  8107. # Do we need to explicitly link libc?
  8108. #
  8109. case "x$archive_cmds_need_lc" in
  8110. x|xyes)
  8111. # Assume -lc should be added
  8112. archive_cmds_need_lc=yes
  8113. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8114. case $archive_cmds in
  8115. *'~'*)
  8116. # FIXME: we may have to deal with multi-command sequences.
  8117. ;;
  8118. '$CC '*)
  8119. # Test whether the compiler implicitly links with -lc since on some
  8120. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8121. # to ld, don't add -lc before -lgcc.
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8123. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8124. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8125. $as_echo_n "(cached) " >&6
  8126. else
  8127. $RM conftest*
  8128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8129. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8130. (eval $ac_compile) 2>&5
  8131. ac_status=$?
  8132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8133. test $ac_status = 0; } 2>conftest.err; then
  8134. soname=conftest
  8135. lib=conftest
  8136. libobjs=conftest.$ac_objext
  8137. deplibs=
  8138. wl=$lt_prog_compiler_wl
  8139. pic_flag=$lt_prog_compiler_pic
  8140. compiler_flags=-v
  8141. linker_flags=-v
  8142. verstring=
  8143. output_objdir=.
  8144. libname=conftest
  8145. lt_save_allow_undefined_flag=$allow_undefined_flag
  8146. allow_undefined_flag=
  8147. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8148. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8149. ac_status=$?
  8150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8151. test $ac_status = 0; }
  8152. then
  8153. lt_cv_archive_cmds_need_lc=no
  8154. else
  8155. lt_cv_archive_cmds_need_lc=yes
  8156. fi
  8157. allow_undefined_flag=$lt_save_allow_undefined_flag
  8158. else
  8159. cat conftest.err 1>&5
  8160. fi
  8161. $RM conftest*
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8164. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8165. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8166. ;;
  8167. esac
  8168. fi
  8169. ;;
  8170. esac
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8172. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8173. if test "$GCC" = yes; then
  8174. case $host_os in
  8175. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8176. *) lt_awk_arg="/^libraries:/" ;;
  8177. esac
  8178. case $host_os in
  8179. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8180. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8181. esac
  8182. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8183. case $lt_search_path_spec in
  8184. *\;*)
  8185. # if the path contains ";" then we assume it to be the separator
  8186. # otherwise default to the standard path separator (i.e. ":") - it is
  8187. # assumed that no part of a normal pathname contains ";" but that should
  8188. # okay in the real world where ";" in dirpaths is itself problematic.
  8189. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8190. ;;
  8191. *)
  8192. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8193. ;;
  8194. esac
  8195. # Ok, now we have the path, separated by spaces, we can step through it
  8196. # and add multilib dir if necessary.
  8197. lt_tmp_lt_search_path_spec=
  8198. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8199. for lt_sys_path in $lt_search_path_spec; do
  8200. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8201. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8202. else
  8203. test -d "$lt_sys_path" && \
  8204. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8205. fi
  8206. done
  8207. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8208. BEGIN {RS=" "; FS="/|\n";} {
  8209. lt_foo="";
  8210. lt_count=0;
  8211. for (lt_i = NF; lt_i > 0; lt_i--) {
  8212. if ($lt_i != "" && $lt_i != ".") {
  8213. if ($lt_i == "..") {
  8214. lt_count++;
  8215. } else {
  8216. if (lt_count == 0) {
  8217. lt_foo="/" $lt_i lt_foo;
  8218. } else {
  8219. lt_count--;
  8220. }
  8221. }
  8222. }
  8223. }
  8224. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8225. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8226. }'`
  8227. # AWK program above erroneously prepends '/' to C:/dos/paths
  8228. # for these hosts.
  8229. case $host_os in
  8230. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8231. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8232. esac
  8233. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8234. else
  8235. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8236. fi
  8237. library_names_spec=
  8238. libname_spec='lib$name'
  8239. soname_spec=
  8240. shrext_cmds=".so"
  8241. postinstall_cmds=
  8242. postuninstall_cmds=
  8243. finish_cmds=
  8244. finish_eval=
  8245. shlibpath_var=
  8246. shlibpath_overrides_runpath=unknown
  8247. version_type=none
  8248. dynamic_linker="$host_os ld.so"
  8249. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8250. need_lib_prefix=unknown
  8251. hardcode_into_libs=no
  8252. # when you set need_version to no, make sure it does not cause -set_version
  8253. # flags to be left without arguments
  8254. need_version=unknown
  8255. case $host_os in
  8256. aix3*)
  8257. version_type=linux
  8258. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8259. shlibpath_var=LIBPATH
  8260. # AIX 3 has no versioning support, so we append a major version to the name.
  8261. soname_spec='${libname}${release}${shared_ext}$major'
  8262. ;;
  8263. aix[4-9]*)
  8264. version_type=linux
  8265. need_lib_prefix=no
  8266. need_version=no
  8267. hardcode_into_libs=yes
  8268. if test "$host_cpu" = ia64; then
  8269. # AIX 5 supports IA64
  8270. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8271. shlibpath_var=LD_LIBRARY_PATH
  8272. else
  8273. # With GCC up to 2.95.x, collect2 would create an import file
  8274. # for dependence libraries. The import file would start with
  8275. # the line `#! .'. This would cause the generated library to
  8276. # depend on `.', always an invalid library. This was fixed in
  8277. # development snapshots of GCC prior to 3.0.
  8278. case $host_os in
  8279. aix4 | aix4.[01] | aix4.[01].*)
  8280. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8281. echo ' yes '
  8282. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8283. :
  8284. else
  8285. can_build_shared=no
  8286. fi
  8287. ;;
  8288. esac
  8289. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8290. # soname into executable. Probably we can add versioning support to
  8291. # collect2, so additional links can be useful in future.
  8292. if test "$aix_use_runtimelinking" = yes; then
  8293. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8294. # instead of lib<name>.a to let people know that these are not
  8295. # typical AIX shared libraries.
  8296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8297. else
  8298. # We preserve .a as extension for shared libraries through AIX4.2
  8299. # and later when we are not doing run time linking.
  8300. library_names_spec='${libname}${release}.a $libname.a'
  8301. soname_spec='${libname}${release}${shared_ext}$major'
  8302. fi
  8303. shlibpath_var=LIBPATH
  8304. fi
  8305. ;;
  8306. amigaos*)
  8307. case $host_cpu in
  8308. powerpc)
  8309. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8310. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8312. ;;
  8313. m68k)
  8314. library_names_spec='$libname.ixlibrary $libname.a'
  8315. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8316. 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'
  8317. ;;
  8318. esac
  8319. ;;
  8320. beos*)
  8321. library_names_spec='${libname}${shared_ext}'
  8322. dynamic_linker="$host_os ld.so"
  8323. shlibpath_var=LIBRARY_PATH
  8324. ;;
  8325. bsdi[45]*)
  8326. version_type=linux
  8327. need_version=no
  8328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8329. soname_spec='${libname}${release}${shared_ext}$major'
  8330. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8331. shlibpath_var=LD_LIBRARY_PATH
  8332. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8333. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8334. # the default ld.so.conf also contains /usr/contrib/lib and
  8335. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8336. # libtool to hard-code these into programs
  8337. ;;
  8338. cygwin* | mingw* | pw32* | cegcc*)
  8339. version_type=windows
  8340. shrext_cmds=".dll"
  8341. need_version=no
  8342. need_lib_prefix=no
  8343. case $GCC,$host_os in
  8344. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8345. library_names_spec='$libname.dll.a'
  8346. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8347. postinstall_cmds='base_file=`basename \${file}`~
  8348. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8349. dldir=$destdir/`dirname \$dlpath`~
  8350. test -d \$dldir || mkdir -p \$dldir~
  8351. $install_prog $dir/$dlname \$dldir/$dlname~
  8352. chmod a+x \$dldir/$dlname~
  8353. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8354. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8355. fi'
  8356. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8357. dlpath=$dir/\$dldll~
  8358. $RM \$dlpath'
  8359. shlibpath_overrides_runpath=yes
  8360. case $host_os in
  8361. cygwin*)
  8362. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8363. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8364. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8365. ;;
  8366. mingw* | cegcc*)
  8367. # MinGW DLLs use traditional 'lib' prefix
  8368. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8369. ;;
  8370. pw32*)
  8371. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8372. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8373. ;;
  8374. esac
  8375. ;;
  8376. *)
  8377. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8378. ;;
  8379. esac
  8380. dynamic_linker='Win32 ld.exe'
  8381. # FIXME: first we should search . and the directory the executable is in
  8382. shlibpath_var=PATH
  8383. ;;
  8384. darwin* | rhapsody*)
  8385. dynamic_linker="$host_os dyld"
  8386. version_type=darwin
  8387. need_lib_prefix=no
  8388. need_version=no
  8389. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8390. soname_spec='${libname}${release}${major}$shared_ext'
  8391. shlibpath_overrides_runpath=yes
  8392. shlibpath_var=DYLD_LIBRARY_PATH
  8393. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8394. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8395. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8396. ;;
  8397. dgux*)
  8398. version_type=linux
  8399. need_lib_prefix=no
  8400. need_version=no
  8401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8402. soname_spec='${libname}${release}${shared_ext}$major'
  8403. shlibpath_var=LD_LIBRARY_PATH
  8404. ;;
  8405. freebsd* | dragonfly*)
  8406. # DragonFly does not have aout. When/if they implement a new
  8407. # versioning mechanism, adjust this.
  8408. if test -x /usr/bin/objformat; then
  8409. objformat=`/usr/bin/objformat`
  8410. else
  8411. case $host_os in
  8412. freebsd[23].*) objformat=aout ;;
  8413. *) objformat=elf ;;
  8414. esac
  8415. fi
  8416. version_type=freebsd-$objformat
  8417. case $version_type in
  8418. freebsd-elf*)
  8419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8420. need_version=no
  8421. need_lib_prefix=no
  8422. ;;
  8423. freebsd-*)
  8424. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8425. need_version=yes
  8426. ;;
  8427. esac
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. case $host_os in
  8430. freebsd2.*)
  8431. shlibpath_overrides_runpath=yes
  8432. ;;
  8433. freebsd3.[01]* | freebsdelf3.[01]*)
  8434. shlibpath_overrides_runpath=yes
  8435. hardcode_into_libs=yes
  8436. ;;
  8437. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8438. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8439. shlibpath_overrides_runpath=no
  8440. hardcode_into_libs=yes
  8441. ;;
  8442. *) # from 4.6 on, and DragonFly
  8443. shlibpath_overrides_runpath=yes
  8444. hardcode_into_libs=yes
  8445. ;;
  8446. esac
  8447. ;;
  8448. gnu*)
  8449. version_type=linux
  8450. need_lib_prefix=no
  8451. need_version=no
  8452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8453. soname_spec='${libname}${release}${shared_ext}$major'
  8454. shlibpath_var=LD_LIBRARY_PATH
  8455. hardcode_into_libs=yes
  8456. ;;
  8457. haiku*)
  8458. version_type=linux
  8459. need_lib_prefix=no
  8460. need_version=no
  8461. dynamic_linker="$host_os runtime_loader"
  8462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8463. soname_spec='${libname}${release}${shared_ext}$major'
  8464. shlibpath_var=LIBRARY_PATH
  8465. shlibpath_overrides_runpath=yes
  8466. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8467. hardcode_into_libs=yes
  8468. ;;
  8469. hpux9* | hpux10* | hpux11*)
  8470. # Give a soname corresponding to the major version so that dld.sl refuses to
  8471. # link against other versions.
  8472. version_type=sunos
  8473. need_lib_prefix=no
  8474. need_version=no
  8475. case $host_cpu in
  8476. ia64*)
  8477. shrext_cmds='.so'
  8478. hardcode_into_libs=yes
  8479. dynamic_linker="$host_os dld.so"
  8480. shlibpath_var=LD_LIBRARY_PATH
  8481. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8483. soname_spec='${libname}${release}${shared_ext}$major'
  8484. if test "X$HPUX_IA64_MODE" = X32; then
  8485. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8486. else
  8487. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8488. fi
  8489. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8490. ;;
  8491. hppa*64*)
  8492. shrext_cmds='.sl'
  8493. hardcode_into_libs=yes
  8494. dynamic_linker="$host_os dld.sl"
  8495. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8496. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8498. soname_spec='${libname}${release}${shared_ext}$major'
  8499. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8500. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8501. ;;
  8502. *)
  8503. shrext_cmds='.sl'
  8504. dynamic_linker="$host_os dld.sl"
  8505. shlibpath_var=SHLIB_PATH
  8506. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8508. soname_spec='${libname}${release}${shared_ext}$major'
  8509. ;;
  8510. esac
  8511. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8512. postinstall_cmds='chmod 555 $lib'
  8513. # or fails outright, so override atomically:
  8514. install_override_mode=555
  8515. ;;
  8516. interix[3-9]*)
  8517. version_type=linux
  8518. need_lib_prefix=no
  8519. need_version=no
  8520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8521. soname_spec='${libname}${release}${shared_ext}$major'
  8522. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8523. shlibpath_var=LD_LIBRARY_PATH
  8524. shlibpath_overrides_runpath=no
  8525. hardcode_into_libs=yes
  8526. ;;
  8527. irix5* | irix6* | nonstopux*)
  8528. case $host_os in
  8529. nonstopux*) version_type=nonstopux ;;
  8530. *)
  8531. if test "$lt_cv_prog_gnu_ld" = yes; then
  8532. version_type=linux
  8533. else
  8534. version_type=irix
  8535. fi ;;
  8536. esac
  8537. need_lib_prefix=no
  8538. need_version=no
  8539. soname_spec='${libname}${release}${shared_ext}$major'
  8540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8541. case $host_os in
  8542. irix5* | nonstopux*)
  8543. libsuff= shlibsuff=
  8544. ;;
  8545. *)
  8546. case $LD in # libtool.m4 will add one of these switches to LD
  8547. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8548. libsuff= shlibsuff= libmagic=32-bit;;
  8549. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8550. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8551. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8552. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8553. *) libsuff= shlibsuff= libmagic=never-match;;
  8554. esac
  8555. ;;
  8556. esac
  8557. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8558. shlibpath_overrides_runpath=no
  8559. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8560. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8561. hardcode_into_libs=yes
  8562. ;;
  8563. # No shared lib support for Linux oldld, aout, or coff.
  8564. linux*oldld* | linux*aout* | linux*coff*)
  8565. dynamic_linker=no
  8566. ;;
  8567. # This must be Linux ELF.
  8568. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8569. version_type=linux
  8570. need_lib_prefix=no
  8571. need_version=no
  8572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8573. soname_spec='${libname}${release}${shared_ext}$major'
  8574. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8575. shlibpath_var=LD_LIBRARY_PATH
  8576. shlibpath_overrides_runpath=no
  8577. # Some binutils ld are patched to set DT_RUNPATH
  8578. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8579. $as_echo_n "(cached) " >&6
  8580. else
  8581. lt_cv_shlibpath_overrides_runpath=no
  8582. save_LDFLAGS=$LDFLAGS
  8583. save_libdir=$libdir
  8584. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8585. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8587. /* end confdefs.h. */
  8588. int
  8589. main ()
  8590. {
  8591. ;
  8592. return 0;
  8593. }
  8594. _ACEOF
  8595. if ac_fn_c_try_link "$LINENO"; then :
  8596. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8597. lt_cv_shlibpath_overrides_runpath=yes
  8598. fi
  8599. fi
  8600. rm -f core conftest.err conftest.$ac_objext \
  8601. conftest$ac_exeext conftest.$ac_ext
  8602. LDFLAGS=$save_LDFLAGS
  8603. libdir=$save_libdir
  8604. fi
  8605. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8606. # This implies no fast_install, which is unacceptable.
  8607. # Some rework will be needed to allow for fast_install
  8608. # before this can be enabled.
  8609. hardcode_into_libs=yes
  8610. # Append ld.so.conf contents to the search path
  8611. if test -f /etc/ld.so.conf; then
  8612. 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' ' '`
  8613. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8614. fi
  8615. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8616. # powerpc, because MkLinux only supported shared libraries with the
  8617. # GNU dynamic linker. Since this was broken with cross compilers,
  8618. # most powerpc-linux boxes support dynamic linking these days and
  8619. # people can always --disable-shared, the test was removed, and we
  8620. # assume the GNU/Linux dynamic linker is in use.
  8621. dynamic_linker='GNU/Linux ld.so'
  8622. ;;
  8623. netbsd*)
  8624. version_type=sunos
  8625. need_lib_prefix=no
  8626. need_version=no
  8627. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8629. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8630. dynamic_linker='NetBSD (a.out) ld.so'
  8631. else
  8632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8633. soname_spec='${libname}${release}${shared_ext}$major'
  8634. dynamic_linker='NetBSD ld.elf_so'
  8635. fi
  8636. shlibpath_var=LD_LIBRARY_PATH
  8637. shlibpath_overrides_runpath=yes
  8638. hardcode_into_libs=yes
  8639. ;;
  8640. newsos6)
  8641. version_type=linux
  8642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8643. shlibpath_var=LD_LIBRARY_PATH
  8644. shlibpath_overrides_runpath=yes
  8645. ;;
  8646. *nto* | *qnx*)
  8647. version_type=qnx
  8648. need_lib_prefix=no
  8649. need_version=no
  8650. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8651. soname_spec='${libname}${release}${shared_ext}$major'
  8652. shlibpath_var=LD_LIBRARY_PATH
  8653. shlibpath_overrides_runpath=no
  8654. hardcode_into_libs=yes
  8655. dynamic_linker='ldqnx.so'
  8656. ;;
  8657. openbsd*)
  8658. version_type=sunos
  8659. sys_lib_dlsearch_path_spec="/usr/lib"
  8660. need_lib_prefix=no
  8661. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8662. case $host_os in
  8663. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8664. *) need_version=no ;;
  8665. esac
  8666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8667. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8668. shlibpath_var=LD_LIBRARY_PATH
  8669. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8670. case $host_os in
  8671. openbsd2.[89] | openbsd2.[89].*)
  8672. shlibpath_overrides_runpath=no
  8673. ;;
  8674. *)
  8675. shlibpath_overrides_runpath=yes
  8676. ;;
  8677. esac
  8678. else
  8679. shlibpath_overrides_runpath=yes
  8680. fi
  8681. ;;
  8682. os2*)
  8683. libname_spec='$name'
  8684. shrext_cmds=".dll"
  8685. need_lib_prefix=no
  8686. library_names_spec='$libname${shared_ext} $libname.a'
  8687. dynamic_linker='OS/2 ld.exe'
  8688. shlibpath_var=LIBPATH
  8689. ;;
  8690. osf3* | osf4* | osf5*)
  8691. version_type=osf
  8692. need_lib_prefix=no
  8693. need_version=no
  8694. soname_spec='${libname}${release}${shared_ext}$major'
  8695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8696. shlibpath_var=LD_LIBRARY_PATH
  8697. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8698. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8699. ;;
  8700. rdos*)
  8701. dynamic_linker=no
  8702. ;;
  8703. solaris*)
  8704. version_type=linux
  8705. need_lib_prefix=no
  8706. need_version=no
  8707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8708. soname_spec='${libname}${release}${shared_ext}$major'
  8709. shlibpath_var=LD_LIBRARY_PATH
  8710. shlibpath_overrides_runpath=yes
  8711. hardcode_into_libs=yes
  8712. # ldd complains unless libraries are executable
  8713. postinstall_cmds='chmod +x $lib'
  8714. ;;
  8715. sunos4*)
  8716. version_type=sunos
  8717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8718. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8719. shlibpath_var=LD_LIBRARY_PATH
  8720. shlibpath_overrides_runpath=yes
  8721. if test "$with_gnu_ld" = yes; then
  8722. need_lib_prefix=no
  8723. fi
  8724. need_version=yes
  8725. ;;
  8726. sysv4 | sysv4.3*)
  8727. version_type=linux
  8728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8729. soname_spec='${libname}${release}${shared_ext}$major'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. case $host_vendor in
  8732. sni)
  8733. shlibpath_overrides_runpath=no
  8734. need_lib_prefix=no
  8735. runpath_var=LD_RUN_PATH
  8736. ;;
  8737. siemens)
  8738. need_lib_prefix=no
  8739. ;;
  8740. motorola)
  8741. need_lib_prefix=no
  8742. need_version=no
  8743. shlibpath_overrides_runpath=no
  8744. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8745. ;;
  8746. esac
  8747. ;;
  8748. sysv4*MP*)
  8749. if test -d /usr/nec ;then
  8750. version_type=linux
  8751. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8752. soname_spec='$libname${shared_ext}.$major'
  8753. shlibpath_var=LD_LIBRARY_PATH
  8754. fi
  8755. ;;
  8756. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8757. version_type=freebsd-elf
  8758. need_lib_prefix=no
  8759. need_version=no
  8760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8761. soname_spec='${libname}${release}${shared_ext}$major'
  8762. shlibpath_var=LD_LIBRARY_PATH
  8763. shlibpath_overrides_runpath=yes
  8764. hardcode_into_libs=yes
  8765. if test "$with_gnu_ld" = yes; then
  8766. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8767. else
  8768. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8769. case $host_os in
  8770. sco3.2v5*)
  8771. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8772. ;;
  8773. esac
  8774. fi
  8775. sys_lib_dlsearch_path_spec='/usr/lib'
  8776. ;;
  8777. tpf*)
  8778. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8779. version_type=linux
  8780. need_lib_prefix=no
  8781. need_version=no
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. shlibpath_var=LD_LIBRARY_PATH
  8784. shlibpath_overrides_runpath=no
  8785. hardcode_into_libs=yes
  8786. ;;
  8787. uts4*)
  8788. version_type=linux
  8789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. shlibpath_var=LD_LIBRARY_PATH
  8792. ;;
  8793. *)
  8794. dynamic_linker=no
  8795. ;;
  8796. esac
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8798. $as_echo "$dynamic_linker" >&6; }
  8799. test "$dynamic_linker" = no && can_build_shared=no
  8800. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8801. if test "$GCC" = yes; then
  8802. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8803. fi
  8804. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8805. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8806. fi
  8807. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8808. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8809. fi
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8811. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8812. hardcode_action=
  8813. if test -n "$hardcode_libdir_flag_spec" ||
  8814. test -n "$runpath_var" ||
  8815. test "X$hardcode_automatic" = "Xyes" ; then
  8816. # We can hardcode non-existent directories.
  8817. if test "$hardcode_direct" != no &&
  8818. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8819. # have to relink, otherwise we might link with an installed library
  8820. # when we should be linking with a yet-to-be-installed one
  8821. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8822. test "$hardcode_minus_L" != no; then
  8823. # Linking always hardcodes the temporary library directory.
  8824. hardcode_action=relink
  8825. else
  8826. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8827. hardcode_action=immediate
  8828. fi
  8829. else
  8830. # We cannot hardcode anything, or else we can only hardcode existing
  8831. # directories.
  8832. hardcode_action=unsupported
  8833. fi
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8835. $as_echo "$hardcode_action" >&6; }
  8836. if test "$hardcode_action" = relink ||
  8837. test "$inherit_rpath" = yes; then
  8838. # Fast installation is not supported
  8839. enable_fast_install=no
  8840. elif test "$shlibpath_overrides_runpath" = yes ||
  8841. test "$enable_shared" = no; then
  8842. # Fast installation is not necessary
  8843. enable_fast_install=needless
  8844. fi
  8845. if test "x$enable_dlopen" != xyes; then
  8846. enable_dlopen=unknown
  8847. enable_dlopen_self=unknown
  8848. enable_dlopen_self_static=unknown
  8849. else
  8850. lt_cv_dlopen=no
  8851. lt_cv_dlopen_libs=
  8852. case $host_os in
  8853. beos*)
  8854. lt_cv_dlopen="load_add_on"
  8855. lt_cv_dlopen_libs=
  8856. lt_cv_dlopen_self=yes
  8857. ;;
  8858. mingw* | pw32* | cegcc*)
  8859. lt_cv_dlopen="LoadLibrary"
  8860. lt_cv_dlopen_libs=
  8861. ;;
  8862. cygwin*)
  8863. lt_cv_dlopen="dlopen"
  8864. lt_cv_dlopen_libs=
  8865. ;;
  8866. darwin*)
  8867. # if libdl is installed we need to link against it
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8869. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8870. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. ac_check_lib_save_LIBS=$LIBS
  8874. LIBS="-ldl $LIBS"
  8875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8876. /* end confdefs.h. */
  8877. /* Override any GCC internal prototype to avoid an error.
  8878. Use char because int might match the return type of a GCC
  8879. builtin and then its argument prototype would still apply. */
  8880. #ifdef __cplusplus
  8881. extern "C"
  8882. #endif
  8883. char dlopen ();
  8884. int
  8885. main ()
  8886. {
  8887. return dlopen ();
  8888. ;
  8889. return 0;
  8890. }
  8891. _ACEOF
  8892. if ac_fn_c_try_link "$LINENO"; then :
  8893. ac_cv_lib_dl_dlopen=yes
  8894. else
  8895. ac_cv_lib_dl_dlopen=no
  8896. fi
  8897. rm -f core conftest.err conftest.$ac_objext \
  8898. conftest$ac_exeext conftest.$ac_ext
  8899. LIBS=$ac_check_lib_save_LIBS
  8900. fi
  8901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8902. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8903. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8904. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8905. else
  8906. lt_cv_dlopen="dyld"
  8907. lt_cv_dlopen_libs=
  8908. lt_cv_dlopen_self=yes
  8909. fi
  8910. ;;
  8911. *)
  8912. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8913. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8914. lt_cv_dlopen="shl_load"
  8915. else
  8916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8917. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8918. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8919. $as_echo_n "(cached) " >&6
  8920. else
  8921. ac_check_lib_save_LIBS=$LIBS
  8922. LIBS="-ldld $LIBS"
  8923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8924. /* end confdefs.h. */
  8925. /* Override any GCC internal prototype to avoid an error.
  8926. Use char because int might match the return type of a GCC
  8927. builtin and then its argument prototype would still apply. */
  8928. #ifdef __cplusplus
  8929. extern "C"
  8930. #endif
  8931. char shl_load ();
  8932. int
  8933. main ()
  8934. {
  8935. return shl_load ();
  8936. ;
  8937. return 0;
  8938. }
  8939. _ACEOF
  8940. if ac_fn_c_try_link "$LINENO"; then :
  8941. ac_cv_lib_dld_shl_load=yes
  8942. else
  8943. ac_cv_lib_dld_shl_load=no
  8944. fi
  8945. rm -f core conftest.err conftest.$ac_objext \
  8946. conftest$ac_exeext conftest.$ac_ext
  8947. LIBS=$ac_check_lib_save_LIBS
  8948. fi
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8950. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8951. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8952. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8953. else
  8954. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8955. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8956. lt_cv_dlopen="dlopen"
  8957. else
  8958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8959. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8960. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8961. $as_echo_n "(cached) " >&6
  8962. else
  8963. ac_check_lib_save_LIBS=$LIBS
  8964. LIBS="-ldl $LIBS"
  8965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8966. /* end confdefs.h. */
  8967. /* Override any GCC internal prototype to avoid an error.
  8968. Use char because int might match the return type of a GCC
  8969. builtin and then its argument prototype would still apply. */
  8970. #ifdef __cplusplus
  8971. extern "C"
  8972. #endif
  8973. char dlopen ();
  8974. int
  8975. main ()
  8976. {
  8977. return dlopen ();
  8978. ;
  8979. return 0;
  8980. }
  8981. _ACEOF
  8982. if ac_fn_c_try_link "$LINENO"; then :
  8983. ac_cv_lib_dl_dlopen=yes
  8984. else
  8985. ac_cv_lib_dl_dlopen=no
  8986. fi
  8987. rm -f core conftest.err conftest.$ac_objext \
  8988. conftest$ac_exeext conftest.$ac_ext
  8989. LIBS=$ac_check_lib_save_LIBS
  8990. fi
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8992. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8993. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8994. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8995. else
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8997. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8998. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8999. $as_echo_n "(cached) " >&6
  9000. else
  9001. ac_check_lib_save_LIBS=$LIBS
  9002. LIBS="-lsvld $LIBS"
  9003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9004. /* end confdefs.h. */
  9005. /* Override any GCC internal prototype to avoid an error.
  9006. Use char because int might match the return type of a GCC
  9007. builtin and then its argument prototype would still apply. */
  9008. #ifdef __cplusplus
  9009. extern "C"
  9010. #endif
  9011. char dlopen ();
  9012. int
  9013. main ()
  9014. {
  9015. return dlopen ();
  9016. ;
  9017. return 0;
  9018. }
  9019. _ACEOF
  9020. if ac_fn_c_try_link "$LINENO"; then :
  9021. ac_cv_lib_svld_dlopen=yes
  9022. else
  9023. ac_cv_lib_svld_dlopen=no
  9024. fi
  9025. rm -f core conftest.err conftest.$ac_objext \
  9026. conftest$ac_exeext conftest.$ac_ext
  9027. LIBS=$ac_check_lib_save_LIBS
  9028. fi
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9030. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9031. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9032. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9033. else
  9034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9035. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9036. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9037. $as_echo_n "(cached) " >&6
  9038. else
  9039. ac_check_lib_save_LIBS=$LIBS
  9040. LIBS="-ldld $LIBS"
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. /* Override any GCC internal prototype to avoid an error.
  9044. Use char because int might match the return type of a GCC
  9045. builtin and then its argument prototype would still apply. */
  9046. #ifdef __cplusplus
  9047. extern "C"
  9048. #endif
  9049. char dld_link ();
  9050. int
  9051. main ()
  9052. {
  9053. return dld_link ();
  9054. ;
  9055. return 0;
  9056. }
  9057. _ACEOF
  9058. if ac_fn_c_try_link "$LINENO"; then :
  9059. ac_cv_lib_dld_dld_link=yes
  9060. else
  9061. ac_cv_lib_dld_dld_link=no
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext \
  9064. conftest$ac_exeext conftest.$ac_ext
  9065. LIBS=$ac_check_lib_save_LIBS
  9066. fi
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9068. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9069. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9070. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9071. fi
  9072. fi
  9073. fi
  9074. fi
  9075. fi
  9076. fi
  9077. ;;
  9078. esac
  9079. if test "x$lt_cv_dlopen" != xno; then
  9080. enable_dlopen=yes
  9081. else
  9082. enable_dlopen=no
  9083. fi
  9084. case $lt_cv_dlopen in
  9085. dlopen)
  9086. save_CPPFLAGS="$CPPFLAGS"
  9087. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9088. save_LDFLAGS="$LDFLAGS"
  9089. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9090. save_LIBS="$LIBS"
  9091. LIBS="$lt_cv_dlopen_libs $LIBS"
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9093. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9094. if test "${lt_cv_dlopen_self+set}" = set; then :
  9095. $as_echo_n "(cached) " >&6
  9096. else
  9097. if test "$cross_compiling" = yes; then :
  9098. lt_cv_dlopen_self=cross
  9099. else
  9100. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9101. lt_status=$lt_dlunknown
  9102. cat > conftest.$ac_ext <<_LT_EOF
  9103. #line 10622 "configure"
  9104. #include "confdefs.h"
  9105. #if HAVE_DLFCN_H
  9106. #include <dlfcn.h>
  9107. #endif
  9108. #include <stdio.h>
  9109. #ifdef RTLD_GLOBAL
  9110. # define LT_DLGLOBAL RTLD_GLOBAL
  9111. #else
  9112. # ifdef DL_GLOBAL
  9113. # define LT_DLGLOBAL DL_GLOBAL
  9114. # else
  9115. # define LT_DLGLOBAL 0
  9116. # endif
  9117. #endif
  9118. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9119. find out it does not work in some platform. */
  9120. #ifndef LT_DLLAZY_OR_NOW
  9121. # ifdef RTLD_LAZY
  9122. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9123. # else
  9124. # ifdef DL_LAZY
  9125. # define LT_DLLAZY_OR_NOW DL_LAZY
  9126. # else
  9127. # ifdef RTLD_NOW
  9128. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9129. # else
  9130. # ifdef DL_NOW
  9131. # define LT_DLLAZY_OR_NOW DL_NOW
  9132. # else
  9133. # define LT_DLLAZY_OR_NOW 0
  9134. # endif
  9135. # endif
  9136. # endif
  9137. # endif
  9138. #endif
  9139. /* When -fvisbility=hidden is used, assume the code has been annotated
  9140. correspondingly for the symbols needed. */
  9141. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9142. void fnord () __attribute__((visibility("default")));
  9143. #endif
  9144. void fnord () { int i=42; }
  9145. int main ()
  9146. {
  9147. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9148. int status = $lt_dlunknown;
  9149. if (self)
  9150. {
  9151. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9152. else
  9153. {
  9154. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9155. else puts (dlerror ());
  9156. }
  9157. /* dlclose (self); */
  9158. }
  9159. else
  9160. puts (dlerror ());
  9161. return status;
  9162. }
  9163. _LT_EOF
  9164. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9165. (eval $ac_link) 2>&5
  9166. ac_status=$?
  9167. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9168. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9169. (./conftest; exit; ) >&5 2>/dev/null
  9170. lt_status=$?
  9171. case x$lt_status in
  9172. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9173. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9174. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9175. esac
  9176. else :
  9177. # compilation failed
  9178. lt_cv_dlopen_self=no
  9179. fi
  9180. fi
  9181. rm -fr conftest*
  9182. fi
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9184. $as_echo "$lt_cv_dlopen_self" >&6; }
  9185. if test "x$lt_cv_dlopen_self" = xyes; then
  9186. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9188. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9189. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9190. $as_echo_n "(cached) " >&6
  9191. else
  9192. if test "$cross_compiling" = yes; then :
  9193. lt_cv_dlopen_self_static=cross
  9194. else
  9195. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9196. lt_status=$lt_dlunknown
  9197. cat > conftest.$ac_ext <<_LT_EOF
  9198. #line 10728 "configure"
  9199. #include "confdefs.h"
  9200. #if HAVE_DLFCN_H
  9201. #include <dlfcn.h>
  9202. #endif
  9203. #include <stdio.h>
  9204. #ifdef RTLD_GLOBAL
  9205. # define LT_DLGLOBAL RTLD_GLOBAL
  9206. #else
  9207. # ifdef DL_GLOBAL
  9208. # define LT_DLGLOBAL DL_GLOBAL
  9209. # else
  9210. # define LT_DLGLOBAL 0
  9211. # endif
  9212. #endif
  9213. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9214. find out it does not work in some platform. */
  9215. #ifndef LT_DLLAZY_OR_NOW
  9216. # ifdef RTLD_LAZY
  9217. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9218. # else
  9219. # ifdef DL_LAZY
  9220. # define LT_DLLAZY_OR_NOW DL_LAZY
  9221. # else
  9222. # ifdef RTLD_NOW
  9223. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9224. # else
  9225. # ifdef DL_NOW
  9226. # define LT_DLLAZY_OR_NOW DL_NOW
  9227. # else
  9228. # define LT_DLLAZY_OR_NOW 0
  9229. # endif
  9230. # endif
  9231. # endif
  9232. # endif
  9233. #endif
  9234. /* When -fvisbility=hidden is used, assume the code has been annotated
  9235. correspondingly for the symbols needed. */
  9236. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9237. void fnord () __attribute__((visibility("default")));
  9238. #endif
  9239. void fnord () { int i=42; }
  9240. int main ()
  9241. {
  9242. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9243. int status = $lt_dlunknown;
  9244. if (self)
  9245. {
  9246. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9247. else
  9248. {
  9249. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9250. else puts (dlerror ());
  9251. }
  9252. /* dlclose (self); */
  9253. }
  9254. else
  9255. puts (dlerror ());
  9256. return status;
  9257. }
  9258. _LT_EOF
  9259. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9260. (eval $ac_link) 2>&5
  9261. ac_status=$?
  9262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9263. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9264. (./conftest; exit; ) >&5 2>/dev/null
  9265. lt_status=$?
  9266. case x$lt_status in
  9267. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9268. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9269. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9270. esac
  9271. else :
  9272. # compilation failed
  9273. lt_cv_dlopen_self_static=no
  9274. fi
  9275. fi
  9276. rm -fr conftest*
  9277. fi
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9279. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9280. fi
  9281. CPPFLAGS="$save_CPPFLAGS"
  9282. LDFLAGS="$save_LDFLAGS"
  9283. LIBS="$save_LIBS"
  9284. ;;
  9285. esac
  9286. case $lt_cv_dlopen_self in
  9287. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9288. *) enable_dlopen_self=unknown ;;
  9289. esac
  9290. case $lt_cv_dlopen_self_static in
  9291. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9292. *) enable_dlopen_self_static=unknown ;;
  9293. esac
  9294. fi
  9295. striplib=
  9296. old_striplib=
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9298. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9299. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9300. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9301. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9303. $as_echo "yes" >&6; }
  9304. else
  9305. # FIXME - insert some real tests, host_os isn't really good enough
  9306. case $host_os in
  9307. darwin*)
  9308. if test -n "$STRIP" ; then
  9309. striplib="$STRIP -x"
  9310. old_striplib="$STRIP -S"
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9312. $as_echo "yes" >&6; }
  9313. else
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9315. $as_echo "no" >&6; }
  9316. fi
  9317. ;;
  9318. *)
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9320. $as_echo "no" >&6; }
  9321. ;;
  9322. esac
  9323. fi
  9324. # Report which library types will actually be built
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9326. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9328. $as_echo "$can_build_shared" >&6; }
  9329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9330. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9331. test "$can_build_shared" = "no" && enable_shared=no
  9332. # On AIX, shared libraries and static libraries use the same namespace, and
  9333. # are all built from PIC.
  9334. case $host_os in
  9335. aix3*)
  9336. test "$enable_shared" = yes && enable_static=no
  9337. if test -n "$RANLIB"; then
  9338. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9339. postinstall_cmds='$RANLIB $lib'
  9340. fi
  9341. ;;
  9342. aix[4-9]*)
  9343. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9344. test "$enable_shared" = yes && enable_static=no
  9345. fi
  9346. ;;
  9347. esac
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9349. $as_echo "$enable_shared" >&6; }
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9351. $as_echo_n "checking whether to build static libraries... " >&6; }
  9352. # Make sure either enable_shared or enable_static is yes.
  9353. test "$enable_shared" = yes || enable_static=yes
  9354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9355. $as_echo "$enable_static" >&6; }
  9356. fi
  9357. ac_ext=c
  9358. ac_cpp='$CPP $CPPFLAGS'
  9359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9362. CC="$lt_save_CC"
  9363. ac_config_commands="$ac_config_commands libtool"
  9364. # Only expand once:
  9365. case $host in
  9366. *-cygwin* | *-mingw*)
  9367. # 'host' will be top-level target in the case of a target lib,
  9368. # we must compare to with_cross_host to decide if this is a native
  9369. # or cross-compiler and select where to install dlls appropriately.
  9370. if test -n "$with_cross_host" &&
  9371. test x"$with_cross_host" != x"no"; then
  9372. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9373. else
  9374. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9375. fi
  9376. ;;
  9377. *)
  9378. lt_host_flags=
  9379. ;;
  9380. esac
  9381. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  9382. case $ac_cv_c_int64_t in #(
  9383. no|yes) ;; #(
  9384. *)
  9385. cat >>confdefs.h <<_ACEOF
  9386. #define int64_t $ac_cv_c_int64_t
  9387. _ACEOF
  9388. ;;
  9389. esac
  9390. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  9391. case $ac_cv_c_uint64_t in #(
  9392. no|yes) ;; #(
  9393. *)
  9394. $as_echo "#define _UINT64_T 1" >>confdefs.h
  9395. cat >>confdefs.h <<_ACEOF
  9396. #define uint64_t $ac_cv_c_uint64_t
  9397. _ACEOF
  9398. ;;
  9399. esac
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  9401. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  9402. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  9403. $as_echo_n "(cached) " >&6
  9404. else
  9405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9406. /* end confdefs.h. */
  9407. #include <sys/types.h>
  9408. #include <sys/wait.h>
  9409. #ifndef WEXITSTATUS
  9410. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  9411. #endif
  9412. #ifndef WIFEXITED
  9413. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  9414. #endif
  9415. int
  9416. main ()
  9417. {
  9418. int s;
  9419. wait (&s);
  9420. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  9421. ;
  9422. return 0;
  9423. }
  9424. _ACEOF
  9425. if ac_fn_c_try_compile "$LINENO"; then :
  9426. ac_cv_header_sys_wait_h=yes
  9427. else
  9428. ac_cv_header_sys_wait_h=no
  9429. fi
  9430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9431. fi
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  9433. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  9434. if test $ac_cv_header_sys_wait_h = yes; then
  9435. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  9436. fi
  9437. ac_config_files="$ac_config_files Makefile"
  9438. ac_config_headers="$ac_config_headers config.h"
  9439. cat >confcache <<\_ACEOF
  9440. # This file is a shell script that caches the results of configure
  9441. # tests run on this system so they can be shared between configure
  9442. # scripts and configure runs, see configure's option --config-cache.
  9443. # It is not useful on other systems. If it contains results you don't
  9444. # want to keep, you may remove or edit it.
  9445. #
  9446. # config.status only pays attention to the cache file if you give it
  9447. # the --recheck option to rerun configure.
  9448. #
  9449. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9450. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9451. # following values.
  9452. _ACEOF
  9453. # The following way of writing the cache mishandles newlines in values,
  9454. # but we know of no workaround that is simple, portable, and efficient.
  9455. # So, we kill variables containing newlines.
  9456. # Ultrix sh set writes to stderr and can't be redirected directly,
  9457. # and sets the high bit in the cache file unless we assign to the vars.
  9458. (
  9459. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9460. eval ac_val=\$$ac_var
  9461. case $ac_val in #(
  9462. *${as_nl}*)
  9463. case $ac_var in #(
  9464. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9465. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9466. esac
  9467. case $ac_var in #(
  9468. _ | IFS | as_nl) ;; #(
  9469. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9470. *) { eval $ac_var=; unset $ac_var;} ;;
  9471. esac ;;
  9472. esac
  9473. done
  9474. (set) 2>&1 |
  9475. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9476. *${as_nl}ac_space=\ *)
  9477. # `set' does not quote correctly, so add quotes: double-quote
  9478. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9479. sed -n \
  9480. "s/'/'\\\\''/g;
  9481. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9482. ;; #(
  9483. *)
  9484. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9485. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9486. ;;
  9487. esac |
  9488. sort
  9489. ) |
  9490. sed '
  9491. /^ac_cv_env_/b end
  9492. t clear
  9493. :clear
  9494. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9495. t end
  9496. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9497. :end' >>confcache
  9498. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9499. if test -w "$cache_file"; then
  9500. test "x$cache_file" != "x/dev/null" &&
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9502. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9503. cat confcache >$cache_file
  9504. else
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9506. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9507. fi
  9508. fi
  9509. rm -f confcache
  9510. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9511. # Let make expand exec_prefix.
  9512. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9513. DEFS=-DHAVE_CONFIG_H
  9514. ac_libobjs=
  9515. ac_ltlibobjs=
  9516. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9517. # 1. Remove the extension, and $U if already installed.
  9518. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9519. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9520. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9521. # will be set to the directory where LIBOBJS objects are built.
  9522. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9523. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9524. done
  9525. LIBOBJS=$ac_libobjs
  9526. LTLIBOBJS=$ac_ltlibobjs
  9527. if test -n "$EXEEXT"; then
  9528. am__EXEEXT_TRUE=
  9529. am__EXEEXT_FALSE='#'
  9530. else
  9531. am__EXEEXT_TRUE='#'
  9532. am__EXEEXT_FALSE=
  9533. fi
  9534. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9535. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  9536. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9537. fi
  9538. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9539. as_fn_error "conditional \"AMDEP\" was never defined.
  9540. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9541. fi
  9542. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9543. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  9544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9545. fi
  9546. : ${CONFIG_STATUS=./config.status}
  9547. ac_write_fail=0
  9548. ac_clean_files_save=$ac_clean_files
  9549. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9551. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9552. as_write_fail=0
  9553. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9554. #! $SHELL
  9555. # Generated by $as_me.
  9556. # Run this file to recreate the current configuration.
  9557. # Compiler output produced by configure, useful for debugging
  9558. # configure, is in config.log if it exists.
  9559. debug=false
  9560. ac_cs_recheck=false
  9561. ac_cs_silent=false
  9562. SHELL=\${CONFIG_SHELL-$SHELL}
  9563. export SHELL
  9564. _ASEOF
  9565. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9566. ## -------------------- ##
  9567. ## M4sh Initialization. ##
  9568. ## -------------------- ##
  9569. # Be more Bourne compatible
  9570. DUALCASE=1; export DUALCASE # for MKS sh
  9571. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9572. emulate sh
  9573. NULLCMD=:
  9574. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9575. # is contrary to our usage. Disable this feature.
  9576. alias -g '${1+"$@"}'='"$@"'
  9577. setopt NO_GLOB_SUBST
  9578. else
  9579. case `(set -o) 2>/dev/null` in #(
  9580. *posix*) :
  9581. set -o posix ;; #(
  9582. *) :
  9583. ;;
  9584. esac
  9585. fi
  9586. as_nl='
  9587. '
  9588. export as_nl
  9589. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9590. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9591. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9592. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9593. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9594. # but without wasting forks for bash or zsh.
  9595. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9596. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9597. as_echo='print -r --'
  9598. as_echo_n='print -rn --'
  9599. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9600. as_echo='printf %s\n'
  9601. as_echo_n='printf %s'
  9602. else
  9603. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9604. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9605. as_echo_n='/usr/ucb/echo -n'
  9606. else
  9607. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9608. as_echo_n_body='eval
  9609. arg=$1;
  9610. case $arg in #(
  9611. *"$as_nl"*)
  9612. expr "X$arg" : "X\\(.*\\)$as_nl";
  9613. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9614. esac;
  9615. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9616. '
  9617. export as_echo_n_body
  9618. as_echo_n='sh -c $as_echo_n_body as_echo'
  9619. fi
  9620. export as_echo_body
  9621. as_echo='sh -c $as_echo_body as_echo'
  9622. fi
  9623. # The user is always right.
  9624. if test "${PATH_SEPARATOR+set}" != set; then
  9625. PATH_SEPARATOR=:
  9626. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9627. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9628. PATH_SEPARATOR=';'
  9629. }
  9630. fi
  9631. # IFS
  9632. # We need space, tab and new line, in precisely that order. Quoting is
  9633. # there to prevent editors from complaining about space-tab.
  9634. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9635. # splitting by setting IFS to empty value.)
  9636. IFS=" "" $as_nl"
  9637. # Find who we are. Look in the path if we contain no directory separator.
  9638. case $0 in #((
  9639. *[\\/]* ) as_myself=$0 ;;
  9640. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9641. for as_dir in $PATH
  9642. do
  9643. IFS=$as_save_IFS
  9644. test -z "$as_dir" && as_dir=.
  9645. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9646. done
  9647. IFS=$as_save_IFS
  9648. ;;
  9649. esac
  9650. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9651. # in which case we are not to be found in the path.
  9652. if test "x$as_myself" = x; then
  9653. as_myself=$0
  9654. fi
  9655. if test ! -f "$as_myself"; then
  9656. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9657. exit 1
  9658. fi
  9659. # Unset variables that we do not need and which cause bugs (e.g. in
  9660. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9661. # suppresses any "Segmentation fault" message there. '((' could
  9662. # trigger a bug in pdksh 5.2.14.
  9663. for as_var in BASH_ENV ENV MAIL MAILPATH
  9664. do eval test x\${$as_var+set} = xset \
  9665. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9666. done
  9667. PS1='$ '
  9668. PS2='> '
  9669. PS4='+ '
  9670. # NLS nuisances.
  9671. LC_ALL=C
  9672. export LC_ALL
  9673. LANGUAGE=C
  9674. export LANGUAGE
  9675. # CDPATH.
  9676. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9677. # as_fn_error ERROR [LINENO LOG_FD]
  9678. # ---------------------------------
  9679. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9680. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9681. # script with status $?, using 1 if that was 0.
  9682. as_fn_error ()
  9683. {
  9684. as_status=$?; test $as_status -eq 0 && as_status=1
  9685. if test "$3"; then
  9686. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9687. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  9688. fi
  9689. $as_echo "$as_me: error: $1" >&2
  9690. as_fn_exit $as_status
  9691. } # as_fn_error
  9692. # as_fn_set_status STATUS
  9693. # -----------------------
  9694. # Set $? to STATUS, without forking.
  9695. as_fn_set_status ()
  9696. {
  9697. return $1
  9698. } # as_fn_set_status
  9699. # as_fn_exit STATUS
  9700. # -----------------
  9701. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9702. as_fn_exit ()
  9703. {
  9704. set +e
  9705. as_fn_set_status $1
  9706. exit $1
  9707. } # as_fn_exit
  9708. # as_fn_unset VAR
  9709. # ---------------
  9710. # Portably unset VAR.
  9711. as_fn_unset ()
  9712. {
  9713. { eval $1=; unset $1;}
  9714. }
  9715. as_unset=as_fn_unset
  9716. # as_fn_append VAR VALUE
  9717. # ----------------------
  9718. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9719. # advantage of any shell optimizations that allow amortized linear growth over
  9720. # repeated appends, instead of the typical quadratic growth present in naive
  9721. # implementations.
  9722. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9723. eval 'as_fn_append ()
  9724. {
  9725. eval $1+=\$2
  9726. }'
  9727. else
  9728. as_fn_append ()
  9729. {
  9730. eval $1=\$$1\$2
  9731. }
  9732. fi # as_fn_append
  9733. # as_fn_arith ARG...
  9734. # ------------------
  9735. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9736. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9737. # must be portable across $(()) and expr.
  9738. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9739. eval 'as_fn_arith ()
  9740. {
  9741. as_val=$(( $* ))
  9742. }'
  9743. else
  9744. as_fn_arith ()
  9745. {
  9746. as_val=`expr "$@" || test $? -eq 1`
  9747. }
  9748. fi # as_fn_arith
  9749. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9750. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9751. as_expr=expr
  9752. else
  9753. as_expr=false
  9754. fi
  9755. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9756. as_basename=basename
  9757. else
  9758. as_basename=false
  9759. fi
  9760. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9761. as_dirname=dirname
  9762. else
  9763. as_dirname=false
  9764. fi
  9765. as_me=`$as_basename -- "$0" ||
  9766. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9767. X"$0" : 'X\(//\)$' \| \
  9768. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9769. $as_echo X/"$0" |
  9770. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9771. s//\1/
  9772. q
  9773. }
  9774. /^X\/\(\/\/\)$/{
  9775. s//\1/
  9776. q
  9777. }
  9778. /^X\/\(\/\).*/{
  9779. s//\1/
  9780. q
  9781. }
  9782. s/.*/./; q'`
  9783. # Avoid depending upon Character Ranges.
  9784. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9785. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9786. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9787. as_cr_digits='0123456789'
  9788. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9789. ECHO_C= ECHO_N= ECHO_T=
  9790. case `echo -n x` in #(((((
  9791. -n*)
  9792. case `echo 'xy\c'` in
  9793. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9794. xy) ECHO_C='\c';;
  9795. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9796. ECHO_T=' ';;
  9797. esac;;
  9798. *)
  9799. ECHO_N='-n';;
  9800. esac
  9801. rm -f conf$$ conf$$.exe conf$$.file
  9802. if test -d conf$$.dir; then
  9803. rm -f conf$$.dir/conf$$.file
  9804. else
  9805. rm -f conf$$.dir
  9806. mkdir conf$$.dir 2>/dev/null
  9807. fi
  9808. if (echo >conf$$.file) 2>/dev/null; then
  9809. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9810. as_ln_s='ln -s'
  9811. # ... but there are two gotchas:
  9812. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9813. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9814. # In both cases, we have to default to `cp -p'.
  9815. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9816. as_ln_s='cp -p'
  9817. elif ln conf$$.file conf$$ 2>/dev/null; then
  9818. as_ln_s=ln
  9819. else
  9820. as_ln_s='cp -p'
  9821. fi
  9822. else
  9823. as_ln_s='cp -p'
  9824. fi
  9825. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9826. rmdir conf$$.dir 2>/dev/null
  9827. # as_fn_mkdir_p
  9828. # -------------
  9829. # Create "$as_dir" as a directory, including parents if necessary.
  9830. as_fn_mkdir_p ()
  9831. {
  9832. case $as_dir in #(
  9833. -*) as_dir=./$as_dir;;
  9834. esac
  9835. test -d "$as_dir" || eval $as_mkdir_p || {
  9836. as_dirs=
  9837. while :; do
  9838. case $as_dir in #(
  9839. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9840. *) as_qdir=$as_dir;;
  9841. esac
  9842. as_dirs="'$as_qdir' $as_dirs"
  9843. as_dir=`$as_dirname -- "$as_dir" ||
  9844. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9845. X"$as_dir" : 'X\(//\)[^/]' \| \
  9846. X"$as_dir" : 'X\(//\)$' \| \
  9847. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9848. $as_echo X"$as_dir" |
  9849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9850. s//\1/
  9851. q
  9852. }
  9853. /^X\(\/\/\)[^/].*/{
  9854. s//\1/
  9855. q
  9856. }
  9857. /^X\(\/\/\)$/{
  9858. s//\1/
  9859. q
  9860. }
  9861. /^X\(\/\).*/{
  9862. s//\1/
  9863. q
  9864. }
  9865. s/.*/./; q'`
  9866. test -d "$as_dir" && break
  9867. done
  9868. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9869. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  9870. } # as_fn_mkdir_p
  9871. if mkdir -p . 2>/dev/null; then
  9872. as_mkdir_p='mkdir -p "$as_dir"'
  9873. else
  9874. test -d ./-p && rmdir ./-p
  9875. as_mkdir_p=false
  9876. fi
  9877. if test -x / >/dev/null 2>&1; then
  9878. as_test_x='test -x'
  9879. else
  9880. if ls -dL / >/dev/null 2>&1; then
  9881. as_ls_L_option=L
  9882. else
  9883. as_ls_L_option=
  9884. fi
  9885. as_test_x='
  9886. eval sh -c '\''
  9887. if test -d "$1"; then
  9888. test -d "$1/.";
  9889. else
  9890. case $1 in #(
  9891. -*)set "./$1";;
  9892. esac;
  9893. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  9894. ???[sx]*):;;*)false;;esac;fi
  9895. '\'' sh
  9896. '
  9897. fi
  9898. as_executable_p=$as_test_x
  9899. # Sed expression to map a string onto a valid CPP name.
  9900. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9901. # Sed expression to map a string onto a valid variable name.
  9902. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9903. exec 6>&1
  9904. ## ----------------------------------- ##
  9905. ## Main body of $CONFIG_STATUS script. ##
  9906. ## ----------------------------------- ##
  9907. _ASEOF
  9908. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9909. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9910. # Save the log message, to keep $0 and so on meaningful, and to
  9911. # report actual input values of CONFIG_FILES etc. instead of their
  9912. # values after options handling.
  9913. ac_log="
  9914. This file was extended by LTO plugin for ld $as_me 0.1, which was
  9915. generated by GNU Autoconf 2.64. Invocation command line was
  9916. CONFIG_FILES = $CONFIG_FILES
  9917. CONFIG_HEADERS = $CONFIG_HEADERS
  9918. CONFIG_LINKS = $CONFIG_LINKS
  9919. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9920. $ $0 $@
  9921. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9922. "
  9923. _ACEOF
  9924. case $ac_config_files in *"
  9925. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9926. esac
  9927. case $ac_config_headers in *"
  9928. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9929. esac
  9930. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9931. # Files that config.status was made for.
  9932. config_files="$ac_config_files"
  9933. config_headers="$ac_config_headers"
  9934. config_commands="$ac_config_commands"
  9935. _ACEOF
  9936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9937. ac_cs_usage="\
  9938. \`$as_me' instantiates files and other configuration actions
  9939. from templates according to the current configuration. Unless the files
  9940. and actions are specified as TAGs, all are instantiated by default.
  9941. Usage: $0 [OPTION]... [TAG]...
  9942. -h, --help print this help, then exit
  9943. -V, --version print version number and configuration settings, then exit
  9944. -q, --quiet, --silent
  9945. do not print progress messages
  9946. -d, --debug don't remove temporary files
  9947. --recheck update $as_me by reconfiguring in the same conditions
  9948. --file=FILE[:TEMPLATE]
  9949. instantiate the configuration file FILE
  9950. --header=FILE[:TEMPLATE]
  9951. instantiate the configuration header FILE
  9952. Configuration files:
  9953. $config_files
  9954. Configuration headers:
  9955. $config_headers
  9956. Configuration commands:
  9957. $config_commands
  9958. Report bugs to the package provider."
  9959. _ACEOF
  9960. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9961. ac_cs_version="\\
  9962. LTO plugin for ld config.status 0.1
  9963. configured by $0, generated by GNU Autoconf 2.64,
  9964. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  9965. Copyright (C) 2009 Free Software Foundation, Inc.
  9966. This config.status script is free software; the Free Software Foundation
  9967. gives unlimited permission to copy, distribute and modify it."
  9968. ac_pwd='$ac_pwd'
  9969. srcdir='$srcdir'
  9970. INSTALL='$INSTALL'
  9971. MKDIR_P='$MKDIR_P'
  9972. AWK='$AWK'
  9973. test -n "\$AWK" || AWK=awk
  9974. _ACEOF
  9975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9976. # The default lists apply if the user does not specify any file.
  9977. ac_need_defaults=:
  9978. while test $# != 0
  9979. do
  9980. case $1 in
  9981. --*=*)
  9982. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9983. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9984. ac_shift=:
  9985. ;;
  9986. *)
  9987. ac_option=$1
  9988. ac_optarg=$2
  9989. ac_shift=shift
  9990. ;;
  9991. esac
  9992. case $ac_option in
  9993. # Handling of the options.
  9994. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9995. ac_cs_recheck=: ;;
  9996. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9997. $as_echo "$ac_cs_version"; exit ;;
  9998. --debug | --debu | --deb | --de | --d | -d )
  9999. debug=: ;;
  10000. --file | --fil | --fi | --f )
  10001. $ac_shift
  10002. case $ac_optarg in
  10003. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10004. esac
  10005. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10006. ac_need_defaults=false;;
  10007. --header | --heade | --head | --hea )
  10008. $ac_shift
  10009. case $ac_optarg in
  10010. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10011. esac
  10012. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10013. ac_need_defaults=false;;
  10014. --he | --h)
  10015. # Conflict between --help and --header
  10016. as_fn_error "ambiguous option: \`$1'
  10017. Try \`$0 --help' for more information.";;
  10018. --help | --hel | -h )
  10019. $as_echo "$ac_cs_usage"; exit ;;
  10020. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10021. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10022. ac_cs_silent=: ;;
  10023. # This is an error.
  10024. -*) as_fn_error "unrecognized option: \`$1'
  10025. Try \`$0 --help' for more information." ;;
  10026. *) as_fn_append ac_config_targets " $1"
  10027. ac_need_defaults=false ;;
  10028. esac
  10029. shift
  10030. done
  10031. ac_configure_extra_args=
  10032. if $ac_cs_silent; then
  10033. exec 6>/dev/null
  10034. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10035. fi
  10036. _ACEOF
  10037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10038. if \$ac_cs_recheck; then
  10039. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10040. shift
  10041. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10042. CONFIG_SHELL='$SHELL'
  10043. export CONFIG_SHELL
  10044. exec "\$@"
  10045. fi
  10046. _ACEOF
  10047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10048. exec 5>>config.log
  10049. {
  10050. echo
  10051. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10052. ## Running $as_me. ##
  10053. _ASBOX
  10054. $as_echo "$ac_log"
  10055. } >&5
  10056. _ACEOF
  10057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10058. #
  10059. # INIT-COMMANDS
  10060. #
  10061. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10062. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10063. # if CDPATH is set.
  10064. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10065. sed_quote_subst='$sed_quote_subst'
  10066. double_quote_subst='$double_quote_subst'
  10067. delay_variable_subst='$delay_variable_subst'
  10068. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10069. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10070. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10071. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10072. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10073. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10074. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10075. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10076. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10077. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10078. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10079. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10080. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10081. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10082. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10083. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10084. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10085. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10086. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10087. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10088. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10089. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10090. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10091. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10092. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10093. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10094. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10095. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10096. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10097. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10098. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10099. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10100. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10101. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10102. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10103. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10104. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10105. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10106. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10107. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10108. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10109. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10110. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10111. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10112. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10113. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10114. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10115. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10116. 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"`'
  10117. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10118. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10119. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10120. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10121. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10122. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10123. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10124. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10125. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10126. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10127. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10128. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10129. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10130. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10131. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10132. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10133. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10134. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10135. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10136. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10137. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10138. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10139. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10140. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10141. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10142. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10143. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10144. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10145. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10146. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10147. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10148. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10149. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10150. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10151. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10152. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10153. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10154. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10155. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10156. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10157. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10158. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10159. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10160. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10161. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10162. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10163. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10164. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10165. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10166. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10167. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10168. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10169. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10170. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10171. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10172. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10173. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10174. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10175. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10176. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10177. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10178. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10179. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10180. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10181. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10182. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10183. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10184. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10185. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10186. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10187. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10188. LTCC='$LTCC'
  10189. LTCFLAGS='$LTCFLAGS'
  10190. compiler='$compiler_DEFAULT'
  10191. # A function that is used when there is no print builtin or printf.
  10192. func_fallback_echo ()
  10193. {
  10194. eval 'cat <<_LTECHO_EOF
  10195. \$1
  10196. _LTECHO_EOF'
  10197. }
  10198. # Quote evaled strings.
  10199. for var in SHELL \
  10200. ECHO \
  10201. SED \
  10202. GREP \
  10203. EGREP \
  10204. FGREP \
  10205. LD \
  10206. NM \
  10207. LN_S \
  10208. lt_SP2NL \
  10209. lt_NL2SP \
  10210. reload_flag \
  10211. OBJDUMP \
  10212. deplibs_check_method \
  10213. file_magic_cmd \
  10214. AR \
  10215. AR_FLAGS \
  10216. STRIP \
  10217. RANLIB \
  10218. CC \
  10219. CFLAGS \
  10220. compiler \
  10221. lt_cv_sys_global_symbol_pipe \
  10222. lt_cv_sys_global_symbol_to_cdecl \
  10223. lt_cv_sys_global_symbol_to_c_name_address \
  10224. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10225. lt_prog_compiler_no_builtin_flag \
  10226. lt_prog_compiler_wl \
  10227. lt_prog_compiler_pic \
  10228. lt_prog_compiler_static \
  10229. lt_cv_prog_compiler_c_o \
  10230. need_locks \
  10231. DSYMUTIL \
  10232. NMEDIT \
  10233. LIPO \
  10234. OTOOL \
  10235. OTOOL64 \
  10236. shrext_cmds \
  10237. export_dynamic_flag_spec \
  10238. whole_archive_flag_spec \
  10239. compiler_needs_object \
  10240. with_gnu_ld \
  10241. allow_undefined_flag \
  10242. no_undefined_flag \
  10243. hardcode_libdir_flag_spec \
  10244. hardcode_libdir_flag_spec_ld \
  10245. hardcode_libdir_separator \
  10246. fix_srcfile_path \
  10247. exclude_expsyms \
  10248. include_expsyms \
  10249. file_list_spec \
  10250. variables_saved_for_relink \
  10251. libname_spec \
  10252. library_names_spec \
  10253. soname_spec \
  10254. install_override_mode \
  10255. finish_eval \
  10256. old_striplib \
  10257. striplib; do
  10258. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10259. *[\\\\\\\`\\"\\\$]*)
  10260. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10261. ;;
  10262. *)
  10263. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10264. ;;
  10265. esac
  10266. done
  10267. # Double-quote double-evaled strings.
  10268. for var in reload_cmds \
  10269. old_postinstall_cmds \
  10270. old_postuninstall_cmds \
  10271. old_archive_cmds \
  10272. extract_expsyms_cmds \
  10273. old_archive_from_new_cmds \
  10274. old_archive_from_expsyms_cmds \
  10275. archive_cmds \
  10276. archive_expsym_cmds \
  10277. module_cmds \
  10278. module_expsym_cmds \
  10279. export_symbols_cmds \
  10280. prelink_cmds \
  10281. postinstall_cmds \
  10282. postuninstall_cmds \
  10283. finish_cmds \
  10284. sys_lib_search_path_spec \
  10285. sys_lib_dlsearch_path_spec; do
  10286. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10287. *[\\\\\\\`\\"\\\$]*)
  10288. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10289. ;;
  10290. *)
  10291. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10292. ;;
  10293. esac
  10294. done
  10295. ac_aux_dir='$ac_aux_dir'
  10296. xsi_shell='$xsi_shell'
  10297. lt_shell_append='$lt_shell_append'
  10298. # See if we are running on zsh, and set the options which allow our
  10299. # commands through without removal of \ escapes INIT.
  10300. if test -n "\${ZSH_VERSION+set}" ; then
  10301. setopt NO_GLOB_SUBST
  10302. fi
  10303. PACKAGE='$PACKAGE'
  10304. VERSION='$VERSION'
  10305. TIMESTAMP='$TIMESTAMP'
  10306. RM='$RM'
  10307. ofile='$ofile'
  10308. _ACEOF
  10309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10310. # Handling of arguments.
  10311. for ac_config_target in $ac_config_targets
  10312. do
  10313. case $ac_config_target in
  10314. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10315. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10316. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10317. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10318. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10319. esac
  10320. done
  10321. # If the user did not use the arguments to specify the items to instantiate,
  10322. # then the envvar interface is used. Set only those that are not.
  10323. # We use the long form for the default assignment because of an extremely
  10324. # bizarre bug on SunOS 4.1.3.
  10325. if $ac_need_defaults; then
  10326. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10327. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10328. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10329. fi
  10330. # Have a temporary directory for convenience. Make it in the build tree
  10331. # simply because there is no reason against having it here, and in addition,
  10332. # creating and moving files from /tmp can sometimes cause problems.
  10333. # Hook for its removal unless debugging.
  10334. # Note that there is a small window in which the directory will not be cleaned:
  10335. # after its creation but before its name has been assigned to `$tmp'.
  10336. $debug ||
  10337. {
  10338. tmp=
  10339. trap 'exit_status=$?
  10340. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10341. ' 0
  10342. trap 'as_fn_exit 1' 1 2 13 15
  10343. }
  10344. # Create a (secure) tmp directory for tmp files.
  10345. {
  10346. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10347. test -n "$tmp" && test -d "$tmp"
  10348. } ||
  10349. {
  10350. tmp=./conf$$-$RANDOM
  10351. (umask 077 && mkdir "$tmp")
  10352. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10353. # Set up the scripts for CONFIG_FILES section.
  10354. # No need to generate them if there are no CONFIG_FILES.
  10355. # This happens for instance with `./config.status config.h'.
  10356. if test -n "$CONFIG_FILES"; then
  10357. ac_cr=`echo X | tr X '\015'`
  10358. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10359. # But we know of no other shell where ac_cr would be empty at this
  10360. # point, so we can use a bashism as a fallback.
  10361. if test "x$ac_cr" = x; then
  10362. eval ac_cr=\$\'\\r\'
  10363. fi
  10364. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10365. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10366. ac_cs_awk_cr='\r'
  10367. else
  10368. ac_cs_awk_cr=$ac_cr
  10369. fi
  10370. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10371. _ACEOF
  10372. {
  10373. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10374. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10375. echo "_ACEOF"
  10376. } >conf$$subs.sh ||
  10377. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10378. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10379. ac_delim='%!_!# '
  10380. for ac_last_try in false false false false false :; do
  10381. . ./conf$$subs.sh ||
  10382. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10383. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10384. if test $ac_delim_n = $ac_delim_num; then
  10385. break
  10386. elif $ac_last_try; then
  10387. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10388. else
  10389. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10390. fi
  10391. done
  10392. rm -f conf$$subs.sh
  10393. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10394. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10395. _ACEOF
  10396. sed -n '
  10397. h
  10398. s/^/S["/; s/!.*/"]=/
  10399. p
  10400. g
  10401. s/^[^!]*!//
  10402. :repl
  10403. t repl
  10404. s/'"$ac_delim"'$//
  10405. t delim
  10406. :nl
  10407. h
  10408. s/\(.\{148\}\).*/\1/
  10409. t more1
  10410. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10411. p
  10412. n
  10413. b repl
  10414. :more1
  10415. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10416. p
  10417. g
  10418. s/.\{148\}//
  10419. t nl
  10420. :delim
  10421. h
  10422. s/\(.\{148\}\).*/\1/
  10423. t more2
  10424. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10425. p
  10426. b
  10427. :more2
  10428. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10429. p
  10430. g
  10431. s/.\{148\}//
  10432. t delim
  10433. ' <conf$$subs.awk | sed '
  10434. /^[^""]/{
  10435. N
  10436. s/\n//
  10437. }
  10438. ' >>$CONFIG_STATUS || ac_write_fail=1
  10439. rm -f conf$$subs.awk
  10440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10441. _ACAWK
  10442. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10443. for (key in S) S_is_set[key] = 1
  10444. FS = ""
  10445. }
  10446. {
  10447. line = $ 0
  10448. nfields = split(line, field, "@")
  10449. substed = 0
  10450. len = length(field[1])
  10451. for (i = 2; i < nfields; i++) {
  10452. key = field[i]
  10453. keylen = length(key)
  10454. if (S_is_set[key]) {
  10455. value = S[key]
  10456. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10457. len += length(value) + length(field[++i])
  10458. substed = 1
  10459. } else
  10460. len += 1 + keylen
  10461. }
  10462. print line
  10463. }
  10464. _ACAWK
  10465. _ACEOF
  10466. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10467. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10468. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10469. else
  10470. cat
  10471. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10472. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10473. _ACEOF
  10474. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10475. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10476. # trailing colons and then remove the whole line if VPATH becomes empty
  10477. # (actually we leave an empty line to preserve line numbers).
  10478. if test "x$srcdir" = x.; then
  10479. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10480. s/:*\$(srcdir):*/:/
  10481. s/:*\${srcdir}:*/:/
  10482. s/:*@srcdir@:*/:/
  10483. s/^\([^=]*=[ ]*\):*/\1/
  10484. s/:*$//
  10485. s/^[^=]*=[ ]*$//
  10486. }'
  10487. fi
  10488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10489. fi # test -n "$CONFIG_FILES"
  10490. # Set up the scripts for CONFIG_HEADERS section.
  10491. # No need to generate them if there are no CONFIG_HEADERS.
  10492. # This happens for instance with `./config.status Makefile'.
  10493. if test -n "$CONFIG_HEADERS"; then
  10494. cat >"$tmp/defines.awk" <<\_ACAWK ||
  10495. BEGIN {
  10496. _ACEOF
  10497. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10498. # here-document in config.status, that substitutes the proper values into
  10499. # config.h.in to produce config.h.
  10500. # Create a delimiter string that does not exist in confdefs.h, to ease
  10501. # handling of long lines.
  10502. ac_delim='%!_!# '
  10503. for ac_last_try in false false :; do
  10504. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  10505. if test -z "$ac_t"; then
  10506. break
  10507. elif $ac_last_try; then
  10508. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  10509. else
  10510. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10511. fi
  10512. done
  10513. # For the awk script, D is an array of macro values keyed by name,
  10514. # likewise P contains macro parameters if any. Preserve backslash
  10515. # newline sequences.
  10516. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10517. sed -n '
  10518. s/.\{148\}/&'"$ac_delim"'/g
  10519. t rset
  10520. :rset
  10521. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10522. t def
  10523. d
  10524. :def
  10525. s/\\$//
  10526. t bsnl
  10527. s/["\\]/\\&/g
  10528. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10529. D["\1"]=" \3"/p
  10530. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10531. d
  10532. :bsnl
  10533. s/["\\]/\\&/g
  10534. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10535. D["\1"]=" \3\\\\\\n"\\/p
  10536. t cont
  10537. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10538. t cont
  10539. d
  10540. :cont
  10541. n
  10542. s/.\{148\}/&'"$ac_delim"'/g
  10543. t clear
  10544. :clear
  10545. s/\\$//
  10546. t bsnlc
  10547. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10548. d
  10549. :bsnlc
  10550. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10551. b cont
  10552. ' <confdefs.h | sed '
  10553. s/'"$ac_delim"'/"\\\
  10554. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10556. for (key in D) D_is_set[key] = 1
  10557. FS = ""
  10558. }
  10559. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10560. line = \$ 0
  10561. split(line, arg, " ")
  10562. if (arg[1] == "#") {
  10563. defundef = arg[2]
  10564. mac1 = arg[3]
  10565. } else {
  10566. defundef = substr(arg[1], 2)
  10567. mac1 = arg[2]
  10568. }
  10569. split(mac1, mac2, "(") #)
  10570. macro = mac2[1]
  10571. prefix = substr(line, 1, index(line, defundef) - 1)
  10572. if (D_is_set[macro]) {
  10573. # Preserve the white space surrounding the "#".
  10574. print prefix "define", macro P[macro] D[macro]
  10575. next
  10576. } else {
  10577. # Replace #undef with comments. This is necessary, for example,
  10578. # in the case of _POSIX_SOURCE, which is predefined and required
  10579. # on some systems where configure will not decide to define it.
  10580. if (defundef == "undef") {
  10581. print "/*", prefix defundef, macro, "*/"
  10582. next
  10583. }
  10584. }
  10585. }
  10586. { print }
  10587. _ACAWK
  10588. _ACEOF
  10589. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10590. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  10591. fi # test -n "$CONFIG_HEADERS"
  10592. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10593. shift
  10594. for ac_tag
  10595. do
  10596. case $ac_tag in
  10597. :[FHLC]) ac_mode=$ac_tag; continue;;
  10598. esac
  10599. case $ac_mode$ac_tag in
  10600. :[FHL]*:*);;
  10601. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10602. :[FH]-) ac_tag=-:-;;
  10603. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10604. esac
  10605. ac_save_IFS=$IFS
  10606. IFS=:
  10607. set x $ac_tag
  10608. IFS=$ac_save_IFS
  10609. shift
  10610. ac_file=$1
  10611. shift
  10612. case $ac_mode in
  10613. :L) ac_source=$1;;
  10614. :[FH])
  10615. ac_file_inputs=
  10616. for ac_f
  10617. do
  10618. case $ac_f in
  10619. -) ac_f="$tmp/stdin";;
  10620. *) # Look for the file first in the build tree, then in the source tree
  10621. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10622. # because $ac_f cannot contain `:'.
  10623. test -f "$ac_f" ||
  10624. case $ac_f in
  10625. [\\/$]*) false;;
  10626. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10627. esac ||
  10628. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10629. esac
  10630. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10631. as_fn_append ac_file_inputs " '$ac_f'"
  10632. done
  10633. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10634. # use $as_me), people would be surprised to read:
  10635. # /* config.h. Generated by config.status. */
  10636. configure_input='Generated from '`
  10637. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10638. `' by configure.'
  10639. if test x"$ac_file" != x-; then
  10640. configure_input="$ac_file. $configure_input"
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10642. $as_echo "$as_me: creating $ac_file" >&6;}
  10643. fi
  10644. # Neutralize special characters interpreted by sed in replacement strings.
  10645. case $configure_input in #(
  10646. *\&* | *\|* | *\\* )
  10647. ac_sed_conf_input=`$as_echo "$configure_input" |
  10648. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10649. *) ac_sed_conf_input=$configure_input;;
  10650. esac
  10651. case $ac_tag in
  10652. *:-:* | *:-) cat >"$tmp/stdin" \
  10653. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  10654. esac
  10655. ;;
  10656. esac
  10657. ac_dir=`$as_dirname -- "$ac_file" ||
  10658. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10659. X"$ac_file" : 'X\(//\)[^/]' \| \
  10660. X"$ac_file" : 'X\(//\)$' \| \
  10661. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10662. $as_echo X"$ac_file" |
  10663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10664. s//\1/
  10665. q
  10666. }
  10667. /^X\(\/\/\)[^/].*/{
  10668. s//\1/
  10669. q
  10670. }
  10671. /^X\(\/\/\)$/{
  10672. s//\1/
  10673. q
  10674. }
  10675. /^X\(\/\).*/{
  10676. s//\1/
  10677. q
  10678. }
  10679. s/.*/./; q'`
  10680. as_dir="$ac_dir"; as_fn_mkdir_p
  10681. ac_builddir=.
  10682. case "$ac_dir" in
  10683. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10684. *)
  10685. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10686. # A ".." for each directory in $ac_dir_suffix.
  10687. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10688. case $ac_top_builddir_sub in
  10689. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10690. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10691. esac ;;
  10692. esac
  10693. ac_abs_top_builddir=$ac_pwd
  10694. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10695. # for backward compatibility:
  10696. ac_top_builddir=$ac_top_build_prefix
  10697. case $srcdir in
  10698. .) # We are building in place.
  10699. ac_srcdir=.
  10700. ac_top_srcdir=$ac_top_builddir_sub
  10701. ac_abs_top_srcdir=$ac_pwd ;;
  10702. [\\/]* | ?:[\\/]* ) # Absolute name.
  10703. ac_srcdir=$srcdir$ac_dir_suffix;
  10704. ac_top_srcdir=$srcdir
  10705. ac_abs_top_srcdir=$srcdir ;;
  10706. *) # Relative name.
  10707. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10708. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10709. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10710. esac
  10711. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10712. case $ac_mode in
  10713. :F)
  10714. #
  10715. # CONFIG_FILE
  10716. #
  10717. case $INSTALL in
  10718. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10719. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10720. esac
  10721. ac_MKDIR_P=$MKDIR_P
  10722. case $MKDIR_P in
  10723. [\\/$]* | ?:[\\/]* ) ;;
  10724. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10725. esac
  10726. _ACEOF
  10727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10728. # If the template does not know about datarootdir, expand it.
  10729. # FIXME: This hack should be removed a few years after 2.60.
  10730. ac_datarootdir_hack=; ac_datarootdir_seen=
  10731. ac_sed_dataroot='
  10732. /datarootdir/ {
  10733. p
  10734. q
  10735. }
  10736. /@datadir@/p
  10737. /@docdir@/p
  10738. /@infodir@/p
  10739. /@localedir@/p
  10740. /@mandir@/p'
  10741. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10742. *datarootdir*) ac_datarootdir_seen=yes;;
  10743. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10745. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10746. _ACEOF
  10747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10748. ac_datarootdir_hack='
  10749. s&@datadir@&$datadir&g
  10750. s&@docdir@&$docdir&g
  10751. s&@infodir@&$infodir&g
  10752. s&@localedir@&$localedir&g
  10753. s&@mandir@&$mandir&g
  10754. s&\\\${datarootdir}&$datarootdir&g' ;;
  10755. esac
  10756. _ACEOF
  10757. # Neutralize VPATH when `$srcdir' = `.'.
  10758. # Shell code in configure.ac might set extrasub.
  10759. # FIXME: do we really want to maintain this feature?
  10760. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10761. ac_sed_extra="$ac_vpsub
  10762. $extrasub
  10763. _ACEOF
  10764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10765. :t
  10766. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10767. s|@configure_input@|$ac_sed_conf_input|;t t
  10768. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10769. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10770. s&@srcdir@&$ac_srcdir&;t t
  10771. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10772. s&@top_srcdir@&$ac_top_srcdir&;t t
  10773. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10774. s&@builddir@&$ac_builddir&;t t
  10775. s&@abs_builddir@&$ac_abs_builddir&;t t
  10776. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10777. s&@INSTALL@&$ac_INSTALL&;t t
  10778. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10779. $ac_datarootdir_hack
  10780. "
  10781. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  10782. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10783. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10784. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  10785. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10787. which seems to be undefined. Please make sure it is defined." >&5
  10788. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10789. which seems to be undefined. Please make sure it is defined." >&2;}
  10790. rm -f "$tmp/stdin"
  10791. case $ac_file in
  10792. -) cat "$tmp/out" && rm -f "$tmp/out";;
  10793. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  10794. esac \
  10795. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10796. ;;
  10797. :H)
  10798. #
  10799. # CONFIG_HEADER
  10800. #
  10801. if test x"$ac_file" != x-; then
  10802. {
  10803. $as_echo "/* $configure_input */" \
  10804. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  10805. } >"$tmp/config.h" \
  10806. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10807. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10809. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10810. else
  10811. rm -f "$ac_file"
  10812. mv "$tmp/config.h" "$ac_file" \
  10813. || as_fn_error "could not create $ac_file" "$LINENO" 5
  10814. fi
  10815. else
  10816. $as_echo "/* $configure_input */" \
  10817. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  10818. || as_fn_error "could not create -" "$LINENO" 5
  10819. fi
  10820. # Compute "$ac_file"'s index in $config_headers.
  10821. _am_arg="$ac_file"
  10822. _am_stamp_count=1
  10823. for _am_header in $config_headers :; do
  10824. case $_am_header in
  10825. $_am_arg | $_am_arg:* )
  10826. break ;;
  10827. * )
  10828. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10829. esac
  10830. done
  10831. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10832. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10833. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10834. X"$_am_arg" : 'X\(//\)$' \| \
  10835. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10836. $as_echo X"$_am_arg" |
  10837. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10838. s//\1/
  10839. q
  10840. }
  10841. /^X\(\/\/\)[^/].*/{
  10842. s//\1/
  10843. q
  10844. }
  10845. /^X\(\/\/\)$/{
  10846. s//\1/
  10847. q
  10848. }
  10849. /^X\(\/\).*/{
  10850. s//\1/
  10851. q
  10852. }
  10853. s/.*/./; q'`/stamp-h$_am_stamp_count
  10854. ;;
  10855. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10856. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10857. ;;
  10858. esac
  10859. case $ac_file$ac_mode in
  10860. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10861. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10862. # are listed without --file. Let's play safe and only enable the eval
  10863. # if we detect the quoting.
  10864. case $CONFIG_FILES in
  10865. *\'*) eval set x "$CONFIG_FILES" ;;
  10866. *) set x $CONFIG_FILES ;;
  10867. esac
  10868. shift
  10869. for mf
  10870. do
  10871. # Strip MF so we end up with the name of the file.
  10872. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10873. # Check whether this is an Automake generated Makefile or not.
  10874. # We used to match only the files named `Makefile.in', but
  10875. # some people rename them; so instead we look at the file content.
  10876. # Grep'ing the first line is not enough: some people post-process
  10877. # each Makefile.in and add a new line on top of each file to say so.
  10878. # Grep'ing the whole file is not good either: AIX grep has a line
  10879. # limit of 2048, but all sed's we know have understand at least 4000.
  10880. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10881. dirpart=`$as_dirname -- "$mf" ||
  10882. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10883. X"$mf" : 'X\(//\)[^/]' \| \
  10884. X"$mf" : 'X\(//\)$' \| \
  10885. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10886. $as_echo X"$mf" |
  10887. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10888. s//\1/
  10889. q
  10890. }
  10891. /^X\(\/\/\)[^/].*/{
  10892. s//\1/
  10893. q
  10894. }
  10895. /^X\(\/\/\)$/{
  10896. s//\1/
  10897. q
  10898. }
  10899. /^X\(\/\).*/{
  10900. s//\1/
  10901. q
  10902. }
  10903. s/.*/./; q'`
  10904. else
  10905. continue
  10906. fi
  10907. # Extract the definition of DEPDIR, am__include, and am__quote
  10908. # from the Makefile without running `make'.
  10909. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10910. test -z "$DEPDIR" && continue
  10911. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10912. test -z "am__include" && continue
  10913. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10914. # When using ansi2knr, U may be empty or an underscore; expand it
  10915. U=`sed -n 's/^U = //p' < "$mf"`
  10916. # Find all dependency output files, they are included files with
  10917. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10918. # simplest approach to changing $(DEPDIR) to its actual value in the
  10919. # expansion.
  10920. for file in `sed -n "
  10921. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10922. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10923. # Make sure the directory exists.
  10924. test -f "$dirpart/$file" && continue
  10925. fdir=`$as_dirname -- "$file" ||
  10926. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10927. X"$file" : 'X\(//\)[^/]' \| \
  10928. X"$file" : 'X\(//\)$' \| \
  10929. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10930. $as_echo X"$file" |
  10931. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10932. s//\1/
  10933. q
  10934. }
  10935. /^X\(\/\/\)[^/].*/{
  10936. s//\1/
  10937. q
  10938. }
  10939. /^X\(\/\/\)$/{
  10940. s//\1/
  10941. q
  10942. }
  10943. /^X\(\/\).*/{
  10944. s//\1/
  10945. q
  10946. }
  10947. s/.*/./; q'`
  10948. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10949. # echo "creating $dirpart/$file"
  10950. echo '# dummy' > "$dirpart/$file"
  10951. done
  10952. done
  10953. }
  10954. ;;
  10955. "libtool":C)
  10956. # See if we are running on zsh, and set the options which allow our
  10957. # commands through without removal of \ escapes.
  10958. if test -n "${ZSH_VERSION+set}" ; then
  10959. setopt NO_GLOB_SUBST
  10960. fi
  10961. cfgfile="${ofile}T"
  10962. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  10963. $RM "$cfgfile"
  10964. cat <<_LT_EOF >> "$cfgfile"
  10965. #! $SHELL
  10966. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10967. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  10968. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10969. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10970. #
  10971. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  10972. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  10973. # Written by Gordon Matzigkeit, 1996
  10974. #
  10975. # This file is part of GNU Libtool.
  10976. #
  10977. # GNU Libtool is free software; you can redistribute it and/or
  10978. # modify it under the terms of the GNU General Public License as
  10979. # published by the Free Software Foundation; either version 2 of
  10980. # the License, or (at your option) any later version.
  10981. #
  10982. # As a special exception to the GNU General Public License,
  10983. # if you distribute this file as part of a program or library that
  10984. # is built using GNU Libtool, you may include this file under the
  10985. # same distribution terms that you use for the rest of that program.
  10986. #
  10987. # GNU Libtool is distributed in the hope that it will be useful,
  10988. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10989. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10990. # GNU General Public License for more details.
  10991. #
  10992. # You should have received a copy of the GNU General Public License
  10993. # along with GNU Libtool; see the file COPYING. If not, a copy
  10994. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  10995. # obtained by writing to the Free Software Foundation, Inc.,
  10996. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10997. # The names of the tagged configurations supported by this script.
  10998. available_tags=""
  10999. # ### BEGIN LIBTOOL CONFIG
  11000. # Which release of libtool.m4 was used?
  11001. macro_version=$macro_version
  11002. macro_revision=$macro_revision
  11003. # Whether or not to build shared libraries.
  11004. build_libtool_libs=$enable_shared
  11005. # Whether or not to build static libraries.
  11006. build_old_libs=$enable_static
  11007. # What type of objects to build.
  11008. pic_mode=$pic_mode
  11009. # Whether or not to optimize for fast installation.
  11010. fast_install=$enable_fast_install
  11011. # Shell to use when invoking shell scripts.
  11012. SHELL=$lt_SHELL
  11013. # An echo program that protects backslashes.
  11014. ECHO=$lt_ECHO
  11015. # The host system.
  11016. host_alias=$host_alias
  11017. host=$host
  11018. host_os=$host_os
  11019. # The build system.
  11020. build_alias=$build_alias
  11021. build=$build
  11022. build_os=$build_os
  11023. # A sed program that does not truncate output.
  11024. SED=$lt_SED
  11025. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11026. Xsed="\$SED -e 1s/^X//"
  11027. # A grep program that handles long lines.
  11028. GREP=$lt_GREP
  11029. # An ERE matcher.
  11030. EGREP=$lt_EGREP
  11031. # A literal string matcher.
  11032. FGREP=$lt_FGREP
  11033. # A BSD- or MS-compatible name lister.
  11034. NM=$lt_NM
  11035. # Whether we need soft or hard links.
  11036. LN_S=$lt_LN_S
  11037. # What is the maximum length of a command?
  11038. max_cmd_len=$max_cmd_len
  11039. # Object file suffix (normally "o").
  11040. objext=$ac_objext
  11041. # Executable file suffix (normally "").
  11042. exeext=$exeext
  11043. # whether the shell understands "unset".
  11044. lt_unset=$lt_unset
  11045. # turn spaces into newlines.
  11046. SP2NL=$lt_lt_SP2NL
  11047. # turn newlines into spaces.
  11048. NL2SP=$lt_lt_NL2SP
  11049. # An object symbol dumper.
  11050. OBJDUMP=$lt_OBJDUMP
  11051. # Method to check whether dependent libraries are shared objects.
  11052. deplibs_check_method=$lt_deplibs_check_method
  11053. # Command to use when deplibs_check_method == "file_magic".
  11054. file_magic_cmd=$lt_file_magic_cmd
  11055. # The archiver.
  11056. AR=$lt_AR
  11057. AR_FLAGS=$lt_AR_FLAGS
  11058. # A symbol stripping program.
  11059. STRIP=$lt_STRIP
  11060. # Commands used to install an old-style archive.
  11061. RANLIB=$lt_RANLIB
  11062. old_postinstall_cmds=$lt_old_postinstall_cmds
  11063. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11064. # Whether to use a lock for old archive extraction.
  11065. lock_old_archive_extraction=$lock_old_archive_extraction
  11066. # A C compiler.
  11067. LTCC=$lt_CC
  11068. # LTCC compiler flags.
  11069. LTCFLAGS=$lt_CFLAGS
  11070. # Take the output of nm and produce a listing of raw symbols and C names.
  11071. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11072. # Transform the output of nm in a proper C declaration.
  11073. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11074. # Transform the output of nm in a C name address pair.
  11075. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11076. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11077. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11078. # The name of the directory that contains temporary libtool files.
  11079. objdir=$objdir
  11080. # Used to examine libraries when file_magic_cmd begins with "file".
  11081. MAGIC_CMD=$MAGIC_CMD
  11082. # Must we lock files when doing compilation?
  11083. need_locks=$lt_need_locks
  11084. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11085. DSYMUTIL=$lt_DSYMUTIL
  11086. # Tool to change global to local symbols on Mac OS X.
  11087. NMEDIT=$lt_NMEDIT
  11088. # Tool to manipulate fat objects and archives on Mac OS X.
  11089. LIPO=$lt_LIPO
  11090. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11091. OTOOL=$lt_OTOOL
  11092. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11093. OTOOL64=$lt_OTOOL64
  11094. # Old archive suffix (normally "a").
  11095. libext=$libext
  11096. # Shared library suffix (normally ".so").
  11097. shrext_cmds=$lt_shrext_cmds
  11098. # The commands to extract the exported symbol list from a shared archive.
  11099. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11100. # Variables whose values should be saved in libtool wrapper scripts and
  11101. # restored at link time.
  11102. variables_saved_for_relink=$lt_variables_saved_for_relink
  11103. # Do we need the "lib" prefix for modules?
  11104. need_lib_prefix=$need_lib_prefix
  11105. # Do we need a version for libraries?
  11106. need_version=$need_version
  11107. # Library versioning type.
  11108. version_type=$version_type
  11109. # Shared library runtime path variable.
  11110. runpath_var=$runpath_var
  11111. # Shared library path variable.
  11112. shlibpath_var=$shlibpath_var
  11113. # Is shlibpath searched before the hard-coded library search path?
  11114. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11115. # Format of library name prefix.
  11116. libname_spec=$lt_libname_spec
  11117. # List of archive names. First name is the real one, the rest are links.
  11118. # The last name is the one that the linker finds with -lNAME
  11119. library_names_spec=$lt_library_names_spec
  11120. # The coded name of the library, if different from the real name.
  11121. soname_spec=$lt_soname_spec
  11122. # Permission mode override for installation of shared libraries.
  11123. install_override_mode=$lt_install_override_mode
  11124. # Command to use after installation of a shared archive.
  11125. postinstall_cmds=$lt_postinstall_cmds
  11126. # Command to use after uninstallation of a shared archive.
  11127. postuninstall_cmds=$lt_postuninstall_cmds
  11128. # Commands used to finish a libtool library installation in a directory.
  11129. finish_cmds=$lt_finish_cmds
  11130. # As "finish_cmds", except a single script fragment to be evaled but
  11131. # not shown.
  11132. finish_eval=$lt_finish_eval
  11133. # Whether we should hardcode library paths into libraries.
  11134. hardcode_into_libs=$hardcode_into_libs
  11135. # Compile-time system search path for libraries.
  11136. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11137. # Run-time system search path for libraries.
  11138. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11139. # Whether dlopen is supported.
  11140. dlopen_support=$enable_dlopen
  11141. # Whether dlopen of programs is supported.
  11142. dlopen_self=$enable_dlopen_self
  11143. # Whether dlopen of statically linked programs is supported.
  11144. dlopen_self_static=$enable_dlopen_self_static
  11145. # Commands to strip libraries.
  11146. old_striplib=$lt_old_striplib
  11147. striplib=$lt_striplib
  11148. # The linker used to build libraries.
  11149. LD=$lt_LD
  11150. # How to create reloadable object files.
  11151. reload_flag=$lt_reload_flag
  11152. reload_cmds=$lt_reload_cmds
  11153. # Commands used to build an old-style archive.
  11154. old_archive_cmds=$lt_old_archive_cmds
  11155. # A language specific compiler.
  11156. CC=$lt_compiler
  11157. # Is the compiler the GNU compiler?
  11158. with_gcc=$GCC
  11159. # Compiler flag to turn off builtin functions.
  11160. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11161. # How to pass a linker flag through the compiler.
  11162. wl=$lt_lt_prog_compiler_wl
  11163. # Additional compiler flags for building library objects.
  11164. pic_flag=$lt_lt_prog_compiler_pic
  11165. # Compiler flag to prevent dynamic linking.
  11166. link_static_flag=$lt_lt_prog_compiler_static
  11167. # Does compiler simultaneously support -c and -o options?
  11168. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11169. # Whether or not to add -lc for building shared libraries.
  11170. build_libtool_need_lc=$archive_cmds_need_lc
  11171. # Whether or not to disallow shared libs when runtime libs are static.
  11172. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11173. # Compiler flag to allow reflexive dlopens.
  11174. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11175. # Compiler flag to generate shared objects directly from archives.
  11176. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11177. # Whether the compiler copes with passing no objects directly.
  11178. compiler_needs_object=$lt_compiler_needs_object
  11179. # Create an old-style archive from a shared archive.
  11180. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11181. # Create a temporary old-style archive to link instead of a shared archive.
  11182. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11183. # Commands used to build a shared archive.
  11184. archive_cmds=$lt_archive_cmds
  11185. archive_expsym_cmds=$lt_archive_expsym_cmds
  11186. # Commands used to build a loadable module if different from building
  11187. # a shared archive.
  11188. module_cmds=$lt_module_cmds
  11189. module_expsym_cmds=$lt_module_expsym_cmds
  11190. # Whether we are building with GNU ld or not.
  11191. with_gnu_ld=$lt_with_gnu_ld
  11192. # Flag that allows shared libraries with undefined symbols to be built.
  11193. allow_undefined_flag=$lt_allow_undefined_flag
  11194. # Flag that enforces no undefined symbols.
  11195. no_undefined_flag=$lt_no_undefined_flag
  11196. # Flag to hardcode \$libdir into a binary during linking.
  11197. # This must work even if \$libdir does not exist
  11198. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11199. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11200. # during linking. This must work even if \$libdir does not exist.
  11201. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11202. # Whether we need a single "-rpath" flag with a separated argument.
  11203. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11204. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11205. # DIR into the resulting binary.
  11206. hardcode_direct=$hardcode_direct
  11207. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11208. # DIR into the resulting binary and the resulting library dependency is
  11209. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11210. # library is relocated.
  11211. hardcode_direct_absolute=$hardcode_direct_absolute
  11212. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11213. # into the resulting binary.
  11214. hardcode_minus_L=$hardcode_minus_L
  11215. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11216. # into the resulting binary.
  11217. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11218. # Set to "yes" if building a shared library automatically hardcodes DIR
  11219. # into the library and all subsequent libraries and executables linked
  11220. # against it.
  11221. hardcode_automatic=$hardcode_automatic
  11222. # Set to yes if linker adds runtime paths of dependent libraries
  11223. # to runtime path list.
  11224. inherit_rpath=$inherit_rpath
  11225. # Whether libtool must link a program against all its dependency libraries.
  11226. link_all_deplibs=$link_all_deplibs
  11227. # Fix the shell variable \$srcfile for the compiler.
  11228. fix_srcfile_path=$lt_fix_srcfile_path
  11229. # Set to "yes" if exported symbols are required.
  11230. always_export_symbols=$always_export_symbols
  11231. # The commands to list exported symbols.
  11232. export_symbols_cmds=$lt_export_symbols_cmds
  11233. # Symbols that should not be listed in the preloaded symbols.
  11234. exclude_expsyms=$lt_exclude_expsyms
  11235. # Symbols that must always be exported.
  11236. include_expsyms=$lt_include_expsyms
  11237. # Commands necessary for linking programs (against libraries) with templates.
  11238. prelink_cmds=$lt_prelink_cmds
  11239. # Specify filename containing input files.
  11240. file_list_spec=$lt_file_list_spec
  11241. # How to hardcode a shared library path into an executable.
  11242. hardcode_action=$hardcode_action
  11243. # ### END LIBTOOL CONFIG
  11244. _LT_EOF
  11245. case $host_os in
  11246. aix3*)
  11247. cat <<\_LT_EOF >> "$cfgfile"
  11248. # AIX sometimes has problems with the GCC collect2 program. For some
  11249. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11250. # vanish in a puff of smoke.
  11251. if test "X${COLLECT_NAMES+set}" != Xset; then
  11252. COLLECT_NAMES=
  11253. export COLLECT_NAMES
  11254. fi
  11255. _LT_EOF
  11256. ;;
  11257. esac
  11258. ltmain="$ac_aux_dir/ltmain.sh"
  11259. # We use sed instead of cat because bash on DJGPP gets confused if
  11260. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11261. # text mode, it properly converts lines to CR/LF. This bash problem
  11262. # is reportedly fixed, but why not run on old versions too?
  11263. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11264. || (rm -f "$cfgfile"; exit 1)
  11265. case $xsi_shell in
  11266. yes)
  11267. cat << \_LT_EOF >> "$cfgfile"
  11268. # func_dirname file append nondir_replacement
  11269. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11270. # otherwise set result to NONDIR_REPLACEMENT.
  11271. func_dirname ()
  11272. {
  11273. case ${1} in
  11274. */*) func_dirname_result="${1%/*}${2}" ;;
  11275. * ) func_dirname_result="${3}" ;;
  11276. esac
  11277. }
  11278. # func_basename file
  11279. func_basename ()
  11280. {
  11281. func_basename_result="${1##*/}"
  11282. }
  11283. # func_dirname_and_basename file append nondir_replacement
  11284. # perform func_basename and func_dirname in a single function
  11285. # call:
  11286. # dirname: Compute the dirname of FILE. If nonempty,
  11287. # add APPEND to the result, otherwise set result
  11288. # to NONDIR_REPLACEMENT.
  11289. # value returned in "$func_dirname_result"
  11290. # basename: Compute filename of FILE.
  11291. # value retuned in "$func_basename_result"
  11292. # Implementation must be kept synchronized with func_dirname
  11293. # and func_basename. For efficiency, we do not delegate to
  11294. # those functions but instead duplicate the functionality here.
  11295. func_dirname_and_basename ()
  11296. {
  11297. case ${1} in
  11298. */*) func_dirname_result="${1%/*}${2}" ;;
  11299. * ) func_dirname_result="${3}" ;;
  11300. esac
  11301. func_basename_result="${1##*/}"
  11302. }
  11303. # func_stripname prefix suffix name
  11304. # strip PREFIX and SUFFIX off of NAME.
  11305. # PREFIX and SUFFIX must not contain globbing or regex special
  11306. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11307. # dot (in which case that matches only a dot).
  11308. func_stripname ()
  11309. {
  11310. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11311. # positional parameters, so assign one to ordinary parameter first.
  11312. func_stripname_result=${3}
  11313. func_stripname_result=${func_stripname_result#"${1}"}
  11314. func_stripname_result=${func_stripname_result%"${2}"}
  11315. }
  11316. # func_opt_split
  11317. func_opt_split ()
  11318. {
  11319. func_opt_split_opt=${1%%=*}
  11320. func_opt_split_arg=${1#*=}
  11321. }
  11322. # func_lo2o object
  11323. func_lo2o ()
  11324. {
  11325. case ${1} in
  11326. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11327. *) func_lo2o_result=${1} ;;
  11328. esac
  11329. }
  11330. # func_xform libobj-or-source
  11331. func_xform ()
  11332. {
  11333. func_xform_result=${1%.*}.lo
  11334. }
  11335. # func_arith arithmetic-term...
  11336. func_arith ()
  11337. {
  11338. func_arith_result=$(( $* ))
  11339. }
  11340. # func_len string
  11341. # STRING may not start with a hyphen.
  11342. func_len ()
  11343. {
  11344. func_len_result=${#1}
  11345. }
  11346. _LT_EOF
  11347. ;;
  11348. *) # Bourne compatible functions.
  11349. cat << \_LT_EOF >> "$cfgfile"
  11350. # func_dirname file append nondir_replacement
  11351. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11352. # otherwise set result to NONDIR_REPLACEMENT.
  11353. func_dirname ()
  11354. {
  11355. # Extract subdirectory from the argument.
  11356. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11357. if test "X$func_dirname_result" = "X${1}"; then
  11358. func_dirname_result="${3}"
  11359. else
  11360. func_dirname_result="$func_dirname_result${2}"
  11361. fi
  11362. }
  11363. # func_basename file
  11364. func_basename ()
  11365. {
  11366. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11367. }
  11368. # func_stripname prefix suffix name
  11369. # strip PREFIX and SUFFIX off of NAME.
  11370. # PREFIX and SUFFIX must not contain globbing or regex special
  11371. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11372. # dot (in which case that matches only a dot).
  11373. # func_strip_suffix prefix name
  11374. func_stripname ()
  11375. {
  11376. case ${2} in
  11377. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11378. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11379. esac
  11380. }
  11381. # sed scripts:
  11382. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11383. my_sed_long_arg='1s/^-[^=]*=//'
  11384. # func_opt_split
  11385. func_opt_split ()
  11386. {
  11387. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11388. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11389. }
  11390. # func_lo2o object
  11391. func_lo2o ()
  11392. {
  11393. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11394. }
  11395. # func_xform libobj-or-source
  11396. func_xform ()
  11397. {
  11398. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11399. }
  11400. # func_arith arithmetic-term...
  11401. func_arith ()
  11402. {
  11403. func_arith_result=`expr "$@"`
  11404. }
  11405. # func_len string
  11406. # STRING may not start with a hyphen.
  11407. func_len ()
  11408. {
  11409. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11410. }
  11411. _LT_EOF
  11412. esac
  11413. case $lt_shell_append in
  11414. yes)
  11415. cat << \_LT_EOF >> "$cfgfile"
  11416. # func_append var value
  11417. # Append VALUE to the end of shell variable VAR.
  11418. func_append ()
  11419. {
  11420. eval "$1+=\$2"
  11421. }
  11422. _LT_EOF
  11423. ;;
  11424. *)
  11425. cat << \_LT_EOF >> "$cfgfile"
  11426. # func_append var value
  11427. # Append VALUE to the end of shell variable VAR.
  11428. func_append ()
  11429. {
  11430. eval "$1=\$$1\$2"
  11431. }
  11432. _LT_EOF
  11433. ;;
  11434. esac
  11435. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11436. || (rm -f "$cfgfile"; exit 1)
  11437. mv -f "$cfgfile" "$ofile" ||
  11438. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11439. chmod +x "$ofile"
  11440. ;;
  11441. esac
  11442. done # for ac_tag
  11443. as_fn_exit 0
  11444. _ACEOF
  11445. ac_clean_files=$ac_clean_files_save
  11446. test $ac_write_fail = 0 ||
  11447. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11448. # configure is writing to config.log, and then calls config.status.
  11449. # config.status does its own redirection, appending to config.log.
  11450. # Unfortunately, on DOS this fails, as config.log is still kept open
  11451. # by configure, so config.status won't be able to write to it; its
  11452. # output is simply discarded. So we exec the FD to /dev/null,
  11453. # effectively closing config.log, so it can be properly (re)opened and
  11454. # appended to by config.status. When coming back to configure, we
  11455. # need to make the FD available again.
  11456. if test "$no_create" != yes; then
  11457. ac_cs_success=:
  11458. ac_config_status_args=
  11459. test "$silent" = yes &&
  11460. ac_config_status_args="$ac_config_status_args --quiet"
  11461. exec 5>/dev/null
  11462. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11463. exec 5>>config.log
  11464. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11465. # would make configure fail if this is the last instruction.
  11466. $ac_cs_success || as_fn_exit $?
  11467. fi
  11468. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11470. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11471. fi