configure 537 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='package-unused'
  539. PACKAGE_TARNAME='libphobos'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='package-unused version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="libdruntime/gcc/attribute.d"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. WARN_DFLAGS
  585. libtool_VERSION
  586. SPEC_PHOBOS_DEPS
  587. CHECKING_DFLAGS
  588. ENABLE_LIBDRUNTIME_ONLY_FALSE
  589. ENABLE_LIBDRUNTIME_ONLY_TRUE
  590. ENABLE_LIBPHOBOS_FALSE
  591. ENABLE_LIBPHOBOS_TRUE
  592. gdc_include_dir
  593. libphobos_toolexeclibdir
  594. libphobos_toolexecdir
  595. gcc_version
  596. LIBZ
  597. BACKTRACE_SUPPORTS_THREADS
  598. BACKTRACE_USES_MALLOC
  599. BACKTRACE_SUPPORTED
  600. LIBBACKTRACE
  601. LIBATOMIC
  602. DCFG_HAVE_LIBATOMIC
  603. DCFG_HAVE_64BIT_ATOMICS
  604. DCFG_HAVE_ATOMIC_BUILTINS
  605. DCFG_HAVE_QSORT_R
  606. OS_LINK_SPEC
  607. DCFG_DLPI_TLS_MODID
  608. DRUNTIME_OS_MINFO_BRACKETING_FALSE
  609. DRUNTIME_OS_MINFO_BRACKETING_TRUE
  610. DCFG_MINFO_BRACKETING
  611. DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
  612. DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
  613. DCFG_ARM_EABI_UNWINDER
  614. DCFG_THREAD_MODEL
  615. DRUNTIME_OS_POSIX_FALSE
  616. DRUNTIME_OS_POSIX_TRUE
  617. DRUNTIME_OS_SOLARIS_FALSE
  618. DRUNTIME_OS_SOLARIS_TRUE
  619. DRUNTIME_OS_MINGW_FALSE
  620. DRUNTIME_OS_MINGW_TRUE
  621. DRUNTIME_OS_LINUX_FALSE
  622. DRUNTIME_OS_LINUX_TRUE
  623. DRUNTIME_OS_OPENBSD_FALSE
  624. DRUNTIME_OS_OPENBSD_TRUE
  625. DRUNTIME_OS_NETBSD_FALSE
  626. DRUNTIME_OS_NETBSD_TRUE
  627. DRUNTIME_OS_FREEBSD_FALSE
  628. DRUNTIME_OS_FREEBSD_TRUE
  629. DRUNTIME_OS_DRAGONFLYBSD_FALSE
  630. DRUNTIME_OS_DRAGONFLYBSD_TRUE
  631. DRUNTIME_OS_DARWIN_FALSE
  632. DRUNTIME_OS_DARWIN_TRUE
  633. DRUNTIME_OS_ANDROID_FALSE
  634. DRUNTIME_OS_ANDROID_TRUE
  635. DRUNTIME_OS_AIX_FALSE
  636. DRUNTIME_OS_AIX_TRUE
  637. DRUNTIME_CPU_S390_FALSE
  638. DRUNTIME_CPU_S390_TRUE
  639. DRUNTIME_CPU_SYSTEMZ_FALSE
  640. DRUNTIME_CPU_SYSTEMZ_TRUE
  641. DRUNTIME_CPU_X86_FALSE
  642. DRUNTIME_CPU_X86_TRUE
  643. DRUNTIME_CPU_POWERPC_FALSE
  644. DRUNTIME_CPU_POWERPC_TRUE
  645. DRUNTIME_CPU_MIPS_FALSE
  646. DRUNTIME_CPU_MIPS_TRUE
  647. DRUNTIME_CPU_ARM_FALSE
  648. DRUNTIME_CPU_ARM_TRUE
  649. DRUNTIME_CPU_AARCH64_FALSE
  650. DRUNTIME_CPU_AARCH64_TRUE
  651. SECTION_FLAGS
  652. libphobos_srcdir
  653. libphobos_builddir
  654. get_gcc_base_ver
  655. phobos_compiler_shared_flag
  656. phobos_compiler_pic_flag
  657. phobos_lt_pic_flag
  658. enable_static
  659. enable_shared
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. OBJDUMP
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. SED
  673. LIBTOOL
  674. CFLAGS_FOR_BUILD
  675. CC_FOR_BUILD
  676. AR
  677. DCFG_ENABLE_CET
  678. CET_DFLAGS
  679. CET_FLAGS
  680. RANLIB
  681. MAINT
  682. MAINTAINER_MODE_FALSE
  683. MAINTAINER_MODE_TRUE
  684. GDCFLAGS
  685. GDC
  686. CCASFLAGS
  687. CCAS
  688. AM_BACKSLASH
  689. AM_DEFAULT_VERBOSITY
  690. AM_DEFAULT_V
  691. AM_V
  692. am__untar
  693. am__tar
  694. AMTAR
  695. am__leading_dot
  696. SET_MAKE
  697. AWK
  698. mkdir_p
  699. MKDIR_P
  700. INSTALL_STRIP_PROGRAM
  701. STRIP
  702. install_sh
  703. MAKEINFO
  704. AUTOHEADER
  705. AUTOMAKE
  706. AUTOCONF
  707. ACLOCAL
  708. VERSION
  709. PACKAGE
  710. CYGPATH_W
  711. am__isrc
  712. INSTALL_DATA
  713. INSTALL_SCRIPT
  714. INSTALL_PROGRAM
  715. EGREP
  716. GREP
  717. CPP
  718. OBJEXT
  719. EXEEXT
  720. ac_ct_CC
  721. CPPFLAGS
  722. LDFLAGS
  723. CFLAGS
  724. CC
  725. target_os
  726. target_vendor
  727. target_cpu
  728. target
  729. host_os
  730. host_vendor
  731. host_cpu
  732. host
  733. build_os
  734. build_vendor
  735. build_cpu
  736. build
  737. multi_basedir
  738. target_alias
  739. host_alias
  740. build_alias
  741. LIBS
  742. ECHO_T
  743. ECHO_N
  744. ECHO_C
  745. DEFS
  746. mandir
  747. localedir
  748. libdir
  749. psdir
  750. pdfdir
  751. dvidir
  752. htmldir
  753. infodir
  754. docdir
  755. oldincludedir
  756. includedir
  757. localstatedir
  758. sharedstatedir
  759. sysconfdir
  760. datadir
  761. datarootdir
  762. libexecdir
  763. sbindir
  764. bindir
  765. program_transform_name
  766. prefix
  767. exec_prefix
  768. PACKAGE_URL
  769. PACKAGE_BUGREPORT
  770. PACKAGE_STRING
  771. PACKAGE_VERSION
  772. PACKAGE_TARNAME
  773. PACKAGE_NAME
  774. PATH_SEPARATOR
  775. SHELL'
  776. ac_subst_files='DRTSTUFF_SPEC'
  777. ac_user_opts='
  778. enable_option_checking
  779. enable_multilib
  780. enable_silent_rules
  781. enable_maintainer_mode
  782. enable_cet
  783. enable_shared
  784. enable_static
  785. with_pic
  786. enable_fast_install
  787. with_gnu_ld
  788. enable_libtool_lock
  789. with_gcc_major_version_only
  790. enable_werror
  791. with_libatomic
  792. with_libbacktrace
  793. with_target_system_zlib
  794. with_cross_host
  795. enable_version_specific_runtime_libs
  796. with_toolexeclibdir
  797. enable_libphobos
  798. with_libphobos_druntime_only
  799. enable_libphobos_checking
  800. '
  801. ac_precious_vars='build_alias
  802. host_alias
  803. target_alias
  804. CC
  805. CFLAGS
  806. LDFLAGS
  807. LIBS
  808. CPPFLAGS
  809. CPP'
  810. # Initialize some variables set by options.
  811. ac_init_help=
  812. ac_init_version=false
  813. ac_unrecognized_opts=
  814. ac_unrecognized_sep=
  815. # The variables have the same names as the options, with
  816. # dashes changed to underlines.
  817. cache_file=/dev/null
  818. exec_prefix=NONE
  819. no_create=
  820. no_recursion=
  821. prefix=NONE
  822. program_prefix=NONE
  823. program_suffix=NONE
  824. program_transform_name=s,x,x,
  825. silent=
  826. site=
  827. srcdir=
  828. verbose=
  829. x_includes=NONE
  830. x_libraries=NONE
  831. # Installation directory options.
  832. # These are left unexpanded so users can "make install exec_prefix=/foo"
  833. # and all the variables that are supposed to be based on exec_prefix
  834. # by default will actually change.
  835. # Use braces instead of parens because sh, perl, etc. also accept them.
  836. # (The list follows the same order as the GNU Coding Standards.)
  837. bindir='${exec_prefix}/bin'
  838. sbindir='${exec_prefix}/sbin'
  839. libexecdir='${exec_prefix}/libexec'
  840. datarootdir='${prefix}/share'
  841. datadir='${datarootdir}'
  842. sysconfdir='${prefix}/etc'
  843. sharedstatedir='${prefix}/com'
  844. localstatedir='${prefix}/var'
  845. includedir='${prefix}/include'
  846. oldincludedir='/usr/include'
  847. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  848. infodir='${datarootdir}/info'
  849. htmldir='${docdir}'
  850. dvidir='${docdir}'
  851. pdfdir='${docdir}'
  852. psdir='${docdir}'
  853. libdir='${exec_prefix}/lib'
  854. localedir='${datarootdir}/locale'
  855. mandir='${datarootdir}/man'
  856. ac_prev=
  857. ac_dashdash=
  858. for ac_option
  859. do
  860. # If the previous option needs an argument, assign it.
  861. if test -n "$ac_prev"; then
  862. eval $ac_prev=\$ac_option
  863. ac_prev=
  864. continue
  865. fi
  866. case $ac_option in
  867. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  868. *=) ac_optarg= ;;
  869. *) ac_optarg=yes ;;
  870. esac
  871. # Accept the important Cygnus configure options, so we can diagnose typos.
  872. case $ac_dashdash$ac_option in
  873. --)
  874. ac_dashdash=yes ;;
  875. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  876. ac_prev=bindir ;;
  877. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  878. bindir=$ac_optarg ;;
  879. -build | --build | --buil | --bui | --bu)
  880. ac_prev=build_alias ;;
  881. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  882. build_alias=$ac_optarg ;;
  883. -cache-file | --cache-file | --cache-fil | --cache-fi \
  884. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  885. ac_prev=cache_file ;;
  886. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  887. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  888. cache_file=$ac_optarg ;;
  889. --config-cache | -C)
  890. cache_file=config.cache ;;
  891. -datadir | --datadir | --datadi | --datad)
  892. ac_prev=datadir ;;
  893. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  894. datadir=$ac_optarg ;;
  895. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  896. | --dataroo | --dataro | --datar)
  897. ac_prev=datarootdir ;;
  898. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  899. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  900. datarootdir=$ac_optarg ;;
  901. -disable-* | --disable-*)
  902. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  903. # Reject names that are not valid shell variable names.
  904. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  905. as_fn_error $? "invalid feature name: $ac_useropt"
  906. ac_useropt_orig=$ac_useropt
  907. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  908. case $ac_user_opts in
  909. *"
  910. "enable_$ac_useropt"
  911. "*) ;;
  912. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  913. ac_unrecognized_sep=', ';;
  914. esac
  915. eval enable_$ac_useropt=no ;;
  916. -docdir | --docdir | --docdi | --doc | --do)
  917. ac_prev=docdir ;;
  918. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  919. docdir=$ac_optarg ;;
  920. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  921. ac_prev=dvidir ;;
  922. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  923. dvidir=$ac_optarg ;;
  924. -enable-* | --enable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error $? "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1060. ac_prev=sbindir ;;
  1061. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1062. | --sbi=* | --sb=*)
  1063. sbindir=$ac_optarg ;;
  1064. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1065. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1066. | --sharedst | --shareds | --shared | --share | --shar \
  1067. | --sha | --sh)
  1068. ac_prev=sharedstatedir ;;
  1069. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1070. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1071. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1072. | --sha=* | --sh=*)
  1073. sharedstatedir=$ac_optarg ;;
  1074. -site | --site | --sit)
  1075. ac_prev=site ;;
  1076. -site=* | --site=* | --sit=*)
  1077. site=$ac_optarg ;;
  1078. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1079. ac_prev=srcdir ;;
  1080. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1081. srcdir=$ac_optarg ;;
  1082. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1083. | --syscon | --sysco | --sysc | --sys | --sy)
  1084. ac_prev=sysconfdir ;;
  1085. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1086. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1087. sysconfdir=$ac_optarg ;;
  1088. -target | --target | --targe | --targ | --tar | --ta | --t)
  1089. ac_prev=target_alias ;;
  1090. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1091. target_alias=$ac_optarg ;;
  1092. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1093. verbose=yes ;;
  1094. -version | --version | --versio | --versi | --vers | -V)
  1095. ac_init_version=: ;;
  1096. -with-* | --with-*)
  1097. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1100. as_fn_error $? "invalid package name: $ac_useropt"
  1101. ac_useropt_orig=$ac_useropt
  1102. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1103. case $ac_user_opts in
  1104. *"
  1105. "with_$ac_useropt"
  1106. "*) ;;
  1107. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1108. ac_unrecognized_sep=', ';;
  1109. esac
  1110. eval with_$ac_useropt=\$ac_optarg ;;
  1111. -without-* | --without-*)
  1112. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1113. # Reject names that are not valid shell variable names.
  1114. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1115. as_fn_error $? "invalid package name: $ac_useropt"
  1116. ac_useropt_orig=$ac_useropt
  1117. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1118. case $ac_user_opts in
  1119. *"
  1120. "with_$ac_useropt"
  1121. "*) ;;
  1122. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1123. ac_unrecognized_sep=', ';;
  1124. esac
  1125. eval with_$ac_useropt=no ;;
  1126. --x)
  1127. # Obsolete; use --with-x.
  1128. with_x=yes ;;
  1129. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1130. | --x-incl | --x-inc | --x-in | --x-i)
  1131. ac_prev=x_includes ;;
  1132. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1133. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1134. x_includes=$ac_optarg ;;
  1135. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1136. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1137. ac_prev=x_libraries ;;
  1138. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1139. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1140. x_libraries=$ac_optarg ;;
  1141. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1142. Try \`$0 --help' for more information"
  1143. ;;
  1144. *=*)
  1145. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1146. # Reject names that are not valid shell variable names.
  1147. case $ac_envvar in #(
  1148. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1149. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1150. esac
  1151. eval $ac_envvar=\$ac_optarg
  1152. export $ac_envvar ;;
  1153. *)
  1154. # FIXME: should be removed in autoconf 3.0.
  1155. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1156. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1157. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1158. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1159. ;;
  1160. esac
  1161. done
  1162. if test -n "$ac_prev"; then
  1163. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1164. as_fn_error $? "missing argument to $ac_option"
  1165. fi
  1166. if test -n "$ac_unrecognized_opts"; then
  1167. case $enable_option_checking in
  1168. no) ;;
  1169. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1170. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1171. esac
  1172. fi
  1173. # Check all directory arguments for consistency.
  1174. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1175. datadir sysconfdir sharedstatedir localstatedir includedir \
  1176. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1177. libdir localedir mandir
  1178. do
  1179. eval ac_val=\$$ac_var
  1180. # Remove trailing slashes.
  1181. case $ac_val in
  1182. */ )
  1183. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1184. eval $ac_var=\$ac_val;;
  1185. esac
  1186. # Be sure to have absolute directory names.
  1187. case $ac_val in
  1188. [\\/$]* | ?:[\\/]* ) continue;;
  1189. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1190. esac
  1191. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1192. done
  1193. # There might be people who depend on the old broken behavior: `$host'
  1194. # used to hold the argument of --host etc.
  1195. # FIXME: To remove some day.
  1196. build=$build_alias
  1197. host=$host_alias
  1198. target=$target_alias
  1199. # FIXME: To remove some day.
  1200. if test "x$host_alias" != x; then
  1201. if test "x$build_alias" = x; then
  1202. cross_compiling=maybe
  1203. elif test "x$build_alias" != "x$host_alias"; then
  1204. cross_compiling=yes
  1205. fi
  1206. fi
  1207. ac_tool_prefix=
  1208. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1209. test "$silent" = yes && exec 6>/dev/null
  1210. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1211. ac_ls_di=`ls -di .` &&
  1212. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1213. as_fn_error $? "working directory cannot be determined"
  1214. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1215. as_fn_error $? "pwd does not report name of working directory"
  1216. # Find the source files, if location was not specified.
  1217. if test -z "$srcdir"; then
  1218. ac_srcdir_defaulted=yes
  1219. # Try the directory containing this script, then the parent directory.
  1220. ac_confdir=`$as_dirname -- "$as_myself" ||
  1221. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1222. X"$as_myself" : 'X\(//\)[^/]' \| \
  1223. X"$as_myself" : 'X\(//\)$' \| \
  1224. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1225. $as_echo X"$as_myself" |
  1226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1227. s//\1/
  1228. q
  1229. }
  1230. /^X\(\/\/\)[^/].*/{
  1231. s//\1/
  1232. q
  1233. }
  1234. /^X\(\/\/\)$/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\).*/{
  1239. s//\1/
  1240. q
  1241. }
  1242. s/.*/./; q'`
  1243. srcdir=$ac_confdir
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. srcdir=..
  1246. fi
  1247. else
  1248. ac_srcdir_defaulted=no
  1249. fi
  1250. if test ! -r "$srcdir/$ac_unique_file"; then
  1251. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1252. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1253. fi
  1254. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1255. ac_abs_confdir=`(
  1256. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1257. pwd)`
  1258. # When building in place, set srcdir=.
  1259. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1260. srcdir=.
  1261. fi
  1262. # Remove unnecessary trailing slashes from srcdir.
  1263. # Double slashes in file names in object file debugging info
  1264. # mess up M-x gdb in Emacs.
  1265. case $srcdir in
  1266. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1267. esac
  1268. for ac_var in $ac_precious_vars; do
  1269. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1270. eval ac_env_${ac_var}_value=\$${ac_var}
  1271. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1272. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1273. done
  1274. #
  1275. # Report the --help message.
  1276. #
  1277. if test "$ac_init_help" = "long"; then
  1278. # Omit some internal or obsolete options to make the list less imposing.
  1279. # This message is too long to be a string in the A/UX 3.1 sh.
  1280. cat <<_ACEOF
  1281. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1282. Usage: $0 [OPTION]... [VAR=VALUE]...
  1283. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1284. VAR=VALUE. See below for descriptions of some of the useful variables.
  1285. Defaults for the options are specified in brackets.
  1286. Configuration:
  1287. -h, --help display this help and exit
  1288. --help=short display options specific to this package
  1289. --help=recursive display the short help of all the included packages
  1290. -V, --version display version information and exit
  1291. -q, --quiet, --silent do not print \`checking ...' messages
  1292. --cache-file=FILE cache test results in FILE [disabled]
  1293. -C, --config-cache alias for \`--cache-file=config.cache'
  1294. -n, --no-create do not create output files
  1295. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1296. Installation directories:
  1297. --prefix=PREFIX install architecture-independent files in PREFIX
  1298. [$ac_default_prefix]
  1299. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1300. [PREFIX]
  1301. By default, \`make install' will install all the files in
  1302. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1303. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1304. for instance \`--prefix=\$HOME'.
  1305. For better control, use the options below.
  1306. Fine tuning of the installation directories:
  1307. --bindir=DIR user executables [EPREFIX/bin]
  1308. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1309. --libexecdir=DIR program executables [EPREFIX/libexec]
  1310. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1311. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1312. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1313. --libdir=DIR object code libraries [EPREFIX/lib]
  1314. --includedir=DIR C header files [PREFIX/include]
  1315. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1316. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1317. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1318. --infodir=DIR info documentation [DATAROOTDIR/info]
  1319. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1320. --mandir=DIR man documentation [DATAROOTDIR/man]
  1321. --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
  1322. --htmldir=DIR html documentation [DOCDIR]
  1323. --dvidir=DIR dvi documentation [DOCDIR]
  1324. --pdfdir=DIR pdf documentation [DOCDIR]
  1325. --psdir=DIR ps documentation [DOCDIR]
  1326. _ACEOF
  1327. cat <<\_ACEOF
  1328. Program names:
  1329. --program-prefix=PREFIX prepend PREFIX to installed program names
  1330. --program-suffix=SUFFIX append SUFFIX to installed program names
  1331. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1332. System types:
  1333. --build=BUILD configure for building on BUILD [guessed]
  1334. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1335. --target=TARGET configure for building compilers for TARGET [HOST]
  1336. _ACEOF
  1337. fi
  1338. if test -n "$ac_init_help"; then
  1339. case $ac_init_help in
  1340. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1341. esac
  1342. cat <<\_ACEOF
  1343. Optional Features:
  1344. --disable-option-checking ignore unrecognized --enable/--with options
  1345. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1346. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1347. --enable-multilib build many library versions (default)
  1348. --enable-silent-rules less verbose build output (undo: "make V=1")
  1349. --disable-silent-rules verbose build output (undo: "make V=0")
  1350. --enable-maintainer-mode
  1351. enable make rules and dependencies not useful (and
  1352. sometimes confusing) to the casual installer
  1353. --enable-cet enable Intel CET in target libraries [default=auto]
  1354. --enable-shared[=PKGS] build shared libraries [default=yes]
  1355. --enable-static[=PKGS] build static libraries [default=yes]
  1356. --enable-fast-install[=PKGS]
  1357. optimize for fast installation [default=yes]
  1358. --disable-libtool-lock avoid locking (might break parallel builds)
  1359. --enable-werror turns on -Werror [default=no]
  1360. --enable-version-specific-runtime-libs
  1361. Specify that runtime libraries should be installed
  1362. in a compiler-specific directory
  1363. --enable-libphobos Enable libphobos
  1364. --enable-libphobos-checking[=LIST]
  1365. enable expensive run-time checks. With LIST, enable
  1366. only specific categories of checks. Categories are:
  1367. yes,no,all,none,release. Flags are: assert or other
  1368. strings
  1369. Optional Packages:
  1370. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1371. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1372. --with-pic try to use only PIC/non-PIC objects [default=use
  1373. both]
  1374. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1375. --with-gcc-major-version-only
  1376. use only GCC major number in filesystem paths
  1377. --without-libatomic Do not use libatomic in core.atomic (default: auto)
  1378. --without-libbacktrace Do not use libbacktrace in core.runtime (default:
  1379. auto)
  1380. --with-target-system-zlib={yes,no,auto}
  1381. use installed libz (default: no)
  1382. --with-cross-host=HOST configuring with a cross compiler
  1383. --with-toolexeclibdir=DIR
  1384. install libraries built with a cross compiler within
  1385. DIR
  1386. --with-libphobos-druntime-only={yes,no,auto}
  1387. build only the druntime library (default: auto)
  1388. Some influential environment variables:
  1389. CC C compiler command
  1390. CFLAGS C compiler flags
  1391. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1392. nonstandard directory <lib dir>
  1393. LIBS libraries to pass to the linker, e.g. -l<library>
  1394. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1395. you have headers in a nonstandard directory <include dir>
  1396. CPP C preprocessor
  1397. CCAS assembler compiler command (defaults to CC)
  1398. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1399. GDC D compiler command
  1400. GDCFLAGS D compiler flags
  1401. Use these variables to override the choices made by `configure' or to help
  1402. it to find libraries and programs with nonstandard names/locations.
  1403. Report bugs to the package provider.
  1404. _ACEOF
  1405. ac_status=$?
  1406. fi
  1407. if test "$ac_init_help" = "recursive"; then
  1408. # If there are subdirs, report their specific --help.
  1409. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1410. test -d "$ac_dir" ||
  1411. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1412. continue
  1413. ac_builddir=.
  1414. case "$ac_dir" in
  1415. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1416. *)
  1417. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1418. # A ".." for each directory in $ac_dir_suffix.
  1419. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1420. case $ac_top_builddir_sub in
  1421. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1422. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1423. esac ;;
  1424. esac
  1425. ac_abs_top_builddir=$ac_pwd
  1426. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1427. # for backward compatibility:
  1428. ac_top_builddir=$ac_top_build_prefix
  1429. case $srcdir in
  1430. .) # We are building in place.
  1431. ac_srcdir=.
  1432. ac_top_srcdir=$ac_top_builddir_sub
  1433. ac_abs_top_srcdir=$ac_pwd ;;
  1434. [\\/]* | ?:[\\/]* ) # Absolute name.
  1435. ac_srcdir=$srcdir$ac_dir_suffix;
  1436. ac_top_srcdir=$srcdir
  1437. ac_abs_top_srcdir=$srcdir ;;
  1438. *) # Relative name.
  1439. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1440. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1441. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1442. esac
  1443. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1444. cd "$ac_dir" || { ac_status=$?; continue; }
  1445. # Check for guested configure.
  1446. if test -f "$ac_srcdir/configure.gnu"; then
  1447. echo &&
  1448. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1449. elif test -f "$ac_srcdir/configure"; then
  1450. echo &&
  1451. $SHELL "$ac_srcdir/configure" --help=recursive
  1452. else
  1453. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1454. fi || ac_status=$?
  1455. cd "$ac_pwd" || { ac_status=$?; break; }
  1456. done
  1457. fi
  1458. test -n "$ac_init_help" && exit $ac_status
  1459. if $ac_init_version; then
  1460. cat <<\_ACEOF
  1461. package-unused configure version-unused
  1462. generated by GNU Autoconf 2.69
  1463. Copyright (C) 2012 Free Software Foundation, Inc.
  1464. This configure script is free software; the Free Software Foundation
  1465. gives unlimited permission to copy, distribute and modify it.
  1466. _ACEOF
  1467. exit
  1468. fi
  1469. ## ------------------------ ##
  1470. ## Autoconf initialization. ##
  1471. ## ------------------------ ##
  1472. # ac_fn_c_try_compile LINENO
  1473. # --------------------------
  1474. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1475. ac_fn_c_try_compile ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. rm -f conftest.$ac_objext
  1479. if { { ac_try="$ac_compile"
  1480. case "(($ac_try" in
  1481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1482. *) ac_try_echo=$ac_try;;
  1483. esac
  1484. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1485. $as_echo "$ac_try_echo"; } >&5
  1486. (eval "$ac_compile") 2>conftest.err
  1487. ac_status=$?
  1488. if test -s conftest.err; then
  1489. grep -v '^ *+' conftest.err >conftest.er1
  1490. cat conftest.er1 >&5
  1491. mv -f conftest.er1 conftest.err
  1492. fi
  1493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1494. test $ac_status = 0; } && {
  1495. test -z "$ac_c_werror_flag" ||
  1496. test ! -s conftest.err
  1497. } && test -s conftest.$ac_objext; then :
  1498. ac_retval=0
  1499. else
  1500. $as_echo "$as_me: failed program was:" >&5
  1501. sed 's/^/| /' conftest.$ac_ext >&5
  1502. ac_retval=1
  1503. fi
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. as_fn_set_status $ac_retval
  1506. } # ac_fn_c_try_compile
  1507. # ac_fn_c_try_cpp LINENO
  1508. # ----------------------
  1509. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1510. ac_fn_c_try_cpp ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1514. case "(($ac_try" in
  1515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1516. *) ac_try_echo=$ac_try;;
  1517. esac
  1518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1519. $as_echo "$ac_try_echo"; } >&5
  1520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1521. ac_status=$?
  1522. if test -s conftest.err; then
  1523. grep -v '^ *+' conftest.err >conftest.er1
  1524. cat conftest.er1 >&5
  1525. mv -f conftest.er1 conftest.err
  1526. fi
  1527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1528. test $ac_status = 0; } > conftest.i && {
  1529. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1530. test ! -s conftest.err
  1531. }; then :
  1532. ac_retval=0
  1533. else
  1534. $as_echo "$as_me: failed program was:" >&5
  1535. sed 's/^/| /' conftest.$ac_ext >&5
  1536. ac_retval=1
  1537. fi
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. as_fn_set_status $ac_retval
  1540. } # ac_fn_c_try_cpp
  1541. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1542. # -------------------------------------------------------
  1543. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1544. # the include files in INCLUDES and setting the cache variable VAR
  1545. # accordingly.
  1546. ac_fn_c_check_header_mongrel ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. if eval \${$3+:} false; then :
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1551. $as_echo_n "checking for $2... " >&6; }
  1552. if eval \${$3+:} false; then :
  1553. $as_echo_n "(cached) " >&6
  1554. fi
  1555. eval ac_res=\$$3
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1557. $as_echo "$ac_res" >&6; }
  1558. else
  1559. # Is the header compilable?
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1561. $as_echo_n "checking $2 usability... " >&6; }
  1562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1563. /* end confdefs.h. */
  1564. $4
  1565. #include <$2>
  1566. _ACEOF
  1567. if ac_fn_c_try_compile "$LINENO"; then :
  1568. ac_header_compiler=yes
  1569. else
  1570. ac_header_compiler=no
  1571. fi
  1572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1574. $as_echo "$ac_header_compiler" >&6; }
  1575. # Is the header present?
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1577. $as_echo_n "checking $2 presence... " >&6; }
  1578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1579. /* end confdefs.h. */
  1580. #include <$2>
  1581. _ACEOF
  1582. if ac_fn_c_try_cpp "$LINENO"; then :
  1583. ac_header_preproc=yes
  1584. else
  1585. ac_header_preproc=no
  1586. fi
  1587. rm -f conftest.err conftest.i conftest.$ac_ext
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1589. $as_echo "$ac_header_preproc" >&6; }
  1590. # So? What about this header?
  1591. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1592. yes:no: )
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1594. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1596. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1597. ;;
  1598. no:yes:* )
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1600. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1602. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1604. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1606. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1608. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1609. ;;
  1610. esac
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1612. $as_echo_n "checking for $2... " >&6; }
  1613. if eval \${$3+:} false; then :
  1614. $as_echo_n "(cached) " >&6
  1615. else
  1616. eval "$3=\$ac_header_compiler"
  1617. fi
  1618. eval ac_res=\$$3
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1620. $as_echo "$ac_res" >&6; }
  1621. fi
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. } # ac_fn_c_check_header_mongrel
  1624. # ac_fn_c_try_run LINENO
  1625. # ----------------------
  1626. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1627. # that executables *can* be run.
  1628. ac_fn_c_try_run ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. if { { ac_try="$ac_link"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_link") 2>&5
  1639. ac_status=$?
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1642. { { case "(($ac_try" in
  1643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1644. *) ac_try_echo=$ac_try;;
  1645. esac
  1646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1647. $as_echo "$ac_try_echo"; } >&5
  1648. (eval "$ac_try") 2>&5
  1649. ac_status=$?
  1650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1651. test $ac_status = 0; }; }; then :
  1652. ac_retval=0
  1653. else
  1654. $as_echo "$as_me: program exited with status $ac_status" >&5
  1655. $as_echo "$as_me: failed program was:" >&5
  1656. sed 's/^/| /' conftest.$ac_ext >&5
  1657. ac_retval=$ac_status
  1658. fi
  1659. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. as_fn_set_status $ac_retval
  1662. } # ac_fn_c_try_run
  1663. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1664. # -------------------------------------------------------
  1665. # Tests whether HEADER exists and can be compiled using the include files in
  1666. # INCLUDES, setting the cache variable VAR accordingly.
  1667. ac_fn_c_check_header_compile ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1671. $as_echo_n "checking for $2... " >&6; }
  1672. if eval \${$3+:} false; then :
  1673. $as_echo_n "(cached) " >&6
  1674. else
  1675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1676. /* end confdefs.h. */
  1677. $4
  1678. #include <$2>
  1679. _ACEOF
  1680. if ac_fn_c_try_compile "$LINENO"; then :
  1681. eval "$3=yes"
  1682. else
  1683. eval "$3=no"
  1684. fi
  1685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1686. fi
  1687. eval ac_res=\$$3
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1689. $as_echo "$ac_res" >&6; }
  1690. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1691. } # ac_fn_c_check_header_compile
  1692. # ac_fn_d_try_compile LINENO
  1693. # --------------------------
  1694. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1695. ac_fn_d_try_compile ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. rm -f conftest.$ac_objext
  1699. if { { ac_try="$ac_compile"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_compile") 2>conftest.err
  1707. ac_status=$?
  1708. if test -s conftest.err; then
  1709. grep -v '^ *+' conftest.err >conftest.er1
  1710. cat conftest.er1 >&5
  1711. mv -f conftest.er1 conftest.err
  1712. fi
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && {
  1715. test -z "$ac_d_werror_flag" ||
  1716. test ! -s conftest.err
  1717. } && test -s conftest.$ac_objext; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_d_try_compile
  1727. # ac_fn_c_try_link LINENO
  1728. # -----------------------
  1729. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_link ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext conftest$ac_exeext
  1734. if { { ac_try="$ac_link"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_link") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_c_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest$ac_exeext && {
  1753. test "$cross_compiling" = yes ||
  1754. test -x conftest$ac_exeext
  1755. }; then :
  1756. ac_retval=0
  1757. else
  1758. $as_echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. ac_retval=1
  1761. fi
  1762. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1763. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1764. # interfere with the next link command; also delete a directory that is
  1765. # left behind by Apple's compiler. We do this before executing the actions.
  1766. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. as_fn_set_status $ac_retval
  1769. } # ac_fn_c_try_link
  1770. # ac_fn_c_check_func LINENO FUNC VAR
  1771. # ----------------------------------
  1772. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1773. ac_fn_c_check_func ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1777. $as_echo_n "checking for $2... " >&6; }
  1778. if eval \${$3+:} false; then :
  1779. $as_echo_n "(cached) " >&6
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1785. #define $2 innocuous_$2
  1786. /* System header to define __stub macros and hopefully few prototypes,
  1787. which can conflict with char $2 (); below.
  1788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1789. <limits.h> exists even on freestanding compilers. */
  1790. #ifdef __STDC__
  1791. # include <limits.h>
  1792. #else
  1793. # include <assert.h>
  1794. #endif
  1795. #undef $2
  1796. /* Override any GCC internal prototype to avoid an error.
  1797. Use char because int might match the return type of a GCC
  1798. builtin and then its argument prototype would still apply. */
  1799. #ifdef __cplusplus
  1800. extern "C"
  1801. #endif
  1802. char $2 ();
  1803. /* The GNU C library defines this for functions which it implements
  1804. to always fail with ENOSYS. Some functions are actually named
  1805. something starting with __ and the normal name is an alias. */
  1806. #if defined __stub_$2 || defined __stub___$2
  1807. choke me
  1808. #endif
  1809. int
  1810. main ()
  1811. {
  1812. return $2 ();
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_link "$LINENO"; then :
  1818. eval "$3=yes"
  1819. else
  1820. eval "$3=no"
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext \
  1823. conftest$ac_exeext conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. $as_echo "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_func
  1830. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1831. # ----------------------------------------------------
  1832. # Tries to find if the field MEMBER exists in type AGGR, after including
  1833. # INCLUDES, setting cache variable VAR accordingly.
  1834. ac_fn_c_check_member ()
  1835. {
  1836. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1838. $as_echo_n "checking for $2.$3... " >&6; }
  1839. if eval \${$4+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. $5
  1845. int
  1846. main ()
  1847. {
  1848. static $2 ac_aggr;
  1849. if (ac_aggr.$3)
  1850. return 0;
  1851. ;
  1852. return 0;
  1853. }
  1854. _ACEOF
  1855. if ac_fn_c_try_compile "$LINENO"; then :
  1856. eval "$4=yes"
  1857. else
  1858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1859. /* end confdefs.h. */
  1860. $5
  1861. int
  1862. main ()
  1863. {
  1864. static $2 ac_aggr;
  1865. if (sizeof ac_aggr.$3)
  1866. return 0;
  1867. ;
  1868. return 0;
  1869. }
  1870. _ACEOF
  1871. if ac_fn_c_try_compile "$LINENO"; then :
  1872. eval "$4=yes"
  1873. else
  1874. eval "$4=no"
  1875. fi
  1876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1877. fi
  1878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1879. fi
  1880. eval ac_res=\$$4
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1882. $as_echo "$ac_res" >&6; }
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. } # ac_fn_c_check_member
  1885. # ac_fn_d_try_link LINENO
  1886. # -----------------------
  1887. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1888. ac_fn_d_try_link ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. rm -f conftest.$ac_objext conftest$ac_exeext
  1892. if { { ac_try="$ac_link"
  1893. case "(($ac_try" in
  1894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1895. *) ac_try_echo=$ac_try;;
  1896. esac
  1897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1898. $as_echo "$ac_try_echo"; } >&5
  1899. (eval "$ac_link") 2>conftest.err
  1900. ac_status=$?
  1901. if test -s conftest.err; then
  1902. grep -v '^ *+' conftest.err >conftest.er1
  1903. cat conftest.er1 >&5
  1904. mv -f conftest.er1 conftest.err
  1905. fi
  1906. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1907. test $ac_status = 0; } && {
  1908. test -z "$ac_d_werror_flag" ||
  1909. test ! -s conftest.err
  1910. } && test -s conftest$ac_exeext && {
  1911. test "$cross_compiling" = yes ||
  1912. test -x conftest$ac_exeext
  1913. }; then :
  1914. ac_retval=0
  1915. else
  1916. $as_echo "$as_me: failed program was:" >&5
  1917. sed 's/^/| /' conftest.$ac_ext >&5
  1918. ac_retval=1
  1919. fi
  1920. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1921. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1922. # interfere with the next link command; also delete a directory that is
  1923. # left behind by Apple's compiler. We do this before executing the actions.
  1924. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1925. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1926. as_fn_set_status $ac_retval
  1927. } # ac_fn_d_try_link
  1928. cat >config.log <<_ACEOF
  1929. This file contains any messages produced by compilers while
  1930. running configure, to aid debugging if configure makes a mistake.
  1931. It was created by package-unused $as_me version-unused, which was
  1932. generated by GNU Autoconf 2.69. Invocation command line was
  1933. $ $0 $@
  1934. _ACEOF
  1935. exec 5>>config.log
  1936. {
  1937. cat <<_ASUNAME
  1938. ## --------- ##
  1939. ## Platform. ##
  1940. ## --------- ##
  1941. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1942. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1943. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1944. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1945. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1946. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1947. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1948. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1949. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1950. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1951. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1952. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1953. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1954. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1955. _ASUNAME
  1956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1957. for as_dir in $PATH
  1958. do
  1959. IFS=$as_save_IFS
  1960. test -z "$as_dir" && as_dir=.
  1961. $as_echo "PATH: $as_dir"
  1962. done
  1963. IFS=$as_save_IFS
  1964. } >&5
  1965. cat >&5 <<_ACEOF
  1966. ## ----------- ##
  1967. ## Core tests. ##
  1968. ## ----------- ##
  1969. _ACEOF
  1970. # Keep a trace of the command line.
  1971. # Strip out --no-create and --no-recursion so they do not pile up.
  1972. # Strip out --silent because we don't want to record it for future runs.
  1973. # Also quote any args containing shell meta-characters.
  1974. # Make two passes to allow for proper duplicate-argument suppression.
  1975. ac_configure_args=
  1976. ac_configure_args0=
  1977. ac_configure_args1=
  1978. ac_must_keep_next=false
  1979. for ac_pass in 1 2
  1980. do
  1981. for ac_arg
  1982. do
  1983. case $ac_arg in
  1984. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1985. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1986. | -silent | --silent | --silen | --sile | --sil)
  1987. continue ;;
  1988. *\'*)
  1989. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1990. esac
  1991. case $ac_pass in
  1992. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1993. 2)
  1994. as_fn_append ac_configure_args1 " '$ac_arg'"
  1995. if test $ac_must_keep_next = true; then
  1996. ac_must_keep_next=false # Got value, back to normal.
  1997. else
  1998. case $ac_arg in
  1999. *=* | --config-cache | -C | -disable-* | --disable-* \
  2000. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2001. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2002. | -with-* | --with-* | -without-* | --without-* | --x)
  2003. case "$ac_configure_args0 " in
  2004. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2005. esac
  2006. ;;
  2007. -* ) ac_must_keep_next=true ;;
  2008. esac
  2009. fi
  2010. as_fn_append ac_configure_args " '$ac_arg'"
  2011. ;;
  2012. esac
  2013. done
  2014. done
  2015. { ac_configure_args0=; unset ac_configure_args0;}
  2016. { ac_configure_args1=; unset ac_configure_args1;}
  2017. # When interrupted or exit'd, cleanup temporary files, and complete
  2018. # config.log. We remove comments because anyway the quotes in there
  2019. # would cause problems or look ugly.
  2020. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2021. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2022. trap 'exit_status=$?
  2023. # Save into config.log some information that might help in debugging.
  2024. {
  2025. echo
  2026. $as_echo "## ---------------- ##
  2027. ## Cache variables. ##
  2028. ## ---------------- ##"
  2029. echo
  2030. # The following way of writing the cache mishandles newlines in values,
  2031. (
  2032. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2033. eval ac_val=\$$ac_var
  2034. case $ac_val in #(
  2035. *${as_nl}*)
  2036. case $ac_var in #(
  2037. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2038. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2039. esac
  2040. case $ac_var in #(
  2041. _ | IFS | as_nl) ;; #(
  2042. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2043. *) { eval $ac_var=; unset $ac_var;} ;;
  2044. esac ;;
  2045. esac
  2046. done
  2047. (set) 2>&1 |
  2048. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2049. *${as_nl}ac_space=\ *)
  2050. sed -n \
  2051. "s/'\''/'\''\\\\'\'''\''/g;
  2052. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2053. ;; #(
  2054. *)
  2055. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2056. ;;
  2057. esac |
  2058. sort
  2059. )
  2060. echo
  2061. $as_echo "## ----------------- ##
  2062. ## Output variables. ##
  2063. ## ----------------- ##"
  2064. echo
  2065. for ac_var in $ac_subst_vars
  2066. do
  2067. eval ac_val=\$$ac_var
  2068. case $ac_val in
  2069. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2070. esac
  2071. $as_echo "$ac_var='\''$ac_val'\''"
  2072. done | sort
  2073. echo
  2074. if test -n "$ac_subst_files"; then
  2075. $as_echo "## ------------------- ##
  2076. ## File substitutions. ##
  2077. ## ------------------- ##"
  2078. echo
  2079. for ac_var in $ac_subst_files
  2080. do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in
  2083. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2084. esac
  2085. $as_echo "$ac_var='\''$ac_val'\''"
  2086. done | sort
  2087. echo
  2088. fi
  2089. if test -s confdefs.h; then
  2090. $as_echo "## ----------- ##
  2091. ## confdefs.h. ##
  2092. ## ----------- ##"
  2093. echo
  2094. cat confdefs.h
  2095. echo
  2096. fi
  2097. test "$ac_signal" != 0 &&
  2098. $as_echo "$as_me: caught signal $ac_signal"
  2099. $as_echo "$as_me: exit $exit_status"
  2100. } >&5
  2101. rm -f core *.core core.conftest.* &&
  2102. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2103. exit $exit_status
  2104. ' 0
  2105. for ac_signal in 1 2 13 15; do
  2106. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2107. done
  2108. ac_signal=0
  2109. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2110. rm -f -r conftest* confdefs.h
  2111. $as_echo "/* confdefs.h */" > confdefs.h
  2112. # Predefined preprocessor variables.
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define PACKAGE_NAME "$PACKAGE_NAME"
  2115. _ACEOF
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2121. _ACEOF
  2122. cat >>confdefs.h <<_ACEOF
  2123. #define PACKAGE_STRING "$PACKAGE_STRING"
  2124. _ACEOF
  2125. cat >>confdefs.h <<_ACEOF
  2126. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2127. _ACEOF
  2128. cat >>confdefs.h <<_ACEOF
  2129. #define PACKAGE_URL "$PACKAGE_URL"
  2130. _ACEOF
  2131. # Let the site file select an alternate cache file if it wants to.
  2132. # Prefer an explicitly selected file to automatically selected ones.
  2133. ac_site_file1=NONE
  2134. ac_site_file2=NONE
  2135. if test -n "$CONFIG_SITE"; then
  2136. # We do not want a PATH search for config.site.
  2137. case $CONFIG_SITE in #((
  2138. -*) ac_site_file1=./$CONFIG_SITE;;
  2139. */*) ac_site_file1=$CONFIG_SITE;;
  2140. *) ac_site_file1=./$CONFIG_SITE;;
  2141. esac
  2142. elif test "x$prefix" != xNONE; then
  2143. ac_site_file1=$prefix/share/config.site
  2144. ac_site_file2=$prefix/etc/config.site
  2145. else
  2146. ac_site_file1=$ac_default_prefix/share/config.site
  2147. ac_site_file2=$ac_default_prefix/etc/config.site
  2148. fi
  2149. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2150. do
  2151. test "x$ac_site_file" = xNONE && continue
  2152. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2154. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2155. sed 's/^/| /' "$ac_site_file" >&5
  2156. . "$ac_site_file" \
  2157. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2159. as_fn_error $? "failed to load site script $ac_site_file
  2160. See \`config.log' for more details" "$LINENO" 5; }
  2161. fi
  2162. done
  2163. if test -r "$cache_file"; then
  2164. # Some versions of bash will fail to source /dev/null (special files
  2165. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2166. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2168. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2169. case $cache_file in
  2170. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2171. *) . "./$cache_file";;
  2172. esac
  2173. fi
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2176. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2177. >$cache_file
  2178. fi
  2179. # Check that the precious variables saved in the cache have kept the same
  2180. # value.
  2181. ac_cache_corrupted=false
  2182. for ac_var in $ac_precious_vars; do
  2183. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2184. eval ac_new_set=\$ac_env_${ac_var}_set
  2185. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2186. eval ac_new_val=\$ac_env_${ac_var}_value
  2187. case $ac_old_set,$ac_new_set in
  2188. set,)
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2190. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2191. ac_cache_corrupted=: ;;
  2192. ,set)
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2194. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2195. ac_cache_corrupted=: ;;
  2196. ,);;
  2197. *)
  2198. if test "x$ac_old_val" != "x$ac_new_val"; then
  2199. # differences in whitespace do not lead to failure.
  2200. ac_old_val_w=`echo x $ac_old_val`
  2201. ac_new_val_w=`echo x $ac_new_val`
  2202. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2204. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2205. ac_cache_corrupted=:
  2206. else
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2208. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2209. eval $ac_var=\$ac_old_val
  2210. fi
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2212. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2214. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2215. fi;;
  2216. esac
  2217. # Pass precious variables to config.status.
  2218. if test "$ac_new_set" = set; then
  2219. case $ac_new_val in
  2220. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2221. *) ac_arg=$ac_var=$ac_new_val ;;
  2222. esac
  2223. case " $ac_configure_args " in
  2224. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2225. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2226. esac
  2227. fi
  2228. done
  2229. if $ac_cache_corrupted; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2233. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2234. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2235. fi
  2236. ## -------------------- ##
  2237. ## Main body of script. ##
  2238. ## -------------------- ##
  2239. ac_ext=c
  2240. ac_cpp='$CPP $CPPFLAGS'
  2241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2244. ac_config_headers="$ac_config_headers config.h"
  2245. # Default to --enable-multilib
  2246. # Check whether --enable-multilib was given.
  2247. if test "${enable_multilib+set}" = set; then :
  2248. enableval=$enable_multilib; case "$enableval" in
  2249. yes) multilib=yes ;;
  2250. no) multilib=no ;;
  2251. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2252. esac
  2253. else
  2254. multilib=yes
  2255. fi
  2256. # We may get other options which we leave undocumented:
  2257. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2258. # See config-ml.in if you want the gory details.
  2259. if test "$srcdir" = "."; then
  2260. if test "$with_target_subdir" != "."; then
  2261. multi_basedir="$srcdir/$with_multisrctop../.."
  2262. else
  2263. multi_basedir="$srcdir/$with_multisrctop.."
  2264. fi
  2265. else
  2266. multi_basedir="$srcdir/.."
  2267. fi
  2268. # Even if the default multilib is not a cross compilation,
  2269. # it may be that some of the other multilibs are.
  2270. if test $cross_compiling = no && test $multilib = yes \
  2271. && test "x${with_multisubdir}" != x ; then
  2272. cross_compiling=maybe
  2273. fi
  2274. ac_config_commands="$ac_config_commands default-1"
  2275. ac_aux_dir=
  2276. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2277. if test -f "$ac_dir/install-sh"; then
  2278. ac_aux_dir=$ac_dir
  2279. ac_install_sh="$ac_aux_dir/install-sh -c"
  2280. break
  2281. elif test -f "$ac_dir/install.sh"; then
  2282. ac_aux_dir=$ac_dir
  2283. ac_install_sh="$ac_aux_dir/install.sh -c"
  2284. break
  2285. elif test -f "$ac_dir/shtool"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/shtool install -c"
  2288. break
  2289. fi
  2290. done
  2291. if test -z "$ac_aux_dir"; then
  2292. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2293. fi
  2294. # These three variables are undocumented and unsupported,
  2295. # and are intended to be withdrawn in a future Autoconf release.
  2296. # They can cause serious problems if a builder's source tree is in a directory
  2297. # whose full name contains unusual characters.
  2298. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2299. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2300. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2301. # Make sure we can run config.sub.
  2302. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2303. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2305. $as_echo_n "checking build system type... " >&6; }
  2306. if ${ac_cv_build+:} false; then :
  2307. $as_echo_n "(cached) " >&6
  2308. else
  2309. ac_build_alias=$build_alias
  2310. test "x$ac_build_alias" = x &&
  2311. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2312. test "x$ac_build_alias" = x &&
  2313. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2314. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2315. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2316. fi
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2318. $as_echo "$ac_cv_build" >&6; }
  2319. case $ac_cv_build in
  2320. *-*-*) ;;
  2321. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2322. esac
  2323. build=$ac_cv_build
  2324. ac_save_IFS=$IFS; IFS='-'
  2325. set x $ac_cv_build
  2326. shift
  2327. build_cpu=$1
  2328. build_vendor=$2
  2329. shift; shift
  2330. # Remember, the first character of IFS is used to create $*,
  2331. # except with old shells:
  2332. build_os=$*
  2333. IFS=$ac_save_IFS
  2334. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2336. $as_echo_n "checking host system type... " >&6; }
  2337. if ${ac_cv_host+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test "x$host_alias" = x; then
  2341. ac_cv_host=$ac_cv_build
  2342. else
  2343. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2344. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2345. fi
  2346. fi
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2348. $as_echo "$ac_cv_host" >&6; }
  2349. case $ac_cv_host in
  2350. *-*-*) ;;
  2351. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2352. esac
  2353. host=$ac_cv_host
  2354. ac_save_IFS=$IFS; IFS='-'
  2355. set x $ac_cv_host
  2356. shift
  2357. host_cpu=$1
  2358. host_vendor=$2
  2359. shift; shift
  2360. # Remember, the first character of IFS is used to create $*,
  2361. # except with old shells:
  2362. host_os=$*
  2363. IFS=$ac_save_IFS
  2364. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2366. $as_echo_n "checking target system type... " >&6; }
  2367. if ${ac_cv_target+:} false; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test "x$target_alias" = x; then
  2371. ac_cv_target=$ac_cv_host
  2372. else
  2373. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2374. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2375. fi
  2376. fi
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2378. $as_echo "$ac_cv_target" >&6; }
  2379. case $ac_cv_target in
  2380. *-*-*) ;;
  2381. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2382. esac
  2383. target=$ac_cv_target
  2384. ac_save_IFS=$IFS; IFS='-'
  2385. set x $ac_cv_target
  2386. shift
  2387. target_cpu=$1
  2388. target_vendor=$2
  2389. shift; shift
  2390. # Remember, the first character of IFS is used to create $*,
  2391. # except with old shells:
  2392. target_os=$*
  2393. IFS=$ac_save_IFS
  2394. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2395. # The aliases save the names the user supplied, while $host etc.
  2396. # will get canonicalized.
  2397. test -n "$target_alias" &&
  2398. test "$program_prefix$program_suffix$program_transform_name" = \
  2399. NONENONEs,x,x, &&
  2400. program_prefix=${target_alias}-
  2401. # Expand $ac_aux_dir to an absolute path.
  2402. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2403. ac_ext=c
  2404. ac_cpp='$CPP $CPPFLAGS'
  2405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2408. if test -n "$ac_tool_prefix"; then
  2409. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2410. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if ${ac_cv_prog_CC+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$CC"; then
  2417. ac_cv_prog_CC="$CC" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2426. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. CC=$ac_cv_prog_CC
  2436. if test -n "$CC"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2438. $as_echo "$CC" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. fi
  2444. if test -z "$ac_cv_prog_CC"; then
  2445. ac_ct_CC=$CC
  2446. # Extract the first word of "gcc", so it can be a program name with args.
  2447. set dummy gcc; ac_word=$2
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2449. $as_echo_n "checking for $ac_word... " >&6; }
  2450. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. if test -n "$ac_ct_CC"; then
  2454. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2455. else
  2456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2457. for as_dir in $PATH
  2458. do
  2459. IFS=$as_save_IFS
  2460. test -z "$as_dir" && as_dir=.
  2461. for ac_exec_ext in '' $ac_executable_extensions; do
  2462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2463. ac_cv_prog_ac_ct_CC="gcc"
  2464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2465. break 2
  2466. fi
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. fi
  2471. fi
  2472. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2473. if test -n "$ac_ct_CC"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2475. $as_echo "$ac_ct_CC" >&6; }
  2476. else
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2478. $as_echo "no" >&6; }
  2479. fi
  2480. if test "x$ac_ct_CC" = x; then
  2481. CC=""
  2482. else
  2483. case $cross_compiling:$ac_tool_warned in
  2484. yes:)
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2486. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2487. ac_tool_warned=yes ;;
  2488. esac
  2489. CC=$ac_ct_CC
  2490. fi
  2491. else
  2492. CC="$ac_cv_prog_CC"
  2493. fi
  2494. if test -z "$CC"; then
  2495. if test -n "$ac_tool_prefix"; then
  2496. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2497. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2499. $as_echo_n "checking for $ac_word... " >&6; }
  2500. if ${ac_cv_prog_CC+:} false; then :
  2501. $as_echo_n "(cached) " >&6
  2502. else
  2503. if test -n "$CC"; then
  2504. ac_cv_prog_CC="$CC" # Let the user override the test.
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. for ac_exec_ext in '' $ac_executable_extensions; do
  2512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2513. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2515. break 2
  2516. fi
  2517. done
  2518. done
  2519. IFS=$as_save_IFS
  2520. fi
  2521. fi
  2522. CC=$ac_cv_prog_CC
  2523. if test -n "$CC"; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2525. $as_echo "$CC" >&6; }
  2526. else
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2528. $as_echo "no" >&6; }
  2529. fi
  2530. fi
  2531. fi
  2532. if test -z "$CC"; then
  2533. # Extract the first word of "cc", so it can be a program name with args.
  2534. set dummy cc; ac_word=$2
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2536. $as_echo_n "checking for $ac_word... " >&6; }
  2537. if ${ac_cv_prog_CC+:} false; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. if test -n "$CC"; then
  2541. ac_cv_prog_CC="$CC" # Let the user override the test.
  2542. else
  2543. ac_prog_rejected=no
  2544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545. for as_dir in $PATH
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. for ac_exec_ext in '' $ac_executable_extensions; do
  2550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2551. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2552. ac_prog_rejected=yes
  2553. continue
  2554. fi
  2555. ac_cv_prog_CC="cc"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. if test $ac_prog_rejected = yes; then
  2563. # We found a bogon in the path, so make sure we never use it.
  2564. set dummy $ac_cv_prog_CC
  2565. shift
  2566. if test $# != 0; then
  2567. # We chose a different compiler from the bogus one.
  2568. # However, it has the same basename, so the bogon will be chosen
  2569. # first if we set CC to just the basename; use the full file name.
  2570. shift
  2571. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2572. fi
  2573. fi
  2574. fi
  2575. fi
  2576. CC=$ac_cv_prog_CC
  2577. if test -n "$CC"; then
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2579. $as_echo "$CC" >&6; }
  2580. else
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2582. $as_echo "no" >&6; }
  2583. fi
  2584. fi
  2585. if test -z "$CC"; then
  2586. if test -n "$ac_tool_prefix"; then
  2587. for ac_prog in cl.exe
  2588. do
  2589. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2590. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2592. $as_echo_n "checking for $ac_word... " >&6; }
  2593. if ${ac_cv_prog_CC+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. if test -n "$CC"; then
  2597. ac_cv_prog_CC="$CC" # Let the user override the test.
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. for ac_exec_ext in '' $ac_executable_extensions; do
  2605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2606. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2608. break 2
  2609. fi
  2610. done
  2611. done
  2612. IFS=$as_save_IFS
  2613. fi
  2614. fi
  2615. CC=$ac_cv_prog_CC
  2616. if test -n "$CC"; then
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2618. $as_echo "$CC" >&6; }
  2619. else
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2621. $as_echo "no" >&6; }
  2622. fi
  2623. test -n "$CC" && break
  2624. done
  2625. fi
  2626. if test -z "$CC"; then
  2627. ac_ct_CC=$CC
  2628. for ac_prog in cl.exe
  2629. do
  2630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2631. set dummy $ac_prog; ac_word=$2
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2633. $as_echo_n "checking for $ac_word... " >&6; }
  2634. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2635. $as_echo_n "(cached) " >&6
  2636. else
  2637. if test -n "$ac_ct_CC"; then
  2638. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2639. else
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2647. ac_cv_prog_ac_ct_CC="$ac_prog"
  2648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. fi
  2655. fi
  2656. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2657. if test -n "$ac_ct_CC"; then
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2659. $as_echo "$ac_ct_CC" >&6; }
  2660. else
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. fi
  2664. test -n "$ac_ct_CC" && break
  2665. done
  2666. if test "x$ac_ct_CC" = x; then
  2667. CC=""
  2668. else
  2669. case $cross_compiling:$ac_tool_warned in
  2670. yes:)
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2672. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2673. ac_tool_warned=yes ;;
  2674. esac
  2675. CC=$ac_ct_CC
  2676. fi
  2677. fi
  2678. fi
  2679. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2680. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2681. as_fn_error $? "no acceptable C compiler found in \$PATH
  2682. See \`config.log' for more details" "$LINENO" 5; }
  2683. # Provide some information about the compiler.
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2685. set X $ac_compile
  2686. ac_compiler=$2
  2687. for ac_option in --version -v -V -qversion; do
  2688. { { ac_try="$ac_compiler $ac_option >&5"
  2689. case "(($ac_try" in
  2690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2691. *) ac_try_echo=$ac_try;;
  2692. esac
  2693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2694. $as_echo "$ac_try_echo"; } >&5
  2695. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2696. ac_status=$?
  2697. if test -s conftest.err; then
  2698. sed '10a\
  2699. ... rest of stderr output deleted ...
  2700. 10q' conftest.err >conftest.er1
  2701. cat conftest.er1 >&5
  2702. fi
  2703. rm -f conftest.er1 conftest.err
  2704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2705. test $ac_status = 0; }
  2706. done
  2707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2708. /* end confdefs.h. */
  2709. int
  2710. main ()
  2711. {
  2712. ;
  2713. return 0;
  2714. }
  2715. _ACEOF
  2716. ac_clean_files_save=$ac_clean_files
  2717. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2718. # Try to create an executable without -o first, disregard a.out.
  2719. # It will help us diagnose broken compilers, and finding out an intuition
  2720. # of exeext.
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2722. $as_echo_n "checking whether the C compiler works... " >&6; }
  2723. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2724. # The possible output files:
  2725. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2726. ac_rmfiles=
  2727. for ac_file in $ac_files
  2728. do
  2729. case $ac_file in
  2730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2731. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2732. esac
  2733. done
  2734. rm -f $ac_rmfiles
  2735. if { { ac_try="$ac_link_default"
  2736. case "(($ac_try" in
  2737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2738. *) ac_try_echo=$ac_try;;
  2739. esac
  2740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2741. $as_echo "$ac_try_echo"; } >&5
  2742. (eval "$ac_link_default") 2>&5
  2743. ac_status=$?
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2745. test $ac_status = 0; }; then :
  2746. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2747. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2748. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2749. # so that the user can short-circuit this test for compilers unknown to
  2750. # Autoconf.
  2751. for ac_file in $ac_files ''
  2752. do
  2753. test -f "$ac_file" || continue
  2754. case $ac_file in
  2755. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2756. ;;
  2757. [ab].out )
  2758. # We found the default executable, but exeext='' is most
  2759. # certainly right.
  2760. break;;
  2761. *.* )
  2762. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2763. then :; else
  2764. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2765. fi
  2766. # We set ac_cv_exeext here because the later test for it is not
  2767. # safe: cross compilers may not add the suffix if given an `-o'
  2768. # argument, so we may need to know it at that point already.
  2769. # Even if this section looks crufty: it has the advantage of
  2770. # actually working.
  2771. break;;
  2772. * )
  2773. break;;
  2774. esac
  2775. done
  2776. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2777. else
  2778. ac_file=''
  2779. fi
  2780. if test -z "$ac_file"; then :
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2782. $as_echo "no" >&6; }
  2783. $as_echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2786. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2787. as_fn_error 77 "C compiler cannot create executables
  2788. See \`config.log' for more details" "$LINENO" 5; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2791. $as_echo "yes" >&6; }
  2792. fi
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2794. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2796. $as_echo "$ac_file" >&6; }
  2797. ac_exeext=$ac_cv_exeext
  2798. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2799. ac_clean_files=$ac_clean_files_save
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2801. $as_echo_n "checking for suffix of executables... " >&6; }
  2802. if { { ac_try="$ac_link"
  2803. case "(($ac_try" in
  2804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2805. *) ac_try_echo=$ac_try;;
  2806. esac
  2807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2808. $as_echo "$ac_try_echo"; } >&5
  2809. (eval "$ac_link") 2>&5
  2810. ac_status=$?
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2812. test $ac_status = 0; }; then :
  2813. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2814. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2815. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2816. # `rm'.
  2817. for ac_file in conftest.exe conftest conftest.*; do
  2818. test -f "$ac_file" || continue
  2819. case $ac_file in
  2820. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2821. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2822. break;;
  2823. * ) break;;
  2824. esac
  2825. done
  2826. else
  2827. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2828. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2829. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2830. See \`config.log' for more details" "$LINENO" 5; }
  2831. fi
  2832. rm -f conftest conftest$ac_cv_exeext
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2834. $as_echo "$ac_cv_exeext" >&6; }
  2835. rm -f conftest.$ac_ext
  2836. EXEEXT=$ac_cv_exeext
  2837. ac_exeext=$EXEEXT
  2838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. #include <stdio.h>
  2841. int
  2842. main ()
  2843. {
  2844. FILE *f = fopen ("conftest.out", "w");
  2845. return ferror (f) || fclose (f) != 0;
  2846. ;
  2847. return 0;
  2848. }
  2849. _ACEOF
  2850. ac_clean_files="$ac_clean_files conftest.out"
  2851. # Check that the compiler produces executables we can run. If not, either
  2852. # the compiler is broken, or we cross compile.
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2854. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2855. if test "$cross_compiling" != yes; then
  2856. { { ac_try="$ac_link"
  2857. case "(($ac_try" in
  2858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2859. *) ac_try_echo=$ac_try;;
  2860. esac
  2861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2862. $as_echo "$ac_try_echo"; } >&5
  2863. (eval "$ac_link") 2>&5
  2864. ac_status=$?
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2866. test $ac_status = 0; }
  2867. if { ac_try='./conftest$ac_cv_exeext'
  2868. { { case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2873. $as_echo "$ac_try_echo"; } >&5
  2874. (eval "$ac_try") 2>&5
  2875. ac_status=$?
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2877. test $ac_status = 0; }; }; then
  2878. cross_compiling=no
  2879. else
  2880. if test "$cross_compiling" = maybe; then
  2881. cross_compiling=yes
  2882. else
  2883. { { $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 $? "cannot run C compiled programs.
  2886. If you meant to cross compile, use \`--host'.
  2887. See \`config.log' for more details" "$LINENO" 5; }
  2888. fi
  2889. fi
  2890. fi
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2892. $as_echo "$cross_compiling" >&6; }
  2893. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2894. ac_clean_files=$ac_clean_files_save
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2896. $as_echo_n "checking for suffix of object files... " >&6; }
  2897. if ${ac_cv_objext+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2901. /* end confdefs.h. */
  2902. int
  2903. main ()
  2904. {
  2905. ;
  2906. return 0;
  2907. }
  2908. _ACEOF
  2909. rm -f conftest.o conftest.obj
  2910. if { { ac_try="$ac_compile"
  2911. case "(($ac_try" in
  2912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2913. *) ac_try_echo=$ac_try;;
  2914. esac
  2915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2916. $as_echo "$ac_try_echo"; } >&5
  2917. (eval "$ac_compile") 2>&5
  2918. ac_status=$?
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2920. test $ac_status = 0; }; then :
  2921. for ac_file in conftest.o conftest.obj conftest.*; do
  2922. test -f "$ac_file" || continue;
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2925. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2926. break;;
  2927. esac
  2928. done
  2929. else
  2930. $as_echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2933. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2934. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2935. See \`config.log' for more details" "$LINENO" 5; }
  2936. fi
  2937. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2938. fi
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2940. $as_echo "$ac_cv_objext" >&6; }
  2941. OBJEXT=$ac_cv_objext
  2942. ac_objext=$OBJEXT
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2944. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2945. if ${ac_cv_c_compiler_gnu+:} false; then :
  2946. $as_echo_n "(cached) " >&6
  2947. else
  2948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2949. /* end confdefs.h. */
  2950. int
  2951. main ()
  2952. {
  2953. #ifndef __GNUC__
  2954. choke me
  2955. #endif
  2956. ;
  2957. return 0;
  2958. }
  2959. _ACEOF
  2960. if ac_fn_c_try_compile "$LINENO"; then :
  2961. ac_compiler_gnu=yes
  2962. else
  2963. ac_compiler_gnu=no
  2964. fi
  2965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2966. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2967. fi
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2969. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2970. if test $ac_compiler_gnu = yes; then
  2971. GCC=yes
  2972. else
  2973. GCC=
  2974. fi
  2975. ac_test_CFLAGS=${CFLAGS+set}
  2976. ac_save_CFLAGS=$CFLAGS
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2978. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2979. if ${ac_cv_prog_cc_g+:} false; then :
  2980. $as_echo_n "(cached) " >&6
  2981. else
  2982. ac_save_c_werror_flag=$ac_c_werror_flag
  2983. ac_c_werror_flag=yes
  2984. ac_cv_prog_cc_g=no
  2985. CFLAGS="-g"
  2986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2987. /* end confdefs.h. */
  2988. int
  2989. main ()
  2990. {
  2991. ;
  2992. return 0;
  2993. }
  2994. _ACEOF
  2995. if ac_fn_c_try_compile "$LINENO"; then :
  2996. ac_cv_prog_cc_g=yes
  2997. else
  2998. CFLAGS=""
  2999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3000. /* end confdefs.h. */
  3001. int
  3002. main ()
  3003. {
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. if ac_fn_c_try_compile "$LINENO"; then :
  3009. else
  3010. ac_c_werror_flag=$ac_save_c_werror_flag
  3011. CFLAGS="-g"
  3012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3013. /* end confdefs.h. */
  3014. int
  3015. main ()
  3016. {
  3017. ;
  3018. return 0;
  3019. }
  3020. _ACEOF
  3021. if ac_fn_c_try_compile "$LINENO"; then :
  3022. ac_cv_prog_cc_g=yes
  3023. fi
  3024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3025. fi
  3026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3027. fi
  3028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3029. ac_c_werror_flag=$ac_save_c_werror_flag
  3030. fi
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3032. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3033. if test "$ac_test_CFLAGS" = set; then
  3034. CFLAGS=$ac_save_CFLAGS
  3035. elif test $ac_cv_prog_cc_g = yes; then
  3036. if test "$GCC" = yes; then
  3037. CFLAGS="-g -O2"
  3038. else
  3039. CFLAGS="-g"
  3040. fi
  3041. else
  3042. if test "$GCC" = yes; then
  3043. CFLAGS="-O2"
  3044. else
  3045. CFLAGS=
  3046. fi
  3047. fi
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3049. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3050. if ${ac_cv_prog_cc_c89+:} false; then :
  3051. $as_echo_n "(cached) " >&6
  3052. else
  3053. ac_cv_prog_cc_c89=no
  3054. ac_save_CC=$CC
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. #include <stdarg.h>
  3058. #include <stdio.h>
  3059. struct stat;
  3060. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3061. struct buf { int x; };
  3062. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3063. static char *e (p, i)
  3064. char **p;
  3065. int i;
  3066. {
  3067. return p[i];
  3068. }
  3069. static char *f (char * (*g) (char **, int), char **p, ...)
  3070. {
  3071. char *s;
  3072. va_list v;
  3073. va_start (v,p);
  3074. s = g (p, va_arg (v,int));
  3075. va_end (v);
  3076. return s;
  3077. }
  3078. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3079. function prototypes and stuff, but not '\xHH' hex character constants.
  3080. These don't provoke an error unfortunately, instead are silently treated
  3081. as 'x'. The following induces an error, until -std is added to get
  3082. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3083. array size at least. It's necessary to write '\x00'==0 to get something
  3084. that's true only with -std. */
  3085. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3086. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3087. inside strings and character constants. */
  3088. #define FOO(x) 'x'
  3089. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3090. int test (int i, double x);
  3091. struct s1 {int (*f) (int a);};
  3092. struct s2 {int (*f) (double a);};
  3093. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3094. int argc;
  3095. char **argv;
  3096. int
  3097. main ()
  3098. {
  3099. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3105. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3106. do
  3107. CC="$ac_save_CC $ac_arg"
  3108. if ac_fn_c_try_compile "$LINENO"; then :
  3109. ac_cv_prog_cc_c89=$ac_arg
  3110. fi
  3111. rm -f core conftest.err conftest.$ac_objext
  3112. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3113. done
  3114. rm -f conftest.$ac_ext
  3115. CC=$ac_save_CC
  3116. fi
  3117. # AC_CACHE_VAL
  3118. case "x$ac_cv_prog_cc_c89" in
  3119. x)
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3121. $as_echo "none needed" >&6; } ;;
  3122. xno)
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3124. $as_echo "unsupported" >&6; } ;;
  3125. *)
  3126. CC="$CC $ac_cv_prog_cc_c89"
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3128. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3129. esac
  3130. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3131. fi
  3132. ac_ext=c
  3133. ac_cpp='$CPP $CPPFLAGS'
  3134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3137. ac_ext=c
  3138. ac_cpp='$CPP $CPPFLAGS'
  3139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3143. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3144. if ${am_cv_prog_cc_c_o+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. int
  3150. main ()
  3151. {
  3152. ;
  3153. return 0;
  3154. }
  3155. _ACEOF
  3156. # Make sure it works both with $CC and with simple cc.
  3157. # Following AC_PROG_CC_C_O, we do the test twice because some
  3158. # compilers refuse to overwrite an existing .o file with -o,
  3159. # though they will create one.
  3160. am_cv_prog_cc_c_o=yes
  3161. for am_i in 1 2; do
  3162. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3163. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3164. ac_status=$?
  3165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3166. (exit $ac_status); } \
  3167. && test -f conftest2.$ac_objext; then
  3168. : OK
  3169. else
  3170. am_cv_prog_cc_c_o=no
  3171. break
  3172. fi
  3173. done
  3174. rm -f core conftest*
  3175. unset am_i
  3176. fi
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3178. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3179. if test "$am_cv_prog_cc_c_o" != yes; then
  3180. # Losing compiler, so override with the script.
  3181. # FIXME: It is wrong to rewrite CC.
  3182. # But if we don't then we get into trouble of one sort or another.
  3183. # A longer-term fix would be to have automake use am__CC in this case,
  3184. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3185. CC="$am_aux_dir/compile $CC"
  3186. fi
  3187. ac_ext=c
  3188. ac_cpp='$CPP $CPPFLAGS'
  3189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3192. ac_ext=c
  3193. ac_cpp='$CPP $CPPFLAGS'
  3194. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3195. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3196. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3198. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3199. # On Suns, sometimes $CPP names a directory.
  3200. if test -n "$CPP" && test -d "$CPP"; then
  3201. CPP=
  3202. fi
  3203. if test -z "$CPP"; then
  3204. if ${ac_cv_prog_CPP+:} false; then :
  3205. $as_echo_n "(cached) " >&6
  3206. else
  3207. # Double quotes because CPP needs to be expanded
  3208. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3209. do
  3210. ac_preproc_ok=false
  3211. for ac_c_preproc_warn_flag in '' yes
  3212. do
  3213. # Use a header file that comes with gcc, so configuring glibc
  3214. # with a fresh cross-compiler works.
  3215. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3216. # <limits.h> exists even on freestanding compilers.
  3217. # On the NeXT, cc -E runs the code through the compiler's parser,
  3218. # not just through cpp. "Syntax error" is here to catch this case.
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. #ifdef __STDC__
  3222. # include <limits.h>
  3223. #else
  3224. # include <assert.h>
  3225. #endif
  3226. Syntax error
  3227. _ACEOF
  3228. if ac_fn_c_try_cpp "$LINENO"; then :
  3229. else
  3230. # Broken: fails on valid input.
  3231. continue
  3232. fi
  3233. rm -f conftest.err conftest.i conftest.$ac_ext
  3234. # OK, works on sane cases. Now check whether nonexistent headers
  3235. # can be detected and how.
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. #include <ac_nonexistent.h>
  3239. _ACEOF
  3240. if ac_fn_c_try_cpp "$LINENO"; then :
  3241. # Broken: success on invalid input.
  3242. continue
  3243. else
  3244. # Passes both tests.
  3245. ac_preproc_ok=:
  3246. break
  3247. fi
  3248. rm -f conftest.err conftest.i conftest.$ac_ext
  3249. done
  3250. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3251. rm -f conftest.i conftest.err conftest.$ac_ext
  3252. if $ac_preproc_ok; then :
  3253. break
  3254. fi
  3255. done
  3256. ac_cv_prog_CPP=$CPP
  3257. fi
  3258. CPP=$ac_cv_prog_CPP
  3259. else
  3260. ac_cv_prog_CPP=$CPP
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3263. $as_echo "$CPP" >&6; }
  3264. ac_preproc_ok=false
  3265. for ac_c_preproc_warn_flag in '' yes
  3266. do
  3267. # Use a header file that comes with gcc, so configuring glibc
  3268. # with a fresh cross-compiler works.
  3269. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3270. # <limits.h> exists even on freestanding compilers.
  3271. # On the NeXT, cc -E runs the code through the compiler's parser,
  3272. # not just through cpp. "Syntax error" is here to catch this case.
  3273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3274. /* end confdefs.h. */
  3275. #ifdef __STDC__
  3276. # include <limits.h>
  3277. #else
  3278. # include <assert.h>
  3279. #endif
  3280. Syntax error
  3281. _ACEOF
  3282. if ac_fn_c_try_cpp "$LINENO"; then :
  3283. else
  3284. # Broken: fails on valid input.
  3285. continue
  3286. fi
  3287. rm -f conftest.err conftest.i conftest.$ac_ext
  3288. # OK, works on sane cases. Now check whether nonexistent headers
  3289. # can be detected and how.
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. #include <ac_nonexistent.h>
  3293. _ACEOF
  3294. if ac_fn_c_try_cpp "$LINENO"; then :
  3295. # Broken: success on invalid input.
  3296. continue
  3297. else
  3298. # Passes both tests.
  3299. ac_preproc_ok=:
  3300. break
  3301. fi
  3302. rm -f conftest.err conftest.i conftest.$ac_ext
  3303. done
  3304. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3305. rm -f conftest.i conftest.err conftest.$ac_ext
  3306. if $ac_preproc_ok; then :
  3307. else
  3308. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3309. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3310. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3311. See \`config.log' for more details" "$LINENO" 5; }
  3312. fi
  3313. ac_ext=c
  3314. ac_cpp='$CPP $CPPFLAGS'
  3315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3319. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3320. if ${ac_cv_path_GREP+:} false; then :
  3321. $as_echo_n "(cached) " >&6
  3322. else
  3323. if test -z "$GREP"; then
  3324. ac_path_GREP_found=false
  3325. # Loop through the user's path and test for each of PROGNAME-LIST
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3328. do
  3329. IFS=$as_save_IFS
  3330. test -z "$as_dir" && as_dir=.
  3331. for ac_prog in grep ggrep; do
  3332. for ac_exec_ext in '' $ac_executable_extensions; do
  3333. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3334. as_fn_executable_p "$ac_path_GREP" || continue
  3335. # Check for GNU ac_path_GREP and select it if it is found.
  3336. # Check for GNU $ac_path_GREP
  3337. case `"$ac_path_GREP" --version 2>&1` in
  3338. *GNU*)
  3339. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3340. *)
  3341. ac_count=0
  3342. $as_echo_n 0123456789 >"conftest.in"
  3343. while :
  3344. do
  3345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3346. mv "conftest.tmp" "conftest.in"
  3347. cp "conftest.in" "conftest.nl"
  3348. $as_echo 'GREP' >> "conftest.nl"
  3349. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3351. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3352. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3353. # Best one so far, save it but keep looking for a better one
  3354. ac_cv_path_GREP="$ac_path_GREP"
  3355. ac_path_GREP_max=$ac_count
  3356. fi
  3357. # 10*(2^10) chars as input seems more than enough
  3358. test $ac_count -gt 10 && break
  3359. done
  3360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3361. esac
  3362. $ac_path_GREP_found && break 3
  3363. done
  3364. done
  3365. done
  3366. IFS=$as_save_IFS
  3367. if test -z "$ac_cv_path_GREP"; then
  3368. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3369. fi
  3370. else
  3371. ac_cv_path_GREP=$GREP
  3372. fi
  3373. fi
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3375. $as_echo "$ac_cv_path_GREP" >&6; }
  3376. GREP="$ac_cv_path_GREP"
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3378. $as_echo_n "checking for egrep... " >&6; }
  3379. if ${ac_cv_path_EGREP+:} false; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3383. then ac_cv_path_EGREP="$GREP -E"
  3384. else
  3385. if test -z "$EGREP"; then
  3386. ac_path_EGREP_found=false
  3387. # Loop through the user's path and test for each of PROGNAME-LIST
  3388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3389. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3390. do
  3391. IFS=$as_save_IFS
  3392. test -z "$as_dir" && as_dir=.
  3393. for ac_prog in egrep; do
  3394. for ac_exec_ext in '' $ac_executable_extensions; do
  3395. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3396. as_fn_executable_p "$ac_path_EGREP" || continue
  3397. # Check for GNU ac_path_EGREP and select it if it is found.
  3398. # Check for GNU $ac_path_EGREP
  3399. case `"$ac_path_EGREP" --version 2>&1` in
  3400. *GNU*)
  3401. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3402. *)
  3403. ac_count=0
  3404. $as_echo_n 0123456789 >"conftest.in"
  3405. while :
  3406. do
  3407. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3408. mv "conftest.tmp" "conftest.in"
  3409. cp "conftest.in" "conftest.nl"
  3410. $as_echo 'EGREP' >> "conftest.nl"
  3411. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3412. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3413. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3414. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3415. # Best one so far, save it but keep looking for a better one
  3416. ac_cv_path_EGREP="$ac_path_EGREP"
  3417. ac_path_EGREP_max=$ac_count
  3418. fi
  3419. # 10*(2^10) chars as input seems more than enough
  3420. test $ac_count -gt 10 && break
  3421. done
  3422. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3423. esac
  3424. $ac_path_EGREP_found && break 3
  3425. done
  3426. done
  3427. done
  3428. IFS=$as_save_IFS
  3429. if test -z "$ac_cv_path_EGREP"; then
  3430. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3431. fi
  3432. else
  3433. ac_cv_path_EGREP=$EGREP
  3434. fi
  3435. fi
  3436. fi
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3438. $as_echo "$ac_cv_path_EGREP" >&6; }
  3439. EGREP="$ac_cv_path_EGREP"
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3441. $as_echo_n "checking for ANSI C header files... " >&6; }
  3442. if ${ac_cv_header_stdc+:} false; then :
  3443. $as_echo_n "(cached) " >&6
  3444. else
  3445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3446. /* end confdefs.h. */
  3447. #include <stdlib.h>
  3448. #include <stdarg.h>
  3449. #include <string.h>
  3450. #include <float.h>
  3451. int
  3452. main ()
  3453. {
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. if ac_fn_c_try_compile "$LINENO"; then :
  3459. ac_cv_header_stdc=yes
  3460. else
  3461. ac_cv_header_stdc=no
  3462. fi
  3463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3464. if test $ac_cv_header_stdc = yes; then
  3465. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3467. /* end confdefs.h. */
  3468. #include <string.h>
  3469. _ACEOF
  3470. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3471. $EGREP "memchr" >/dev/null 2>&1; then :
  3472. else
  3473. ac_cv_header_stdc=no
  3474. fi
  3475. rm -f conftest*
  3476. fi
  3477. if test $ac_cv_header_stdc = yes; then
  3478. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3480. /* end confdefs.h. */
  3481. #include <stdlib.h>
  3482. _ACEOF
  3483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3484. $EGREP "free" >/dev/null 2>&1; then :
  3485. else
  3486. ac_cv_header_stdc=no
  3487. fi
  3488. rm -f conftest*
  3489. fi
  3490. if test $ac_cv_header_stdc = yes; then
  3491. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3492. if test "$cross_compiling" = yes; then :
  3493. :
  3494. else
  3495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3496. /* end confdefs.h. */
  3497. #include <ctype.h>
  3498. #include <stdlib.h>
  3499. #if ((' ' & 0x0FF) == 0x020)
  3500. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3501. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3502. #else
  3503. # define ISLOWER(c) \
  3504. (('a' <= (c) && (c) <= 'i') \
  3505. || ('j' <= (c) && (c) <= 'r') \
  3506. || ('s' <= (c) && (c) <= 'z'))
  3507. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3508. #endif
  3509. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3510. int
  3511. main ()
  3512. {
  3513. int i;
  3514. for (i = 0; i < 256; i++)
  3515. if (XOR (islower (i), ISLOWER (i))
  3516. || toupper (i) != TOUPPER (i))
  3517. return 2;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. if ac_fn_c_try_run "$LINENO"; then :
  3522. else
  3523. ac_cv_header_stdc=no
  3524. fi
  3525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3527. fi
  3528. fi
  3529. fi
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3531. $as_echo "$ac_cv_header_stdc" >&6; }
  3532. if test $ac_cv_header_stdc = yes; then
  3533. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3534. fi
  3535. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3536. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3537. inttypes.h stdint.h unistd.h
  3538. do :
  3539. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3540. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3541. "
  3542. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3543. cat >>confdefs.h <<_ACEOF
  3544. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3545. _ACEOF
  3546. fi
  3547. done
  3548. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3549. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3550. MINIX=yes
  3551. else
  3552. MINIX=
  3553. fi
  3554. if test "$MINIX" = yes; then
  3555. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3556. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3557. $as_echo "#define _MINIX 1" >>confdefs.h
  3558. fi
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3560. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3561. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3565. /* end confdefs.h. */
  3566. # define __EXTENSIONS__ 1
  3567. $ac_includes_default
  3568. int
  3569. main ()
  3570. {
  3571. ;
  3572. return 0;
  3573. }
  3574. _ACEOF
  3575. if ac_fn_c_try_compile "$LINENO"; then :
  3576. ac_cv_safe_to_define___extensions__=yes
  3577. else
  3578. ac_cv_safe_to_define___extensions__=no
  3579. fi
  3580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3583. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3584. test $ac_cv_safe_to_define___extensions__ = yes &&
  3585. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3586. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3587. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3588. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3589. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3590. target_alias=${target_alias-$target}
  3591. # 1.11.1: Require that version of automake.
  3592. # foreign: Don't require README, INSTALL, NEWS, etc.
  3593. # no-define: Don't define PACKAGE and VERSION.
  3594. # no-dependencies: Don't generate automatic dependencies.
  3595. # (because it breaks when using bootstrap-lean, since some of the
  3596. # headers are gone at "make install" time).
  3597. # subdir-objects: Build objects in sub-directories.
  3598. # -Wall: Issue all automake warnings.
  3599. # -Wno-portability: Don't warn about constructs supported by GNU make.
  3600. # (because GCC requires GNU make anyhow).
  3601. # -Wno-override: Overrides used in testsuite.
  3602. am__api_version='1.15'
  3603. # Find a good install program. We prefer a C program (faster),
  3604. # so one script is as good as another. But avoid the broken or
  3605. # incompatible versions:
  3606. # SysV /etc/install, /usr/sbin/install
  3607. # SunOS /usr/etc/install
  3608. # IRIX /sbin/install
  3609. # AIX /bin/install
  3610. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3611. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3612. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3613. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3614. # OS/2's system install, which has a completely different semantic
  3615. # ./install, which can be erroneously created by make from ./install.sh.
  3616. # Reject install programs that cannot install multiple files.
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3618. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3619. if test -z "$INSTALL"; then
  3620. if ${ac_cv_path_install+:} false; then :
  3621. $as_echo_n "(cached) " >&6
  3622. else
  3623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3624. for as_dir in $PATH
  3625. do
  3626. IFS=$as_save_IFS
  3627. test -z "$as_dir" && as_dir=.
  3628. # Account for people who put trailing slashes in PATH elements.
  3629. case $as_dir/ in #((
  3630. ./ | .// | /[cC]/* | \
  3631. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3632. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3633. /usr/ucb/* ) ;;
  3634. *)
  3635. # OSF1 and SCO ODT 3.0 have their own names for install.
  3636. # Don't use installbsd from OSF since it installs stuff as root
  3637. # by default.
  3638. for ac_prog in ginstall scoinst install; do
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3641. if test $ac_prog = install &&
  3642. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3643. # AIX install. It has an incompatible calling convention.
  3644. :
  3645. elif test $ac_prog = install &&
  3646. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3647. # program-specific install script used by HP pwplus--don't use.
  3648. :
  3649. else
  3650. rm -rf conftest.one conftest.two conftest.dir
  3651. echo one > conftest.one
  3652. echo two > conftest.two
  3653. mkdir conftest.dir
  3654. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3655. test -s conftest.one && test -s conftest.two &&
  3656. test -s conftest.dir/conftest.one &&
  3657. test -s conftest.dir/conftest.two
  3658. then
  3659. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3660. break 3
  3661. fi
  3662. fi
  3663. fi
  3664. done
  3665. done
  3666. ;;
  3667. esac
  3668. done
  3669. IFS=$as_save_IFS
  3670. rm -rf conftest.one conftest.two conftest.dir
  3671. fi
  3672. if test "${ac_cv_path_install+set}" = set; then
  3673. INSTALL=$ac_cv_path_install
  3674. else
  3675. # As a last resort, use the slow shell script. Don't cache a
  3676. # value for INSTALL within a source directory, because that will
  3677. # break other packages using the cache if that directory is
  3678. # removed, or if the value is a relative name.
  3679. INSTALL=$ac_install_sh
  3680. fi
  3681. fi
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3683. $as_echo "$INSTALL" >&6; }
  3684. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3685. # It thinks the first close brace ends the variable substitution.
  3686. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3687. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3688. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3690. $as_echo_n "checking whether build environment is sane... " >&6; }
  3691. # Reject unsafe characters in $srcdir or the absolute working directory
  3692. # name. Accept space and tab only in the latter.
  3693. am_lf='
  3694. '
  3695. case `pwd` in
  3696. *[\\\"\#\$\&\'\`$am_lf]*)
  3697. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3698. esac
  3699. case $srcdir in
  3700. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3701. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3702. esac
  3703. # Do 'set' in a subshell so we don't clobber the current shell's
  3704. # arguments. Must try -L first in case configure is actually a
  3705. # symlink; some systems play weird games with the mod time of symlinks
  3706. # (eg FreeBSD returns the mod time of the symlink's containing
  3707. # directory).
  3708. if (
  3709. am_has_slept=no
  3710. for am_try in 1 2; do
  3711. echo "timestamp, slept: $am_has_slept" > conftest.file
  3712. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3713. if test "$*" = "X"; then
  3714. # -L didn't work.
  3715. set X `ls -t "$srcdir/configure" conftest.file`
  3716. fi
  3717. if test "$*" != "X $srcdir/configure conftest.file" \
  3718. && test "$*" != "X conftest.file $srcdir/configure"; then
  3719. # If neither matched, then we have a broken ls. This can happen
  3720. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3721. # broken ls alias from the environment. This has actually
  3722. # happened. Such a system could not be considered "sane".
  3723. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3724. alias in your environment" "$LINENO" 5
  3725. fi
  3726. if test "$2" = conftest.file || test $am_try -eq 2; then
  3727. break
  3728. fi
  3729. # Just in case.
  3730. sleep 1
  3731. am_has_slept=yes
  3732. done
  3733. test "$2" = conftest.file
  3734. )
  3735. then
  3736. # Ok.
  3737. :
  3738. else
  3739. as_fn_error $? "newly created file is older than distributed files!
  3740. Check your system clock" "$LINENO" 5
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3743. $as_echo "yes" >&6; }
  3744. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3745. # generated files are strictly newer.
  3746. am_sleep_pid=
  3747. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3748. ( sleep 1 ) &
  3749. am_sleep_pid=$!
  3750. fi
  3751. rm -f conftest.file
  3752. test "$program_prefix" != NONE &&
  3753. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3754. # Use a double $ so make ignores it.
  3755. test "$program_suffix" != NONE &&
  3756. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3757. # Double any \ or $.
  3758. # By default was `s,x,x', remove it if useless.
  3759. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3760. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3761. if test x"${MISSING+set}" != xset; then
  3762. case $am_aux_dir in
  3763. *\ * | *\ *)
  3764. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3765. *)
  3766. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3767. esac
  3768. fi
  3769. # Use eval to expand $SHELL
  3770. if eval "$MISSING --is-lightweight"; then
  3771. am_missing_run="$MISSING "
  3772. else
  3773. am_missing_run=
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3775. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3776. fi
  3777. if test x"${install_sh+set}" != xset; then
  3778. case $am_aux_dir in
  3779. *\ * | *\ *)
  3780. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3781. *)
  3782. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3783. esac
  3784. fi
  3785. # Installed binaries are usually stripped using 'strip' when the user
  3786. # run "make install-strip". However 'strip' might not be the right
  3787. # tool to use in cross-compilation environments, therefore Automake
  3788. # will honor the 'STRIP' environment variable to overrule this program.
  3789. if test "$cross_compiling" != no; then
  3790. if test -n "$ac_tool_prefix"; then
  3791. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3792. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if ${ac_cv_prog_STRIP+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$STRIP"; then
  3799. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3808. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. STRIP=$ac_cv_prog_STRIP
  3818. if test -n "$STRIP"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3820. $as_echo "$STRIP" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. fi
  3826. if test -z "$ac_cv_prog_STRIP"; then
  3827. ac_ct_STRIP=$STRIP
  3828. # Extract the first word of "strip", so it can be a program name with args.
  3829. set dummy strip; ac_word=$2
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. $as_echo_n "checking for $ac_word... " >&6; }
  3832. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -n "$ac_ct_STRIP"; then
  3836. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3837. else
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3845. ac_cv_prog_ac_ct_STRIP="strip"
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847. break 2
  3848. fi
  3849. done
  3850. done
  3851. IFS=$as_save_IFS
  3852. fi
  3853. fi
  3854. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3855. if test -n "$ac_ct_STRIP"; then
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3857. $as_echo "$ac_ct_STRIP" >&6; }
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. fi
  3862. if test "x$ac_ct_STRIP" = x; then
  3863. STRIP=":"
  3864. else
  3865. case $cross_compiling:$ac_tool_warned in
  3866. yes:)
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3869. ac_tool_warned=yes ;;
  3870. esac
  3871. STRIP=$ac_ct_STRIP
  3872. fi
  3873. else
  3874. STRIP="$ac_cv_prog_STRIP"
  3875. fi
  3876. fi
  3877. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3879. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3880. if test -z "$MKDIR_P"; then
  3881. if ${ac_cv_path_mkdir+:} false; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3885. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3886. do
  3887. IFS=$as_save_IFS
  3888. test -z "$as_dir" && as_dir=.
  3889. for ac_prog in mkdir gmkdir; do
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3892. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3893. 'mkdir (GNU coreutils) '* | \
  3894. 'mkdir (coreutils) '* | \
  3895. 'mkdir (fileutils) '4.1*)
  3896. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3897. break 3;;
  3898. esac
  3899. done
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. test -d ./--version && rmdir ./--version
  3905. if test "${ac_cv_path_mkdir+set}" = set; then
  3906. MKDIR_P="$ac_cv_path_mkdir -p"
  3907. else
  3908. # As a last resort, use the slow shell script. Don't cache a
  3909. # value for MKDIR_P within a source directory, because that will
  3910. # break other packages using the cache if that directory is
  3911. # removed, or if the value is a relative name.
  3912. MKDIR_P="$ac_install_sh -d"
  3913. fi
  3914. fi
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3916. $as_echo "$MKDIR_P" >&6; }
  3917. for ac_prog in gawk mawk nawk awk
  3918. do
  3919. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3920. set dummy $ac_prog; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_AWK+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$AWK"; then
  3927. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3936. ac_cv_prog_AWK="$ac_prog"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. AWK=$ac_cv_prog_AWK
  3946. if test -n "$AWK"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3948. $as_echo "$AWK" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. test -n "$AWK" && break
  3954. done
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3956. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3957. set x ${MAKE-make}
  3958. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3959. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. cat >conftest.make <<\_ACEOF
  3963. SHELL = /bin/sh
  3964. all:
  3965. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3966. _ACEOF
  3967. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3968. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3969. *@@@%%%=?*=@@@%%%*)
  3970. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3971. *)
  3972. eval ac_cv_prog_make_${ac_make}_set=no;;
  3973. esac
  3974. rm -f conftest.make
  3975. fi
  3976. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3978. $as_echo "yes" >&6; }
  3979. SET_MAKE=
  3980. else
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3982. $as_echo "no" >&6; }
  3983. SET_MAKE="MAKE=${MAKE-make}"
  3984. fi
  3985. rm -rf .tst 2>/dev/null
  3986. mkdir .tst 2>/dev/null
  3987. if test -d .tst; then
  3988. am__leading_dot=.
  3989. else
  3990. am__leading_dot=_
  3991. fi
  3992. rmdir .tst 2>/dev/null
  3993. # Check whether --enable-silent-rules was given.
  3994. if test "${enable_silent_rules+set}" = set; then :
  3995. enableval=$enable_silent_rules;
  3996. fi
  3997. case $enable_silent_rules in # (((
  3998. yes) AM_DEFAULT_VERBOSITY=0;;
  3999. no) AM_DEFAULT_VERBOSITY=1;;
  4000. *) AM_DEFAULT_VERBOSITY=1;;
  4001. esac
  4002. am_make=${MAKE-make}
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4004. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4005. if ${am_cv_make_support_nested_variables+:} false; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. if $as_echo 'TRUE=$(BAR$(V))
  4009. BAR0=false
  4010. BAR1=true
  4011. V=1
  4012. am__doit:
  4013. @$(TRUE)
  4014. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4015. am_cv_make_support_nested_variables=yes
  4016. else
  4017. am_cv_make_support_nested_variables=no
  4018. fi
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4021. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4022. if test $am_cv_make_support_nested_variables = yes; then
  4023. AM_V='$(V)'
  4024. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4025. else
  4026. AM_V=$AM_DEFAULT_VERBOSITY
  4027. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4028. fi
  4029. AM_BACKSLASH='\'
  4030. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4031. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4032. # is not polluted with repeated "-I."
  4033. am__isrc=' -I$(srcdir)'
  4034. # test to see if srcdir already configured
  4035. if test -f $srcdir/config.status; then
  4036. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4037. fi
  4038. fi
  4039. # test whether we have cygpath
  4040. if test -z "$CYGPATH_W"; then
  4041. if (cygpath --version) >/dev/null 2>/dev/null; then
  4042. CYGPATH_W='cygpath -w'
  4043. else
  4044. CYGPATH_W=echo
  4045. fi
  4046. fi
  4047. # Define the identity of the package.
  4048. PACKAGE='libphobos'
  4049. VERSION='version-unused'
  4050. # Some tools Automake needs.
  4051. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4052. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4053. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4054. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4055. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4056. # For better backward compatibility. To be removed once Automake 1.9.x
  4057. # dies out for good. For more background, see:
  4058. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4059. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4060. mkdir_p='$(MKDIR_P)'
  4061. # We need awk for the "check" target (and possibly the TAP driver). The
  4062. # system "awk" is bad on some platforms.
  4063. # Always define AMTAR for backward compatibility. Yes, it's still used
  4064. # in the wild :-( We should find a proper way to deprecate it ...
  4065. AMTAR='$${TAR-tar}'
  4066. # We'll loop over all known methods to create a tar archive until one works.
  4067. _am_tools='gnutar pax cpio none'
  4068. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4069. # POSIX will say in a future version that running "rm -f" with no argument
  4070. # is OK; and we want to be able to make that assumption in our Makefile
  4071. # recipes. So use an aggressive probe to check that the usage we want is
  4072. # actually supported "in the wild" to an acceptable degree.
  4073. # See automake bug#10828.
  4074. # To make any issue more visible, cause the running configure to be aborted
  4075. # by default if the 'rm' program in use doesn't match our expectations; the
  4076. # user can still override this though.
  4077. if rm -f && rm -fr && rm -rf; then : OK; else
  4078. cat >&2 <<'END'
  4079. Oops!
  4080. Your 'rm' program seems unable to run without file operands specified
  4081. on the command line, even when the '-f' option is present. This is contrary
  4082. to the behaviour of most rm programs out there, and not conforming with
  4083. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4084. Please tell bug-automake@gnu.org about your system, including the value
  4085. of your $PATH and any error possibly output before this message. This
  4086. can help us improve future automake versions.
  4087. END
  4088. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4089. echo 'Configuration will proceed anyway, since you have set the' >&2
  4090. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4091. echo >&2
  4092. else
  4093. cat >&2 <<'END'
  4094. Aborting the configuration process, to ensure you take notice of the issue.
  4095. You can download and install GNU coreutils to get an 'rm' implementation
  4096. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4097. If you want to complete the configuration process using your problematic
  4098. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4099. to "yes", and re-run configure.
  4100. END
  4101. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4102. fi
  4103. fi
  4104. # By default we simply use the C compiler to build assembly code.
  4105. test "${CCAS+set}" = set || CCAS=$CC
  4106. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4107. ac_ext=c
  4108. ac_cpp='$CPP $CPPFLAGS'
  4109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4112. if test -n "$ac_tool_prefix"; then
  4113. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4114. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4116. $as_echo_n "checking for $ac_word... " >&6; }
  4117. if ${ac_cv_prog_CC+:} false; then :
  4118. $as_echo_n "(cached) " >&6
  4119. else
  4120. if test -n "$CC"; then
  4121. ac_cv_prog_CC="$CC" # Let the user override the test.
  4122. else
  4123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4124. for as_dir in $PATH
  4125. do
  4126. IFS=$as_save_IFS
  4127. test -z "$as_dir" && as_dir=.
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4130. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4132. break 2
  4133. fi
  4134. done
  4135. done
  4136. IFS=$as_save_IFS
  4137. fi
  4138. fi
  4139. CC=$ac_cv_prog_CC
  4140. if test -n "$CC"; then
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4142. $as_echo "$CC" >&6; }
  4143. else
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4145. $as_echo "no" >&6; }
  4146. fi
  4147. fi
  4148. if test -z "$ac_cv_prog_CC"; then
  4149. ac_ct_CC=$CC
  4150. # Extract the first word of "gcc", so it can be a program name with args.
  4151. set dummy gcc; ac_word=$2
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4153. $as_echo_n "checking for $ac_word... " >&6; }
  4154. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4155. $as_echo_n "(cached) " >&6
  4156. else
  4157. if test -n "$ac_ct_CC"; then
  4158. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4159. else
  4160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4161. for as_dir in $PATH
  4162. do
  4163. IFS=$as_save_IFS
  4164. test -z "$as_dir" && as_dir=.
  4165. for ac_exec_ext in '' $ac_executable_extensions; do
  4166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4167. ac_cv_prog_ac_ct_CC="gcc"
  4168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4169. break 2
  4170. fi
  4171. done
  4172. done
  4173. IFS=$as_save_IFS
  4174. fi
  4175. fi
  4176. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4177. if test -n "$ac_ct_CC"; then
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4179. $as_echo "$ac_ct_CC" >&6; }
  4180. else
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4182. $as_echo "no" >&6; }
  4183. fi
  4184. if test "x$ac_ct_CC" = x; then
  4185. CC=""
  4186. else
  4187. case $cross_compiling:$ac_tool_warned in
  4188. yes:)
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4191. ac_tool_warned=yes ;;
  4192. esac
  4193. CC=$ac_ct_CC
  4194. fi
  4195. else
  4196. CC="$ac_cv_prog_CC"
  4197. fi
  4198. if test -z "$CC"; then
  4199. if test -n "$ac_tool_prefix"; then
  4200. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4201. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4203. $as_echo_n "checking for $ac_word... " >&6; }
  4204. if ${ac_cv_prog_CC+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. if test -n "$CC"; then
  4208. ac_cv_prog_CC="$CC" # Let the user override the test.
  4209. else
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4217. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4219. break 2
  4220. fi
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. fi
  4225. fi
  4226. CC=$ac_cv_prog_CC
  4227. if test -n "$CC"; then
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4229. $as_echo "$CC" >&6; }
  4230. else
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4232. $as_echo "no" >&6; }
  4233. fi
  4234. fi
  4235. fi
  4236. if test -z "$CC"; then
  4237. # Extract the first word of "cc", so it can be a program name with args.
  4238. set dummy cc; ac_word=$2
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4240. $as_echo_n "checking for $ac_word... " >&6; }
  4241. if ${ac_cv_prog_CC+:} false; then :
  4242. $as_echo_n "(cached) " >&6
  4243. else
  4244. if test -n "$CC"; then
  4245. ac_cv_prog_CC="$CC" # Let the user override the test.
  4246. else
  4247. ac_prog_rejected=no
  4248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4249. for as_dir in $PATH
  4250. do
  4251. IFS=$as_save_IFS
  4252. test -z "$as_dir" && as_dir=.
  4253. for ac_exec_ext in '' $ac_executable_extensions; do
  4254. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4255. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4256. ac_prog_rejected=yes
  4257. continue
  4258. fi
  4259. ac_cv_prog_CC="cc"
  4260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4261. break 2
  4262. fi
  4263. done
  4264. done
  4265. IFS=$as_save_IFS
  4266. if test $ac_prog_rejected = yes; then
  4267. # We found a bogon in the path, so make sure we never use it.
  4268. set dummy $ac_cv_prog_CC
  4269. shift
  4270. if test $# != 0; then
  4271. # We chose a different compiler from the bogus one.
  4272. # However, it has the same basename, so the bogon will be chosen
  4273. # first if we set CC to just the basename; use the full file name.
  4274. shift
  4275. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4276. fi
  4277. fi
  4278. fi
  4279. fi
  4280. CC=$ac_cv_prog_CC
  4281. if test -n "$CC"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4283. $as_echo "$CC" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$CC"; then
  4290. if test -n "$ac_tool_prefix"; then
  4291. for ac_prog in cl.exe
  4292. do
  4293. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4294. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4296. $as_echo_n "checking for $ac_word... " >&6; }
  4297. if ${ac_cv_prog_CC+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if test -n "$CC"; then
  4301. ac_cv_prog_CC="$CC" # Let the user override the test.
  4302. else
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4310. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4312. break 2
  4313. fi
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. fi
  4318. fi
  4319. CC=$ac_cv_prog_CC
  4320. if test -n "$CC"; then
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4322. $as_echo "$CC" >&6; }
  4323. else
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4325. $as_echo "no" >&6; }
  4326. fi
  4327. test -n "$CC" && break
  4328. done
  4329. fi
  4330. if test -z "$CC"; then
  4331. ac_ct_CC=$CC
  4332. for ac_prog in cl.exe
  4333. do
  4334. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4335. set dummy $ac_prog; ac_word=$2
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4337. $as_echo_n "checking for $ac_word... " >&6; }
  4338. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. if test -n "$ac_ct_CC"; then
  4342. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4343. else
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_exec_ext in '' $ac_executable_extensions; do
  4350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4351. ac_cv_prog_ac_ct_CC="$ac_prog"
  4352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4353. break 2
  4354. fi
  4355. done
  4356. done
  4357. IFS=$as_save_IFS
  4358. fi
  4359. fi
  4360. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4361. if test -n "$ac_ct_CC"; then
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4363. $as_echo "$ac_ct_CC" >&6; }
  4364. else
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4366. $as_echo "no" >&6; }
  4367. fi
  4368. test -n "$ac_ct_CC" && break
  4369. done
  4370. if test "x$ac_ct_CC" = x; then
  4371. CC=""
  4372. else
  4373. case $cross_compiling:$ac_tool_warned in
  4374. yes:)
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4376. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4377. ac_tool_warned=yes ;;
  4378. esac
  4379. CC=$ac_ct_CC
  4380. fi
  4381. fi
  4382. fi
  4383. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4385. as_fn_error $? "no acceptable C compiler found in \$PATH
  4386. See \`config.log' for more details" "$LINENO" 5; }
  4387. # Provide some information about the compiler.
  4388. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4389. set X $ac_compile
  4390. ac_compiler=$2
  4391. for ac_option in --version -v -V -qversion; do
  4392. { { ac_try="$ac_compiler $ac_option >&5"
  4393. case "(($ac_try" in
  4394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4395. *) ac_try_echo=$ac_try;;
  4396. esac
  4397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4398. $as_echo "$ac_try_echo"; } >&5
  4399. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4400. ac_status=$?
  4401. if test -s conftest.err; then
  4402. sed '10a\
  4403. ... rest of stderr output deleted ...
  4404. 10q' conftest.err >conftest.er1
  4405. cat conftest.er1 >&5
  4406. fi
  4407. rm -f conftest.er1 conftest.err
  4408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4409. test $ac_status = 0; }
  4410. done
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4412. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4413. if ${ac_cv_c_compiler_gnu+:} false; then :
  4414. $as_echo_n "(cached) " >&6
  4415. else
  4416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4417. /* end confdefs.h. */
  4418. int
  4419. main ()
  4420. {
  4421. #ifndef __GNUC__
  4422. choke me
  4423. #endif
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_compile "$LINENO"; then :
  4429. ac_compiler_gnu=yes
  4430. else
  4431. ac_compiler_gnu=no
  4432. fi
  4433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4434. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4435. fi
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4437. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4438. if test $ac_compiler_gnu = yes; then
  4439. GCC=yes
  4440. else
  4441. GCC=
  4442. fi
  4443. ac_test_CFLAGS=${CFLAGS+set}
  4444. ac_save_CFLAGS=$CFLAGS
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4446. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4447. if ${ac_cv_prog_cc_g+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. ac_save_c_werror_flag=$ac_c_werror_flag
  4451. ac_c_werror_flag=yes
  4452. ac_cv_prog_cc_g=no
  4453. CFLAGS="-g"
  4454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4455. /* end confdefs.h. */
  4456. int
  4457. main ()
  4458. {
  4459. ;
  4460. return 0;
  4461. }
  4462. _ACEOF
  4463. if ac_fn_c_try_compile "$LINENO"; then :
  4464. ac_cv_prog_cc_g=yes
  4465. else
  4466. CFLAGS=""
  4467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h. */
  4469. int
  4470. main ()
  4471. {
  4472. ;
  4473. return 0;
  4474. }
  4475. _ACEOF
  4476. if ac_fn_c_try_compile "$LINENO"; then :
  4477. else
  4478. ac_c_werror_flag=$ac_save_c_werror_flag
  4479. CFLAGS="-g"
  4480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4481. /* end confdefs.h. */
  4482. int
  4483. main ()
  4484. {
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. if ac_fn_c_try_compile "$LINENO"; then :
  4490. ac_cv_prog_cc_g=yes
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4495. fi
  4496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4497. ac_c_werror_flag=$ac_save_c_werror_flag
  4498. fi
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4500. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4501. if test "$ac_test_CFLAGS" = set; then
  4502. CFLAGS=$ac_save_CFLAGS
  4503. elif test $ac_cv_prog_cc_g = yes; then
  4504. if test "$GCC" = yes; then
  4505. CFLAGS="-g -O2"
  4506. else
  4507. CFLAGS="-g"
  4508. fi
  4509. else
  4510. if test "$GCC" = yes; then
  4511. CFLAGS="-O2"
  4512. else
  4513. CFLAGS=
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4517. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4518. if ${ac_cv_prog_cc_c89+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. ac_cv_prog_cc_c89=no
  4522. ac_save_CC=$CC
  4523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4524. /* end confdefs.h. */
  4525. #include <stdarg.h>
  4526. #include <stdio.h>
  4527. struct stat;
  4528. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4529. struct buf { int x; };
  4530. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4531. static char *e (p, i)
  4532. char **p;
  4533. int i;
  4534. {
  4535. return p[i];
  4536. }
  4537. static char *f (char * (*g) (char **, int), char **p, ...)
  4538. {
  4539. char *s;
  4540. va_list v;
  4541. va_start (v,p);
  4542. s = g (p, va_arg (v,int));
  4543. va_end (v);
  4544. return s;
  4545. }
  4546. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4547. function prototypes and stuff, but not '\xHH' hex character constants.
  4548. These don't provoke an error unfortunately, instead are silently treated
  4549. as 'x'. The following induces an error, until -std is added to get
  4550. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4551. array size at least. It's necessary to write '\x00'==0 to get something
  4552. that's true only with -std. */
  4553. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4554. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4555. inside strings and character constants. */
  4556. #define FOO(x) 'x'
  4557. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4558. int test (int i, double x);
  4559. struct s1 {int (*f) (int a);};
  4560. struct s2 {int (*f) (double a);};
  4561. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4562. int argc;
  4563. char **argv;
  4564. int
  4565. main ()
  4566. {
  4567. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4568. ;
  4569. return 0;
  4570. }
  4571. _ACEOF
  4572. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4573. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4574. do
  4575. CC="$ac_save_CC $ac_arg"
  4576. if ac_fn_c_try_compile "$LINENO"; then :
  4577. ac_cv_prog_cc_c89=$ac_arg
  4578. fi
  4579. rm -f core conftest.err conftest.$ac_objext
  4580. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4581. done
  4582. rm -f conftest.$ac_ext
  4583. CC=$ac_save_CC
  4584. fi
  4585. # AC_CACHE_VAL
  4586. case "x$ac_cv_prog_cc_c89" in
  4587. x)
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4589. $as_echo "none needed" >&6; } ;;
  4590. xno)
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4592. $as_echo "unsupported" >&6; } ;;
  4593. *)
  4594. CC="$CC $ac_cv_prog_cc_c89"
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4596. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4597. esac
  4598. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4599. fi
  4600. ac_ext=c
  4601. ac_cpp='$CPP $CPPFLAGS'
  4602. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4603. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4604. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4605. ac_ext=c
  4606. ac_cpp='$CPP $CPPFLAGS'
  4607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4611. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4612. if ${am_cv_prog_cc_c_o+:} false; then :
  4613. $as_echo_n "(cached) " >&6
  4614. else
  4615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4616. /* end confdefs.h. */
  4617. int
  4618. main ()
  4619. {
  4620. ;
  4621. return 0;
  4622. }
  4623. _ACEOF
  4624. # Make sure it works both with $CC and with simple cc.
  4625. # Following AC_PROG_CC_C_O, we do the test twice because some
  4626. # compilers refuse to overwrite an existing .o file with -o,
  4627. # though they will create one.
  4628. am_cv_prog_cc_c_o=yes
  4629. for am_i in 1 2; do
  4630. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4631. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4632. ac_status=$?
  4633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4634. (exit $ac_status); } \
  4635. && test -f conftest2.$ac_objext; then
  4636. : OK
  4637. else
  4638. am_cv_prog_cc_c_o=no
  4639. break
  4640. fi
  4641. done
  4642. rm -f core conftest*
  4643. unset am_i
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4646. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4647. if test "$am_cv_prog_cc_c_o" != yes; then
  4648. # Losing compiler, so override with the script.
  4649. # FIXME: It is wrong to rewrite CC.
  4650. # But if we don't then we get into trouble of one sort or another.
  4651. # A longer-term fix would be to have automake use am__CC in this case,
  4652. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4653. CC="$am_aux_dir/compile $CC"
  4654. fi
  4655. ac_ext=c
  4656. ac_cpp='$CPP $CPPFLAGS'
  4657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4660. ac_ext=d
  4661. ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
  4662. ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4663. ac_compiler_gnu=yes
  4664. if test -n "$ac_tool_prefix"; then
  4665. # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
  4666. set dummy ${ac_tool_prefix}gdc; ac_word=$2
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4668. $as_echo_n "checking for $ac_word... " >&6; }
  4669. if ${ac_cv_prog_GDC+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. if test -n "$GDC"; then
  4673. ac_cv_prog_GDC="$GDC" # Let the user override the test.
  4674. else
  4675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4676. for as_dir in $PATH
  4677. do
  4678. IFS=$as_save_IFS
  4679. test -z "$as_dir" && as_dir=.
  4680. for ac_exec_ext in '' $ac_executable_extensions; do
  4681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4682. ac_cv_prog_GDC="${ac_tool_prefix}gdc"
  4683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4684. break 2
  4685. fi
  4686. done
  4687. done
  4688. IFS=$as_save_IFS
  4689. fi
  4690. fi
  4691. GDC=$ac_cv_prog_GDC
  4692. if test -n "$GDC"; then
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
  4694. $as_echo "$GDC" >&6; }
  4695. else
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4697. $as_echo "no" >&6; }
  4698. fi
  4699. fi
  4700. if test -z "$ac_cv_prog_GDC"; then
  4701. ac_ct_GDC=$GDC
  4702. # Extract the first word of "gdc", so it can be a program name with args.
  4703. set dummy gdc; ac_word=$2
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4705. $as_echo_n "checking for $ac_word... " >&6; }
  4706. if ${ac_cv_prog_ac_ct_GDC+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. if test -n "$ac_ct_GDC"; then
  4710. ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
  4711. else
  4712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4713. for as_dir in $PATH
  4714. do
  4715. IFS=$as_save_IFS
  4716. test -z "$as_dir" && as_dir=.
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4719. ac_cv_prog_ac_ct_GDC="gdc"
  4720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. done
  4725. IFS=$as_save_IFS
  4726. fi
  4727. fi
  4728. ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
  4729. if test -n "$ac_ct_GDC"; then
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
  4731. $as_echo "$ac_ct_GDC" >&6; }
  4732. else
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4734. $as_echo "no" >&6; }
  4735. fi
  4736. if test "x$ac_ct_GDC" = x; then
  4737. GDC=""
  4738. else
  4739. case $cross_compiling:$ac_tool_warned in
  4740. yes:)
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4743. ac_tool_warned=yes ;;
  4744. esac
  4745. GDC=$ac_ct_GDC
  4746. fi
  4747. else
  4748. GDC="$ac_cv_prog_GDC"
  4749. fi
  4750. if test -z "$GDC"; then
  4751. if test -n "$ac_tool_prefix"; then
  4752. # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
  4753. set dummy ${ac_tool_prefix}gdc; ac_word=$2
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4755. $as_echo_n "checking for $ac_word... " >&6; }
  4756. if ${ac_cv_prog_GDC+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. if test -n "$GDC"; then
  4760. ac_cv_prog_GDC="$GDC" # Let the user override the test.
  4761. else
  4762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4763. for as_dir in $PATH
  4764. do
  4765. IFS=$as_save_IFS
  4766. test -z "$as_dir" && as_dir=.
  4767. for ac_exec_ext in '' $ac_executable_extensions; do
  4768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4769. ac_cv_prog_GDC="$ac_tool_prefix}gdc"
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4771. break 2
  4772. fi
  4773. done
  4774. done
  4775. IFS=$as_save_IFS
  4776. fi
  4777. fi
  4778. GDC=$ac_cv_prog_GDC
  4779. if test -n "$GDC"; then
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
  4781. $as_echo "$GDC" >&6; }
  4782. else
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4784. $as_echo "no" >&6; }
  4785. fi
  4786. fi
  4787. fi
  4788. if test -z "$GDC"; then
  4789. # Extract the first word of "gdc", so it can be a program name with args.
  4790. set dummy gdc; ac_word=$2
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4792. $as_echo_n "checking for $ac_word... " >&6; }
  4793. if ${ac_cv_prog_GDC+:} false; then :
  4794. $as_echo_n "(cached) " >&6
  4795. else
  4796. if test -n "$GDC"; then
  4797. ac_cv_prog_GDC="$GDC" # Let the user override the test.
  4798. else
  4799. ac_prog_rejected=no
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4807. if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
  4808. ac_prog_rejected=yes
  4809. continue
  4810. fi
  4811. ac_cv_prog_GDC="gdc"
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4813. break 2
  4814. fi
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. if test $ac_prog_rejected = yes; then
  4819. # We found a bogon in the path, so make sure we never use it.
  4820. set dummy $ac_cv_prog_GDC
  4821. shift
  4822. if test $# != 0; then
  4823. # We chose a different compiler from the bogus one.
  4824. # However, it has the same basename, so the bogon will be chosen
  4825. # first if we set GDC to just the basename; use the full file name.
  4826. shift
  4827. ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
  4828. fi
  4829. fi
  4830. fi
  4831. fi
  4832. GDC=$ac_cv_prog_GDC
  4833. if test -n "$GDC"; then
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
  4835. $as_echo "$GDC" >&6; }
  4836. else
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4838. $as_echo "no" >&6; }
  4839. fi
  4840. fi
  4841. # Provide some information about the compiler.
  4842. $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
  4843. set X $ac_compile
  4844. ac_compiler=$2
  4845. { { ac_try="$ac_compiler --version >&5"
  4846. case "(($ac_try" in
  4847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4848. *) ac_try_echo=$ac_try;;
  4849. esac
  4850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4851. $as_echo "$ac_try_echo"; } >&5
  4852. (eval "$ac_compiler --version >&5") 2>conftest.err
  4853. ac_status=$?
  4854. if test -s conftest.err; then
  4855. sed '10a\
  4856. ... rest of stderr output deleted ...
  4857. 10q' conftest.err >conftest.er1
  4858. cat conftest.er1 >&5
  4859. fi
  4860. rm -f conftest.er1 conftest.err
  4861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4862. test $ac_status = 0; }
  4863. ac_ext=c
  4864. ac_cpp='$CPP $CPPFLAGS'
  4865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
  4869. $as_echo_n "checking for absolute libphobos source path... " >&6; }
  4870. if ${phobos_cv_abs_srcdir+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. phobos_cv_abs_srcdir=`cd $srcdir && pwd`
  4874. fi
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
  4876. $as_echo "$phobos_cv_abs_srcdir" >&6; }
  4877. if test -d "$phobos_cv_abs_srcdir"; then :
  4878. else
  4879. as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
  4880. fi
  4881. gdc_save_DFLAGS=$GDCFLAGS
  4882. GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
  4883. ac_ext=d
  4884. ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
  4885. ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4886. ac_compiler_gnu=yes
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
  4888. $as_echo_n "checking If $GDC can compile D sources... " >&6; }
  4889. cat > conftest.$ac_ext <<_ACEOF
  4890. module object;
  4891. extern(C) int main() {
  4892. return 0;
  4893. }
  4894. _ACEOF
  4895. if ac_fn_d_try_compile "$LINENO"; then :
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4897. $as_echo "yes" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. as_fn_error $? "can't compile D sources!" "$LINENO" 5
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4904. ac_ext=c
  4905. ac_cpp='$CPP $CPPFLAGS'
  4906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4909. GDCFLAGS=$gdc_save_DFLAGS
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4911. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4912. # Check whether --enable-maintainer-mode was given.
  4913. if test "${enable_maintainer_mode+set}" = set; then :
  4914. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4915. else
  4916. USE_MAINTAINER_MODE=no
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4919. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4920. if test $USE_MAINTAINER_MODE = yes; then
  4921. MAINTAINER_MODE_TRUE=
  4922. MAINTAINER_MODE_FALSE='#'
  4923. else
  4924. MAINTAINER_MODE_TRUE='#'
  4925. MAINTAINER_MODE_FALSE=
  4926. fi
  4927. MAINT=$MAINTAINER_MODE_TRUE
  4928. if test -n "$ac_tool_prefix"; then
  4929. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4930. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4932. $as_echo_n "checking for $ac_word... " >&6; }
  4933. if ${ac_cv_prog_RANLIB+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. if test -n "$RANLIB"; then
  4937. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4938. else
  4939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4940. for as_dir in $PATH
  4941. do
  4942. IFS=$as_save_IFS
  4943. test -z "$as_dir" && as_dir=.
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4946. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4948. break 2
  4949. fi
  4950. done
  4951. done
  4952. IFS=$as_save_IFS
  4953. fi
  4954. fi
  4955. RANLIB=$ac_cv_prog_RANLIB
  4956. if test -n "$RANLIB"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4958. $as_echo "$RANLIB" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4961. $as_echo "no" >&6; }
  4962. fi
  4963. fi
  4964. if test -z "$ac_cv_prog_RANLIB"; then
  4965. ac_ct_RANLIB=$RANLIB
  4966. # Extract the first word of "ranlib", so it can be a program name with args.
  4967. set dummy ranlib; ac_word=$2
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4969. $as_echo_n "checking for $ac_word... " >&6; }
  4970. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. if test -n "$ac_ct_RANLIB"; then
  4974. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4975. else
  4976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4977. for as_dir in $PATH
  4978. do
  4979. IFS=$as_save_IFS
  4980. test -z "$as_dir" && as_dir=.
  4981. for ac_exec_ext in '' $ac_executable_extensions; do
  4982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4983. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4985. break 2
  4986. fi
  4987. done
  4988. done
  4989. IFS=$as_save_IFS
  4990. fi
  4991. fi
  4992. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4993. if test -n "$ac_ct_RANLIB"; then
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4995. $as_echo "$ac_ct_RANLIB" >&6; }
  4996. else
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4998. $as_echo "no" >&6; }
  4999. fi
  5000. if test "x$ac_ct_RANLIB" = x; then
  5001. RANLIB=":"
  5002. else
  5003. case $cross_compiling:$ac_tool_warned in
  5004. yes:)
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5007. ac_tool_warned=yes ;;
  5008. esac
  5009. RANLIB=$ac_ct_RANLIB
  5010. fi
  5011. else
  5012. RANLIB="$ac_cv_prog_RANLIB"
  5013. fi
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5015. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5016. set x ${MAKE-make}
  5017. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5018. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. cat >conftest.make <<\_ACEOF
  5022. SHELL = /bin/sh
  5023. all:
  5024. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5025. _ACEOF
  5026. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5027. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5028. *@@@%%%=?*=@@@%%%*)
  5029. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5030. *)
  5031. eval ac_cv_prog_make_${ac_make}_set=no;;
  5032. esac
  5033. rm -f conftest.make
  5034. fi
  5035. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5037. $as_echo "yes" >&6; }
  5038. SET_MAKE=
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5041. $as_echo "no" >&6; }
  5042. SET_MAKE="MAKE=${MAKE-make}"
  5043. fi
  5044. # Add CET specific flags if CET is enabled
  5045. # Check whether --enable-cet was given.
  5046. if test "${enable_cet+set}" = set; then :
  5047. enableval=$enable_cet;
  5048. case "$enableval" in
  5049. yes|no|auto) ;;
  5050. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  5051. esac
  5052. else
  5053. enable_cet=auto
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  5056. $as_echo_n "checking for CET support... " >&6; }
  5057. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  5058. case "$host" in
  5059. i[34567]86-*-linux* | x86_64-*-linux*)
  5060. case "$enable_cet" in
  5061. auto)
  5062. # Check if target supports multi-byte NOPs
  5063. # and if compiler and assembler support CET insn.
  5064. cet_save_CFLAGS="$CFLAGS"
  5065. CFLAGS="$CFLAGS -fcf-protection"
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int
  5069. main ()
  5070. {
  5071. #if !defined(__SSE2__)
  5072. #error target does not support multi-byte NOPs
  5073. #else
  5074. asm ("setssbsy");
  5075. #endif
  5076. ;
  5077. return 0;
  5078. }
  5079. _ACEOF
  5080. if ac_fn_c_try_compile "$LINENO"; then :
  5081. enable_cet=yes
  5082. else
  5083. enable_cet=no
  5084. fi
  5085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5086. CFLAGS="$cet_save_CFLAGS"
  5087. ;;
  5088. yes)
  5089. # Check if assembler supports CET.
  5090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5091. /* end confdefs.h. */
  5092. int
  5093. main ()
  5094. {
  5095. asm ("setssbsy");
  5096. ;
  5097. return 0;
  5098. }
  5099. _ACEOF
  5100. if ac_fn_c_try_compile "$LINENO"; then :
  5101. else
  5102. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  5103. fi
  5104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5105. ;;
  5106. esac
  5107. ;;
  5108. *)
  5109. enable_cet=no
  5110. ;;
  5111. esac
  5112. if test x$enable_cet = xyes; then
  5113. CET_FLAGS="-fcf-protection -mshstk"
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5115. $as_echo "yes" >&6; }
  5116. else
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5118. $as_echo "no" >&6; }
  5119. fi
  5120. # To ensure that runtime code for CET is compiled in, add in D version flags.
  5121. if test x$enable_cet = xyes; then :
  5122. CET_DFLAGS="$CET_FLAGS -fversion=CET"
  5123. DCFG_ENABLE_CET=true
  5124. else
  5125. CET_DFLAGS=
  5126. DCFG_ENABLE_CET=false
  5127. fi
  5128. # This should be inherited in the recursive make, but ensure it is defined.
  5129. test "$AR" || AR=ar
  5130. CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
  5131. # Enable libtool
  5132. case `pwd` in
  5133. *\ * | *\ *)
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5135. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5136. esac
  5137. macro_version='2.2.7a'
  5138. macro_revision='1.3134'
  5139. ltmain="$ac_aux_dir/ltmain.sh"
  5140. # Backslashify metacharacters that are still active within
  5141. # double-quoted strings.
  5142. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5143. # Same as above, but do not quote variable references.
  5144. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5145. # Sed substitution to delay expansion of an escaped shell variable in a
  5146. # double_quote_subst'ed string.
  5147. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5148. # Sed substitution to delay expansion of an escaped single quote.
  5149. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5150. # Sed substitution to avoid accidental globbing in evaled expressions
  5151. no_glob_subst='s/\*/\\\*/g'
  5152. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5153. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5154. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5156. $as_echo_n "checking how to print strings... " >&6; }
  5157. # Test print first, because it will be a builtin if present.
  5158. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5159. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5160. ECHO='print -r --'
  5161. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5162. ECHO='printf %s\n'
  5163. else
  5164. # Use this function as a fallback that always works.
  5165. func_fallback_echo ()
  5166. {
  5167. eval 'cat <<_LTECHO_EOF
  5168. $1
  5169. _LTECHO_EOF'
  5170. }
  5171. ECHO='func_fallback_echo'
  5172. fi
  5173. # func_echo_all arg...
  5174. # Invoke $ECHO with all args, space-separated.
  5175. func_echo_all ()
  5176. {
  5177. $ECHO ""
  5178. }
  5179. case "$ECHO" in
  5180. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5181. $as_echo "printf" >&6; } ;;
  5182. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5183. $as_echo "print -r" >&6; } ;;
  5184. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5185. $as_echo "cat" >&6; } ;;
  5186. esac
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5188. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5189. if ${ac_cv_path_SED+:} false; then :
  5190. $as_echo_n "(cached) " >&6
  5191. else
  5192. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5193. for ac_i in 1 2 3 4 5 6 7; do
  5194. ac_script="$ac_script$as_nl$ac_script"
  5195. done
  5196. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5197. { ac_script=; unset ac_script;}
  5198. if test -z "$SED"; then
  5199. ac_path_SED_found=false
  5200. # Loop through the user's path and test for each of PROGNAME-LIST
  5201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5202. for as_dir in $PATH
  5203. do
  5204. IFS=$as_save_IFS
  5205. test -z "$as_dir" && as_dir=.
  5206. for ac_prog in sed gsed; do
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5209. as_fn_executable_p "$ac_path_SED" || continue
  5210. # Check for GNU ac_path_SED and select it if it is found.
  5211. # Check for GNU $ac_path_SED
  5212. case `"$ac_path_SED" --version 2>&1` in
  5213. *GNU*)
  5214. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5215. *)
  5216. ac_count=0
  5217. $as_echo_n 0123456789 >"conftest.in"
  5218. while :
  5219. do
  5220. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5221. mv "conftest.tmp" "conftest.in"
  5222. cp "conftest.in" "conftest.nl"
  5223. $as_echo '' >> "conftest.nl"
  5224. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5225. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5226. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5227. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5228. # Best one so far, save it but keep looking for a better one
  5229. ac_cv_path_SED="$ac_path_SED"
  5230. ac_path_SED_max=$ac_count
  5231. fi
  5232. # 10*(2^10) chars as input seems more than enough
  5233. test $ac_count -gt 10 && break
  5234. done
  5235. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5236. esac
  5237. $ac_path_SED_found && break 3
  5238. done
  5239. done
  5240. done
  5241. IFS=$as_save_IFS
  5242. if test -z "$ac_cv_path_SED"; then
  5243. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5244. fi
  5245. else
  5246. ac_cv_path_SED=$SED
  5247. fi
  5248. fi
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5250. $as_echo "$ac_cv_path_SED" >&6; }
  5251. SED="$ac_cv_path_SED"
  5252. rm -f conftest.sed
  5253. test -z "$SED" && SED=sed
  5254. Xsed="$SED -e 1s/^X//"
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5256. $as_echo_n "checking for fgrep... " >&6; }
  5257. if ${ac_cv_path_FGREP+:} false; then :
  5258. $as_echo_n "(cached) " >&6
  5259. else
  5260. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5261. then ac_cv_path_FGREP="$GREP -F"
  5262. else
  5263. if test -z "$FGREP"; then
  5264. ac_path_FGREP_found=false
  5265. # Loop through the user's path and test for each of PROGNAME-LIST
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_prog in fgrep; do
  5272. for ac_exec_ext in '' $ac_executable_extensions; do
  5273. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5274. as_fn_executable_p "$ac_path_FGREP" || continue
  5275. # Check for GNU ac_path_FGREP and select it if it is found.
  5276. # Check for GNU $ac_path_FGREP
  5277. case `"$ac_path_FGREP" --version 2>&1` in
  5278. *GNU*)
  5279. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5280. *)
  5281. ac_count=0
  5282. $as_echo_n 0123456789 >"conftest.in"
  5283. while :
  5284. do
  5285. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5286. mv "conftest.tmp" "conftest.in"
  5287. cp "conftest.in" "conftest.nl"
  5288. $as_echo 'FGREP' >> "conftest.nl"
  5289. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5290. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5291. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5292. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5293. # Best one so far, save it but keep looking for a better one
  5294. ac_cv_path_FGREP="$ac_path_FGREP"
  5295. ac_path_FGREP_max=$ac_count
  5296. fi
  5297. # 10*(2^10) chars as input seems more than enough
  5298. test $ac_count -gt 10 && break
  5299. done
  5300. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5301. esac
  5302. $ac_path_FGREP_found && break 3
  5303. done
  5304. done
  5305. done
  5306. IFS=$as_save_IFS
  5307. if test -z "$ac_cv_path_FGREP"; then
  5308. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5309. fi
  5310. else
  5311. ac_cv_path_FGREP=$FGREP
  5312. fi
  5313. fi
  5314. fi
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5316. $as_echo "$ac_cv_path_FGREP" >&6; }
  5317. FGREP="$ac_cv_path_FGREP"
  5318. test -z "$GREP" && GREP=grep
  5319. # Check whether --with-gnu-ld was given.
  5320. if test "${with_gnu_ld+set}" = set; then :
  5321. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5322. else
  5323. with_gnu_ld=no
  5324. fi
  5325. ac_prog=ld
  5326. if test "$GCC" = yes; then
  5327. # Check if gcc -print-prog-name=ld gives a path.
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5329. $as_echo_n "checking for ld used by $CC... " >&6; }
  5330. case $host in
  5331. *-*-mingw*)
  5332. # gcc leaves a trailing carriage return which upsets mingw
  5333. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5334. *)
  5335. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5336. esac
  5337. case $ac_prog in
  5338. # Accept absolute paths.
  5339. [\\/]* | ?:[\\/]*)
  5340. re_direlt='/[^/][^/]*/\.\./'
  5341. # Canonicalize the pathname of ld
  5342. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5343. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5344. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5345. done
  5346. test -z "$LD" && LD="$ac_prog"
  5347. ;;
  5348. "")
  5349. # If it fails, then pretend we aren't using GCC.
  5350. ac_prog=ld
  5351. ;;
  5352. *)
  5353. # If it is relative, then search for the first ld in PATH.
  5354. with_gnu_ld=unknown
  5355. ;;
  5356. esac
  5357. elif test "$with_gnu_ld" = yes; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5359. $as_echo_n "checking for GNU ld... " >&6; }
  5360. else
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5362. $as_echo_n "checking for non-GNU ld... " >&6; }
  5363. fi
  5364. if ${lt_cv_path_LD+:} false; then :
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. if test -z "$LD"; then
  5368. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5369. for ac_dir in $PATH; do
  5370. IFS="$lt_save_ifs"
  5371. test -z "$ac_dir" && ac_dir=.
  5372. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5373. lt_cv_path_LD="$ac_dir/$ac_prog"
  5374. # Check to see if the program is GNU ld. I'd rather use --version,
  5375. # but apparently some variants of GNU ld only accept -v.
  5376. # Break only if it was the GNU/non-GNU ld that we prefer.
  5377. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5378. *GNU* | *'with BFD'*)
  5379. test "$with_gnu_ld" != no && break
  5380. ;;
  5381. *)
  5382. test "$with_gnu_ld" != yes && break
  5383. ;;
  5384. esac
  5385. fi
  5386. done
  5387. IFS="$lt_save_ifs"
  5388. else
  5389. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5390. fi
  5391. fi
  5392. LD="$lt_cv_path_LD"
  5393. if test -n "$LD"; then
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5395. $as_echo "$LD" >&6; }
  5396. else
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5398. $as_echo "no" >&6; }
  5399. fi
  5400. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5402. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5403. if ${lt_cv_prog_gnu_ld+:} false; then :
  5404. $as_echo_n "(cached) " >&6
  5405. else
  5406. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5407. case `$LD -v 2>&1 </dev/null` in
  5408. *GNU* | *'with BFD'*)
  5409. lt_cv_prog_gnu_ld=yes
  5410. ;;
  5411. *)
  5412. lt_cv_prog_gnu_ld=no
  5413. ;;
  5414. esac
  5415. fi
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5417. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5418. with_gnu_ld=$lt_cv_prog_gnu_ld
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5420. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5421. if ${lt_cv_path_NM+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. if test -n "$NM"; then
  5425. # Let the user override the test.
  5426. lt_cv_path_NM="$NM"
  5427. else
  5428. lt_nm_to_check="${ac_tool_prefix}nm"
  5429. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5430. lt_nm_to_check="$lt_nm_to_check nm"
  5431. fi
  5432. for lt_tmp_nm in $lt_nm_to_check; do
  5433. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5434. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5435. IFS="$lt_save_ifs"
  5436. test -z "$ac_dir" && ac_dir=.
  5437. tmp_nm="$ac_dir/$lt_tmp_nm"
  5438. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5439. # Check to see if the nm accepts a BSD-compat flag.
  5440. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5441. # nm: unknown option "B" ignored
  5442. # Tru64's nm complains that /dev/null is an invalid object file
  5443. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5444. */dev/null* | *'Invalid file or object type'*)
  5445. lt_cv_path_NM="$tmp_nm -B"
  5446. break
  5447. ;;
  5448. *)
  5449. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5450. */dev/null*)
  5451. lt_cv_path_NM="$tmp_nm -p"
  5452. break
  5453. ;;
  5454. *)
  5455. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5456. continue # so that we can try to find one that supports BSD flags
  5457. ;;
  5458. esac
  5459. ;;
  5460. esac
  5461. fi
  5462. done
  5463. IFS="$lt_save_ifs"
  5464. done
  5465. : ${lt_cv_path_NM=no}
  5466. fi
  5467. fi
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5469. $as_echo "$lt_cv_path_NM" >&6; }
  5470. if test "$lt_cv_path_NM" != "no"; then
  5471. NM="$lt_cv_path_NM"
  5472. else
  5473. # Didn't find any BSD compatible name lister, look for dumpbin.
  5474. if test -n "$DUMPBIN"; then :
  5475. # Let the user override the test.
  5476. else
  5477. if test -n "$ac_tool_prefix"; then
  5478. for ac_prog in dumpbin "link -dump"
  5479. do
  5480. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5481. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5483. $as_echo_n "checking for $ac_word... " >&6; }
  5484. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5485. $as_echo_n "(cached) " >&6
  5486. else
  5487. if test -n "$DUMPBIN"; then
  5488. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5489. else
  5490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5491. for as_dir in $PATH
  5492. do
  5493. IFS=$as_save_IFS
  5494. test -z "$as_dir" && as_dir=.
  5495. for ac_exec_ext in '' $ac_executable_extensions; do
  5496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5497. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5499. break 2
  5500. fi
  5501. done
  5502. done
  5503. IFS=$as_save_IFS
  5504. fi
  5505. fi
  5506. DUMPBIN=$ac_cv_prog_DUMPBIN
  5507. if test -n "$DUMPBIN"; then
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5509. $as_echo "$DUMPBIN" >&6; }
  5510. else
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5512. $as_echo "no" >&6; }
  5513. fi
  5514. test -n "$DUMPBIN" && break
  5515. done
  5516. fi
  5517. if test -z "$DUMPBIN"; then
  5518. ac_ct_DUMPBIN=$DUMPBIN
  5519. for ac_prog in dumpbin "link -dump"
  5520. do
  5521. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5522. set dummy $ac_prog; ac_word=$2
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5524. $as_echo_n "checking for $ac_word... " >&6; }
  5525. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5526. $as_echo_n "(cached) " >&6
  5527. else
  5528. if test -n "$ac_ct_DUMPBIN"; then
  5529. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. test -z "$as_dir" && as_dir=.
  5536. for ac_exec_ext in '' $ac_executable_extensions; do
  5537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5538. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5540. break 2
  5541. fi
  5542. done
  5543. done
  5544. IFS=$as_save_IFS
  5545. fi
  5546. fi
  5547. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5548. if test -n "$ac_ct_DUMPBIN"; then
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5550. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5551. else
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5553. $as_echo "no" >&6; }
  5554. fi
  5555. test -n "$ac_ct_DUMPBIN" && break
  5556. done
  5557. if test "x$ac_ct_DUMPBIN" = x; then
  5558. DUMPBIN=":"
  5559. else
  5560. case $cross_compiling:$ac_tool_warned in
  5561. yes:)
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5564. ac_tool_warned=yes ;;
  5565. esac
  5566. DUMPBIN=$ac_ct_DUMPBIN
  5567. fi
  5568. fi
  5569. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5570. *COFF*)
  5571. DUMPBIN="$DUMPBIN -symbols"
  5572. ;;
  5573. *)
  5574. DUMPBIN=:
  5575. ;;
  5576. esac
  5577. fi
  5578. if test "$DUMPBIN" != ":"; then
  5579. NM="$DUMPBIN"
  5580. fi
  5581. fi
  5582. test -z "$NM" && NM=nm
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5584. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5585. if ${lt_cv_nm_interface+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. lt_cv_nm_interface="BSD nm"
  5589. echo "int some_variable = 0;" > conftest.$ac_ext
  5590. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5591. (eval "$ac_compile" 2>conftest.err)
  5592. cat conftest.err >&5
  5593. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5594. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5595. cat conftest.err >&5
  5596. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5597. cat conftest.out >&5
  5598. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5599. lt_cv_nm_interface="MS dumpbin"
  5600. fi
  5601. rm -f conftest*
  5602. fi
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5604. $as_echo "$lt_cv_nm_interface" >&6; }
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5606. $as_echo_n "checking whether ln -s works... " >&6; }
  5607. LN_S=$as_ln_s
  5608. if test "$LN_S" = "ln -s"; then
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5610. $as_echo "yes" >&6; }
  5611. else
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5613. $as_echo "no, using $LN_S" >&6; }
  5614. fi
  5615. # find the maximum length of command line arguments
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5617. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5618. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. i=0
  5622. teststring="ABCD"
  5623. case $build_os in
  5624. msdosdjgpp*)
  5625. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5626. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5627. # during glob expansion). Even if it were fixed, the result of this
  5628. # check would be larger than it should be.
  5629. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5630. ;;
  5631. gnu*)
  5632. # Under GNU Hurd, this test is not required because there is
  5633. # no limit to the length of command line arguments.
  5634. # Libtool will interpret -1 as no limit whatsoever
  5635. lt_cv_sys_max_cmd_len=-1;
  5636. ;;
  5637. cygwin* | mingw* | cegcc*)
  5638. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5639. # about 5 minutes as the teststring grows exponentially.
  5640. # Worse, since 9x/ME are not pre-emptively multitasking,
  5641. # you end up with a "frozen" computer, even though with patience
  5642. # the test eventually succeeds (with a max line length of 256k).
  5643. # Instead, let's just punt: use the minimum linelength reported by
  5644. # all of the supported platforms: 8192 (on NT/2K/XP).
  5645. lt_cv_sys_max_cmd_len=8192;
  5646. ;;
  5647. mint*)
  5648. # On MiNT this can take a long time and run out of memory.
  5649. lt_cv_sys_max_cmd_len=8192;
  5650. ;;
  5651. amigaos*)
  5652. # On AmigaOS with pdksh, this test takes hours, literally.
  5653. # So we just punt and use a minimum line length of 8192.
  5654. lt_cv_sys_max_cmd_len=8192;
  5655. ;;
  5656. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5657. # This has been around since 386BSD, at least. Likely further.
  5658. if test -x /sbin/sysctl; then
  5659. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5660. elif test -x /usr/sbin/sysctl; then
  5661. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5662. else
  5663. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5664. fi
  5665. # And add a safety zone
  5666. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5667. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5668. ;;
  5669. interix*)
  5670. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5671. lt_cv_sys_max_cmd_len=196608
  5672. ;;
  5673. osf*)
  5674. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5675. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5676. # nice to cause kernel panics so lets avoid the loop below.
  5677. # First set a reasonable default.
  5678. lt_cv_sys_max_cmd_len=16384
  5679. #
  5680. if test -x /sbin/sysconfig; then
  5681. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5682. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5683. esac
  5684. fi
  5685. ;;
  5686. sco3.2v5*)
  5687. lt_cv_sys_max_cmd_len=102400
  5688. ;;
  5689. sysv5* | sco5v6* | sysv4.2uw2*)
  5690. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5691. if test -n "$kargmax"; then
  5692. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5693. else
  5694. lt_cv_sys_max_cmd_len=32768
  5695. fi
  5696. ;;
  5697. *)
  5698. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5699. if test -n "$lt_cv_sys_max_cmd_len"; then
  5700. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5701. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5702. else
  5703. # Make teststring a little bigger before we do anything with it.
  5704. # a 1K string should be a reasonable start.
  5705. for i in 1 2 3 4 5 6 7 8 ; do
  5706. teststring=$teststring$teststring
  5707. done
  5708. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5709. # If test is not a shell built-in, we'll probably end up computing a
  5710. # maximum length that is only half of the actual maximum length, but
  5711. # we can't tell.
  5712. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5713. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5714. test $i != 17 # 1/2 MB should be enough
  5715. do
  5716. i=`expr $i + 1`
  5717. teststring=$teststring$teststring
  5718. done
  5719. # Only check the string length outside the loop.
  5720. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5721. teststring=
  5722. # Add a significant safety factor because C++ compilers can tack on
  5723. # massive amounts of additional arguments before passing them to the
  5724. # linker. It appears as though 1/2 is a usable value.
  5725. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5726. fi
  5727. ;;
  5728. esac
  5729. fi
  5730. if test -n $lt_cv_sys_max_cmd_len ; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5732. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5735. $as_echo "none" >&6; }
  5736. fi
  5737. max_cmd_len=$lt_cv_sys_max_cmd_len
  5738. : ${CP="cp -f"}
  5739. : ${MV="mv -f"}
  5740. : ${RM="rm -f"}
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5742. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5743. # Try some XSI features
  5744. xsi_shell=no
  5745. ( _lt_dummy="a/b/c"
  5746. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5747. = c,a/b,, \
  5748. && eval 'test $(( 1 + 1 )) -eq 2 \
  5749. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5750. && xsi_shell=yes
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5752. $as_echo "$xsi_shell" >&6; }
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5754. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5755. lt_shell_append=no
  5756. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5757. >/dev/null 2>&1 \
  5758. && lt_shell_append=yes
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5760. $as_echo "$lt_shell_append" >&6; }
  5761. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5762. lt_unset=unset
  5763. else
  5764. lt_unset=false
  5765. fi
  5766. # test EBCDIC or ASCII
  5767. case `echo X|tr X '\101'` in
  5768. A) # ASCII based system
  5769. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5770. lt_SP2NL='tr \040 \012'
  5771. lt_NL2SP='tr \015\012 \040\040'
  5772. ;;
  5773. *) # EBCDIC based system
  5774. lt_SP2NL='tr \100 \n'
  5775. lt_NL2SP='tr \r\n \100\100'
  5776. ;;
  5777. esac
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5779. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5780. if ${lt_cv_ld_reload_flag+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. lt_cv_ld_reload_flag='-r'
  5784. fi
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5786. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5787. reload_flag=$lt_cv_ld_reload_flag
  5788. case $reload_flag in
  5789. "" | " "*) ;;
  5790. *) reload_flag=" $reload_flag" ;;
  5791. esac
  5792. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5793. case $host_os in
  5794. darwin*)
  5795. if test "$GCC" = yes; then
  5796. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5797. else
  5798. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5799. fi
  5800. ;;
  5801. esac
  5802. if test -n "$ac_tool_prefix"; then
  5803. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5804. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5806. $as_echo_n "checking for $ac_word... " >&6; }
  5807. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. if test -n "$OBJDUMP"; then
  5811. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5812. else
  5813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5814. for as_dir in $PATH
  5815. do
  5816. IFS=$as_save_IFS
  5817. test -z "$as_dir" && as_dir=.
  5818. for ac_exec_ext in '' $ac_executable_extensions; do
  5819. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5820. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5821. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5822. break 2
  5823. fi
  5824. done
  5825. done
  5826. IFS=$as_save_IFS
  5827. fi
  5828. fi
  5829. OBJDUMP=$ac_cv_prog_OBJDUMP
  5830. if test -n "$OBJDUMP"; then
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5832. $as_echo "$OBJDUMP" >&6; }
  5833. else
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5835. $as_echo "no" >&6; }
  5836. fi
  5837. fi
  5838. if test -z "$ac_cv_prog_OBJDUMP"; then
  5839. ac_ct_OBJDUMP=$OBJDUMP
  5840. # Extract the first word of "objdump", so it can be a program name with args.
  5841. set dummy objdump; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$ac_ct_OBJDUMP"; then
  5848. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5867. if test -n "$ac_ct_OBJDUMP"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5869. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. if test "x$ac_ct_OBJDUMP" = x; then
  5875. OBJDUMP="false"
  5876. else
  5877. case $cross_compiling:$ac_tool_warned in
  5878. yes:)
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5881. ac_tool_warned=yes ;;
  5882. esac
  5883. OBJDUMP=$ac_ct_OBJDUMP
  5884. fi
  5885. else
  5886. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5887. fi
  5888. test -z "$OBJDUMP" && OBJDUMP=objdump
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5890. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5891. if ${lt_cv_deplibs_check_method+:} false; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5895. lt_cv_file_magic_test_file=
  5896. lt_cv_deplibs_check_method='unknown'
  5897. # Need to set the preceding variable on all platforms that support
  5898. # interlibrary dependencies.
  5899. # 'none' -- dependencies not supported.
  5900. # `unknown' -- same as none, but documents that we really don't know.
  5901. # 'pass_all' -- all dependencies passed with no checks.
  5902. # 'test_compile' -- check by making test program.
  5903. # 'file_magic [[regex]]' -- check by looking for files in library path
  5904. # which responds to the $file_magic_cmd with a given extended regex.
  5905. # If you have `file' or equivalent on your system and you're not sure
  5906. # whether `pass_all' will *always* work, you probably want this one.
  5907. case $host_os in
  5908. aix[4-9]*)
  5909. lt_cv_deplibs_check_method=pass_all
  5910. ;;
  5911. beos*)
  5912. lt_cv_deplibs_check_method=pass_all
  5913. ;;
  5914. bsdi[45]*)
  5915. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5916. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5917. lt_cv_file_magic_test_file=/shlib/libc.so
  5918. ;;
  5919. cygwin*)
  5920. # func_win32_libid is a shell function defined in ltmain.sh
  5921. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5922. lt_cv_file_magic_cmd='func_win32_libid'
  5923. ;;
  5924. mingw* | pw32*)
  5925. # Base MSYS/MinGW do not provide the 'file' command needed by
  5926. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5927. # unless we find 'file', for example because we are cross-compiling.
  5928. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5929. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5930. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5931. lt_cv_file_magic_cmd='func_win32_libid'
  5932. else
  5933. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5934. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5935. fi
  5936. ;;
  5937. cegcc*)
  5938. # use the weaker test based on 'objdump'. See mingw*.
  5939. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5940. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5941. ;;
  5942. darwin* | rhapsody*)
  5943. lt_cv_deplibs_check_method=pass_all
  5944. ;;
  5945. freebsd* | dragonfly*)
  5946. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5947. case $host_cpu in
  5948. i*86 )
  5949. # Not sure whether the presence of OpenBSD here was a mistake.
  5950. # Let's accept both of them until this is cleared up.
  5951. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5952. lt_cv_file_magic_cmd=/usr/bin/file
  5953. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5954. ;;
  5955. esac
  5956. else
  5957. lt_cv_deplibs_check_method=pass_all
  5958. fi
  5959. ;;
  5960. gnu*)
  5961. lt_cv_deplibs_check_method=pass_all
  5962. ;;
  5963. haiku*)
  5964. lt_cv_deplibs_check_method=pass_all
  5965. ;;
  5966. hpux10.20* | hpux11*)
  5967. lt_cv_file_magic_cmd=/usr/bin/file
  5968. case $host_cpu in
  5969. ia64*)
  5970. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5971. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5972. ;;
  5973. hppa*64*)
  5974. 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]'
  5975. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5976. ;;
  5977. *)
  5978. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5979. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5980. ;;
  5981. esac
  5982. ;;
  5983. interix[3-9]*)
  5984. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5985. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5986. ;;
  5987. irix5* | irix6* | nonstopux*)
  5988. case $LD in
  5989. *-32|*"-32 ") libmagic=32-bit;;
  5990. *-n32|*"-n32 ") libmagic=N32;;
  5991. *-64|*"-64 ") libmagic=64-bit;;
  5992. *) libmagic=never-match;;
  5993. esac
  5994. lt_cv_deplibs_check_method=pass_all
  5995. ;;
  5996. # This must be Linux ELF.
  5997. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5998. lt_cv_deplibs_check_method=pass_all
  5999. ;;
  6000. netbsd*)
  6001. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6002. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6003. else
  6004. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6005. fi
  6006. ;;
  6007. newos6*)
  6008. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6009. lt_cv_file_magic_cmd=/usr/bin/file
  6010. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6011. ;;
  6012. *nto* | *qnx*)
  6013. lt_cv_deplibs_check_method=pass_all
  6014. ;;
  6015. openbsd*)
  6016. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6017. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6018. else
  6019. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6020. fi
  6021. ;;
  6022. osf3* | osf4* | osf5*)
  6023. lt_cv_deplibs_check_method=pass_all
  6024. ;;
  6025. rdos*)
  6026. lt_cv_deplibs_check_method=pass_all
  6027. ;;
  6028. solaris*)
  6029. lt_cv_deplibs_check_method=pass_all
  6030. ;;
  6031. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6032. lt_cv_deplibs_check_method=pass_all
  6033. ;;
  6034. sysv4 | sysv4.3*)
  6035. case $host_vendor in
  6036. motorola)
  6037. 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]'
  6038. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6039. ;;
  6040. ncr)
  6041. lt_cv_deplibs_check_method=pass_all
  6042. ;;
  6043. sequent)
  6044. lt_cv_file_magic_cmd='/bin/file'
  6045. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6046. ;;
  6047. sni)
  6048. lt_cv_file_magic_cmd='/bin/file'
  6049. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6050. lt_cv_file_magic_test_file=/lib/libc.so
  6051. ;;
  6052. siemens)
  6053. lt_cv_deplibs_check_method=pass_all
  6054. ;;
  6055. pc)
  6056. lt_cv_deplibs_check_method=pass_all
  6057. ;;
  6058. esac
  6059. ;;
  6060. tpf*)
  6061. lt_cv_deplibs_check_method=pass_all
  6062. ;;
  6063. esac
  6064. fi
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6066. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6067. file_magic_cmd=$lt_cv_file_magic_cmd
  6068. deplibs_check_method=$lt_cv_deplibs_check_method
  6069. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6070. if test -n "$ac_tool_prefix"; then
  6071. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6072. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6074. $as_echo_n "checking for $ac_word... " >&6; }
  6075. if ${ac_cv_prog_AR+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. if test -n "$AR"; then
  6079. ac_cv_prog_AR="$AR" # Let the user override the test.
  6080. else
  6081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6082. for as_dir in $PATH
  6083. do
  6084. IFS=$as_save_IFS
  6085. test -z "$as_dir" && as_dir=.
  6086. for ac_exec_ext in '' $ac_executable_extensions; do
  6087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6088. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6090. break 2
  6091. fi
  6092. done
  6093. done
  6094. IFS=$as_save_IFS
  6095. fi
  6096. fi
  6097. AR=$ac_cv_prog_AR
  6098. if test -n "$AR"; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6100. $as_echo "$AR" >&6; }
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. $as_echo "no" >&6; }
  6104. fi
  6105. fi
  6106. if test -z "$ac_cv_prog_AR"; then
  6107. ac_ct_AR=$AR
  6108. # Extract the first word of "ar", so it can be a program name with args.
  6109. set dummy ar; ac_word=$2
  6110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6111. $as_echo_n "checking for $ac_word... " >&6; }
  6112. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6113. $as_echo_n "(cached) " >&6
  6114. else
  6115. if test -n "$ac_ct_AR"; then
  6116. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6117. else
  6118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6119. for as_dir in $PATH
  6120. do
  6121. IFS=$as_save_IFS
  6122. test -z "$as_dir" && as_dir=.
  6123. for ac_exec_ext in '' $ac_executable_extensions; do
  6124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6125. ac_cv_prog_ac_ct_AR="ar"
  6126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6127. break 2
  6128. fi
  6129. done
  6130. done
  6131. IFS=$as_save_IFS
  6132. fi
  6133. fi
  6134. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6135. if test -n "$ac_ct_AR"; then
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6137. $as_echo "$ac_ct_AR" >&6; }
  6138. else
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6140. $as_echo "no" >&6; }
  6141. fi
  6142. if test "x$ac_ct_AR" = x; then
  6143. AR="false"
  6144. else
  6145. case $cross_compiling:$ac_tool_warned in
  6146. yes:)
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6148. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6149. ac_tool_warned=yes ;;
  6150. esac
  6151. AR=$ac_ct_AR
  6152. fi
  6153. else
  6154. AR="$ac_cv_prog_AR"
  6155. fi
  6156. test -z "$AR" && AR=ar
  6157. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6158. if test -n "$ac_tool_prefix"; then
  6159. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6160. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6162. $as_echo_n "checking for $ac_word... " >&6; }
  6163. if ${ac_cv_prog_STRIP+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. if test -n "$STRIP"; then
  6167. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6168. else
  6169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6170. for as_dir in $PATH
  6171. do
  6172. IFS=$as_save_IFS
  6173. test -z "$as_dir" && as_dir=.
  6174. for ac_exec_ext in '' $ac_executable_extensions; do
  6175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6176. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6178. break 2
  6179. fi
  6180. done
  6181. done
  6182. IFS=$as_save_IFS
  6183. fi
  6184. fi
  6185. STRIP=$ac_cv_prog_STRIP
  6186. if test -n "$STRIP"; then
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6188. $as_echo "$STRIP" >&6; }
  6189. else
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6191. $as_echo "no" >&6; }
  6192. fi
  6193. fi
  6194. if test -z "$ac_cv_prog_STRIP"; then
  6195. ac_ct_STRIP=$STRIP
  6196. # Extract the first word of "strip", so it can be a program name with args.
  6197. set dummy strip; ac_word=$2
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6199. $as_echo_n "checking for $ac_word... " >&6; }
  6200. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. if test -n "$ac_ct_STRIP"; then
  6204. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6205. else
  6206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6207. for as_dir in $PATH
  6208. do
  6209. IFS=$as_save_IFS
  6210. test -z "$as_dir" && as_dir=.
  6211. for ac_exec_ext in '' $ac_executable_extensions; do
  6212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6213. ac_cv_prog_ac_ct_STRIP="strip"
  6214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6215. break 2
  6216. fi
  6217. done
  6218. done
  6219. IFS=$as_save_IFS
  6220. fi
  6221. fi
  6222. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6223. if test -n "$ac_ct_STRIP"; then
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6225. $as_echo "$ac_ct_STRIP" >&6; }
  6226. else
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6228. $as_echo "no" >&6; }
  6229. fi
  6230. if test "x$ac_ct_STRIP" = x; then
  6231. STRIP=":"
  6232. else
  6233. case $cross_compiling:$ac_tool_warned in
  6234. yes:)
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6236. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. STRIP=$ac_ct_STRIP
  6240. fi
  6241. else
  6242. STRIP="$ac_cv_prog_STRIP"
  6243. fi
  6244. test -z "$STRIP" && STRIP=:
  6245. if test -n "$ac_tool_prefix"; then
  6246. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6247. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if ${ac_cv_prog_RANLIB+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$RANLIB"; then
  6254. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6263. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. RANLIB=$ac_cv_prog_RANLIB
  6273. if test -n "$RANLIB"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6275. $as_echo "$RANLIB" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. fi
  6281. if test -z "$ac_cv_prog_RANLIB"; then
  6282. ac_ct_RANLIB=$RANLIB
  6283. # Extract the first word of "ranlib", so it can be a program name with args.
  6284. set dummy ranlib; ac_word=$2
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6286. $as_echo_n "checking for $ac_word... " >&6; }
  6287. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. if test -n "$ac_ct_RANLIB"; then
  6291. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6292. else
  6293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6294. for as_dir in $PATH
  6295. do
  6296. IFS=$as_save_IFS
  6297. test -z "$as_dir" && as_dir=.
  6298. for ac_exec_ext in '' $ac_executable_extensions; do
  6299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6300. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6302. break 2
  6303. fi
  6304. done
  6305. done
  6306. IFS=$as_save_IFS
  6307. fi
  6308. fi
  6309. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6310. if test -n "$ac_ct_RANLIB"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6312. $as_echo "$ac_ct_RANLIB" >&6; }
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6315. $as_echo "no" >&6; }
  6316. fi
  6317. if test "x$ac_ct_RANLIB" = x; then
  6318. RANLIB=":"
  6319. else
  6320. case $cross_compiling:$ac_tool_warned in
  6321. yes:)
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6323. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6324. ac_tool_warned=yes ;;
  6325. esac
  6326. RANLIB=$ac_ct_RANLIB
  6327. fi
  6328. else
  6329. RANLIB="$ac_cv_prog_RANLIB"
  6330. fi
  6331. test -z "$RANLIB" && RANLIB=:
  6332. # Determine commands to create old-style static archives.
  6333. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6334. old_postinstall_cmds='chmod 644 $oldlib'
  6335. old_postuninstall_cmds=
  6336. if test -n "$RANLIB"; then
  6337. case $host_os in
  6338. openbsd*)
  6339. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6340. ;;
  6341. *)
  6342. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6343. ;;
  6344. esac
  6345. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6346. fi
  6347. case $host_os in
  6348. darwin*)
  6349. lock_old_archive_extraction=yes ;;
  6350. *)
  6351. lock_old_archive_extraction=no ;;
  6352. esac
  6353. # If no C compiler was specified, use CC.
  6354. LTCC=${LTCC-"$CC"}
  6355. # If no C compiler flags were specified, use CFLAGS.
  6356. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6357. # Allow CC to be a program name with arguments.
  6358. compiler=$CC
  6359. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6361. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6362. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. # These are sane defaults that work on at least a few old systems.
  6366. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6367. # Character class describing NM global symbol codes.
  6368. symcode='[BCDEGRST]'
  6369. # Regexp to match symbols that can be accessed directly from C.
  6370. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6371. # Define system-specific variables.
  6372. case $host_os in
  6373. aix*)
  6374. symcode='[BCDT]'
  6375. ;;
  6376. cygwin* | mingw* | pw32* | cegcc*)
  6377. symcode='[ABCDGISTW]'
  6378. ;;
  6379. hpux*)
  6380. if test "$host_cpu" = ia64; then
  6381. symcode='[ABCDEGRST]'
  6382. fi
  6383. ;;
  6384. irix* | nonstopux*)
  6385. symcode='[BCDEGRST]'
  6386. ;;
  6387. osf*)
  6388. symcode='[BCDEGQRST]'
  6389. ;;
  6390. solaris*)
  6391. symcode='[BDRT]'
  6392. ;;
  6393. sco3.2v5*)
  6394. symcode='[DT]'
  6395. ;;
  6396. sysv4.2uw2*)
  6397. symcode='[DT]'
  6398. ;;
  6399. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6400. symcode='[ABDT]'
  6401. ;;
  6402. sysv4)
  6403. symcode='[DFNSTU]'
  6404. ;;
  6405. esac
  6406. # If we're using GNU nm, then use its standard symbol codes.
  6407. case `$NM -V 2>&1` in
  6408. *GNU* | *'with BFD'*)
  6409. symcode='[ABCDGIRSTW]' ;;
  6410. esac
  6411. # Transform an extracted symbol line into a proper C declaration.
  6412. # Some systems (esp. on ia64) link data and code symbols differently,
  6413. # so use this general approach.
  6414. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6415. # Transform an extracted symbol line into symbol name and symbol address
  6416. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6417. 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'"
  6418. # Handle CRLF in mingw tool chain
  6419. opt_cr=
  6420. case $build_os in
  6421. mingw*)
  6422. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6423. ;;
  6424. esac
  6425. # Try without a prefix underscore, then with it.
  6426. for ac_symprfx in "" "_"; do
  6427. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6428. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6429. # Write the raw and C identifiers.
  6430. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6431. # Fake it for dumpbin and say T for any non-static function
  6432. # and D for any global variable.
  6433. # Also find C++ and __fastcall symbols from MSVC++,
  6434. # which start with @ or ?.
  6435. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6436. " {last_section=section; section=\$ 3};"\
  6437. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6438. " \$ 0!~/External *\|/{next};"\
  6439. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6440. " {if(hide[section]) next};"\
  6441. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6442. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6443. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6444. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6445. " ' prfx=^$ac_symprfx"
  6446. else
  6447. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6448. fi
  6449. # Check to see that the pipe works correctly.
  6450. pipe_works=no
  6451. rm -f conftest*
  6452. cat > conftest.$ac_ext <<_LT_EOF
  6453. #ifdef __cplusplus
  6454. extern "C" {
  6455. #endif
  6456. char nm_test_var;
  6457. void nm_test_func(void);
  6458. void nm_test_func(void){}
  6459. #ifdef __cplusplus
  6460. }
  6461. #endif
  6462. int main(){nm_test_var='a';nm_test_func();return(0);}
  6463. _LT_EOF
  6464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6465. (eval $ac_compile) 2>&5
  6466. ac_status=$?
  6467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6468. test $ac_status = 0; }; then
  6469. # Now try to grab the symbols.
  6470. nlist=conftest.nm
  6471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6472. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6473. ac_status=$?
  6474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6475. test $ac_status = 0; } && test -s "$nlist"; then
  6476. # Try sorting and uniquifying the output.
  6477. if sort "$nlist" | uniq > "$nlist"T; then
  6478. mv -f "$nlist"T "$nlist"
  6479. else
  6480. rm -f "$nlist"T
  6481. fi
  6482. # Make sure that we snagged all the symbols we need.
  6483. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6484. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6485. cat <<_LT_EOF > conftest.$ac_ext
  6486. #ifdef __cplusplus
  6487. extern "C" {
  6488. #endif
  6489. _LT_EOF
  6490. # Now generate the symbol file.
  6491. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6492. cat <<_LT_EOF >> conftest.$ac_ext
  6493. /* The mapping between symbol names and symbols. */
  6494. const struct {
  6495. const char *name;
  6496. void *address;
  6497. }
  6498. lt__PROGRAM__LTX_preloaded_symbols[] =
  6499. {
  6500. { "@PROGRAM@", (void *) 0 },
  6501. _LT_EOF
  6502. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6503. cat <<\_LT_EOF >> conftest.$ac_ext
  6504. {0, (void *) 0}
  6505. };
  6506. /* This works around a problem in FreeBSD linker */
  6507. #ifdef FREEBSD_WORKAROUND
  6508. static const void *lt_preloaded_setup() {
  6509. return lt__PROGRAM__LTX_preloaded_symbols;
  6510. }
  6511. #endif
  6512. #ifdef __cplusplus
  6513. }
  6514. #endif
  6515. _LT_EOF
  6516. # Now try linking the two files.
  6517. mv conftest.$ac_objext conftstm.$ac_objext
  6518. lt_save_LIBS="$LIBS"
  6519. lt_save_CFLAGS="$CFLAGS"
  6520. LIBS="conftstm.$ac_objext"
  6521. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6523. (eval $ac_link) 2>&5
  6524. ac_status=$?
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6526. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6527. pipe_works=yes
  6528. fi
  6529. LIBS="$lt_save_LIBS"
  6530. CFLAGS="$lt_save_CFLAGS"
  6531. else
  6532. echo "cannot find nm_test_func in $nlist" >&5
  6533. fi
  6534. else
  6535. echo "cannot find nm_test_var in $nlist" >&5
  6536. fi
  6537. else
  6538. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6539. fi
  6540. else
  6541. echo "$progname: failed program was:" >&5
  6542. cat conftest.$ac_ext >&5
  6543. fi
  6544. rm -rf conftest* conftst*
  6545. # Do not use the global_symbol_pipe unless it works.
  6546. if test "$pipe_works" = yes; then
  6547. break
  6548. else
  6549. lt_cv_sys_global_symbol_pipe=
  6550. fi
  6551. done
  6552. fi
  6553. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6554. lt_cv_sys_global_symbol_to_cdecl=
  6555. fi
  6556. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6558. $as_echo "failed" >&6; }
  6559. else
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6561. $as_echo "ok" >&6; }
  6562. fi
  6563. # Check whether --enable-libtool-lock was given.
  6564. if test "${enable_libtool_lock+set}" = set; then :
  6565. enableval=$enable_libtool_lock;
  6566. fi
  6567. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6568. # Some flags need to be propagated to the compiler or linker for good
  6569. # libtool support.
  6570. case $host in
  6571. ia64-*-hpux*)
  6572. # Find out which ABI we are using.
  6573. echo 'int i;' > conftest.$ac_ext
  6574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6575. (eval $ac_compile) 2>&5
  6576. ac_status=$?
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6578. test $ac_status = 0; }; then
  6579. case `/usr/bin/file conftest.$ac_objext` in
  6580. *ELF-32*)
  6581. HPUX_IA64_MODE="32"
  6582. ;;
  6583. *ELF-64*)
  6584. HPUX_IA64_MODE="64"
  6585. ;;
  6586. esac
  6587. fi
  6588. rm -rf conftest*
  6589. ;;
  6590. *-*-irix6*)
  6591. # Find out which ABI we are using.
  6592. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6593. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6594. (eval $ac_compile) 2>&5
  6595. ac_status=$?
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6597. test $ac_status = 0; }; then
  6598. if test "$lt_cv_prog_gnu_ld" = yes; then
  6599. case `/usr/bin/file conftest.$ac_objext` in
  6600. *32-bit*)
  6601. LD="${LD-ld} -melf32bsmip"
  6602. ;;
  6603. *N32*)
  6604. LD="${LD-ld} -melf32bmipn32"
  6605. ;;
  6606. *64-bit*)
  6607. LD="${LD-ld} -melf64bmip"
  6608. ;;
  6609. esac
  6610. else
  6611. case `/usr/bin/file conftest.$ac_objext` in
  6612. *32-bit*)
  6613. LD="${LD-ld} -32"
  6614. ;;
  6615. *N32*)
  6616. LD="${LD-ld} -n32"
  6617. ;;
  6618. *64-bit*)
  6619. LD="${LD-ld} -64"
  6620. ;;
  6621. esac
  6622. fi
  6623. fi
  6624. rm -rf conftest*
  6625. ;;
  6626. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6627. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6628. # Find out which ABI we are using.
  6629. echo 'int i;' > conftest.$ac_ext
  6630. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6631. (eval $ac_compile) 2>&5
  6632. ac_status=$?
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6634. test $ac_status = 0; }; then
  6635. case `/usr/bin/file conftest.o` in
  6636. *32-bit*)
  6637. case $host in
  6638. x86_64-*kfreebsd*-gnu)
  6639. LD="${LD-ld} -m elf_i386_fbsd"
  6640. ;;
  6641. x86_64-*linux*)
  6642. case `/usr/bin/file conftest.o` in
  6643. *x86-64*)
  6644. LD="${LD-ld} -m elf32_x86_64"
  6645. ;;
  6646. *)
  6647. LD="${LD-ld} -m elf_i386"
  6648. ;;
  6649. esac
  6650. ;;
  6651. powerpc64le-*linux*)
  6652. LD="${LD-ld} -m elf32lppclinux"
  6653. ;;
  6654. powerpc64-*linux*)
  6655. LD="${LD-ld} -m elf32ppclinux"
  6656. ;;
  6657. s390x-*linux*)
  6658. LD="${LD-ld} -m elf_s390"
  6659. ;;
  6660. sparc64-*linux*)
  6661. LD="${LD-ld} -m elf32_sparc"
  6662. ;;
  6663. esac
  6664. ;;
  6665. *64-bit*)
  6666. case $host in
  6667. x86_64-*kfreebsd*-gnu)
  6668. LD="${LD-ld} -m elf_x86_64_fbsd"
  6669. ;;
  6670. x86_64-*linux*)
  6671. LD="${LD-ld} -m elf_x86_64"
  6672. ;;
  6673. powerpcle-*linux*)
  6674. LD="${LD-ld} -m elf64lppc"
  6675. ;;
  6676. powerpc-*linux*)
  6677. LD="${LD-ld} -m elf64ppc"
  6678. ;;
  6679. s390*-*linux*|s390*-*tpf*)
  6680. LD="${LD-ld} -m elf64_s390"
  6681. ;;
  6682. sparc*-*linux*)
  6683. LD="${LD-ld} -m elf64_sparc"
  6684. ;;
  6685. esac
  6686. ;;
  6687. esac
  6688. fi
  6689. rm -rf conftest*
  6690. ;;
  6691. *-*-sco3.2v5*)
  6692. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6693. SAVE_CFLAGS="$CFLAGS"
  6694. CFLAGS="$CFLAGS -belf"
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6696. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6697. if ${lt_cv_cc_needs_belf+:} false; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. ac_ext=c
  6701. ac_cpp='$CPP $CPPFLAGS'
  6702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6706. /* end confdefs.h. */
  6707. int
  6708. main ()
  6709. {
  6710. ;
  6711. return 0;
  6712. }
  6713. _ACEOF
  6714. if ac_fn_c_try_link "$LINENO"; then :
  6715. lt_cv_cc_needs_belf=yes
  6716. else
  6717. lt_cv_cc_needs_belf=no
  6718. fi
  6719. rm -f core conftest.err conftest.$ac_objext \
  6720. conftest$ac_exeext conftest.$ac_ext
  6721. ac_ext=c
  6722. ac_cpp='$CPP $CPPFLAGS'
  6723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6726. fi
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6728. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6729. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6730. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6731. CFLAGS="$SAVE_CFLAGS"
  6732. fi
  6733. ;;
  6734. sparc*-*solaris*)
  6735. # Find out which ABI we are using.
  6736. echo 'int i;' > conftest.$ac_ext
  6737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6738. (eval $ac_compile) 2>&5
  6739. ac_status=$?
  6740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6741. test $ac_status = 0; }; then
  6742. case `/usr/bin/file conftest.o` in
  6743. *64-bit*)
  6744. case $lt_cv_prog_gnu_ld in
  6745. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6746. *)
  6747. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6748. LD="${LD-ld} -64"
  6749. fi
  6750. ;;
  6751. esac
  6752. ;;
  6753. esac
  6754. fi
  6755. rm -rf conftest*
  6756. ;;
  6757. esac
  6758. need_locks="$enable_libtool_lock"
  6759. case $host_os in
  6760. rhapsody* | darwin*)
  6761. if test -n "$ac_tool_prefix"; then
  6762. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6763. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6765. $as_echo_n "checking for $ac_word... " >&6; }
  6766. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6767. $as_echo_n "(cached) " >&6
  6768. else
  6769. if test -n "$DSYMUTIL"; then
  6770. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6771. else
  6772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6773. for as_dir in $PATH
  6774. do
  6775. IFS=$as_save_IFS
  6776. test -z "$as_dir" && as_dir=.
  6777. for ac_exec_ext in '' $ac_executable_extensions; do
  6778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6779. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6781. break 2
  6782. fi
  6783. done
  6784. done
  6785. IFS=$as_save_IFS
  6786. fi
  6787. fi
  6788. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6789. if test -n "$DSYMUTIL"; then
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6791. $as_echo "$DSYMUTIL" >&6; }
  6792. else
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6794. $as_echo "no" >&6; }
  6795. fi
  6796. fi
  6797. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6798. ac_ct_DSYMUTIL=$DSYMUTIL
  6799. # Extract the first word of "dsymutil", so it can be a program name with args.
  6800. set dummy dsymutil; ac_word=$2
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6802. $as_echo_n "checking for $ac_word... " >&6; }
  6803. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6804. $as_echo_n "(cached) " >&6
  6805. else
  6806. if test -n "$ac_ct_DSYMUTIL"; then
  6807. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6808. else
  6809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6810. for as_dir in $PATH
  6811. do
  6812. IFS=$as_save_IFS
  6813. test -z "$as_dir" && as_dir=.
  6814. for ac_exec_ext in '' $ac_executable_extensions; do
  6815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6816. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6818. break 2
  6819. fi
  6820. done
  6821. done
  6822. IFS=$as_save_IFS
  6823. fi
  6824. fi
  6825. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6826. if test -n "$ac_ct_DSYMUTIL"; then
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6828. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6829. else
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6831. $as_echo "no" >&6; }
  6832. fi
  6833. if test "x$ac_ct_DSYMUTIL" = x; then
  6834. DSYMUTIL=":"
  6835. else
  6836. case $cross_compiling:$ac_tool_warned in
  6837. yes:)
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6840. ac_tool_warned=yes ;;
  6841. esac
  6842. DSYMUTIL=$ac_ct_DSYMUTIL
  6843. fi
  6844. else
  6845. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6846. fi
  6847. if test -n "$ac_tool_prefix"; then
  6848. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6849. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6851. $as_echo_n "checking for $ac_word... " >&6; }
  6852. if ${ac_cv_prog_NMEDIT+:} false; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. if test -n "$NMEDIT"; then
  6856. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6857. else
  6858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6859. for as_dir in $PATH
  6860. do
  6861. IFS=$as_save_IFS
  6862. test -z "$as_dir" && as_dir=.
  6863. for ac_exec_ext in '' $ac_executable_extensions; do
  6864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6865. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6867. break 2
  6868. fi
  6869. done
  6870. done
  6871. IFS=$as_save_IFS
  6872. fi
  6873. fi
  6874. NMEDIT=$ac_cv_prog_NMEDIT
  6875. if test -n "$NMEDIT"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6877. $as_echo "$NMEDIT" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. fi
  6883. if test -z "$ac_cv_prog_NMEDIT"; then
  6884. ac_ct_NMEDIT=$NMEDIT
  6885. # Extract the first word of "nmedit", so it can be a program name with args.
  6886. set dummy nmedit; ac_word=$2
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6888. $as_echo_n "checking for $ac_word... " >&6; }
  6889. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. if test -n "$ac_ct_NMEDIT"; then
  6893. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6894. else
  6895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6896. for as_dir in $PATH
  6897. do
  6898. IFS=$as_save_IFS
  6899. test -z "$as_dir" && as_dir=.
  6900. for ac_exec_ext in '' $ac_executable_extensions; do
  6901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6902. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6904. break 2
  6905. fi
  6906. done
  6907. done
  6908. IFS=$as_save_IFS
  6909. fi
  6910. fi
  6911. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6912. if test -n "$ac_ct_NMEDIT"; then
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6914. $as_echo "$ac_ct_NMEDIT" >&6; }
  6915. else
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6917. $as_echo "no" >&6; }
  6918. fi
  6919. if test "x$ac_ct_NMEDIT" = x; then
  6920. NMEDIT=":"
  6921. else
  6922. case $cross_compiling:$ac_tool_warned in
  6923. yes:)
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6925. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6926. ac_tool_warned=yes ;;
  6927. esac
  6928. NMEDIT=$ac_ct_NMEDIT
  6929. fi
  6930. else
  6931. NMEDIT="$ac_cv_prog_NMEDIT"
  6932. fi
  6933. if test -n "$ac_tool_prefix"; then
  6934. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6935. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6937. $as_echo_n "checking for $ac_word... " >&6; }
  6938. if ${ac_cv_prog_LIPO+:} false; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. if test -n "$LIPO"; then
  6942. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6943. else
  6944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6945. for as_dir in $PATH
  6946. do
  6947. IFS=$as_save_IFS
  6948. test -z "$as_dir" && as_dir=.
  6949. for ac_exec_ext in '' $ac_executable_extensions; do
  6950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6951. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6953. break 2
  6954. fi
  6955. done
  6956. done
  6957. IFS=$as_save_IFS
  6958. fi
  6959. fi
  6960. LIPO=$ac_cv_prog_LIPO
  6961. if test -n "$LIPO"; then
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6963. $as_echo "$LIPO" >&6; }
  6964. else
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6966. $as_echo "no" >&6; }
  6967. fi
  6968. fi
  6969. if test -z "$ac_cv_prog_LIPO"; then
  6970. ac_ct_LIPO=$LIPO
  6971. # Extract the first word of "lipo", so it can be a program name with args.
  6972. set dummy lipo; ac_word=$2
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6974. $as_echo_n "checking for $ac_word... " >&6; }
  6975. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. if test -n "$ac_ct_LIPO"; then
  6979. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6980. else
  6981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6982. for as_dir in $PATH
  6983. do
  6984. IFS=$as_save_IFS
  6985. test -z "$as_dir" && as_dir=.
  6986. for ac_exec_ext in '' $ac_executable_extensions; do
  6987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6988. ac_cv_prog_ac_ct_LIPO="lipo"
  6989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6990. break 2
  6991. fi
  6992. done
  6993. done
  6994. IFS=$as_save_IFS
  6995. fi
  6996. fi
  6997. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6998. if test -n "$ac_ct_LIPO"; then
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7000. $as_echo "$ac_ct_LIPO" >&6; }
  7001. else
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7003. $as_echo "no" >&6; }
  7004. fi
  7005. if test "x$ac_ct_LIPO" = x; then
  7006. LIPO=":"
  7007. else
  7008. case $cross_compiling:$ac_tool_warned in
  7009. yes:)
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7012. ac_tool_warned=yes ;;
  7013. esac
  7014. LIPO=$ac_ct_LIPO
  7015. fi
  7016. else
  7017. LIPO="$ac_cv_prog_LIPO"
  7018. fi
  7019. if test -n "$ac_tool_prefix"; then
  7020. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7021. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7023. $as_echo_n "checking for $ac_word... " >&6; }
  7024. if ${ac_cv_prog_OTOOL+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. if test -n "$OTOOL"; then
  7028. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7029. else
  7030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7031. for as_dir in $PATH
  7032. do
  7033. IFS=$as_save_IFS
  7034. test -z "$as_dir" && as_dir=.
  7035. for ac_exec_ext in '' $ac_executable_extensions; do
  7036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7037. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7039. break 2
  7040. fi
  7041. done
  7042. done
  7043. IFS=$as_save_IFS
  7044. fi
  7045. fi
  7046. OTOOL=$ac_cv_prog_OTOOL
  7047. if test -n "$OTOOL"; then
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7049. $as_echo "$OTOOL" >&6; }
  7050. else
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7052. $as_echo "no" >&6; }
  7053. fi
  7054. fi
  7055. if test -z "$ac_cv_prog_OTOOL"; then
  7056. ac_ct_OTOOL=$OTOOL
  7057. # Extract the first word of "otool", so it can be a program name with args.
  7058. set dummy otool; ac_word=$2
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7060. $as_echo_n "checking for $ac_word... " >&6; }
  7061. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. if test -n "$ac_ct_OTOOL"; then
  7065. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7066. else
  7067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7068. for as_dir in $PATH
  7069. do
  7070. IFS=$as_save_IFS
  7071. test -z "$as_dir" && as_dir=.
  7072. for ac_exec_ext in '' $ac_executable_extensions; do
  7073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7074. ac_cv_prog_ac_ct_OTOOL="otool"
  7075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7076. break 2
  7077. fi
  7078. done
  7079. done
  7080. IFS=$as_save_IFS
  7081. fi
  7082. fi
  7083. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7084. if test -n "$ac_ct_OTOOL"; then
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7086. $as_echo "$ac_ct_OTOOL" >&6; }
  7087. else
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7089. $as_echo "no" >&6; }
  7090. fi
  7091. if test "x$ac_ct_OTOOL" = x; then
  7092. OTOOL=":"
  7093. else
  7094. case $cross_compiling:$ac_tool_warned in
  7095. yes:)
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7097. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7098. ac_tool_warned=yes ;;
  7099. esac
  7100. OTOOL=$ac_ct_OTOOL
  7101. fi
  7102. else
  7103. OTOOL="$ac_cv_prog_OTOOL"
  7104. fi
  7105. if test -n "$ac_tool_prefix"; then
  7106. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7107. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7109. $as_echo_n "checking for $ac_word... " >&6; }
  7110. if ${ac_cv_prog_OTOOL64+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. if test -n "$OTOOL64"; then
  7114. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7115. else
  7116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7117. for as_dir in $PATH
  7118. do
  7119. IFS=$as_save_IFS
  7120. test -z "$as_dir" && as_dir=.
  7121. for ac_exec_ext in '' $ac_executable_extensions; do
  7122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7123. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7125. break 2
  7126. fi
  7127. done
  7128. done
  7129. IFS=$as_save_IFS
  7130. fi
  7131. fi
  7132. OTOOL64=$ac_cv_prog_OTOOL64
  7133. if test -n "$OTOOL64"; then
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7135. $as_echo "$OTOOL64" >&6; }
  7136. else
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7138. $as_echo "no" >&6; }
  7139. fi
  7140. fi
  7141. if test -z "$ac_cv_prog_OTOOL64"; then
  7142. ac_ct_OTOOL64=$OTOOL64
  7143. # Extract the first word of "otool64", so it can be a program name with args.
  7144. set dummy otool64; ac_word=$2
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7146. $as_echo_n "checking for $ac_word... " >&6; }
  7147. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. if test -n "$ac_ct_OTOOL64"; then
  7151. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7152. else
  7153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7154. for as_dir in $PATH
  7155. do
  7156. IFS=$as_save_IFS
  7157. test -z "$as_dir" && as_dir=.
  7158. for ac_exec_ext in '' $ac_executable_extensions; do
  7159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7160. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7162. break 2
  7163. fi
  7164. done
  7165. done
  7166. IFS=$as_save_IFS
  7167. fi
  7168. fi
  7169. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7170. if test -n "$ac_ct_OTOOL64"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7172. $as_echo "$ac_ct_OTOOL64" >&6; }
  7173. else
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7175. $as_echo "no" >&6; }
  7176. fi
  7177. if test "x$ac_ct_OTOOL64" = x; then
  7178. OTOOL64=":"
  7179. else
  7180. case $cross_compiling:$ac_tool_warned in
  7181. yes:)
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7184. ac_tool_warned=yes ;;
  7185. esac
  7186. OTOOL64=$ac_ct_OTOOL64
  7187. fi
  7188. else
  7189. OTOOL64="$ac_cv_prog_OTOOL64"
  7190. fi
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7192. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7193. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7194. $as_echo_n "(cached) " >&6
  7195. else
  7196. lt_cv_apple_cc_single_mod=no
  7197. if test -z "${LT_MULTI_MODULE}"; then
  7198. # By default we will add the -single_module flag. You can override
  7199. # by either setting the environment variable LT_MULTI_MODULE
  7200. # non-empty at configure time, or by adding -multi_module to the
  7201. # link flags.
  7202. rm -rf libconftest.dylib*
  7203. echo "int foo(void){return 1;}" > conftest.c
  7204. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7205. -dynamiclib -Wl,-single_module conftest.c" >&5
  7206. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7207. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7208. _lt_result=$?
  7209. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7210. lt_cv_apple_cc_single_mod=yes
  7211. else
  7212. cat conftest.err >&5
  7213. fi
  7214. rm -rf libconftest.dylib*
  7215. rm -f conftest.*
  7216. fi
  7217. fi
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7219. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7221. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7222. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. lt_cv_ld_exported_symbols_list=no
  7226. save_LDFLAGS=$LDFLAGS
  7227. echo "_main" > conftest.sym
  7228. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7230. /* end confdefs.h. */
  7231. int
  7232. main ()
  7233. {
  7234. ;
  7235. return 0;
  7236. }
  7237. _ACEOF
  7238. if ac_fn_c_try_link "$LINENO"; then :
  7239. lt_cv_ld_exported_symbols_list=yes
  7240. else
  7241. lt_cv_ld_exported_symbols_list=no
  7242. fi
  7243. rm -f core conftest.err conftest.$ac_objext \
  7244. conftest$ac_exeext conftest.$ac_ext
  7245. LDFLAGS="$save_LDFLAGS"
  7246. fi
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7248. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7250. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7251. if ${lt_cv_ld_force_load+:} false; then :
  7252. $as_echo_n "(cached) " >&6
  7253. else
  7254. lt_cv_ld_force_load=no
  7255. cat > conftest.c << _LT_EOF
  7256. int forced_loaded() { return 2;}
  7257. _LT_EOF
  7258. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7259. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7260. echo "$AR cru libconftest.a conftest.o" >&5
  7261. $AR cru libconftest.a conftest.o 2>&5
  7262. cat > conftest.c << _LT_EOF
  7263. int main() { return 0;}
  7264. _LT_EOF
  7265. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7266. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7267. _lt_result=$?
  7268. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7269. lt_cv_ld_force_load=yes
  7270. else
  7271. cat conftest.err >&5
  7272. fi
  7273. rm -f conftest.err libconftest.a conftest conftest.c
  7274. rm -rf conftest.dSYM
  7275. fi
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7277. $as_echo "$lt_cv_ld_force_load" >&6; }
  7278. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7279. # build without first building modern cctools / linker.
  7280. case $host_cpu-$host_os in
  7281. *-rhapsody* | *-darwin1.[012])
  7282. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7283. *-darwin1.*)
  7284. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7285. *-darwin*)
  7286. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7287. # deployment target is forced to an earlier version.
  7288. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7289. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7290. ;;
  7291. 10.[012][,.]*)
  7292. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7293. ;;
  7294. *)
  7295. ;;
  7296. esac
  7297. ;;
  7298. esac
  7299. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7300. _lt_dar_single_mod='$single_module'
  7301. fi
  7302. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7303. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7304. else
  7305. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7306. fi
  7307. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7308. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7309. else
  7310. _lt_dsymutil=
  7311. fi
  7312. ;;
  7313. esac
  7314. for ac_header in dlfcn.h
  7315. do :
  7316. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7317. "
  7318. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7319. cat >>confdefs.h <<_ACEOF
  7320. #define HAVE_DLFCN_H 1
  7321. _ACEOF
  7322. fi
  7323. done
  7324. # Set options
  7325. enable_dlopen=yes
  7326. enable_win32_dll=no
  7327. # Check whether --enable-shared was given.
  7328. if test "${enable_shared+set}" = set; then :
  7329. enableval=$enable_shared; p=${PACKAGE-default}
  7330. case $enableval in
  7331. yes) enable_shared=yes ;;
  7332. no) enable_shared=no ;;
  7333. *)
  7334. enable_shared=no
  7335. # Look at the argument we got. We use all the common list separators.
  7336. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7337. for pkg in $enableval; do
  7338. IFS="$lt_save_ifs"
  7339. if test "X$pkg" = "X$p"; then
  7340. enable_shared=yes
  7341. fi
  7342. done
  7343. IFS="$lt_save_ifs"
  7344. ;;
  7345. esac
  7346. else
  7347. enable_shared=yes
  7348. fi
  7349. # Check whether --enable-static was given.
  7350. if test "${enable_static+set}" = set; then :
  7351. enableval=$enable_static; p=${PACKAGE-default}
  7352. case $enableval in
  7353. yes) enable_static=yes ;;
  7354. no) enable_static=no ;;
  7355. *)
  7356. enable_static=no
  7357. # Look at the argument we got. We use all the common list separators.
  7358. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7359. for pkg in $enableval; do
  7360. IFS="$lt_save_ifs"
  7361. if test "X$pkg" = "X$p"; then
  7362. enable_static=yes
  7363. fi
  7364. done
  7365. IFS="$lt_save_ifs"
  7366. ;;
  7367. esac
  7368. else
  7369. enable_static=yes
  7370. fi
  7371. # Check whether --with-pic was given.
  7372. if test "${with_pic+set}" = set; then :
  7373. withval=$with_pic; pic_mode="$withval"
  7374. else
  7375. pic_mode=default
  7376. fi
  7377. test -z "$pic_mode" && pic_mode=default
  7378. # Check whether --enable-fast-install was given.
  7379. if test "${enable_fast_install+set}" = set; then :
  7380. enableval=$enable_fast_install; p=${PACKAGE-default}
  7381. case $enableval in
  7382. yes) enable_fast_install=yes ;;
  7383. no) enable_fast_install=no ;;
  7384. *)
  7385. enable_fast_install=no
  7386. # Look at the argument we got. We use all the common list separators.
  7387. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7388. for pkg in $enableval; do
  7389. IFS="$lt_save_ifs"
  7390. if test "X$pkg" = "X$p"; then
  7391. enable_fast_install=yes
  7392. fi
  7393. done
  7394. IFS="$lt_save_ifs"
  7395. ;;
  7396. esac
  7397. else
  7398. enable_fast_install=yes
  7399. fi
  7400. # This can be used to rebuild libtool when needed
  7401. LIBTOOL_DEPS="$ltmain"
  7402. # Always use our own libtool.
  7403. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7404. test -z "$LN_S" && LN_S="ln -s"
  7405. if test -n "${ZSH_VERSION+set}" ; then
  7406. setopt NO_GLOB_SUBST
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7409. $as_echo_n "checking for objdir... " >&6; }
  7410. if ${lt_cv_objdir+:} false; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. rm -f .libs 2>/dev/null
  7414. mkdir .libs 2>/dev/null
  7415. if test -d .libs; then
  7416. lt_cv_objdir=.libs
  7417. else
  7418. # MS-DOS does not allow filenames that begin with a dot.
  7419. lt_cv_objdir=_libs
  7420. fi
  7421. rmdir .libs 2>/dev/null
  7422. fi
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7424. $as_echo "$lt_cv_objdir" >&6; }
  7425. objdir=$lt_cv_objdir
  7426. cat >>confdefs.h <<_ACEOF
  7427. #define LT_OBJDIR "$lt_cv_objdir/"
  7428. _ACEOF
  7429. case $host_os in
  7430. aix3*)
  7431. # AIX sometimes has problems with the GCC collect2 program. For some
  7432. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7433. # vanish in a puff of smoke.
  7434. if test "X${COLLECT_NAMES+set}" != Xset; then
  7435. COLLECT_NAMES=
  7436. export COLLECT_NAMES
  7437. fi
  7438. ;;
  7439. esac
  7440. # Global variables:
  7441. ofile=libtool
  7442. can_build_shared=yes
  7443. # All known linkers require a `.a' archive for static linking (except MSVC,
  7444. # which needs '.lib').
  7445. libext=a
  7446. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7447. old_CC="$CC"
  7448. old_CFLAGS="$CFLAGS"
  7449. # Set sane defaults for various variables
  7450. test -z "$CC" && CC=cc
  7451. test -z "$LTCC" && LTCC=$CC
  7452. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7453. test -z "$LD" && LD=ld
  7454. test -z "$ac_objext" && ac_objext=o
  7455. for cc_temp in $compiler""; do
  7456. case $cc_temp in
  7457. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7458. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7459. \-*) ;;
  7460. *) break;;
  7461. esac
  7462. done
  7463. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7464. # Only perform the check for file, if the check method requires it
  7465. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7466. case $deplibs_check_method in
  7467. file_magic*)
  7468. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7470. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7471. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7472. $as_echo_n "(cached) " >&6
  7473. else
  7474. case $MAGIC_CMD in
  7475. [\\/*] | ?:[\\/]*)
  7476. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7477. ;;
  7478. *)
  7479. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7480. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7481. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7482. for ac_dir in $ac_dummy; do
  7483. IFS="$lt_save_ifs"
  7484. test -z "$ac_dir" && ac_dir=.
  7485. if test -f $ac_dir/${ac_tool_prefix}file; then
  7486. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7487. if test -n "$file_magic_test_file"; then
  7488. case $deplibs_check_method in
  7489. "file_magic "*)
  7490. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7491. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7492. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7493. $EGREP "$file_magic_regex" > /dev/null; then
  7494. :
  7495. else
  7496. cat <<_LT_EOF 1>&2
  7497. *** Warning: the command libtool uses to detect shared libraries,
  7498. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7499. *** The result is that libtool may fail to recognize shared libraries
  7500. *** as such. This will affect the creation of libtool libraries that
  7501. *** depend on shared libraries, but programs linked with such libtool
  7502. *** libraries will work regardless of this problem. Nevertheless, you
  7503. *** may want to report the problem to your system manager and/or to
  7504. *** bug-libtool@gnu.org
  7505. _LT_EOF
  7506. fi ;;
  7507. esac
  7508. fi
  7509. break
  7510. fi
  7511. done
  7512. IFS="$lt_save_ifs"
  7513. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7514. ;;
  7515. esac
  7516. fi
  7517. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7518. if test -n "$MAGIC_CMD"; then
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7520. $as_echo "$MAGIC_CMD" >&6; }
  7521. else
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7523. $as_echo "no" >&6; }
  7524. fi
  7525. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7526. if test -n "$ac_tool_prefix"; then
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7528. $as_echo_n "checking for file... " >&6; }
  7529. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7530. $as_echo_n "(cached) " >&6
  7531. else
  7532. case $MAGIC_CMD in
  7533. [\\/*] | ?:[\\/]*)
  7534. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7535. ;;
  7536. *)
  7537. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7538. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7539. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7540. for ac_dir in $ac_dummy; do
  7541. IFS="$lt_save_ifs"
  7542. test -z "$ac_dir" && ac_dir=.
  7543. if test -f $ac_dir/file; then
  7544. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7545. if test -n "$file_magic_test_file"; then
  7546. case $deplibs_check_method in
  7547. "file_magic "*)
  7548. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7549. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7550. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7551. $EGREP "$file_magic_regex" > /dev/null; then
  7552. :
  7553. else
  7554. cat <<_LT_EOF 1>&2
  7555. *** Warning: the command libtool uses to detect shared libraries,
  7556. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7557. *** The result is that libtool may fail to recognize shared libraries
  7558. *** as such. This will affect the creation of libtool libraries that
  7559. *** depend on shared libraries, but programs linked with such libtool
  7560. *** libraries will work regardless of this problem. Nevertheless, you
  7561. *** may want to report the problem to your system manager and/or to
  7562. *** bug-libtool@gnu.org
  7563. _LT_EOF
  7564. fi ;;
  7565. esac
  7566. fi
  7567. break
  7568. fi
  7569. done
  7570. IFS="$lt_save_ifs"
  7571. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7572. ;;
  7573. esac
  7574. fi
  7575. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7576. if test -n "$MAGIC_CMD"; then
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7578. $as_echo "$MAGIC_CMD" >&6; }
  7579. else
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7581. $as_echo "no" >&6; }
  7582. fi
  7583. else
  7584. MAGIC_CMD=:
  7585. fi
  7586. fi
  7587. fi
  7588. ;;
  7589. esac
  7590. # Use C for the default configuration in the libtool script
  7591. lt_save_CC="$CC"
  7592. ac_ext=c
  7593. ac_cpp='$CPP $CPPFLAGS'
  7594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7597. # Source file extension for C test sources.
  7598. ac_ext=c
  7599. # Object file extension for compiled C test sources.
  7600. objext=o
  7601. objext=$objext
  7602. # Code to be used in simple compile tests
  7603. lt_simple_compile_test_code="int some_variable = 0;"
  7604. # Code to be used in simple link tests
  7605. lt_simple_link_test_code='int main(){return(0);}'
  7606. # If no C compiler was specified, use CC.
  7607. LTCC=${LTCC-"$CC"}
  7608. # If no C compiler flags were specified, use CFLAGS.
  7609. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7610. # Allow CC to be a program name with arguments.
  7611. compiler=$CC
  7612. # Save the default compiler, since it gets overwritten when the other
  7613. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7614. compiler_DEFAULT=$CC
  7615. # save warnings/boilerplate of simple test code
  7616. ac_outfile=conftest.$ac_objext
  7617. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7618. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7619. _lt_compiler_boilerplate=`cat conftest.err`
  7620. $RM conftest*
  7621. ac_outfile=conftest.$ac_objext
  7622. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7623. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7624. _lt_linker_boilerplate=`cat conftest.err`
  7625. $RM -r conftest*
  7626. ## CAVEAT EMPTOR:
  7627. ## There is no encapsulation within the following macros, do not change
  7628. ## the running order or otherwise move them around unless you know exactly
  7629. ## what you are doing...
  7630. if test -n "$compiler"; then
  7631. lt_prog_compiler_no_builtin_flag=
  7632. if test "$GCC" = yes; then
  7633. case $cc_basename in
  7634. nvcc*)
  7635. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7636. *)
  7637. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7638. esac
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7640. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7641. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7642. $as_echo_n "(cached) " >&6
  7643. else
  7644. lt_cv_prog_compiler_rtti_exceptions=no
  7645. ac_outfile=conftest.$ac_objext
  7646. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7647. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7648. # Insert the option either (1) after the last *FLAGS variable, or
  7649. # (2) before a word containing "conftest.", or (3) at the end.
  7650. # Note that $ac_compile itself does not contain backslashes and begins
  7651. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7652. # The option is referenced via a variable to avoid confusing sed.
  7653. lt_compile=`echo "$ac_compile" | $SED \
  7654. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7655. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7656. -e 's:$: $lt_compiler_flag:'`
  7657. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7658. (eval "$lt_compile" 2>conftest.err)
  7659. ac_status=$?
  7660. cat conftest.err >&5
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. if (exit $ac_status) && test -s "$ac_outfile"; then
  7663. # The compiler can only warn and ignore the option if not recognized
  7664. # So say no if there are warnings other than the usual output.
  7665. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7666. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7667. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7668. lt_cv_prog_compiler_rtti_exceptions=yes
  7669. fi
  7670. fi
  7671. $RM conftest*
  7672. fi
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7674. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7675. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7676. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7677. else
  7678. :
  7679. fi
  7680. fi
  7681. lt_prog_compiler_wl=
  7682. lt_prog_compiler_pic=
  7683. lt_prog_compiler_static=
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7685. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7686. if test "$GCC" = yes; then
  7687. lt_prog_compiler_wl='-Wl,'
  7688. lt_prog_compiler_static='-static'
  7689. case $host_os in
  7690. aix*)
  7691. # All AIX code is PIC.
  7692. if test "$host_cpu" = ia64; then
  7693. # AIX 5 now supports IA64 processor
  7694. lt_prog_compiler_static='-Bstatic'
  7695. fi
  7696. lt_prog_compiler_pic='-fPIC'
  7697. ;;
  7698. amigaos*)
  7699. case $host_cpu in
  7700. powerpc)
  7701. # see comment about AmigaOS4 .so support
  7702. lt_prog_compiler_pic='-fPIC'
  7703. ;;
  7704. m68k)
  7705. # FIXME: we need at least 68020 code to build shared libraries, but
  7706. # adding the `-m68020' flag to GCC prevents building anything better,
  7707. # like `-m68040'.
  7708. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7709. ;;
  7710. esac
  7711. ;;
  7712. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7713. # PIC is the default for these OSes.
  7714. ;;
  7715. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7716. # This hack is so that the source file can tell whether it is being
  7717. # built for inclusion in a dll (and should export symbols for example).
  7718. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7719. # (--disable-auto-import) libraries
  7720. lt_prog_compiler_pic='-DDLL_EXPORT'
  7721. ;;
  7722. darwin* | rhapsody*)
  7723. # PIC is the default on this platform
  7724. # Common symbols not allowed in MH_DYLIB files
  7725. lt_prog_compiler_pic='-fno-common'
  7726. ;;
  7727. haiku*)
  7728. # PIC is the default for Haiku.
  7729. # The "-static" flag exists, but is broken.
  7730. lt_prog_compiler_static=
  7731. ;;
  7732. hpux*)
  7733. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7734. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7735. # sets the default TLS model and affects inlining.
  7736. case $host_cpu in
  7737. hppa*64*)
  7738. # +Z the default
  7739. ;;
  7740. *)
  7741. lt_prog_compiler_pic='-fPIC'
  7742. ;;
  7743. esac
  7744. ;;
  7745. interix[3-9]*)
  7746. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7747. # Instead, we relocate shared libraries at runtime.
  7748. ;;
  7749. msdosdjgpp*)
  7750. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7751. # on systems that don't support them.
  7752. lt_prog_compiler_can_build_shared=no
  7753. enable_shared=no
  7754. ;;
  7755. *nto* | *qnx*)
  7756. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7757. # it will coredump.
  7758. lt_prog_compiler_pic='-fPIC -shared'
  7759. ;;
  7760. sysv4*MP*)
  7761. if test -d /usr/nec; then
  7762. lt_prog_compiler_pic=-Kconform_pic
  7763. fi
  7764. ;;
  7765. *)
  7766. lt_prog_compiler_pic='-fPIC'
  7767. ;;
  7768. esac
  7769. case $cc_basename in
  7770. nvcc*) # Cuda Compiler Driver 2.2
  7771. lt_prog_compiler_wl='-Xlinker '
  7772. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7773. ;;
  7774. esac
  7775. else
  7776. # PORTME Check for flag to pass linker flags through the system compiler.
  7777. case $host_os in
  7778. aix*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. if test "$host_cpu" = ia64; then
  7781. # AIX 5 now supports IA64 processor
  7782. lt_prog_compiler_static='-Bstatic'
  7783. else
  7784. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7785. fi
  7786. ;;
  7787. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7788. # This hack is so that the source file can tell whether it is being
  7789. # built for inclusion in a dll (and should export symbols for example).
  7790. lt_prog_compiler_pic='-DDLL_EXPORT'
  7791. ;;
  7792. hpux9* | hpux10* | hpux11*)
  7793. lt_prog_compiler_wl='-Wl,'
  7794. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7795. # not for PA HP-UX.
  7796. case $host_cpu in
  7797. hppa*64*|ia64*)
  7798. # +Z the default
  7799. ;;
  7800. *)
  7801. lt_prog_compiler_pic='+Z'
  7802. ;;
  7803. esac
  7804. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7805. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7806. ;;
  7807. irix5* | irix6* | nonstopux*)
  7808. lt_prog_compiler_wl='-Wl,'
  7809. # PIC (with -KPIC) is the default.
  7810. lt_prog_compiler_static='-non_shared'
  7811. ;;
  7812. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7813. case $cc_basename in
  7814. # old Intel for x86_64 which still supported -KPIC.
  7815. ecc*)
  7816. lt_prog_compiler_wl='-Wl,'
  7817. lt_prog_compiler_pic='-KPIC'
  7818. lt_prog_compiler_static='-static'
  7819. ;;
  7820. # icc used to be incompatible with GCC.
  7821. # ICC 10 doesn't accept -KPIC any more.
  7822. icc* | ifort*)
  7823. lt_prog_compiler_wl='-Wl,'
  7824. lt_prog_compiler_pic='-fPIC'
  7825. lt_prog_compiler_static='-static'
  7826. ;;
  7827. # Lahey Fortran 8.1.
  7828. lf95*)
  7829. lt_prog_compiler_wl='-Wl,'
  7830. lt_prog_compiler_pic='--shared'
  7831. lt_prog_compiler_static='--static'
  7832. ;;
  7833. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7834. # Portland Group compilers (*not* the Pentium gcc compiler,
  7835. # which looks to be a dead project)
  7836. lt_prog_compiler_wl='-Wl,'
  7837. lt_prog_compiler_pic='-fpic'
  7838. lt_prog_compiler_static='-Bstatic'
  7839. ;;
  7840. ccc*)
  7841. lt_prog_compiler_wl='-Wl,'
  7842. # All Alpha code is PIC.
  7843. lt_prog_compiler_static='-non_shared'
  7844. ;;
  7845. xl* | bgxl* | bgf* | mpixl*)
  7846. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7847. lt_prog_compiler_wl='-Wl,'
  7848. lt_prog_compiler_pic='-qpic'
  7849. lt_prog_compiler_static='-qstaticlink'
  7850. ;;
  7851. *)
  7852. case `$CC -V 2>&1 | sed 5q` in
  7853. *Sun\ F* | *Sun*Fortran*)
  7854. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7855. lt_prog_compiler_pic='-KPIC'
  7856. lt_prog_compiler_static='-Bstatic'
  7857. lt_prog_compiler_wl=''
  7858. ;;
  7859. *Sun\ C*)
  7860. # Sun C 5.9
  7861. lt_prog_compiler_pic='-KPIC'
  7862. lt_prog_compiler_static='-Bstatic'
  7863. lt_prog_compiler_wl='-Wl,'
  7864. ;;
  7865. esac
  7866. ;;
  7867. esac
  7868. ;;
  7869. newsos6)
  7870. lt_prog_compiler_pic='-KPIC'
  7871. lt_prog_compiler_static='-Bstatic'
  7872. ;;
  7873. *nto* | *qnx*)
  7874. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7875. # it will coredump.
  7876. lt_prog_compiler_pic='-fPIC -shared'
  7877. ;;
  7878. osf3* | osf4* | osf5*)
  7879. lt_prog_compiler_wl='-Wl,'
  7880. # All OSF/1 code is PIC.
  7881. lt_prog_compiler_static='-non_shared'
  7882. ;;
  7883. rdos*)
  7884. lt_prog_compiler_static='-non_shared'
  7885. ;;
  7886. solaris*)
  7887. lt_prog_compiler_pic='-KPIC'
  7888. lt_prog_compiler_static='-Bstatic'
  7889. case $cc_basename in
  7890. f77* | f90* | f95*)
  7891. lt_prog_compiler_wl='-Qoption ld ';;
  7892. *)
  7893. lt_prog_compiler_wl='-Wl,';;
  7894. esac
  7895. ;;
  7896. sunos4*)
  7897. lt_prog_compiler_wl='-Qoption ld '
  7898. lt_prog_compiler_pic='-PIC'
  7899. lt_prog_compiler_static='-Bstatic'
  7900. ;;
  7901. sysv4 | sysv4.2uw2* | sysv4.3*)
  7902. lt_prog_compiler_wl='-Wl,'
  7903. lt_prog_compiler_pic='-KPIC'
  7904. lt_prog_compiler_static='-Bstatic'
  7905. ;;
  7906. sysv4*MP*)
  7907. if test -d /usr/nec ;then
  7908. lt_prog_compiler_pic='-Kconform_pic'
  7909. lt_prog_compiler_static='-Bstatic'
  7910. fi
  7911. ;;
  7912. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7913. lt_prog_compiler_wl='-Wl,'
  7914. lt_prog_compiler_pic='-KPIC'
  7915. lt_prog_compiler_static='-Bstatic'
  7916. ;;
  7917. unicos*)
  7918. lt_prog_compiler_wl='-Wl,'
  7919. lt_prog_compiler_can_build_shared=no
  7920. ;;
  7921. uts4*)
  7922. lt_prog_compiler_pic='-pic'
  7923. lt_prog_compiler_static='-Bstatic'
  7924. ;;
  7925. *)
  7926. lt_prog_compiler_can_build_shared=no
  7927. ;;
  7928. esac
  7929. fi
  7930. case $host_os in
  7931. # For platforms which do not support PIC, -DPIC is meaningless:
  7932. *djgpp*)
  7933. lt_prog_compiler_pic=
  7934. ;;
  7935. *)
  7936. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7937. ;;
  7938. esac
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7940. $as_echo "$lt_prog_compiler_pic" >&6; }
  7941. #
  7942. # Check to make sure the PIC flag actually works.
  7943. #
  7944. if test -n "$lt_prog_compiler_pic"; then
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7946. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7947. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_pic_works=no
  7951. ac_outfile=conftest.$ac_objext
  7952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7953. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7954. # Insert the option either (1) after the last *FLAGS variable, or
  7955. # (2) before a word containing "conftest.", or (3) at the end.
  7956. # Note that $ac_compile itself does not contain backslashes and begins
  7957. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7958. # The option is referenced via a variable to avoid confusing sed.
  7959. lt_compile=`echo "$ac_compile" | $SED \
  7960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7962. -e 's:$: $lt_compiler_flag:'`
  7963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7964. (eval "$lt_compile" 2>conftest.err)
  7965. ac_status=$?
  7966. cat conftest.err >&5
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. if (exit $ac_status) && test -s "$ac_outfile"; then
  7969. # The compiler can only warn and ignore the option if not recognized
  7970. # So say no if there are warnings other than the usual output.
  7971. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7972. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7973. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7974. lt_cv_prog_compiler_pic_works=yes
  7975. fi
  7976. fi
  7977. $RM conftest*
  7978. fi
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7980. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7981. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7982. case $lt_prog_compiler_pic in
  7983. "" | " "*) ;;
  7984. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7985. esac
  7986. else
  7987. lt_prog_compiler_pic=
  7988. lt_prog_compiler_can_build_shared=no
  7989. fi
  7990. fi
  7991. #
  7992. # Check to make sure the static flag actually works.
  7993. #
  7994. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7996. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7997. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. lt_cv_prog_compiler_static_works=no
  8001. save_LDFLAGS="$LDFLAGS"
  8002. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8003. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8004. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8005. # The linker can only warn and ignore the option if not recognized
  8006. # So say no if there are warnings
  8007. if test -s conftest.err; then
  8008. # Append any errors to the config.log.
  8009. cat conftest.err 1>&5
  8010. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8011. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8012. if diff conftest.exp conftest.er2 >/dev/null; then
  8013. lt_cv_prog_compiler_static_works=yes
  8014. fi
  8015. else
  8016. lt_cv_prog_compiler_static_works=yes
  8017. fi
  8018. fi
  8019. $RM -r conftest*
  8020. LDFLAGS="$save_LDFLAGS"
  8021. fi
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8023. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8024. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8025. :
  8026. else
  8027. lt_prog_compiler_static=
  8028. fi
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8030. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8031. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8032. $as_echo_n "(cached) " >&6
  8033. else
  8034. lt_cv_prog_compiler_c_o=no
  8035. $RM -r conftest 2>/dev/null
  8036. mkdir conftest
  8037. cd conftest
  8038. mkdir out
  8039. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8040. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8041. # Insert the option either (1) after the last *FLAGS variable, or
  8042. # (2) before a word containing "conftest.", or (3) at the end.
  8043. # Note that $ac_compile itself does not contain backslashes and begins
  8044. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8045. lt_compile=`echo "$ac_compile" | $SED \
  8046. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8047. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8048. -e 's:$: $lt_compiler_flag:'`
  8049. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8050. (eval "$lt_compile" 2>out/conftest.err)
  8051. ac_status=$?
  8052. cat out/conftest.err >&5
  8053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8054. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8055. then
  8056. # The compiler can only warn and ignore the option if not recognized
  8057. # So say no if there are warnings
  8058. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8059. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8060. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8061. lt_cv_prog_compiler_c_o=yes
  8062. fi
  8063. fi
  8064. chmod u+w . 2>&5
  8065. $RM conftest*
  8066. # SGI C++ compiler will create directory out/ii_files/ for
  8067. # template instantiation
  8068. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8069. $RM out/* && rmdir out
  8070. cd ..
  8071. $RM -r conftest
  8072. $RM conftest*
  8073. fi
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8075. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8077. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8078. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8079. $as_echo_n "(cached) " >&6
  8080. else
  8081. lt_cv_prog_compiler_c_o=no
  8082. $RM -r conftest 2>/dev/null
  8083. mkdir conftest
  8084. cd conftest
  8085. mkdir out
  8086. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8087. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8088. # Insert the option either (1) after the last *FLAGS variable, or
  8089. # (2) before a word containing "conftest.", or (3) at the end.
  8090. # Note that $ac_compile itself does not contain backslashes and begins
  8091. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8092. lt_compile=`echo "$ac_compile" | $SED \
  8093. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8094. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8095. -e 's:$: $lt_compiler_flag:'`
  8096. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8097. (eval "$lt_compile" 2>out/conftest.err)
  8098. ac_status=$?
  8099. cat out/conftest.err >&5
  8100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8101. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8102. then
  8103. # The compiler can only warn and ignore the option if not recognized
  8104. # So say no if there are warnings
  8105. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8106. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8107. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8108. lt_cv_prog_compiler_c_o=yes
  8109. fi
  8110. fi
  8111. chmod u+w . 2>&5
  8112. $RM conftest*
  8113. # SGI C++ compiler will create directory out/ii_files/ for
  8114. # template instantiation
  8115. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8116. $RM out/* && rmdir out
  8117. cd ..
  8118. $RM -r conftest
  8119. $RM conftest*
  8120. fi
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8122. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8123. hard_links="nottested"
  8124. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8125. # do not overwrite the value of need_locks provided by the user
  8126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8127. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8128. hard_links=yes
  8129. $RM conftest*
  8130. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8131. touch conftest.a
  8132. ln conftest.a conftest.b 2>&5 || hard_links=no
  8133. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8135. $as_echo "$hard_links" >&6; }
  8136. if test "$hard_links" = no; then
  8137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8138. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8139. need_locks=warn
  8140. fi
  8141. else
  8142. need_locks=no
  8143. fi
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8145. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8146. runpath_var=
  8147. allow_undefined_flag=
  8148. always_export_symbols=no
  8149. archive_cmds=
  8150. archive_expsym_cmds=
  8151. compiler_needs_object=no
  8152. enable_shared_with_static_runtimes=no
  8153. export_dynamic_flag_spec=
  8154. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8155. hardcode_automatic=no
  8156. hardcode_direct=no
  8157. hardcode_direct_absolute=no
  8158. hardcode_libdir_flag_spec=
  8159. hardcode_libdir_flag_spec_ld=
  8160. hardcode_libdir_separator=
  8161. hardcode_minus_L=no
  8162. hardcode_shlibpath_var=unsupported
  8163. inherit_rpath=no
  8164. link_all_deplibs=unknown
  8165. module_cmds=
  8166. module_expsym_cmds=
  8167. old_archive_from_new_cmds=
  8168. old_archive_from_expsyms_cmds=
  8169. thread_safe_flag_spec=
  8170. whole_archive_flag_spec=
  8171. # include_expsyms should be a list of space-separated symbols to be *always*
  8172. # included in the symbol list
  8173. include_expsyms=
  8174. # exclude_expsyms can be an extended regexp of symbols to exclude
  8175. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8176. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8177. # as well as any symbol that contains `d'.
  8178. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8179. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8180. # platforms (ab)use it in PIC code, but their linkers get confused if
  8181. # the symbol is explicitly referenced. Since portable code cannot
  8182. # rely on this symbol name, it's probably fine to never include it in
  8183. # preloaded symbol tables.
  8184. # Exclude shared library initialization/finalization symbols.
  8185. extract_expsyms_cmds=
  8186. case $host_os in
  8187. cygwin* | mingw* | pw32* | cegcc*)
  8188. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8189. # When not using gcc, we currently assume that we are using
  8190. # Microsoft Visual C++.
  8191. if test "$GCC" != yes; then
  8192. with_gnu_ld=no
  8193. fi
  8194. ;;
  8195. interix*)
  8196. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8197. with_gnu_ld=yes
  8198. ;;
  8199. openbsd*)
  8200. with_gnu_ld=no
  8201. ;;
  8202. esac
  8203. ld_shlibs=yes
  8204. # On some targets, GNU ld is compatible enough with the native linker
  8205. # that we're better off using the native interface for both.
  8206. lt_use_gnu_ld_interface=no
  8207. if test "$with_gnu_ld" = yes; then
  8208. case $host_os in
  8209. aix*)
  8210. # The AIX port of GNU ld has always aspired to compatibility
  8211. # with the native linker. However, as the warning in the GNU ld
  8212. # block says, versions before 2.19.5* couldn't really create working
  8213. # shared libraries, regardless of the interface used.
  8214. case `$LD -v 2>&1` in
  8215. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8216. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8217. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8218. *)
  8219. lt_use_gnu_ld_interface=yes
  8220. ;;
  8221. esac
  8222. ;;
  8223. *)
  8224. lt_use_gnu_ld_interface=yes
  8225. ;;
  8226. esac
  8227. fi
  8228. if test "$lt_use_gnu_ld_interface" = yes; then
  8229. # If archive_cmds runs LD, not CC, wlarc should be empty
  8230. wlarc='${wl}'
  8231. # Set some defaults for GNU ld with shared library support. These
  8232. # are reset later if shared libraries are not supported. Putting them
  8233. # here allows them to be overridden if necessary.
  8234. runpath_var=LD_RUN_PATH
  8235. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8236. export_dynamic_flag_spec='${wl}--export-dynamic'
  8237. # ancient GNU ld didn't support --whole-archive et. al.
  8238. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8239. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8240. else
  8241. whole_archive_flag_spec=
  8242. fi
  8243. supports_anon_versioning=no
  8244. case `$LD -v 2>&1` in
  8245. *GNU\ gold*) supports_anon_versioning=yes ;;
  8246. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8247. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8248. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8249. *\ 2.11.*) ;; # other 2.11 versions
  8250. *) supports_anon_versioning=yes ;;
  8251. esac
  8252. # See if GNU ld supports shared libraries.
  8253. case $host_os in
  8254. aix[3-9]*)
  8255. # On AIX/PPC, the GNU linker is very broken
  8256. if test "$host_cpu" != ia64; then
  8257. ld_shlibs=no
  8258. cat <<_LT_EOF 1>&2
  8259. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8260. *** to be unable to reliably create shared libraries on AIX.
  8261. *** Therefore, libtool is disabling shared libraries support. If you
  8262. *** really care for shared libraries, you may want to install binutils
  8263. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8264. *** You will then need to restart the configuration process.
  8265. _LT_EOF
  8266. fi
  8267. ;;
  8268. amigaos*)
  8269. case $host_cpu in
  8270. powerpc)
  8271. # see comment about AmigaOS4 .so support
  8272. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8273. archive_expsym_cmds=''
  8274. ;;
  8275. m68k)
  8276. 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)'
  8277. hardcode_libdir_flag_spec='-L$libdir'
  8278. hardcode_minus_L=yes
  8279. ;;
  8280. esac
  8281. ;;
  8282. beos*)
  8283. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8284. allow_undefined_flag=unsupported
  8285. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8286. # support --undefined. This deserves some investigation. FIXME
  8287. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8288. else
  8289. ld_shlibs=no
  8290. fi
  8291. ;;
  8292. cygwin* | mingw* | pw32* | cegcc*)
  8293. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8294. # as there is no search path for DLLs.
  8295. hardcode_libdir_flag_spec='-L$libdir'
  8296. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8297. allow_undefined_flag=unsupported
  8298. always_export_symbols=no
  8299. enable_shared_with_static_runtimes=yes
  8300. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8301. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8302. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8303. # If the export-symbols file already is a .def file (1st line
  8304. # is EXPORTS), use it as is; otherwise, prepend...
  8305. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8306. cp $export_symbols $output_objdir/$soname.def;
  8307. else
  8308. echo EXPORTS > $output_objdir/$soname.def;
  8309. cat $export_symbols >> $output_objdir/$soname.def;
  8310. fi~
  8311. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8312. else
  8313. ld_shlibs=no
  8314. fi
  8315. ;;
  8316. haiku*)
  8317. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. link_all_deplibs=yes
  8319. ;;
  8320. interix[3-9]*)
  8321. hardcode_direct=no
  8322. hardcode_shlibpath_var=no
  8323. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8324. export_dynamic_flag_spec='${wl}-E'
  8325. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8326. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8327. # default) and relocated if they conflict, which is a slow very memory
  8328. # consuming and fragmenting process. To avoid this, we pick a random,
  8329. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8330. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8331. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8332. 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'
  8333. ;;
  8334. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8335. tmp_diet=no
  8336. if test "$host_os" = linux-dietlibc; then
  8337. case $cc_basename in
  8338. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8339. esac
  8340. fi
  8341. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8342. && test "$tmp_diet" = no
  8343. then
  8344. tmp_addflag=' $pic_flag'
  8345. tmp_sharedflag='-shared'
  8346. case $cc_basename,$host_cpu in
  8347. pgcc*) # Portland Group C compiler
  8348. 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'
  8349. tmp_addflag=' $pic_flag'
  8350. ;;
  8351. pgf77* | pgf90* | pgf95* | pgfortran*)
  8352. # Portland Group f77 and f90 compilers
  8353. 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'
  8354. tmp_addflag=' $pic_flag -Mnomain' ;;
  8355. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8356. tmp_addflag=' -i_dynamic' ;;
  8357. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8358. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8359. ifc* | ifort*) # Intel Fortran compiler
  8360. tmp_addflag=' -nofor_main' ;;
  8361. lf95*) # Lahey Fortran 8.1
  8362. whole_archive_flag_spec=
  8363. tmp_sharedflag='--shared' ;;
  8364. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8365. tmp_sharedflag='-qmkshrobj'
  8366. tmp_addflag= ;;
  8367. nvcc*) # Cuda Compiler Driver 2.2
  8368. 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'
  8369. compiler_needs_object=yes
  8370. ;;
  8371. esac
  8372. case `$CC -V 2>&1 | sed 5q` in
  8373. *Sun\ C*) # Sun C 5.9
  8374. 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'
  8375. compiler_needs_object=yes
  8376. tmp_sharedflag='-G' ;;
  8377. *Sun\ F*) # Sun Fortran 8.3
  8378. tmp_sharedflag='-G' ;;
  8379. esac
  8380. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8381. if test "x$supports_anon_versioning" = xyes; then
  8382. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8383. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8384. echo "local: *; };" >> $output_objdir/$libname.ver~
  8385. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8386. fi
  8387. case $cc_basename in
  8388. xlf* | bgf* | bgxlf* | mpixlf*)
  8389. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8390. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8391. hardcode_libdir_flag_spec=
  8392. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8393. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8394. if test "x$supports_anon_versioning" = xyes; then
  8395. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8396. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8397. echo "local: *; };" >> $output_objdir/$libname.ver~
  8398. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8399. fi
  8400. ;;
  8401. esac
  8402. else
  8403. ld_shlibs=no
  8404. fi
  8405. ;;
  8406. netbsd*)
  8407. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8408. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8409. wlarc=
  8410. else
  8411. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8412. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8413. fi
  8414. ;;
  8415. solaris*)
  8416. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8417. ld_shlibs=no
  8418. cat <<_LT_EOF 1>&2
  8419. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8420. *** create shared libraries on Solaris systems. Therefore, libtool
  8421. *** is disabling shared libraries support. We urge you to upgrade GNU
  8422. *** binutils to release 2.9.1 or newer. Another option is to modify
  8423. *** your PATH or compiler configuration so that the native linker is
  8424. *** used, and then restart.
  8425. _LT_EOF
  8426. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8427. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8428. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8429. else
  8430. ld_shlibs=no
  8431. fi
  8432. ;;
  8433. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8434. case `$LD -v 2>&1` in
  8435. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8436. ld_shlibs=no
  8437. cat <<_LT_EOF 1>&2
  8438. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8439. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8440. *** is disabling shared libraries support. We urge you to upgrade GNU
  8441. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8442. *** your PATH or compiler configuration so that the native linker is
  8443. *** used, and then restart.
  8444. _LT_EOF
  8445. ;;
  8446. *)
  8447. # For security reasons, it is highly recommended that you always
  8448. # use absolute paths for naming shared libraries, and exclude the
  8449. # DT_RUNPATH tag from executables and libraries. But doing so
  8450. # requires that you compile everything twice, which is a pain.
  8451. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8452. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8453. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8454. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8455. else
  8456. ld_shlibs=no
  8457. fi
  8458. ;;
  8459. esac
  8460. ;;
  8461. sunos4*)
  8462. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8463. wlarc=
  8464. hardcode_direct=yes
  8465. hardcode_shlibpath_var=no
  8466. ;;
  8467. *)
  8468. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8469. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8470. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8471. else
  8472. ld_shlibs=no
  8473. fi
  8474. ;;
  8475. esac
  8476. if test "$ld_shlibs" = no; then
  8477. runpath_var=
  8478. hardcode_libdir_flag_spec=
  8479. export_dynamic_flag_spec=
  8480. whole_archive_flag_spec=
  8481. fi
  8482. else
  8483. # PORTME fill in a description of your system's linker (not GNU ld)
  8484. case $host_os in
  8485. aix3*)
  8486. allow_undefined_flag=unsupported
  8487. always_export_symbols=yes
  8488. 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'
  8489. # Note: this linker hardcodes the directories in LIBPATH if there
  8490. # are no directories specified by -L.
  8491. hardcode_minus_L=yes
  8492. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8493. # Neither direct hardcoding nor static linking is supported with a
  8494. # broken collect2.
  8495. hardcode_direct=unsupported
  8496. fi
  8497. ;;
  8498. aix[4-9]*)
  8499. if test "$host_cpu" = ia64; then
  8500. # On IA64, the linker does run time linking by default, so we don't
  8501. # have to do anything special.
  8502. aix_use_runtimelinking=no
  8503. exp_sym_flag='-Bexport'
  8504. no_entry_flag=""
  8505. else
  8506. # If we're using GNU nm, then we don't want the "-C" option.
  8507. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8508. # Also, AIX nm treats weak defined symbols like other global
  8509. # defined symbols, whereas GNU nm marks them as "W".
  8510. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8511. 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'
  8512. else
  8513. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8514. fi
  8515. aix_use_runtimelinking=no
  8516. # Test if we are trying to use run time linking or normal
  8517. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8518. # need to do runtime linking.
  8519. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8520. for ld_flag in $LDFLAGS; do
  8521. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8522. aix_use_runtimelinking=yes
  8523. break
  8524. fi
  8525. done
  8526. ;;
  8527. esac
  8528. exp_sym_flag='-bexport'
  8529. no_entry_flag='-bnoentry'
  8530. fi
  8531. # When large executables or shared objects are built, AIX ld can
  8532. # have problems creating the table of contents. If linking a library
  8533. # or program results in "error TOC overflow" add -mminimal-toc to
  8534. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8535. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8536. archive_cmds=''
  8537. hardcode_direct=yes
  8538. hardcode_direct_absolute=yes
  8539. hardcode_libdir_separator=':'
  8540. link_all_deplibs=yes
  8541. file_list_spec='${wl}-f,'
  8542. if test "$GCC" = yes; then
  8543. case $host_os in aix4.[012]|aix4.[012].*)
  8544. # We only want to do this on AIX 4.2 and lower, the check
  8545. # below for broken collect2 doesn't work under 4.3+
  8546. collect2name=`${CC} -print-prog-name=collect2`
  8547. if test -f "$collect2name" &&
  8548. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8549. then
  8550. # We have reworked collect2
  8551. :
  8552. else
  8553. # We have old collect2
  8554. hardcode_direct=unsupported
  8555. # It fails to find uninstalled libraries when the uninstalled
  8556. # path is not listed in the libpath. Setting hardcode_minus_L
  8557. # to unsupported forces relinking
  8558. hardcode_minus_L=yes
  8559. hardcode_libdir_flag_spec='-L$libdir'
  8560. hardcode_libdir_separator=
  8561. fi
  8562. ;;
  8563. esac
  8564. shared_flag='-shared'
  8565. if test "$aix_use_runtimelinking" = yes; then
  8566. shared_flag="$shared_flag "'${wl}-G'
  8567. fi
  8568. else
  8569. # not using gcc
  8570. if test "$host_cpu" = ia64; then
  8571. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8572. # chokes on -Wl,-G. The following line is correct:
  8573. shared_flag='-G'
  8574. else
  8575. if test "$aix_use_runtimelinking" = yes; then
  8576. shared_flag='${wl}-G'
  8577. else
  8578. shared_flag='${wl}-bM:SRE'
  8579. fi
  8580. fi
  8581. fi
  8582. export_dynamic_flag_spec='${wl}-bexpall'
  8583. # It seems that -bexpall does not export symbols beginning with
  8584. # underscore (_), so it is better to generate a list of symbols to export.
  8585. always_export_symbols=yes
  8586. if test "$aix_use_runtimelinking" = yes; then
  8587. # Warning - without using the other runtime loading flags (-brtl),
  8588. # -berok will link without error, but may produce a broken library.
  8589. allow_undefined_flag='-berok'
  8590. # Determine the default libpath from the value encoded in an
  8591. # empty executable.
  8592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8593. /* end confdefs.h. */
  8594. int
  8595. main ()
  8596. {
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. if ac_fn_c_try_link "$LINENO"; then :
  8602. lt_aix_libpath_sed='
  8603. /Import File Strings/,/^$/ {
  8604. /^0/ {
  8605. s/^0 *\(.*\)$/\1/
  8606. p
  8607. }
  8608. }'
  8609. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8610. # Check for a 64-bit object if we didn't find anything.
  8611. if test -z "$aix_libpath"; then
  8612. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8613. fi
  8614. fi
  8615. rm -f core conftest.err conftest.$ac_objext \
  8616. conftest$ac_exeext conftest.$ac_ext
  8617. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8618. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8619. 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"
  8620. else
  8621. if test "$host_cpu" = ia64; then
  8622. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8623. allow_undefined_flag="-z nodefs"
  8624. 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"
  8625. else
  8626. # Determine the default libpath from the value encoded in an
  8627. # empty executable.
  8628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8629. /* end confdefs.h. */
  8630. int
  8631. main ()
  8632. {
  8633. ;
  8634. return 0;
  8635. }
  8636. _ACEOF
  8637. if ac_fn_c_try_link "$LINENO"; then :
  8638. lt_aix_libpath_sed='
  8639. /Import File Strings/,/^$/ {
  8640. /^0/ {
  8641. s/^0 *\(.*\)$/\1/
  8642. p
  8643. }
  8644. }'
  8645. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8646. # Check for a 64-bit object if we didn't find anything.
  8647. if test -z "$aix_libpath"; then
  8648. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8649. fi
  8650. fi
  8651. rm -f core conftest.err conftest.$ac_objext \
  8652. conftest$ac_exeext conftest.$ac_ext
  8653. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8654. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8655. # Warning - without using the other run time loading flags,
  8656. # -berok will link without error, but may produce a broken library.
  8657. no_undefined_flag=' ${wl}-bernotok'
  8658. allow_undefined_flag=' ${wl}-berok'
  8659. if test "$with_gnu_ld" = yes; then
  8660. # We only use this code for GNU lds that support --whole-archive.
  8661. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8662. else
  8663. # Exported symbols can be pulled into shared objects from archives
  8664. whole_archive_flag_spec='$convenience'
  8665. fi
  8666. archive_cmds_need_lc=yes
  8667. # This is similar to how AIX traditionally builds its shared libraries.
  8668. 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'
  8669. fi
  8670. fi
  8671. ;;
  8672. amigaos*)
  8673. case $host_cpu in
  8674. powerpc)
  8675. # see comment about AmigaOS4 .so support
  8676. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8677. archive_expsym_cmds=''
  8678. ;;
  8679. m68k)
  8680. 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)'
  8681. hardcode_libdir_flag_spec='-L$libdir'
  8682. hardcode_minus_L=yes
  8683. ;;
  8684. esac
  8685. ;;
  8686. bsdi[45]*)
  8687. export_dynamic_flag_spec=-rdynamic
  8688. ;;
  8689. cygwin* | mingw* | pw32* | cegcc*)
  8690. # When not using gcc, we currently assume that we are using
  8691. # Microsoft Visual C++.
  8692. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8693. # no search path for DLLs.
  8694. hardcode_libdir_flag_spec=' '
  8695. allow_undefined_flag=unsupported
  8696. # Tell ltmain to make .lib files, not .a files.
  8697. libext=lib
  8698. # Tell ltmain to make .dll files, not .so files.
  8699. shrext_cmds=".dll"
  8700. # FIXME: Setting linknames here is a bad hack.
  8701. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8702. # The linker will automatically build a .lib file if we build a DLL.
  8703. old_archive_from_new_cmds='true'
  8704. # FIXME: Should let the user specify the lib program.
  8705. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8706. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8707. enable_shared_with_static_runtimes=yes
  8708. ;;
  8709. darwin* | rhapsody*)
  8710. archive_cmds_need_lc=no
  8711. hardcode_direct=no
  8712. hardcode_automatic=yes
  8713. hardcode_shlibpath_var=unsupported
  8714. if test "$lt_cv_ld_force_load" = "yes"; then
  8715. 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\"`'
  8716. else
  8717. whole_archive_flag_spec=''
  8718. fi
  8719. link_all_deplibs=yes
  8720. allow_undefined_flag="$_lt_dar_allow_undefined"
  8721. case $cc_basename in
  8722. ifort*) _lt_dar_can_shared=yes ;;
  8723. *) _lt_dar_can_shared=$GCC ;;
  8724. esac
  8725. if test "$_lt_dar_can_shared" = "yes"; then
  8726. output_verbose_link_cmd=func_echo_all
  8727. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8728. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8729. 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}"
  8730. 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}"
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. dgux*)
  8736. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8737. hardcode_libdir_flag_spec='-L$libdir'
  8738. hardcode_shlibpath_var=no
  8739. ;;
  8740. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8741. # support. Future versions do this automatically, but an explicit c++rt0.o
  8742. # does not break anything, and helps significantly (at the cost of a little
  8743. # extra space).
  8744. freebsd2.2*)
  8745. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8746. hardcode_libdir_flag_spec='-R$libdir'
  8747. hardcode_direct=yes
  8748. hardcode_shlibpath_var=no
  8749. ;;
  8750. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8751. freebsd2.*)
  8752. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8753. hardcode_direct=yes
  8754. hardcode_minus_L=yes
  8755. hardcode_shlibpath_var=no
  8756. ;;
  8757. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8758. freebsd* | dragonfly*)
  8759. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8760. hardcode_libdir_flag_spec='-R$libdir'
  8761. hardcode_direct=yes
  8762. hardcode_shlibpath_var=no
  8763. ;;
  8764. hpux9*)
  8765. if test "$GCC" = yes; then
  8766. 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'
  8767. else
  8768. 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'
  8769. fi
  8770. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8771. hardcode_libdir_separator=:
  8772. hardcode_direct=yes
  8773. # hardcode_minus_L: Not really in the search PATH,
  8774. # but as the default location of the library.
  8775. hardcode_minus_L=yes
  8776. export_dynamic_flag_spec='${wl}-E'
  8777. ;;
  8778. hpux10*)
  8779. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8780. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8781. else
  8782. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8783. fi
  8784. if test "$with_gnu_ld" = no; then
  8785. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8786. hardcode_libdir_flag_spec_ld='+b $libdir'
  8787. hardcode_libdir_separator=:
  8788. hardcode_direct=yes
  8789. hardcode_direct_absolute=yes
  8790. export_dynamic_flag_spec='${wl}-E'
  8791. # hardcode_minus_L: Not really in the search PATH,
  8792. # but as the default location of the library.
  8793. hardcode_minus_L=yes
  8794. fi
  8795. ;;
  8796. hpux11*)
  8797. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8798. case $host_cpu in
  8799. hppa*64*)
  8800. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8801. ;;
  8802. ia64*)
  8803. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8804. ;;
  8805. *)
  8806. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8807. ;;
  8808. esac
  8809. else
  8810. case $host_cpu in
  8811. hppa*64*)
  8812. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8813. ;;
  8814. ia64*)
  8815. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8816. ;;
  8817. *)
  8818. # Older versions of the 11.00 compiler do not understand -b yet
  8819. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8821. $as_echo_n "checking if $CC understands -b... " >&6; }
  8822. if ${lt_cv_prog_compiler__b+:} false; then :
  8823. $as_echo_n "(cached) " >&6
  8824. else
  8825. lt_cv_prog_compiler__b=no
  8826. save_LDFLAGS="$LDFLAGS"
  8827. LDFLAGS="$LDFLAGS -b"
  8828. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8829. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8830. # The linker can only warn and ignore the option if not recognized
  8831. # So say no if there are warnings
  8832. if test -s conftest.err; then
  8833. # Append any errors to the config.log.
  8834. cat conftest.err 1>&5
  8835. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8836. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8837. if diff conftest.exp conftest.er2 >/dev/null; then
  8838. lt_cv_prog_compiler__b=yes
  8839. fi
  8840. else
  8841. lt_cv_prog_compiler__b=yes
  8842. fi
  8843. fi
  8844. $RM -r conftest*
  8845. LDFLAGS="$save_LDFLAGS"
  8846. fi
  8847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8848. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8849. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8850. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8851. else
  8852. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8853. fi
  8854. ;;
  8855. esac
  8856. fi
  8857. if test "$with_gnu_ld" = no; then
  8858. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8859. hardcode_libdir_separator=:
  8860. case $host_cpu in
  8861. hppa*64*|ia64*)
  8862. hardcode_direct=no
  8863. hardcode_shlibpath_var=no
  8864. ;;
  8865. *)
  8866. hardcode_direct=yes
  8867. hardcode_direct_absolute=yes
  8868. export_dynamic_flag_spec='${wl}-E'
  8869. # hardcode_minus_L: Not really in the search PATH,
  8870. # but as the default location of the library.
  8871. hardcode_minus_L=yes
  8872. ;;
  8873. esac
  8874. fi
  8875. ;;
  8876. irix5* | irix6* | nonstopux*)
  8877. if test "$GCC" = yes; then
  8878. 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'
  8879. # Try to use the -exported_symbol ld option, if it does not
  8880. # work, assume that -exports_file does not work either and
  8881. # implicitly export all symbols.
  8882. save_LDFLAGS="$LDFLAGS"
  8883. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8885. /* end confdefs.h. */
  8886. int foo(void) {}
  8887. _ACEOF
  8888. if ac_fn_c_try_link "$LINENO"; then :
  8889. 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'
  8890. fi
  8891. rm -f core conftest.err conftest.$ac_objext \
  8892. conftest$ac_exeext conftest.$ac_ext
  8893. LDFLAGS="$save_LDFLAGS"
  8894. else
  8895. 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'
  8896. 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'
  8897. fi
  8898. archive_cmds_need_lc='no'
  8899. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8900. hardcode_libdir_separator=:
  8901. inherit_rpath=yes
  8902. link_all_deplibs=yes
  8903. ;;
  8904. netbsd*)
  8905. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8906. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8907. else
  8908. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8909. fi
  8910. hardcode_libdir_flag_spec='-R$libdir'
  8911. hardcode_direct=yes
  8912. hardcode_shlibpath_var=no
  8913. ;;
  8914. newsos6)
  8915. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8916. hardcode_direct=yes
  8917. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8918. hardcode_libdir_separator=:
  8919. hardcode_shlibpath_var=no
  8920. ;;
  8921. *nto* | *qnx*)
  8922. ;;
  8923. openbsd*)
  8924. if test -f /usr/libexec/ld.so; then
  8925. hardcode_direct=yes
  8926. hardcode_shlibpath_var=no
  8927. hardcode_direct_absolute=yes
  8928. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8929. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8930. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8931. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8932. export_dynamic_flag_spec='${wl}-E'
  8933. else
  8934. case $host_os in
  8935. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8936. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8937. hardcode_libdir_flag_spec='-R$libdir'
  8938. ;;
  8939. *)
  8940. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8941. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8942. ;;
  8943. esac
  8944. fi
  8945. else
  8946. ld_shlibs=no
  8947. fi
  8948. ;;
  8949. os2*)
  8950. hardcode_libdir_flag_spec='-L$libdir'
  8951. hardcode_minus_L=yes
  8952. allow_undefined_flag=unsupported
  8953. 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'
  8954. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8955. ;;
  8956. osf3*)
  8957. if test "$GCC" = yes; then
  8958. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8959. 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'
  8960. else
  8961. allow_undefined_flag=' -expect_unresolved \*'
  8962. 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'
  8963. fi
  8964. archive_cmds_need_lc='no'
  8965. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8966. hardcode_libdir_separator=:
  8967. ;;
  8968. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8969. if test "$GCC" = yes; then
  8970. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8971. 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'
  8972. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8973. else
  8974. allow_undefined_flag=' -expect_unresolved \*'
  8975. 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'
  8976. 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~
  8977. $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'
  8978. # Both c and cxx compiler support -rpath directly
  8979. hardcode_libdir_flag_spec='-rpath $libdir'
  8980. fi
  8981. archive_cmds_need_lc='no'
  8982. hardcode_libdir_separator=:
  8983. ;;
  8984. solaris*)
  8985. no_undefined_flag=' -z defs'
  8986. if test "$GCC" = yes; then
  8987. wlarc='${wl}'
  8988. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8990. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8991. else
  8992. case `$CC -V 2>&1` in
  8993. *"Compilers 5.0"*)
  8994. wlarc=''
  8995. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8996. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8997. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8998. ;;
  8999. *)
  9000. wlarc='${wl}'
  9001. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9002. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9003. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9004. ;;
  9005. esac
  9006. fi
  9007. hardcode_libdir_flag_spec='-R$libdir'
  9008. hardcode_shlibpath_var=no
  9009. case $host_os in
  9010. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9011. *)
  9012. # The compiler driver will combine and reorder linker options,
  9013. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9014. # but is careful enough not to reorder.
  9015. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9016. if test "$GCC" = yes; then
  9017. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9018. else
  9019. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9020. fi
  9021. ;;
  9022. esac
  9023. link_all_deplibs=yes
  9024. ;;
  9025. sunos4*)
  9026. if test "x$host_vendor" = xsequent; then
  9027. # Use $CC to link under sequent, because it throws in some extra .o
  9028. # files that make .init and .fini sections work.
  9029. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9030. else
  9031. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9032. fi
  9033. hardcode_libdir_flag_spec='-L$libdir'
  9034. hardcode_direct=yes
  9035. hardcode_minus_L=yes
  9036. hardcode_shlibpath_var=no
  9037. ;;
  9038. sysv4)
  9039. case $host_vendor in
  9040. sni)
  9041. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9042. hardcode_direct=yes # is this really true???
  9043. ;;
  9044. siemens)
  9045. ## LD is ld it makes a PLAMLIB
  9046. ## CC just makes a GrossModule.
  9047. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9048. reload_cmds='$CC -r -o $output$reload_objs'
  9049. hardcode_direct=no
  9050. ;;
  9051. motorola)
  9052. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9053. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9054. ;;
  9055. esac
  9056. runpath_var='LD_RUN_PATH'
  9057. hardcode_shlibpath_var=no
  9058. ;;
  9059. sysv4.3*)
  9060. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9061. hardcode_shlibpath_var=no
  9062. export_dynamic_flag_spec='-Bexport'
  9063. ;;
  9064. sysv4*MP*)
  9065. if test -d /usr/nec; then
  9066. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9067. hardcode_shlibpath_var=no
  9068. runpath_var=LD_RUN_PATH
  9069. hardcode_runpath_var=yes
  9070. ld_shlibs=yes
  9071. fi
  9072. ;;
  9073. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9074. no_undefined_flag='${wl}-z,text'
  9075. archive_cmds_need_lc=no
  9076. hardcode_shlibpath_var=no
  9077. runpath_var='LD_RUN_PATH'
  9078. if test "$GCC" = yes; then
  9079. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9080. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9081. else
  9082. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9083. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9084. fi
  9085. ;;
  9086. sysv5* | sco3.2v5* | sco5v6*)
  9087. # Note: We can NOT use -z defs as we might desire, because we do not
  9088. # link with -lc, and that would cause any symbols used from libc to
  9089. # always be unresolved, which means just about no library would
  9090. # ever link correctly. If we're not using GNU ld we use -z text
  9091. # though, which does catch some bad symbols but isn't as heavy-handed
  9092. # as -z defs.
  9093. no_undefined_flag='${wl}-z,text'
  9094. allow_undefined_flag='${wl}-z,nodefs'
  9095. archive_cmds_need_lc=no
  9096. hardcode_shlibpath_var=no
  9097. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9098. hardcode_libdir_separator=':'
  9099. link_all_deplibs=yes
  9100. export_dynamic_flag_spec='${wl}-Bexport'
  9101. runpath_var='LD_RUN_PATH'
  9102. if test "$GCC" = yes; then
  9103. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9104. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9105. else
  9106. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9107. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9108. fi
  9109. ;;
  9110. uts4*)
  9111. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9112. hardcode_libdir_flag_spec='-L$libdir'
  9113. hardcode_shlibpath_var=no
  9114. ;;
  9115. *)
  9116. ld_shlibs=no
  9117. ;;
  9118. esac
  9119. if test x$host_vendor = xsni; then
  9120. case $host in
  9121. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9122. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9123. ;;
  9124. esac
  9125. fi
  9126. fi
  9127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9128. $as_echo "$ld_shlibs" >&6; }
  9129. test "$ld_shlibs" = no && can_build_shared=no
  9130. with_gnu_ld=$with_gnu_ld
  9131. #
  9132. # Do we need to explicitly link libc?
  9133. #
  9134. case "x$archive_cmds_need_lc" in
  9135. x|xyes)
  9136. # Assume -lc should be added
  9137. archive_cmds_need_lc=yes
  9138. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9139. case $archive_cmds in
  9140. *'~'*)
  9141. # FIXME: we may have to deal with multi-command sequences.
  9142. ;;
  9143. '$CC '*)
  9144. # Test whether the compiler implicitly links with -lc since on some
  9145. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9146. # to ld, don't add -lc before -lgcc.
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9148. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9149. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9150. $as_echo_n "(cached) " >&6
  9151. else
  9152. $RM conftest*
  9153. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9154. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9155. (eval $ac_compile) 2>&5
  9156. ac_status=$?
  9157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9158. test $ac_status = 0; } 2>conftest.err; then
  9159. soname=conftest
  9160. lib=conftest
  9161. libobjs=conftest.$ac_objext
  9162. deplibs=
  9163. wl=$lt_prog_compiler_wl
  9164. pic_flag=$lt_prog_compiler_pic
  9165. compiler_flags=-v
  9166. linker_flags=-v
  9167. verstring=
  9168. output_objdir=.
  9169. libname=conftest
  9170. lt_save_allow_undefined_flag=$allow_undefined_flag
  9171. allow_undefined_flag=
  9172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9173. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9174. ac_status=$?
  9175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9176. test $ac_status = 0; }
  9177. then
  9178. lt_cv_archive_cmds_need_lc=no
  9179. else
  9180. lt_cv_archive_cmds_need_lc=yes
  9181. fi
  9182. allow_undefined_flag=$lt_save_allow_undefined_flag
  9183. else
  9184. cat conftest.err 1>&5
  9185. fi
  9186. $RM conftest*
  9187. fi
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9189. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9190. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9191. ;;
  9192. esac
  9193. fi
  9194. ;;
  9195. esac
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9197. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9198. if test "$GCC" = yes; then
  9199. case $host_os in
  9200. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9201. *) lt_awk_arg="/^libraries:/" ;;
  9202. esac
  9203. case $host_os in
  9204. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9205. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9206. esac
  9207. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9208. case $lt_search_path_spec in
  9209. *\;*)
  9210. # if the path contains ";" then we assume it to be the separator
  9211. # otherwise default to the standard path separator (i.e. ":") - it is
  9212. # assumed that no part of a normal pathname contains ";" but that should
  9213. # okay in the real world where ";" in dirpaths is itself problematic.
  9214. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9215. ;;
  9216. *)
  9217. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9218. ;;
  9219. esac
  9220. # Ok, now we have the path, separated by spaces, we can step through it
  9221. # and add multilib dir if necessary.
  9222. lt_tmp_lt_search_path_spec=
  9223. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9224. for lt_sys_path in $lt_search_path_spec; do
  9225. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9226. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9227. else
  9228. test -d "$lt_sys_path" && \
  9229. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9230. fi
  9231. done
  9232. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9233. BEGIN {RS=" "; FS="/|\n";} {
  9234. lt_foo="";
  9235. lt_count=0;
  9236. for (lt_i = NF; lt_i > 0; lt_i--) {
  9237. if ($lt_i != "" && $lt_i != ".") {
  9238. if ($lt_i == "..") {
  9239. lt_count++;
  9240. } else {
  9241. if (lt_count == 0) {
  9242. lt_foo="/" $lt_i lt_foo;
  9243. } else {
  9244. lt_count--;
  9245. }
  9246. }
  9247. }
  9248. }
  9249. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9250. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9251. }'`
  9252. # AWK program above erroneously prepends '/' to C:/dos/paths
  9253. # for these hosts.
  9254. case $host_os in
  9255. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9256. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9257. esac
  9258. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9259. else
  9260. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9261. fi
  9262. library_names_spec=
  9263. libname_spec='lib$name'
  9264. soname_spec=
  9265. shrext_cmds=".so"
  9266. postinstall_cmds=
  9267. postuninstall_cmds=
  9268. finish_cmds=
  9269. finish_eval=
  9270. shlibpath_var=
  9271. shlibpath_overrides_runpath=unknown
  9272. version_type=none
  9273. dynamic_linker="$host_os ld.so"
  9274. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9275. need_lib_prefix=unknown
  9276. hardcode_into_libs=no
  9277. # when you set need_version to no, make sure it does not cause -set_version
  9278. # flags to be left without arguments
  9279. need_version=unknown
  9280. case $host_os in
  9281. aix3*)
  9282. version_type=linux
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9284. shlibpath_var=LIBPATH
  9285. # AIX 3 has no versioning support, so we append a major version to the name.
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. ;;
  9288. aix[4-9]*)
  9289. version_type=linux
  9290. need_lib_prefix=no
  9291. need_version=no
  9292. hardcode_into_libs=yes
  9293. if test "$host_cpu" = ia64; then
  9294. # AIX 5 supports IA64
  9295. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9296. shlibpath_var=LD_LIBRARY_PATH
  9297. else
  9298. # With GCC up to 2.95.x, collect2 would create an import file
  9299. # for dependence libraries. The import file would start with
  9300. # the line `#! .'. This would cause the generated library to
  9301. # depend on `.', always an invalid library. This was fixed in
  9302. # development snapshots of GCC prior to 3.0.
  9303. case $host_os in
  9304. aix4 | aix4.[01] | aix4.[01].*)
  9305. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9306. echo ' yes '
  9307. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9308. :
  9309. else
  9310. can_build_shared=no
  9311. fi
  9312. ;;
  9313. esac
  9314. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9315. # soname into executable. Probably we can add versioning support to
  9316. # collect2, so additional links can be useful in future.
  9317. if test "$aix_use_runtimelinking" = yes; then
  9318. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9319. # instead of lib<name>.a to let people know that these are not
  9320. # typical AIX shared libraries.
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9322. else
  9323. # We preserve .a as extension for shared libraries through AIX4.2
  9324. # and later when we are not doing run time linking.
  9325. library_names_spec='${libname}${release}.a $libname.a'
  9326. soname_spec='${libname}${release}${shared_ext}$major'
  9327. fi
  9328. shlibpath_var=LIBPATH
  9329. fi
  9330. ;;
  9331. amigaos*)
  9332. case $host_cpu in
  9333. powerpc)
  9334. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9335. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9337. ;;
  9338. m68k)
  9339. library_names_spec='$libname.ixlibrary $libname.a'
  9340. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9341. 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'
  9342. ;;
  9343. esac
  9344. ;;
  9345. beos*)
  9346. library_names_spec='${libname}${shared_ext}'
  9347. dynamic_linker="$host_os ld.so"
  9348. shlibpath_var=LIBRARY_PATH
  9349. ;;
  9350. bsdi[45]*)
  9351. version_type=linux
  9352. need_version=no
  9353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9354. soname_spec='${libname}${release}${shared_ext}$major'
  9355. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9358. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9359. # the default ld.so.conf also contains /usr/contrib/lib and
  9360. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9361. # libtool to hard-code these into programs
  9362. ;;
  9363. cygwin* | mingw* | pw32* | cegcc*)
  9364. version_type=windows
  9365. shrext_cmds=".dll"
  9366. need_version=no
  9367. need_lib_prefix=no
  9368. case $GCC,$host_os in
  9369. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9370. library_names_spec='$libname.dll.a'
  9371. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9372. postinstall_cmds='base_file=`basename \${file}`~
  9373. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9374. dldir=$destdir/`dirname \$dlpath`~
  9375. test -d \$dldir || mkdir -p \$dldir~
  9376. $install_prog $dir/$dlname \$dldir/$dlname~
  9377. chmod a+x \$dldir/$dlname~
  9378. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9379. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9380. fi'
  9381. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9382. dlpath=$dir/\$dldll~
  9383. $RM \$dlpath'
  9384. shlibpath_overrides_runpath=yes
  9385. case $host_os in
  9386. cygwin*)
  9387. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9388. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9389. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9390. ;;
  9391. mingw* | cegcc*)
  9392. # MinGW DLLs use traditional 'lib' prefix
  9393. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9394. ;;
  9395. pw32*)
  9396. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9397. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9398. ;;
  9399. esac
  9400. ;;
  9401. *)
  9402. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9403. ;;
  9404. esac
  9405. dynamic_linker='Win32 ld.exe'
  9406. # FIXME: first we should search . and the directory the executable is in
  9407. shlibpath_var=PATH
  9408. ;;
  9409. darwin* | rhapsody*)
  9410. dynamic_linker="$host_os dyld"
  9411. version_type=darwin
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9415. soname_spec='${libname}${release}${major}$shared_ext'
  9416. shlibpath_overrides_runpath=yes
  9417. shlibpath_var=DYLD_LIBRARY_PATH
  9418. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9419. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9420. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9421. ;;
  9422. dgux*)
  9423. version_type=linux
  9424. need_lib_prefix=no
  9425. need_version=no
  9426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9427. soname_spec='${libname}${release}${shared_ext}$major'
  9428. shlibpath_var=LD_LIBRARY_PATH
  9429. ;;
  9430. freebsd* | dragonfly*)
  9431. # DragonFly does not have aout. When/if they implement a new
  9432. # versioning mechanism, adjust this.
  9433. if test -x /usr/bin/objformat; then
  9434. objformat=`/usr/bin/objformat`
  9435. else
  9436. case $host_os in
  9437. freebsd[23].*) objformat=aout ;;
  9438. *) objformat=elf ;;
  9439. esac
  9440. fi
  9441. version_type=freebsd-$objformat
  9442. case $version_type in
  9443. freebsd-elf*)
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9445. need_version=no
  9446. need_lib_prefix=no
  9447. ;;
  9448. freebsd-*)
  9449. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9450. need_version=yes
  9451. ;;
  9452. esac
  9453. shlibpath_var=LD_LIBRARY_PATH
  9454. case $host_os in
  9455. freebsd2.*)
  9456. shlibpath_overrides_runpath=yes
  9457. ;;
  9458. freebsd3.[01]* | freebsdelf3.[01]*)
  9459. shlibpath_overrides_runpath=yes
  9460. hardcode_into_libs=yes
  9461. ;;
  9462. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9463. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9464. shlibpath_overrides_runpath=no
  9465. hardcode_into_libs=yes
  9466. ;;
  9467. *) # from 4.6 on, and DragonFly
  9468. shlibpath_overrides_runpath=yes
  9469. hardcode_into_libs=yes
  9470. ;;
  9471. esac
  9472. ;;
  9473. haiku*)
  9474. version_type=linux
  9475. need_lib_prefix=no
  9476. need_version=no
  9477. dynamic_linker="$host_os runtime_loader"
  9478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9479. soname_spec='${libname}${release}${shared_ext}$major'
  9480. shlibpath_var=LIBRARY_PATH
  9481. shlibpath_overrides_runpath=yes
  9482. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9483. hardcode_into_libs=yes
  9484. ;;
  9485. hpux9* | hpux10* | hpux11*)
  9486. # Give a soname corresponding to the major version so that dld.sl refuses to
  9487. # link against other versions.
  9488. version_type=sunos
  9489. need_lib_prefix=no
  9490. need_version=no
  9491. case $host_cpu in
  9492. ia64*)
  9493. shrext_cmds='.so'
  9494. hardcode_into_libs=yes
  9495. dynamic_linker="$host_os dld.so"
  9496. shlibpath_var=LD_LIBRARY_PATH
  9497. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9499. soname_spec='${libname}${release}${shared_ext}$major'
  9500. if test "X$HPUX_IA64_MODE" = X32; then
  9501. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9502. else
  9503. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9504. fi
  9505. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9506. ;;
  9507. hppa*64*)
  9508. shrext_cmds='.sl'
  9509. hardcode_into_libs=yes
  9510. dynamic_linker="$host_os dld.sl"
  9511. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9512. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9514. soname_spec='${libname}${release}${shared_ext}$major'
  9515. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9516. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9517. ;;
  9518. *)
  9519. shrext_cmds='.sl'
  9520. dynamic_linker="$host_os dld.sl"
  9521. shlibpath_var=SHLIB_PATH
  9522. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9524. soname_spec='${libname}${release}${shared_ext}$major'
  9525. ;;
  9526. esac
  9527. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9528. postinstall_cmds='chmod 555 $lib'
  9529. # or fails outright, so override atomically:
  9530. install_override_mode=555
  9531. ;;
  9532. interix[3-9]*)
  9533. version_type=linux
  9534. need_lib_prefix=no
  9535. need_version=no
  9536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9537. soname_spec='${libname}${release}${shared_ext}$major'
  9538. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9539. shlibpath_var=LD_LIBRARY_PATH
  9540. shlibpath_overrides_runpath=no
  9541. hardcode_into_libs=yes
  9542. ;;
  9543. irix5* | irix6* | nonstopux*)
  9544. case $host_os in
  9545. nonstopux*) version_type=nonstopux ;;
  9546. *)
  9547. if test "$lt_cv_prog_gnu_ld" = yes; then
  9548. version_type=linux
  9549. else
  9550. version_type=irix
  9551. fi ;;
  9552. esac
  9553. need_lib_prefix=no
  9554. need_version=no
  9555. soname_spec='${libname}${release}${shared_ext}$major'
  9556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9557. case $host_os in
  9558. irix5* | nonstopux*)
  9559. libsuff= shlibsuff=
  9560. ;;
  9561. *)
  9562. case $LD in # libtool.m4 will add one of these switches to LD
  9563. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9564. libsuff= shlibsuff= libmagic=32-bit;;
  9565. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9566. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9567. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9568. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9569. *) libsuff= shlibsuff= libmagic=never-match;;
  9570. esac
  9571. ;;
  9572. esac
  9573. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9574. shlibpath_overrides_runpath=no
  9575. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9576. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9577. hardcode_into_libs=yes
  9578. ;;
  9579. # No shared lib support for Linux oldld, aout, or coff.
  9580. linux*oldld* | linux*aout* | linux*coff*)
  9581. dynamic_linker=no
  9582. ;;
  9583. # This must be Linux ELF.
  9584. # uclinux* changes (here and below) have been submitted to the libtool
  9585. # project, but have not yet been accepted: they are GCC-local changes
  9586. # for the time being. (See
  9587. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9588. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9589. version_type=linux
  9590. need_lib_prefix=no
  9591. need_version=no
  9592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9593. soname_spec='${libname}${release}${shared_ext}$major'
  9594. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9595. shlibpath_var=LD_LIBRARY_PATH
  9596. shlibpath_overrides_runpath=no
  9597. # Some binutils ld are patched to set DT_RUNPATH
  9598. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9599. $as_echo_n "(cached) " >&6
  9600. else
  9601. lt_cv_shlibpath_overrides_runpath=no
  9602. save_LDFLAGS=$LDFLAGS
  9603. save_libdir=$libdir
  9604. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9605. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9607. /* end confdefs.h. */
  9608. int
  9609. main ()
  9610. {
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. if ac_fn_c_try_link "$LINENO"; then :
  9616. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9617. lt_cv_shlibpath_overrides_runpath=yes
  9618. fi
  9619. fi
  9620. rm -f core conftest.err conftest.$ac_objext \
  9621. conftest$ac_exeext conftest.$ac_ext
  9622. LDFLAGS=$save_LDFLAGS
  9623. libdir=$save_libdir
  9624. fi
  9625. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9626. # This implies no fast_install, which is unacceptable.
  9627. # Some rework will be needed to allow for fast_install
  9628. # before this can be enabled.
  9629. hardcode_into_libs=yes
  9630. # Append ld.so.conf contents to the search path
  9631. if test -f /etc/ld.so.conf; then
  9632. 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' ' '`
  9633. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9634. fi
  9635. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9636. # powerpc, because MkLinux only supported shared libraries with the
  9637. # GNU dynamic linker. Since this was broken with cross compilers,
  9638. # most powerpc-linux boxes support dynamic linking these days and
  9639. # people can always --disable-shared, the test was removed, and we
  9640. # assume the GNU/Linux dynamic linker is in use.
  9641. dynamic_linker='GNU/Linux ld.so'
  9642. ;;
  9643. netbsd*)
  9644. version_type=sunos
  9645. need_lib_prefix=no
  9646. need_version=no
  9647. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9649. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9650. dynamic_linker='NetBSD (a.out) ld.so'
  9651. else
  9652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9653. soname_spec='${libname}${release}${shared_ext}$major'
  9654. dynamic_linker='NetBSD ld.elf_so'
  9655. fi
  9656. shlibpath_var=LD_LIBRARY_PATH
  9657. shlibpath_overrides_runpath=yes
  9658. hardcode_into_libs=yes
  9659. ;;
  9660. newsos6)
  9661. version_type=linux
  9662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9663. shlibpath_var=LD_LIBRARY_PATH
  9664. shlibpath_overrides_runpath=yes
  9665. ;;
  9666. *nto* | *qnx*)
  9667. version_type=qnx
  9668. need_lib_prefix=no
  9669. need_version=no
  9670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9671. soname_spec='${libname}${release}${shared_ext}$major'
  9672. shlibpath_var=LD_LIBRARY_PATH
  9673. shlibpath_overrides_runpath=no
  9674. hardcode_into_libs=yes
  9675. dynamic_linker='ldqnx.so'
  9676. ;;
  9677. openbsd*)
  9678. version_type=sunos
  9679. sys_lib_dlsearch_path_spec="/usr/lib"
  9680. need_lib_prefix=no
  9681. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9682. case $host_os in
  9683. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9684. *) need_version=no ;;
  9685. esac
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9687. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9688. shlibpath_var=LD_LIBRARY_PATH
  9689. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9690. case $host_os in
  9691. openbsd2.[89] | openbsd2.[89].*)
  9692. shlibpath_overrides_runpath=no
  9693. ;;
  9694. *)
  9695. shlibpath_overrides_runpath=yes
  9696. ;;
  9697. esac
  9698. else
  9699. shlibpath_overrides_runpath=yes
  9700. fi
  9701. ;;
  9702. os2*)
  9703. libname_spec='$name'
  9704. shrext_cmds=".dll"
  9705. need_lib_prefix=no
  9706. library_names_spec='$libname${shared_ext} $libname.a'
  9707. dynamic_linker='OS/2 ld.exe'
  9708. shlibpath_var=LIBPATH
  9709. ;;
  9710. osf3* | osf4* | osf5*)
  9711. version_type=osf
  9712. need_lib_prefix=no
  9713. need_version=no
  9714. soname_spec='${libname}${release}${shared_ext}$major'
  9715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9718. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9719. ;;
  9720. rdos*)
  9721. dynamic_linker=no
  9722. ;;
  9723. solaris*)
  9724. version_type=linux
  9725. need_lib_prefix=no
  9726. need_version=no
  9727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9728. soname_spec='${libname}${release}${shared_ext}$major'
  9729. shlibpath_var=LD_LIBRARY_PATH
  9730. shlibpath_overrides_runpath=yes
  9731. hardcode_into_libs=yes
  9732. # ldd complains unless libraries are executable
  9733. postinstall_cmds='chmod +x $lib'
  9734. ;;
  9735. sunos4*)
  9736. version_type=sunos
  9737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9738. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9739. shlibpath_var=LD_LIBRARY_PATH
  9740. shlibpath_overrides_runpath=yes
  9741. if test "$with_gnu_ld" = yes; then
  9742. need_lib_prefix=no
  9743. fi
  9744. need_version=yes
  9745. ;;
  9746. sysv4 | sysv4.3*)
  9747. version_type=linux
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9749. soname_spec='${libname}${release}${shared_ext}$major'
  9750. shlibpath_var=LD_LIBRARY_PATH
  9751. case $host_vendor in
  9752. sni)
  9753. shlibpath_overrides_runpath=no
  9754. need_lib_prefix=no
  9755. runpath_var=LD_RUN_PATH
  9756. ;;
  9757. siemens)
  9758. need_lib_prefix=no
  9759. ;;
  9760. motorola)
  9761. need_lib_prefix=no
  9762. need_version=no
  9763. shlibpath_overrides_runpath=no
  9764. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9765. ;;
  9766. esac
  9767. ;;
  9768. sysv4*MP*)
  9769. if test -d /usr/nec ;then
  9770. version_type=linux
  9771. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9772. soname_spec='$libname${shared_ext}.$major'
  9773. shlibpath_var=LD_LIBRARY_PATH
  9774. fi
  9775. ;;
  9776. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9777. version_type=freebsd-elf
  9778. need_lib_prefix=no
  9779. need_version=no
  9780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9781. soname_spec='${libname}${release}${shared_ext}$major'
  9782. shlibpath_var=LD_LIBRARY_PATH
  9783. shlibpath_overrides_runpath=yes
  9784. hardcode_into_libs=yes
  9785. if test "$with_gnu_ld" = yes; then
  9786. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9787. else
  9788. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9789. case $host_os in
  9790. sco3.2v5*)
  9791. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9792. ;;
  9793. esac
  9794. fi
  9795. sys_lib_dlsearch_path_spec='/usr/lib'
  9796. ;;
  9797. tpf*)
  9798. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9799. version_type=linux
  9800. need_lib_prefix=no
  9801. need_version=no
  9802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. shlibpath_overrides_runpath=no
  9805. hardcode_into_libs=yes
  9806. ;;
  9807. uts4*)
  9808. version_type=linux
  9809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9810. soname_spec='${libname}${release}${shared_ext}$major'
  9811. shlibpath_var=LD_LIBRARY_PATH
  9812. ;;
  9813. *)
  9814. dynamic_linker=no
  9815. ;;
  9816. esac
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9818. $as_echo "$dynamic_linker" >&6; }
  9819. test "$dynamic_linker" = no && can_build_shared=no
  9820. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9821. if test "$GCC" = yes; then
  9822. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9823. fi
  9824. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9825. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9826. fi
  9827. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9828. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9829. fi
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9831. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9832. hardcode_action=
  9833. if test -n "$hardcode_libdir_flag_spec" ||
  9834. test -n "$runpath_var" ||
  9835. test "X$hardcode_automatic" = "Xyes" ; then
  9836. # We can hardcode non-existent directories.
  9837. if test "$hardcode_direct" != no &&
  9838. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9839. # have to relink, otherwise we might link with an installed library
  9840. # when we should be linking with a yet-to-be-installed one
  9841. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9842. test "$hardcode_minus_L" != no; then
  9843. # Linking always hardcodes the temporary library directory.
  9844. hardcode_action=relink
  9845. else
  9846. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9847. hardcode_action=immediate
  9848. fi
  9849. else
  9850. # We cannot hardcode anything, or else we can only hardcode existing
  9851. # directories.
  9852. hardcode_action=unsupported
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9855. $as_echo "$hardcode_action" >&6; }
  9856. if test "$hardcode_action" = relink ||
  9857. test "$inherit_rpath" = yes; then
  9858. # Fast installation is not supported
  9859. enable_fast_install=no
  9860. elif test "$shlibpath_overrides_runpath" = yes ||
  9861. test "$enable_shared" = no; then
  9862. # Fast installation is not necessary
  9863. enable_fast_install=needless
  9864. fi
  9865. if test "x$enable_dlopen" != xyes; then
  9866. enable_dlopen=unknown
  9867. enable_dlopen_self=unknown
  9868. enable_dlopen_self_static=unknown
  9869. else
  9870. lt_cv_dlopen=no
  9871. lt_cv_dlopen_libs=
  9872. case $host_os in
  9873. beos*)
  9874. lt_cv_dlopen="load_add_on"
  9875. lt_cv_dlopen_libs=
  9876. lt_cv_dlopen_self=yes
  9877. ;;
  9878. mingw* | pw32* | cegcc*)
  9879. lt_cv_dlopen="LoadLibrary"
  9880. lt_cv_dlopen_libs=
  9881. ;;
  9882. cygwin*)
  9883. lt_cv_dlopen="dlopen"
  9884. lt_cv_dlopen_libs=
  9885. ;;
  9886. darwin*)
  9887. # if libdl is installed we need to link against it
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9889. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9890. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9891. $as_echo_n "(cached) " >&6
  9892. else
  9893. ac_check_lib_save_LIBS=$LIBS
  9894. LIBS="-ldl $LIBS"
  9895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9896. /* end confdefs.h. */
  9897. /* Override any GCC internal prototype to avoid an error.
  9898. Use char because int might match the return type of a GCC
  9899. builtin and then its argument prototype would still apply. */
  9900. #ifdef __cplusplus
  9901. extern "C"
  9902. #endif
  9903. char dlopen ();
  9904. int
  9905. main ()
  9906. {
  9907. return dlopen ();
  9908. ;
  9909. return 0;
  9910. }
  9911. _ACEOF
  9912. if ac_fn_c_try_link "$LINENO"; then :
  9913. ac_cv_lib_dl_dlopen=yes
  9914. else
  9915. ac_cv_lib_dl_dlopen=no
  9916. fi
  9917. rm -f core conftest.err conftest.$ac_objext \
  9918. conftest$ac_exeext conftest.$ac_ext
  9919. LIBS=$ac_check_lib_save_LIBS
  9920. fi
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9922. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9923. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9924. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9925. else
  9926. lt_cv_dlopen="dyld"
  9927. lt_cv_dlopen_libs=
  9928. lt_cv_dlopen_self=yes
  9929. fi
  9930. ;;
  9931. *)
  9932. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9933. if test "x$ac_cv_func_shl_load" = xyes; then :
  9934. lt_cv_dlopen="shl_load"
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9937. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9938. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. ac_check_lib_save_LIBS=$LIBS
  9942. LIBS="-ldld $LIBS"
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. /* Override any GCC internal prototype to avoid an error.
  9946. Use char because int might match the return type of a GCC
  9947. builtin and then its argument prototype would still apply. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. #endif
  9951. char shl_load ();
  9952. int
  9953. main ()
  9954. {
  9955. return shl_load ();
  9956. ;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. if ac_fn_c_try_link "$LINENO"; then :
  9961. ac_cv_lib_dld_shl_load=yes
  9962. else
  9963. ac_cv_lib_dld_shl_load=no
  9964. fi
  9965. rm -f core conftest.err conftest.$ac_objext \
  9966. conftest$ac_exeext conftest.$ac_ext
  9967. LIBS=$ac_check_lib_save_LIBS
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9970. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9971. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9972. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9973. else
  9974. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9975. if test "x$ac_cv_func_dlopen" = xyes; then :
  9976. lt_cv_dlopen="dlopen"
  9977. else
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9979. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9980. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. ac_check_lib_save_LIBS=$LIBS
  9984. LIBS="-ldl $LIBS"
  9985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9986. /* end confdefs.h. */
  9987. /* Override any GCC internal prototype to avoid an error.
  9988. Use char because int might match the return type of a GCC
  9989. builtin and then its argument prototype would still apply. */
  9990. #ifdef __cplusplus
  9991. extern "C"
  9992. #endif
  9993. char dlopen ();
  9994. int
  9995. main ()
  9996. {
  9997. return dlopen ();
  9998. ;
  9999. return 0;
  10000. }
  10001. _ACEOF
  10002. if ac_fn_c_try_link "$LINENO"; then :
  10003. ac_cv_lib_dl_dlopen=yes
  10004. else
  10005. ac_cv_lib_dl_dlopen=no
  10006. fi
  10007. rm -f core conftest.err conftest.$ac_objext \
  10008. conftest$ac_exeext conftest.$ac_ext
  10009. LIBS=$ac_check_lib_save_LIBS
  10010. fi
  10011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10012. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10013. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10014. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10017. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10018. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10019. $as_echo_n "(cached) " >&6
  10020. else
  10021. ac_check_lib_save_LIBS=$LIBS
  10022. LIBS="-lsvld $LIBS"
  10023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10024. /* end confdefs.h. */
  10025. /* Override any GCC internal prototype to avoid an error.
  10026. Use char because int might match the return type of a GCC
  10027. builtin and then its argument prototype would still apply. */
  10028. #ifdef __cplusplus
  10029. extern "C"
  10030. #endif
  10031. char dlopen ();
  10032. int
  10033. main ()
  10034. {
  10035. return dlopen ();
  10036. ;
  10037. return 0;
  10038. }
  10039. _ACEOF
  10040. if ac_fn_c_try_link "$LINENO"; then :
  10041. ac_cv_lib_svld_dlopen=yes
  10042. else
  10043. ac_cv_lib_svld_dlopen=no
  10044. fi
  10045. rm -f core conftest.err conftest.$ac_objext \
  10046. conftest$ac_exeext conftest.$ac_ext
  10047. LIBS=$ac_check_lib_save_LIBS
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10050. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10051. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10052. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10053. else
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10055. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10056. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. ac_check_lib_save_LIBS=$LIBS
  10060. LIBS="-ldld $LIBS"
  10061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10062. /* end confdefs.h. */
  10063. /* Override any GCC internal prototype to avoid an error.
  10064. Use char because int might match the return type of a GCC
  10065. builtin and then its argument prototype would still apply. */
  10066. #ifdef __cplusplus
  10067. extern "C"
  10068. #endif
  10069. char dld_link ();
  10070. int
  10071. main ()
  10072. {
  10073. return dld_link ();
  10074. ;
  10075. return 0;
  10076. }
  10077. _ACEOF
  10078. if ac_fn_c_try_link "$LINENO"; then :
  10079. ac_cv_lib_dld_dld_link=yes
  10080. else
  10081. ac_cv_lib_dld_dld_link=no
  10082. fi
  10083. rm -f core conftest.err conftest.$ac_objext \
  10084. conftest$ac_exeext conftest.$ac_ext
  10085. LIBS=$ac_check_lib_save_LIBS
  10086. fi
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10088. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10089. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10090. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10091. fi
  10092. fi
  10093. fi
  10094. fi
  10095. fi
  10096. fi
  10097. ;;
  10098. esac
  10099. if test "x$lt_cv_dlopen" != xno; then
  10100. enable_dlopen=yes
  10101. else
  10102. enable_dlopen=no
  10103. fi
  10104. case $lt_cv_dlopen in
  10105. dlopen)
  10106. save_CPPFLAGS="$CPPFLAGS"
  10107. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10108. save_LDFLAGS="$LDFLAGS"
  10109. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10110. save_LIBS="$LIBS"
  10111. LIBS="$lt_cv_dlopen_libs $LIBS"
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10113. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10114. if ${lt_cv_dlopen_self+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. if test "$cross_compiling" = yes; then :
  10118. lt_cv_dlopen_self=cross
  10119. else
  10120. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10121. lt_status=$lt_dlunknown
  10122. cat > conftest.$ac_ext <<_LT_EOF
  10123. #line 11753 "configure"
  10124. #include "confdefs.h"
  10125. #if HAVE_DLFCN_H
  10126. #include <dlfcn.h>
  10127. #endif
  10128. #include <stdio.h>
  10129. #ifdef RTLD_GLOBAL
  10130. # define LT_DLGLOBAL RTLD_GLOBAL
  10131. #else
  10132. # ifdef DL_GLOBAL
  10133. # define LT_DLGLOBAL DL_GLOBAL
  10134. # else
  10135. # define LT_DLGLOBAL 0
  10136. # endif
  10137. #endif
  10138. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10139. find out it does not work in some platform. */
  10140. #ifndef LT_DLLAZY_OR_NOW
  10141. # ifdef RTLD_LAZY
  10142. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10143. # else
  10144. # ifdef DL_LAZY
  10145. # define LT_DLLAZY_OR_NOW DL_LAZY
  10146. # else
  10147. # ifdef RTLD_NOW
  10148. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10149. # else
  10150. # ifdef DL_NOW
  10151. # define LT_DLLAZY_OR_NOW DL_NOW
  10152. # else
  10153. # define LT_DLLAZY_OR_NOW 0
  10154. # endif
  10155. # endif
  10156. # endif
  10157. # endif
  10158. #endif
  10159. /* When -fvisbility=hidden is used, assume the code has been annotated
  10160. correspondingly for the symbols needed. */
  10161. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10162. void fnord () __attribute__((visibility("default")));
  10163. #endif
  10164. void fnord () { int i=42; }
  10165. int main ()
  10166. {
  10167. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10168. int status = $lt_dlunknown;
  10169. if (self)
  10170. {
  10171. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10172. else
  10173. {
  10174. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10175. else puts (dlerror ());
  10176. }
  10177. /* dlclose (self); */
  10178. }
  10179. else
  10180. puts (dlerror ());
  10181. return status;
  10182. }
  10183. _LT_EOF
  10184. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10185. (eval $ac_link) 2>&5
  10186. ac_status=$?
  10187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10188. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10189. (./conftest; exit; ) >&5 2>/dev/null
  10190. lt_status=$?
  10191. case x$lt_status in
  10192. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10193. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10194. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10195. esac
  10196. else :
  10197. # compilation failed
  10198. lt_cv_dlopen_self=no
  10199. fi
  10200. fi
  10201. rm -fr conftest*
  10202. fi
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10204. $as_echo "$lt_cv_dlopen_self" >&6; }
  10205. if test "x$lt_cv_dlopen_self" = xyes; then
  10206. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10208. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10209. if ${lt_cv_dlopen_self_static+:} false; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. if test "$cross_compiling" = yes; then :
  10213. lt_cv_dlopen_self_static=cross
  10214. else
  10215. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10216. lt_status=$lt_dlunknown
  10217. cat > conftest.$ac_ext <<_LT_EOF
  10218. #line 11859 "configure"
  10219. #include "confdefs.h"
  10220. #if HAVE_DLFCN_H
  10221. #include <dlfcn.h>
  10222. #endif
  10223. #include <stdio.h>
  10224. #ifdef RTLD_GLOBAL
  10225. # define LT_DLGLOBAL RTLD_GLOBAL
  10226. #else
  10227. # ifdef DL_GLOBAL
  10228. # define LT_DLGLOBAL DL_GLOBAL
  10229. # else
  10230. # define LT_DLGLOBAL 0
  10231. # endif
  10232. #endif
  10233. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10234. find out it does not work in some platform. */
  10235. #ifndef LT_DLLAZY_OR_NOW
  10236. # ifdef RTLD_LAZY
  10237. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10238. # else
  10239. # ifdef DL_LAZY
  10240. # define LT_DLLAZY_OR_NOW DL_LAZY
  10241. # else
  10242. # ifdef RTLD_NOW
  10243. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10244. # else
  10245. # ifdef DL_NOW
  10246. # define LT_DLLAZY_OR_NOW DL_NOW
  10247. # else
  10248. # define LT_DLLAZY_OR_NOW 0
  10249. # endif
  10250. # endif
  10251. # endif
  10252. # endif
  10253. #endif
  10254. /* When -fvisbility=hidden is used, assume the code has been annotated
  10255. correspondingly for the symbols needed. */
  10256. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10257. void fnord () __attribute__((visibility("default")));
  10258. #endif
  10259. void fnord () { int i=42; }
  10260. int main ()
  10261. {
  10262. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10263. int status = $lt_dlunknown;
  10264. if (self)
  10265. {
  10266. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10267. else
  10268. {
  10269. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10270. else puts (dlerror ());
  10271. }
  10272. /* dlclose (self); */
  10273. }
  10274. else
  10275. puts (dlerror ());
  10276. return status;
  10277. }
  10278. _LT_EOF
  10279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10280. (eval $ac_link) 2>&5
  10281. ac_status=$?
  10282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10283. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10284. (./conftest; exit; ) >&5 2>/dev/null
  10285. lt_status=$?
  10286. case x$lt_status in
  10287. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10288. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10289. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10290. esac
  10291. else :
  10292. # compilation failed
  10293. lt_cv_dlopen_self_static=no
  10294. fi
  10295. fi
  10296. rm -fr conftest*
  10297. fi
  10298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10299. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10300. fi
  10301. CPPFLAGS="$save_CPPFLAGS"
  10302. LDFLAGS="$save_LDFLAGS"
  10303. LIBS="$save_LIBS"
  10304. ;;
  10305. esac
  10306. case $lt_cv_dlopen_self in
  10307. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10308. *) enable_dlopen_self=unknown ;;
  10309. esac
  10310. case $lt_cv_dlopen_self_static in
  10311. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10312. *) enable_dlopen_self_static=unknown ;;
  10313. esac
  10314. fi
  10315. striplib=
  10316. old_striplib=
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10318. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10319. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10320. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10321. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10323. $as_echo "yes" >&6; }
  10324. else
  10325. # FIXME - insert some real tests, host_os isn't really good enough
  10326. case $host_os in
  10327. darwin*)
  10328. if test -n "$STRIP" ; then
  10329. striplib="$STRIP -x"
  10330. old_striplib="$STRIP -S"
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10332. $as_echo "yes" >&6; }
  10333. else
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10335. $as_echo "no" >&6; }
  10336. fi
  10337. ;;
  10338. *)
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10340. $as_echo "no" >&6; }
  10341. ;;
  10342. esac
  10343. fi
  10344. # Report which library types will actually be built
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10346. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10348. $as_echo "$can_build_shared" >&6; }
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10350. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10351. test "$can_build_shared" = "no" && enable_shared=no
  10352. # On AIX, shared libraries and static libraries use the same namespace, and
  10353. # are all built from PIC.
  10354. case $host_os in
  10355. aix3*)
  10356. test "$enable_shared" = yes && enable_static=no
  10357. if test -n "$RANLIB"; then
  10358. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10359. postinstall_cmds='$RANLIB $lib'
  10360. fi
  10361. ;;
  10362. aix[4-9]*)
  10363. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10364. test "$enable_shared" = yes && enable_static=no
  10365. fi
  10366. ;;
  10367. esac
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10369. $as_echo "$enable_shared" >&6; }
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10371. $as_echo_n "checking whether to build static libraries... " >&6; }
  10372. # Make sure either enable_shared or enable_static is yes.
  10373. test "$enable_shared" = yes || enable_static=yes
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10375. $as_echo "$enable_static" >&6; }
  10376. fi
  10377. ac_ext=c
  10378. ac_cpp='$CPP $CPPFLAGS'
  10379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10382. CC="$lt_save_CC"
  10383. ac_config_commands="$ac_config_commands libtool"
  10384. # Only expand once:
  10385. gdc_save_DFLAGS=$GDCFLAGS
  10386. GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
  10387. # Source file extension for D test sources.
  10388. ac_ext=d
  10389. # Object file extension for compiled D test sources.
  10390. objext=o
  10391. objext_D=$objext
  10392. # Code to be used in simple compile tests
  10393. lt_simple_compile_test_code="\
  10394. module object;
  10395. shared int some_variable = 0;
  10396. "
  10397. # Code to be used in simple link tests
  10398. lt_simple_link_test_code="\
  10399. module object;
  10400. extern(C) int main() { return 0; }
  10401. "
  10402. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10403. # If no C compiler was specified, use CC.
  10404. LTCC=${LTCC-"$CC"}
  10405. # If no C compiler flags were specified, use CFLAGS.
  10406. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10407. # Allow CC to be a program name with arguments.
  10408. compiler=$CC
  10409. # save warnings/boilerplate of simple test code
  10410. ac_outfile=conftest.$ac_objext
  10411. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10412. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10413. _lt_compiler_boilerplate=`cat conftest.err`
  10414. $RM conftest*
  10415. ac_outfile=conftest.$ac_objext
  10416. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10417. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10418. _lt_linker_boilerplate=`cat conftest.err`
  10419. $RM -r conftest*
  10420. # Allow CC to be a program name with arguments.
  10421. lt_save_CC=$CC
  10422. lt_save_CFLAGS=$CFLAGS
  10423. lt_save_GCC=$GCC
  10424. GCC=yes
  10425. CC=${GDC-"gdc"}
  10426. CFLAGS=$GDCFLAGS
  10427. compiler=$CC
  10428. compiler_D=$CC
  10429. LD_D=$CC
  10430. for cc_temp in $compiler""; do
  10431. case $cc_temp in
  10432. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10433. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10434. \-*) ;;
  10435. *) break;;
  10436. esac
  10437. done
  10438. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10439. # GDC did not exist at the time GCC didn't implicitly link libc in.
  10440. archive_cmds_need_lc_D=no
  10441. old_archive_cmds_D=$old_archive_cmds
  10442. reload_flag_D=$reload_flag
  10443. reload_cmds_D=$reload_cmds
  10444. ## CAVEAT EMPTOR:
  10445. ## There is no encapsulation within the following macros, do not change
  10446. ## the running order or otherwise move them around unless you know exactly
  10447. ## what you are doing...
  10448. if test -n "$compiler"; then
  10449. lt_prog_compiler_no_builtin_flag_D=
  10450. if test "$GCC" = yes; then
  10451. case $cc_basename in
  10452. nvcc*)
  10453. lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
  10454. *)
  10455. lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
  10456. esac
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10458. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10459. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. lt_cv_prog_compiler_rtti_exceptions=no
  10463. ac_outfile=conftest.$ac_objext
  10464. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10465. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10466. # Insert the option either (1) after the last *FLAGS variable, or
  10467. # (2) before a word containing "conftest.", or (3) at the end.
  10468. # Note that $ac_compile itself does not contain backslashes and begins
  10469. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10470. # The option is referenced via a variable to avoid confusing sed.
  10471. lt_compile=`echo "$ac_compile" | $SED \
  10472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10474. -e 's:$: $lt_compiler_flag:'`
  10475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10476. (eval "$lt_compile" 2>conftest.err)
  10477. ac_status=$?
  10478. cat conftest.err >&5
  10479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10480. if (exit $ac_status) && test -s "$ac_outfile"; then
  10481. # The compiler can only warn and ignore the option if not recognized
  10482. # So say no if there are warnings other than the usual output.
  10483. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10484. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10485. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10486. lt_cv_prog_compiler_rtti_exceptions=yes
  10487. fi
  10488. fi
  10489. $RM conftest*
  10490. fi
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10492. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10493. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10494. lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
  10495. else
  10496. :
  10497. fi
  10498. fi
  10499. lt_prog_compiler_wl_D=
  10500. lt_prog_compiler_pic_D=
  10501. lt_prog_compiler_static_D=
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10503. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10504. if test "$GCC" = yes; then
  10505. lt_prog_compiler_wl_D='-Wl,'
  10506. lt_prog_compiler_static_D='-static'
  10507. case $host_os in
  10508. aix*)
  10509. # All AIX code is PIC.
  10510. if test "$host_cpu" = ia64; then
  10511. # AIX 5 now supports IA64 processor
  10512. lt_prog_compiler_static_D='-Bstatic'
  10513. fi
  10514. lt_prog_compiler_pic_D='-fPIC'
  10515. ;;
  10516. amigaos*)
  10517. case $host_cpu in
  10518. powerpc)
  10519. # see comment about AmigaOS4 .so support
  10520. lt_prog_compiler_pic_D='-fPIC'
  10521. ;;
  10522. m68k)
  10523. # FIXME: we need at least 68020 code to build shared libraries, but
  10524. # adding the `-m68020' flag to GCC prevents building anything better,
  10525. # like `-m68040'.
  10526. lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
  10527. ;;
  10528. esac
  10529. ;;
  10530. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10531. # PIC is the default for these OSes.
  10532. ;;
  10533. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10534. # This hack is so that the source file can tell whether it is being
  10535. # built for inclusion in a dll (and should export symbols for example).
  10536. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10537. # (--disable-auto-import) libraries
  10538. lt_prog_compiler_pic_D='-DDLL_EXPORT'
  10539. ;;
  10540. darwin* | rhapsody*)
  10541. # PIC is the default on this platform
  10542. # Common symbols not allowed in MH_DYLIB files
  10543. lt_prog_compiler_pic_D='-fno-common'
  10544. ;;
  10545. haiku*)
  10546. # PIC is the default for Haiku.
  10547. # The "-static" flag exists, but is broken.
  10548. lt_prog_compiler_static_D=
  10549. ;;
  10550. hpux*)
  10551. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10552. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10553. # sets the default TLS model and affects inlining.
  10554. case $host_cpu in
  10555. hppa*64*)
  10556. # +Z the default
  10557. ;;
  10558. *)
  10559. lt_prog_compiler_pic_D='-fPIC'
  10560. ;;
  10561. esac
  10562. ;;
  10563. interix[3-9]*)
  10564. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10565. # Instead, we relocate shared libraries at runtime.
  10566. ;;
  10567. msdosdjgpp*)
  10568. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10569. # on systems that don't support them.
  10570. lt_prog_compiler_can_build_shared_D=no
  10571. enable_shared=no
  10572. ;;
  10573. *nto* | *qnx*)
  10574. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10575. # it will coredump.
  10576. lt_prog_compiler_pic_D='-fPIC -shared'
  10577. ;;
  10578. sysv4*MP*)
  10579. if test -d /usr/nec; then
  10580. lt_prog_compiler_pic_D=-Kconform_pic
  10581. fi
  10582. ;;
  10583. *)
  10584. lt_prog_compiler_pic_D='-fPIC'
  10585. ;;
  10586. esac
  10587. case $cc_basename in
  10588. nvcc*) # Cuda Compiler Driver 2.2
  10589. lt_prog_compiler_wl_D='-Xlinker '
  10590. lt_prog_compiler_pic_D='-Xcompiler -fPIC'
  10591. ;;
  10592. esac
  10593. else
  10594. # PORTME Check for flag to pass linker flags through the system compiler.
  10595. case $host_os in
  10596. aix*)
  10597. lt_prog_compiler_wl_D='-Wl,'
  10598. if test "$host_cpu" = ia64; then
  10599. # AIX 5 now supports IA64 processor
  10600. lt_prog_compiler_static_D='-Bstatic'
  10601. else
  10602. lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
  10603. fi
  10604. ;;
  10605. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10606. # This hack is so that the source file can tell whether it is being
  10607. # built for inclusion in a dll (and should export symbols for example).
  10608. lt_prog_compiler_pic_D='-DDLL_EXPORT'
  10609. ;;
  10610. hpux9* | hpux10* | hpux11*)
  10611. lt_prog_compiler_wl_D='-Wl,'
  10612. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10613. # not for PA HP-UX.
  10614. case $host_cpu in
  10615. hppa*64*|ia64*)
  10616. # +Z the default
  10617. ;;
  10618. *)
  10619. lt_prog_compiler_pic_D='+Z'
  10620. ;;
  10621. esac
  10622. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10623. lt_prog_compiler_static_D='${wl}-a ${wl}archive'
  10624. ;;
  10625. irix5* | irix6* | nonstopux*)
  10626. lt_prog_compiler_wl_D='-Wl,'
  10627. # PIC (with -KPIC) is the default.
  10628. lt_prog_compiler_static_D='-non_shared'
  10629. ;;
  10630. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10631. case $cc_basename in
  10632. # old Intel for x86_64 which still supported -KPIC.
  10633. ecc*)
  10634. lt_prog_compiler_wl_D='-Wl,'
  10635. lt_prog_compiler_pic_D='-KPIC'
  10636. lt_prog_compiler_static_D='-static'
  10637. ;;
  10638. # icc used to be incompatible with GCC.
  10639. # ICC 10 doesn't accept -KPIC any more.
  10640. icc* | ifort*)
  10641. lt_prog_compiler_wl_D='-Wl,'
  10642. lt_prog_compiler_pic_D='-fPIC'
  10643. lt_prog_compiler_static_D='-static'
  10644. ;;
  10645. # Lahey Fortran 8.1.
  10646. lf95*)
  10647. lt_prog_compiler_wl_D='-Wl,'
  10648. lt_prog_compiler_pic_D='--shared'
  10649. lt_prog_compiler_static_D='--static'
  10650. ;;
  10651. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10652. # Portland Group compilers (*not* the Pentium gcc compiler,
  10653. # which looks to be a dead project)
  10654. lt_prog_compiler_wl_D='-Wl,'
  10655. lt_prog_compiler_pic_D='-fpic'
  10656. lt_prog_compiler_static_D='-Bstatic'
  10657. ;;
  10658. ccc*)
  10659. lt_prog_compiler_wl_D='-Wl,'
  10660. # All Alpha code is PIC.
  10661. lt_prog_compiler_static_D='-non_shared'
  10662. ;;
  10663. xl* | bgxl* | bgf* | mpixl*)
  10664. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10665. lt_prog_compiler_wl_D='-Wl,'
  10666. lt_prog_compiler_pic_D='-qpic'
  10667. lt_prog_compiler_static_D='-qstaticlink'
  10668. ;;
  10669. *)
  10670. case `$CC -V 2>&1 | sed 5q` in
  10671. *Sun\ F* | *Sun*Fortran*)
  10672. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10673. lt_prog_compiler_pic_D='-KPIC'
  10674. lt_prog_compiler_static_D='-Bstatic'
  10675. lt_prog_compiler_wl_D=''
  10676. ;;
  10677. *Sun\ C*)
  10678. # Sun C 5.9
  10679. lt_prog_compiler_pic_D='-KPIC'
  10680. lt_prog_compiler_static_D='-Bstatic'
  10681. lt_prog_compiler_wl_D='-Wl,'
  10682. ;;
  10683. esac
  10684. ;;
  10685. esac
  10686. ;;
  10687. newsos6)
  10688. lt_prog_compiler_pic_D='-KPIC'
  10689. lt_prog_compiler_static_D='-Bstatic'
  10690. ;;
  10691. *nto* | *qnx*)
  10692. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10693. # it will coredump.
  10694. lt_prog_compiler_pic_D='-fPIC -shared'
  10695. ;;
  10696. osf3* | osf4* | osf5*)
  10697. lt_prog_compiler_wl_D='-Wl,'
  10698. # All OSF/1 code is PIC.
  10699. lt_prog_compiler_static_D='-non_shared'
  10700. ;;
  10701. rdos*)
  10702. lt_prog_compiler_static_D='-non_shared'
  10703. ;;
  10704. solaris*)
  10705. lt_prog_compiler_pic_D='-KPIC'
  10706. lt_prog_compiler_static_D='-Bstatic'
  10707. case $cc_basename in
  10708. f77* | f90* | f95*)
  10709. lt_prog_compiler_wl_D='-Qoption ld ';;
  10710. *)
  10711. lt_prog_compiler_wl_D='-Wl,';;
  10712. esac
  10713. ;;
  10714. sunos4*)
  10715. lt_prog_compiler_wl_D='-Qoption ld '
  10716. lt_prog_compiler_pic_D='-PIC'
  10717. lt_prog_compiler_static_D='-Bstatic'
  10718. ;;
  10719. sysv4 | sysv4.2uw2* | sysv4.3*)
  10720. lt_prog_compiler_wl_D='-Wl,'
  10721. lt_prog_compiler_pic_D='-KPIC'
  10722. lt_prog_compiler_static_D='-Bstatic'
  10723. ;;
  10724. sysv4*MP*)
  10725. if test -d /usr/nec ;then
  10726. lt_prog_compiler_pic_D='-Kconform_pic'
  10727. lt_prog_compiler_static_D='-Bstatic'
  10728. fi
  10729. ;;
  10730. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10731. lt_prog_compiler_wl_D='-Wl,'
  10732. lt_prog_compiler_pic_D='-KPIC'
  10733. lt_prog_compiler_static_D='-Bstatic'
  10734. ;;
  10735. unicos*)
  10736. lt_prog_compiler_wl_D='-Wl,'
  10737. lt_prog_compiler_can_build_shared_D=no
  10738. ;;
  10739. uts4*)
  10740. lt_prog_compiler_pic_D='-pic'
  10741. lt_prog_compiler_static_D='-Bstatic'
  10742. ;;
  10743. *)
  10744. lt_prog_compiler_can_build_shared_D=no
  10745. ;;
  10746. esac
  10747. fi
  10748. case $host_os in
  10749. # For platforms which do not support PIC, -DPIC is meaningless:
  10750. *djgpp*)
  10751. lt_prog_compiler_pic_D=
  10752. ;;
  10753. *)
  10754. lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
  10755. ;;
  10756. esac
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
  10758. $as_echo "$lt_prog_compiler_pic_D" >&6; }
  10759. #
  10760. # Check to make sure the PIC flag actually works.
  10761. #
  10762. if test -n "$lt_prog_compiler_pic_D"; then
  10763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
  10764. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
  10765. if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
  10766. $as_echo_n "(cached) " >&6
  10767. else
  10768. lt_cv_prog_compiler_pic_works_D=no
  10769. ac_outfile=conftest.$ac_objext
  10770. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10771. lt_compiler_flag="$lt_prog_compiler_pic_D"
  10772. # Insert the option either (1) after the last *FLAGS variable, or
  10773. # (2) before a word containing "conftest.", or (3) at the end.
  10774. # Note that $ac_compile itself does not contain backslashes and begins
  10775. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10776. # The option is referenced via a variable to avoid confusing sed.
  10777. lt_compile=`echo "$ac_compile" | $SED \
  10778. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10779. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10780. -e 's:$: $lt_compiler_flag:'`
  10781. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10782. (eval "$lt_compile" 2>conftest.err)
  10783. ac_status=$?
  10784. cat conftest.err >&5
  10785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10786. if (exit $ac_status) && test -s "$ac_outfile"; then
  10787. # The compiler can only warn and ignore the option if not recognized
  10788. # So say no if there are warnings other than the usual output.
  10789. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10790. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10791. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10792. lt_cv_prog_compiler_pic_works_D=yes
  10793. fi
  10794. fi
  10795. $RM conftest*
  10796. fi
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
  10798. $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
  10799. if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
  10800. case $lt_prog_compiler_pic_D in
  10801. "" | " "*) ;;
  10802. *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
  10803. esac
  10804. else
  10805. lt_prog_compiler_pic_D=
  10806. lt_prog_compiler_can_build_shared_D=no
  10807. fi
  10808. fi
  10809. #
  10810. # Check to make sure the static flag actually works.
  10811. #
  10812. wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10814. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10815. if ${lt_cv_prog_compiler_static_works_D+:} false; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. lt_cv_prog_compiler_static_works_D=no
  10819. save_LDFLAGS="$LDFLAGS"
  10820. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10821. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10822. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10823. # The linker can only warn and ignore the option if not recognized
  10824. # So say no if there are warnings
  10825. if test -s conftest.err; then
  10826. # Append any errors to the config.log.
  10827. cat conftest.err 1>&5
  10828. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10829. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10830. if diff conftest.exp conftest.er2 >/dev/null; then
  10831. lt_cv_prog_compiler_static_works_D=yes
  10832. fi
  10833. else
  10834. lt_cv_prog_compiler_static_works_D=yes
  10835. fi
  10836. fi
  10837. $RM -r conftest*
  10838. LDFLAGS="$save_LDFLAGS"
  10839. fi
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
  10841. $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
  10842. if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
  10843. :
  10844. else
  10845. lt_prog_compiler_static_D=
  10846. fi
  10847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10848. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10849. if ${lt_cv_prog_compiler_c_o_D+:} false; then :
  10850. $as_echo_n "(cached) " >&6
  10851. else
  10852. lt_cv_prog_compiler_c_o_D=no
  10853. $RM -r conftest 2>/dev/null
  10854. mkdir conftest
  10855. cd conftest
  10856. mkdir out
  10857. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10858. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10859. # Insert the option either (1) after the last *FLAGS variable, or
  10860. # (2) before a word containing "conftest.", or (3) at the end.
  10861. # Note that $ac_compile itself does not contain backslashes and begins
  10862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10863. lt_compile=`echo "$ac_compile" | $SED \
  10864. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10865. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10866. -e 's:$: $lt_compiler_flag:'`
  10867. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10868. (eval "$lt_compile" 2>out/conftest.err)
  10869. ac_status=$?
  10870. cat out/conftest.err >&5
  10871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10872. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10873. then
  10874. # The compiler can only warn and ignore the option if not recognized
  10875. # So say no if there are warnings
  10876. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10877. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10878. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10879. lt_cv_prog_compiler_c_o_D=yes
  10880. fi
  10881. fi
  10882. chmod u+w . 2>&5
  10883. $RM conftest*
  10884. # SGI C++ compiler will create directory out/ii_files/ for
  10885. # template instantiation
  10886. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10887. $RM out/* && rmdir out
  10888. cd ..
  10889. $RM -r conftest
  10890. $RM conftest*
  10891. fi
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
  10893. $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10895. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10896. if ${lt_cv_prog_compiler_c_o_D+:} false; then :
  10897. $as_echo_n "(cached) " >&6
  10898. else
  10899. lt_cv_prog_compiler_c_o_D=no
  10900. $RM -r conftest 2>/dev/null
  10901. mkdir conftest
  10902. cd conftest
  10903. mkdir out
  10904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10905. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10906. # Insert the option either (1) after the last *FLAGS variable, or
  10907. # (2) before a word containing "conftest.", or (3) at the end.
  10908. # Note that $ac_compile itself does not contain backslashes and begins
  10909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10910. lt_compile=`echo "$ac_compile" | $SED \
  10911. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10912. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10913. -e 's:$: $lt_compiler_flag:'`
  10914. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10915. (eval "$lt_compile" 2>out/conftest.err)
  10916. ac_status=$?
  10917. cat out/conftest.err >&5
  10918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10919. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10920. then
  10921. # The compiler can only warn and ignore the option if not recognized
  10922. # So say no if there are warnings
  10923. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10924. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10925. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10926. lt_cv_prog_compiler_c_o_D=yes
  10927. fi
  10928. fi
  10929. chmod u+w . 2>&5
  10930. $RM conftest*
  10931. # SGI C++ compiler will create directory out/ii_files/ for
  10932. # template instantiation
  10933. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10934. $RM out/* && rmdir out
  10935. cd ..
  10936. $RM -r conftest
  10937. $RM conftest*
  10938. fi
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
  10940. $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
  10941. hard_links="nottested"
  10942. if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
  10943. # do not overwrite the value of need_locks provided by the user
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10945. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10946. hard_links=yes
  10947. $RM conftest*
  10948. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10949. touch conftest.a
  10950. ln conftest.a conftest.b 2>&5 || hard_links=no
  10951. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10953. $as_echo "$hard_links" >&6; }
  10954. if test "$hard_links" = no; then
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10956. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10957. need_locks=warn
  10958. fi
  10959. else
  10960. need_locks=no
  10961. fi
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10963. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10964. runpath_var=
  10965. allow_undefined_flag_D=
  10966. always_export_symbols_D=no
  10967. archive_cmds_D=
  10968. archive_expsym_cmds_D=
  10969. compiler_needs_object_D=no
  10970. enable_shared_with_static_runtimes_D=no
  10971. export_dynamic_flag_spec_D=
  10972. export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10973. hardcode_automatic_D=no
  10974. hardcode_direct_D=no
  10975. hardcode_direct_absolute_D=no
  10976. hardcode_libdir_flag_spec_D=
  10977. hardcode_libdir_flag_spec_ld_D=
  10978. hardcode_libdir_separator_D=
  10979. hardcode_minus_L_D=no
  10980. hardcode_shlibpath_var_D=unsupported
  10981. inherit_rpath_D=no
  10982. link_all_deplibs_D=unknown
  10983. module_cmds_D=
  10984. module_expsym_cmds_D=
  10985. old_archive_from_new_cmds_D=
  10986. old_archive_from_expsyms_cmds_D=
  10987. thread_safe_flag_spec_D=
  10988. whole_archive_flag_spec_D=
  10989. # include_expsyms should be a list of space-separated symbols to be *always*
  10990. # included in the symbol list
  10991. include_expsyms_D=
  10992. # exclude_expsyms can be an extended regexp of symbols to exclude
  10993. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10994. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10995. # as well as any symbol that contains `d'.
  10996. exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10997. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10998. # platforms (ab)use it in PIC code, but their linkers get confused if
  10999. # the symbol is explicitly referenced. Since portable code cannot
  11000. # rely on this symbol name, it's probably fine to never include it in
  11001. # preloaded symbol tables.
  11002. # Exclude shared library initialization/finalization symbols.
  11003. extract_expsyms_cmds=
  11004. case $host_os in
  11005. cygwin* | mingw* | pw32* | cegcc*)
  11006. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11007. # When not using gcc, we currently assume that we are using
  11008. # Microsoft Visual C++.
  11009. if test "$GCC" != yes; then
  11010. with_gnu_ld=no
  11011. fi
  11012. ;;
  11013. interix*)
  11014. # we just hope/assume this is gcc and not c89 (= MSVC++)
  11015. with_gnu_ld=yes
  11016. ;;
  11017. openbsd*)
  11018. with_gnu_ld=no
  11019. ;;
  11020. esac
  11021. ld_shlibs_D=yes
  11022. # On some targets, GNU ld is compatible enough with the native linker
  11023. # that we're better off using the native interface for both.
  11024. lt_use_gnu_ld_interface=no
  11025. if test "$with_gnu_ld" = yes; then
  11026. case $host_os in
  11027. aix*)
  11028. # The AIX port of GNU ld has always aspired to compatibility
  11029. # with the native linker. However, as the warning in the GNU ld
  11030. # block says, versions before 2.19.5* couldn't really create working
  11031. # shared libraries, regardless of the interface used.
  11032. case `$LD -v 2>&1` in
  11033. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11034. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11035. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11036. *)
  11037. lt_use_gnu_ld_interface=yes
  11038. ;;
  11039. esac
  11040. ;;
  11041. *)
  11042. lt_use_gnu_ld_interface=yes
  11043. ;;
  11044. esac
  11045. fi
  11046. if test "$lt_use_gnu_ld_interface" = yes; then
  11047. # If archive_cmds runs LD, not CC, wlarc should be empty
  11048. wlarc='${wl}'
  11049. # Set some defaults for GNU ld with shared library support. These
  11050. # are reset later if shared libraries are not supported. Putting them
  11051. # here allows them to be overridden if necessary.
  11052. runpath_var=LD_RUN_PATH
  11053. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11054. export_dynamic_flag_spec_D='${wl}--export-dynamic'
  11055. # ancient GNU ld didn't support --whole-archive et. al.
  11056. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11057. whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11058. else
  11059. whole_archive_flag_spec_D=
  11060. fi
  11061. supports_anon_versioning=no
  11062. case `$LD -v 2>&1` in
  11063. *GNU\ gold*) supports_anon_versioning=yes ;;
  11064. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11065. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11066. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11067. *\ 2.11.*) ;; # other 2.11 versions
  11068. *) supports_anon_versioning=yes ;;
  11069. esac
  11070. # See if GNU ld supports shared libraries.
  11071. case $host_os in
  11072. aix[3-9]*)
  11073. # On AIX/PPC, the GNU linker is very broken
  11074. if test "$host_cpu" != ia64; then
  11075. ld_shlibs_D=no
  11076. cat <<_LT_EOF 1>&2
  11077. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11078. *** to be unable to reliably create shared libraries on AIX.
  11079. *** Therefore, libtool is disabling shared libraries support. If you
  11080. *** really care for shared libraries, you may want to install binutils
  11081. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11082. *** You will then need to restart the configuration process.
  11083. _LT_EOF
  11084. fi
  11085. ;;
  11086. amigaos*)
  11087. case $host_cpu in
  11088. powerpc)
  11089. # see comment about AmigaOS4 .so support
  11090. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11091. archive_expsym_cmds_D=''
  11092. ;;
  11093. m68k)
  11094. archive_cmds_D='$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)'
  11095. hardcode_libdir_flag_spec_D='-L$libdir'
  11096. hardcode_minus_L_D=yes
  11097. ;;
  11098. esac
  11099. ;;
  11100. beos*)
  11101. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11102. allow_undefined_flag_D=unsupported
  11103. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11104. # support --undefined. This deserves some investigation. FIXME
  11105. archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11106. else
  11107. ld_shlibs_D=no
  11108. fi
  11109. ;;
  11110. cygwin* | mingw* | pw32* | cegcc*)
  11111. # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
  11112. # as there is no search path for DLLs.
  11113. hardcode_libdir_flag_spec_D='-L$libdir'
  11114. export_dynamic_flag_spec_D='${wl}--export-all-symbols'
  11115. allow_undefined_flag_D=unsupported
  11116. always_export_symbols_D=no
  11117. enable_shared_with_static_runtimes_D=yes
  11118. export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11119. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11120. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11121. # If the export-symbols file already is a .def file (1st line
  11122. # is EXPORTS), use it as is; otherwise, prepend...
  11123. archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11124. cp $export_symbols $output_objdir/$soname.def;
  11125. else
  11126. echo EXPORTS > $output_objdir/$soname.def;
  11127. cat $export_symbols >> $output_objdir/$soname.def;
  11128. fi~
  11129. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11130. else
  11131. ld_shlibs_D=no
  11132. fi
  11133. ;;
  11134. haiku*)
  11135. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. link_all_deplibs_D=yes
  11137. ;;
  11138. interix[3-9]*)
  11139. hardcode_direct_D=no
  11140. hardcode_shlibpath_var_D=no
  11141. hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
  11142. export_dynamic_flag_spec_D='${wl}-E'
  11143. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11144. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11145. # default) and relocated if they conflict, which is a slow very memory
  11146. # consuming and fragmenting process. To avoid this, we pick a random,
  11147. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11148. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11149. archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11150. archive_expsym_cmds_D='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'
  11151. ;;
  11152. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  11153. tmp_diet=no
  11154. if test "$host_os" = linux-dietlibc; then
  11155. case $cc_basename in
  11156. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11157. esac
  11158. fi
  11159. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11160. && test "$tmp_diet" = no
  11161. then
  11162. tmp_addflag=' $pic_flag'
  11163. tmp_sharedflag='-shared'
  11164. case $cc_basename,$host_cpu in
  11165. pgcc*) # Portland Group C compiler
  11166. whole_archive_flag_spec_D='${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'
  11167. tmp_addflag=' $pic_flag'
  11168. ;;
  11169. pgf77* | pgf90* | pgf95* | pgfortran*)
  11170. # Portland Group f77 and f90 compilers
  11171. whole_archive_flag_spec_D='${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'
  11172. tmp_addflag=' $pic_flag -Mnomain' ;;
  11173. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11174. tmp_addflag=' -i_dynamic' ;;
  11175. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11176. tmp_addflag=' -i_dynamic -nofor_main' ;;
  11177. ifc* | ifort*) # Intel Fortran compiler
  11178. tmp_addflag=' -nofor_main' ;;
  11179. lf95*) # Lahey Fortran 8.1
  11180. whole_archive_flag_spec_D=
  11181. tmp_sharedflag='--shared' ;;
  11182. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11183. tmp_sharedflag='-qmkshrobj'
  11184. tmp_addflag= ;;
  11185. nvcc*) # Cuda Compiler Driver 2.2
  11186. whole_archive_flag_spec_D='${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'
  11187. compiler_needs_object_D=yes
  11188. ;;
  11189. esac
  11190. case `$CC -V 2>&1 | sed 5q` in
  11191. *Sun\ C*) # Sun C 5.9
  11192. whole_archive_flag_spec_D='${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'
  11193. compiler_needs_object_D=yes
  11194. tmp_sharedflag='-G' ;;
  11195. *Sun\ F*) # Sun Fortran 8.3
  11196. tmp_sharedflag='-G' ;;
  11197. esac
  11198. archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11199. if test "x$supports_anon_versioning" = xyes; then
  11200. archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
  11201. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11202. echo "local: *; };" >> $output_objdir/$libname.ver~
  11203. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11204. fi
  11205. case $cc_basename in
  11206. xlf* | bgf* | bgxlf* | mpixlf*)
  11207. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11208. whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
  11209. hardcode_libdir_flag_spec_D=
  11210. hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
  11211. archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11212. if test "x$supports_anon_versioning" = xyes; then
  11213. archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
  11214. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11215. echo "local: *; };" >> $output_objdir/$libname.ver~
  11216. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11217. fi
  11218. ;;
  11219. esac
  11220. else
  11221. ld_shlibs_D=no
  11222. fi
  11223. ;;
  11224. netbsd*)
  11225. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11226. archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11227. wlarc=
  11228. else
  11229. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11230. archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11231. fi
  11232. ;;
  11233. solaris*)
  11234. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11235. ld_shlibs_D=no
  11236. cat <<_LT_EOF 1>&2
  11237. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11238. *** create shared libraries on Solaris systems. Therefore, libtool
  11239. *** is disabling shared libraries support. We urge you to upgrade GNU
  11240. *** binutils to release 2.9.1 or newer. Another option is to modify
  11241. *** your PATH or compiler configuration so that the native linker is
  11242. *** used, and then restart.
  11243. _LT_EOF
  11244. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11245. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11246. archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11247. else
  11248. ld_shlibs_D=no
  11249. fi
  11250. ;;
  11251. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11252. case `$LD -v 2>&1` in
  11253. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11254. ld_shlibs_D=no
  11255. cat <<_LT_EOF 1>&2
  11256. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11257. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11258. *** is disabling shared libraries support. We urge you to upgrade GNU
  11259. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11260. *** your PATH or compiler configuration so that the native linker is
  11261. *** used, and then restart.
  11262. _LT_EOF
  11263. ;;
  11264. *)
  11265. # For security reasons, it is highly recommended that you always
  11266. # use absolute paths for naming shared libraries, and exclude the
  11267. # DT_RUNPATH tag from executables and libraries. But doing so
  11268. # requires that you compile everything twice, which is a pain.
  11269. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11270. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11271. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11272. archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11273. else
  11274. ld_shlibs_D=no
  11275. fi
  11276. ;;
  11277. esac
  11278. ;;
  11279. sunos4*)
  11280. archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11281. wlarc=
  11282. hardcode_direct_D=yes
  11283. hardcode_shlibpath_var_D=no
  11284. ;;
  11285. *)
  11286. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11287. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11288. archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11289. else
  11290. ld_shlibs_D=no
  11291. fi
  11292. ;;
  11293. esac
  11294. if test "$ld_shlibs_D" = no; then
  11295. runpath_var=
  11296. hardcode_libdir_flag_spec_D=
  11297. export_dynamic_flag_spec_D=
  11298. whole_archive_flag_spec_D=
  11299. fi
  11300. else
  11301. # PORTME fill in a description of your system's linker (not GNU ld)
  11302. case $host_os in
  11303. aix3*)
  11304. allow_undefined_flag_D=unsupported
  11305. always_export_symbols_D=yes
  11306. archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11307. # Note: this linker hardcodes the directories in LIBPATH if there
  11308. # are no directories specified by -L.
  11309. hardcode_minus_L_D=yes
  11310. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11311. # Neither direct hardcoding nor static linking is supported with a
  11312. # broken collect2.
  11313. hardcode_direct_D=unsupported
  11314. fi
  11315. ;;
  11316. aix[4-9]*)
  11317. if test "$host_cpu" = ia64; then
  11318. # On IA64, the linker does run time linking by default, so we don't
  11319. # have to do anything special.
  11320. aix_use_runtimelinking=no
  11321. exp_sym_flag='-Bexport'
  11322. no_entry_flag=""
  11323. else
  11324. # If we're using GNU nm, then we don't want the "-C" option.
  11325. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11326. # Also, AIX nm treats weak defined symbols like other global
  11327. # defined symbols, whereas GNU nm marks them as "W".
  11328. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11329. export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11330. else
  11331. export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11332. fi
  11333. aix_use_runtimelinking=no
  11334. # Test if we are trying to use run time linking or normal
  11335. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11336. # need to do runtime linking.
  11337. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11338. for ld_flag in $LDFLAGS; do
  11339. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11340. aix_use_runtimelinking=yes
  11341. break
  11342. fi
  11343. done
  11344. ;;
  11345. esac
  11346. exp_sym_flag='-bexport'
  11347. no_entry_flag='-bnoentry'
  11348. fi
  11349. # When large executables or shared objects are built, AIX ld can
  11350. # have problems creating the table of contents. If linking a library
  11351. # or program results in "error TOC overflow" add -mminimal-toc to
  11352. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11353. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11354. archive_cmds_D=''
  11355. hardcode_direct_D=yes
  11356. hardcode_direct_absolute_D=yes
  11357. hardcode_libdir_separator_D=':'
  11358. link_all_deplibs_D=yes
  11359. file_list_spec_D='${wl}-f,'
  11360. if test "$GCC" = yes; then
  11361. case $host_os in aix4.[012]|aix4.[012].*)
  11362. # We only want to do this on AIX 4.2 and lower, the check
  11363. # below for broken collect2 doesn't work under 4.3+
  11364. collect2name=`${CC} -print-prog-name=collect2`
  11365. if test -f "$collect2name" &&
  11366. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11367. then
  11368. # We have reworked collect2
  11369. :
  11370. else
  11371. # We have old collect2
  11372. hardcode_direct_D=unsupported
  11373. # It fails to find uninstalled libraries when the uninstalled
  11374. # path is not listed in the libpath. Setting hardcode_minus_L
  11375. # to unsupported forces relinking
  11376. hardcode_minus_L_D=yes
  11377. hardcode_libdir_flag_spec_D='-L$libdir'
  11378. hardcode_libdir_separator_D=
  11379. fi
  11380. ;;
  11381. esac
  11382. shared_flag='-shared'
  11383. if test "$aix_use_runtimelinking" = yes; then
  11384. shared_flag="$shared_flag "'${wl}-G'
  11385. fi
  11386. else
  11387. # not using gcc
  11388. if test "$host_cpu" = ia64; then
  11389. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11390. # chokes on -Wl,-G. The following line is correct:
  11391. shared_flag='-G'
  11392. else
  11393. if test "$aix_use_runtimelinking" = yes; then
  11394. shared_flag='${wl}-G'
  11395. else
  11396. shared_flag='${wl}-bM:SRE'
  11397. fi
  11398. fi
  11399. fi
  11400. export_dynamic_flag_spec_D='${wl}-bexpall'
  11401. # It seems that -bexpall does not export symbols beginning with
  11402. # underscore (_), so it is better to generate a list of symbols to export.
  11403. always_export_symbols_D=yes
  11404. if test "$aix_use_runtimelinking" = yes; then
  11405. # Warning - without using the other runtime loading flags (-brtl),
  11406. # -berok will link without error, but may produce a broken library.
  11407. allow_undefined_flag_D='-berok'
  11408. # Determine the default libpath from the value encoded in an
  11409. # empty executable.
  11410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11411. /* end confdefs.h. */
  11412. int
  11413. main ()
  11414. {
  11415. ;
  11416. return 0;
  11417. }
  11418. _ACEOF
  11419. if ac_fn_c_try_link "$LINENO"; then :
  11420. lt_aix_libpath_sed='
  11421. /Import File Strings/,/^$/ {
  11422. /^0/ {
  11423. s/^0 *\(.*\)$/\1/
  11424. p
  11425. }
  11426. }'
  11427. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11428. # Check for a 64-bit object if we didn't find anything.
  11429. if test -z "$aix_libpath"; then
  11430. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11431. fi
  11432. fi
  11433. rm -f core conftest.err conftest.$ac_objext \
  11434. conftest$ac_exeext conftest.$ac_ext
  11435. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11436. hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
  11437. archive_expsym_cmds_D='$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"
  11438. else
  11439. if test "$host_cpu" = ia64; then
  11440. hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
  11441. allow_undefined_flag_D="-z nodefs"
  11442. archive_expsym_cmds_D="\$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"
  11443. else
  11444. # Determine the default libpath from the value encoded in an
  11445. # empty executable.
  11446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11447. /* end confdefs.h. */
  11448. int
  11449. main ()
  11450. {
  11451. ;
  11452. return 0;
  11453. }
  11454. _ACEOF
  11455. if ac_fn_c_try_link "$LINENO"; then :
  11456. lt_aix_libpath_sed='
  11457. /Import File Strings/,/^$/ {
  11458. /^0/ {
  11459. s/^0 *\(.*\)$/\1/
  11460. p
  11461. }
  11462. }'
  11463. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11464. # Check for a 64-bit object if we didn't find anything.
  11465. if test -z "$aix_libpath"; then
  11466. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11467. fi
  11468. fi
  11469. rm -f core conftest.err conftest.$ac_objext \
  11470. conftest$ac_exeext conftest.$ac_ext
  11471. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11472. hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
  11473. # Warning - without using the other run time loading flags,
  11474. # -berok will link without error, but may produce a broken library.
  11475. no_undefined_flag_D=' ${wl}-bernotok'
  11476. allow_undefined_flag_D=' ${wl}-berok'
  11477. if test "$with_gnu_ld" = yes; then
  11478. # We only use this code for GNU lds that support --whole-archive.
  11479. whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11480. else
  11481. # Exported symbols can be pulled into shared objects from archives
  11482. whole_archive_flag_spec_D='$convenience'
  11483. fi
  11484. archive_cmds_need_lc_D=yes
  11485. # This is similar to how AIX traditionally builds its shared libraries.
  11486. archive_expsym_cmds_D="\$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'
  11487. fi
  11488. fi
  11489. ;;
  11490. amigaos*)
  11491. case $host_cpu in
  11492. powerpc)
  11493. # see comment about AmigaOS4 .so support
  11494. archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11495. archive_expsym_cmds_D=''
  11496. ;;
  11497. m68k)
  11498. archive_cmds_D='$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)'
  11499. hardcode_libdir_flag_spec_D='-L$libdir'
  11500. hardcode_minus_L_D=yes
  11501. ;;
  11502. esac
  11503. ;;
  11504. bsdi[45]*)
  11505. export_dynamic_flag_spec_D=-rdynamic
  11506. ;;
  11507. cygwin* | mingw* | pw32* | cegcc*)
  11508. # When not using gcc, we currently assume that we are using
  11509. # Microsoft Visual C++.
  11510. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11511. # no search path for DLLs.
  11512. hardcode_libdir_flag_spec_D=' '
  11513. allow_undefined_flag_D=unsupported
  11514. # Tell ltmain to make .lib files, not .a files.
  11515. libext=lib
  11516. # Tell ltmain to make .dll files, not .so files.
  11517. shrext_cmds=".dll"
  11518. # FIXME: Setting linknames here is a bad hack.
  11519. archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11520. # The linker will automatically build a .lib file if we build a DLL.
  11521. old_archive_from_new_cmds_D='true'
  11522. # FIXME: Should let the user specify the lib program.
  11523. old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11524. fix_srcfile_path_D='`cygpath -w "$srcfile"`'
  11525. enable_shared_with_static_runtimes_D=yes
  11526. ;;
  11527. darwin* | rhapsody*)
  11528. archive_cmds_need_lc_D=no
  11529. hardcode_direct_D=no
  11530. hardcode_automatic_D=yes
  11531. hardcode_shlibpath_var_D=unsupported
  11532. if test "$lt_cv_ld_force_load" = "yes"; then
  11533. whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11534. else
  11535. whole_archive_flag_spec_D=''
  11536. fi
  11537. link_all_deplibs_D=yes
  11538. allow_undefined_flag_D="$_lt_dar_allow_undefined"
  11539. case $cc_basename in
  11540. ifort*) _lt_dar_can_shared=yes ;;
  11541. *) _lt_dar_can_shared=$GCC ;;
  11542. esac
  11543. if test "$_lt_dar_can_shared" = "yes"; then
  11544. output_verbose_link_cmd=func_echo_all
  11545. archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11546. module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11547. archive_expsym_cmds_D="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}"
  11548. module_expsym_cmds_D="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}"
  11549. else
  11550. ld_shlibs_D=no
  11551. fi
  11552. ;;
  11553. dgux*)
  11554. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11555. hardcode_libdir_flag_spec_D='-L$libdir'
  11556. hardcode_shlibpath_var_D=no
  11557. ;;
  11558. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11559. # support. Future versions do this automatically, but an explicit c++rt0.o
  11560. # does not break anything, and helps significantly (at the cost of a little
  11561. # extra space).
  11562. freebsd2.2*)
  11563. archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11564. hardcode_libdir_flag_spec_D='-R$libdir'
  11565. hardcode_direct_D=yes
  11566. hardcode_shlibpath_var_D=no
  11567. ;;
  11568. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11569. freebsd2.*)
  11570. archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11571. hardcode_direct_D=yes
  11572. hardcode_minus_L_D=yes
  11573. hardcode_shlibpath_var_D=no
  11574. ;;
  11575. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11576. freebsd* | dragonfly*)
  11577. archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11578. hardcode_libdir_flag_spec_D='-R$libdir'
  11579. hardcode_direct_D=yes
  11580. hardcode_shlibpath_var_D=no
  11581. ;;
  11582. hpux9*)
  11583. if test "$GCC" = yes; then
  11584. archive_cmds_D='$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'
  11585. else
  11586. archive_cmds_D='$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'
  11587. fi
  11588. hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
  11589. hardcode_libdir_separator_D=:
  11590. hardcode_direct_D=yes
  11591. # hardcode_minus_L: Not really in the search PATH,
  11592. # but as the default location of the library.
  11593. hardcode_minus_L_D=yes
  11594. export_dynamic_flag_spec_D='${wl}-E'
  11595. ;;
  11596. hpux10*)
  11597. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11598. archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11599. else
  11600. archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11601. fi
  11602. if test "$with_gnu_ld" = no; then
  11603. hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
  11604. hardcode_libdir_flag_spec_ld_D='+b $libdir'
  11605. hardcode_libdir_separator_D=:
  11606. hardcode_direct_D=yes
  11607. hardcode_direct_absolute_D=yes
  11608. export_dynamic_flag_spec_D='${wl}-E'
  11609. # hardcode_minus_L: Not really in the search PATH,
  11610. # but as the default location of the library.
  11611. hardcode_minus_L_D=yes
  11612. fi
  11613. ;;
  11614. hpux11*)
  11615. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11616. case $host_cpu in
  11617. hppa*64*)
  11618. archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11619. ;;
  11620. ia64*)
  11621. archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11622. ;;
  11623. *)
  11624. archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11625. ;;
  11626. esac
  11627. else
  11628. case $host_cpu in
  11629. hppa*64*)
  11630. archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11631. ;;
  11632. ia64*)
  11633. archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11634. ;;
  11635. *)
  11636. archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11637. ;;
  11638. esac
  11639. fi
  11640. if test "$with_gnu_ld" = no; then
  11641. hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
  11642. hardcode_libdir_separator_D=:
  11643. case $host_cpu in
  11644. hppa*64*|ia64*)
  11645. hardcode_direct_D=no
  11646. hardcode_shlibpath_var_D=no
  11647. ;;
  11648. *)
  11649. hardcode_direct_D=yes
  11650. hardcode_direct_absolute_D=yes
  11651. export_dynamic_flag_spec_D='${wl}-E'
  11652. # hardcode_minus_L: Not really in the search PATH,
  11653. # but as the default location of the library.
  11654. hardcode_minus_L_D=yes
  11655. ;;
  11656. esac
  11657. fi
  11658. ;;
  11659. irix5* | irix6* | nonstopux*)
  11660. if test "$GCC" = yes; then
  11661. archive_cmds_D='$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'
  11662. # Try to use the -exported_symbol ld option, if it does not
  11663. # work, assume that -exports_file does not work either and
  11664. # implicitly export all symbols.
  11665. save_LDFLAGS="$LDFLAGS"
  11666. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11668. /* end confdefs.h. */
  11669. int foo(void) {}
  11670. _ACEOF
  11671. if ac_fn_c_try_link "$LINENO"; then :
  11672. archive_expsym_cmds_D='$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'
  11673. fi
  11674. rm -f core conftest.err conftest.$ac_objext \
  11675. conftest$ac_exeext conftest.$ac_ext
  11676. LDFLAGS="$save_LDFLAGS"
  11677. else
  11678. archive_cmds_D='$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'
  11679. archive_expsym_cmds_D='$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'
  11680. fi
  11681. archive_cmds_need_lc_D='no'
  11682. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11683. hardcode_libdir_separator_D=:
  11684. inherit_rpath_D=yes
  11685. link_all_deplibs_D=yes
  11686. ;;
  11687. netbsd*)
  11688. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11689. archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11690. else
  11691. archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11692. fi
  11693. hardcode_libdir_flag_spec_D='-R$libdir'
  11694. hardcode_direct_D=yes
  11695. hardcode_shlibpath_var_D=no
  11696. ;;
  11697. newsos6)
  11698. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11699. hardcode_direct_D=yes
  11700. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11701. hardcode_libdir_separator_D=:
  11702. hardcode_shlibpath_var_D=no
  11703. ;;
  11704. *nto* | *qnx*)
  11705. ;;
  11706. openbsd*)
  11707. if test -f /usr/libexec/ld.so; then
  11708. hardcode_direct_D=yes
  11709. hardcode_shlibpath_var_D=no
  11710. hardcode_direct_absolute_D=yes
  11711. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11712. archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11713. archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11714. hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
  11715. export_dynamic_flag_spec_D='${wl}-E'
  11716. else
  11717. case $host_os in
  11718. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11719. archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11720. hardcode_libdir_flag_spec_D='-R$libdir'
  11721. ;;
  11722. *)
  11723. archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11724. hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
  11725. ;;
  11726. esac
  11727. fi
  11728. else
  11729. ld_shlibs_D=no
  11730. fi
  11731. ;;
  11732. os2*)
  11733. hardcode_libdir_flag_spec_D='-L$libdir'
  11734. hardcode_minus_L_D=yes
  11735. allow_undefined_flag_D=unsupported
  11736. archive_cmds_D='$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'
  11737. old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11738. ;;
  11739. osf3*)
  11740. if test "$GCC" = yes; then
  11741. allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
  11742. archive_cmds_D='$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'
  11743. else
  11744. allow_undefined_flag_D=' -expect_unresolved \*'
  11745. archive_cmds_D='$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'
  11746. fi
  11747. archive_cmds_need_lc_D='no'
  11748. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11749. hardcode_libdir_separator_D=:
  11750. ;;
  11751. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11752. if test "$GCC" = yes; then
  11753. allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
  11754. archive_cmds_D='$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'
  11755. hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
  11756. else
  11757. allow_undefined_flag_D=' -expect_unresolved \*'
  11758. archive_cmds_D='$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'
  11759. archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11760. $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'
  11761. # Both c and cxx compiler support -rpath directly
  11762. hardcode_libdir_flag_spec_D='-rpath $libdir'
  11763. fi
  11764. archive_cmds_need_lc_D='no'
  11765. hardcode_libdir_separator_D=:
  11766. ;;
  11767. solaris*)
  11768. no_undefined_flag_D=' -z defs'
  11769. if test "$GCC" = yes; then
  11770. wlarc='${wl}'
  11771. archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11772. archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11773. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11774. else
  11775. case `$CC -V 2>&1` in
  11776. *"Compilers 5.0"*)
  11777. wlarc=''
  11778. archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11779. archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11780. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11781. ;;
  11782. *)
  11783. wlarc='${wl}'
  11784. archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11785. archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11786. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11787. ;;
  11788. esac
  11789. fi
  11790. hardcode_libdir_flag_spec_D='-R$libdir'
  11791. hardcode_shlibpath_var_D=no
  11792. case $host_os in
  11793. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11794. *)
  11795. # The compiler driver will combine and reorder linker options,
  11796. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11797. # but is careful enough not to reorder.
  11798. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11799. if test "$GCC" = yes; then
  11800. whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11801. else
  11802. whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
  11803. fi
  11804. ;;
  11805. esac
  11806. link_all_deplibs_D=yes
  11807. ;;
  11808. sunos4*)
  11809. if test "x$host_vendor" = xsequent; then
  11810. # Use $CC to link under sequent, because it throws in some extra .o
  11811. # files that make .init and .fini sections work.
  11812. archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11813. else
  11814. archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11815. fi
  11816. hardcode_libdir_flag_spec_D='-L$libdir'
  11817. hardcode_direct_D=yes
  11818. hardcode_minus_L_D=yes
  11819. hardcode_shlibpath_var_D=no
  11820. ;;
  11821. sysv4)
  11822. case $host_vendor in
  11823. sni)
  11824. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11825. hardcode_direct_D=yes # is this really true???
  11826. ;;
  11827. siemens)
  11828. ## LD is ld it makes a PLAMLIB
  11829. ## CC just makes a GrossModule.
  11830. archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11831. reload_cmds_D='$CC -r -o $output$reload_objs'
  11832. hardcode_direct_D=no
  11833. ;;
  11834. motorola)
  11835. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11836. hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
  11837. ;;
  11838. esac
  11839. runpath_var='LD_RUN_PATH'
  11840. hardcode_shlibpath_var_D=no
  11841. ;;
  11842. sysv4.3*)
  11843. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11844. hardcode_shlibpath_var_D=no
  11845. export_dynamic_flag_spec_D='-Bexport'
  11846. ;;
  11847. sysv4*MP*)
  11848. if test -d /usr/nec; then
  11849. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11850. hardcode_shlibpath_var_D=no
  11851. runpath_var=LD_RUN_PATH
  11852. hardcode_runpath_var=yes
  11853. ld_shlibs_D=yes
  11854. fi
  11855. ;;
  11856. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11857. no_undefined_flag_D='${wl}-z,text'
  11858. archive_cmds_need_lc_D=no
  11859. hardcode_shlibpath_var_D=no
  11860. runpath_var='LD_RUN_PATH'
  11861. if test "$GCC" = yes; then
  11862. archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11863. archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11864. else
  11865. archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11866. archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11867. fi
  11868. ;;
  11869. sysv5* | sco3.2v5* | sco5v6*)
  11870. # Note: We can NOT use -z defs as we might desire, because we do not
  11871. # link with -lc, and that would cause any symbols used from libc to
  11872. # always be unresolved, which means just about no library would
  11873. # ever link correctly. If we're not using GNU ld we use -z text
  11874. # though, which does catch some bad symbols but isn't as heavy-handed
  11875. # as -z defs.
  11876. no_undefined_flag_D='${wl}-z,text'
  11877. allow_undefined_flag_D='${wl}-z,nodefs'
  11878. archive_cmds_need_lc_D=no
  11879. hardcode_shlibpath_var_D=no
  11880. hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
  11881. hardcode_libdir_separator_D=':'
  11882. link_all_deplibs_D=yes
  11883. export_dynamic_flag_spec_D='${wl}-Bexport'
  11884. runpath_var='LD_RUN_PATH'
  11885. if test "$GCC" = yes; then
  11886. archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11887. archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11888. else
  11889. archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11890. archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11891. fi
  11892. ;;
  11893. uts4*)
  11894. archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11895. hardcode_libdir_flag_spec_D='-L$libdir'
  11896. hardcode_shlibpath_var_D=no
  11897. ;;
  11898. *)
  11899. ld_shlibs_D=no
  11900. ;;
  11901. esac
  11902. if test x$host_vendor = xsni; then
  11903. case $host in
  11904. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11905. export_dynamic_flag_spec_D='${wl}-Blargedynsym'
  11906. ;;
  11907. esac
  11908. fi
  11909. fi
  11910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
  11911. $as_echo "$ld_shlibs_D" >&6; }
  11912. test "$ld_shlibs_D" = no && can_build_shared=no
  11913. with_gnu_ld_D=$with_gnu_ld
  11914. #
  11915. # Do we need to explicitly link libc?
  11916. #
  11917. case "x$archive_cmds_need_lc_D" in
  11918. x|xyes)
  11919. # Assume -lc should be added
  11920. archive_cmds_need_lc_D=yes
  11921. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11922. case $archive_cmds_D in
  11923. *'~'*)
  11924. # FIXME: we may have to deal with multi-command sequences.
  11925. ;;
  11926. '$CC '*)
  11927. # Test whether the compiler implicitly links with -lc since on some
  11928. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11929. # to ld, don't add -lc before -lgcc.
  11930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11931. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11932. if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
  11933. $as_echo_n "(cached) " >&6
  11934. else
  11935. $RM conftest*
  11936. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11937. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11938. (eval $ac_compile) 2>&5
  11939. ac_status=$?
  11940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11941. test $ac_status = 0; } 2>conftest.err; then
  11942. soname=conftest
  11943. lib=conftest
  11944. libobjs=conftest.$ac_objext
  11945. deplibs=
  11946. wl=$lt_prog_compiler_wl_D
  11947. pic_flag=$lt_prog_compiler_pic_D
  11948. compiler_flags=-v
  11949. linker_flags=-v
  11950. verstring=
  11951. output_objdir=.
  11952. libname=conftest
  11953. lt_save_allow_undefined_flag=$allow_undefined_flag_D
  11954. allow_undefined_flag_D=
  11955. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11956. (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11957. ac_status=$?
  11958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11959. test $ac_status = 0; }
  11960. then
  11961. lt_cv_archive_cmds_need_lc_D=no
  11962. else
  11963. lt_cv_archive_cmds_need_lc_D=yes
  11964. fi
  11965. allow_undefined_flag_D=$lt_save_allow_undefined_flag
  11966. else
  11967. cat conftest.err 1>&5
  11968. fi
  11969. $RM conftest*
  11970. fi
  11971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
  11972. $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
  11973. archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
  11974. ;;
  11975. esac
  11976. fi
  11977. ;;
  11978. esac
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11980. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11981. hardcode_action_D=
  11982. if test -n "$hardcode_libdir_flag_spec_D" ||
  11983. test -n "$runpath_var_D" ||
  11984. test "X$hardcode_automatic_D" = "Xyes" ; then
  11985. # We can hardcode non-existent directories.
  11986. if test "$hardcode_direct_D" != no &&
  11987. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11988. # have to relink, otherwise we might link with an installed library
  11989. # when we should be linking with a yet-to-be-installed one
  11990. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
  11991. test "$hardcode_minus_L_D" != no; then
  11992. # Linking always hardcodes the temporary library directory.
  11993. hardcode_action_D=relink
  11994. else
  11995. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11996. hardcode_action_D=immediate
  11997. fi
  11998. else
  11999. # We cannot hardcode anything, or else we can only hardcode existing
  12000. # directories.
  12001. hardcode_action_D=unsupported
  12002. fi
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
  12004. $as_echo "$hardcode_action_D" >&6; }
  12005. if test "$hardcode_action_D" = relink ||
  12006. test "$inherit_rpath_D" = yes; then
  12007. # Fast installation is not supported
  12008. enable_fast_install=no
  12009. elif test "$shlibpath_overrides_runpath" = yes ||
  12010. test "$enable_shared" = no; then
  12011. # Fast installation is not necessary
  12012. enable_fast_install=needless
  12013. fi
  12014. fi
  12015. ac_ext=c
  12016. ac_cpp='$CPP $CPPFLAGS'
  12017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12020. GCC=$lt_save_GCC
  12021. CC=$lt_save_CC
  12022. CFLAGS=$lt_save_CFLAGS
  12023. GDCFLAGS=$gdc_save_DFLAGS
  12024. # libtool variables for Phobos shared and position-independent compiles.
  12025. #
  12026. # Use phobos_lt_pic_flag to designate the automake variable
  12027. # used to encapsulate the default libtool approach to creating objects
  12028. # with position-independent code. Default: -prefer-pic.
  12029. #
  12030. # Use phobos_compiler_shared_flag to designate the compile-time flags for
  12031. # creating shared objects. Default: -fversion=Shared.
  12032. #
  12033. # Use phobos_compiler_pic_flag to designate the compile-time flags for
  12034. # creating position-independent objects. This varies with the target
  12035. # hardware and operating system, but is often: -fPIC.
  12036. #
  12037. # The distinction between pic and shared compilation flags is not present in
  12038. # libtool, and so we make it here. How it is handled is that in shared
  12039. # compilations the `lt_prog_compiler_pic_D' variable is used to instead
  12040. # ensure that conditional compilation of shared runtime code is compiled in.
  12041. if test "$enable_shared" = yes; then
  12042. phobos_lt_pic_flag="-prefer-pic"
  12043. phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
  12044. phobos_compiler_shared_flag="-fversion=Shared"
  12045. else
  12046. phobos_lt_pic_flag=
  12047. phobos_compiler_pic_flag=
  12048. phobos_compiler_shared_flag=
  12049. fi
  12050. # Override the libtool's pic_flag and pic_mode.
  12051. # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
  12052. # NB: this impacts --with-pic and --without-pic.
  12053. lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
  12054. pic_mode='default'
  12055. # Determine what GCC version number to use in filesystem paths.
  12056. get_gcc_base_ver="cat"
  12057. # Check whether --with-gcc-major-version-only was given.
  12058. if test "${with_gcc_major_version_only+set}" = set; then :
  12059. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  12060. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  12061. fi
  12062. fi
  12063. # libphobos/libdruntime specific options and feature detection
  12064. # These need to be absolute paths, yet at the same time need to
  12065. # canonicalize only relative paths, because then amd will not unmount
  12066. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  12067. libphobos_builddir=`${PWDCMD-pwd}`
  12068. case $srcdir in
  12069. \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
  12070. *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  12071. esac
  12072. if test ${multilib} = yes; then
  12073. multilib_arg="--enable-multilib"
  12074. else
  12075. multilib_arg=
  12076. fi
  12077. # Check whether --enable-werror was given.
  12078. if test "${enable_werror+set}" = set; then :
  12079. enableval=$enable_werror;
  12080. fi
  12081. WERROR_FLAG=""
  12082. if test "x$enable_werror" = "xyes"; then
  12083. WERROR_FLAG="-Werror"
  12084. fi
  12085. gdc_save_DFLAGS=$GDCFLAGS
  12086. GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
  12087. ac_ext=d
  12088. ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
  12089. ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12090. ac_compiler_gnu=yes
  12091. GDCFLAGS="$GDCFLAGS -g -Werror -ffunction-sections -fdata-sections"
  12092. cat > conftest.$ac_ext <<_ACEOF
  12093. module object;
  12094. int foo; void bar() { }
  12095. extern(C) int main() {
  12096. return 0;
  12097. }
  12098. _ACEOF
  12099. if ac_fn_d_try_compile "$LINENO"; then :
  12100. ac_fdsections=yes
  12101. else
  12102. ac_fdsections=no
  12103. fi
  12104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12105. if test "x$ac_fdsections" = "xyes"; then
  12106. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  12107. fi
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  12109. $as_echo "$ac_fdsections" >&6; }
  12110. ac_ext=c
  12111. ac_cpp='$CPP $CPPFLAGS'
  12112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12115. GDCFLAGS=$gdc_save_DFLAGS
  12116. druntime_target_cpu_parsed=""
  12117. case "$target_cpu" in
  12118. aarch64*)
  12119. druntime_target_cpu_parsed="aarch64"
  12120. ;;
  12121. arm*) druntime_target_cpu_parsed="arm"
  12122. ;;
  12123. mips*) druntime_target_cpu_parsed="mips"
  12124. ;;
  12125. powerpc*)
  12126. druntime_target_cpu_parsed="powerpc"
  12127. ;;
  12128. i[34567]86|x86_64)
  12129. druntime_target_cpu_parsed="x86"
  12130. ;;
  12131. s390x)
  12132. druntime_target_cpu_parsed="s390x"
  12133. ;;
  12134. s390)
  12135. druntime_target_cpu_parsed="s390"
  12136. ;;
  12137. esac
  12138. if test "$druntime_target_cpu_parsed" = "aarch64"; then
  12139. DRUNTIME_CPU_AARCH64_TRUE=
  12140. DRUNTIME_CPU_AARCH64_FALSE='#'
  12141. else
  12142. DRUNTIME_CPU_AARCH64_TRUE='#'
  12143. DRUNTIME_CPU_AARCH64_FALSE=
  12144. fi
  12145. if test "$druntime_target_cpu_parsed" = "arm"; then
  12146. DRUNTIME_CPU_ARM_TRUE=
  12147. DRUNTIME_CPU_ARM_FALSE='#'
  12148. else
  12149. DRUNTIME_CPU_ARM_TRUE='#'
  12150. DRUNTIME_CPU_ARM_FALSE=
  12151. fi
  12152. if test "$druntime_target_cpu_parsed" = "mips"; then
  12153. DRUNTIME_CPU_MIPS_TRUE=
  12154. DRUNTIME_CPU_MIPS_FALSE='#'
  12155. else
  12156. DRUNTIME_CPU_MIPS_TRUE='#'
  12157. DRUNTIME_CPU_MIPS_FALSE=
  12158. fi
  12159. if test "$druntime_target_cpu_parsed" = "powerpc"; then
  12160. DRUNTIME_CPU_POWERPC_TRUE=
  12161. DRUNTIME_CPU_POWERPC_FALSE='#'
  12162. else
  12163. DRUNTIME_CPU_POWERPC_TRUE='#'
  12164. DRUNTIME_CPU_POWERPC_FALSE=
  12165. fi
  12166. if test "$druntime_target_cpu_parsed" = "x86"; then
  12167. DRUNTIME_CPU_X86_TRUE=
  12168. DRUNTIME_CPU_X86_FALSE='#'
  12169. else
  12170. DRUNTIME_CPU_X86_TRUE='#'
  12171. DRUNTIME_CPU_X86_FALSE=
  12172. fi
  12173. if test "$druntime_target_cpu_parsed" = "s390x"; then
  12174. DRUNTIME_CPU_SYSTEMZ_TRUE=
  12175. DRUNTIME_CPU_SYSTEMZ_FALSE='#'
  12176. else
  12177. DRUNTIME_CPU_SYSTEMZ_TRUE='#'
  12178. DRUNTIME_CPU_SYSTEMZ_FALSE=
  12179. fi
  12180. if test "$druntime_target_cpu_parsed" = "s390"; then
  12181. DRUNTIME_CPU_S390_TRUE=
  12182. DRUNTIME_CPU_S390_FALSE='#'
  12183. else
  12184. DRUNTIME_CPU_S390_TRUE='#'
  12185. DRUNTIME_CPU_S390_FALSE=
  12186. fi
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
  12188. $as_echo_n "checking for target OS... " >&6; }
  12189. if ${druntime_cv_target_os+:} false; then :
  12190. $as_echo_n "(cached) " >&6
  12191. else
  12192. druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
  12193. fi
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
  12195. $as_echo "$druntime_cv_target_os" >&6; }
  12196. if test -z "$druntime_cv_target_os"; then :
  12197. as_fn_error $? "can't detect target OS" "$LINENO" 5
  12198. fi
  12199. druntime_target_os_parsed=""
  12200. case "$druntime_cv_target_os" in
  12201. aix*) druntime_target_os_parsed="aix"
  12202. ;;
  12203. *android*)
  12204. druntime_target_os_parsed="android"
  12205. ;;
  12206. darwin*) druntime_target_os_parsed="darwin"
  12207. ;;
  12208. dragonfly*)
  12209. druntime_target_os_parsed="dragonflybsd"
  12210. ;;
  12211. freebsd*|k*bsd*-gnu)
  12212. druntime_target_os_parsed="freebsd"
  12213. ;;
  12214. openbsd*)
  12215. druntime_target_os_parsed="openbsd"
  12216. ;;
  12217. netbsd*)
  12218. druntime_target_os_parsed="netbsd"
  12219. ;;
  12220. linux*) druntime_target_os_parsed="linux"
  12221. ;;
  12222. mingw*) druntime_target_os_parsed="mingw"
  12223. ;;
  12224. *solaris*) druntime_target_os_parsed="solaris"
  12225. esac
  12226. if test "$druntime_target_os_parsed" = "aix"; then
  12227. DRUNTIME_OS_AIX_TRUE=
  12228. DRUNTIME_OS_AIX_FALSE='#'
  12229. else
  12230. DRUNTIME_OS_AIX_TRUE='#'
  12231. DRUNTIME_OS_AIX_FALSE=
  12232. fi
  12233. if test "$druntime_target_os_parsed" = "android"; then
  12234. DRUNTIME_OS_ANDROID_TRUE=
  12235. DRUNTIME_OS_ANDROID_FALSE='#'
  12236. else
  12237. DRUNTIME_OS_ANDROID_TRUE='#'
  12238. DRUNTIME_OS_ANDROID_FALSE=
  12239. fi
  12240. if test "$druntime_target_os_parsed" = "darwin"; then
  12241. DRUNTIME_OS_DARWIN_TRUE=
  12242. DRUNTIME_OS_DARWIN_FALSE='#'
  12243. else
  12244. DRUNTIME_OS_DARWIN_TRUE='#'
  12245. DRUNTIME_OS_DARWIN_FALSE=
  12246. fi
  12247. if test "$druntime_target_os_parsed" = "dragonflybsd"; then
  12248. DRUNTIME_OS_DRAGONFLYBSD_TRUE=
  12249. DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
  12250. else
  12251. DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
  12252. DRUNTIME_OS_DRAGONFLYBSD_FALSE=
  12253. fi
  12254. if test "$druntime_target_os_parsed" = "freebsd"; then
  12255. DRUNTIME_OS_FREEBSD_TRUE=
  12256. DRUNTIME_OS_FREEBSD_FALSE='#'
  12257. else
  12258. DRUNTIME_OS_FREEBSD_TRUE='#'
  12259. DRUNTIME_OS_FREEBSD_FALSE=
  12260. fi
  12261. if test "$druntime_target_os_parsed" = "netbsd"; then
  12262. DRUNTIME_OS_NETBSD_TRUE=
  12263. DRUNTIME_OS_NETBSD_FALSE='#'
  12264. else
  12265. DRUNTIME_OS_NETBSD_TRUE='#'
  12266. DRUNTIME_OS_NETBSD_FALSE=
  12267. fi
  12268. if test "$druntime_target_os_parsed" = "openbsd"; then
  12269. DRUNTIME_OS_OPENBSD_TRUE=
  12270. DRUNTIME_OS_OPENBSD_FALSE='#'
  12271. else
  12272. DRUNTIME_OS_OPENBSD_TRUE='#'
  12273. DRUNTIME_OS_OPENBSD_FALSE=
  12274. fi
  12275. if test "$druntime_target_os_parsed" = "linux"; then
  12276. DRUNTIME_OS_LINUX_TRUE=
  12277. DRUNTIME_OS_LINUX_FALSE='#'
  12278. else
  12279. DRUNTIME_OS_LINUX_TRUE='#'
  12280. DRUNTIME_OS_LINUX_FALSE=
  12281. fi
  12282. if test "$druntime_target_os_parsed" = "mingw"; then
  12283. DRUNTIME_OS_MINGW_TRUE=
  12284. DRUNTIME_OS_MINGW_FALSE='#'
  12285. else
  12286. DRUNTIME_OS_MINGW_TRUE='#'
  12287. DRUNTIME_OS_MINGW_FALSE=
  12288. fi
  12289. if test "$druntime_target_os_parsed" = "solaris"; then
  12290. DRUNTIME_OS_SOLARIS_TRUE=
  12291. DRUNTIME_OS_SOLARIS_FALSE='#'
  12292. else
  12293. DRUNTIME_OS_SOLARIS_TRUE='#'
  12294. DRUNTIME_OS_SOLARIS_FALSE=
  12295. fi
  12296. druntime_target_posix="no"
  12297. case "$druntime_cv_target_os" in
  12298. aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
  12299. druntime_target_posix="yes"
  12300. ;;
  12301. esac
  12302. if test "$druntime_target_posix" = "yes"; then
  12303. DRUNTIME_OS_POSIX_TRUE=
  12304. DRUNTIME_OS_POSIX_FALSE='#'
  12305. else
  12306. DRUNTIME_OS_POSIX_TRUE='#'
  12307. DRUNTIME_OS_POSIX_FALSE=
  12308. fi
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
  12310. $as_echo_n "checking for thread model used by GDC... " >&6; }
  12311. d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
  12313. $as_echo "$d_thread_model" >&6; }
  12314. # Map from thread model to thread interface.
  12315. case $d_thread_model in
  12316. aix) DCFG_THREAD_MODEL="Posix" ;;
  12317. lynx) DCFG_THREAD_MODEL="Posix" ;;
  12318. posix) DCFG_THREAD_MODEL="Posix" ;;
  12319. single) DCFG_THREAD_MODEL="Single" ;;
  12320. win32) DCFG_THREAD_MODEL="Win32" ;;
  12321. # TODO: These targets need porting.
  12322. dce|mipssde|rtems|tpf|vxworks)
  12323. DCFG_THREAD_MODEL="Single" ;;
  12324. *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
  12325. esac
  12326. ac_ext=c
  12327. ac_cpp='$CPP $CPPFLAGS'
  12328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
  12332. $as_echo_n "checking for ARM unwinder... " >&6; }
  12333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12334. /* end confdefs.h. */
  12335. #include <unwind.h>
  12336. int
  12337. main ()
  12338. {
  12339. #if __ARM_EABI_UNWINDER__
  12340. #error Yes, it is.
  12341. #endif
  12342. ;
  12343. return 0;
  12344. }
  12345. _ACEOF
  12346. if ac_fn_c_try_compile "$LINENO"; then :
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12348. $as_echo "no" >&6; }
  12349. DCFG_ARM_EABI_UNWINDER=false
  12350. else
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12352. $as_echo "yes" >&6; }
  12353. DCFG_ARM_EABI_UNWINDER=true
  12354. fi
  12355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12356. if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
  12357. DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
  12358. DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
  12359. else
  12360. DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
  12361. DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
  12362. fi
  12363. ac_ext=c
  12364. ac_cpp='$CPP $CPPFLAGS'
  12365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12368. ac_ext=c
  12369. ac_cpp='$CPP $CPPFLAGS'
  12370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
  12374. $as_echo_n "checking for minfo section bracketing... " >&6; }
  12375. case "$druntime_cv_target_os" in
  12376. darwin*)
  12377. section="__DATA,__minfodata"
  12378. start="section\$start\$__DATA\$__minfodata"
  12379. stop="section\$end\$__DATA\$__minfodata"
  12380. ;;
  12381. *)
  12382. section="minfo"
  12383. start="__start_minfo"
  12384. stop="__stop_minfo"
  12385. ;;
  12386. esac
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. void* module_info_ptr __attribute__((section ("$section")));
  12390. extern void* start_minfo __asm__("$start") __attribute__((visibility ("hidden")));
  12391. extern void* stop_minfo __asm__("$stop") __attribute__((visibility ("hidden")));
  12392. int main()
  12393. {
  12394. // Never run, just to prevent compiler from optimizing access
  12395. return (int)(&stop_minfo - &start_minfo);
  12396. }
  12397. _ACEOF
  12398. if ac_fn_c_try_link "$LINENO"; then :
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12400. $as_echo "yes" >&6; }
  12401. DCFG_MINFO_BRACKETING=true
  12402. else
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12404. $as_echo "no" >&6; }
  12405. DCFG_MINFO_BRACKETING=false
  12406. fi
  12407. rm -f core conftest.err conftest.$ac_objext \
  12408. conftest$ac_exeext conftest.$ac_ext
  12409. if test "$DCFG_MINFO_BRACKETING" = "true"; then
  12410. DRUNTIME_OS_MINFO_BRACKETING_TRUE=
  12411. DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
  12412. else
  12413. DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
  12414. DRUNTIME_OS_MINFO_BRACKETING_FALSE=
  12415. fi
  12416. ac_ext=c
  12417. ac_cpp='$CPP $CPPFLAGS'
  12418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12421. ac_ext=c
  12422. ac_cpp='$CPP $CPPFLAGS'
  12423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12426. ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
  12427. "
  12428. if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
  12429. DCFG_DLPI_TLS_MODID=true
  12430. else
  12431. DCFG_DLPI_TLS_MODID=false
  12432. fi
  12433. ac_ext=c
  12434. ac_cpp='$CPP $CPPFLAGS'
  12435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12438. case $target in
  12439. i?86-*-solaris2.* | x86_64-*-solaris2.*)
  12440. # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
  12441. # relocs. Work around by disabling TLS transitions. Not necessary
  12442. # on 32-bit x86, but cannot be distinguished reliably in specs.
  12443. druntime_ld_prog=`$CC -print-prog-name=ld`
  12444. druntime_ld_gld=no
  12445. druntime_ld_relax_transtls=no
  12446. if test -n "$druntime_ld_prog" \
  12447. && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
  12448. druntime_ld_gld=yes
  12449. else
  12450. echo 'int main (void) { return 0; }' > conftest.c
  12451. save_LDFLAGS="$LDFLAGS"
  12452. LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
  12453. if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
  12454. druntime_ld_relax_transtls=yes
  12455. fi
  12456. LDFLAGS="$save_LDFLAGS"
  12457. rm -f conftest.c conftest
  12458. fi
  12459. if test "$druntime_ld_relax_transtls" = "yes"; then
  12460. OS_LINK_SPEC='-z relax=transtls'
  12461. fi
  12462. ;;
  12463. esac
  12464. ac_ext=c
  12465. ac_cpp='$CPP $CPPFLAGS'
  12466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12469. DCFG_HAVE_QSORT_R=false
  12470. ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
  12471. if test "x$ac_cv_func_qsort_r" = xyes; then :
  12472. DCFG_HAVE_QSORT_R=true
  12473. fi
  12474. ac_ext=c
  12475. ac_cpp='$CPP $CPPFLAGS'
  12476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12479. gdc_save_DFLAGS=$GDCFLAGS
  12480. GDCFLAGS="-fno-druntime -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
  12481. ac_ext=d
  12482. ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
  12483. ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12484. ac_compiler_gnu=yes
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
  12486. $as_echo_n "checking for library containing malloc... " >&6; }
  12487. if ${ac_cv_search_malloc+:} false; then :
  12488. $as_echo_n "(cached) " >&6
  12489. else
  12490. ac_func_search_save_LIBS=$LIBS
  12491. cat > conftest.$ac_ext <<_ACEOF
  12492. module object;
  12493. extern(C) int malloc();
  12494. extern(C) int main() {
  12495. malloc(); return 0;
  12496. }
  12497. _ACEOF
  12498. for ac_lib in '' c; do
  12499. if test -z "$ac_lib"; then
  12500. ac_res="none required"
  12501. else
  12502. ac_res=-l$ac_lib
  12503. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12504. fi
  12505. if ac_fn_d_try_link "$LINENO"; then :
  12506. ac_cv_search_malloc=$ac_res
  12507. fi
  12508. rm -f core conftest.err conftest.$ac_objext \
  12509. conftest$ac_exeext
  12510. if ${ac_cv_search_malloc+:} false; then :
  12511. break
  12512. fi
  12513. done
  12514. if ${ac_cv_search_malloc+:} false; then :
  12515. else
  12516. ac_cv_search_malloc=no
  12517. fi
  12518. rm conftest.$ac_ext
  12519. LIBS=$ac_func_search_save_LIBS
  12520. fi
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
  12522. $as_echo "$ac_cv_search_malloc" >&6; }
  12523. ac_res=$ac_cv_search_malloc
  12524. if test "$ac_res" != no; then :
  12525. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  12528. $as_echo_n "checking for library containing pthread_create... " >&6; }
  12529. if ${ac_cv_search_pthread_create+:} false; then :
  12530. $as_echo_n "(cached) " >&6
  12531. else
  12532. ac_func_search_save_LIBS=$LIBS
  12533. cat > conftest.$ac_ext <<_ACEOF
  12534. module object;
  12535. extern(C) int pthread_create();
  12536. extern(C) int main() {
  12537. pthread_create(); return 0;
  12538. }
  12539. _ACEOF
  12540. for ac_lib in '' pthread; do
  12541. if test -z "$ac_lib"; then
  12542. ac_res="none required"
  12543. else
  12544. ac_res=-l$ac_lib
  12545. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12546. fi
  12547. if ac_fn_d_try_link "$LINENO"; then :
  12548. ac_cv_search_pthread_create=$ac_res
  12549. fi
  12550. rm -f core conftest.err conftest.$ac_objext \
  12551. conftest$ac_exeext
  12552. if ${ac_cv_search_pthread_create+:} false; then :
  12553. break
  12554. fi
  12555. done
  12556. if ${ac_cv_search_pthread_create+:} false; then :
  12557. else
  12558. ac_cv_search_pthread_create=no
  12559. fi
  12560. rm conftest.$ac_ext
  12561. LIBS=$ac_func_search_save_LIBS
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  12564. $as_echo "$ac_cv_search_pthread_create" >&6; }
  12565. ac_res=$ac_cv_search_pthread_create
  12566. if test "$ac_res" != no; then :
  12567. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12568. fi
  12569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
  12570. $as_echo_n "checking for library containing cosf... " >&6; }
  12571. if ${ac_cv_search_cosf+:} false; then :
  12572. $as_echo_n "(cached) " >&6
  12573. else
  12574. ac_func_search_save_LIBS=$LIBS
  12575. cat > conftest.$ac_ext <<_ACEOF
  12576. module object;
  12577. extern(C) int cosf();
  12578. extern(C) int main() {
  12579. cosf(); return 0;
  12580. }
  12581. _ACEOF
  12582. for ac_lib in '' m; do
  12583. if test -z "$ac_lib"; then
  12584. ac_res="none required"
  12585. else
  12586. ac_res=-l$ac_lib
  12587. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12588. fi
  12589. if ac_fn_d_try_link "$LINENO"; then :
  12590. ac_cv_search_cosf=$ac_res
  12591. fi
  12592. rm -f core conftest.err conftest.$ac_objext \
  12593. conftest$ac_exeext
  12594. if ${ac_cv_search_cosf+:} false; then :
  12595. break
  12596. fi
  12597. done
  12598. if ${ac_cv_search_cosf+:} false; then :
  12599. else
  12600. ac_cv_search_cosf=no
  12601. fi
  12602. rm conftest.$ac_ext
  12603. LIBS=$ac_func_search_save_LIBS
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
  12606. $as_echo "$ac_cv_search_cosf" >&6; }
  12607. ac_res=$ac_cv_search_cosf
  12608. if test "$ac_res" != no; then :
  12609. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12610. fi
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  12612. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  12613. if ${ac_cv_search_clock_gettime+:} false; then :
  12614. $as_echo_n "(cached) " >&6
  12615. else
  12616. ac_func_search_save_LIBS=$LIBS
  12617. cat > conftest.$ac_ext <<_ACEOF
  12618. module object;
  12619. extern(C) int clock_gettime();
  12620. extern(C) int main() {
  12621. clock_gettime(); return 0;
  12622. }
  12623. _ACEOF
  12624. for ac_lib in '' rt; do
  12625. if test -z "$ac_lib"; then
  12626. ac_res="none required"
  12627. else
  12628. ac_res=-l$ac_lib
  12629. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12630. fi
  12631. if ac_fn_d_try_link "$LINENO"; then :
  12632. ac_cv_search_clock_gettime=$ac_res
  12633. fi
  12634. rm -f core conftest.err conftest.$ac_objext \
  12635. conftest$ac_exeext
  12636. if ${ac_cv_search_clock_gettime+:} false; then :
  12637. break
  12638. fi
  12639. done
  12640. if ${ac_cv_search_clock_gettime+:} false; then :
  12641. else
  12642. ac_cv_search_clock_gettime=no
  12643. fi
  12644. rm conftest.$ac_ext
  12645. LIBS=$ac_func_search_save_LIBS
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  12648. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  12649. ac_res=$ac_cv_search_clock_gettime
  12650. if test "$ac_res" != no; then :
  12651. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12652. fi
  12653. # This checks to see if the host supports the compiler-generated builtins
  12654. # for atomic operations for various integral sizes. Note, this is intended
  12655. # to be an all-or-nothing switch, so all the atomic operations that are
  12656. # used should be checked.
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
  12658. $as_echo_n "checking for atomic builtins for byte... " >&6; }
  12659. if ${druntime_cv_atomic_byte+:} false; then :
  12660. $as_echo_n "(cached) " >&6
  12661. else
  12662. cat > conftest.$ac_ext <<_ACEOF
  12663. module object;
  12664. import gcc.builtins;
  12665. extern(C) int main() {
  12666. shared(byte) c1;
  12667. byte c2, c3;
  12668. __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
  12669. __atomic_load_1(&c1, 5);
  12670. __atomic_store_1(&c1, c2, 5);
  12671. return 0;
  12672. }
  12673. _ACEOF
  12674. if ac_fn_d_try_link "$LINENO"; then :
  12675. druntime_cv_atomic_byte=yes
  12676. else
  12677. druntime_cv_atomic_byte=no
  12678. fi
  12679. rm -f core conftest.err conftest.$ac_objext \
  12680. conftest$ac_exeext conftest.$ac_ext
  12681. fi
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
  12683. $as_echo "$druntime_cv_atomic_byte" >&6; }
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
  12685. $as_echo_n "checking for atomic builtins for short... " >&6; }
  12686. if ${druntime_cv_atomic_short+:} false; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. cat > conftest.$ac_ext <<_ACEOF
  12690. module object;
  12691. import gcc.builtins;
  12692. extern(C) int main() {
  12693. shared(short) c1;
  12694. short c2, c3;
  12695. __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
  12696. __atomic_load_2(&c1, 5);
  12697. __atomic_store_2(&c1, c2, 5);
  12698. return 0;
  12699. }
  12700. _ACEOF
  12701. if ac_fn_d_try_link "$LINENO"; then :
  12702. druntime_cv_atomic_short=yes
  12703. else
  12704. druntime_cv_atomic_short=no
  12705. fi
  12706. rm -f core conftest.err conftest.$ac_objext \
  12707. conftest$ac_exeext conftest.$ac_ext
  12708. fi
  12709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
  12710. $as_echo "$druntime_cv_atomic_short" >&6; }
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
  12712. $as_echo_n "checking for atomic builtins for int... " >&6; }
  12713. if ${druntime_cv_atomic_int+:} false; then :
  12714. $as_echo_n "(cached) " >&6
  12715. else
  12716. cat > conftest.$ac_ext <<_ACEOF
  12717. module object;
  12718. import gcc.builtins;
  12719. extern(C) int main() {
  12720. shared(int) c1;
  12721. int c2, c3;
  12722. __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
  12723. __atomic_load_4(&c1, 5);
  12724. __atomic_store_4(&c1, c2, 5);
  12725. return 0;
  12726. }
  12727. _ACEOF
  12728. if ac_fn_d_try_link "$LINENO"; then :
  12729. druntime_cv_atomic_int=yes
  12730. else
  12731. druntime_cv_atomic_int=no
  12732. fi
  12733. rm -f core conftest.err conftest.$ac_objext \
  12734. conftest$ac_exeext conftest.$ac_ext
  12735. fi
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
  12737. $as_echo "$druntime_cv_atomic_int" >&6; }
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
  12739. $as_echo_n "checking for atomic builtins for long... " >&6; }
  12740. if ${druntime_cv_atomic_long+:} false; then :
  12741. $as_echo_n "(cached) " >&6
  12742. else
  12743. cat > conftest.$ac_ext <<_ACEOF
  12744. module object;
  12745. import gcc.builtins;
  12746. extern(C) int main() {
  12747. shared(long) c1;
  12748. long c2, c3;
  12749. __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
  12750. __atomic_load_8(&c1, 5);
  12751. __atomic_store_8(&c1, c2, 5);
  12752. return 0;
  12753. }
  12754. _ACEOF
  12755. if ac_fn_d_try_link "$LINENO"; then :
  12756. druntime_cv_atomic_long=yes
  12757. else
  12758. druntime_cv_atomic_long=no
  12759. fi
  12760. rm -f core conftest.err conftest.$ac_objext \
  12761. conftest$ac_exeext conftest.$ac_ext
  12762. fi
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
  12764. $as_echo "$druntime_cv_atomic_long" >&6; }
  12765. # Have atomic builtin support if all but the long test above passes.
  12766. DCFG_HAVE_ATOMIC_BUILTINS=false
  12767. if test "$druntime_cv_atomic_byte" = yes \
  12768. && test "$druntime_cv_atomic_short" = yes \
  12769. && test "$druntime_cv_atomic_int" = yes; then \
  12770. DCFG_HAVE_ATOMIC_BUILTINS=true
  12771. fi
  12772. # Have 64-bit atomic support if the long test above passes.
  12773. DCFG_HAVE_64BIT_ATOMICS=false
  12774. if test "$druntime_cv_atomic_long" = yes; then
  12775. DCFG_HAVE_64BIT_ATOMICS=true
  12776. fi
  12777. ac_ext=c
  12778. ac_cpp='$CPP $CPPFLAGS'
  12779. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12780. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12781. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12782. GDCFLAGS=$gdc_save_DFLAGS
  12783. # Check whether --with-libatomic was given.
  12784. if test "${with_libatomic+set}" = set; then :
  12785. withval=$with_libatomic;
  12786. fi
  12787. DCFG_HAVE_LIBATOMIC=false
  12788. LIBATOMIC=
  12789. if test "x$enable_libatomic" != "xno" && test "x$with_libatomic" != "xno"; then :
  12790. DCFG_HAVE_LIBATOMIC=true
  12791. LIBATOMIC=../../libatomic/libatomic_convenience.la
  12792. else
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
  12794. $as_echo_n "checking for libatomic... " >&6; }
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
  12796. $as_echo "disabled" >&6; }
  12797. fi
  12798. ac_ext=c
  12799. ac_cpp='$CPP $CPPFLAGS'
  12800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12803. BACKTRACE_SUPPORTED=false
  12804. BACKTRACE_USES_MALLOC=false
  12805. BACKTRACE_SUPPORTS_THREADS=false
  12806. LIBBACKTRACE=""
  12807. # Check whether --with-libbacktrace was given.
  12808. if test "${with_libbacktrace+set}" = set; then :
  12809. withval=$with_libbacktrace;
  12810. fi
  12811. if test "x$enable_libbacktrace" != "xno" && test "x$with_libbacktrace" != "xno"; then :
  12812. LIBBACKTRACE=../../libbacktrace/libbacktrace.la
  12813. gdc_save_CPPFLAGS=$CPPFLAGS
  12814. CPPFLAGS="$CPPFLAGS -I../libbacktrace "
  12815. ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
  12816. if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
  12817. have_libbacktrace_h=true
  12818. else
  12819. have_libbacktrace_h=false
  12820. fi
  12821. if $have_libbacktrace_h; then
  12822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
  12823. $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
  12824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12825. /* end confdefs.h. */
  12826. #include <backtrace-supported.h>
  12827. #if BACKTRACE_SUPPORTED
  12828. FOUND_LIBBACKTRACE_RESULT_GDC
  12829. #endif
  12830. _ACEOF
  12831. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12832. $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
  12833. BACKTRACE_SUPPORTED=true
  12834. else
  12835. BACKTRACE_SUPPORTED=false
  12836. fi
  12837. rm -f conftest*
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
  12839. $as_echo "$BACKTRACE_SUPPORTED" >&6; }
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
  12841. $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
  12842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12843. /* end confdefs.h. */
  12844. #include <backtrace-supported.h>
  12845. #if BACKTRACE_USES_MALLOC
  12846. FOUND_LIBBACKTRACE_RESULT_GDC
  12847. #endif
  12848. _ACEOF
  12849. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12850. $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
  12851. BACKTRACE_USES_MALLOC=true
  12852. else
  12853. BACKTRACE_USES_MALLOC=false
  12854. fi
  12855. rm -f conftest*
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
  12857. $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
  12859. $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
  12860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12861. /* end confdefs.h. */
  12862. #include <backtrace-supported.h>
  12863. #if BACKTRACE_SUPPORTS_THREADS
  12864. FOUND_LIBBACKTRACE_RESULT_GDC
  12865. #endif
  12866. _ACEOF
  12867. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12868. $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
  12869. BACKTRACE_SUPPORTS_THREADS=true
  12870. else
  12871. BACKTRACE_SUPPORTS_THREADS=false
  12872. fi
  12873. rm -f conftest*
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
  12875. $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
  12876. fi
  12877. CPPFLAGS=$gdc_save_CPPFLAGS
  12878. else
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
  12880. $as_echo_n "checking for libbacktrace... " >&6; }
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
  12882. $as_echo "disabled" >&6; }
  12883. fi
  12884. ac_ext=c
  12885. ac_cpp='$CPP $CPPFLAGS'
  12886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12889. # Libtool has already checked this, so re-use the inferred dlopen lib.
  12890. if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
  12891. LIBS="$LIBS $lt_cv_dlopen_libs"
  12892. fi
  12893. druntime_check_both=no
  12894. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12895. if test "x$ac_cv_func_connect" = xyes; then :
  12896. else
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  12898. $as_echo_n "checking for connect in -lsocket... " >&6; }
  12899. if ${ac_cv_lib_socket_connect+:} false; then :
  12900. $as_echo_n "(cached) " >&6
  12901. else
  12902. ac_check_lib_save_LIBS=$LIBS
  12903. LIBS="-lsocket $LIBS"
  12904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12905. /* end confdefs.h. */
  12906. /* Override any GCC internal prototype to avoid an error.
  12907. Use char because int might match the return type of a GCC
  12908. builtin and then its argument prototype would still apply. */
  12909. #ifdef __cplusplus
  12910. extern "C"
  12911. #endif
  12912. char connect ();
  12913. int
  12914. main ()
  12915. {
  12916. return connect ();
  12917. ;
  12918. return 0;
  12919. }
  12920. _ACEOF
  12921. if ac_fn_c_try_link "$LINENO"; then :
  12922. ac_cv_lib_socket_connect=yes
  12923. else
  12924. ac_cv_lib_socket_connect=no
  12925. fi
  12926. rm -f core conftest.err conftest.$ac_objext \
  12927. conftest$ac_exeext conftest.$ac_ext
  12928. LIBS=$ac_check_lib_save_LIBS
  12929. fi
  12930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  12931. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  12932. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  12933. LIBS="$LIBS -lsocket"
  12934. else
  12935. druntime_check_both=yes
  12936. fi
  12937. fi
  12938. if test "$druntime_check_both" = "yes"; then
  12939. druntime_old_libs=$LIBS
  12940. LIBS="$LIBS -lsocket -lnsl"
  12941. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  12942. if test "x$ac_cv_func_accept" = xyes; then :
  12943. else
  12944. LIBS=$druntime_old_libs
  12945. fi
  12946. fi
  12947. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12948. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  12949. else
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  12951. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  12952. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  12953. $as_echo_n "(cached) " >&6
  12954. else
  12955. ac_check_lib_save_LIBS=$LIBS
  12956. LIBS="-lnsl $LIBS"
  12957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12958. /* end confdefs.h. */
  12959. /* Override any GCC internal prototype to avoid an error.
  12960. Use char because int might match the return type of a GCC
  12961. builtin and then its argument prototype would still apply. */
  12962. #ifdef __cplusplus
  12963. extern "C"
  12964. #endif
  12965. char gethostbyname ();
  12966. int
  12967. main ()
  12968. {
  12969. return gethostbyname ();
  12970. ;
  12971. return 0;
  12972. }
  12973. _ACEOF
  12974. if ac_fn_c_try_link "$LINENO"; then :
  12975. ac_cv_lib_nsl_gethostbyname=yes
  12976. else
  12977. ac_cv_lib_nsl_gethostbyname=no
  12978. fi
  12979. rm -f core conftest.err conftest.$ac_objext \
  12980. conftest$ac_exeext conftest.$ac_ext
  12981. LIBS=$ac_check_lib_save_LIBS
  12982. fi
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  12984. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  12985. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  12986. LIBS="$LIBS -lnsl"
  12987. fi
  12988. fi
  12989. # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
  12990. # "yes" for targets that have 'version = AsmExternal'.
  12991. druntime_fiber_asm_external=no
  12992. case "$target_cpu" in
  12993. aarch64* | \
  12994. arm* | \
  12995. i[34567]86|x86_64 | \
  12996. powerpc)
  12997. druntime_fiber_asm_external=yes
  12998. ;;
  12999. esac
  13000. if test "$druntime_fiber_asm_external" = no; then
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
  13002. $as_echo_n "checking for library containing swapcontext... " >&6; }
  13003. if ${ac_cv_search_swapcontext+:} false; then :
  13004. $as_echo_n "(cached) " >&6
  13005. else
  13006. ac_func_search_save_LIBS=$LIBS
  13007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13008. /* end confdefs.h. */
  13009. /* Override any GCC internal prototype to avoid an error.
  13010. Use char because int might match the return type of a GCC
  13011. builtin and then its argument prototype would still apply. */
  13012. #ifdef __cplusplus
  13013. extern "C"
  13014. #endif
  13015. char swapcontext ();
  13016. int
  13017. main ()
  13018. {
  13019. return swapcontext ();
  13020. ;
  13021. return 0;
  13022. }
  13023. _ACEOF
  13024. for ac_lib in '' c ucontext; do
  13025. if test -z "$ac_lib"; then
  13026. ac_res="none required"
  13027. else
  13028. ac_res=-l$ac_lib
  13029. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13030. fi
  13031. if ac_fn_c_try_link "$LINENO"; then :
  13032. ac_cv_search_swapcontext=$ac_res
  13033. fi
  13034. rm -f core conftest.err conftest.$ac_objext \
  13035. conftest$ac_exeext
  13036. if ${ac_cv_search_swapcontext+:} false; then :
  13037. break
  13038. fi
  13039. done
  13040. if ${ac_cv_search_swapcontext+:} false; then :
  13041. else
  13042. ac_cv_search_swapcontext=no
  13043. fi
  13044. rm conftest.$ac_ext
  13045. LIBS=$ac_func_search_save_LIBS
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
  13048. $as_echo "$ac_cv_search_swapcontext" >&6; }
  13049. ac_res=$ac_cv_search_swapcontext
  13050. if test "$ac_res" != no; then :
  13051. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13052. else
  13053. as_fn_error $? "swapcontext required but not found" "$LINENO" 5
  13054. fi
  13055. fi
  13056. ac_ext=c
  13057. ac_cpp='$CPP $CPPFLAGS'
  13058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13061. LIBZ=""
  13062. # Check whether --with-target-system-zlib was given.
  13063. if test "${with_target_system_zlib+set}" = set; then :
  13064. withval=$with_target_system_zlib;
  13065. else
  13066. with_target_system_zlib=no
  13067. fi
  13068. case "$with_target_system_zlib" in
  13069. yes|no|auto) ;;
  13070. *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
  13071. esac
  13072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
  13073. $as_echo_n "checking for system zlib... " >&6; }
  13074. save_LIBS=$LIBS
  13075. LIBS="$LIBS -lz"
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. #include <zlib.h>
  13079. int
  13080. main ()
  13081. {
  13082. gzopen("none", "rb")
  13083. ;
  13084. return 0;
  13085. }
  13086. _ACEOF
  13087. if ac_fn_c_try_link "$LINENO"; then :
  13088. if test "$cross_compiling" = yes; then :
  13089. system_zlib_found=no
  13090. else
  13091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13092. /* end confdefs.h. */
  13093. #include <zlib.h>
  13094. int main() {
  13095. gzFile file = gzopen("none", "rb");
  13096. return 0;
  13097. }
  13098. _ACEOF
  13099. if ac_fn_c_try_run "$LINENO"; then :
  13100. system_zlib_found=yes
  13101. else
  13102. system_zlib_found=no
  13103. fi
  13104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13105. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13106. fi
  13107. else
  13108. system_zlib_found=no
  13109. fi
  13110. rm -f core conftest.err conftest.$ac_objext \
  13111. conftest$ac_exeext conftest.$ac_ext
  13112. LIBS=$save_LIBS
  13113. if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  13115. $as_echo "found" >&6; }
  13116. LIBS="$LIBS -lz"
  13117. elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
  13118. as_fn_error $? "system zlib required but not found" "$LINENO" 5
  13119. else
  13120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13121. $as_echo "just compiled" >&6; }
  13122. LIBZ=../../zlib/libz_convenience.la
  13123. fi
  13124. ac_ext=c
  13125. ac_cpp='$CPP $CPPFLAGS'
  13126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
  13130. $as_echo_n "checking D GCC version... " >&6; }
  13131. gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
  13132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
  13133. $as_echo "$gcc_version" >&6; }
  13134. # Check whether --with-cross-host was given.
  13135. if test "${with_cross_host+set}" = set; then :
  13136. withval=$with_cross_host;
  13137. fi
  13138. libphobos_toolexecdir=no
  13139. libphobos_toolexeclibdir=no
  13140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  13141. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  13142. # Check whether --enable-version-specific-runtime-libs was given.
  13143. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  13144. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  13145. yes) version_specific_libs=yes ;;
  13146. no) version_specific_libs=no ;;
  13147. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  13148. esac
  13149. else
  13150. version_specific_libs=no
  13151. fi
  13152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  13153. $as_echo "$version_specific_libs" >&6; }
  13154. # Check whether --with-toolexeclibdir was given.
  13155. if test "${with_toolexeclibdir+set}" = set; then :
  13156. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  13157. /)
  13158. ;;
  13159. */)
  13160. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  13161. ;;
  13162. esac
  13163. else
  13164. with_toolexeclibdir=no
  13165. fi
  13166. # Version-specific runtime libs processing.
  13167. if test $version_specific_libs = yes; then
  13168. libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
  13169. libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
  13170. else
  13171. # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
  13172. # Install a library built with a cross compiler in tooldir, not libdir.
  13173. if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
  13174. libphobos_toolexecdir='${exec_prefix}/${host_alias}'
  13175. case ${with_toolexeclibdir} in
  13176. no)
  13177. libphobos_toolexeclibdir='${toolexecdir}/lib'
  13178. ;;
  13179. *)
  13180. libphobos_toolexeclibdir=${with_toolexeclibdir}
  13181. ;;
  13182. esac
  13183. else
  13184. libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
  13185. libphobos_toolexeclibdir='${libdir}'
  13186. fi
  13187. multi_os_directory=`$GDC -print-multi-os-directory`
  13188. case $multi_os_directory in
  13189. .) ;; # Avoid trailing /.
  13190. *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
  13191. esac
  13192. fi
  13193. # Default case for install directory for D sources files.
  13194. gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
  13196. $as_echo_n "checking for --enable-libphobos... " >&6; }
  13197. # Check whether --enable-libphobos was given.
  13198. if test "${enable_libphobos+set}" = set; then :
  13199. enableval=$enable_libphobos;
  13200. fi
  13201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
  13202. $as_echo "$enable_libphobos" >&6; }
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
  13204. $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
  13205. # Check whether --with-libphobos-druntime-only was given.
  13206. if test "${with_libphobos_druntime_only+set}" = set; then :
  13207. withval=$with_libphobos_druntime_only;
  13208. else
  13209. with_libphobos_druntime_only=auto
  13210. fi
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
  13212. $as_echo "$with_libphobos_druntime_only" >&6; }
  13213. case "$with_libphobos_druntime_only" in
  13214. yes|no|auto) ;;
  13215. *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
  13216. esac
  13217. # See if supported.
  13218. unset LIBPHOBOS_SUPPORTED
  13219. unset LIBDRUNTIME_ONLY
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
  13221. $as_echo_n "checking for host support for libphobos... " >&6; }
  13222. . ${srcdir}/configure.tgt
  13223. case ${host} in
  13224. x86_64-*-solaris2.* | i?86-*-solaris2.*)
  13225. # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
  13226. if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
  13227. LIBPHOBOS_SUPPORTED=no
  13228. fi
  13229. ;;
  13230. esac
  13231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
  13232. $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
  13233. # Decide if it's usable.
  13234. case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
  13235. *:no) use_libphobos=no ;;
  13236. *:yes) use_libphobos=yes ;;
  13237. yes:*) use_libphobos=yes ;;
  13238. *:*) use_libphobos=no ;;
  13239. esac
  13240. if test x$use_libphobos = xyes; then
  13241. ENABLE_LIBPHOBOS_TRUE=
  13242. ENABLE_LIBPHOBOS_FALSE='#'
  13243. else
  13244. ENABLE_LIBPHOBOS_TRUE='#'
  13245. ENABLE_LIBPHOBOS_FALSE=
  13246. fi
  13247. # Decide if only libdruntime should be built.
  13248. case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
  13249. *:no) only_libdruntime=no ;;
  13250. *:yes) only_libdruntime=yes ;;
  13251. yes:*) only_libdruntime=yes ;;
  13252. *:*) only_libdruntime=no ;;
  13253. esac
  13254. if test x$only_libdruntime = xyes; then
  13255. ENABLE_LIBDRUNTIME_ONLY_TRUE=
  13256. ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
  13257. else
  13258. ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
  13259. ENABLE_LIBDRUNTIME_ONLY_FALSE=
  13260. fi
  13261. # Enable expensive internal checks
  13262. # Check whether --enable-libphobos-checking was given.
  13263. if test "${enable_libphobos_checking+set}" = set; then :
  13264. enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
  13265. else
  13266. ac_checking_flags=release
  13267. fi
  13268. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  13269. for check in release $ac_checking_flags
  13270. do
  13271. case $check in
  13272. # These set all the flags to specific states
  13273. yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
  13274. no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
  13275. # These enable particular checks
  13276. assert) ASSERT_FLAG="-fassert" ;;
  13277. # Accept
  13278. *) ;;
  13279. esac
  13280. done
  13281. IFS="$ac_save_IFS"
  13282. CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
  13283. # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
  13284. if test "$DCFG_MINFO_BRACKETING" = "false"; then
  13285. DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
  13286. else
  13287. DRTSTUFF_SPEC=/dev/null
  13288. fi
  13289. # Add dependencies for libgphobos.spec file
  13290. SPEC_PHOBOS_DEPS="$LIBS"
  13291. # Libdruntime / phobos soname version
  13292. libtool_VERSION=3:0:0
  13293. # Set default flags (after DRUNTIME_WERROR!)
  13294. if test -z "$GDCFLAGS"; then
  13295. GDCFLAGS="-g -O2"
  13296. fi
  13297. WARN_DFLAGS="-Wall $WERROR_FLAG"
  13298. # Sanity check for the cross-compilation case:
  13299. ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  13300. if test "x$ac_cv_header_stdio_h" = xyes; then :
  13301. :
  13302. else
  13303. as_fn_error $? "cannot find stdio.h." "$LINENO" 5
  13304. fi
  13305. ac_config_files="$ac_config_files Makefile"
  13306. ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
  13307. ac_config_files="$ac_config_files src/libgphobos.spec"
  13308. ac_config_files="$ac_config_files testsuite/testsuite_flags"
  13309. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  13310. # that multilib installs will end up installed in the correct place.
  13311. # The testsuite needs it for multilib-aware ABI baseline files.
  13312. # To work around this not being passed down from config-ml.in ->
  13313. # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
  13314. # append it here. Only modify Makefiles that have just been created.
  13315. #
  13316. # Also, get rid of this simulated-VPATH thing that automake does.
  13317. ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
  13318. cat >confcache <<\_ACEOF
  13319. # This file is a shell script that caches the results of configure
  13320. # tests run on this system so they can be shared between configure
  13321. # scripts and configure runs, see configure's option --config-cache.
  13322. # It is not useful on other systems. If it contains results you don't
  13323. # want to keep, you may remove or edit it.
  13324. #
  13325. # config.status only pays attention to the cache file if you give it
  13326. # the --recheck option to rerun configure.
  13327. #
  13328. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13329. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13330. # following values.
  13331. _ACEOF
  13332. # The following way of writing the cache mishandles newlines in values,
  13333. # but we know of no workaround that is simple, portable, and efficient.
  13334. # So, we kill variables containing newlines.
  13335. # Ultrix sh set writes to stderr and can't be redirected directly,
  13336. # and sets the high bit in the cache file unless we assign to the vars.
  13337. (
  13338. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13339. eval ac_val=\$$ac_var
  13340. case $ac_val in #(
  13341. *${as_nl}*)
  13342. case $ac_var in #(
  13343. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13344. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13345. esac
  13346. case $ac_var in #(
  13347. _ | IFS | as_nl) ;; #(
  13348. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13349. *) { eval $ac_var=; unset $ac_var;} ;;
  13350. esac ;;
  13351. esac
  13352. done
  13353. (set) 2>&1 |
  13354. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13355. *${as_nl}ac_space=\ *)
  13356. # `set' does not quote correctly, so add quotes: double-quote
  13357. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13358. sed -n \
  13359. "s/'/'\\\\''/g;
  13360. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13361. ;; #(
  13362. *)
  13363. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13364. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13365. ;;
  13366. esac |
  13367. sort
  13368. ) |
  13369. sed '
  13370. /^ac_cv_env_/b end
  13371. t clear
  13372. :clear
  13373. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13374. t end
  13375. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13376. :end' >>confcache
  13377. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13378. if test -w "$cache_file"; then
  13379. if test "x$cache_file" != "x/dev/null"; then
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13381. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13382. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13383. cat confcache >"$cache_file"
  13384. else
  13385. case $cache_file in #(
  13386. */* | ?:*)
  13387. mv -f confcache "$cache_file"$$ &&
  13388. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13389. *)
  13390. mv -f confcache "$cache_file" ;;
  13391. esac
  13392. fi
  13393. fi
  13394. else
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13396. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13397. fi
  13398. fi
  13399. rm -f confcache
  13400. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13401. # Let make expand exec_prefix.
  13402. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13403. DEFS=-DHAVE_CONFIG_H
  13404. ac_libobjs=
  13405. ac_ltlibobjs=
  13406. U=
  13407. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13408. # 1. Remove the extension, and $U if already installed.
  13409. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13410. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13411. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13412. # will be set to the directory where LIBOBJS objects are built.
  13413. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13414. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13415. done
  13416. LIBOBJS=$ac_libobjs
  13417. LTLIBOBJS=$ac_ltlibobjs
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13419. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13420. if test -n "$am_sleep_pid"; then
  13421. # Hide warnings about reused PIDs.
  13422. wait $am_sleep_pid 2>/dev/null
  13423. fi
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13425. $as_echo "done" >&6; }
  13426. if test -n "$EXEEXT"; then
  13427. am__EXEEXT_TRUE=
  13428. am__EXEEXT_FALSE='#'
  13429. else
  13430. am__EXEEXT_TRUE='#'
  13431. am__EXEEXT_FALSE=
  13432. fi
  13433. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13434. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13436. fi
  13437. if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
  13438. as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
  13439. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13440. fi
  13441. if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
  13442. as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
  13443. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13444. fi
  13445. if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
  13446. as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
  13447. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13448. fi
  13449. if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
  13450. as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
  13451. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13452. fi
  13453. if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
  13454. as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
  13455. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13456. fi
  13457. if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
  13458. as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
  13459. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13460. fi
  13461. if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
  13462. as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
  13463. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13464. fi
  13465. if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
  13466. as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
  13467. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13468. fi
  13469. if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
  13470. as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
  13471. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13472. fi
  13473. if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
  13474. as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
  13475. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13476. fi
  13477. if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
  13478. as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
  13479. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13480. fi
  13481. if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
  13482. as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
  13483. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13484. fi
  13485. if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
  13486. as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
  13487. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13488. fi
  13489. if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
  13490. as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
  13491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13492. fi
  13493. if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
  13494. as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
  13495. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13496. fi
  13497. if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
  13498. as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
  13499. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13500. fi
  13501. if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
  13502. as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
  13503. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13504. fi
  13505. if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
  13506. as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
  13507. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13508. fi
  13509. if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
  13510. as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
  13511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13512. fi
  13513. if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
  13514. as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
  13515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13516. fi
  13517. if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
  13518. as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
  13519. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13520. fi
  13521. if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
  13522. as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
  13523. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13524. fi
  13525. : "${CONFIG_STATUS=./config.status}"
  13526. ac_write_fail=0
  13527. ac_clean_files_save=$ac_clean_files
  13528. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13530. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13531. as_write_fail=0
  13532. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13533. #! $SHELL
  13534. # Generated by $as_me.
  13535. # Run this file to recreate the current configuration.
  13536. # Compiler output produced by configure, useful for debugging
  13537. # configure, is in config.log if it exists.
  13538. debug=false
  13539. ac_cs_recheck=false
  13540. ac_cs_silent=false
  13541. SHELL=\${CONFIG_SHELL-$SHELL}
  13542. export SHELL
  13543. _ASEOF
  13544. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13545. ## -------------------- ##
  13546. ## M4sh Initialization. ##
  13547. ## -------------------- ##
  13548. # Be more Bourne compatible
  13549. DUALCASE=1; export DUALCASE # for MKS sh
  13550. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13551. emulate sh
  13552. NULLCMD=:
  13553. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13554. # is contrary to our usage. Disable this feature.
  13555. alias -g '${1+"$@"}'='"$@"'
  13556. setopt NO_GLOB_SUBST
  13557. else
  13558. case `(set -o) 2>/dev/null` in #(
  13559. *posix*) :
  13560. set -o posix ;; #(
  13561. *) :
  13562. ;;
  13563. esac
  13564. fi
  13565. as_nl='
  13566. '
  13567. export as_nl
  13568. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13569. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13570. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13571. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13572. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13573. # but without wasting forks for bash or zsh.
  13574. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13575. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13576. as_echo='print -r --'
  13577. as_echo_n='print -rn --'
  13578. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13579. as_echo='printf %s\n'
  13580. as_echo_n='printf %s'
  13581. else
  13582. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13583. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13584. as_echo_n='/usr/ucb/echo -n'
  13585. else
  13586. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13587. as_echo_n_body='eval
  13588. arg=$1;
  13589. case $arg in #(
  13590. *"$as_nl"*)
  13591. expr "X$arg" : "X\\(.*\\)$as_nl";
  13592. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13593. esac;
  13594. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13595. '
  13596. export as_echo_n_body
  13597. as_echo_n='sh -c $as_echo_n_body as_echo'
  13598. fi
  13599. export as_echo_body
  13600. as_echo='sh -c $as_echo_body as_echo'
  13601. fi
  13602. # The user is always right.
  13603. if test "${PATH_SEPARATOR+set}" != set; then
  13604. PATH_SEPARATOR=:
  13605. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13606. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13607. PATH_SEPARATOR=';'
  13608. }
  13609. fi
  13610. # IFS
  13611. # We need space, tab and new line, in precisely that order. Quoting is
  13612. # there to prevent editors from complaining about space-tab.
  13613. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13614. # splitting by setting IFS to empty value.)
  13615. IFS=" "" $as_nl"
  13616. # Find who we are. Look in the path if we contain no directory separator.
  13617. as_myself=
  13618. case $0 in #((
  13619. *[\\/]* ) as_myself=$0 ;;
  13620. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13621. for as_dir in $PATH
  13622. do
  13623. IFS=$as_save_IFS
  13624. test -z "$as_dir" && as_dir=.
  13625. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13626. done
  13627. IFS=$as_save_IFS
  13628. ;;
  13629. esac
  13630. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13631. # in which case we are not to be found in the path.
  13632. if test "x$as_myself" = x; then
  13633. as_myself=$0
  13634. fi
  13635. if test ! -f "$as_myself"; then
  13636. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13637. exit 1
  13638. fi
  13639. # Unset variables that we do not need and which cause bugs (e.g. in
  13640. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13641. # suppresses any "Segmentation fault" message there. '((' could
  13642. # trigger a bug in pdksh 5.2.14.
  13643. for as_var in BASH_ENV ENV MAIL MAILPATH
  13644. do eval test x\${$as_var+set} = xset \
  13645. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13646. done
  13647. PS1='$ '
  13648. PS2='> '
  13649. PS4='+ '
  13650. # NLS nuisances.
  13651. LC_ALL=C
  13652. export LC_ALL
  13653. LANGUAGE=C
  13654. export LANGUAGE
  13655. # CDPATH.
  13656. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13657. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13658. # ----------------------------------------
  13659. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13660. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13661. # script with STATUS, using 1 if that was 0.
  13662. as_fn_error ()
  13663. {
  13664. as_status=$1; test $as_status -eq 0 && as_status=1
  13665. if test "$4"; then
  13666. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13667. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13668. fi
  13669. $as_echo "$as_me: error: $2" >&2
  13670. as_fn_exit $as_status
  13671. } # as_fn_error
  13672. # as_fn_set_status STATUS
  13673. # -----------------------
  13674. # Set $? to STATUS, without forking.
  13675. as_fn_set_status ()
  13676. {
  13677. return $1
  13678. } # as_fn_set_status
  13679. # as_fn_exit STATUS
  13680. # -----------------
  13681. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13682. as_fn_exit ()
  13683. {
  13684. set +e
  13685. as_fn_set_status $1
  13686. exit $1
  13687. } # as_fn_exit
  13688. # as_fn_unset VAR
  13689. # ---------------
  13690. # Portably unset VAR.
  13691. as_fn_unset ()
  13692. {
  13693. { eval $1=; unset $1;}
  13694. }
  13695. as_unset=as_fn_unset
  13696. # as_fn_append VAR VALUE
  13697. # ----------------------
  13698. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13699. # advantage of any shell optimizations that allow amortized linear growth over
  13700. # repeated appends, instead of the typical quadratic growth present in naive
  13701. # implementations.
  13702. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13703. eval 'as_fn_append ()
  13704. {
  13705. eval $1+=\$2
  13706. }'
  13707. else
  13708. as_fn_append ()
  13709. {
  13710. eval $1=\$$1\$2
  13711. }
  13712. fi # as_fn_append
  13713. # as_fn_arith ARG...
  13714. # ------------------
  13715. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13716. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13717. # must be portable across $(()) and expr.
  13718. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13719. eval 'as_fn_arith ()
  13720. {
  13721. as_val=$(( $* ))
  13722. }'
  13723. else
  13724. as_fn_arith ()
  13725. {
  13726. as_val=`expr "$@" || test $? -eq 1`
  13727. }
  13728. fi # as_fn_arith
  13729. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13730. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13731. as_expr=expr
  13732. else
  13733. as_expr=false
  13734. fi
  13735. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13736. as_basename=basename
  13737. else
  13738. as_basename=false
  13739. fi
  13740. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13741. as_dirname=dirname
  13742. else
  13743. as_dirname=false
  13744. fi
  13745. as_me=`$as_basename -- "$0" ||
  13746. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13747. X"$0" : 'X\(//\)$' \| \
  13748. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13749. $as_echo X/"$0" |
  13750. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13751. s//\1/
  13752. q
  13753. }
  13754. /^X\/\(\/\/\)$/{
  13755. s//\1/
  13756. q
  13757. }
  13758. /^X\/\(\/\).*/{
  13759. s//\1/
  13760. q
  13761. }
  13762. s/.*/./; q'`
  13763. # Avoid depending upon Character Ranges.
  13764. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13765. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13766. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13767. as_cr_digits='0123456789'
  13768. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13769. ECHO_C= ECHO_N= ECHO_T=
  13770. case `echo -n x` in #(((((
  13771. -n*)
  13772. case `echo 'xy\c'` in
  13773. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13774. xy) ECHO_C='\c';;
  13775. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13776. ECHO_T=' ';;
  13777. esac;;
  13778. *)
  13779. ECHO_N='-n';;
  13780. esac
  13781. rm -f conf$$ conf$$.exe conf$$.file
  13782. if test -d conf$$.dir; then
  13783. rm -f conf$$.dir/conf$$.file
  13784. else
  13785. rm -f conf$$.dir
  13786. mkdir conf$$.dir 2>/dev/null
  13787. fi
  13788. if (echo >conf$$.file) 2>/dev/null; then
  13789. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13790. as_ln_s='ln -s'
  13791. # ... but there are two gotchas:
  13792. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13793. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13794. # In both cases, we have to default to `cp -pR'.
  13795. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13796. as_ln_s='cp -pR'
  13797. elif ln conf$$.file conf$$ 2>/dev/null; then
  13798. as_ln_s=ln
  13799. else
  13800. as_ln_s='cp -pR'
  13801. fi
  13802. else
  13803. as_ln_s='cp -pR'
  13804. fi
  13805. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13806. rmdir conf$$.dir 2>/dev/null
  13807. # as_fn_mkdir_p
  13808. # -------------
  13809. # Create "$as_dir" as a directory, including parents if necessary.
  13810. as_fn_mkdir_p ()
  13811. {
  13812. case $as_dir in #(
  13813. -*) as_dir=./$as_dir;;
  13814. esac
  13815. test -d "$as_dir" || eval $as_mkdir_p || {
  13816. as_dirs=
  13817. while :; do
  13818. case $as_dir in #(
  13819. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13820. *) as_qdir=$as_dir;;
  13821. esac
  13822. as_dirs="'$as_qdir' $as_dirs"
  13823. as_dir=`$as_dirname -- "$as_dir" ||
  13824. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13825. X"$as_dir" : 'X\(//\)[^/]' \| \
  13826. X"$as_dir" : 'X\(//\)$' \| \
  13827. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13828. $as_echo X"$as_dir" |
  13829. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13830. s//\1/
  13831. q
  13832. }
  13833. /^X\(\/\/\)[^/].*/{
  13834. s//\1/
  13835. q
  13836. }
  13837. /^X\(\/\/\)$/{
  13838. s//\1/
  13839. q
  13840. }
  13841. /^X\(\/\).*/{
  13842. s//\1/
  13843. q
  13844. }
  13845. s/.*/./; q'`
  13846. test -d "$as_dir" && break
  13847. done
  13848. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13849. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13850. } # as_fn_mkdir_p
  13851. if mkdir -p . 2>/dev/null; then
  13852. as_mkdir_p='mkdir -p "$as_dir"'
  13853. else
  13854. test -d ./-p && rmdir ./-p
  13855. as_mkdir_p=false
  13856. fi
  13857. # as_fn_executable_p FILE
  13858. # -----------------------
  13859. # Test if FILE is an executable regular file.
  13860. as_fn_executable_p ()
  13861. {
  13862. test -f "$1" && test -x "$1"
  13863. } # as_fn_executable_p
  13864. as_test_x='test -x'
  13865. as_executable_p=as_fn_executable_p
  13866. # Sed expression to map a string onto a valid CPP name.
  13867. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13868. # Sed expression to map a string onto a valid variable name.
  13869. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13870. exec 6>&1
  13871. ## ----------------------------------- ##
  13872. ## Main body of $CONFIG_STATUS script. ##
  13873. ## ----------------------------------- ##
  13874. _ASEOF
  13875. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13877. # Save the log message, to keep $0 and so on meaningful, and to
  13878. # report actual input values of CONFIG_FILES etc. instead of their
  13879. # values after options handling.
  13880. ac_log="
  13881. This file was extended by package-unused $as_me version-unused, which was
  13882. generated by GNU Autoconf 2.69. Invocation command line was
  13883. CONFIG_FILES = $CONFIG_FILES
  13884. CONFIG_HEADERS = $CONFIG_HEADERS
  13885. CONFIG_LINKS = $CONFIG_LINKS
  13886. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13887. $ $0 $@
  13888. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13889. "
  13890. _ACEOF
  13891. case $ac_config_files in *"
  13892. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13893. esac
  13894. case $ac_config_headers in *"
  13895. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13896. esac
  13897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13898. # Files that config.status was made for.
  13899. config_files="$ac_config_files"
  13900. config_headers="$ac_config_headers"
  13901. config_commands="$ac_config_commands"
  13902. _ACEOF
  13903. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13904. ac_cs_usage="\
  13905. \`$as_me' instantiates files and other configuration actions
  13906. from templates according to the current configuration. Unless the files
  13907. and actions are specified as TAGs, all are instantiated by default.
  13908. Usage: $0 [OPTION]... [TAG]...
  13909. -h, --help print this help, then exit
  13910. -V, --version print version number and configuration settings, then exit
  13911. --config print configuration, then exit
  13912. -q, --quiet, --silent
  13913. do not print progress messages
  13914. -d, --debug don't remove temporary files
  13915. --recheck update $as_me by reconfiguring in the same conditions
  13916. --file=FILE[:TEMPLATE]
  13917. instantiate the configuration file FILE
  13918. --header=FILE[:TEMPLATE]
  13919. instantiate the configuration header FILE
  13920. Configuration files:
  13921. $config_files
  13922. Configuration headers:
  13923. $config_headers
  13924. Configuration commands:
  13925. $config_commands
  13926. Report bugs to the package provider."
  13927. _ACEOF
  13928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13929. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13930. ac_cs_version="\\
  13931. package-unused config.status version-unused
  13932. configured by $0, generated by GNU Autoconf 2.69,
  13933. with options \\"\$ac_cs_config\\"
  13934. Copyright (C) 2012 Free Software Foundation, Inc.
  13935. This config.status script is free software; the Free Software Foundation
  13936. gives unlimited permission to copy, distribute and modify it."
  13937. ac_pwd='$ac_pwd'
  13938. srcdir='$srcdir'
  13939. INSTALL='$INSTALL'
  13940. MKDIR_P='$MKDIR_P'
  13941. AWK='$AWK'
  13942. test -n "\$AWK" || AWK=awk
  13943. _ACEOF
  13944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13945. # The default lists apply if the user does not specify any file.
  13946. ac_need_defaults=:
  13947. while test $# != 0
  13948. do
  13949. case $1 in
  13950. --*=?*)
  13951. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13952. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13953. ac_shift=:
  13954. ;;
  13955. --*=)
  13956. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13957. ac_optarg=
  13958. ac_shift=:
  13959. ;;
  13960. *)
  13961. ac_option=$1
  13962. ac_optarg=$2
  13963. ac_shift=shift
  13964. ;;
  13965. esac
  13966. case $ac_option in
  13967. # Handling of the options.
  13968. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13969. ac_cs_recheck=: ;;
  13970. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13971. $as_echo "$ac_cs_version"; exit ;;
  13972. --config | --confi | --conf | --con | --co | --c )
  13973. $as_echo "$ac_cs_config"; exit ;;
  13974. --debug | --debu | --deb | --de | --d | -d )
  13975. debug=: ;;
  13976. --file | --fil | --fi | --f )
  13977. $ac_shift
  13978. case $ac_optarg in
  13979. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13980. '') as_fn_error $? "missing file argument" ;;
  13981. esac
  13982. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13983. ac_need_defaults=false;;
  13984. --header | --heade | --head | --hea )
  13985. $ac_shift
  13986. case $ac_optarg in
  13987. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13988. esac
  13989. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13990. ac_need_defaults=false;;
  13991. --he | --h)
  13992. # Conflict between --help and --header
  13993. as_fn_error $? "ambiguous option: \`$1'
  13994. Try \`$0 --help' for more information.";;
  13995. --help | --hel | -h )
  13996. $as_echo "$ac_cs_usage"; exit ;;
  13997. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13998. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13999. ac_cs_silent=: ;;
  14000. # This is an error.
  14001. -*) as_fn_error $? "unrecognized option: \`$1'
  14002. Try \`$0 --help' for more information." ;;
  14003. *) as_fn_append ac_config_targets " $1"
  14004. ac_need_defaults=false ;;
  14005. esac
  14006. shift
  14007. done
  14008. ac_configure_extra_args=
  14009. if $ac_cs_silent; then
  14010. exec 6>/dev/null
  14011. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14012. fi
  14013. _ACEOF
  14014. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14015. if \$ac_cs_recheck; then
  14016. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14017. shift
  14018. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14019. CONFIG_SHELL='$SHELL'
  14020. export CONFIG_SHELL
  14021. exec "\$@"
  14022. fi
  14023. _ACEOF
  14024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14025. exec 5>>config.log
  14026. {
  14027. echo
  14028. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14029. ## Running $as_me. ##
  14030. _ASBOX
  14031. $as_echo "$ac_log"
  14032. } >&5
  14033. _ACEOF
  14034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14035. #
  14036. # INIT-COMMANDS
  14037. #
  14038. srcdir="$srcdir"
  14039. host="$host"
  14040. target="$target"
  14041. with_multisubdir="$with_multisubdir"
  14042. with_multisrctop="$with_multisrctop"
  14043. with_target_subdir="$with_target_subdir"
  14044. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14045. multi_basedir="$multi_basedir"
  14046. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14047. CC="$CC"
  14048. CXX="$CXX"
  14049. GFORTRAN="$GFORTRAN"
  14050. GDC="$GDC"
  14051. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14052. # if CDPATH is set.
  14053. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14054. sed_quote_subst='$sed_quote_subst'
  14055. double_quote_subst='$double_quote_subst'
  14056. delay_variable_subst='$delay_variable_subst'
  14057. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14058. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14059. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14060. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14061. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14062. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14063. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14064. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14065. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14066. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14067. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14068. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14069. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14070. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14071. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14072. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14073. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14074. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14075. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14076. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14077. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14078. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14079. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14080. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14081. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14082. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14083. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14084. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14085. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14086. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14087. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14088. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14089. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14090. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14091. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14092. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14093. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14094. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14095. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14096. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14097. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14098. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14099. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14100. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14101. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14102. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14103. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14104. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14105. 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"`'
  14106. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14107. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14108. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14109. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14110. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14111. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14112. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14113. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14114. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14115. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14116. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14117. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14118. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14119. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14120. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14121. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14122. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14123. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14124. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14125. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14126. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14127. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14128. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14129. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14130. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14131. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14132. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14133. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14134. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14135. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14136. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14137. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14138. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14139. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14140. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14141. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14142. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14143. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14144. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14145. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14146. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14147. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14148. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14149. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14150. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14151. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14152. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14153. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14154. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14155. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14156. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14157. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14158. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14159. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14160. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14161. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14162. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14163. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14164. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14165. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14166. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14167. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14168. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14169. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14170. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14171. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14172. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14173. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14174. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14175. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14176. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14177. LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
  14178. reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
  14179. reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
  14180. old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
  14181. compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
  14182. GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
  14183. lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
  14184. lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
  14185. lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
  14186. lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
  14187. lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
  14188. archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
  14189. enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
  14190. export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
  14191. whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
  14192. compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
  14193. old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
  14194. old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
  14195. archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
  14196. archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
  14197. module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
  14198. module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
  14199. with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
  14200. allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
  14201. no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
  14202. hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
  14203. hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
  14204. hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
  14205. hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
  14206. hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
  14207. hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
  14208. hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
  14209. hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
  14210. inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
  14211. link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
  14212. fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
  14213. always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
  14214. export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
  14215. exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
  14216. include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
  14217. prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
  14218. file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
  14219. hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
  14220. LTCC='$LTCC'
  14221. LTCFLAGS='$LTCFLAGS'
  14222. compiler='$compiler_DEFAULT'
  14223. # A function that is used when there is no print builtin or printf.
  14224. func_fallback_echo ()
  14225. {
  14226. eval 'cat <<_LTECHO_EOF
  14227. \$1
  14228. _LTECHO_EOF'
  14229. }
  14230. # Quote evaled strings.
  14231. for var in SHELL \
  14232. ECHO \
  14233. SED \
  14234. GREP \
  14235. EGREP \
  14236. FGREP \
  14237. LD \
  14238. NM \
  14239. LN_S \
  14240. lt_SP2NL \
  14241. lt_NL2SP \
  14242. reload_flag \
  14243. OBJDUMP \
  14244. deplibs_check_method \
  14245. file_magic_cmd \
  14246. AR \
  14247. AR_FLAGS \
  14248. STRIP \
  14249. RANLIB \
  14250. CC \
  14251. CFLAGS \
  14252. compiler \
  14253. lt_cv_sys_global_symbol_pipe \
  14254. lt_cv_sys_global_symbol_to_cdecl \
  14255. lt_cv_sys_global_symbol_to_c_name_address \
  14256. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14257. lt_prog_compiler_no_builtin_flag \
  14258. lt_prog_compiler_wl \
  14259. lt_prog_compiler_pic \
  14260. lt_prog_compiler_static \
  14261. lt_cv_prog_compiler_c_o \
  14262. need_locks \
  14263. DSYMUTIL \
  14264. NMEDIT \
  14265. LIPO \
  14266. OTOOL \
  14267. OTOOL64 \
  14268. shrext_cmds \
  14269. export_dynamic_flag_spec \
  14270. whole_archive_flag_spec \
  14271. compiler_needs_object \
  14272. with_gnu_ld \
  14273. allow_undefined_flag \
  14274. no_undefined_flag \
  14275. hardcode_libdir_flag_spec \
  14276. hardcode_libdir_flag_spec_ld \
  14277. hardcode_libdir_separator \
  14278. fix_srcfile_path \
  14279. exclude_expsyms \
  14280. include_expsyms \
  14281. file_list_spec \
  14282. variables_saved_for_relink \
  14283. libname_spec \
  14284. library_names_spec \
  14285. soname_spec \
  14286. install_override_mode \
  14287. finish_eval \
  14288. old_striplib \
  14289. striplib \
  14290. LD_D \
  14291. reload_flag_D \
  14292. compiler_D \
  14293. lt_prog_compiler_no_builtin_flag_D \
  14294. lt_prog_compiler_wl_D \
  14295. lt_prog_compiler_pic_D \
  14296. lt_prog_compiler_static_D \
  14297. lt_cv_prog_compiler_c_o_D \
  14298. export_dynamic_flag_spec_D \
  14299. whole_archive_flag_spec_D \
  14300. compiler_needs_object_D \
  14301. with_gnu_ld_D \
  14302. allow_undefined_flag_D \
  14303. no_undefined_flag_D \
  14304. hardcode_libdir_flag_spec_D \
  14305. hardcode_libdir_flag_spec_ld_D \
  14306. hardcode_libdir_separator_D \
  14307. fix_srcfile_path_D \
  14308. exclude_expsyms_D \
  14309. include_expsyms_D \
  14310. file_list_spec_D; do
  14311. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14312. *[\\\\\\\`\\"\\\$]*)
  14313. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14314. ;;
  14315. *)
  14316. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14317. ;;
  14318. esac
  14319. done
  14320. # Double-quote double-evaled strings.
  14321. for var in reload_cmds \
  14322. old_postinstall_cmds \
  14323. old_postuninstall_cmds \
  14324. old_archive_cmds \
  14325. extract_expsyms_cmds \
  14326. old_archive_from_new_cmds \
  14327. old_archive_from_expsyms_cmds \
  14328. archive_cmds \
  14329. archive_expsym_cmds \
  14330. module_cmds \
  14331. module_expsym_cmds \
  14332. export_symbols_cmds \
  14333. prelink_cmds \
  14334. postinstall_cmds \
  14335. postuninstall_cmds \
  14336. finish_cmds \
  14337. sys_lib_search_path_spec \
  14338. sys_lib_dlsearch_path_spec \
  14339. reload_cmds_D \
  14340. old_archive_cmds_D \
  14341. old_archive_from_new_cmds_D \
  14342. old_archive_from_expsyms_cmds_D \
  14343. archive_cmds_D \
  14344. archive_expsym_cmds_D \
  14345. module_cmds_D \
  14346. module_expsym_cmds_D \
  14347. export_symbols_cmds_D \
  14348. prelink_cmds_D; do
  14349. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14350. *[\\\\\\\`\\"\\\$]*)
  14351. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14352. ;;
  14353. *)
  14354. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14355. ;;
  14356. esac
  14357. done
  14358. ac_aux_dir='$ac_aux_dir'
  14359. xsi_shell='$xsi_shell'
  14360. lt_shell_append='$lt_shell_append'
  14361. # See if we are running on zsh, and set the options which allow our
  14362. # commands through without removal of \ escapes INIT.
  14363. if test -n "\${ZSH_VERSION+set}" ; then
  14364. setopt NO_GLOB_SUBST
  14365. fi
  14366. PACKAGE='$PACKAGE'
  14367. VERSION='$VERSION'
  14368. TIMESTAMP='$TIMESTAMP'
  14369. RM='$RM'
  14370. ofile='$ofile'
  14371. _ACEOF
  14372. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14373. # Handling of arguments.
  14374. for ac_config_target in $ac_config_targets
  14375. do
  14376. case $ac_config_target in
  14377. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14378. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14379. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14380. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14381. "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
  14382. "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
  14383. "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
  14384. "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
  14385. "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
  14386. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14387. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14388. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14389. esac
  14390. done
  14391. # If the user did not use the arguments to specify the items to instantiate,
  14392. # then the envvar interface is used. Set only those that are not.
  14393. # We use the long form for the default assignment because of an extremely
  14394. # bizarre bug on SunOS 4.1.3.
  14395. if $ac_need_defaults; then
  14396. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14397. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14398. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14399. fi
  14400. # Have a temporary directory for convenience. Make it in the build tree
  14401. # simply because there is no reason against having it here, and in addition,
  14402. # creating and moving files from /tmp can sometimes cause problems.
  14403. # Hook for its removal unless debugging.
  14404. # Note that there is a small window in which the directory will not be cleaned:
  14405. # after its creation but before its name has been assigned to `$tmp'.
  14406. $debug ||
  14407. {
  14408. tmp= ac_tmp=
  14409. trap 'exit_status=$?
  14410. : "${ac_tmp:=$tmp}"
  14411. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14412. ' 0
  14413. trap 'as_fn_exit 1' 1 2 13 15
  14414. }
  14415. # Create a (secure) tmp directory for tmp files.
  14416. {
  14417. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14418. test -d "$tmp"
  14419. } ||
  14420. {
  14421. tmp=./conf$$-$RANDOM
  14422. (umask 077 && mkdir "$tmp")
  14423. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14424. ac_tmp=$tmp
  14425. # Set up the scripts for CONFIG_FILES section.
  14426. # No need to generate them if there are no CONFIG_FILES.
  14427. # This happens for instance with `./config.status config.h'.
  14428. if test -n "$CONFIG_FILES"; then
  14429. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  14430. ac_cs_awk_getline=:
  14431. ac_cs_awk_pipe_init=
  14432. ac_cs_awk_read_file='
  14433. while ((getline aline < (F[key])) > 0)
  14434. print(aline)
  14435. close(F[key])'
  14436. ac_cs_awk_pipe_fini=
  14437. else
  14438. ac_cs_awk_getline=false
  14439. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  14440. ac_cs_awk_read_file='
  14441. print "|#_!!_#|"
  14442. print "cat " F[key] " &&"
  14443. '$ac_cs_awk_pipe_init
  14444. # The final `:' finishes the AND list.
  14445. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  14446. fi
  14447. ac_cr=`echo X | tr X '\015'`
  14448. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14449. # But we know of no other shell where ac_cr would be empty at this
  14450. # point, so we can use a bashism as a fallback.
  14451. if test "x$ac_cr" = x; then
  14452. eval ac_cr=\$\'\\r\'
  14453. fi
  14454. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14455. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14456. ac_cs_awk_cr='\\r'
  14457. else
  14458. ac_cs_awk_cr=$ac_cr
  14459. fi
  14460. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14461. _ACEOF
  14462. # Create commands to substitute file output variables.
  14463. {
  14464. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  14465. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  14466. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  14467. echo "_ACAWK" &&
  14468. echo "_ACEOF"
  14469. } >conf$$files.sh &&
  14470. . ./conf$$files.sh ||
  14471. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14472. rm -f conf$$files.sh
  14473. {
  14474. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14475. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14476. echo "_ACEOF"
  14477. } >conf$$subs.sh ||
  14478. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14479. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14480. ac_delim='%!_!# '
  14481. for ac_last_try in false false false false false :; do
  14482. . ./conf$$subs.sh ||
  14483. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14484. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14485. if test $ac_delim_n = $ac_delim_num; then
  14486. break
  14487. elif $ac_last_try; then
  14488. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14489. else
  14490. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14491. fi
  14492. done
  14493. rm -f conf$$subs.sh
  14494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14495. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14496. _ACEOF
  14497. sed -n '
  14498. h
  14499. s/^/S["/; s/!.*/"]=/
  14500. p
  14501. g
  14502. s/^[^!]*!//
  14503. :repl
  14504. t repl
  14505. s/'"$ac_delim"'$//
  14506. t delim
  14507. :nl
  14508. h
  14509. s/\(.\{148\}\)..*/\1/
  14510. t more1
  14511. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14512. p
  14513. n
  14514. b repl
  14515. :more1
  14516. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14517. p
  14518. g
  14519. s/.\{148\}//
  14520. t nl
  14521. :delim
  14522. h
  14523. s/\(.\{148\}\)..*/\1/
  14524. t more2
  14525. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14526. p
  14527. b
  14528. :more2
  14529. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14530. p
  14531. g
  14532. s/.\{148\}//
  14533. t delim
  14534. ' <conf$$subs.awk | sed '
  14535. /^[^""]/{
  14536. N
  14537. s/\n//
  14538. }
  14539. ' >>$CONFIG_STATUS || ac_write_fail=1
  14540. rm -f conf$$subs.awk
  14541. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14542. _ACAWK
  14543. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14544. for (key in S) S_is_set[key] = 1
  14545. FS = ""
  14546. \$ac_cs_awk_pipe_init
  14547. }
  14548. {
  14549. line = $ 0
  14550. nfields = split(line, field, "@")
  14551. substed = 0
  14552. len = length(field[1])
  14553. for (i = 2; i < nfields; i++) {
  14554. key = field[i]
  14555. keylen = length(key)
  14556. if (S_is_set[key]) {
  14557. value = S[key]
  14558. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14559. len += length(value) + length(field[++i])
  14560. substed = 1
  14561. } else
  14562. len += 1 + keylen
  14563. }
  14564. if (nfields == 3 && !substed) {
  14565. key = field[2]
  14566. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  14567. \$ac_cs_awk_read_file
  14568. next
  14569. }
  14570. }
  14571. print line
  14572. }
  14573. \$ac_cs_awk_pipe_fini
  14574. _ACAWK
  14575. _ACEOF
  14576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14577. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14578. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14579. else
  14580. cat
  14581. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14582. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14583. _ACEOF
  14584. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14585. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14586. # trailing colons and then remove the whole line if VPATH becomes empty
  14587. # (actually we leave an empty line to preserve line numbers).
  14588. if test "x$srcdir" = x.; then
  14589. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14590. h
  14591. s///
  14592. s/^/:/
  14593. s/[ ]*$/:/
  14594. s/:\$(srcdir):/:/g
  14595. s/:\${srcdir}:/:/g
  14596. s/:@srcdir@:/:/g
  14597. s/^:*//
  14598. s/:*$//
  14599. x
  14600. s/\(=[ ]*\).*/\1/
  14601. G
  14602. s/\n//
  14603. s/^[^=]*=[ ]*$//
  14604. }'
  14605. fi
  14606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14607. fi # test -n "$CONFIG_FILES"
  14608. # Set up the scripts for CONFIG_HEADERS section.
  14609. # No need to generate them if there are no CONFIG_HEADERS.
  14610. # This happens for instance with `./config.status Makefile'.
  14611. if test -n "$CONFIG_HEADERS"; then
  14612. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14613. BEGIN {
  14614. _ACEOF
  14615. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14616. # here-document in config.status, that substitutes the proper values into
  14617. # config.h.in to produce config.h.
  14618. # Create a delimiter string that does not exist in confdefs.h, to ease
  14619. # handling of long lines.
  14620. ac_delim='%!_!# '
  14621. for ac_last_try in false false :; do
  14622. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14623. if test -z "$ac_tt"; then
  14624. break
  14625. elif $ac_last_try; then
  14626. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14627. else
  14628. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14629. fi
  14630. done
  14631. # For the awk script, D is an array of macro values keyed by name,
  14632. # likewise P contains macro parameters if any. Preserve backslash
  14633. # newline sequences.
  14634. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14635. sed -n '
  14636. s/.\{148\}/&'"$ac_delim"'/g
  14637. t rset
  14638. :rset
  14639. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14640. t def
  14641. d
  14642. :def
  14643. s/\\$//
  14644. t bsnl
  14645. s/["\\]/\\&/g
  14646. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14647. D["\1"]=" \3"/p
  14648. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14649. d
  14650. :bsnl
  14651. s/["\\]/\\&/g
  14652. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14653. D["\1"]=" \3\\\\\\n"\\/p
  14654. t cont
  14655. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14656. t cont
  14657. d
  14658. :cont
  14659. n
  14660. s/.\{148\}/&'"$ac_delim"'/g
  14661. t clear
  14662. :clear
  14663. s/\\$//
  14664. t bsnlc
  14665. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14666. d
  14667. :bsnlc
  14668. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14669. b cont
  14670. ' <confdefs.h | sed '
  14671. s/'"$ac_delim"'/"\\\
  14672. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14673. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14674. for (key in D) D_is_set[key] = 1
  14675. FS = ""
  14676. }
  14677. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14678. line = \$ 0
  14679. split(line, arg, " ")
  14680. if (arg[1] == "#") {
  14681. defundef = arg[2]
  14682. mac1 = arg[3]
  14683. } else {
  14684. defundef = substr(arg[1], 2)
  14685. mac1 = arg[2]
  14686. }
  14687. split(mac1, mac2, "(") #)
  14688. macro = mac2[1]
  14689. prefix = substr(line, 1, index(line, defundef) - 1)
  14690. if (D_is_set[macro]) {
  14691. # Preserve the white space surrounding the "#".
  14692. print prefix "define", macro P[macro] D[macro]
  14693. next
  14694. } else {
  14695. # Replace #undef with comments. This is necessary, for example,
  14696. # in the case of _POSIX_SOURCE, which is predefined and required
  14697. # on some systems where configure will not decide to define it.
  14698. if (defundef == "undef") {
  14699. print "/*", prefix defundef, macro, "*/"
  14700. next
  14701. }
  14702. }
  14703. }
  14704. { print }
  14705. _ACAWK
  14706. _ACEOF
  14707. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14708. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14709. fi # test -n "$CONFIG_HEADERS"
  14710. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14711. shift
  14712. for ac_tag
  14713. do
  14714. case $ac_tag in
  14715. :[FHLC]) ac_mode=$ac_tag; continue;;
  14716. esac
  14717. case $ac_mode$ac_tag in
  14718. :[FHL]*:*);;
  14719. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14720. :[FH]-) ac_tag=-:-;;
  14721. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14722. esac
  14723. ac_save_IFS=$IFS
  14724. IFS=:
  14725. set x $ac_tag
  14726. IFS=$ac_save_IFS
  14727. shift
  14728. ac_file=$1
  14729. shift
  14730. case $ac_mode in
  14731. :L) ac_source=$1;;
  14732. :[FH])
  14733. ac_file_inputs=
  14734. for ac_f
  14735. do
  14736. case $ac_f in
  14737. -) ac_f="$ac_tmp/stdin";;
  14738. *) # Look for the file first in the build tree, then in the source tree
  14739. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14740. # because $ac_f cannot contain `:'.
  14741. test -f "$ac_f" ||
  14742. case $ac_f in
  14743. [\\/$]*) false;;
  14744. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14745. esac ||
  14746. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14747. esac
  14748. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14749. as_fn_append ac_file_inputs " '$ac_f'"
  14750. done
  14751. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14752. # use $as_me), people would be surprised to read:
  14753. # /* config.h. Generated by config.status. */
  14754. configure_input='Generated from '`
  14755. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14756. `' by configure.'
  14757. if test x"$ac_file" != x-; then
  14758. configure_input="$ac_file. $configure_input"
  14759. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14760. $as_echo "$as_me: creating $ac_file" >&6;}
  14761. fi
  14762. # Neutralize special characters interpreted by sed in replacement strings.
  14763. case $configure_input in #(
  14764. *\&* | *\|* | *\\* )
  14765. ac_sed_conf_input=`$as_echo "$configure_input" |
  14766. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14767. *) ac_sed_conf_input=$configure_input;;
  14768. esac
  14769. case $ac_tag in
  14770. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14771. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14772. esac
  14773. ;;
  14774. esac
  14775. ac_dir=`$as_dirname -- "$ac_file" ||
  14776. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14777. X"$ac_file" : 'X\(//\)[^/]' \| \
  14778. X"$ac_file" : 'X\(//\)$' \| \
  14779. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14780. $as_echo X"$ac_file" |
  14781. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14782. s//\1/
  14783. q
  14784. }
  14785. /^X\(\/\/\)[^/].*/{
  14786. s//\1/
  14787. q
  14788. }
  14789. /^X\(\/\/\)$/{
  14790. s//\1/
  14791. q
  14792. }
  14793. /^X\(\/\).*/{
  14794. s//\1/
  14795. q
  14796. }
  14797. s/.*/./; q'`
  14798. as_dir="$ac_dir"; as_fn_mkdir_p
  14799. ac_builddir=.
  14800. case "$ac_dir" in
  14801. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14802. *)
  14803. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14804. # A ".." for each directory in $ac_dir_suffix.
  14805. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14806. case $ac_top_builddir_sub in
  14807. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14808. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14809. esac ;;
  14810. esac
  14811. ac_abs_top_builddir=$ac_pwd
  14812. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14813. # for backward compatibility:
  14814. ac_top_builddir=$ac_top_build_prefix
  14815. case $srcdir in
  14816. .) # We are building in place.
  14817. ac_srcdir=.
  14818. ac_top_srcdir=$ac_top_builddir_sub
  14819. ac_abs_top_srcdir=$ac_pwd ;;
  14820. [\\/]* | ?:[\\/]* ) # Absolute name.
  14821. ac_srcdir=$srcdir$ac_dir_suffix;
  14822. ac_top_srcdir=$srcdir
  14823. ac_abs_top_srcdir=$srcdir ;;
  14824. *) # Relative name.
  14825. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14826. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14827. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14828. esac
  14829. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14830. case $ac_mode in
  14831. :F)
  14832. #
  14833. # CONFIG_FILE
  14834. #
  14835. case $INSTALL in
  14836. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14837. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14838. esac
  14839. ac_MKDIR_P=$MKDIR_P
  14840. case $MKDIR_P in
  14841. [\\/$]* | ?:[\\/]* ) ;;
  14842. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14843. esac
  14844. _ACEOF
  14845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14846. # If the template does not know about datarootdir, expand it.
  14847. # FIXME: This hack should be removed a few years after 2.60.
  14848. ac_datarootdir_hack=; ac_datarootdir_seen=
  14849. ac_sed_dataroot='
  14850. /datarootdir/ {
  14851. p
  14852. q
  14853. }
  14854. /@datadir@/p
  14855. /@docdir@/p
  14856. /@infodir@/p
  14857. /@localedir@/p
  14858. /@mandir@/p'
  14859. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14860. *datarootdir*) ac_datarootdir_seen=yes;;
  14861. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14863. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14864. _ACEOF
  14865. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14866. ac_datarootdir_hack='
  14867. s&@datadir@&$datadir&g
  14868. s&@docdir@&$docdir&g
  14869. s&@infodir@&$infodir&g
  14870. s&@localedir@&$localedir&g
  14871. s&@mandir@&$mandir&g
  14872. s&\\\${datarootdir}&$datarootdir&g' ;;
  14873. esac
  14874. _ACEOF
  14875. # Neutralize VPATH when `$srcdir' = `.'.
  14876. # Shell code in configure.ac might set extrasub.
  14877. # FIXME: do we really want to maintain this feature?
  14878. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14879. ac_sed_extra="$ac_vpsub
  14880. $extrasub
  14881. _ACEOF
  14882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14883. :t
  14884. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14885. s|@configure_input@|$ac_sed_conf_input|;t t
  14886. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14887. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14888. s&@srcdir@&$ac_srcdir&;t t
  14889. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14890. s&@top_srcdir@&$ac_top_srcdir&;t t
  14891. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14892. s&@builddir@&$ac_builddir&;t t
  14893. s&@abs_builddir@&$ac_abs_builddir&;t t
  14894. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14895. s&@INSTALL@&$ac_INSTALL&;t t
  14896. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14897. $ac_datarootdir_hack
  14898. "
  14899. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14900. if $ac_cs_awk_getline; then
  14901. $AWK -f "$ac_tmp/subs.awk"
  14902. else
  14903. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  14904. fi \
  14905. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14906. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14907. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14908. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14909. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14911. which seems to be undefined. Please make sure it is defined" >&5
  14912. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14913. which seems to be undefined. Please make sure it is defined" >&2;}
  14914. rm -f "$ac_tmp/stdin"
  14915. case $ac_file in
  14916. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14917. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14918. esac \
  14919. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14920. ;;
  14921. :H)
  14922. #
  14923. # CONFIG_HEADER
  14924. #
  14925. if test x"$ac_file" != x-; then
  14926. {
  14927. $as_echo "/* $configure_input */" \
  14928. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14929. } >"$ac_tmp/config.h" \
  14930. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14931. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14932. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14933. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14934. else
  14935. rm -f "$ac_file"
  14936. mv "$ac_tmp/config.h" "$ac_file" \
  14937. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14938. fi
  14939. else
  14940. $as_echo "/* $configure_input */" \
  14941. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14942. || as_fn_error $? "could not create -" "$LINENO" 5
  14943. fi
  14944. # Compute "$ac_file"'s index in $config_headers.
  14945. _am_arg="$ac_file"
  14946. _am_stamp_count=1
  14947. for _am_header in $config_headers :; do
  14948. case $_am_header in
  14949. $_am_arg | $_am_arg:* )
  14950. break ;;
  14951. * )
  14952. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14953. esac
  14954. done
  14955. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14956. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14957. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14958. X"$_am_arg" : 'X\(//\)$' \| \
  14959. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14960. $as_echo X"$_am_arg" |
  14961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14962. s//\1/
  14963. q
  14964. }
  14965. /^X\(\/\/\)[^/].*/{
  14966. s//\1/
  14967. q
  14968. }
  14969. /^X\(\/\/\)$/{
  14970. s//\1/
  14971. q
  14972. }
  14973. /^X\(\/\).*/{
  14974. s//\1/
  14975. q
  14976. }
  14977. s/.*/./; q'`/stamp-h$_am_stamp_count
  14978. ;;
  14979. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14980. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14981. ;;
  14982. esac
  14983. case $ac_file$ac_mode in
  14984. "default-1":C)
  14985. # Only add multilib support code if we just rebuilt the top-level
  14986. # Makefile.
  14987. case " $CONFIG_FILES " in
  14988. *" Makefile "*)
  14989. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14990. ;;
  14991. esac ;;
  14992. "libtool":C)
  14993. # See if we are running on zsh, and set the options which allow our
  14994. # commands through without removal of \ escapes.
  14995. if test -n "${ZSH_VERSION+set}" ; then
  14996. setopt NO_GLOB_SUBST
  14997. fi
  14998. cfgfile="${ofile}T"
  14999. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15000. $RM "$cfgfile"
  15001. cat <<_LT_EOF >> "$cfgfile"
  15002. #! $SHELL
  15003. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15004. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15005. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15006. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15007. #
  15008. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15009. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15010. # Written by Gordon Matzigkeit, 1996
  15011. #
  15012. # This file is part of GNU Libtool.
  15013. #
  15014. # GNU Libtool is free software; you can redistribute it and/or
  15015. # modify it under the terms of the GNU General Public License as
  15016. # published by the Free Software Foundation; either version 2 of
  15017. # the License, or (at your option) any later version.
  15018. #
  15019. # As a special exception to the GNU General Public License,
  15020. # if you distribute this file as part of a program or library that
  15021. # is built using GNU Libtool, you may include this file under the
  15022. # same distribution terms that you use for the rest of that program.
  15023. #
  15024. # GNU Libtool is distributed in the hope that it will be useful,
  15025. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15026. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15027. # GNU General Public License for more details.
  15028. #
  15029. # You should have received a copy of the GNU General Public License
  15030. # along with GNU Libtool; see the file COPYING. If not, a copy
  15031. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15032. # obtained by writing to the Free Software Foundation, Inc.,
  15033. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15034. # The names of the tagged configurations supported by this script.
  15035. available_tags="D "
  15036. # ### BEGIN LIBTOOL CONFIG
  15037. # Which release of libtool.m4 was used?
  15038. macro_version=$macro_version
  15039. macro_revision=$macro_revision
  15040. # Whether or not to build shared libraries.
  15041. build_libtool_libs=$enable_shared
  15042. # Whether or not to build static libraries.
  15043. build_old_libs=$enable_static
  15044. # What type of objects to build.
  15045. pic_mode=$pic_mode
  15046. # Whether or not to optimize for fast installation.
  15047. fast_install=$enable_fast_install
  15048. # Shell to use when invoking shell scripts.
  15049. SHELL=$lt_SHELL
  15050. # An echo program that protects backslashes.
  15051. ECHO=$lt_ECHO
  15052. # The host system.
  15053. host_alias=$host_alias
  15054. host=$host
  15055. host_os=$host_os
  15056. # The build system.
  15057. build_alias=$build_alias
  15058. build=$build
  15059. build_os=$build_os
  15060. # A sed program that does not truncate output.
  15061. SED=$lt_SED
  15062. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15063. Xsed="\$SED -e 1s/^X//"
  15064. # A grep program that handles long lines.
  15065. GREP=$lt_GREP
  15066. # An ERE matcher.
  15067. EGREP=$lt_EGREP
  15068. # A literal string matcher.
  15069. FGREP=$lt_FGREP
  15070. # A BSD- or MS-compatible name lister.
  15071. NM=$lt_NM
  15072. # Whether we need soft or hard links.
  15073. LN_S=$lt_LN_S
  15074. # What is the maximum length of a command?
  15075. max_cmd_len=$max_cmd_len
  15076. # Object file suffix (normally "o").
  15077. objext=$ac_objext
  15078. # Executable file suffix (normally "").
  15079. exeext=$exeext
  15080. # whether the shell understands "unset".
  15081. lt_unset=$lt_unset
  15082. # turn spaces into newlines.
  15083. SP2NL=$lt_lt_SP2NL
  15084. # turn newlines into spaces.
  15085. NL2SP=$lt_lt_NL2SP
  15086. # An object symbol dumper.
  15087. OBJDUMP=$lt_OBJDUMP
  15088. # Method to check whether dependent libraries are shared objects.
  15089. deplibs_check_method=$lt_deplibs_check_method
  15090. # Command to use when deplibs_check_method == "file_magic".
  15091. file_magic_cmd=$lt_file_magic_cmd
  15092. # The archiver.
  15093. AR=$lt_AR
  15094. AR_FLAGS=$lt_AR_FLAGS
  15095. # A symbol stripping program.
  15096. STRIP=$lt_STRIP
  15097. # Commands used to install an old-style archive.
  15098. RANLIB=$lt_RANLIB
  15099. old_postinstall_cmds=$lt_old_postinstall_cmds
  15100. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15101. # Whether to use a lock for old archive extraction.
  15102. lock_old_archive_extraction=$lock_old_archive_extraction
  15103. # A C compiler.
  15104. LTCC=$lt_CC
  15105. # LTCC compiler flags.
  15106. LTCFLAGS=$lt_CFLAGS
  15107. # Take the output of nm and produce a listing of raw symbols and C names.
  15108. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15109. # Transform the output of nm in a proper C declaration.
  15110. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15111. # Transform the output of nm in a C name address pair.
  15112. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15113. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15114. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15115. # The name of the directory that contains temporary libtool files.
  15116. objdir=$objdir
  15117. # Used to examine libraries when file_magic_cmd begins with "file".
  15118. MAGIC_CMD=$MAGIC_CMD
  15119. # Must we lock files when doing compilation?
  15120. need_locks=$lt_need_locks
  15121. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15122. DSYMUTIL=$lt_DSYMUTIL
  15123. # Tool to change global to local symbols on Mac OS X.
  15124. NMEDIT=$lt_NMEDIT
  15125. # Tool to manipulate fat objects and archives on Mac OS X.
  15126. LIPO=$lt_LIPO
  15127. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15128. OTOOL=$lt_OTOOL
  15129. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15130. OTOOL64=$lt_OTOOL64
  15131. # Old archive suffix (normally "a").
  15132. libext=$libext
  15133. # Shared library suffix (normally ".so").
  15134. shrext_cmds=$lt_shrext_cmds
  15135. # The commands to extract the exported symbol list from a shared archive.
  15136. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15137. # Variables whose values should be saved in libtool wrapper scripts and
  15138. # restored at link time.
  15139. variables_saved_for_relink=$lt_variables_saved_for_relink
  15140. # Do we need the "lib" prefix for modules?
  15141. need_lib_prefix=$need_lib_prefix
  15142. # Do we need a version for libraries?
  15143. need_version=$need_version
  15144. # Library versioning type.
  15145. version_type=$version_type
  15146. # Shared library runtime path variable.
  15147. runpath_var=$runpath_var
  15148. # Shared library path variable.
  15149. shlibpath_var=$shlibpath_var
  15150. # Is shlibpath searched before the hard-coded library search path?
  15151. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15152. # Format of library name prefix.
  15153. libname_spec=$lt_libname_spec
  15154. # List of archive names. First name is the real one, the rest are links.
  15155. # The last name is the one that the linker finds with -lNAME
  15156. library_names_spec=$lt_library_names_spec
  15157. # The coded name of the library, if different from the real name.
  15158. soname_spec=$lt_soname_spec
  15159. # Permission mode override for installation of shared libraries.
  15160. install_override_mode=$lt_install_override_mode
  15161. # Command to use after installation of a shared archive.
  15162. postinstall_cmds=$lt_postinstall_cmds
  15163. # Command to use after uninstallation of a shared archive.
  15164. postuninstall_cmds=$lt_postuninstall_cmds
  15165. # Commands used to finish a libtool library installation in a directory.
  15166. finish_cmds=$lt_finish_cmds
  15167. # As "finish_cmds", except a single script fragment to be evaled but
  15168. # not shown.
  15169. finish_eval=$lt_finish_eval
  15170. # Whether we should hardcode library paths into libraries.
  15171. hardcode_into_libs=$hardcode_into_libs
  15172. # Compile-time system search path for libraries.
  15173. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15174. # Run-time system search path for libraries.
  15175. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15176. # Whether dlopen is supported.
  15177. dlopen_support=$enable_dlopen
  15178. # Whether dlopen of programs is supported.
  15179. dlopen_self=$enable_dlopen_self
  15180. # Whether dlopen of statically linked programs is supported.
  15181. dlopen_self_static=$enable_dlopen_self_static
  15182. # Commands to strip libraries.
  15183. old_striplib=$lt_old_striplib
  15184. striplib=$lt_striplib
  15185. # The linker used to build libraries.
  15186. LD=$lt_LD
  15187. # How to create reloadable object files.
  15188. reload_flag=$lt_reload_flag
  15189. reload_cmds=$lt_reload_cmds
  15190. # Commands used to build an old-style archive.
  15191. old_archive_cmds=$lt_old_archive_cmds
  15192. # A language specific compiler.
  15193. CC=$lt_compiler
  15194. # Is the compiler the GNU compiler?
  15195. with_gcc=$GCC
  15196. # Compiler flag to turn off builtin functions.
  15197. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15198. # How to pass a linker flag through the compiler.
  15199. wl=$lt_lt_prog_compiler_wl
  15200. # Additional compiler flags for building library objects.
  15201. pic_flag=$lt_lt_prog_compiler_pic
  15202. # Compiler flag to prevent dynamic linking.
  15203. link_static_flag=$lt_lt_prog_compiler_static
  15204. # Does compiler simultaneously support -c and -o options?
  15205. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15206. # Whether or not to add -lc for building shared libraries.
  15207. build_libtool_need_lc=$archive_cmds_need_lc
  15208. # Whether or not to disallow shared libs when runtime libs are static.
  15209. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15210. # Compiler flag to allow reflexive dlopens.
  15211. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15212. # Compiler flag to generate shared objects directly from archives.
  15213. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15214. # Whether the compiler copes with passing no objects directly.
  15215. compiler_needs_object=$lt_compiler_needs_object
  15216. # Create an old-style archive from a shared archive.
  15217. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15218. # Create a temporary old-style archive to link instead of a shared archive.
  15219. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15220. # Commands used to build a shared archive.
  15221. archive_cmds=$lt_archive_cmds
  15222. archive_expsym_cmds=$lt_archive_expsym_cmds
  15223. # Commands used to build a loadable module if different from building
  15224. # a shared archive.
  15225. module_cmds=$lt_module_cmds
  15226. module_expsym_cmds=$lt_module_expsym_cmds
  15227. # Whether we are building with GNU ld or not.
  15228. with_gnu_ld=$lt_with_gnu_ld
  15229. # Flag that allows shared libraries with undefined symbols to be built.
  15230. allow_undefined_flag=$lt_allow_undefined_flag
  15231. # Flag that enforces no undefined symbols.
  15232. no_undefined_flag=$lt_no_undefined_flag
  15233. # Flag to hardcode \$libdir into a binary during linking.
  15234. # This must work even if \$libdir does not exist
  15235. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15236. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15237. # during linking. This must work even if \$libdir does not exist.
  15238. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15239. # Whether we need a single "-rpath" flag with a separated argument.
  15240. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15241. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15242. # DIR into the resulting binary.
  15243. hardcode_direct=$hardcode_direct
  15244. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15245. # DIR into the resulting binary and the resulting library dependency is
  15246. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15247. # library is relocated.
  15248. hardcode_direct_absolute=$hardcode_direct_absolute
  15249. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15250. # into the resulting binary.
  15251. hardcode_minus_L=$hardcode_minus_L
  15252. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15253. # into the resulting binary.
  15254. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15255. # Set to "yes" if building a shared library automatically hardcodes DIR
  15256. # into the library and all subsequent libraries and executables linked
  15257. # against it.
  15258. hardcode_automatic=$hardcode_automatic
  15259. # Set to yes if linker adds runtime paths of dependent libraries
  15260. # to runtime path list.
  15261. inherit_rpath=$inherit_rpath
  15262. # Whether libtool must link a program against all its dependency libraries.
  15263. link_all_deplibs=$link_all_deplibs
  15264. # Fix the shell variable \$srcfile for the compiler.
  15265. fix_srcfile_path=$lt_fix_srcfile_path
  15266. # Set to "yes" if exported symbols are required.
  15267. always_export_symbols=$always_export_symbols
  15268. # The commands to list exported symbols.
  15269. export_symbols_cmds=$lt_export_symbols_cmds
  15270. # Symbols that should not be listed in the preloaded symbols.
  15271. exclude_expsyms=$lt_exclude_expsyms
  15272. # Symbols that must always be exported.
  15273. include_expsyms=$lt_include_expsyms
  15274. # Commands necessary for linking programs (against libraries) with templates.
  15275. prelink_cmds=$lt_prelink_cmds
  15276. # Specify filename containing input files.
  15277. file_list_spec=$lt_file_list_spec
  15278. # How to hardcode a shared library path into an executable.
  15279. hardcode_action=$hardcode_action
  15280. # ### END LIBTOOL CONFIG
  15281. _LT_EOF
  15282. case $host_os in
  15283. aix3*)
  15284. cat <<\_LT_EOF >> "$cfgfile"
  15285. # AIX sometimes has problems with the GCC collect2 program. For some
  15286. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15287. # vanish in a puff of smoke.
  15288. if test "X${COLLECT_NAMES+set}" != Xset; then
  15289. COLLECT_NAMES=
  15290. export COLLECT_NAMES
  15291. fi
  15292. _LT_EOF
  15293. ;;
  15294. esac
  15295. ltmain="$ac_aux_dir/ltmain.sh"
  15296. # We use sed instead of cat because bash on DJGPP gets confused if
  15297. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15298. # text mode, it properly converts lines to CR/LF. This bash problem
  15299. # is reportedly fixed, but why not run on old versions too?
  15300. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15301. || (rm -f "$cfgfile"; exit 1)
  15302. case $xsi_shell in
  15303. yes)
  15304. cat << \_LT_EOF >> "$cfgfile"
  15305. # func_dirname file append nondir_replacement
  15306. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15307. # otherwise set result to NONDIR_REPLACEMENT.
  15308. func_dirname ()
  15309. {
  15310. case ${1} in
  15311. */*) func_dirname_result="${1%/*}${2}" ;;
  15312. * ) func_dirname_result="${3}" ;;
  15313. esac
  15314. }
  15315. # func_basename file
  15316. func_basename ()
  15317. {
  15318. func_basename_result="${1##*/}"
  15319. }
  15320. # func_dirname_and_basename file append nondir_replacement
  15321. # perform func_basename and func_dirname in a single function
  15322. # call:
  15323. # dirname: Compute the dirname of FILE. If nonempty,
  15324. # add APPEND to the result, otherwise set result
  15325. # to NONDIR_REPLACEMENT.
  15326. # value returned in "$func_dirname_result"
  15327. # basename: Compute filename of FILE.
  15328. # value retuned in "$func_basename_result"
  15329. # Implementation must be kept synchronized with func_dirname
  15330. # and func_basename. For efficiency, we do not delegate to
  15331. # those functions but instead duplicate the functionality here.
  15332. func_dirname_and_basename ()
  15333. {
  15334. case ${1} in
  15335. */*) func_dirname_result="${1%/*}${2}" ;;
  15336. * ) func_dirname_result="${3}" ;;
  15337. esac
  15338. func_basename_result="${1##*/}"
  15339. }
  15340. # func_stripname prefix suffix name
  15341. # strip PREFIX and SUFFIX off of NAME.
  15342. # PREFIX and SUFFIX must not contain globbing or regex special
  15343. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15344. # dot (in which case that matches only a dot).
  15345. func_stripname ()
  15346. {
  15347. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15348. # positional parameters, so assign one to ordinary parameter first.
  15349. func_stripname_result=${3}
  15350. func_stripname_result=${func_stripname_result#"${1}"}
  15351. func_stripname_result=${func_stripname_result%"${2}"}
  15352. }
  15353. # func_opt_split
  15354. func_opt_split ()
  15355. {
  15356. func_opt_split_opt=${1%%=*}
  15357. func_opt_split_arg=${1#*=}
  15358. }
  15359. # func_lo2o object
  15360. func_lo2o ()
  15361. {
  15362. case ${1} in
  15363. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15364. *) func_lo2o_result=${1} ;;
  15365. esac
  15366. }
  15367. # func_xform libobj-or-source
  15368. func_xform ()
  15369. {
  15370. func_xform_result=${1%.*}.lo
  15371. }
  15372. # func_arith arithmetic-term...
  15373. func_arith ()
  15374. {
  15375. func_arith_result=$(( $* ))
  15376. }
  15377. # func_len string
  15378. # STRING may not start with a hyphen.
  15379. func_len ()
  15380. {
  15381. func_len_result=${#1}
  15382. }
  15383. _LT_EOF
  15384. ;;
  15385. *) # Bourne compatible functions.
  15386. cat << \_LT_EOF >> "$cfgfile"
  15387. # func_dirname file append nondir_replacement
  15388. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15389. # otherwise set result to NONDIR_REPLACEMENT.
  15390. func_dirname ()
  15391. {
  15392. # Extract subdirectory from the argument.
  15393. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15394. if test "X$func_dirname_result" = "X${1}"; then
  15395. func_dirname_result="${3}"
  15396. else
  15397. func_dirname_result="$func_dirname_result${2}"
  15398. fi
  15399. }
  15400. # func_basename file
  15401. func_basename ()
  15402. {
  15403. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15404. }
  15405. # func_stripname prefix suffix name
  15406. # strip PREFIX and SUFFIX off of NAME.
  15407. # PREFIX and SUFFIX must not contain globbing or regex special
  15408. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15409. # dot (in which case that matches only a dot).
  15410. # func_strip_suffix prefix name
  15411. func_stripname ()
  15412. {
  15413. case ${2} in
  15414. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15415. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15416. esac
  15417. }
  15418. # sed scripts:
  15419. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15420. my_sed_long_arg='1s/^-[^=]*=//'
  15421. # func_opt_split
  15422. func_opt_split ()
  15423. {
  15424. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15425. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15426. }
  15427. # func_lo2o object
  15428. func_lo2o ()
  15429. {
  15430. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15431. }
  15432. # func_xform libobj-or-source
  15433. func_xform ()
  15434. {
  15435. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15436. }
  15437. # func_arith arithmetic-term...
  15438. func_arith ()
  15439. {
  15440. func_arith_result=`expr "$@"`
  15441. }
  15442. # func_len string
  15443. # STRING may not start with a hyphen.
  15444. func_len ()
  15445. {
  15446. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15447. }
  15448. _LT_EOF
  15449. esac
  15450. case $lt_shell_append in
  15451. yes)
  15452. cat << \_LT_EOF >> "$cfgfile"
  15453. # func_append var value
  15454. # Append VALUE to the end of shell variable VAR.
  15455. func_append ()
  15456. {
  15457. eval "$1+=\$2"
  15458. }
  15459. _LT_EOF
  15460. ;;
  15461. *)
  15462. cat << \_LT_EOF >> "$cfgfile"
  15463. # func_append var value
  15464. # Append VALUE to the end of shell variable VAR.
  15465. func_append ()
  15466. {
  15467. eval "$1=\$$1\$2"
  15468. }
  15469. _LT_EOF
  15470. ;;
  15471. esac
  15472. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15473. || (rm -f "$cfgfile"; exit 1)
  15474. mv -f "$cfgfile" "$ofile" ||
  15475. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15476. chmod +x "$ofile"
  15477. cat <<_LT_EOF >> "$ofile"
  15478. # ### BEGIN LIBTOOL TAG CONFIG: D
  15479. # The linker used to build libraries.
  15480. LD=$lt_LD_D
  15481. # How to create reloadable object files.
  15482. reload_flag=$lt_reload_flag_D
  15483. reload_cmds=$lt_reload_cmds_D
  15484. # Commands used to build an old-style archive.
  15485. old_archive_cmds=$lt_old_archive_cmds_D
  15486. # A language specific compiler.
  15487. CC=$lt_compiler_D
  15488. # Is the compiler the GNU compiler?
  15489. with_gcc=$GCC_D
  15490. # Compiler flag to turn off builtin functions.
  15491. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
  15492. # How to pass a linker flag through the compiler.
  15493. wl=$lt_lt_prog_compiler_wl_D
  15494. # Additional compiler flags for building library objects.
  15495. pic_flag=$lt_lt_prog_compiler_pic_D
  15496. # Compiler flag to prevent dynamic linking.
  15497. link_static_flag=$lt_lt_prog_compiler_static_D
  15498. # Does compiler simultaneously support -c and -o options?
  15499. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
  15500. # Whether or not to add -lc for building shared libraries.
  15501. build_libtool_need_lc=$archive_cmds_need_lc_D
  15502. # Whether or not to disallow shared libs when runtime libs are static.
  15503. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
  15504. # Compiler flag to allow reflexive dlopens.
  15505. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
  15506. # Compiler flag to generate shared objects directly from archives.
  15507. whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
  15508. # Whether the compiler copes with passing no objects directly.
  15509. compiler_needs_object=$lt_compiler_needs_object_D
  15510. # Create an old-style archive from a shared archive.
  15511. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
  15512. # Create a temporary old-style archive to link instead of a shared archive.
  15513. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
  15514. # Commands used to build a shared archive.
  15515. archive_cmds=$lt_archive_cmds_D
  15516. archive_expsym_cmds=$lt_archive_expsym_cmds_D
  15517. # Commands used to build a loadable module if different from building
  15518. # a shared archive.
  15519. module_cmds=$lt_module_cmds_D
  15520. module_expsym_cmds=$lt_module_expsym_cmds_D
  15521. # Whether we are building with GNU ld or not.
  15522. with_gnu_ld=$lt_with_gnu_ld_D
  15523. # Flag that allows shared libraries with undefined symbols to be built.
  15524. allow_undefined_flag=$lt_allow_undefined_flag_D
  15525. # Flag that enforces no undefined symbols.
  15526. no_undefined_flag=$lt_no_undefined_flag_D
  15527. # Flag to hardcode \$libdir into a binary during linking.
  15528. # This must work even if \$libdir does not exist
  15529. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
  15530. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15531. # during linking. This must work even if \$libdir does not exist.
  15532. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
  15533. # Whether we need a single "-rpath" flag with a separated argument.
  15534. hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
  15535. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15536. # DIR into the resulting binary.
  15537. hardcode_direct=$hardcode_direct_D
  15538. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15539. # DIR into the resulting binary and the resulting library dependency is
  15540. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15541. # library is relocated.
  15542. hardcode_direct_absolute=$hardcode_direct_absolute_D
  15543. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15544. # into the resulting binary.
  15545. hardcode_minus_L=$hardcode_minus_L_D
  15546. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15547. # into the resulting binary.
  15548. hardcode_shlibpath_var=$hardcode_shlibpath_var_D
  15549. # Set to "yes" if building a shared library automatically hardcodes DIR
  15550. # into the library and all subsequent libraries and executables linked
  15551. # against it.
  15552. hardcode_automatic=$hardcode_automatic_D
  15553. # Set to yes if linker adds runtime paths of dependent libraries
  15554. # to runtime path list.
  15555. inherit_rpath=$inherit_rpath_D
  15556. # Whether libtool must link a program against all its dependency libraries.
  15557. link_all_deplibs=$link_all_deplibs_D
  15558. # Fix the shell variable \$srcfile for the compiler.
  15559. fix_srcfile_path=$lt_fix_srcfile_path_D
  15560. # Set to "yes" if exported symbols are required.
  15561. always_export_symbols=$always_export_symbols_D
  15562. # The commands to list exported symbols.
  15563. export_symbols_cmds=$lt_export_symbols_cmds_D
  15564. # Symbols that should not be listed in the preloaded symbols.
  15565. exclude_expsyms=$lt_exclude_expsyms_D
  15566. # Symbols that must always be exported.
  15567. include_expsyms=$lt_include_expsyms_D
  15568. # Commands necessary for linking programs (against libraries) with templates.
  15569. prelink_cmds=$lt_prelink_cmds_D
  15570. # Specify filename containing input files.
  15571. file_list_spec=$lt_file_list_spec_D
  15572. # How to hardcode a shared library path into an executable.
  15573. hardcode_action=$hardcode_action_D
  15574. # ### END LIBTOOL TAG CONFIG: D
  15575. _LT_EOF
  15576. ;;
  15577. "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
  15578. "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
  15579. s!`test -f '$<' || echo '$(srcdir)/'`!!
  15580. _EOF
  15581. sed -f vpsed$$ $ac_file > tmp$$
  15582. mv tmp$$ $ac_file
  15583. rm vpsed$$
  15584. echo 'MULTISUBDIR =' >> $ac_file
  15585. ml_norecursion=yes
  15586. . ${multi_basedir}/config-ml.in
  15587. { ml_norecursion=; unset ml_norecursion;}
  15588. ;;
  15589. "src/Makefile":F) cat > vpsed$$ << \_EOF
  15590. s!`test -f '$<' || echo '$(srcdir)/'`!!
  15591. _EOF
  15592. sed -f vpsed$$ $ac_file > tmp$$
  15593. mv tmp$$ $ac_file
  15594. rm vpsed$$
  15595. echo 'MULTISUBDIR =' >> $ac_file
  15596. ml_norecursion=yes
  15597. . ${multi_basedir}/config-ml.in
  15598. { ml_norecursion=; unset ml_norecursion;}
  15599. ;;
  15600. "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
  15601. s!`test -f '$<' || echo '$(srcdir)/'`!!
  15602. _EOF
  15603. sed -f vpsed$$ $ac_file > tmp$$
  15604. mv tmp$$ $ac_file
  15605. rm vpsed$$
  15606. echo 'MULTISUBDIR =' >> $ac_file
  15607. ml_norecursion=yes
  15608. . ${multi_basedir}/config-ml.in
  15609. { ml_norecursion=; unset ml_norecursion;}
  15610. ;;
  15611. esac
  15612. done # for ac_tag
  15613. as_fn_exit 0
  15614. _ACEOF
  15615. ac_clean_files=$ac_clean_files_save
  15616. test $ac_write_fail = 0 ||
  15617. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15618. # configure is writing to config.log, and then calls config.status.
  15619. # config.status does its own redirection, appending to config.log.
  15620. # Unfortunately, on DOS this fails, as config.log is still kept open
  15621. # by configure, so config.status won't be able to write to it; its
  15622. # output is simply discarded. So we exec the FD to /dev/null,
  15623. # effectively closing config.log, so it can be properly (re)opened and
  15624. # appended to by config.status. When coming back to configure, we
  15625. # need to make the FD available again.
  15626. if test "$no_create" != yes; then
  15627. ac_cs_success=:
  15628. ac_config_status_args=
  15629. test "$silent" = yes &&
  15630. ac_config_status_args="$ac_config_status_args --quiet"
  15631. exec 5>/dev/null
  15632. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15633. exec 5>>config.log
  15634. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15635. # would make configure fail if this is the last instruction.
  15636. $ac_cs_success || as_fn_exit 1
  15637. fi
  15638. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15640. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15641. fi