configure 536 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for package-unused version-unused.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='package-unused'
  509. PACKAGE_TARNAME='libgo'
  510. PACKAGE_VERSION='version-unused'
  511. PACKAGE_STRING='package-unused version-unused'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="Makefile.am"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. STRUCT_EPOLL_EVENT_FD_OFFSET
  555. SIZEOF_STRUCT_EPOLL_EVENT
  556. MATH_FLAG
  557. STRINGOPS_FLAG
  558. HAVE_WAIT4_FALSE
  559. HAVE_WAIT4_TRUE
  560. HAVE_STRERROR_R_FALSE
  561. HAVE_STRERROR_R_TRUE
  562. HAVE_SYS_MMAN_H_FALSE
  563. HAVE_SYS_MMAN_H_TRUE
  564. PTHREAD_LIBS
  565. PTHREAD_CFLAGS
  566. NET_LIBS
  567. MATH_LIBS
  568. GOC_IS_LLGO_FALSE
  569. GOC_IS_LLGO_TRUE
  570. USING_SPLIT_STACK_FALSE
  571. USING_SPLIT_STACK_TRUE
  572. SPLIT_STACK
  573. OSCFLAGS
  574. GO_SYSCALL_OS_ARCH_FILE
  575. GO_SYSCALL_OS_FILE
  576. GO_LIBCALL_OS_ARCH_FILE
  577. GO_LIBCALL_OS_FILE
  578. GOARCH
  579. LIBGO_IS_X86_64_FALSE
  580. LIBGO_IS_X86_64_TRUE
  581. LIBGO_IS_SPARC64_FALSE
  582. LIBGO_IS_SPARC64_TRUE
  583. LIBGO_IS_SPARC_FALSE
  584. LIBGO_IS_SPARC_TRUE
  585. LIBGO_IS_S390X_FALSE
  586. LIBGO_IS_S390X_TRUE
  587. LIBGO_IS_S390_FALSE
  588. LIBGO_IS_S390_TRUE
  589. LIBGO_IS_PPC64LE_FALSE
  590. LIBGO_IS_PPC64LE_TRUE
  591. LIBGO_IS_PPC64_FALSE
  592. LIBGO_IS_PPC64_TRUE
  593. LIBGO_IS_PPC_FALSE
  594. LIBGO_IS_PPC_TRUE
  595. LIBGO_IS_MIPSO64_FALSE
  596. LIBGO_IS_MIPSO64_TRUE
  597. LIBGO_IS_MIPSN64_FALSE
  598. LIBGO_IS_MIPSN64_TRUE
  599. LIBGO_IS_MIPSN32_FALSE
  600. LIBGO_IS_MIPSN32_TRUE
  601. LIBGO_IS_MIPSO32_FALSE
  602. LIBGO_IS_MIPSO32_TRUE
  603. LIBGO_IS_MIPS_FALSE
  604. LIBGO_IS_MIPS_TRUE
  605. LIBGO_IS_M68K_FALSE
  606. LIBGO_IS_M68K_TRUE
  607. LIBGO_IS_ARM64_FALSE
  608. LIBGO_IS_ARM64_TRUE
  609. LIBGO_IS_ARM_FALSE
  610. LIBGO_IS_ARM_TRUE
  611. LIBGO_IS_ALPHA_FALSE
  612. LIBGO_IS_ALPHA_TRUE
  613. LIBGO_IS_386_FALSE
  614. LIBGO_IS_386_TRUE
  615. USE_DEJAGNU
  616. GOOS
  617. LIBGO_IS_SOLARIS_FALSE
  618. LIBGO_IS_SOLARIS_TRUE
  619. LIBGO_IS_RTEMS_FALSE
  620. LIBGO_IS_RTEMS_TRUE
  621. LIBGO_IS_DRAGONFLY_FALSE
  622. LIBGO_IS_DRAGONFLY_TRUE
  623. LIBGO_IS_OPENBSD_FALSE
  624. LIBGO_IS_OPENBSD_TRUE
  625. LIBGO_IS_NETBSD_FALSE
  626. LIBGO_IS_NETBSD_TRUE
  627. LIBGO_IS_LINUX_FALSE
  628. LIBGO_IS_LINUX_TRUE
  629. LIBGO_IS_IRIX_FALSE
  630. LIBGO_IS_IRIX_TRUE
  631. LIBGO_IS_FREEBSD_FALSE
  632. LIBGO_IS_FREEBSD_TRUE
  633. LIBGO_IS_DARWIN_FALSE
  634. LIBGO_IS_DARWIN_TRUE
  635. go_include
  636. LIBATOMIC
  637. LIBFFIINCS
  638. LIBFFI
  639. nover_glibgo_toolexeclibdir
  640. glibgo_toolexeclibdir
  641. glibgo_toolexecdir
  642. WERROR
  643. WARN_FLAGS
  644. CC_FOR_BUILD
  645. enable_static
  646. enable_shared
  647. CPP
  648. OTOOL64
  649. OTOOL
  650. LIPO
  651. NMEDIT
  652. DSYMUTIL
  653. AR
  654. OBJDUMP
  655. LN_S
  656. NM
  657. ac_ct_DUMPBIN
  658. DUMPBIN
  659. LIBTOOL
  660. OBJCOPY
  661. RANLIB
  662. LD
  663. FGREP
  664. EGREP
  665. GREP
  666. SED
  667. MAINT
  668. MAINTAINER_MODE_FALSE
  669. MAINTAINER_MODE_TRUE
  670. GOCFLAGS
  671. GOC
  672. am__fastdepCC_FALSE
  673. am__fastdepCC_TRUE
  674. CCDEPMODE
  675. AMDEPBACKSLASH
  676. AMDEP_FALSE
  677. AMDEP_TRUE
  678. am__quote
  679. am__include
  680. DEPDIR
  681. OBJEXT
  682. EXEEXT
  683. ac_ct_CC
  684. CPPFLAGS
  685. LDFLAGS
  686. CFLAGS
  687. CC
  688. am__untar
  689. am__tar
  690. AMTAR
  691. am__leading_dot
  692. SET_MAKE
  693. AWK
  694. mkdir_p
  695. MKDIR_P
  696. INSTALL_STRIP_PROGRAM
  697. STRIP
  698. install_sh
  699. MAKEINFO
  700. AUTOHEADER
  701. AUTOMAKE
  702. AUTOCONF
  703. ACLOCAL
  704. VERSION
  705. PACKAGE
  706. CYGPATH_W
  707. am__isrc
  708. INSTALL_DATA
  709. INSTALL_SCRIPT
  710. INSTALL_PROGRAM
  711. target_os
  712. target_vendor
  713. target_cpu
  714. target
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. multi_basedir
  724. libtool_VERSION
  725. target_alias
  726. host_alias
  727. build_alias
  728. LIBS
  729. ECHO_T
  730. ECHO_N
  731. ECHO_C
  732. DEFS
  733. mandir
  734. localedir
  735. libdir
  736. psdir
  737. pdfdir
  738. dvidir
  739. htmldir
  740. infodir
  741. docdir
  742. oldincludedir
  743. includedir
  744. localstatedir
  745. sharedstatedir
  746. sysconfdir
  747. datadir
  748. datarootdir
  749. libexecdir
  750. sbindir
  751. bindir
  752. program_transform_name
  753. prefix
  754. exec_prefix
  755. PACKAGE_URL
  756. PACKAGE_BUGREPORT
  757. PACKAGE_STRING
  758. PACKAGE_VERSION
  759. PACKAGE_TARNAME
  760. PACKAGE_NAME
  761. PATH_SEPARATOR
  762. SHELL'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_multilib
  767. enable_dependency_tracking
  768. enable_maintainer_mode
  769. with_gnu_ld
  770. enable_shared
  771. enable_static
  772. with_pic
  773. enable_fast_install
  774. enable_libtool_lock
  775. enable_werror
  776. enable_version_specific_runtime_libs
  777. with_libffi
  778. with_libatomic
  779. with_system_libunwind
  780. enable_sjlj_exceptions
  781. '
  782. ac_precious_vars='build_alias
  783. host_alias
  784. target_alias
  785. CPP
  786. CPPFLAGS'
  787. # Initialize some variables set by options.
  788. ac_init_help=
  789. ac_init_version=false
  790. ac_unrecognized_opts=
  791. ac_unrecognized_sep=
  792. # The variables have the same names as the options, with
  793. # dashes changed to underlines.
  794. cache_file=/dev/null
  795. exec_prefix=NONE
  796. no_create=
  797. no_recursion=
  798. prefix=NONE
  799. program_prefix=NONE
  800. program_suffix=NONE
  801. program_transform_name=s,x,x,
  802. silent=
  803. site=
  804. srcdir=
  805. verbose=
  806. x_includes=NONE
  807. x_libraries=NONE
  808. # Installation directory options.
  809. # These are left unexpanded so users can "make install exec_prefix=/foo"
  810. # and all the variables that are supposed to be based on exec_prefix
  811. # by default will actually change.
  812. # Use braces instead of parens because sh, perl, etc. also accept them.
  813. # (The list follows the same order as the GNU Coding Standards.)
  814. bindir='${exec_prefix}/bin'
  815. sbindir='${exec_prefix}/sbin'
  816. libexecdir='${exec_prefix}/libexec'
  817. datarootdir='${prefix}/share'
  818. datadir='${datarootdir}'
  819. sysconfdir='${prefix}/etc'
  820. sharedstatedir='${prefix}/com'
  821. localstatedir='${prefix}/var'
  822. includedir='${prefix}/include'
  823. oldincludedir='/usr/include'
  824. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  825. infodir='${datarootdir}/info'
  826. htmldir='${docdir}'
  827. dvidir='${docdir}'
  828. pdfdir='${docdir}'
  829. psdir='${docdir}'
  830. libdir='${exec_prefix}/lib'
  831. localedir='${datarootdir}/locale'
  832. mandir='${datarootdir}/man'
  833. ac_prev=
  834. ac_dashdash=
  835. for ac_option
  836. do
  837. # If the previous option needs an argument, assign it.
  838. if test -n "$ac_prev"; then
  839. eval $ac_prev=\$ac_option
  840. ac_prev=
  841. continue
  842. fi
  843. case $ac_option in
  844. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  845. *) ac_optarg=yes ;;
  846. esac
  847. # Accept the important Cygnus configure options, so we can diagnose typos.
  848. case $ac_dashdash$ac_option in
  849. --)
  850. ac_dashdash=yes ;;
  851. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  852. ac_prev=bindir ;;
  853. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  854. bindir=$ac_optarg ;;
  855. -build | --build | --buil | --bui | --bu)
  856. ac_prev=build_alias ;;
  857. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  858. build_alias=$ac_optarg ;;
  859. -cache-file | --cache-file | --cache-fil | --cache-fi \
  860. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  861. ac_prev=cache_file ;;
  862. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  863. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  864. cache_file=$ac_optarg ;;
  865. --config-cache | -C)
  866. cache_file=config.cache ;;
  867. -datadir | --datadir | --datadi | --datad)
  868. ac_prev=datadir ;;
  869. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  870. datadir=$ac_optarg ;;
  871. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  872. | --dataroo | --dataro | --datar)
  873. ac_prev=datarootdir ;;
  874. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  875. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  876. datarootdir=$ac_optarg ;;
  877. -disable-* | --disable-*)
  878. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  879. # Reject names that are not valid shell variable names.
  880. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  881. as_fn_error "invalid feature name: $ac_useropt"
  882. ac_useropt_orig=$ac_useropt
  883. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  884. case $ac_user_opts in
  885. *"
  886. "enable_$ac_useropt"
  887. "*) ;;
  888. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  889. ac_unrecognized_sep=', ';;
  890. esac
  891. eval enable_$ac_useropt=no ;;
  892. -docdir | --docdir | --docdi | --doc | --do)
  893. ac_prev=docdir ;;
  894. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  895. docdir=$ac_optarg ;;
  896. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  897. ac_prev=dvidir ;;
  898. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  899. dvidir=$ac_optarg ;;
  900. -enable-* | --enable-*)
  901. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  902. # Reject names that are not valid shell variable names.
  903. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  904. as_fn_error "invalid feature name: $ac_useropt"
  905. ac_useropt_orig=$ac_useropt
  906. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  907. case $ac_user_opts in
  908. *"
  909. "enable_$ac_useropt"
  910. "*) ;;
  911. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  912. ac_unrecognized_sep=', ';;
  913. esac
  914. eval enable_$ac_useropt=\$ac_optarg ;;
  915. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  916. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  917. | --exec | --exe | --ex)
  918. ac_prev=exec_prefix ;;
  919. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  920. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  921. | --exec=* | --exe=* | --ex=*)
  922. exec_prefix=$ac_optarg ;;
  923. -gas | --gas | --ga | --g)
  924. # Obsolete; use --with-gas.
  925. with_gas=yes ;;
  926. -help | --help | --hel | --he | -h)
  927. ac_init_help=long ;;
  928. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  929. ac_init_help=recursive ;;
  930. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  931. ac_init_help=short ;;
  932. -host | --host | --hos | --ho)
  933. ac_prev=host_alias ;;
  934. -host=* | --host=* | --hos=* | --ho=*)
  935. host_alias=$ac_optarg ;;
  936. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  937. ac_prev=htmldir ;;
  938. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  939. | --ht=*)
  940. htmldir=$ac_optarg ;;
  941. -includedir | --includedir | --includedi | --included | --include \
  942. | --includ | --inclu | --incl | --inc)
  943. ac_prev=includedir ;;
  944. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  945. | --includ=* | --inclu=* | --incl=* | --inc=*)
  946. includedir=$ac_optarg ;;
  947. -infodir | --infodir | --infodi | --infod | --info | --inf)
  948. ac_prev=infodir ;;
  949. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  950. infodir=$ac_optarg ;;
  951. -libdir | --libdir | --libdi | --libd)
  952. ac_prev=libdir ;;
  953. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  954. libdir=$ac_optarg ;;
  955. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  956. | --libexe | --libex | --libe)
  957. ac_prev=libexecdir ;;
  958. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  959. | --libexe=* | --libex=* | --libe=*)
  960. libexecdir=$ac_optarg ;;
  961. -localedir | --localedir | --localedi | --localed | --locale)
  962. ac_prev=localedir ;;
  963. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  964. localedir=$ac_optarg ;;
  965. -localstatedir | --localstatedir | --localstatedi | --localstated \
  966. | --localstate | --localstat | --localsta | --localst | --locals)
  967. ac_prev=localstatedir ;;
  968. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  969. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  970. localstatedir=$ac_optarg ;;
  971. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  972. ac_prev=mandir ;;
  973. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  974. mandir=$ac_optarg ;;
  975. -nfp | --nfp | --nf)
  976. # Obsolete; use --without-fp.
  977. with_fp=no ;;
  978. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  979. | --no-cr | --no-c | -n)
  980. no_create=yes ;;
  981. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  982. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  983. no_recursion=yes ;;
  984. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  985. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  986. | --oldin | --oldi | --old | --ol | --o)
  987. ac_prev=oldincludedir ;;
  988. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  989. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  990. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  991. oldincludedir=$ac_optarg ;;
  992. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  993. ac_prev=prefix ;;
  994. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  995. prefix=$ac_optarg ;;
  996. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  997. | --program-pre | --program-pr | --program-p)
  998. ac_prev=program_prefix ;;
  999. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1000. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1001. program_prefix=$ac_optarg ;;
  1002. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1003. | --program-suf | --program-su | --program-s)
  1004. ac_prev=program_suffix ;;
  1005. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1006. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1007. program_suffix=$ac_optarg ;;
  1008. -program-transform-name | --program-transform-name \
  1009. | --program-transform-nam | --program-transform-na \
  1010. | --program-transform-n | --program-transform- \
  1011. | --program-transform | --program-transfor \
  1012. | --program-transfo | --program-transf \
  1013. | --program-trans | --program-tran \
  1014. | --progr-tra | --program-tr | --program-t)
  1015. ac_prev=program_transform_name ;;
  1016. -program-transform-name=* | --program-transform-name=* \
  1017. | --program-transform-nam=* | --program-transform-na=* \
  1018. | --program-transform-n=* | --program-transform-=* \
  1019. | --program-transform=* | --program-transfor=* \
  1020. | --program-transfo=* | --program-transf=* \
  1021. | --program-trans=* | --program-tran=* \
  1022. | --progr-tra=* | --program-tr=* | --program-t=*)
  1023. program_transform_name=$ac_optarg ;;
  1024. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1025. ac_prev=pdfdir ;;
  1026. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1027. pdfdir=$ac_optarg ;;
  1028. -psdir | --psdir | --psdi | --psd | --ps)
  1029. ac_prev=psdir ;;
  1030. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1031. psdir=$ac_optarg ;;
  1032. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1033. | -silent | --silent | --silen | --sile | --sil)
  1034. silent=yes ;;
  1035. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1036. ac_prev=sbindir ;;
  1037. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1038. | --sbi=* | --sb=*)
  1039. sbindir=$ac_optarg ;;
  1040. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1041. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1042. | --sharedst | --shareds | --shared | --share | --shar \
  1043. | --sha | --sh)
  1044. ac_prev=sharedstatedir ;;
  1045. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1046. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1047. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1048. | --sha=* | --sh=*)
  1049. sharedstatedir=$ac_optarg ;;
  1050. -site | --site | --sit)
  1051. ac_prev=site ;;
  1052. -site=* | --site=* | --sit=*)
  1053. site=$ac_optarg ;;
  1054. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1055. ac_prev=srcdir ;;
  1056. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1057. srcdir=$ac_optarg ;;
  1058. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1059. | --syscon | --sysco | --sysc | --sys | --sy)
  1060. ac_prev=sysconfdir ;;
  1061. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1062. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1063. sysconfdir=$ac_optarg ;;
  1064. -target | --target | --targe | --targ | --tar | --ta | --t)
  1065. ac_prev=target_alias ;;
  1066. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1067. target_alias=$ac_optarg ;;
  1068. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1069. verbose=yes ;;
  1070. -version | --version | --versio | --versi | --vers | -V)
  1071. ac_init_version=: ;;
  1072. -with-* | --with-*)
  1073. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1074. # Reject names that are not valid shell variable names.
  1075. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1076. as_fn_error "invalid package name: $ac_useropt"
  1077. ac_useropt_orig=$ac_useropt
  1078. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1079. case $ac_user_opts in
  1080. *"
  1081. "with_$ac_useropt"
  1082. "*) ;;
  1083. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1084. ac_unrecognized_sep=', ';;
  1085. esac
  1086. eval with_$ac_useropt=\$ac_optarg ;;
  1087. -without-* | --without-*)
  1088. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1089. # Reject names that are not valid shell variable names.
  1090. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1091. as_fn_error "invalid package name: $ac_useropt"
  1092. ac_useropt_orig=$ac_useropt
  1093. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1094. case $ac_user_opts in
  1095. *"
  1096. "with_$ac_useropt"
  1097. "*) ;;
  1098. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1099. ac_unrecognized_sep=', ';;
  1100. esac
  1101. eval with_$ac_useropt=no ;;
  1102. --x)
  1103. # Obsolete; use --with-x.
  1104. with_x=yes ;;
  1105. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1106. | --x-incl | --x-inc | --x-in | --x-i)
  1107. ac_prev=x_includes ;;
  1108. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1109. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1110. x_includes=$ac_optarg ;;
  1111. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1112. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1113. ac_prev=x_libraries ;;
  1114. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1115. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1116. x_libraries=$ac_optarg ;;
  1117. -*) as_fn_error "unrecognized option: \`$ac_option'
  1118. Try \`$0 --help' for more information."
  1119. ;;
  1120. *=*)
  1121. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1122. # Reject names that are not valid shell variable names.
  1123. case $ac_envvar in #(
  1124. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1125. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1126. esac
  1127. eval $ac_envvar=\$ac_optarg
  1128. export $ac_envvar ;;
  1129. *)
  1130. # FIXME: should be removed in autoconf 3.0.
  1131. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1132. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1133. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1134. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1135. ;;
  1136. esac
  1137. done
  1138. if test -n "$ac_prev"; then
  1139. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1140. as_fn_error "missing argument to $ac_option"
  1141. fi
  1142. if test -n "$ac_unrecognized_opts"; then
  1143. case $enable_option_checking in
  1144. no) ;;
  1145. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1146. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1147. esac
  1148. fi
  1149. # Check all directory arguments for consistency.
  1150. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1151. datadir sysconfdir sharedstatedir localstatedir includedir \
  1152. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1153. libdir localedir mandir
  1154. do
  1155. eval ac_val=\$$ac_var
  1156. # Remove trailing slashes.
  1157. case $ac_val in
  1158. */ )
  1159. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1160. eval $ac_var=\$ac_val;;
  1161. esac
  1162. # Be sure to have absolute directory names.
  1163. case $ac_val in
  1164. [\\/$]* | ?:[\\/]* ) continue;;
  1165. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1166. esac
  1167. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1168. done
  1169. # There might be people who depend on the old broken behavior: `$host'
  1170. # used to hold the argument of --host etc.
  1171. # FIXME: To remove some day.
  1172. build=$build_alias
  1173. host=$host_alias
  1174. target=$target_alias
  1175. # FIXME: To remove some day.
  1176. if test "x$host_alias" != x; then
  1177. if test "x$build_alias" = x; then
  1178. cross_compiling=maybe
  1179. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1180. If a cross compiler is detected then cross compile mode will be used." >&2
  1181. elif test "x$build_alias" != "x$host_alias"; then
  1182. cross_compiling=yes
  1183. fi
  1184. fi
  1185. ac_tool_prefix=
  1186. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1187. test "$silent" = yes && exec 6>/dev/null
  1188. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1189. ac_ls_di=`ls -di .` &&
  1190. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1191. as_fn_error "working directory cannot be determined"
  1192. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1193. as_fn_error "pwd does not report name of working directory"
  1194. # Find the source files, if location was not specified.
  1195. if test -z "$srcdir"; then
  1196. ac_srcdir_defaulted=yes
  1197. # Try the directory containing this script, then the parent directory.
  1198. ac_confdir=`$as_dirname -- "$as_myself" ||
  1199. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1200. X"$as_myself" : 'X\(//\)[^/]' \| \
  1201. X"$as_myself" : 'X\(//\)$' \| \
  1202. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1203. $as_echo X"$as_myself" |
  1204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\/\)[^/].*/{
  1209. s//\1/
  1210. q
  1211. }
  1212. /^X\(\/\/\)$/{
  1213. s//\1/
  1214. q
  1215. }
  1216. /^X\(\/\).*/{
  1217. s//\1/
  1218. q
  1219. }
  1220. s/.*/./; q'`
  1221. srcdir=$ac_confdir
  1222. if test ! -r "$srcdir/$ac_unique_file"; then
  1223. srcdir=..
  1224. fi
  1225. else
  1226. ac_srcdir_defaulted=no
  1227. fi
  1228. if test ! -r "$srcdir/$ac_unique_file"; then
  1229. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1230. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1231. fi
  1232. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1233. ac_abs_confdir=`(
  1234. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1235. pwd)`
  1236. # When building in place, set srcdir=.
  1237. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1238. srcdir=.
  1239. fi
  1240. # Remove unnecessary trailing slashes from srcdir.
  1241. # Double slashes in file names in object file debugging info
  1242. # mess up M-x gdb in Emacs.
  1243. case $srcdir in
  1244. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1245. esac
  1246. for ac_var in $ac_precious_vars; do
  1247. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1248. eval ac_env_${ac_var}_value=\$${ac_var}
  1249. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1251. done
  1252. #
  1253. # Report the --help message.
  1254. #
  1255. if test "$ac_init_help" = "long"; then
  1256. # Omit some internal or obsolete options to make the list less imposing.
  1257. # This message is too long to be a string in the A/UX 3.1 sh.
  1258. cat <<_ACEOF
  1259. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1260. Usage: $0 [OPTION]... [VAR=VALUE]...
  1261. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1262. VAR=VALUE. See below for descriptions of some of the useful variables.
  1263. Defaults for the options are specified in brackets.
  1264. Configuration:
  1265. -h, --help display this help and exit
  1266. --help=short display options specific to this package
  1267. --help=recursive display the short help of all the included packages
  1268. -V, --version display version information and exit
  1269. -q, --quiet, --silent do not print \`checking...' messages
  1270. --cache-file=FILE cache test results in FILE [disabled]
  1271. -C, --config-cache alias for \`--cache-file=config.cache'
  1272. -n, --no-create do not create output files
  1273. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1274. Installation directories:
  1275. --prefix=PREFIX install architecture-independent files in PREFIX
  1276. [$ac_default_prefix]
  1277. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1278. [PREFIX]
  1279. By default, \`make install' will install all the files in
  1280. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1281. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1282. for instance \`--prefix=\$HOME'.
  1283. For better control, use the options below.
  1284. Fine tuning of the installation directories:
  1285. --bindir=DIR user executables [EPREFIX/bin]
  1286. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1287. --libexecdir=DIR program executables [EPREFIX/libexec]
  1288. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1289. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1290. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1291. --libdir=DIR object code libraries [EPREFIX/lib]
  1292. --includedir=DIR C header files [PREFIX/include]
  1293. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1294. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1295. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1296. --infodir=DIR info documentation [DATAROOTDIR/info]
  1297. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1298. --mandir=DIR man documentation [DATAROOTDIR/man]
  1299. --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
  1300. --htmldir=DIR html documentation [DOCDIR]
  1301. --dvidir=DIR dvi documentation [DOCDIR]
  1302. --pdfdir=DIR pdf documentation [DOCDIR]
  1303. --psdir=DIR ps documentation [DOCDIR]
  1304. _ACEOF
  1305. cat <<\_ACEOF
  1306. Program names:
  1307. --program-prefix=PREFIX prepend PREFIX to installed program names
  1308. --program-suffix=SUFFIX append SUFFIX to installed program names
  1309. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1310. System types:
  1311. --build=BUILD configure for building on BUILD [guessed]
  1312. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1313. --target=TARGET configure for building compilers for TARGET [HOST]
  1314. _ACEOF
  1315. fi
  1316. if test -n "$ac_init_help"; then
  1317. case $ac_init_help in
  1318. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1319. esac
  1320. cat <<\_ACEOF
  1321. Optional Features:
  1322. --disable-option-checking ignore unrecognized --enable/--with options
  1323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1325. --enable-multilib build many library versions (default)
  1326. --disable-dependency-tracking speeds up one-time build
  1327. --enable-dependency-tracking do not reject slow dependency extractors
  1328. --enable-maintainer-mode enable make rules and dependencies not useful
  1329. (and sometimes confusing) to the casual installer
  1330. --enable-shared[=PKGS] build shared libraries [default=yes]
  1331. --enable-static[=PKGS] build static libraries [default=yes]
  1332. --enable-fast-install[=PKGS]
  1333. optimize for fast installation [default=yes]
  1334. --disable-libtool-lock avoid locking (might break parallel builds)
  1335. --enable-werror turns on -Werror [default=yes]
  1336. --enable-version-specific-runtime-libs
  1337. Specify that runtime libraries should be installed
  1338. in a compiler-specific directory
  1339. --enable-sjlj-exceptions
  1340. force use of builtin_setjmp for exceptions
  1341. Optional Packages:
  1342. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1343. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1344. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1345. --with-pic try to use only PIC/non-PIC objects [default=use
  1346. both]
  1347. --without-libffi don't use libffi
  1348. --without-libatomic don't use libatomic
  1349. --with-system-libunwind use installed libunwind
  1350. Some influential environment variables:
  1351. CC C compiler command
  1352. CFLAGS C compiler flags
  1353. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1354. nonstandard directory <lib dir>
  1355. LIBS libraries to pass to the linker, e.g. -l<library>
  1356. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1357. you have headers in a nonstandard directory <include dir>
  1358. GOC Go compiler command
  1359. GOCFLAGS Go compiler flags
  1360. CPP C preprocessor
  1361. Use these variables to override the choices made by `configure' or to help
  1362. it to find libraries and programs with nonstandard names/locations.
  1363. Report bugs to the package provider.
  1364. _ACEOF
  1365. ac_status=$?
  1366. fi
  1367. if test "$ac_init_help" = "recursive"; then
  1368. # If there are subdirs, report their specific --help.
  1369. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1370. test -d "$ac_dir" ||
  1371. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1372. continue
  1373. ac_builddir=.
  1374. case "$ac_dir" in
  1375. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1376. *)
  1377. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1378. # A ".." for each directory in $ac_dir_suffix.
  1379. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1380. case $ac_top_builddir_sub in
  1381. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1382. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1383. esac ;;
  1384. esac
  1385. ac_abs_top_builddir=$ac_pwd
  1386. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1387. # for backward compatibility:
  1388. ac_top_builddir=$ac_top_build_prefix
  1389. case $srcdir in
  1390. .) # We are building in place.
  1391. ac_srcdir=.
  1392. ac_top_srcdir=$ac_top_builddir_sub
  1393. ac_abs_top_srcdir=$ac_pwd ;;
  1394. [\\/]* | ?:[\\/]* ) # Absolute name.
  1395. ac_srcdir=$srcdir$ac_dir_suffix;
  1396. ac_top_srcdir=$srcdir
  1397. ac_abs_top_srcdir=$srcdir ;;
  1398. *) # Relative name.
  1399. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1400. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1401. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1402. esac
  1403. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1404. cd "$ac_dir" || { ac_status=$?; continue; }
  1405. # Check for guested configure.
  1406. if test -f "$ac_srcdir/configure.gnu"; then
  1407. echo &&
  1408. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1409. elif test -f "$ac_srcdir/configure"; then
  1410. echo &&
  1411. $SHELL "$ac_srcdir/configure" --help=recursive
  1412. else
  1413. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1414. fi || ac_status=$?
  1415. cd "$ac_pwd" || { ac_status=$?; break; }
  1416. done
  1417. fi
  1418. test -n "$ac_init_help" && exit $ac_status
  1419. if $ac_init_version; then
  1420. cat <<\_ACEOF
  1421. package-unused configure version-unused
  1422. generated by GNU Autoconf 2.64
  1423. Copyright (C) 2009 Free Software Foundation, Inc.
  1424. This configure script is free software; the Free Software Foundation
  1425. gives unlimited permission to copy, distribute and modify it.
  1426. _ACEOF
  1427. exit
  1428. fi
  1429. ## ------------------------ ##
  1430. ## Autoconf initialization. ##
  1431. ## ------------------------ ##
  1432. # ac_fn_c_try_compile LINENO
  1433. # --------------------------
  1434. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1435. ac_fn_c_try_compile ()
  1436. {
  1437. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1438. rm -f conftest.$ac_objext
  1439. if { { ac_try="$ac_compile"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_compile") 2>conftest.err
  1447. ac_status=$?
  1448. if test -s conftest.err; then
  1449. grep -v '^ *+' conftest.err >conftest.er1
  1450. cat conftest.er1 >&5
  1451. mv -f conftest.er1 conftest.err
  1452. fi
  1453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1454. test $ac_status = 0; } && {
  1455. test -z "$ac_c_werror_flag" ||
  1456. test ! -s conftest.err
  1457. } && test -s conftest.$ac_objext; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1465. return $ac_retval
  1466. } # ac_fn_c_try_compile
  1467. # ac_fn_c_try_link LINENO
  1468. # -----------------------
  1469. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_link ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. rm -f conftest.$ac_objext conftest$ac_exeext
  1474. if { { ac_try="$ac_link"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_link") 2>conftest.err
  1482. ac_status=$?
  1483. if test -s conftest.err; then
  1484. grep -v '^ *+' conftest.err >conftest.er1
  1485. cat conftest.er1 >&5
  1486. mv -f conftest.er1 conftest.err
  1487. fi
  1488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } && {
  1490. test -z "$ac_c_werror_flag" ||
  1491. test ! -s conftest.err
  1492. } && test -s conftest$ac_exeext && {
  1493. test "$cross_compiling" = yes ||
  1494. $as_test_x conftest$ac_exeext
  1495. }; then :
  1496. ac_retval=0
  1497. else
  1498. $as_echo "$as_me: failed program was:" >&5
  1499. sed 's/^/| /' conftest.$ac_ext >&5
  1500. ac_retval=1
  1501. fi
  1502. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1503. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1504. # interfere with the next link command; also delete a directory that is
  1505. # left behind by Apple's compiler. We do this before executing the actions.
  1506. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1507. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1508. return $ac_retval
  1509. } # ac_fn_c_try_link
  1510. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1511. # -------------------------------------------------------
  1512. # Tests whether HEADER exists and can be compiled using the include files in
  1513. # INCLUDES, setting the cache variable VAR accordingly.
  1514. ac_fn_c_check_header_compile ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1518. $as_echo_n "checking for $2... " >&6; }
  1519. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1520. $as_echo_n "(cached) " >&6
  1521. else
  1522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1523. /* end confdefs.h. */
  1524. $4
  1525. #include <$2>
  1526. _ACEOF
  1527. if ac_fn_c_try_compile "$LINENO"; then :
  1528. eval "$3=yes"
  1529. else
  1530. eval "$3=no"
  1531. fi
  1532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1533. fi
  1534. eval ac_res=\$$3
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1536. $as_echo "$ac_res" >&6; }
  1537. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1538. } # ac_fn_c_check_header_compile
  1539. # ac_fn_c_try_cpp LINENO
  1540. # ----------------------
  1541. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1542. ac_fn_c_try_cpp ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1553. ac_status=$?
  1554. if test -s conftest.err; then
  1555. grep -v '^ *+' conftest.err >conftest.er1
  1556. cat conftest.er1 >&5
  1557. mv -f conftest.er1 conftest.err
  1558. fi
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } >/dev/null && {
  1561. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1562. test ! -s conftest.err
  1563. }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1571. return $ac_retval
  1572. } # ac_fn_c_try_cpp
  1573. # ac_fn_c_try_run LINENO
  1574. # ----------------------
  1575. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1576. # that executables *can* be run.
  1577. ac_fn_c_try_run ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. if { { ac_try="$ac_link"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_link") 2>&5
  1588. ac_status=$?
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1591. { { case "(($ac_try" in
  1592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1593. *) ac_try_echo=$ac_try;;
  1594. esac
  1595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1596. $as_echo "$ac_try_echo"; } >&5
  1597. (eval "$ac_try") 2>&5
  1598. ac_status=$?
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; }; }; then :
  1601. ac_retval=0
  1602. else
  1603. $as_echo "$as_me: program exited with status $ac_status" >&5
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=$ac_status
  1607. fi
  1608. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. return $ac_retval
  1611. } # ac_fn_c_try_run
  1612. # ac_fn_c_check_func LINENO FUNC VAR
  1613. # ----------------------------------
  1614. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1615. ac_fn_c_check_func ()
  1616. {
  1617. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1619. $as_echo_n "checking for $2... " >&6; }
  1620. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1621. $as_echo_n "(cached) " >&6
  1622. else
  1623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h. */
  1625. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1627. #define $2 innocuous_$2
  1628. /* System header to define __stub macros and hopefully few prototypes,
  1629. which can conflict with char $2 (); below.
  1630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1631. <limits.h> exists even on freestanding compilers. */
  1632. #ifdef __STDC__
  1633. # include <limits.h>
  1634. #else
  1635. # include <assert.h>
  1636. #endif
  1637. #undef $2
  1638. /* Override any GCC internal prototype to avoid an error.
  1639. Use char because int might match the return type of a GCC
  1640. builtin and then its argument prototype would still apply. */
  1641. #ifdef __cplusplus
  1642. extern "C"
  1643. #endif
  1644. char $2 ();
  1645. /* The GNU C library defines this for functions which it implements
  1646. to always fail with ENOSYS. Some functions are actually named
  1647. something starting with __ and the normal name is an alias. */
  1648. #if defined __stub_$2 || defined __stub___$2
  1649. choke me
  1650. #endif
  1651. int
  1652. main ()
  1653. {
  1654. return $2 ();
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. if ac_fn_c_try_link "$LINENO"; then :
  1660. eval "$3=yes"
  1661. else
  1662. eval "$3=no"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext \
  1665. conftest$ac_exeext conftest.$ac_ext
  1666. fi
  1667. eval ac_res=\$$3
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1669. $as_echo "$ac_res" >&6; }
  1670. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1671. } # ac_fn_c_check_func
  1672. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1673. # -------------------------------------------------------
  1674. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1675. # the include files in INCLUDES and setting the cache variable VAR
  1676. # accordingly.
  1677. ac_fn_c_check_header_mongrel ()
  1678. {
  1679. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1680. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1682. $as_echo_n "checking for $2... " >&6; }
  1683. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1684. $as_echo_n "(cached) " >&6
  1685. fi
  1686. eval ac_res=\$$3
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1688. $as_echo "$ac_res" >&6; }
  1689. else
  1690. # Is the header compilable?
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1692. $as_echo_n "checking $2 usability... " >&6; }
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $4
  1696. #include <$2>
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"; then :
  1699. ac_header_compiler=yes
  1700. else
  1701. ac_header_compiler=no
  1702. fi
  1703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1705. $as_echo "$ac_header_compiler" >&6; }
  1706. # Is the header present?
  1707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1708. $as_echo_n "checking $2 presence... " >&6; }
  1709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1710. /* end confdefs.h. */
  1711. #include <$2>
  1712. _ACEOF
  1713. if ac_fn_c_try_cpp "$LINENO"; then :
  1714. ac_header_preproc=yes
  1715. else
  1716. ac_header_preproc=no
  1717. fi
  1718. rm -f conftest.err conftest.$ac_ext
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1720. $as_echo "$ac_header_preproc" >&6; }
  1721. # So? What about this header?
  1722. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1723. yes:no: )
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1725. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1727. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1728. ;;
  1729. no:yes:* )
  1730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1731. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1733. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1735. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1737. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1739. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1740. ;;
  1741. esac
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1743. $as_echo_n "checking for $2... " >&6; }
  1744. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. eval "$3=\$ac_header_compiler"
  1748. fi
  1749. eval ac_res=\$$3
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1751. $as_echo "$ac_res" >&6; }
  1752. fi
  1753. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1754. } # ac_fn_c_check_header_mongrel
  1755. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1756. # -------------------------------------------
  1757. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1758. # variable VAR accordingly.
  1759. ac_fn_c_check_type ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1763. $as_echo_n "checking for $2... " >&6; }
  1764. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1765. $as_echo_n "(cached) " >&6
  1766. else
  1767. eval "$3=no"
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $4
  1771. int
  1772. main ()
  1773. {
  1774. if (sizeof ($2))
  1775. return 0;
  1776. ;
  1777. return 0;
  1778. }
  1779. _ACEOF
  1780. if ac_fn_c_try_compile "$LINENO"; then :
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. int
  1785. main ()
  1786. {
  1787. if (sizeof (($2)))
  1788. return 0;
  1789. ;
  1790. return 0;
  1791. }
  1792. _ACEOF
  1793. if ac_fn_c_try_compile "$LINENO"; then :
  1794. else
  1795. eval "$3=yes"
  1796. fi
  1797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1798. fi
  1799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1805. } # ac_fn_c_check_type
  1806. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1807. # --------------------------------------------
  1808. # Tries to find the compile-time value of EXPR in a program that includes
  1809. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1810. # computed
  1811. ac_fn_c_compute_int ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. if test "$cross_compiling" = yes; then
  1815. # Depending upon the size, compute the lo and hi bounds.
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. $4
  1819. int
  1820. main ()
  1821. {
  1822. static int test_array [1 - 2 * !(($2) >= 0)];
  1823. test_array [0] = 0
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829. ac_lo=0 ac_mid=0
  1830. while :; do
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $4
  1834. int
  1835. main ()
  1836. {
  1837. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1838. test_array [0] = 0
  1839. ;
  1840. return 0;
  1841. }
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844. ac_hi=$ac_mid; break
  1845. else
  1846. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1847. if test $ac_lo -le $ac_mid; then
  1848. ac_lo= ac_hi=
  1849. break
  1850. fi
  1851. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1852. fi
  1853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1854. done
  1855. else
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. $4
  1859. int
  1860. main ()
  1861. {
  1862. static int test_array [1 - 2 * !(($2) < 0)];
  1863. test_array [0] = 0
  1864. ;
  1865. return 0;
  1866. }
  1867. _ACEOF
  1868. if ac_fn_c_try_compile "$LINENO"; then :
  1869. ac_hi=-1 ac_mid=-1
  1870. while :; do
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. $4
  1874. int
  1875. main ()
  1876. {
  1877. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1878. test_array [0] = 0
  1879. ;
  1880. return 0;
  1881. }
  1882. _ACEOF
  1883. if ac_fn_c_try_compile "$LINENO"; then :
  1884. ac_lo=$ac_mid; break
  1885. else
  1886. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1887. if test $ac_mid -le $ac_hi; then
  1888. ac_lo= ac_hi=
  1889. break
  1890. fi
  1891. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1892. fi
  1893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1894. done
  1895. else
  1896. ac_lo= ac_hi=
  1897. fi
  1898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1901. # Binary search between lo and hi bounds.
  1902. while test "x$ac_lo" != "x$ac_hi"; do
  1903. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1905. /* end confdefs.h. */
  1906. $4
  1907. int
  1908. main ()
  1909. {
  1910. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1911. test_array [0] = 0
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. ac_hi=$ac_mid
  1918. else
  1919. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1920. fi
  1921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1922. done
  1923. case $ac_lo in #((
  1924. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1925. '') ac_retval=1 ;;
  1926. esac
  1927. else
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. $4
  1931. static long int longval () { return $2; }
  1932. static unsigned long int ulongval () { return $2; }
  1933. #include <stdio.h>
  1934. #include <stdlib.h>
  1935. int
  1936. main ()
  1937. {
  1938. FILE *f = fopen ("conftest.val", "w");
  1939. if (! f)
  1940. return 1;
  1941. if (($2) < 0)
  1942. {
  1943. long int i = longval ();
  1944. if (i != ($2))
  1945. return 1;
  1946. fprintf (f, "%ld", i);
  1947. }
  1948. else
  1949. {
  1950. unsigned long int i = ulongval ();
  1951. if (i != ($2))
  1952. return 1;
  1953. fprintf (f, "%lu", i);
  1954. }
  1955. /* Do not output a trailing newline, as this causes \r\n confusion
  1956. on some platforms. */
  1957. return ferror (f) || fclose (f) != 0;
  1958. ;
  1959. return 0;
  1960. }
  1961. _ACEOF
  1962. if ac_fn_c_try_run "$LINENO"; then :
  1963. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1964. else
  1965. ac_retval=1
  1966. fi
  1967. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1968. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1969. rm -f conftest.val
  1970. fi
  1971. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1972. return $ac_retval
  1973. } # ac_fn_c_compute_int
  1974. cat >config.log <<_ACEOF
  1975. This file contains any messages produced by compilers while
  1976. running configure, to aid debugging if configure makes a mistake.
  1977. It was created by package-unused $as_me version-unused, which was
  1978. generated by GNU Autoconf 2.64. Invocation command line was
  1979. $ $0 $@
  1980. _ACEOF
  1981. exec 5>>config.log
  1982. {
  1983. cat <<_ASUNAME
  1984. ## --------- ##
  1985. ## Platform. ##
  1986. ## --------- ##
  1987. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1988. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1989. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1990. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1991. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1992. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1993. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1994. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1995. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1996. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1997. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1998. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1999. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2000. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2001. _ASUNAME
  2002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003. for as_dir in $PATH
  2004. do
  2005. IFS=$as_save_IFS
  2006. test -z "$as_dir" && as_dir=.
  2007. $as_echo "PATH: $as_dir"
  2008. done
  2009. IFS=$as_save_IFS
  2010. } >&5
  2011. cat >&5 <<_ACEOF
  2012. ## ----------- ##
  2013. ## Core tests. ##
  2014. ## ----------- ##
  2015. _ACEOF
  2016. # Keep a trace of the command line.
  2017. # Strip out --no-create and --no-recursion so they do not pile up.
  2018. # Strip out --silent because we don't want to record it for future runs.
  2019. # Also quote any args containing shell meta-characters.
  2020. # Make two passes to allow for proper duplicate-argument suppression.
  2021. ac_configure_args=
  2022. ac_configure_args0=
  2023. ac_configure_args1=
  2024. ac_must_keep_next=false
  2025. for ac_pass in 1 2
  2026. do
  2027. for ac_arg
  2028. do
  2029. case $ac_arg in
  2030. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2031. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2032. | -silent | --silent | --silen | --sile | --sil)
  2033. continue ;;
  2034. *\'*)
  2035. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2036. esac
  2037. case $ac_pass in
  2038. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2039. 2)
  2040. as_fn_append ac_configure_args1 " '$ac_arg'"
  2041. if test $ac_must_keep_next = true; then
  2042. ac_must_keep_next=false # Got value, back to normal.
  2043. else
  2044. case $ac_arg in
  2045. *=* | --config-cache | -C | -disable-* | --disable-* \
  2046. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2047. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2048. | -with-* | --with-* | -without-* | --without-* | --x)
  2049. case "$ac_configure_args0 " in
  2050. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2051. esac
  2052. ;;
  2053. -* ) ac_must_keep_next=true ;;
  2054. esac
  2055. fi
  2056. as_fn_append ac_configure_args " '$ac_arg'"
  2057. ;;
  2058. esac
  2059. done
  2060. done
  2061. { ac_configure_args0=; unset ac_configure_args0;}
  2062. { ac_configure_args1=; unset ac_configure_args1;}
  2063. # When interrupted or exit'd, cleanup temporary files, and complete
  2064. # config.log. We remove comments because anyway the quotes in there
  2065. # would cause problems or look ugly.
  2066. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2067. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2068. trap 'exit_status=$?
  2069. # Save into config.log some information that might help in debugging.
  2070. {
  2071. echo
  2072. cat <<\_ASBOX
  2073. ## ---------------- ##
  2074. ## Cache variables. ##
  2075. ## ---------------- ##
  2076. _ASBOX
  2077. echo
  2078. # The following way of writing the cache mishandles newlines in values,
  2079. (
  2080. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2081. eval ac_val=\$$ac_var
  2082. case $ac_val in #(
  2083. *${as_nl}*)
  2084. case $ac_var in #(
  2085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2087. esac
  2088. case $ac_var in #(
  2089. _ | IFS | as_nl) ;; #(
  2090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2091. *) { eval $ac_var=; unset $ac_var;} ;;
  2092. esac ;;
  2093. esac
  2094. done
  2095. (set) 2>&1 |
  2096. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2097. *${as_nl}ac_space=\ *)
  2098. sed -n \
  2099. "s/'\''/'\''\\\\'\'''\''/g;
  2100. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2101. ;; #(
  2102. *)
  2103. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2104. ;;
  2105. esac |
  2106. sort
  2107. )
  2108. echo
  2109. cat <<\_ASBOX
  2110. ## ----------------- ##
  2111. ## Output variables. ##
  2112. ## ----------------- ##
  2113. _ASBOX
  2114. echo
  2115. for ac_var in $ac_subst_vars
  2116. do
  2117. eval ac_val=\$$ac_var
  2118. case $ac_val in
  2119. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2120. esac
  2121. $as_echo "$ac_var='\''$ac_val'\''"
  2122. done | sort
  2123. echo
  2124. if test -n "$ac_subst_files"; then
  2125. cat <<\_ASBOX
  2126. ## ------------------- ##
  2127. ## File substitutions. ##
  2128. ## ------------------- ##
  2129. _ASBOX
  2130. echo
  2131. for ac_var in $ac_subst_files
  2132. do
  2133. eval ac_val=\$$ac_var
  2134. case $ac_val in
  2135. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2136. esac
  2137. $as_echo "$ac_var='\''$ac_val'\''"
  2138. done | sort
  2139. echo
  2140. fi
  2141. if test -s confdefs.h; then
  2142. cat <<\_ASBOX
  2143. ## ----------- ##
  2144. ## confdefs.h. ##
  2145. ## ----------- ##
  2146. _ASBOX
  2147. echo
  2148. cat confdefs.h
  2149. echo
  2150. fi
  2151. test "$ac_signal" != 0 &&
  2152. $as_echo "$as_me: caught signal $ac_signal"
  2153. $as_echo "$as_me: exit $exit_status"
  2154. } >&5
  2155. rm -f core *.core core.conftest.* &&
  2156. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2157. exit $exit_status
  2158. ' 0
  2159. for ac_signal in 1 2 13 15; do
  2160. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2161. done
  2162. ac_signal=0
  2163. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2164. rm -f -r conftest* confdefs.h
  2165. $as_echo "/* confdefs.h */" > confdefs.h
  2166. # Predefined preprocessor variables.
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_NAME "$PACKAGE_NAME"
  2169. _ACEOF
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2172. _ACEOF
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_STRING "$PACKAGE_STRING"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_URL "$PACKAGE_URL"
  2184. _ACEOF
  2185. # Let the site file select an alternate cache file if it wants to.
  2186. # Prefer an explicitly selected file to automatically selected ones.
  2187. ac_site_file1=NONE
  2188. ac_site_file2=NONE
  2189. if test -n "$CONFIG_SITE"; then
  2190. ac_site_file1=$CONFIG_SITE
  2191. elif test "x$prefix" != xNONE; then
  2192. ac_site_file1=$prefix/share/config.site
  2193. ac_site_file2=$prefix/etc/config.site
  2194. else
  2195. ac_site_file1=$ac_default_prefix/share/config.site
  2196. ac_site_file2=$ac_default_prefix/etc/config.site
  2197. fi
  2198. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2199. do
  2200. test "x$ac_site_file" = xNONE && continue
  2201. if test -r "$ac_site_file"; then
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2203. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2204. sed 's/^/| /' "$ac_site_file" >&5
  2205. . "$ac_site_file"
  2206. fi
  2207. done
  2208. if test -r "$cache_file"; then
  2209. # Some versions of bash will fail to source /dev/null (special
  2210. # files actually), so we avoid doing that.
  2211. if test -f "$cache_file"; then
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2213. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2214. case $cache_file in
  2215. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2216. *) . "./$cache_file";;
  2217. esac
  2218. fi
  2219. else
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2221. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2222. >$cache_file
  2223. fi
  2224. # Check that the precious variables saved in the cache have kept the same
  2225. # value.
  2226. ac_cache_corrupted=false
  2227. for ac_var in $ac_precious_vars; do
  2228. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2229. eval ac_new_set=\$ac_env_${ac_var}_set
  2230. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2231. eval ac_new_val=\$ac_env_${ac_var}_value
  2232. case $ac_old_set,$ac_new_set in
  2233. set,)
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2235. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2236. ac_cache_corrupted=: ;;
  2237. ,set)
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2239. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2240. ac_cache_corrupted=: ;;
  2241. ,);;
  2242. *)
  2243. if test "x$ac_old_val" != "x$ac_new_val"; then
  2244. # differences in whitespace do not lead to failure.
  2245. ac_old_val_w=`echo x $ac_old_val`
  2246. ac_new_val_w=`echo x $ac_new_val`
  2247. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2249. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2250. ac_cache_corrupted=:
  2251. else
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2253. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2254. eval $ac_var=\$ac_old_val
  2255. fi
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2257. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2259. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2260. fi;;
  2261. esac
  2262. # Pass precious variables to config.status.
  2263. if test "$ac_new_set" = set; then
  2264. case $ac_new_val in
  2265. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2266. *) ac_arg=$ac_var=$ac_new_val ;;
  2267. esac
  2268. case " $ac_configure_args " in
  2269. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2270. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2271. esac
  2272. fi
  2273. done
  2274. if $ac_cache_corrupted; then
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2276. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2278. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2279. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2280. fi
  2281. ## -------------------- ##
  2282. ## Main body of script. ##
  2283. ## -------------------- ##
  2284. ac_ext=c
  2285. ac_cpp='$CPP $CPPFLAGS'
  2286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2289. ac_config_headers="$ac_config_headers config.h"
  2290. libtool_VERSION=7:0:0
  2291. # Default to --enable-multilib
  2292. # Check whether --enable-multilib was given.
  2293. if test "${enable_multilib+set}" = set; then :
  2294. enableval=$enable_multilib; case "$enableval" in
  2295. yes) multilib=yes ;;
  2296. no) multilib=no ;;
  2297. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2298. esac
  2299. else
  2300. multilib=yes
  2301. fi
  2302. # We may get other options which we leave undocumented:
  2303. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2304. # See config-ml.in if you want the gory details.
  2305. if test "$srcdir" = "."; then
  2306. if test "$with_target_subdir" != "."; then
  2307. multi_basedir="$srcdir/$with_multisrctop../.."
  2308. else
  2309. multi_basedir="$srcdir/$with_multisrctop.."
  2310. fi
  2311. else
  2312. multi_basedir="$srcdir/.."
  2313. fi
  2314. # Even if the default multilib is not a cross compilation,
  2315. # it may be that some of the other multilibs are.
  2316. if test $cross_compiling = no && test $multilib = yes \
  2317. && test "x${with_multisubdir}" != x ; then
  2318. cross_compiling=maybe
  2319. fi
  2320. ac_config_commands="$ac_config_commands default-1"
  2321. ac_aux_dir=
  2322. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2323. for ac_t in install-sh install.sh shtool; do
  2324. if test -f "$ac_dir/$ac_t"; then
  2325. ac_aux_dir=$ac_dir
  2326. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. if test -z "$ac_aux_dir"; then
  2332. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2333. fi
  2334. # These three variables are undocumented and unsupported,
  2335. # and are intended to be withdrawn in a future Autoconf release.
  2336. # They can cause serious problems if a builder's source tree is in a directory
  2337. # whose full name contains unusual characters.
  2338. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2339. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2340. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2341. # Make sure we can run config.sub.
  2342. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2343. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2345. $as_echo_n "checking build system type... " >&6; }
  2346. if test "${ac_cv_build+set}" = set; then :
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. ac_build_alias=$build_alias
  2350. test "x$ac_build_alias" = x &&
  2351. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2352. test "x$ac_build_alias" = x &&
  2353. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2354. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2355. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2356. fi
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2358. $as_echo "$ac_cv_build" >&6; }
  2359. case $ac_cv_build in
  2360. *-*-*) ;;
  2361. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2362. esac
  2363. build=$ac_cv_build
  2364. ac_save_IFS=$IFS; IFS='-'
  2365. set x $ac_cv_build
  2366. shift
  2367. build_cpu=$1
  2368. build_vendor=$2
  2369. shift; shift
  2370. # Remember, the first character of IFS is used to create $*,
  2371. # except with old shells:
  2372. build_os=$*
  2373. IFS=$ac_save_IFS
  2374. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2376. $as_echo_n "checking host system type... " >&6; }
  2377. if test "${ac_cv_host+set}" = set; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test "x$host_alias" = x; then
  2381. ac_cv_host=$ac_cv_build
  2382. else
  2383. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2384. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2385. fi
  2386. fi
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2388. $as_echo "$ac_cv_host" >&6; }
  2389. case $ac_cv_host in
  2390. *-*-*) ;;
  2391. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2392. esac
  2393. host=$ac_cv_host
  2394. ac_save_IFS=$IFS; IFS='-'
  2395. set x $ac_cv_host
  2396. shift
  2397. host_cpu=$1
  2398. host_vendor=$2
  2399. shift; shift
  2400. # Remember, the first character of IFS is used to create $*,
  2401. # except with old shells:
  2402. host_os=$*
  2403. IFS=$ac_save_IFS
  2404. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2406. $as_echo_n "checking target system type... " >&6; }
  2407. if test "${ac_cv_target+set}" = set; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test "x$target_alias" = x; then
  2411. ac_cv_target=$ac_cv_host
  2412. else
  2413. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2414. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2415. fi
  2416. fi
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2418. $as_echo "$ac_cv_target" >&6; }
  2419. case $ac_cv_target in
  2420. *-*-*) ;;
  2421. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2422. esac
  2423. target=$ac_cv_target
  2424. ac_save_IFS=$IFS; IFS='-'
  2425. set x $ac_cv_target
  2426. shift
  2427. target_cpu=$1
  2428. target_vendor=$2
  2429. shift; shift
  2430. # Remember, the first character of IFS is used to create $*,
  2431. # except with old shells:
  2432. target_os=$*
  2433. IFS=$ac_save_IFS
  2434. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2435. # The aliases save the names the user supplied, while $host etc.
  2436. # will get canonicalized.
  2437. test -n "$target_alias" &&
  2438. test "$program_prefix$program_suffix$program_transform_name" = \
  2439. NONENONEs,x,x, &&
  2440. program_prefix=${target_alias}-
  2441. target_alias=${target_alias-$host_alias}
  2442. am__api_version='1.11'
  2443. # Find a good install program. We prefer a C program (faster),
  2444. # so one script is as good as another. But avoid the broken or
  2445. # incompatible versions:
  2446. # SysV /etc/install, /usr/sbin/install
  2447. # SunOS /usr/etc/install
  2448. # IRIX /sbin/install
  2449. # AIX /bin/install
  2450. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2451. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2452. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2453. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2454. # OS/2's system install, which has a completely different semantic
  2455. # ./install, which can be erroneously created by make from ./install.sh.
  2456. # Reject install programs that cannot install multiple files.
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2458. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2459. if test -z "$INSTALL"; then
  2460. if test "${ac_cv_path_install+set}" = set; then :
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. # Account for people who put trailing slashes in PATH elements.
  2469. case $as_dir/ in #((
  2470. ./ | .// | /[cC]/* | \
  2471. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2472. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2473. /usr/ucb/* ) ;;
  2474. *)
  2475. # OSF1 and SCO ODT 3.0 have their own names for install.
  2476. # Don't use installbsd from OSF since it installs stuff as root
  2477. # by default.
  2478. for ac_prog in ginstall scoinst install; do
  2479. for ac_exec_ext in '' $ac_executable_extensions; do
  2480. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2481. if test $ac_prog = install &&
  2482. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2483. # AIX install. It has an incompatible calling convention.
  2484. :
  2485. elif test $ac_prog = install &&
  2486. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2487. # program-specific install script used by HP pwplus--don't use.
  2488. :
  2489. else
  2490. rm -rf conftest.one conftest.two conftest.dir
  2491. echo one > conftest.one
  2492. echo two > conftest.two
  2493. mkdir conftest.dir
  2494. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2495. test -s conftest.one && test -s conftest.two &&
  2496. test -s conftest.dir/conftest.one &&
  2497. test -s conftest.dir/conftest.two
  2498. then
  2499. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2500. break 3
  2501. fi
  2502. fi
  2503. fi
  2504. done
  2505. done
  2506. ;;
  2507. esac
  2508. done
  2509. IFS=$as_save_IFS
  2510. rm -rf conftest.one conftest.two conftest.dir
  2511. fi
  2512. if test "${ac_cv_path_install+set}" = set; then
  2513. INSTALL=$ac_cv_path_install
  2514. else
  2515. # As a last resort, use the slow shell script. Don't cache a
  2516. # value for INSTALL within a source directory, because that will
  2517. # break other packages using the cache if that directory is
  2518. # removed, or if the value is a relative name.
  2519. INSTALL=$ac_install_sh
  2520. fi
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2523. $as_echo "$INSTALL" >&6; }
  2524. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2525. # It thinks the first close brace ends the variable substitution.
  2526. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2527. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2528. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2530. $as_echo_n "checking whether build environment is sane... " >&6; }
  2531. # Just in case
  2532. sleep 1
  2533. echo timestamp > conftest.file
  2534. # Reject unsafe characters in $srcdir or the absolute working directory
  2535. # name. Accept space and tab only in the latter.
  2536. am_lf='
  2537. '
  2538. case `pwd` in
  2539. *[\\\"\#\$\&\'\`$am_lf]*)
  2540. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2541. esac
  2542. case $srcdir in
  2543. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2544. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2545. esac
  2546. # Do `set' in a subshell so we don't clobber the current shell's
  2547. # arguments. Must try -L first in case configure is actually a
  2548. # symlink; some systems play weird games with the mod time of symlinks
  2549. # (eg FreeBSD returns the mod time of the symlink's containing
  2550. # directory).
  2551. if (
  2552. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2553. if test "$*" = "X"; then
  2554. # -L didn't work.
  2555. set X `ls -t "$srcdir/configure" conftest.file`
  2556. fi
  2557. rm -f conftest.file
  2558. if test "$*" != "X $srcdir/configure conftest.file" \
  2559. && test "$*" != "X conftest.file $srcdir/configure"; then
  2560. # If neither matched, then we have a broken ls. This can happen
  2561. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2562. # broken ls alias from the environment. This has actually
  2563. # happened. Such a system could not be considered "sane".
  2564. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2565. alias in your environment" "$LINENO" 5
  2566. fi
  2567. test "$2" = conftest.file
  2568. )
  2569. then
  2570. # Ok.
  2571. :
  2572. else
  2573. as_fn_error "newly created file is older than distributed files!
  2574. Check your system clock" "$LINENO" 5
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2577. $as_echo "yes" >&6; }
  2578. test "$program_prefix" != NONE &&
  2579. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2580. # Use a double $ so make ignores it.
  2581. test "$program_suffix" != NONE &&
  2582. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2583. # Double any \ or $.
  2584. # By default was `s,x,x', remove it if useless.
  2585. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2586. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2587. # expand $ac_aux_dir to an absolute path
  2588. am_aux_dir=`cd $ac_aux_dir && pwd`
  2589. if test x"${MISSING+set}" != xset; then
  2590. case $am_aux_dir in
  2591. *\ * | *\ *)
  2592. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2593. *)
  2594. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2595. esac
  2596. fi
  2597. # Use eval to expand $SHELL
  2598. if eval "$MISSING --run true"; then
  2599. am_missing_run="$MISSING --run "
  2600. else
  2601. am_missing_run=
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2603. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2604. fi
  2605. if test x"${install_sh}" != xset; then
  2606. case $am_aux_dir in
  2607. *\ * | *\ *)
  2608. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2609. *)
  2610. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2611. esac
  2612. fi
  2613. # Installed binaries are usually stripped using `strip' when the user
  2614. # run `make install-strip'. However `strip' might not be the right
  2615. # tool to use in cross-compilation environments, therefore Automake
  2616. # will honor the `STRIP' environment variable to overrule this program.
  2617. if test "$cross_compiling" != no; then
  2618. if test -n "$ac_tool_prefix"; then
  2619. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2620. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2622. $as_echo_n "checking for $ac_word... " >&6; }
  2623. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2624. $as_echo_n "(cached) " >&6
  2625. else
  2626. if test -n "$STRIP"; then
  2627. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2628. else
  2629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2630. for as_dir in $PATH
  2631. do
  2632. IFS=$as_save_IFS
  2633. test -z "$as_dir" && as_dir=.
  2634. for ac_exec_ext in '' $ac_executable_extensions; do
  2635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2636. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2638. break 2
  2639. fi
  2640. done
  2641. done
  2642. IFS=$as_save_IFS
  2643. fi
  2644. fi
  2645. STRIP=$ac_cv_prog_STRIP
  2646. if test -n "$STRIP"; then
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2648. $as_echo "$STRIP" >&6; }
  2649. else
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2651. $as_echo "no" >&6; }
  2652. fi
  2653. fi
  2654. if test -z "$ac_cv_prog_STRIP"; then
  2655. ac_ct_STRIP=$STRIP
  2656. # Extract the first word of "strip", so it can be a program name with args.
  2657. set dummy strip; ac_word=$2
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2659. $as_echo_n "checking for $ac_word... " >&6; }
  2660. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2661. $as_echo_n "(cached) " >&6
  2662. else
  2663. if test -n "$ac_ct_STRIP"; then
  2664. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2665. else
  2666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2667. for as_dir in $PATH
  2668. do
  2669. IFS=$as_save_IFS
  2670. test -z "$as_dir" && as_dir=.
  2671. for ac_exec_ext in '' $ac_executable_extensions; do
  2672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2673. ac_cv_prog_ac_ct_STRIP="strip"
  2674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2675. break 2
  2676. fi
  2677. done
  2678. done
  2679. IFS=$as_save_IFS
  2680. fi
  2681. fi
  2682. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2683. if test -n "$ac_ct_STRIP"; then
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2685. $as_echo "$ac_ct_STRIP" >&6; }
  2686. else
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2688. $as_echo "no" >&6; }
  2689. fi
  2690. if test "x$ac_ct_STRIP" = x; then
  2691. STRIP=":"
  2692. else
  2693. case $cross_compiling:$ac_tool_warned in
  2694. yes:)
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2697. ac_tool_warned=yes ;;
  2698. esac
  2699. STRIP=$ac_ct_STRIP
  2700. fi
  2701. else
  2702. STRIP="$ac_cv_prog_STRIP"
  2703. fi
  2704. fi
  2705. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2707. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2708. if test -z "$MKDIR_P"; then
  2709. if test "${ac_cv_path_mkdir+set}" = set; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2713. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2714. do
  2715. IFS=$as_save_IFS
  2716. test -z "$as_dir" && as_dir=.
  2717. for ac_prog in mkdir gmkdir; do
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2720. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2721. 'mkdir (GNU coreutils) '* | \
  2722. 'mkdir (coreutils) '* | \
  2723. 'mkdir (fileutils) '4.1*)
  2724. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2725. break 3;;
  2726. esac
  2727. done
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. fi
  2732. if test "${ac_cv_path_mkdir+set}" = set; then
  2733. MKDIR_P="$ac_cv_path_mkdir -p"
  2734. else
  2735. # As a last resort, use the slow shell script. Don't cache a
  2736. # value for MKDIR_P within a source directory, because that will
  2737. # break other packages using the cache if that directory is
  2738. # removed, or if the value is a relative name.
  2739. test -d ./--version && rmdir ./--version
  2740. MKDIR_P="$ac_install_sh -d"
  2741. fi
  2742. fi
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2744. $as_echo "$MKDIR_P" >&6; }
  2745. mkdir_p="$MKDIR_P"
  2746. case $mkdir_p in
  2747. [\\/$]* | ?:[\\/]*) ;;
  2748. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2749. esac
  2750. for ac_prog in gawk mawk nawk awk
  2751. do
  2752. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2753. set dummy $ac_prog; ac_word=$2
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2755. $as_echo_n "checking for $ac_word... " >&6; }
  2756. if test "${ac_cv_prog_AWK+set}" = set; then :
  2757. $as_echo_n "(cached) " >&6
  2758. else
  2759. if test -n "$AWK"; then
  2760. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2761. else
  2762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2763. for as_dir in $PATH
  2764. do
  2765. IFS=$as_save_IFS
  2766. test -z "$as_dir" && as_dir=.
  2767. for ac_exec_ext in '' $ac_executable_extensions; do
  2768. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2769. ac_cv_prog_AWK="$ac_prog"
  2770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2771. break 2
  2772. fi
  2773. done
  2774. done
  2775. IFS=$as_save_IFS
  2776. fi
  2777. fi
  2778. AWK=$ac_cv_prog_AWK
  2779. if test -n "$AWK"; then
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2781. $as_echo "$AWK" >&6; }
  2782. else
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2784. $as_echo "no" >&6; }
  2785. fi
  2786. test -n "$AWK" && break
  2787. done
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2789. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2790. set x ${MAKE-make}
  2791. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2792. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. cat >conftest.make <<\_ACEOF
  2796. SHELL = /bin/sh
  2797. all:
  2798. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2799. _ACEOF
  2800. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2801. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2802. *@@@%%%=?*=@@@%%%*)
  2803. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2804. *)
  2805. eval ac_cv_prog_make_${ac_make}_set=no;;
  2806. esac
  2807. rm -f conftest.make
  2808. fi
  2809. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2811. $as_echo "yes" >&6; }
  2812. SET_MAKE=
  2813. else
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2815. $as_echo "no" >&6; }
  2816. SET_MAKE="MAKE=${MAKE-make}"
  2817. fi
  2818. rm -rf .tst 2>/dev/null
  2819. mkdir .tst 2>/dev/null
  2820. if test -d .tst; then
  2821. am__leading_dot=.
  2822. else
  2823. am__leading_dot=_
  2824. fi
  2825. rmdir .tst 2>/dev/null
  2826. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2827. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2828. # is not polluted with repeated "-I."
  2829. am__isrc=' -I$(srcdir)'
  2830. # test to see if srcdir already configured
  2831. if test -f $srcdir/config.status; then
  2832. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2833. fi
  2834. fi
  2835. # test whether we have cygpath
  2836. if test -z "$CYGPATH_W"; then
  2837. if (cygpath --version) >/dev/null 2>/dev/null; then
  2838. CYGPATH_W='cygpath -w'
  2839. else
  2840. CYGPATH_W=echo
  2841. fi
  2842. fi
  2843. # Define the identity of the package.
  2844. PACKAGE='libgo'
  2845. VERSION='version-unused'
  2846. # Some tools Automake needs.
  2847. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2848. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2849. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2850. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2851. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2852. # We need awk for the "check" target. The system "awk" is bad on
  2853. # some platforms.
  2854. # Always define AMTAR for backward compatibility.
  2855. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2856. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2857. ac_ext=c
  2858. ac_cpp='$CPP $CPPFLAGS'
  2859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2862. if test -n "$ac_tool_prefix"; then
  2863. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2864. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2866. $as_echo_n "checking for $ac_word... " >&6; }
  2867. if test "${ac_cv_prog_CC+set}" = set; then :
  2868. $as_echo_n "(cached) " >&6
  2869. else
  2870. if test -n "$CC"; then
  2871. ac_cv_prog_CC="$CC" # Let the user override the test.
  2872. else
  2873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2874. for as_dir in $PATH
  2875. do
  2876. IFS=$as_save_IFS
  2877. test -z "$as_dir" && as_dir=.
  2878. for ac_exec_ext in '' $ac_executable_extensions; do
  2879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2880. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2882. break 2
  2883. fi
  2884. done
  2885. done
  2886. IFS=$as_save_IFS
  2887. fi
  2888. fi
  2889. CC=$ac_cv_prog_CC
  2890. if test -n "$CC"; then
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2892. $as_echo "$CC" >&6; }
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. fi
  2898. if test -z "$ac_cv_prog_CC"; then
  2899. ac_ct_CC=$CC
  2900. # Extract the first word of "gcc", so it can be a program name with args.
  2901. set dummy gcc; ac_word=$2
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2903. $as_echo_n "checking for $ac_word... " >&6; }
  2904. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. if test -n "$ac_ct_CC"; then
  2908. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2909. else
  2910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2911. for as_dir in $PATH
  2912. do
  2913. IFS=$as_save_IFS
  2914. test -z "$as_dir" && as_dir=.
  2915. for ac_exec_ext in '' $ac_executable_extensions; do
  2916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2917. ac_cv_prog_ac_ct_CC="gcc"
  2918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2919. break 2
  2920. fi
  2921. done
  2922. done
  2923. IFS=$as_save_IFS
  2924. fi
  2925. fi
  2926. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2927. if test -n "$ac_ct_CC"; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2929. $as_echo "$ac_ct_CC" >&6; }
  2930. else
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. $as_echo "no" >&6; }
  2933. fi
  2934. if test "x$ac_ct_CC" = x; then
  2935. CC=""
  2936. else
  2937. case $cross_compiling:$ac_tool_warned in
  2938. yes:)
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2941. ac_tool_warned=yes ;;
  2942. esac
  2943. CC=$ac_ct_CC
  2944. fi
  2945. else
  2946. CC="$ac_cv_prog_CC"
  2947. fi
  2948. if test -z "$CC"; then
  2949. if test -n "$ac_tool_prefix"; then
  2950. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2951. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2953. $as_echo_n "checking for $ac_word... " >&6; }
  2954. if test "${ac_cv_prog_CC+set}" = set; then :
  2955. $as_echo_n "(cached) " >&6
  2956. else
  2957. if test -n "$CC"; then
  2958. ac_cv_prog_CC="$CC" # Let the user override the test.
  2959. else
  2960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2961. for as_dir in $PATH
  2962. do
  2963. IFS=$as_save_IFS
  2964. test -z "$as_dir" && as_dir=.
  2965. for ac_exec_ext in '' $ac_executable_extensions; do
  2966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2967. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2969. break 2
  2970. fi
  2971. done
  2972. done
  2973. IFS=$as_save_IFS
  2974. fi
  2975. fi
  2976. CC=$ac_cv_prog_CC
  2977. if test -n "$CC"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2979. $as_echo "$CC" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. fi
  2985. fi
  2986. if test -z "$CC"; then
  2987. # Extract the first word of "cc", so it can be a program name with args.
  2988. set dummy cc; ac_word=$2
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2990. $as_echo_n "checking for $ac_word... " >&6; }
  2991. if test "${ac_cv_prog_CC+set}" = set; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. if test -n "$CC"; then
  2995. ac_cv_prog_CC="$CC" # Let the user override the test.
  2996. else
  2997. ac_prog_rejected=no
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. for as_dir in $PATH
  3000. do
  3001. IFS=$as_save_IFS
  3002. test -z "$as_dir" && as_dir=.
  3003. for ac_exec_ext in '' $ac_executable_extensions; do
  3004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3005. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3006. ac_prog_rejected=yes
  3007. continue
  3008. fi
  3009. ac_cv_prog_CC="cc"
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3011. break 2
  3012. fi
  3013. done
  3014. done
  3015. IFS=$as_save_IFS
  3016. if test $ac_prog_rejected = yes; then
  3017. # We found a bogon in the path, so make sure we never use it.
  3018. set dummy $ac_cv_prog_CC
  3019. shift
  3020. if test $# != 0; then
  3021. # We chose a different compiler from the bogus one.
  3022. # However, it has the same basename, so the bogon will be chosen
  3023. # first if we set CC to just the basename; use the full file name.
  3024. shift
  3025. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3026. fi
  3027. fi
  3028. fi
  3029. fi
  3030. CC=$ac_cv_prog_CC
  3031. if test -n "$CC"; then
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3033. $as_echo "$CC" >&6; }
  3034. else
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3036. $as_echo "no" >&6; }
  3037. fi
  3038. fi
  3039. if test -z "$CC"; then
  3040. if test -n "$ac_tool_prefix"; then
  3041. for ac_prog in cl.exe
  3042. do
  3043. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3044. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3046. $as_echo_n "checking for $ac_word... " >&6; }
  3047. if test "${ac_cv_prog_CC+set}" = set; then :
  3048. $as_echo_n "(cached) " >&6
  3049. else
  3050. if test -n "$CC"; then
  3051. ac_cv_prog_CC="$CC" # Let the user override the test.
  3052. else
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3060. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3062. break 2
  3063. fi
  3064. done
  3065. done
  3066. IFS=$as_save_IFS
  3067. fi
  3068. fi
  3069. CC=$ac_cv_prog_CC
  3070. if test -n "$CC"; then
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3072. $as_echo "$CC" >&6; }
  3073. else
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3075. $as_echo "no" >&6; }
  3076. fi
  3077. test -n "$CC" && break
  3078. done
  3079. fi
  3080. if test -z "$CC"; then
  3081. ac_ct_CC=$CC
  3082. for ac_prog in cl.exe
  3083. do
  3084. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3085. set dummy $ac_prog; ac_word=$2
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3087. $as_echo_n "checking for $ac_word... " >&6; }
  3088. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3089. $as_echo_n "(cached) " >&6
  3090. else
  3091. if test -n "$ac_ct_CC"; then
  3092. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3093. else
  3094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3095. for as_dir in $PATH
  3096. do
  3097. IFS=$as_save_IFS
  3098. test -z "$as_dir" && as_dir=.
  3099. for ac_exec_ext in '' $ac_executable_extensions; do
  3100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3101. ac_cv_prog_ac_ct_CC="$ac_prog"
  3102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3103. break 2
  3104. fi
  3105. done
  3106. done
  3107. IFS=$as_save_IFS
  3108. fi
  3109. fi
  3110. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3111. if test -n "$ac_ct_CC"; then
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3113. $as_echo "$ac_ct_CC" >&6; }
  3114. else
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3116. $as_echo "no" >&6; }
  3117. fi
  3118. test -n "$ac_ct_CC" && break
  3119. done
  3120. if test "x$ac_ct_CC" = x; then
  3121. CC=""
  3122. else
  3123. case $cross_compiling:$ac_tool_warned in
  3124. yes:)
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3127. ac_tool_warned=yes ;;
  3128. esac
  3129. CC=$ac_ct_CC
  3130. fi
  3131. fi
  3132. fi
  3133. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3134. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3135. as_fn_error "no acceptable C compiler found in \$PATH
  3136. See \`config.log' for more details." "$LINENO" 5; }
  3137. # Provide some information about the compiler.
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3139. set X $ac_compile
  3140. ac_compiler=$2
  3141. for ac_option in --version -v -V -qversion; do
  3142. { { ac_try="$ac_compiler $ac_option >&5"
  3143. case "(($ac_try" in
  3144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145. *) ac_try_echo=$ac_try;;
  3146. esac
  3147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3148. $as_echo "$ac_try_echo"; } >&5
  3149. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3150. ac_status=$?
  3151. if test -s conftest.err; then
  3152. sed '10a\
  3153. ... rest of stderr output deleted ...
  3154. 10q' conftest.err >conftest.er1
  3155. cat conftest.er1 >&5
  3156. rm -f conftest.er1 conftest.err
  3157. fi
  3158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3159. test $ac_status = 0; }
  3160. done
  3161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3162. /* end confdefs.h. */
  3163. int
  3164. main ()
  3165. {
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. ac_clean_files_save=$ac_clean_files
  3171. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3172. # Try to create an executable without -o first, disregard a.out.
  3173. # It will help us diagnose broken compilers, and finding out an intuition
  3174. # of exeext.
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3176. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3177. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3178. # The possible output files:
  3179. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3180. ac_rmfiles=
  3181. for ac_file in $ac_files
  3182. do
  3183. case $ac_file in
  3184. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3185. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3186. esac
  3187. done
  3188. rm -f $ac_rmfiles
  3189. if { { ac_try="$ac_link_default"
  3190. case "(($ac_try" in
  3191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. *) ac_try_echo=$ac_try;;
  3193. esac
  3194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3195. $as_echo "$ac_try_echo"; } >&5
  3196. (eval "$ac_link_default") 2>&5
  3197. ac_status=$?
  3198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3199. test $ac_status = 0; }; then :
  3200. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3201. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3202. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3203. # so that the user can short-circuit this test for compilers unknown to
  3204. # Autoconf.
  3205. for ac_file in $ac_files ''
  3206. do
  3207. test -f "$ac_file" || continue
  3208. case $ac_file in
  3209. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3210. ;;
  3211. [ab].out )
  3212. # We found the default executable, but exeext='' is most
  3213. # certainly right.
  3214. break;;
  3215. *.* )
  3216. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3217. then :; else
  3218. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3219. fi
  3220. # We set ac_cv_exeext here because the later test for it is not
  3221. # safe: cross compilers may not add the suffix if given an `-o'
  3222. # argument, so we may need to know it at that point already.
  3223. # Even if this section looks crufty: it has the advantage of
  3224. # actually working.
  3225. break;;
  3226. * )
  3227. break;;
  3228. esac
  3229. done
  3230. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3231. else
  3232. ac_file=''
  3233. fi
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3235. $as_echo "$ac_file" >&6; }
  3236. if test -z "$ac_file"; then :
  3237. $as_echo "$as_me: failed program was:" >&5
  3238. sed 's/^/| /' conftest.$ac_ext >&5
  3239. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3240. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3241. { as_fn_set_status 77
  3242. as_fn_error "C compiler cannot create executables
  3243. See \`config.log' for more details." "$LINENO" 5; }; }
  3244. fi
  3245. ac_exeext=$ac_cv_exeext
  3246. # Check that the compiler produces executables we can run. If not, either
  3247. # the compiler is broken, or we cross compile.
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3249. $as_echo_n "checking whether the C compiler works... " >&6; }
  3250. # If not cross compiling, check that we can run a simple program.
  3251. if test "$cross_compiling" != yes; then
  3252. if { ac_try='./$ac_file'
  3253. { { case "(($ac_try" in
  3254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3255. *) ac_try_echo=$ac_try;;
  3256. esac
  3257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3258. $as_echo "$ac_try_echo"; } >&5
  3259. (eval "$ac_try") 2>&5
  3260. ac_status=$?
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3262. test $ac_status = 0; }; }; then
  3263. cross_compiling=no
  3264. else
  3265. if test "$cross_compiling" = maybe; then
  3266. cross_compiling=yes
  3267. else
  3268. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3270. as_fn_error "cannot run C compiled programs.
  3271. If you meant to cross compile, use \`--host'.
  3272. See \`config.log' for more details." "$LINENO" 5; }
  3273. fi
  3274. fi
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3277. $as_echo "yes" >&6; }
  3278. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3279. ac_clean_files=$ac_clean_files_save
  3280. # Check that the compiler produces executables we can run. If not, either
  3281. # the compiler is broken, or we cross compile.
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3283. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3285. $as_echo "$cross_compiling" >&6; }
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3287. $as_echo_n "checking for suffix of executables... " >&6; }
  3288. if { { ac_try="$ac_link"
  3289. case "(($ac_try" in
  3290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3291. *) ac_try_echo=$ac_try;;
  3292. esac
  3293. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3294. $as_echo "$ac_try_echo"; } >&5
  3295. (eval "$ac_link") 2>&5
  3296. ac_status=$?
  3297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3298. test $ac_status = 0; }; then :
  3299. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3300. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3301. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3302. # `rm'.
  3303. for ac_file in conftest.exe conftest conftest.*; do
  3304. test -f "$ac_file" || continue
  3305. case $ac_file in
  3306. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3307. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3308. break;;
  3309. * ) break;;
  3310. esac
  3311. done
  3312. else
  3313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3315. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3316. See \`config.log' for more details." "$LINENO" 5; }
  3317. fi
  3318. rm -f conftest$ac_cv_exeext
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3320. $as_echo "$ac_cv_exeext" >&6; }
  3321. rm -f conftest.$ac_ext
  3322. EXEEXT=$ac_cv_exeext
  3323. ac_exeext=$EXEEXT
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3325. $as_echo_n "checking for suffix of object files... " >&6; }
  3326. if test "${ac_cv_objext+set}" = set; then :
  3327. $as_echo_n "(cached) " >&6
  3328. else
  3329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3330. /* end confdefs.h. */
  3331. int
  3332. main ()
  3333. {
  3334. ;
  3335. return 0;
  3336. }
  3337. _ACEOF
  3338. rm -f conftest.o conftest.obj
  3339. if { { ac_try="$ac_compile"
  3340. case "(($ac_try" in
  3341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3342. *) ac_try_echo=$ac_try;;
  3343. esac
  3344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3345. $as_echo "$ac_try_echo"; } >&5
  3346. (eval "$ac_compile") 2>&5
  3347. ac_status=$?
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3349. test $ac_status = 0; }; then :
  3350. for ac_file in conftest.o conftest.obj conftest.*; do
  3351. test -f "$ac_file" || continue;
  3352. case $ac_file in
  3353. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3354. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3355. break;;
  3356. esac
  3357. done
  3358. else
  3359. $as_echo "$as_me: failed program was:" >&5
  3360. sed 's/^/| /' conftest.$ac_ext >&5
  3361. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3362. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3363. as_fn_error "cannot compute suffix of object files: cannot compile
  3364. See \`config.log' for more details." "$LINENO" 5; }
  3365. fi
  3366. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3367. fi
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3369. $as_echo "$ac_cv_objext" >&6; }
  3370. OBJEXT=$ac_cv_objext
  3371. ac_objext=$OBJEXT
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3373. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3374. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3378. /* end confdefs.h. */
  3379. int
  3380. main ()
  3381. {
  3382. #ifndef __GNUC__
  3383. choke me
  3384. #endif
  3385. ;
  3386. return 0;
  3387. }
  3388. _ACEOF
  3389. if ac_fn_c_try_compile "$LINENO"; then :
  3390. ac_compiler_gnu=yes
  3391. else
  3392. ac_compiler_gnu=no
  3393. fi
  3394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3395. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3396. fi
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3398. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3399. if test $ac_compiler_gnu = yes; then
  3400. GCC=yes
  3401. else
  3402. GCC=
  3403. fi
  3404. ac_test_CFLAGS=${CFLAGS+set}
  3405. ac_save_CFLAGS=$CFLAGS
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3407. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3408. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3409. $as_echo_n "(cached) " >&6
  3410. else
  3411. ac_save_c_werror_flag=$ac_c_werror_flag
  3412. ac_c_werror_flag=yes
  3413. ac_cv_prog_cc_g=no
  3414. CFLAGS="-g"
  3415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3416. /* end confdefs.h. */
  3417. int
  3418. main ()
  3419. {
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. ac_cv_prog_cc_g=yes
  3426. else
  3427. CFLAGS=""
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. int
  3431. main ()
  3432. {
  3433. ;
  3434. return 0;
  3435. }
  3436. _ACEOF
  3437. if ac_fn_c_try_compile "$LINENO"; then :
  3438. else
  3439. ac_c_werror_flag=$ac_save_c_werror_flag
  3440. CFLAGS="-g"
  3441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3442. /* end confdefs.h. */
  3443. int
  3444. main ()
  3445. {
  3446. ;
  3447. return 0;
  3448. }
  3449. _ACEOF
  3450. if ac_fn_c_try_compile "$LINENO"; then :
  3451. ac_cv_prog_cc_g=yes
  3452. fi
  3453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3454. fi
  3455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3456. fi
  3457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3458. ac_c_werror_flag=$ac_save_c_werror_flag
  3459. fi
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3461. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3462. if test "$ac_test_CFLAGS" = set; then
  3463. CFLAGS=$ac_save_CFLAGS
  3464. elif test $ac_cv_prog_cc_g = yes; then
  3465. if test "$GCC" = yes; then
  3466. CFLAGS="-g -O2"
  3467. else
  3468. CFLAGS="-g"
  3469. fi
  3470. else
  3471. if test "$GCC" = yes; then
  3472. CFLAGS="-O2"
  3473. else
  3474. CFLAGS=
  3475. fi
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3478. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3479. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. ac_cv_prog_cc_c89=no
  3483. ac_save_CC=$CC
  3484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3485. /* end confdefs.h. */
  3486. #include <stdarg.h>
  3487. #include <stdio.h>
  3488. #include <sys/types.h>
  3489. #include <sys/stat.h>
  3490. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3491. struct buf { int x; };
  3492. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3493. static char *e (p, i)
  3494. char **p;
  3495. int i;
  3496. {
  3497. return p[i];
  3498. }
  3499. static char *f (char * (*g) (char **, int), char **p, ...)
  3500. {
  3501. char *s;
  3502. va_list v;
  3503. va_start (v,p);
  3504. s = g (p, va_arg (v,int));
  3505. va_end (v);
  3506. return s;
  3507. }
  3508. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3509. function prototypes and stuff, but not '\xHH' hex character constants.
  3510. These don't provoke an error unfortunately, instead are silently treated
  3511. as 'x'. The following induces an error, until -std is added to get
  3512. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3513. array size at least. It's necessary to write '\x00'==0 to get something
  3514. that's true only with -std. */
  3515. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3516. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3517. inside strings and character constants. */
  3518. #define FOO(x) 'x'
  3519. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3520. int test (int i, double x);
  3521. struct s1 {int (*f) (int a);};
  3522. struct s2 {int (*f) (double a);};
  3523. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3524. int argc;
  3525. char **argv;
  3526. int
  3527. main ()
  3528. {
  3529. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3535. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3536. do
  3537. CC="$ac_save_CC $ac_arg"
  3538. if ac_fn_c_try_compile "$LINENO"; then :
  3539. ac_cv_prog_cc_c89=$ac_arg
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext
  3542. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3543. done
  3544. rm -f conftest.$ac_ext
  3545. CC=$ac_save_CC
  3546. fi
  3547. # AC_CACHE_VAL
  3548. case "x$ac_cv_prog_cc_c89" in
  3549. x)
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3551. $as_echo "none needed" >&6; } ;;
  3552. xno)
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3554. $as_echo "unsupported" >&6; } ;;
  3555. *)
  3556. CC="$CC $ac_cv_prog_cc_c89"
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3558. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3559. esac
  3560. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3561. fi
  3562. ac_ext=c
  3563. ac_cpp='$CPP $CPPFLAGS'
  3564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3567. DEPDIR="${am__leading_dot}deps"
  3568. ac_config_commands="$ac_config_commands depfiles"
  3569. am_make=${MAKE-make}
  3570. cat > confinc << 'END'
  3571. am__doit:
  3572. @echo this is the am__doit target
  3573. .PHONY: am__doit
  3574. END
  3575. # If we don't find an include directive, just comment out the code.
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3577. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3578. am__include="#"
  3579. am__quote=
  3580. _am_result=none
  3581. # First try GNU make style include.
  3582. echo "include confinc" > confmf
  3583. # Ignore all kinds of additional output from `make'.
  3584. case `$am_make -s -f confmf 2> /dev/null` in #(
  3585. *the\ am__doit\ target*)
  3586. am__include=include
  3587. am__quote=
  3588. _am_result=GNU
  3589. ;;
  3590. esac
  3591. # Now try BSD make style include.
  3592. if test "$am__include" = "#"; then
  3593. echo '.include "confinc"' > confmf
  3594. case `$am_make -s -f confmf 2> /dev/null` in #(
  3595. *the\ am__doit\ target*)
  3596. am__include=.include
  3597. am__quote="\""
  3598. _am_result=BSD
  3599. ;;
  3600. esac
  3601. fi
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3603. $as_echo "$_am_result" >&6; }
  3604. rm -f confinc confmf
  3605. # Check whether --enable-dependency-tracking was given.
  3606. if test "${enable_dependency_tracking+set}" = set; then :
  3607. enableval=$enable_dependency_tracking;
  3608. fi
  3609. if test "x$enable_dependency_tracking" != xno; then
  3610. am_depcomp="$ac_aux_dir/depcomp"
  3611. AMDEPBACKSLASH='\'
  3612. fi
  3613. if test "x$enable_dependency_tracking" != xno; then
  3614. AMDEP_TRUE=
  3615. AMDEP_FALSE='#'
  3616. else
  3617. AMDEP_TRUE='#'
  3618. AMDEP_FALSE=
  3619. fi
  3620. depcc="$CC" am_compiler_list=
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3622. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3623. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3624. $as_echo_n "(cached) " >&6
  3625. else
  3626. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3627. # We make a subdir and do the tests there. Otherwise we can end up
  3628. # making bogus files that we don't know about and never remove. For
  3629. # instance it was reported that on HP-UX the gcc test will end up
  3630. # making a dummy file named `D' -- because `-MD' means `put the output
  3631. # in D'.
  3632. mkdir conftest.dir
  3633. # Copy depcomp to subdir because otherwise we won't find it if we're
  3634. # using a relative directory.
  3635. cp "$am_depcomp" conftest.dir
  3636. cd conftest.dir
  3637. # We will build objects and dependencies in a subdirectory because
  3638. # it helps to detect inapplicable dependency modes. For instance
  3639. # both Tru64's cc and ICC support -MD to output dependencies as a
  3640. # side effect of compilation, but ICC will put the dependencies in
  3641. # the current directory while Tru64 will put them in the object
  3642. # directory.
  3643. mkdir sub
  3644. am_cv_CC_dependencies_compiler_type=none
  3645. if test "$am_compiler_list" = ""; then
  3646. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3647. fi
  3648. am__universal=false
  3649. case " $depcc " in #(
  3650. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3651. esac
  3652. for depmode in $am_compiler_list; do
  3653. # Setup a source with many dependencies, because some compilers
  3654. # like to wrap large dependency lists on column 80 (with \), and
  3655. # we should not choose a depcomp mode which is confused by this.
  3656. #
  3657. # We need to recreate these files for each test, as the compiler may
  3658. # overwrite some of them when testing with obscure command lines.
  3659. # This happens at least with the AIX C compiler.
  3660. : > sub/conftest.c
  3661. for i in 1 2 3 4 5 6; do
  3662. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3663. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3664. # Solaris 8's {/usr,}/bin/sh.
  3665. touch sub/conftst$i.h
  3666. done
  3667. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3668. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3669. # mode. It turns out that the SunPro C++ compiler does not properly
  3670. # handle `-M -o', and we need to detect this. Also, some Intel
  3671. # versions had trouble with output in subdirs
  3672. am__obj=sub/conftest.${OBJEXT-o}
  3673. am__minus_obj="-o $am__obj"
  3674. case $depmode in
  3675. gcc)
  3676. # This depmode causes a compiler race in universal mode.
  3677. test "$am__universal" = false || continue
  3678. ;;
  3679. nosideeffect)
  3680. # after this tag, mechanisms are not by side-effect, so they'll
  3681. # only be used when explicitly requested
  3682. if test "x$enable_dependency_tracking" = xyes; then
  3683. continue
  3684. else
  3685. break
  3686. fi
  3687. ;;
  3688. msvisualcpp | msvcmsys)
  3689. # This compiler won't grok `-c -o', but also, the minuso test has
  3690. # not run yet. These depmodes are late enough in the game, and
  3691. # so weak that their functioning should not be impacted.
  3692. am__obj=conftest.${OBJEXT-o}
  3693. am__minus_obj=
  3694. ;;
  3695. none) break ;;
  3696. esac
  3697. if depmode=$depmode \
  3698. source=sub/conftest.c object=$am__obj \
  3699. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3700. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3701. >/dev/null 2>conftest.err &&
  3702. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3703. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3704. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3705. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3706. # icc doesn't choke on unknown options, it will just issue warnings
  3707. # or remarks (even with -Werror). So we grep stderr for any message
  3708. # that says an option was ignored or not supported.
  3709. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3710. # icc: Command line warning: ignoring option '-M'; no argument required
  3711. # The diagnosis changed in icc 8.0:
  3712. # icc: Command line remark: option '-MP' not supported
  3713. if (grep 'ignoring option' conftest.err ||
  3714. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3715. am_cv_CC_dependencies_compiler_type=$depmode
  3716. break
  3717. fi
  3718. fi
  3719. done
  3720. cd ..
  3721. rm -rf conftest.dir
  3722. else
  3723. am_cv_CC_dependencies_compiler_type=none
  3724. fi
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3727. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3728. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3729. if
  3730. test "x$enable_dependency_tracking" != xno \
  3731. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3732. am__fastdepCC_TRUE=
  3733. am__fastdepCC_FALSE='#'
  3734. else
  3735. am__fastdepCC_TRUE='#'
  3736. am__fastdepCC_FALSE=
  3737. fi
  3738. ac_ext=go
  3739. ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
  3740. ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3741. ac_compile_gnu=yes
  3742. if test -n "$ac_tool_prefix"; then
  3743. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  3744. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if test "${ac_cv_prog_GOC+set}" = set; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$GOC"; then
  3751. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760. ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. GOC=$ac_cv_prog_GOC
  3770. if test -n "$GOC"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  3772. $as_echo "$GOC" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. fi
  3778. if test -z "$ac_cv_prog_GOC"; then
  3779. ac_ct_GOC=$GOC
  3780. # Extract the first word of "gccgo", so it can be a program name with args.
  3781. set dummy gccgo; ac_word=$2
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$ac_ct_GOC"; then
  3788. ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3797. ac_cv_prog_ac_ct_GOC="gccgo"
  3798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
  3807. if test -n "$ac_ct_GOC"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
  3809. $as_echo "$ac_ct_GOC" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. if test "x$ac_ct_GOC" = x; then
  3815. GOC=""
  3816. else
  3817. case $cross_compiling:$ac_tool_warned in
  3818. yes:)
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3821. ac_tool_warned=yes ;;
  3822. esac
  3823. GOC=$ac_ct_GOC
  3824. fi
  3825. else
  3826. GOC="$ac_cv_prog_GOC"
  3827. fi
  3828. if test -z "$GOC"; then
  3829. if test -n "$ac_tool_prefix"; then
  3830. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  3831. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3833. $as_echo_n "checking for $ac_word... " >&6; }
  3834. if test "${ac_cv_prog_GOC+set}" = set; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. if test -n "$GOC"; then
  3838. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  3839. else
  3840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3841. for as_dir in $PATH
  3842. do
  3843. IFS=$as_save_IFS
  3844. test -z "$as_dir" && as_dir=.
  3845. for ac_exec_ext in '' $ac_executable_extensions; do
  3846. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3847. ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
  3848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3849. break 2
  3850. fi
  3851. done
  3852. done
  3853. IFS=$as_save_IFS
  3854. fi
  3855. fi
  3856. GOC=$ac_cv_prog_GOC
  3857. if test -n "$GOC"; then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  3859. $as_echo "$GOC" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3862. $as_echo "no" >&6; }
  3863. fi
  3864. fi
  3865. fi
  3866. if test -z "$GOC"; then
  3867. # Extract the first word of "gccgo", so it can be a program name with args.
  3868. set dummy gccgo; ac_word=$2
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3870. $as_echo_n "checking for $ac_word... " >&6; }
  3871. if test "${ac_cv_prog_GOC+set}" = set; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -n "$GOC"; then
  3875. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  3876. else
  3877. ac_prog_rejected=no
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3885. if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
  3886. ac_prog_rejected=yes
  3887. continue
  3888. fi
  3889. ac_cv_prog_GOC="gccgo"
  3890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3891. break 2
  3892. fi
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. if test $ac_prog_rejected = yes; then
  3897. # We found a bogon in the path, so make sure we never use it.
  3898. set dummy $ac_cv_prog_GOC
  3899. shift
  3900. if test $# != 0; then
  3901. # We chose a different compiler from the bogus one.
  3902. # However, it has the same basename, so the bogon will be chosen
  3903. # first if we set GOC to just the basename; use the full file name.
  3904. shift
  3905. ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
  3906. fi
  3907. fi
  3908. fi
  3909. fi
  3910. GOC=$ac_cv_prog_GOC
  3911. if test -n "$GOC"; then
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  3913. $as_echo "$GOC" >&6; }
  3914. else
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3916. $as_echo "no" >&6; }
  3917. fi
  3918. fi
  3919. # Provide some information about the compiler.
  3920. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
  3921. set X $ac_compile
  3922. ac_compiler=$2
  3923. { { ac_try="$ac_compiler --version >&5"
  3924. case "(($ac_try" in
  3925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3926. *) ac_try_echo=$ac_try;;
  3927. esac
  3928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3929. $as_echo "$ac_try_echo"; } >&5
  3930. (eval "$ac_compiler --version >&5") 2>conftest.err
  3931. ac_status=$?
  3932. if test -s conftest.err; then
  3933. sed '10a\
  3934. ... rest of stderr output deleted ...
  3935. 10q' conftest.err >conftest.er1
  3936. cat conftest.er1 >&5
  3937. rm -f conftest.er1 conftest.err
  3938. fi
  3939. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3940. test $ac_status = 0; }
  3941. GOCFLAGS="-g -O2"
  3942. ac_ext=c
  3943. ac_cpp='$CPP $CPPFLAGS'
  3944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3948. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3949. # Check whether --enable-maintainer-mode was given.
  3950. if test "${enable_maintainer_mode+set}" = set; then :
  3951. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3952. else
  3953. USE_MAINTAINER_MODE=no
  3954. fi
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3956. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3957. if test $USE_MAINTAINER_MODE = yes; then
  3958. MAINTAINER_MODE_TRUE=
  3959. MAINTAINER_MODE_FALSE='#'
  3960. else
  3961. MAINTAINER_MODE_TRUE='#'
  3962. MAINTAINER_MODE_FALSE=
  3963. fi
  3964. MAINT=$MAINTAINER_MODE_TRUE
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3966. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3967. if test "${ac_cv_path_SED+set}" = set; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3971. for ac_i in 1 2 3 4 5 6 7; do
  3972. ac_script="$ac_script$as_nl$ac_script"
  3973. done
  3974. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3975. { ac_script=; unset ac_script;}
  3976. if test -z "$SED"; then
  3977. ac_path_SED_found=false
  3978. # Loop through the user's path and test for each of PROGNAME-LIST
  3979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3980. for as_dir in $PATH
  3981. do
  3982. IFS=$as_save_IFS
  3983. test -z "$as_dir" && as_dir=.
  3984. for ac_prog in sed gsed; do
  3985. for ac_exec_ext in '' $ac_executable_extensions; do
  3986. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3987. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3988. # Check for GNU ac_path_SED and select it if it is found.
  3989. # Check for GNU $ac_path_SED
  3990. case `"$ac_path_SED" --version 2>&1` in
  3991. *GNU*)
  3992. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3993. *)
  3994. ac_count=0
  3995. $as_echo_n 0123456789 >"conftest.in"
  3996. while :
  3997. do
  3998. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3999. mv "conftest.tmp" "conftest.in"
  4000. cp "conftest.in" "conftest.nl"
  4001. $as_echo '' >> "conftest.nl"
  4002. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4003. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4004. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4005. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4006. # Best one so far, save it but keep looking for a better one
  4007. ac_cv_path_SED="$ac_path_SED"
  4008. ac_path_SED_max=$ac_count
  4009. fi
  4010. # 10*(2^10) chars as input seems more than enough
  4011. test $ac_count -gt 10 && break
  4012. done
  4013. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4014. esac
  4015. $ac_path_SED_found && break 3
  4016. done
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. if test -z "$ac_cv_path_SED"; then
  4021. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4022. fi
  4023. else
  4024. ac_cv_path_SED=$SED
  4025. fi
  4026. fi
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4028. $as_echo "$ac_cv_path_SED" >&6; }
  4029. SED="$ac_cv_path_SED"
  4030. rm -f conftest.sed
  4031. test -z "$SED" && SED=sed
  4032. Xsed="$SED -e 1s/^X//"
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4034. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4035. if test "${ac_cv_path_GREP+set}" = set; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. if test -z "$GREP"; then
  4039. ac_path_GREP_found=false
  4040. # Loop through the user's path and test for each of PROGNAME-LIST
  4041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4042. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4043. do
  4044. IFS=$as_save_IFS
  4045. test -z "$as_dir" && as_dir=.
  4046. for ac_prog in grep ggrep; do
  4047. for ac_exec_ext in '' $ac_executable_extensions; do
  4048. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4049. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4050. # Check for GNU ac_path_GREP and select it if it is found.
  4051. # Check for GNU $ac_path_GREP
  4052. case `"$ac_path_GREP" --version 2>&1` in
  4053. *GNU*)
  4054. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4055. *)
  4056. ac_count=0
  4057. $as_echo_n 0123456789 >"conftest.in"
  4058. while :
  4059. do
  4060. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4061. mv "conftest.tmp" "conftest.in"
  4062. cp "conftest.in" "conftest.nl"
  4063. $as_echo 'GREP' >> "conftest.nl"
  4064. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4065. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4066. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4067. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4068. # Best one so far, save it but keep looking for a better one
  4069. ac_cv_path_GREP="$ac_path_GREP"
  4070. ac_path_GREP_max=$ac_count
  4071. fi
  4072. # 10*(2^10) chars as input seems more than enough
  4073. test $ac_count -gt 10 && break
  4074. done
  4075. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4076. esac
  4077. $ac_path_GREP_found && break 3
  4078. done
  4079. done
  4080. done
  4081. IFS=$as_save_IFS
  4082. if test -z "$ac_cv_path_GREP"; then
  4083. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4084. fi
  4085. else
  4086. ac_cv_path_GREP=$GREP
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4090. $as_echo "$ac_cv_path_GREP" >&6; }
  4091. GREP="$ac_cv_path_GREP"
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4093. $as_echo_n "checking for egrep... " >&6; }
  4094. if test "${ac_cv_path_EGREP+set}" = set; then :
  4095. $as_echo_n "(cached) " >&6
  4096. else
  4097. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4098. then ac_cv_path_EGREP="$GREP -E"
  4099. else
  4100. if test -z "$EGREP"; then
  4101. ac_path_EGREP_found=false
  4102. # Loop through the user's path and test for each of PROGNAME-LIST
  4103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4104. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4105. do
  4106. IFS=$as_save_IFS
  4107. test -z "$as_dir" && as_dir=.
  4108. for ac_prog in egrep; do
  4109. for ac_exec_ext in '' $ac_executable_extensions; do
  4110. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4111. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4112. # Check for GNU ac_path_EGREP and select it if it is found.
  4113. # Check for GNU $ac_path_EGREP
  4114. case `"$ac_path_EGREP" --version 2>&1` in
  4115. *GNU*)
  4116. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4117. *)
  4118. ac_count=0
  4119. $as_echo_n 0123456789 >"conftest.in"
  4120. while :
  4121. do
  4122. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4123. mv "conftest.tmp" "conftest.in"
  4124. cp "conftest.in" "conftest.nl"
  4125. $as_echo 'EGREP' >> "conftest.nl"
  4126. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4127. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4128. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4129. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4130. # Best one so far, save it but keep looking for a better one
  4131. ac_cv_path_EGREP="$ac_path_EGREP"
  4132. ac_path_EGREP_max=$ac_count
  4133. fi
  4134. # 10*(2^10) chars as input seems more than enough
  4135. test $ac_count -gt 10 && break
  4136. done
  4137. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4138. esac
  4139. $ac_path_EGREP_found && break 3
  4140. done
  4141. done
  4142. done
  4143. IFS=$as_save_IFS
  4144. if test -z "$ac_cv_path_EGREP"; then
  4145. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4146. fi
  4147. else
  4148. ac_cv_path_EGREP=$EGREP
  4149. fi
  4150. fi
  4151. fi
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4153. $as_echo "$ac_cv_path_EGREP" >&6; }
  4154. EGREP="$ac_cv_path_EGREP"
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4156. $as_echo_n "checking for fgrep... " >&6; }
  4157. if test "${ac_cv_path_FGREP+set}" = set; then :
  4158. $as_echo_n "(cached) " >&6
  4159. else
  4160. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4161. then ac_cv_path_FGREP="$GREP -F"
  4162. else
  4163. if test -z "$FGREP"; then
  4164. ac_path_FGREP_found=false
  4165. # Loop through the user's path and test for each of PROGNAME-LIST
  4166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4167. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4168. do
  4169. IFS=$as_save_IFS
  4170. test -z "$as_dir" && as_dir=.
  4171. for ac_prog in fgrep; do
  4172. for ac_exec_ext in '' $ac_executable_extensions; do
  4173. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4174. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4175. # Check for GNU ac_path_FGREP and select it if it is found.
  4176. # Check for GNU $ac_path_FGREP
  4177. case `"$ac_path_FGREP" --version 2>&1` in
  4178. *GNU*)
  4179. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4180. *)
  4181. ac_count=0
  4182. $as_echo_n 0123456789 >"conftest.in"
  4183. while :
  4184. do
  4185. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4186. mv "conftest.tmp" "conftest.in"
  4187. cp "conftest.in" "conftest.nl"
  4188. $as_echo 'FGREP' >> "conftest.nl"
  4189. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4190. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4191. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4192. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4193. # Best one so far, save it but keep looking for a better one
  4194. ac_cv_path_FGREP="$ac_path_FGREP"
  4195. ac_path_FGREP_max=$ac_count
  4196. fi
  4197. # 10*(2^10) chars as input seems more than enough
  4198. test $ac_count -gt 10 && break
  4199. done
  4200. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4201. esac
  4202. $ac_path_FGREP_found && break 3
  4203. done
  4204. done
  4205. done
  4206. IFS=$as_save_IFS
  4207. if test -z "$ac_cv_path_FGREP"; then
  4208. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4209. fi
  4210. else
  4211. ac_cv_path_FGREP=$FGREP
  4212. fi
  4213. fi
  4214. fi
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4216. $as_echo "$ac_cv_path_FGREP" >&6; }
  4217. FGREP="$ac_cv_path_FGREP"
  4218. test -z "$GREP" && GREP=grep
  4219. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4220. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4221. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4223. $as_echo_n "checking how to print strings... " >&6; }
  4224. # Test print first, because it will be a builtin if present.
  4225. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4226. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4227. ECHO='print -r --'
  4228. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4229. ECHO='printf %s\n'
  4230. else
  4231. # Use this function as a fallback that always works.
  4232. func_fallback_echo ()
  4233. {
  4234. eval 'cat <<_LTECHO_EOF
  4235. $1
  4236. _LTECHO_EOF'
  4237. }
  4238. ECHO='func_fallback_echo'
  4239. fi
  4240. # func_echo_all arg...
  4241. # Invoke $ECHO with all args, space-separated.
  4242. func_echo_all ()
  4243. {
  4244. $ECHO ""
  4245. }
  4246. case "$ECHO" in
  4247. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4248. $as_echo "printf" >&6; } ;;
  4249. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4250. $as_echo "print -r" >&6; } ;;
  4251. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4252. $as_echo "cat" >&6; } ;;
  4253. esac
  4254. # Check whether --with-gnu-ld was given.
  4255. if test "${with_gnu_ld+set}" = set; then :
  4256. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4257. else
  4258. with_gnu_ld=no
  4259. fi
  4260. ac_prog=ld
  4261. if test "$GCC" = yes; then
  4262. # Check if gcc -print-prog-name=ld gives a path.
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4264. $as_echo_n "checking for ld used by $CC... " >&6; }
  4265. case $host in
  4266. *-*-mingw*)
  4267. # gcc leaves a trailing carriage return which upsets mingw
  4268. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4269. *)
  4270. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4271. esac
  4272. case $ac_prog in
  4273. # Accept absolute paths.
  4274. [\\/]* | ?:[\\/]*)
  4275. re_direlt='/[^/][^/]*/\.\./'
  4276. # Canonicalize the pathname of ld
  4277. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4278. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4279. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4280. done
  4281. test -z "$LD" && LD="$ac_prog"
  4282. ;;
  4283. "")
  4284. # If it fails, then pretend we aren't using GCC.
  4285. ac_prog=ld
  4286. ;;
  4287. *)
  4288. # If it is relative, then search for the first ld in PATH.
  4289. with_gnu_ld=unknown
  4290. ;;
  4291. esac
  4292. elif test "$with_gnu_ld" = yes; then
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4294. $as_echo_n "checking for GNU ld... " >&6; }
  4295. else
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4297. $as_echo_n "checking for non-GNU ld... " >&6; }
  4298. fi
  4299. if test "${lt_cv_path_LD+set}" = set; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -z "$LD"; then
  4303. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4304. for ac_dir in $PATH; do
  4305. IFS="$lt_save_ifs"
  4306. test -z "$ac_dir" && ac_dir=.
  4307. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4308. lt_cv_path_LD="$ac_dir/$ac_prog"
  4309. # Check to see if the program is GNU ld. I'd rather use --version,
  4310. # but apparently some variants of GNU ld only accept -v.
  4311. # Break only if it was the GNU/non-GNU ld that we prefer.
  4312. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4313. *GNU* | *'with BFD'*)
  4314. test "$with_gnu_ld" != no && break
  4315. ;;
  4316. *)
  4317. test "$with_gnu_ld" != yes && break
  4318. ;;
  4319. esac
  4320. fi
  4321. done
  4322. IFS="$lt_save_ifs"
  4323. else
  4324. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4325. fi
  4326. fi
  4327. LD="$lt_cv_path_LD"
  4328. if test -n "$LD"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4330. $as_echo "$LD" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. $as_echo "no" >&6; }
  4334. fi
  4335. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4337. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4338. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4342. case `$LD -v 2>&1 </dev/null` in
  4343. *GNU* | *'with BFD'*)
  4344. lt_cv_prog_gnu_ld=yes
  4345. ;;
  4346. *)
  4347. lt_cv_prog_gnu_ld=no
  4348. ;;
  4349. esac
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4352. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4353. with_gnu_ld=$lt_cv_prog_gnu_ld
  4354. if test -n "$ac_tool_prefix"; then
  4355. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4356. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4358. $as_echo_n "checking for $ac_word... " >&6; }
  4359. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. if test -n "$RANLIB"; then
  4363. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4364. else
  4365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4366. for as_dir in $PATH
  4367. do
  4368. IFS=$as_save_IFS
  4369. test -z "$as_dir" && as_dir=.
  4370. for ac_exec_ext in '' $ac_executable_extensions; do
  4371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4372. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4374. break 2
  4375. fi
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. fi
  4381. RANLIB=$ac_cv_prog_RANLIB
  4382. if test -n "$RANLIB"; then
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4384. $as_echo "$RANLIB" >&6; }
  4385. else
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4387. $as_echo "no" >&6; }
  4388. fi
  4389. fi
  4390. if test -z "$ac_cv_prog_RANLIB"; then
  4391. ac_ct_RANLIB=$RANLIB
  4392. # Extract the first word of "ranlib", so it can be a program name with args.
  4393. set dummy ranlib; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$ac_ct_RANLIB"; then
  4400. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4419. if test -n "$ac_ct_RANLIB"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4421. $as_echo "$ac_ct_RANLIB" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. if test "x$ac_ct_RANLIB" = x; then
  4427. RANLIB=":"
  4428. else
  4429. case $cross_compiling:$ac_tool_warned in
  4430. yes:)
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4433. ac_tool_warned=yes ;;
  4434. esac
  4435. RANLIB=$ac_ct_RANLIB
  4436. fi
  4437. else
  4438. RANLIB="$ac_cv_prog_RANLIB"
  4439. fi
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$OBJCOPY"; then
  4449. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4458. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  4459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. OBJCOPY=$ac_cv_prog_OBJCOPY
  4468. if test -n "$OBJCOPY"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4470. $as_echo "$OBJCOPY" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_OBJCOPY"; then
  4477. ac_ct_OBJCOPY=$OBJCOPY
  4478. # Extract the first word of "objcopy", so it can be a program name with args.
  4479. set dummy objcopy; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_OBJCOPY"; then
  4486. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  4505. if test -n "$ac_ct_OBJCOPY"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  4507. $as_echo "$ac_ct_OBJCOPY" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_OBJCOPY" = x; then
  4513. OBJCOPY="missing-objcopy"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. OBJCOPY=$ac_ct_OBJCOPY
  4522. fi
  4523. else
  4524. OBJCOPY="$ac_cv_prog_OBJCOPY"
  4525. fi
  4526. enable_dlopen=yes
  4527. case `pwd` in
  4528. *\ * | *\ *)
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4530. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4531. esac
  4532. macro_version='2.2.7a'
  4533. macro_revision='1.3134'
  4534. ltmain="$ac_aux_dir/ltmain.sh"
  4535. # Backslashify metacharacters that are still active within
  4536. # double-quoted strings.
  4537. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4538. # Same as above, but do not quote variable references.
  4539. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4540. # Sed substitution to delay expansion of an escaped shell variable in a
  4541. # double_quote_subst'ed string.
  4542. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4543. # Sed substitution to delay expansion of an escaped single quote.
  4544. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4545. # Sed substitution to avoid accidental globbing in evaled expressions
  4546. no_glob_subst='s/\*/\\\*/g'
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4548. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4549. if test "${lt_cv_path_NM+set}" = set; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. if test -n "$NM"; then
  4553. # Let the user override the test.
  4554. lt_cv_path_NM="$NM"
  4555. else
  4556. lt_nm_to_check="${ac_tool_prefix}nm"
  4557. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4558. lt_nm_to_check="$lt_nm_to_check nm"
  4559. fi
  4560. for lt_tmp_nm in $lt_nm_to_check; do
  4561. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4562. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4563. IFS="$lt_save_ifs"
  4564. test -z "$ac_dir" && ac_dir=.
  4565. tmp_nm="$ac_dir/$lt_tmp_nm"
  4566. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4567. # Check to see if the nm accepts a BSD-compat flag.
  4568. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4569. # nm: unknown option "B" ignored
  4570. # Tru64's nm complains that /dev/null is an invalid object file
  4571. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4572. */dev/null* | *'Invalid file or object type'*)
  4573. lt_cv_path_NM="$tmp_nm -B"
  4574. break
  4575. ;;
  4576. *)
  4577. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4578. */dev/null*)
  4579. lt_cv_path_NM="$tmp_nm -p"
  4580. break
  4581. ;;
  4582. *)
  4583. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4584. continue # so that we can try to find one that supports BSD flags
  4585. ;;
  4586. esac
  4587. ;;
  4588. esac
  4589. fi
  4590. done
  4591. IFS="$lt_save_ifs"
  4592. done
  4593. : ${lt_cv_path_NM=no}
  4594. fi
  4595. fi
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4597. $as_echo "$lt_cv_path_NM" >&6; }
  4598. if test "$lt_cv_path_NM" != "no"; then
  4599. NM="$lt_cv_path_NM"
  4600. else
  4601. # Didn't find any BSD compatible name lister, look for dumpbin.
  4602. if test -n "$DUMPBIN"; then :
  4603. # Let the user override the test.
  4604. else
  4605. if test -n "$ac_tool_prefix"; then
  4606. for ac_prog in dumpbin "link -dump"
  4607. do
  4608. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4609. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4611. $as_echo_n "checking for $ac_word... " >&6; }
  4612. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4613. $as_echo_n "(cached) " >&6
  4614. else
  4615. if test -n "$DUMPBIN"; then
  4616. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4617. else
  4618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4619. for as_dir in $PATH
  4620. do
  4621. IFS=$as_save_IFS
  4622. test -z "$as_dir" && as_dir=.
  4623. for ac_exec_ext in '' $ac_executable_extensions; do
  4624. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4625. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4627. break 2
  4628. fi
  4629. done
  4630. done
  4631. IFS=$as_save_IFS
  4632. fi
  4633. fi
  4634. DUMPBIN=$ac_cv_prog_DUMPBIN
  4635. if test -n "$DUMPBIN"; then
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4637. $as_echo "$DUMPBIN" >&6; }
  4638. else
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4640. $as_echo "no" >&6; }
  4641. fi
  4642. test -n "$DUMPBIN" && break
  4643. done
  4644. fi
  4645. if test -z "$DUMPBIN"; then
  4646. ac_ct_DUMPBIN=$DUMPBIN
  4647. for ac_prog in dumpbin "link -dump"
  4648. do
  4649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4650. set dummy $ac_prog; ac_word=$2
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4652. $as_echo_n "checking for $ac_word... " >&6; }
  4653. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. if test -n "$ac_ct_DUMPBIN"; then
  4657. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4658. else
  4659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4660. for as_dir in $PATH
  4661. do
  4662. IFS=$as_save_IFS
  4663. test -z "$as_dir" && as_dir=.
  4664. for ac_exec_ext in '' $ac_executable_extensions; do
  4665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4666. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4668. break 2
  4669. fi
  4670. done
  4671. done
  4672. IFS=$as_save_IFS
  4673. fi
  4674. fi
  4675. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4676. if test -n "$ac_ct_DUMPBIN"; then
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4678. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4679. else
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4681. $as_echo "no" >&6; }
  4682. fi
  4683. test -n "$ac_ct_DUMPBIN" && break
  4684. done
  4685. if test "x$ac_ct_DUMPBIN" = x; then
  4686. DUMPBIN=":"
  4687. else
  4688. case $cross_compiling:$ac_tool_warned in
  4689. yes:)
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4692. ac_tool_warned=yes ;;
  4693. esac
  4694. DUMPBIN=$ac_ct_DUMPBIN
  4695. fi
  4696. fi
  4697. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4698. *COFF*)
  4699. DUMPBIN="$DUMPBIN -symbols"
  4700. ;;
  4701. *)
  4702. DUMPBIN=:
  4703. ;;
  4704. esac
  4705. fi
  4706. if test "$DUMPBIN" != ":"; then
  4707. NM="$DUMPBIN"
  4708. fi
  4709. fi
  4710. test -z "$NM" && NM=nm
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4712. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4713. if test "${lt_cv_nm_interface+set}" = set; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. lt_cv_nm_interface="BSD nm"
  4717. echo "int some_variable = 0;" > conftest.$ac_ext
  4718. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4719. (eval "$ac_compile" 2>conftest.err)
  4720. cat conftest.err >&5
  4721. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4722. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4723. cat conftest.err >&5
  4724. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4725. cat conftest.out >&5
  4726. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4727. lt_cv_nm_interface="MS dumpbin"
  4728. fi
  4729. rm -f conftest*
  4730. fi
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4732. $as_echo "$lt_cv_nm_interface" >&6; }
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4734. $as_echo_n "checking whether ln -s works... " >&6; }
  4735. LN_S=$as_ln_s
  4736. if test "$LN_S" = "ln -s"; then
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4738. $as_echo "yes" >&6; }
  4739. else
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4741. $as_echo "no, using $LN_S" >&6; }
  4742. fi
  4743. # find the maximum length of command line arguments
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4745. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4746. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. i=0
  4750. teststring="ABCD"
  4751. case $build_os in
  4752. msdosdjgpp*)
  4753. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4754. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4755. # during glob expansion). Even if it were fixed, the result of this
  4756. # check would be larger than it should be.
  4757. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4758. ;;
  4759. gnu*)
  4760. # Under GNU Hurd, this test is not required because there is
  4761. # no limit to the length of command line arguments.
  4762. # Libtool will interpret -1 as no limit whatsoever
  4763. lt_cv_sys_max_cmd_len=-1;
  4764. ;;
  4765. cygwin* | mingw* | cegcc*)
  4766. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4767. # about 5 minutes as the teststring grows exponentially.
  4768. # Worse, since 9x/ME are not pre-emptively multitasking,
  4769. # you end up with a "frozen" computer, even though with patience
  4770. # the test eventually succeeds (with a max line length of 256k).
  4771. # Instead, let's just punt: use the minimum linelength reported by
  4772. # all of the supported platforms: 8192 (on NT/2K/XP).
  4773. lt_cv_sys_max_cmd_len=8192;
  4774. ;;
  4775. mint*)
  4776. # On MiNT this can take a long time and run out of memory.
  4777. lt_cv_sys_max_cmd_len=8192;
  4778. ;;
  4779. amigaos*)
  4780. # On AmigaOS with pdksh, this test takes hours, literally.
  4781. # So we just punt and use a minimum line length of 8192.
  4782. lt_cv_sys_max_cmd_len=8192;
  4783. ;;
  4784. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4785. # This has been around since 386BSD, at least. Likely further.
  4786. if test -x /sbin/sysctl; then
  4787. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4788. elif test -x /usr/sbin/sysctl; then
  4789. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4790. else
  4791. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4792. fi
  4793. # And add a safety zone
  4794. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4795. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4796. ;;
  4797. interix*)
  4798. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4799. lt_cv_sys_max_cmd_len=196608
  4800. ;;
  4801. osf*)
  4802. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4803. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4804. # nice to cause kernel panics so lets avoid the loop below.
  4805. # First set a reasonable default.
  4806. lt_cv_sys_max_cmd_len=16384
  4807. #
  4808. if test -x /sbin/sysconfig; then
  4809. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4810. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4811. esac
  4812. fi
  4813. ;;
  4814. sco3.2v5*)
  4815. lt_cv_sys_max_cmd_len=102400
  4816. ;;
  4817. sysv5* | sco5v6* | sysv4.2uw2*)
  4818. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4819. if test -n "$kargmax"; then
  4820. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4821. else
  4822. lt_cv_sys_max_cmd_len=32768
  4823. fi
  4824. ;;
  4825. *)
  4826. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4827. if test -n "$lt_cv_sys_max_cmd_len"; then
  4828. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4829. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4830. else
  4831. # Make teststring a little bigger before we do anything with it.
  4832. # a 1K string should be a reasonable start.
  4833. for i in 1 2 3 4 5 6 7 8 ; do
  4834. teststring=$teststring$teststring
  4835. done
  4836. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4837. # If test is not a shell built-in, we'll probably end up computing a
  4838. # maximum length that is only half of the actual maximum length, but
  4839. # we can't tell.
  4840. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4841. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4842. test $i != 17 # 1/2 MB should be enough
  4843. do
  4844. i=`expr $i + 1`
  4845. teststring=$teststring$teststring
  4846. done
  4847. # Only check the string length outside the loop.
  4848. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4849. teststring=
  4850. # Add a significant safety factor because C++ compilers can tack on
  4851. # massive amounts of additional arguments before passing them to the
  4852. # linker. It appears as though 1/2 is a usable value.
  4853. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4854. fi
  4855. ;;
  4856. esac
  4857. fi
  4858. if test -n $lt_cv_sys_max_cmd_len ; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4860. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4863. $as_echo "none" >&6; }
  4864. fi
  4865. max_cmd_len=$lt_cv_sys_max_cmd_len
  4866. : ${CP="cp -f"}
  4867. : ${MV="mv -f"}
  4868. : ${RM="rm -f"}
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4870. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4871. # Try some XSI features
  4872. xsi_shell=no
  4873. ( _lt_dummy="a/b/c"
  4874. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4875. = c,a/b,, \
  4876. && eval 'test $(( 1 + 1 )) -eq 2 \
  4877. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4878. && xsi_shell=yes
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4880. $as_echo "$xsi_shell" >&6; }
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4882. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4883. lt_shell_append=no
  4884. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4885. >/dev/null 2>&1 \
  4886. && lt_shell_append=yes
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4888. $as_echo "$lt_shell_append" >&6; }
  4889. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4890. lt_unset=unset
  4891. else
  4892. lt_unset=false
  4893. fi
  4894. # test EBCDIC or ASCII
  4895. case `echo X|tr X '\101'` in
  4896. A) # ASCII based system
  4897. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4898. lt_SP2NL='tr \040 \012'
  4899. lt_NL2SP='tr \015\012 \040\040'
  4900. ;;
  4901. *) # EBCDIC based system
  4902. lt_SP2NL='tr \100 \n'
  4903. lt_NL2SP='tr \r\n \100\100'
  4904. ;;
  4905. esac
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4907. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4908. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. lt_cv_ld_reload_flag='-r'
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4914. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4915. reload_flag=$lt_cv_ld_reload_flag
  4916. case $reload_flag in
  4917. "" | " "*) ;;
  4918. *) reload_flag=" $reload_flag" ;;
  4919. esac
  4920. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4921. case $host_os in
  4922. darwin*)
  4923. if test "$GCC" = yes; then
  4924. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4925. else
  4926. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4927. fi
  4928. ;;
  4929. esac
  4930. if test -n "$ac_tool_prefix"; then
  4931. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4932. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4934. $as_echo_n "checking for $ac_word... " >&6; }
  4935. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4936. $as_echo_n "(cached) " >&6
  4937. else
  4938. if test -n "$OBJDUMP"; then
  4939. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4940. else
  4941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4942. for as_dir in $PATH
  4943. do
  4944. IFS=$as_save_IFS
  4945. test -z "$as_dir" && as_dir=.
  4946. for ac_exec_ext in '' $ac_executable_extensions; do
  4947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4948. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4950. break 2
  4951. fi
  4952. done
  4953. done
  4954. IFS=$as_save_IFS
  4955. fi
  4956. fi
  4957. OBJDUMP=$ac_cv_prog_OBJDUMP
  4958. if test -n "$OBJDUMP"; then
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4960. $as_echo "$OBJDUMP" >&6; }
  4961. else
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4963. $as_echo "no" >&6; }
  4964. fi
  4965. fi
  4966. if test -z "$ac_cv_prog_OBJDUMP"; then
  4967. ac_ct_OBJDUMP=$OBJDUMP
  4968. # Extract the first word of "objdump", so it can be a program name with args.
  4969. set dummy objdump; ac_word=$2
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4971. $as_echo_n "checking for $ac_word... " >&6; }
  4972. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4973. $as_echo_n "(cached) " >&6
  4974. else
  4975. if test -n "$ac_ct_OBJDUMP"; then
  4976. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4977. else
  4978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4979. for as_dir in $PATH
  4980. do
  4981. IFS=$as_save_IFS
  4982. test -z "$as_dir" && as_dir=.
  4983. for ac_exec_ext in '' $ac_executable_extensions; do
  4984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4985. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4987. break 2
  4988. fi
  4989. done
  4990. done
  4991. IFS=$as_save_IFS
  4992. fi
  4993. fi
  4994. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4995. if test -n "$ac_ct_OBJDUMP"; then
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4997. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4998. else
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5000. $as_echo "no" >&6; }
  5001. fi
  5002. if test "x$ac_ct_OBJDUMP" = x; then
  5003. OBJDUMP="false"
  5004. else
  5005. case $cross_compiling:$ac_tool_warned in
  5006. yes:)
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5009. ac_tool_warned=yes ;;
  5010. esac
  5011. OBJDUMP=$ac_ct_OBJDUMP
  5012. fi
  5013. else
  5014. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5015. fi
  5016. test -z "$OBJDUMP" && OBJDUMP=objdump
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5018. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5019. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5023. lt_cv_file_magic_test_file=
  5024. lt_cv_deplibs_check_method='unknown'
  5025. # Need to set the preceding variable on all platforms that support
  5026. # interlibrary dependencies.
  5027. # 'none' -- dependencies not supported.
  5028. # `unknown' -- same as none, but documents that we really don't know.
  5029. # 'pass_all' -- all dependencies passed with no checks.
  5030. # 'test_compile' -- check by making test program.
  5031. # 'file_magic [[regex]]' -- check by looking for files in library path
  5032. # which responds to the $file_magic_cmd with a given extended regex.
  5033. # If you have `file' or equivalent on your system and you're not sure
  5034. # whether `pass_all' will *always* work, you probably want this one.
  5035. case $host_os in
  5036. aix[4-9]*)
  5037. lt_cv_deplibs_check_method=pass_all
  5038. ;;
  5039. beos*)
  5040. lt_cv_deplibs_check_method=pass_all
  5041. ;;
  5042. bsdi[45]*)
  5043. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5044. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5045. lt_cv_file_magic_test_file=/shlib/libc.so
  5046. ;;
  5047. cygwin*)
  5048. # func_win32_libid is a shell function defined in ltmain.sh
  5049. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5050. lt_cv_file_magic_cmd='func_win32_libid'
  5051. ;;
  5052. mingw* | pw32*)
  5053. # Base MSYS/MinGW do not provide the 'file' command needed by
  5054. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5055. # unless we find 'file', for example because we are cross-compiling.
  5056. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5057. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5058. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5059. lt_cv_file_magic_cmd='func_win32_libid'
  5060. else
  5061. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5062. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5063. fi
  5064. ;;
  5065. cegcc*)
  5066. # use the weaker test based on 'objdump'. See mingw*.
  5067. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5068. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5069. ;;
  5070. darwin* | rhapsody*)
  5071. lt_cv_deplibs_check_method=pass_all
  5072. ;;
  5073. freebsd* | dragonfly*)
  5074. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5075. case $host_cpu in
  5076. i*86 )
  5077. # Not sure whether the presence of OpenBSD here was a mistake.
  5078. # Let's accept both of them until this is cleared up.
  5079. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5080. lt_cv_file_magic_cmd=/usr/bin/file
  5081. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5082. ;;
  5083. esac
  5084. else
  5085. lt_cv_deplibs_check_method=pass_all
  5086. fi
  5087. ;;
  5088. gnu*)
  5089. lt_cv_deplibs_check_method=pass_all
  5090. ;;
  5091. haiku*)
  5092. lt_cv_deplibs_check_method=pass_all
  5093. ;;
  5094. hpux10.20* | hpux11*)
  5095. lt_cv_file_magic_cmd=/usr/bin/file
  5096. case $host_cpu in
  5097. ia64*)
  5098. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5099. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5100. ;;
  5101. hppa*64*)
  5102. 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]'
  5103. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5104. ;;
  5105. *)
  5106. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5107. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5108. ;;
  5109. esac
  5110. ;;
  5111. interix[3-9]*)
  5112. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5113. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5114. ;;
  5115. irix5* | irix6* | nonstopux*)
  5116. case $LD in
  5117. *-32|*"-32 ") libmagic=32-bit;;
  5118. *-n32|*"-n32 ") libmagic=N32;;
  5119. *-64|*"-64 ") libmagic=64-bit;;
  5120. *) libmagic=never-match;;
  5121. esac
  5122. lt_cv_deplibs_check_method=pass_all
  5123. ;;
  5124. # This must be Linux ELF.
  5125. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5126. lt_cv_deplibs_check_method=pass_all
  5127. ;;
  5128. netbsd*)
  5129. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5130. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5131. else
  5132. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5133. fi
  5134. ;;
  5135. newos6*)
  5136. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5137. lt_cv_file_magic_cmd=/usr/bin/file
  5138. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5139. ;;
  5140. *nto* | *qnx*)
  5141. lt_cv_deplibs_check_method=pass_all
  5142. ;;
  5143. openbsd*)
  5144. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5145. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5146. else
  5147. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5148. fi
  5149. ;;
  5150. osf3* | osf4* | osf5*)
  5151. lt_cv_deplibs_check_method=pass_all
  5152. ;;
  5153. rdos*)
  5154. lt_cv_deplibs_check_method=pass_all
  5155. ;;
  5156. solaris*)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. sysv4 | sysv4.3*)
  5163. case $host_vendor in
  5164. motorola)
  5165. 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]'
  5166. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5167. ;;
  5168. ncr)
  5169. lt_cv_deplibs_check_method=pass_all
  5170. ;;
  5171. sequent)
  5172. lt_cv_file_magic_cmd='/bin/file'
  5173. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5174. ;;
  5175. sni)
  5176. lt_cv_file_magic_cmd='/bin/file'
  5177. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5178. lt_cv_file_magic_test_file=/lib/libc.so
  5179. ;;
  5180. siemens)
  5181. lt_cv_deplibs_check_method=pass_all
  5182. ;;
  5183. pc)
  5184. lt_cv_deplibs_check_method=pass_all
  5185. ;;
  5186. esac
  5187. ;;
  5188. tpf*)
  5189. lt_cv_deplibs_check_method=pass_all
  5190. ;;
  5191. esac
  5192. fi
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5194. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5195. file_magic_cmd=$lt_cv_file_magic_cmd
  5196. deplibs_check_method=$lt_cv_deplibs_check_method
  5197. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5198. if test -n "$ac_tool_prefix"; then
  5199. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5200. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5202. $as_echo_n "checking for $ac_word... " >&6; }
  5203. if test "${ac_cv_prog_AR+set}" = set; then :
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. if test -n "$AR"; then
  5207. ac_cv_prog_AR="$AR" # Let the user override the test.
  5208. else
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH
  5211. do
  5212. IFS=$as_save_IFS
  5213. test -z "$as_dir" && as_dir=.
  5214. for ac_exec_ext in '' $ac_executable_extensions; do
  5215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5216. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5218. break 2
  5219. fi
  5220. done
  5221. done
  5222. IFS=$as_save_IFS
  5223. fi
  5224. fi
  5225. AR=$ac_cv_prog_AR
  5226. if test -n "$AR"; then
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5228. $as_echo "$AR" >&6; }
  5229. else
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5231. $as_echo "no" >&6; }
  5232. fi
  5233. fi
  5234. if test -z "$ac_cv_prog_AR"; then
  5235. ac_ct_AR=$AR
  5236. # Extract the first word of "ar", so it can be a program name with args.
  5237. set dummy ar; ac_word=$2
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5239. $as_echo_n "checking for $ac_word... " >&6; }
  5240. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5241. $as_echo_n "(cached) " >&6
  5242. else
  5243. if test -n "$ac_ct_AR"; then
  5244. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5245. else
  5246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5247. for as_dir in $PATH
  5248. do
  5249. IFS=$as_save_IFS
  5250. test -z "$as_dir" && as_dir=.
  5251. for ac_exec_ext in '' $ac_executable_extensions; do
  5252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5253. ac_cv_prog_ac_ct_AR="ar"
  5254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5255. break 2
  5256. fi
  5257. done
  5258. done
  5259. IFS=$as_save_IFS
  5260. fi
  5261. fi
  5262. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5263. if test -n "$ac_ct_AR"; then
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5265. $as_echo "$ac_ct_AR" >&6; }
  5266. else
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5268. $as_echo "no" >&6; }
  5269. fi
  5270. if test "x$ac_ct_AR" = x; then
  5271. AR="false"
  5272. else
  5273. case $cross_compiling:$ac_tool_warned in
  5274. yes:)
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5277. ac_tool_warned=yes ;;
  5278. esac
  5279. AR=$ac_ct_AR
  5280. fi
  5281. else
  5282. AR="$ac_cv_prog_AR"
  5283. fi
  5284. test -z "$AR" && AR=ar
  5285. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5286. if test -n "$ac_tool_prefix"; then
  5287. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5288. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5290. $as_echo_n "checking for $ac_word... " >&6; }
  5291. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. if test -n "$STRIP"; then
  5295. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5296. else
  5297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5298. for as_dir in $PATH
  5299. do
  5300. IFS=$as_save_IFS
  5301. test -z "$as_dir" && as_dir=.
  5302. for ac_exec_ext in '' $ac_executable_extensions; do
  5303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5304. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5306. break 2
  5307. fi
  5308. done
  5309. done
  5310. IFS=$as_save_IFS
  5311. fi
  5312. fi
  5313. STRIP=$ac_cv_prog_STRIP
  5314. if test -n "$STRIP"; then
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5316. $as_echo "$STRIP" >&6; }
  5317. else
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5319. $as_echo "no" >&6; }
  5320. fi
  5321. fi
  5322. if test -z "$ac_cv_prog_STRIP"; then
  5323. ac_ct_STRIP=$STRIP
  5324. # Extract the first word of "strip", so it can be a program name with args.
  5325. set dummy strip; ac_word=$2
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5327. $as_echo_n "checking for $ac_word... " >&6; }
  5328. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5329. $as_echo_n "(cached) " >&6
  5330. else
  5331. if test -n "$ac_ct_STRIP"; then
  5332. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5333. else
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_exec_ext in '' $ac_executable_extensions; do
  5340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5341. ac_cv_prog_ac_ct_STRIP="strip"
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5343. break 2
  5344. fi
  5345. done
  5346. done
  5347. IFS=$as_save_IFS
  5348. fi
  5349. fi
  5350. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5351. if test -n "$ac_ct_STRIP"; then
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5353. $as_echo "$ac_ct_STRIP" >&6; }
  5354. else
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5356. $as_echo "no" >&6; }
  5357. fi
  5358. if test "x$ac_ct_STRIP" = x; then
  5359. STRIP=":"
  5360. else
  5361. case $cross_compiling:$ac_tool_warned in
  5362. yes:)
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5365. ac_tool_warned=yes ;;
  5366. esac
  5367. STRIP=$ac_ct_STRIP
  5368. fi
  5369. else
  5370. STRIP="$ac_cv_prog_STRIP"
  5371. fi
  5372. test -z "$STRIP" && STRIP=:
  5373. if test -n "$ac_tool_prefix"; then
  5374. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5375. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5377. $as_echo_n "checking for $ac_word... " >&6; }
  5378. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. if test -n "$RANLIB"; then
  5382. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5383. else
  5384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5385. for as_dir in $PATH
  5386. do
  5387. IFS=$as_save_IFS
  5388. test -z "$as_dir" && as_dir=.
  5389. for ac_exec_ext in '' $ac_executable_extensions; do
  5390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5391. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5393. break 2
  5394. fi
  5395. done
  5396. done
  5397. IFS=$as_save_IFS
  5398. fi
  5399. fi
  5400. RANLIB=$ac_cv_prog_RANLIB
  5401. if test -n "$RANLIB"; then
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5403. $as_echo "$RANLIB" >&6; }
  5404. else
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5406. $as_echo "no" >&6; }
  5407. fi
  5408. fi
  5409. if test -z "$ac_cv_prog_RANLIB"; then
  5410. ac_ct_RANLIB=$RANLIB
  5411. # Extract the first word of "ranlib", so it can be a program name with args.
  5412. set dummy ranlib; ac_word=$2
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5414. $as_echo_n "checking for $ac_word... " >&6; }
  5415. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5416. $as_echo_n "(cached) " >&6
  5417. else
  5418. if test -n "$ac_ct_RANLIB"; then
  5419. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5420. else
  5421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5422. for as_dir in $PATH
  5423. do
  5424. IFS=$as_save_IFS
  5425. test -z "$as_dir" && as_dir=.
  5426. for ac_exec_ext in '' $ac_executable_extensions; do
  5427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5428. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5430. break 2
  5431. fi
  5432. done
  5433. done
  5434. IFS=$as_save_IFS
  5435. fi
  5436. fi
  5437. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5438. if test -n "$ac_ct_RANLIB"; then
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5440. $as_echo "$ac_ct_RANLIB" >&6; }
  5441. else
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5443. $as_echo "no" >&6; }
  5444. fi
  5445. if test "x$ac_ct_RANLIB" = x; then
  5446. RANLIB=":"
  5447. else
  5448. case $cross_compiling:$ac_tool_warned in
  5449. yes:)
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5452. ac_tool_warned=yes ;;
  5453. esac
  5454. RANLIB=$ac_ct_RANLIB
  5455. fi
  5456. else
  5457. RANLIB="$ac_cv_prog_RANLIB"
  5458. fi
  5459. test -z "$RANLIB" && RANLIB=:
  5460. # Determine commands to create old-style static archives.
  5461. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5462. old_postinstall_cmds='chmod 644 $oldlib'
  5463. old_postuninstall_cmds=
  5464. if test -n "$RANLIB"; then
  5465. case $host_os in
  5466. openbsd*)
  5467. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5468. ;;
  5469. *)
  5470. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5471. ;;
  5472. esac
  5473. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5474. fi
  5475. case $host_os in
  5476. darwin*)
  5477. lock_old_archive_extraction=yes ;;
  5478. *)
  5479. lock_old_archive_extraction=no ;;
  5480. esac
  5481. # If no C compiler was specified, use CC.
  5482. LTCC=${LTCC-"$CC"}
  5483. # If no C compiler flags were specified, use CFLAGS.
  5484. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5485. # Allow CC to be a program name with arguments.
  5486. compiler=$CC
  5487. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5489. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5490. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. # These are sane defaults that work on at least a few old systems.
  5494. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5495. # Character class describing NM global symbol codes.
  5496. symcode='[BCDEGRST]'
  5497. # Regexp to match symbols that can be accessed directly from C.
  5498. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5499. # Define system-specific variables.
  5500. case $host_os in
  5501. aix*)
  5502. symcode='[BCDT]'
  5503. ;;
  5504. cygwin* | mingw* | pw32* | cegcc*)
  5505. symcode='[ABCDGISTW]'
  5506. ;;
  5507. hpux*)
  5508. if test "$host_cpu" = ia64; then
  5509. symcode='[ABCDEGRST]'
  5510. fi
  5511. ;;
  5512. irix* | nonstopux*)
  5513. symcode='[BCDEGRST]'
  5514. ;;
  5515. osf*)
  5516. symcode='[BCDEGQRST]'
  5517. ;;
  5518. solaris*)
  5519. symcode='[BDRT]'
  5520. ;;
  5521. sco3.2v5*)
  5522. symcode='[DT]'
  5523. ;;
  5524. sysv4.2uw2*)
  5525. symcode='[DT]'
  5526. ;;
  5527. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5528. symcode='[ABDT]'
  5529. ;;
  5530. sysv4)
  5531. symcode='[DFNSTU]'
  5532. ;;
  5533. esac
  5534. # If we're using GNU nm, then use its standard symbol codes.
  5535. case `$NM -V 2>&1` in
  5536. *GNU* | *'with BFD'*)
  5537. symcode='[ABCDGIRSTW]' ;;
  5538. esac
  5539. # Transform an extracted symbol line into a proper C declaration.
  5540. # Some systems (esp. on ia64) link data and code symbols differently,
  5541. # so use this general approach.
  5542. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5543. # Transform an extracted symbol line into symbol name and symbol address
  5544. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5545. 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'"
  5546. # Handle CRLF in mingw tool chain
  5547. opt_cr=
  5548. case $build_os in
  5549. mingw*)
  5550. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5551. ;;
  5552. esac
  5553. # Try without a prefix underscore, then with it.
  5554. for ac_symprfx in "" "_"; do
  5555. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5556. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5557. # Write the raw and C identifiers.
  5558. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5559. # Fake it for dumpbin and say T for any non-static function
  5560. # and D for any global variable.
  5561. # Also find C++ and __fastcall symbols from MSVC++,
  5562. # which start with @ or ?.
  5563. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5564. " {last_section=section; section=\$ 3};"\
  5565. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5566. " \$ 0!~/External *\|/{next};"\
  5567. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5568. " {if(hide[section]) next};"\
  5569. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5570. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5571. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5572. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5573. " ' prfx=^$ac_symprfx"
  5574. else
  5575. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5576. fi
  5577. # Check to see that the pipe works correctly.
  5578. pipe_works=no
  5579. rm -f conftest*
  5580. cat > conftest.$ac_ext <<_LT_EOF
  5581. #ifdef __cplusplus
  5582. extern "C" {
  5583. #endif
  5584. char nm_test_var;
  5585. void nm_test_func(void);
  5586. void nm_test_func(void){}
  5587. #ifdef __cplusplus
  5588. }
  5589. #endif
  5590. int main(){nm_test_var='a';nm_test_func();return(0);}
  5591. _LT_EOF
  5592. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5593. (eval $ac_compile) 2>&5
  5594. ac_status=$?
  5595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5596. test $ac_status = 0; }; then
  5597. # Now try to grab the symbols.
  5598. nlist=conftest.nm
  5599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5600. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5601. ac_status=$?
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5603. test $ac_status = 0; } && test -s "$nlist"; then
  5604. # Try sorting and uniquifying the output.
  5605. if sort "$nlist" | uniq > "$nlist"T; then
  5606. mv -f "$nlist"T "$nlist"
  5607. else
  5608. rm -f "$nlist"T
  5609. fi
  5610. # Make sure that we snagged all the symbols we need.
  5611. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5612. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5613. cat <<_LT_EOF > conftest.$ac_ext
  5614. #ifdef __cplusplus
  5615. extern "C" {
  5616. #endif
  5617. _LT_EOF
  5618. # Now generate the symbol file.
  5619. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5620. cat <<_LT_EOF >> conftest.$ac_ext
  5621. /* The mapping between symbol names and symbols. */
  5622. const struct {
  5623. const char *name;
  5624. void *address;
  5625. }
  5626. lt__PROGRAM__LTX_preloaded_symbols[] =
  5627. {
  5628. { "@PROGRAM@", (void *) 0 },
  5629. _LT_EOF
  5630. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5631. cat <<\_LT_EOF >> conftest.$ac_ext
  5632. {0, (void *) 0}
  5633. };
  5634. /* This works around a problem in FreeBSD linker */
  5635. #ifdef FREEBSD_WORKAROUND
  5636. static const void *lt_preloaded_setup() {
  5637. return lt__PROGRAM__LTX_preloaded_symbols;
  5638. }
  5639. #endif
  5640. #ifdef __cplusplus
  5641. }
  5642. #endif
  5643. _LT_EOF
  5644. # Now try linking the two files.
  5645. mv conftest.$ac_objext conftstm.$ac_objext
  5646. lt_save_LIBS="$LIBS"
  5647. lt_save_CFLAGS="$CFLAGS"
  5648. LIBS="conftstm.$ac_objext"
  5649. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5650. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5651. (eval $ac_link) 2>&5
  5652. ac_status=$?
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5654. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5655. pipe_works=yes
  5656. fi
  5657. LIBS="$lt_save_LIBS"
  5658. CFLAGS="$lt_save_CFLAGS"
  5659. else
  5660. echo "cannot find nm_test_func in $nlist" >&5
  5661. fi
  5662. else
  5663. echo "cannot find nm_test_var in $nlist" >&5
  5664. fi
  5665. else
  5666. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5667. fi
  5668. else
  5669. echo "$progname: failed program was:" >&5
  5670. cat conftest.$ac_ext >&5
  5671. fi
  5672. rm -rf conftest* conftst*
  5673. # Do not use the global_symbol_pipe unless it works.
  5674. if test "$pipe_works" = yes; then
  5675. break
  5676. else
  5677. lt_cv_sys_global_symbol_pipe=
  5678. fi
  5679. done
  5680. fi
  5681. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5682. lt_cv_sys_global_symbol_to_cdecl=
  5683. fi
  5684. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5686. $as_echo "failed" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5689. $as_echo "ok" >&6; }
  5690. fi
  5691. # Check whether --enable-libtool-lock was given.
  5692. if test "${enable_libtool_lock+set}" = set; then :
  5693. enableval=$enable_libtool_lock;
  5694. fi
  5695. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5696. # Some flags need to be propagated to the compiler or linker for good
  5697. # libtool support.
  5698. case $host in
  5699. ia64-*-hpux*)
  5700. # Find out which ABI we are using.
  5701. echo 'int i;' > conftest.$ac_ext
  5702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5703. (eval $ac_compile) 2>&5
  5704. ac_status=$?
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5706. test $ac_status = 0; }; then
  5707. case `/usr/bin/file conftest.$ac_objext` in
  5708. *ELF-32*)
  5709. HPUX_IA64_MODE="32"
  5710. ;;
  5711. *ELF-64*)
  5712. HPUX_IA64_MODE="64"
  5713. ;;
  5714. esac
  5715. fi
  5716. rm -rf conftest*
  5717. ;;
  5718. *-*-irix6*)
  5719. # Find out which ABI we are using.
  5720. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5722. (eval $ac_compile) 2>&5
  5723. ac_status=$?
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5725. test $ac_status = 0; }; then
  5726. if test "$lt_cv_prog_gnu_ld" = yes; then
  5727. case `/usr/bin/file conftest.$ac_objext` in
  5728. *32-bit*)
  5729. LD="${LD-ld} -melf32bsmip"
  5730. ;;
  5731. *N32*)
  5732. LD="${LD-ld} -melf32bmipn32"
  5733. ;;
  5734. *64-bit*)
  5735. LD="${LD-ld} -melf64bmip"
  5736. ;;
  5737. esac
  5738. else
  5739. case `/usr/bin/file conftest.$ac_objext` in
  5740. *32-bit*)
  5741. LD="${LD-ld} -32"
  5742. ;;
  5743. *N32*)
  5744. LD="${LD-ld} -n32"
  5745. ;;
  5746. *64-bit*)
  5747. LD="${LD-ld} -64"
  5748. ;;
  5749. esac
  5750. fi
  5751. fi
  5752. rm -rf conftest*
  5753. ;;
  5754. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5755. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5756. # Find out which ABI we are using.
  5757. echo 'int i;' > conftest.$ac_ext
  5758. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5759. (eval $ac_compile) 2>&5
  5760. ac_status=$?
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5762. test $ac_status = 0; }; then
  5763. case `/usr/bin/file conftest.o` in
  5764. *32-bit*)
  5765. case $host in
  5766. x86_64-*kfreebsd*-gnu)
  5767. LD="${LD-ld} -m elf_i386_fbsd"
  5768. ;;
  5769. x86_64-*linux*)
  5770. case `/usr/bin/file conftest.o` in
  5771. *x86-64*)
  5772. LD="${LD-ld} -m elf32_x86_64"
  5773. ;;
  5774. *)
  5775. LD="${LD-ld} -m elf_i386"
  5776. ;;
  5777. esac
  5778. ;;
  5779. powerpc64le-*linux*)
  5780. LD="${LD-ld} -m elf32lppclinux"
  5781. ;;
  5782. powerpc64-*linux*)
  5783. LD="${LD-ld} -m elf32ppclinux"
  5784. ;;
  5785. s390x-*linux*)
  5786. LD="${LD-ld} -m elf_s390"
  5787. ;;
  5788. sparc64-*linux*)
  5789. LD="${LD-ld} -m elf32_sparc"
  5790. ;;
  5791. esac
  5792. ;;
  5793. *64-bit*)
  5794. case $host in
  5795. x86_64-*kfreebsd*-gnu)
  5796. LD="${LD-ld} -m elf_x86_64_fbsd"
  5797. ;;
  5798. x86_64-*linux*)
  5799. LD="${LD-ld} -m elf_x86_64"
  5800. ;;
  5801. powerpcle-*linux*)
  5802. LD="${LD-ld} -m elf64lppc"
  5803. ;;
  5804. powerpc-*linux*)
  5805. LD="${LD-ld} -m elf64ppc"
  5806. ;;
  5807. s390*-*linux*|s390*-*tpf*)
  5808. LD="${LD-ld} -m elf64_s390"
  5809. ;;
  5810. sparc*-*linux*)
  5811. LD="${LD-ld} -m elf64_sparc"
  5812. ;;
  5813. esac
  5814. ;;
  5815. esac
  5816. fi
  5817. rm -rf conftest*
  5818. ;;
  5819. *-*-sco3.2v5*)
  5820. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5821. SAVE_CFLAGS="$CFLAGS"
  5822. CFLAGS="$CFLAGS -belf"
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5824. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5825. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. ac_ext=c
  5829. ac_cpp='$CPP $CPPFLAGS'
  5830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5834. /* end confdefs.h. */
  5835. int
  5836. main ()
  5837. {
  5838. ;
  5839. return 0;
  5840. }
  5841. _ACEOF
  5842. if ac_fn_c_try_link "$LINENO"; then :
  5843. lt_cv_cc_needs_belf=yes
  5844. else
  5845. lt_cv_cc_needs_belf=no
  5846. fi
  5847. rm -f core conftest.err conftest.$ac_objext \
  5848. conftest$ac_exeext conftest.$ac_ext
  5849. ac_ext=c
  5850. ac_cpp='$CPP $CPPFLAGS'
  5851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5854. fi
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5856. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5857. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5858. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5859. CFLAGS="$SAVE_CFLAGS"
  5860. fi
  5861. ;;
  5862. sparc*-*solaris*)
  5863. # Find out which ABI we are using.
  5864. echo 'int i;' > conftest.$ac_ext
  5865. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5866. (eval $ac_compile) 2>&5
  5867. ac_status=$?
  5868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5869. test $ac_status = 0; }; then
  5870. case `/usr/bin/file conftest.o` in
  5871. *64-bit*)
  5872. case $lt_cv_prog_gnu_ld in
  5873. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5874. *)
  5875. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5876. LD="${LD-ld} -64"
  5877. fi
  5878. ;;
  5879. esac
  5880. ;;
  5881. esac
  5882. fi
  5883. rm -rf conftest*
  5884. ;;
  5885. esac
  5886. need_locks="$enable_libtool_lock"
  5887. case $host_os in
  5888. rhapsody* | darwin*)
  5889. if test -n "$ac_tool_prefix"; then
  5890. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5891. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5893. $as_echo_n "checking for $ac_word... " >&6; }
  5894. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5895. $as_echo_n "(cached) " >&6
  5896. else
  5897. if test -n "$DSYMUTIL"; then
  5898. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5899. else
  5900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5901. for as_dir in $PATH
  5902. do
  5903. IFS=$as_save_IFS
  5904. test -z "$as_dir" && as_dir=.
  5905. for ac_exec_ext in '' $ac_executable_extensions; do
  5906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5907. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5909. break 2
  5910. fi
  5911. done
  5912. done
  5913. IFS=$as_save_IFS
  5914. fi
  5915. fi
  5916. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5917. if test -n "$DSYMUTIL"; then
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5919. $as_echo "$DSYMUTIL" >&6; }
  5920. else
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5922. $as_echo "no" >&6; }
  5923. fi
  5924. fi
  5925. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5926. ac_ct_DSYMUTIL=$DSYMUTIL
  5927. # Extract the first word of "dsymutil", so it can be a program name with args.
  5928. set dummy dsymutil; ac_word=$2
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5930. $as_echo_n "checking for $ac_word... " >&6; }
  5931. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5932. $as_echo_n "(cached) " >&6
  5933. else
  5934. if test -n "$ac_ct_DSYMUTIL"; then
  5935. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5936. else
  5937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5938. for as_dir in $PATH
  5939. do
  5940. IFS=$as_save_IFS
  5941. test -z "$as_dir" && as_dir=.
  5942. for ac_exec_ext in '' $ac_executable_extensions; do
  5943. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5944. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5946. break 2
  5947. fi
  5948. done
  5949. done
  5950. IFS=$as_save_IFS
  5951. fi
  5952. fi
  5953. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5954. if test -n "$ac_ct_DSYMUTIL"; then
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5956. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5957. else
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5959. $as_echo "no" >&6; }
  5960. fi
  5961. if test "x$ac_ct_DSYMUTIL" = x; then
  5962. DSYMUTIL=":"
  5963. else
  5964. case $cross_compiling:$ac_tool_warned in
  5965. yes:)
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5968. ac_tool_warned=yes ;;
  5969. esac
  5970. DSYMUTIL=$ac_ct_DSYMUTIL
  5971. fi
  5972. else
  5973. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5974. fi
  5975. if test -n "$ac_tool_prefix"; then
  5976. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5977. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5979. $as_echo_n "checking for $ac_word... " >&6; }
  5980. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. if test -n "$NMEDIT"; then
  5984. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5985. else
  5986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5987. for as_dir in $PATH
  5988. do
  5989. IFS=$as_save_IFS
  5990. test -z "$as_dir" && as_dir=.
  5991. for ac_exec_ext in '' $ac_executable_extensions; do
  5992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5993. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5995. break 2
  5996. fi
  5997. done
  5998. done
  5999. IFS=$as_save_IFS
  6000. fi
  6001. fi
  6002. NMEDIT=$ac_cv_prog_NMEDIT
  6003. if test -n "$NMEDIT"; then
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6005. $as_echo "$NMEDIT" >&6; }
  6006. else
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6008. $as_echo "no" >&6; }
  6009. fi
  6010. fi
  6011. if test -z "$ac_cv_prog_NMEDIT"; then
  6012. ac_ct_NMEDIT=$NMEDIT
  6013. # Extract the first word of "nmedit", so it can be a program name with args.
  6014. set dummy nmedit; ac_word=$2
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6016. $as_echo_n "checking for $ac_word... " >&6; }
  6017. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6018. $as_echo_n "(cached) " >&6
  6019. else
  6020. if test -n "$ac_ct_NMEDIT"; then
  6021. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6022. else
  6023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6024. for as_dir in $PATH
  6025. do
  6026. IFS=$as_save_IFS
  6027. test -z "$as_dir" && as_dir=.
  6028. for ac_exec_ext in '' $ac_executable_extensions; do
  6029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6030. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6032. break 2
  6033. fi
  6034. done
  6035. done
  6036. IFS=$as_save_IFS
  6037. fi
  6038. fi
  6039. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6040. if test -n "$ac_ct_NMEDIT"; then
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6042. $as_echo "$ac_ct_NMEDIT" >&6; }
  6043. else
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6045. $as_echo "no" >&6; }
  6046. fi
  6047. if test "x$ac_ct_NMEDIT" = x; then
  6048. NMEDIT=":"
  6049. else
  6050. case $cross_compiling:$ac_tool_warned in
  6051. yes:)
  6052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6053. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6054. ac_tool_warned=yes ;;
  6055. esac
  6056. NMEDIT=$ac_ct_NMEDIT
  6057. fi
  6058. else
  6059. NMEDIT="$ac_cv_prog_NMEDIT"
  6060. fi
  6061. if test -n "$ac_tool_prefix"; then
  6062. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6063. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6065. $as_echo_n "checking for $ac_word... " >&6; }
  6066. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. if test -n "$LIPO"; then
  6070. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6071. else
  6072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6073. for as_dir in $PATH
  6074. do
  6075. IFS=$as_save_IFS
  6076. test -z "$as_dir" && as_dir=.
  6077. for ac_exec_ext in '' $ac_executable_extensions; do
  6078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6079. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6081. break 2
  6082. fi
  6083. done
  6084. done
  6085. IFS=$as_save_IFS
  6086. fi
  6087. fi
  6088. LIPO=$ac_cv_prog_LIPO
  6089. if test -n "$LIPO"; then
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6091. $as_echo "$LIPO" >&6; }
  6092. else
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6094. $as_echo "no" >&6; }
  6095. fi
  6096. fi
  6097. if test -z "$ac_cv_prog_LIPO"; then
  6098. ac_ct_LIPO=$LIPO
  6099. # Extract the first word of "lipo", so it can be a program name with args.
  6100. set dummy lipo; ac_word=$2
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6102. $as_echo_n "checking for $ac_word... " >&6; }
  6103. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. if test -n "$ac_ct_LIPO"; then
  6107. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6108. else
  6109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6110. for as_dir in $PATH
  6111. do
  6112. IFS=$as_save_IFS
  6113. test -z "$as_dir" && as_dir=.
  6114. for ac_exec_ext in '' $ac_executable_extensions; do
  6115. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6116. ac_cv_prog_ac_ct_LIPO="lipo"
  6117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6118. break 2
  6119. fi
  6120. done
  6121. done
  6122. IFS=$as_save_IFS
  6123. fi
  6124. fi
  6125. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6126. if test -n "$ac_ct_LIPO"; then
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6128. $as_echo "$ac_ct_LIPO" >&6; }
  6129. else
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6131. $as_echo "no" >&6; }
  6132. fi
  6133. if test "x$ac_ct_LIPO" = x; then
  6134. LIPO=":"
  6135. else
  6136. case $cross_compiling:$ac_tool_warned in
  6137. yes:)
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6140. ac_tool_warned=yes ;;
  6141. esac
  6142. LIPO=$ac_ct_LIPO
  6143. fi
  6144. else
  6145. LIPO="$ac_cv_prog_LIPO"
  6146. fi
  6147. if test -n "$ac_tool_prefix"; then
  6148. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6149. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6151. $as_echo_n "checking for $ac_word... " >&6; }
  6152. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. if test -n "$OTOOL"; then
  6156. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6157. else
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. test -z "$as_dir" && as_dir=.
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6165. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6167. break 2
  6168. fi
  6169. done
  6170. done
  6171. IFS=$as_save_IFS
  6172. fi
  6173. fi
  6174. OTOOL=$ac_cv_prog_OTOOL
  6175. if test -n "$OTOOL"; then
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6177. $as_echo "$OTOOL" >&6; }
  6178. else
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6180. $as_echo "no" >&6; }
  6181. fi
  6182. fi
  6183. if test -z "$ac_cv_prog_OTOOL"; then
  6184. ac_ct_OTOOL=$OTOOL
  6185. # Extract the first word of "otool", so it can be a program name with args.
  6186. set dummy otool; ac_word=$2
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6188. $as_echo_n "checking for $ac_word... " >&6; }
  6189. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6190. $as_echo_n "(cached) " >&6
  6191. else
  6192. if test -n "$ac_ct_OTOOL"; then
  6193. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6194. else
  6195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6196. for as_dir in $PATH
  6197. do
  6198. IFS=$as_save_IFS
  6199. test -z "$as_dir" && as_dir=.
  6200. for ac_exec_ext in '' $ac_executable_extensions; do
  6201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6202. ac_cv_prog_ac_ct_OTOOL="otool"
  6203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6204. break 2
  6205. fi
  6206. done
  6207. done
  6208. IFS=$as_save_IFS
  6209. fi
  6210. fi
  6211. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6212. if test -n "$ac_ct_OTOOL"; then
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6214. $as_echo "$ac_ct_OTOOL" >&6; }
  6215. else
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6217. $as_echo "no" >&6; }
  6218. fi
  6219. if test "x$ac_ct_OTOOL" = x; then
  6220. OTOOL=":"
  6221. else
  6222. case $cross_compiling:$ac_tool_warned in
  6223. yes:)
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6226. ac_tool_warned=yes ;;
  6227. esac
  6228. OTOOL=$ac_ct_OTOOL
  6229. fi
  6230. else
  6231. OTOOL="$ac_cv_prog_OTOOL"
  6232. fi
  6233. if test -n "$ac_tool_prefix"; then
  6234. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6235. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6237. $as_echo_n "checking for $ac_word... " >&6; }
  6238. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test -n "$OTOOL64"; then
  6242. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6243. else
  6244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6245. for as_dir in $PATH
  6246. do
  6247. IFS=$as_save_IFS
  6248. test -z "$as_dir" && as_dir=.
  6249. for ac_exec_ext in '' $ac_executable_extensions; do
  6250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6251. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6253. break 2
  6254. fi
  6255. done
  6256. done
  6257. IFS=$as_save_IFS
  6258. fi
  6259. fi
  6260. OTOOL64=$ac_cv_prog_OTOOL64
  6261. if test -n "$OTOOL64"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6263. $as_echo "$OTOOL64" >&6; }
  6264. else
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. fi
  6269. if test -z "$ac_cv_prog_OTOOL64"; then
  6270. ac_ct_OTOOL64=$OTOOL64
  6271. # Extract the first word of "otool64", so it can be a program name with args.
  6272. set dummy otool64; ac_word=$2
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6274. $as_echo_n "checking for $ac_word... " >&6; }
  6275. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6276. $as_echo_n "(cached) " >&6
  6277. else
  6278. if test -n "$ac_ct_OTOOL64"; then
  6279. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6280. else
  6281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6282. for as_dir in $PATH
  6283. do
  6284. IFS=$as_save_IFS
  6285. test -z "$as_dir" && as_dir=.
  6286. for ac_exec_ext in '' $ac_executable_extensions; do
  6287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6288. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6290. break 2
  6291. fi
  6292. done
  6293. done
  6294. IFS=$as_save_IFS
  6295. fi
  6296. fi
  6297. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6298. if test -n "$ac_ct_OTOOL64"; then
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6300. $as_echo "$ac_ct_OTOOL64" >&6; }
  6301. else
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6303. $as_echo "no" >&6; }
  6304. fi
  6305. if test "x$ac_ct_OTOOL64" = x; then
  6306. OTOOL64=":"
  6307. else
  6308. case $cross_compiling:$ac_tool_warned in
  6309. yes:)
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6312. ac_tool_warned=yes ;;
  6313. esac
  6314. OTOOL64=$ac_ct_OTOOL64
  6315. fi
  6316. else
  6317. OTOOL64="$ac_cv_prog_OTOOL64"
  6318. fi
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6320. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6321. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. lt_cv_apple_cc_single_mod=no
  6325. if test -z "${LT_MULTI_MODULE}"; then
  6326. # By default we will add the -single_module flag. You can override
  6327. # by either setting the environment variable LT_MULTI_MODULE
  6328. # non-empty at configure time, or by adding -multi_module to the
  6329. # link flags.
  6330. rm -rf libconftest.dylib*
  6331. echo "int foo(void){return 1;}" > conftest.c
  6332. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6333. -dynamiclib -Wl,-single_module conftest.c" >&5
  6334. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6335. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6336. _lt_result=$?
  6337. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6338. lt_cv_apple_cc_single_mod=yes
  6339. else
  6340. cat conftest.err >&5
  6341. fi
  6342. rm -rf libconftest.dylib*
  6343. rm -f conftest.*
  6344. fi
  6345. fi
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6347. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6349. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6350. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. lt_cv_ld_exported_symbols_list=no
  6354. save_LDFLAGS=$LDFLAGS
  6355. echo "_main" > conftest.sym
  6356. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6358. /* end confdefs.h. */
  6359. int
  6360. main ()
  6361. {
  6362. ;
  6363. return 0;
  6364. }
  6365. _ACEOF
  6366. if ac_fn_c_try_link "$LINENO"; then :
  6367. lt_cv_ld_exported_symbols_list=yes
  6368. else
  6369. lt_cv_ld_exported_symbols_list=no
  6370. fi
  6371. rm -f core conftest.err conftest.$ac_objext \
  6372. conftest$ac_exeext conftest.$ac_ext
  6373. LDFLAGS="$save_LDFLAGS"
  6374. fi
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6376. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6378. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6379. if test "${lt_cv_ld_force_load+set}" = set; then :
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. lt_cv_ld_force_load=no
  6383. cat > conftest.c << _LT_EOF
  6384. int forced_loaded() { return 2;}
  6385. _LT_EOF
  6386. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6387. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6388. echo "$AR cru libconftest.a conftest.o" >&5
  6389. $AR cru libconftest.a conftest.o 2>&5
  6390. cat > conftest.c << _LT_EOF
  6391. int main() { return 0;}
  6392. _LT_EOF
  6393. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6394. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6395. _lt_result=$?
  6396. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6397. lt_cv_ld_force_load=yes
  6398. else
  6399. cat conftest.err >&5
  6400. fi
  6401. rm -f conftest.err libconftest.a conftest conftest.c
  6402. rm -rf conftest.dSYM
  6403. fi
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6405. $as_echo "$lt_cv_ld_force_load" >&6; }
  6406. case $host_os in
  6407. rhapsody* | darwin1.[012])
  6408. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6409. darwin1.*)
  6410. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6411. darwin*) # darwin 5.x on
  6412. # if running on 10.5 or later, the deployment target defaults
  6413. # to the OS version, if on x86, and 10.4, the deployment
  6414. # target defaults to 10.4. Don't you love it?
  6415. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6416. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6417. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6418. 10.[012][,.]*)
  6419. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6420. 10.*)
  6421. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6422. esac
  6423. ;;
  6424. esac
  6425. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6426. _lt_dar_single_mod='$single_module'
  6427. fi
  6428. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6429. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6430. else
  6431. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6432. fi
  6433. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6434. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6435. else
  6436. _lt_dsymutil=
  6437. fi
  6438. ;;
  6439. esac
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6446. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6447. # On Suns, sometimes $CPP names a directory.
  6448. if test -n "$CPP" && test -d "$CPP"; then
  6449. CPP=
  6450. fi
  6451. if test -z "$CPP"; then
  6452. if test "${ac_cv_prog_CPP+set}" = set; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. # Double quotes because CPP needs to be expanded
  6456. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6457. do
  6458. ac_preproc_ok=false
  6459. for ac_c_preproc_warn_flag in '' yes
  6460. do
  6461. # Use a header file that comes with gcc, so configuring glibc
  6462. # with a fresh cross-compiler works.
  6463. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6464. # <limits.h> exists even on freestanding compilers.
  6465. # On the NeXT, cc -E runs the code through the compiler's parser,
  6466. # not just through cpp. "Syntax error" is here to catch this case.
  6467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6468. /* end confdefs.h. */
  6469. #ifdef __STDC__
  6470. # include <limits.h>
  6471. #else
  6472. # include <assert.h>
  6473. #endif
  6474. Syntax error
  6475. _ACEOF
  6476. if ac_fn_c_try_cpp "$LINENO"; then :
  6477. else
  6478. # Broken: fails on valid input.
  6479. continue
  6480. fi
  6481. rm -f conftest.err conftest.$ac_ext
  6482. # OK, works on sane cases. Now check whether nonexistent headers
  6483. # can be detected and how.
  6484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6485. /* end confdefs.h. */
  6486. #include <ac_nonexistent.h>
  6487. _ACEOF
  6488. if ac_fn_c_try_cpp "$LINENO"; then :
  6489. # Broken: success on invalid input.
  6490. continue
  6491. else
  6492. # Passes both tests.
  6493. ac_preproc_ok=:
  6494. break
  6495. fi
  6496. rm -f conftest.err conftest.$ac_ext
  6497. done
  6498. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6499. rm -f conftest.err conftest.$ac_ext
  6500. if $ac_preproc_ok; then :
  6501. break
  6502. fi
  6503. done
  6504. ac_cv_prog_CPP=$CPP
  6505. fi
  6506. CPP=$ac_cv_prog_CPP
  6507. else
  6508. ac_cv_prog_CPP=$CPP
  6509. fi
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6511. $as_echo "$CPP" >&6; }
  6512. ac_preproc_ok=false
  6513. for ac_c_preproc_warn_flag in '' yes
  6514. do
  6515. # Use a header file that comes with gcc, so configuring glibc
  6516. # with a fresh cross-compiler works.
  6517. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6518. # <limits.h> exists even on freestanding compilers.
  6519. # On the NeXT, cc -E runs the code through the compiler's parser,
  6520. # not just through cpp. "Syntax error" is here to catch this case.
  6521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6522. /* end confdefs.h. */
  6523. #ifdef __STDC__
  6524. # include <limits.h>
  6525. #else
  6526. # include <assert.h>
  6527. #endif
  6528. Syntax error
  6529. _ACEOF
  6530. if ac_fn_c_try_cpp "$LINENO"; then :
  6531. else
  6532. # Broken: fails on valid input.
  6533. continue
  6534. fi
  6535. rm -f conftest.err conftest.$ac_ext
  6536. # OK, works on sane cases. Now check whether nonexistent headers
  6537. # can be detected and how.
  6538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6539. /* end confdefs.h. */
  6540. #include <ac_nonexistent.h>
  6541. _ACEOF
  6542. if ac_fn_c_try_cpp "$LINENO"; then :
  6543. # Broken: success on invalid input.
  6544. continue
  6545. else
  6546. # Passes both tests.
  6547. ac_preproc_ok=:
  6548. break
  6549. fi
  6550. rm -f conftest.err conftest.$ac_ext
  6551. done
  6552. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6553. rm -f conftest.err conftest.$ac_ext
  6554. if $ac_preproc_ok; then :
  6555. else
  6556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6558. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6559. See \`config.log' for more details." "$LINENO" 5; }
  6560. fi
  6561. ac_ext=c
  6562. ac_cpp='$CPP $CPPFLAGS'
  6563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6567. $as_echo_n "checking for ANSI C header files... " >&6; }
  6568. if test "${ac_cv_header_stdc+set}" = set; then :
  6569. $as_echo_n "(cached) " >&6
  6570. else
  6571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6572. /* end confdefs.h. */
  6573. #include <stdlib.h>
  6574. #include <stdarg.h>
  6575. #include <string.h>
  6576. #include <float.h>
  6577. int
  6578. main ()
  6579. {
  6580. ;
  6581. return 0;
  6582. }
  6583. _ACEOF
  6584. if ac_fn_c_try_compile "$LINENO"; then :
  6585. ac_cv_header_stdc=yes
  6586. else
  6587. ac_cv_header_stdc=no
  6588. fi
  6589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6590. if test $ac_cv_header_stdc = yes; then
  6591. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. #include <string.h>
  6595. _ACEOF
  6596. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6597. $EGREP "memchr" >/dev/null 2>&1; then :
  6598. else
  6599. ac_cv_header_stdc=no
  6600. fi
  6601. rm -f conftest*
  6602. fi
  6603. if test $ac_cv_header_stdc = yes; then
  6604. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6606. /* end confdefs.h. */
  6607. #include <stdlib.h>
  6608. _ACEOF
  6609. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6610. $EGREP "free" >/dev/null 2>&1; then :
  6611. else
  6612. ac_cv_header_stdc=no
  6613. fi
  6614. rm -f conftest*
  6615. fi
  6616. if test $ac_cv_header_stdc = yes; then
  6617. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6618. if test "$cross_compiling" = yes; then :
  6619. :
  6620. else
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. #include <ctype.h>
  6624. #include <stdlib.h>
  6625. #if ((' ' & 0x0FF) == 0x020)
  6626. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6627. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6628. #else
  6629. # define ISLOWER(c) \
  6630. (('a' <= (c) && (c) <= 'i') \
  6631. || ('j' <= (c) && (c) <= 'r') \
  6632. || ('s' <= (c) && (c) <= 'z'))
  6633. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6634. #endif
  6635. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6636. int
  6637. main ()
  6638. {
  6639. int i;
  6640. for (i = 0; i < 256; i++)
  6641. if (XOR (islower (i), ISLOWER (i))
  6642. || toupper (i) != TOUPPER (i))
  6643. return 2;
  6644. return 0;
  6645. }
  6646. _ACEOF
  6647. if ac_fn_c_try_run "$LINENO"; then :
  6648. else
  6649. ac_cv_header_stdc=no
  6650. fi
  6651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6652. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6653. fi
  6654. fi
  6655. fi
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6657. $as_echo "$ac_cv_header_stdc" >&6; }
  6658. if test $ac_cv_header_stdc = yes; then
  6659. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6660. fi
  6661. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6662. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6663. inttypes.h stdint.h unistd.h
  6664. do :
  6665. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6666. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6667. "
  6668. eval as_val=\$$as_ac_Header
  6669. if test "x$as_val" = x""yes; then :
  6670. cat >>confdefs.h <<_ACEOF
  6671. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6672. _ACEOF
  6673. fi
  6674. done
  6675. for ac_header in dlfcn.h
  6676. do :
  6677. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6678. "
  6679. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6680. cat >>confdefs.h <<_ACEOF
  6681. #define HAVE_DLFCN_H 1
  6682. _ACEOF
  6683. fi
  6684. done
  6685. if test -n "$ac_tool_prefix"; then
  6686. # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
  6687. set dummy ${ac_tool_prefix}gccgo; ac_word=$2
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6689. $as_echo_n "checking for $ac_word... " >&6; }
  6690. if test "${ac_cv_prog_GOC+set}" = set; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. if test -n "$GOC"; then
  6694. ac_cv_prog_GOC="$GOC" # Let the user override the test.
  6695. else
  6696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6697. for as_dir in $PATH
  6698. do
  6699. IFS=$as_save_IFS
  6700. test -z "$as_dir" && as_dir=.
  6701. for ac_exec_ext in '' $ac_executable_extensions; do
  6702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6703. ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
  6704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6705. break 2
  6706. fi
  6707. done
  6708. done
  6709. IFS=$as_save_IFS
  6710. fi
  6711. fi
  6712. GOC=$ac_cv_prog_GOC
  6713. if test -n "$GOC"; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
  6715. $as_echo "$GOC" >&6; }
  6716. else
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. fi
  6720. fi
  6721. if test -z "$ac_cv_prog_GOC"; then
  6722. ac_ct_GOC=$GOC
  6723. # Extract the first word of "gccgo", so it can be a program name with args.
  6724. set dummy gccgo; ac_word=$2
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6726. $as_echo_n "checking for $ac_word... " >&6; }
  6727. if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. if test -n "$ac_ct_GOC"; then
  6731. ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
  6732. else
  6733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6734. for as_dir in $PATH
  6735. do
  6736. IFS=$as_save_IFS
  6737. test -z "$as_dir" && as_dir=.
  6738. for ac_exec_ext in '' $ac_executable_extensions; do
  6739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6740. ac_cv_prog_ac_ct_GOC="gccgo"
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6742. break 2
  6743. fi
  6744. done
  6745. done
  6746. IFS=$as_save_IFS
  6747. fi
  6748. fi
  6749. ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
  6750. if test -n "$ac_ct_GOC"; then
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
  6752. $as_echo "$ac_ct_GOC" >&6; }
  6753. else
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6755. $as_echo "no" >&6; }
  6756. fi
  6757. if test "x$ac_ct_GOC" = x; then
  6758. GOC=""
  6759. else
  6760. case $cross_compiling:$ac_tool_warned in
  6761. yes:)
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6764. ac_tool_warned=yes ;;
  6765. esac
  6766. GOC=$ac_ct_GOC
  6767. fi
  6768. else
  6769. GOC="$ac_cv_prog_GOC"
  6770. fi
  6771. # Set options
  6772. enable_win32_dll=no
  6773. # Check whether --enable-shared was given.
  6774. if test "${enable_shared+set}" = set; then :
  6775. enableval=$enable_shared; p=${PACKAGE-default}
  6776. case $enableval in
  6777. yes) enable_shared=yes ;;
  6778. no) enable_shared=no ;;
  6779. *)
  6780. enable_shared=no
  6781. # Look at the argument we got. We use all the common list separators.
  6782. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6783. for pkg in $enableval; do
  6784. IFS="$lt_save_ifs"
  6785. if test "X$pkg" = "X$p"; then
  6786. enable_shared=yes
  6787. fi
  6788. done
  6789. IFS="$lt_save_ifs"
  6790. ;;
  6791. esac
  6792. else
  6793. enable_shared=yes
  6794. fi
  6795. # Check whether --enable-static was given.
  6796. if test "${enable_static+set}" = set; then :
  6797. enableval=$enable_static; p=${PACKAGE-default}
  6798. case $enableval in
  6799. yes) enable_static=yes ;;
  6800. no) enable_static=no ;;
  6801. *)
  6802. enable_static=no
  6803. # Look at the argument we got. We use all the common list separators.
  6804. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6805. for pkg in $enableval; do
  6806. IFS="$lt_save_ifs"
  6807. if test "X$pkg" = "X$p"; then
  6808. enable_static=yes
  6809. fi
  6810. done
  6811. IFS="$lt_save_ifs"
  6812. ;;
  6813. esac
  6814. else
  6815. enable_static=yes
  6816. fi
  6817. # Check whether --with-pic was given.
  6818. if test "${with_pic+set}" = set; then :
  6819. withval=$with_pic; pic_mode="$withval"
  6820. else
  6821. pic_mode=default
  6822. fi
  6823. test -z "$pic_mode" && pic_mode=default
  6824. # Check whether --enable-fast-install was given.
  6825. if test "${enable_fast_install+set}" = set; then :
  6826. enableval=$enable_fast_install; p=${PACKAGE-default}
  6827. case $enableval in
  6828. yes) enable_fast_install=yes ;;
  6829. no) enable_fast_install=no ;;
  6830. *)
  6831. enable_fast_install=no
  6832. # Look at the argument we got. We use all the common list separators.
  6833. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6834. for pkg in $enableval; do
  6835. IFS="$lt_save_ifs"
  6836. if test "X$pkg" = "X$p"; then
  6837. enable_fast_install=yes
  6838. fi
  6839. done
  6840. IFS="$lt_save_ifs"
  6841. ;;
  6842. esac
  6843. else
  6844. enable_fast_install=yes
  6845. fi
  6846. # This can be used to rebuild libtool when needed
  6847. LIBTOOL_DEPS="$ltmain"
  6848. # Always use our own libtool.
  6849. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6850. test -z "$LN_S" && LN_S="ln -s"
  6851. if test -n "${ZSH_VERSION+set}" ; then
  6852. setopt NO_GLOB_SUBST
  6853. fi
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6855. $as_echo_n "checking for objdir... " >&6; }
  6856. if test "${lt_cv_objdir+set}" = set; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. rm -f .libs 2>/dev/null
  6860. mkdir .libs 2>/dev/null
  6861. if test -d .libs; then
  6862. lt_cv_objdir=.libs
  6863. else
  6864. # MS-DOS does not allow filenames that begin with a dot.
  6865. lt_cv_objdir=_libs
  6866. fi
  6867. rmdir .libs 2>/dev/null
  6868. fi
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6870. $as_echo "$lt_cv_objdir" >&6; }
  6871. objdir=$lt_cv_objdir
  6872. cat >>confdefs.h <<_ACEOF
  6873. #define LT_OBJDIR "$lt_cv_objdir/"
  6874. _ACEOF
  6875. case $host_os in
  6876. aix3*)
  6877. # AIX sometimes has problems with the GCC collect2 program. For some
  6878. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6879. # vanish in a puff of smoke.
  6880. if test "X${COLLECT_NAMES+set}" != Xset; then
  6881. COLLECT_NAMES=
  6882. export COLLECT_NAMES
  6883. fi
  6884. ;;
  6885. esac
  6886. # Global variables:
  6887. ofile=libtool
  6888. can_build_shared=yes
  6889. # All known linkers require a `.a' archive for static linking (except MSVC,
  6890. # which needs '.lib').
  6891. libext=a
  6892. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6893. old_CC="$CC"
  6894. old_CFLAGS="$CFLAGS"
  6895. # Set sane defaults for various variables
  6896. test -z "$CC" && CC=cc
  6897. test -z "$LTCC" && LTCC=$CC
  6898. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6899. test -z "$LD" && LD=ld
  6900. test -z "$ac_objext" && ac_objext=o
  6901. for cc_temp in $compiler""; do
  6902. case $cc_temp in
  6903. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6904. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6905. \-*) ;;
  6906. *) break;;
  6907. esac
  6908. done
  6909. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6910. # Only perform the check for file, if the check method requires it
  6911. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6912. case $deplibs_check_method in
  6913. file_magic*)
  6914. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6916. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6917. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6918. $as_echo_n "(cached) " >&6
  6919. else
  6920. case $MAGIC_CMD in
  6921. [\\/*] | ?:[\\/]*)
  6922. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6923. ;;
  6924. *)
  6925. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6926. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6927. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6928. for ac_dir in $ac_dummy; do
  6929. IFS="$lt_save_ifs"
  6930. test -z "$ac_dir" && ac_dir=.
  6931. if test -f $ac_dir/${ac_tool_prefix}file; then
  6932. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6933. if test -n "$file_magic_test_file"; then
  6934. case $deplibs_check_method in
  6935. "file_magic "*)
  6936. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6937. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6938. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6939. $EGREP "$file_magic_regex" > /dev/null; then
  6940. :
  6941. else
  6942. cat <<_LT_EOF 1>&2
  6943. *** Warning: the command libtool uses to detect shared libraries,
  6944. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6945. *** The result is that libtool may fail to recognize shared libraries
  6946. *** as such. This will affect the creation of libtool libraries that
  6947. *** depend on shared libraries, but programs linked with such libtool
  6948. *** libraries will work regardless of this problem. Nevertheless, you
  6949. *** may want to report the problem to your system manager and/or to
  6950. *** bug-libtool@gnu.org
  6951. _LT_EOF
  6952. fi ;;
  6953. esac
  6954. fi
  6955. break
  6956. fi
  6957. done
  6958. IFS="$lt_save_ifs"
  6959. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6960. ;;
  6961. esac
  6962. fi
  6963. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6964. if test -n "$MAGIC_CMD"; then
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6966. $as_echo "$MAGIC_CMD" >&6; }
  6967. else
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6969. $as_echo "no" >&6; }
  6970. fi
  6971. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6972. if test -n "$ac_tool_prefix"; then
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6974. $as_echo_n "checking for file... " >&6; }
  6975. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6976. $as_echo_n "(cached) " >&6
  6977. else
  6978. case $MAGIC_CMD in
  6979. [\\/*] | ?:[\\/]*)
  6980. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6981. ;;
  6982. *)
  6983. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6984. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6985. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6986. for ac_dir in $ac_dummy; do
  6987. IFS="$lt_save_ifs"
  6988. test -z "$ac_dir" && ac_dir=.
  6989. if test -f $ac_dir/file; then
  6990. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6991. if test -n "$file_magic_test_file"; then
  6992. case $deplibs_check_method in
  6993. "file_magic "*)
  6994. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6995. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6996. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6997. $EGREP "$file_magic_regex" > /dev/null; then
  6998. :
  6999. else
  7000. cat <<_LT_EOF 1>&2
  7001. *** Warning: the command libtool uses to detect shared libraries,
  7002. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7003. *** The result is that libtool may fail to recognize shared libraries
  7004. *** as such. This will affect the creation of libtool libraries that
  7005. *** depend on shared libraries, but programs linked with such libtool
  7006. *** libraries will work regardless of this problem. Nevertheless, you
  7007. *** may want to report the problem to your system manager and/or to
  7008. *** bug-libtool@gnu.org
  7009. _LT_EOF
  7010. fi ;;
  7011. esac
  7012. fi
  7013. break
  7014. fi
  7015. done
  7016. IFS="$lt_save_ifs"
  7017. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7018. ;;
  7019. esac
  7020. fi
  7021. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7022. if test -n "$MAGIC_CMD"; then
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7024. $as_echo "$MAGIC_CMD" >&6; }
  7025. else
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7027. $as_echo "no" >&6; }
  7028. fi
  7029. else
  7030. MAGIC_CMD=:
  7031. fi
  7032. fi
  7033. fi
  7034. ;;
  7035. esac
  7036. # Use C for the default configuration in the libtool script
  7037. lt_save_CC="$CC"
  7038. ac_ext=c
  7039. ac_cpp='$CPP $CPPFLAGS'
  7040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7043. # Source file extension for C test sources.
  7044. ac_ext=c
  7045. # Object file extension for compiled C test sources.
  7046. objext=o
  7047. objext=$objext
  7048. # Code to be used in simple compile tests
  7049. lt_simple_compile_test_code="int some_variable = 0;"
  7050. # Code to be used in simple link tests
  7051. lt_simple_link_test_code='int main(){return(0);}'
  7052. # If no C compiler was specified, use CC.
  7053. LTCC=${LTCC-"$CC"}
  7054. # If no C compiler flags were specified, use CFLAGS.
  7055. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7056. # Allow CC to be a program name with arguments.
  7057. compiler=$CC
  7058. # Save the default compiler, since it gets overwritten when the other
  7059. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7060. compiler_DEFAULT=$CC
  7061. # save warnings/boilerplate of simple test code
  7062. ac_outfile=conftest.$ac_objext
  7063. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7064. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7065. _lt_compiler_boilerplate=`cat conftest.err`
  7066. $RM conftest*
  7067. ac_outfile=conftest.$ac_objext
  7068. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7069. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7070. _lt_linker_boilerplate=`cat conftest.err`
  7071. $RM -r conftest*
  7072. ## CAVEAT EMPTOR:
  7073. ## There is no encapsulation within the following macros, do not change
  7074. ## the running order or otherwise move them around unless you know exactly
  7075. ## what you are doing...
  7076. if test -n "$compiler"; then
  7077. lt_prog_compiler_no_builtin_flag=
  7078. if test "$GCC" = yes; then
  7079. case $cc_basename in
  7080. nvcc*)
  7081. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7082. *)
  7083. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7084. esac
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7086. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7087. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7088. $as_echo_n "(cached) " >&6
  7089. else
  7090. lt_cv_prog_compiler_rtti_exceptions=no
  7091. ac_outfile=conftest.$ac_objext
  7092. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7093. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7094. # Insert the option either (1) after the last *FLAGS variable, or
  7095. # (2) before a word containing "conftest.", or (3) at the end.
  7096. # Note that $ac_compile itself does not contain backslashes and begins
  7097. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7098. # The option is referenced via a variable to avoid confusing sed.
  7099. lt_compile=`echo "$ac_compile" | $SED \
  7100. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7101. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7102. -e 's:$: $lt_compiler_flag:'`
  7103. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7104. (eval "$lt_compile" 2>conftest.err)
  7105. ac_status=$?
  7106. cat conftest.err >&5
  7107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. if (exit $ac_status) && test -s "$ac_outfile"; then
  7109. # The compiler can only warn and ignore the option if not recognized
  7110. # So say no if there are warnings other than the usual output.
  7111. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7112. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7113. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7114. lt_cv_prog_compiler_rtti_exceptions=yes
  7115. fi
  7116. fi
  7117. $RM conftest*
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7120. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7121. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7122. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7123. else
  7124. :
  7125. fi
  7126. fi
  7127. lt_prog_compiler_wl=
  7128. lt_prog_compiler_pic=
  7129. lt_prog_compiler_static=
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7131. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7132. if test "$GCC" = yes; then
  7133. lt_prog_compiler_wl='-Wl,'
  7134. lt_prog_compiler_static='-static'
  7135. case $host_os in
  7136. aix*)
  7137. # All AIX code is PIC.
  7138. if test "$host_cpu" = ia64; then
  7139. # AIX 5 now supports IA64 processor
  7140. lt_prog_compiler_static='-Bstatic'
  7141. fi
  7142. lt_prog_compiler_pic='-fPIC'
  7143. ;;
  7144. amigaos*)
  7145. case $host_cpu in
  7146. powerpc)
  7147. # see comment about AmigaOS4 .so support
  7148. lt_prog_compiler_pic='-fPIC'
  7149. ;;
  7150. m68k)
  7151. # FIXME: we need at least 68020 code to build shared libraries, but
  7152. # adding the `-m68020' flag to GCC prevents building anything better,
  7153. # like `-m68040'.
  7154. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7155. ;;
  7156. esac
  7157. ;;
  7158. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7159. # PIC is the default for these OSes.
  7160. ;;
  7161. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7162. # This hack is so that the source file can tell whether it is being
  7163. # built for inclusion in a dll (and should export symbols for example).
  7164. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7165. # (--disable-auto-import) libraries
  7166. lt_prog_compiler_pic='-DDLL_EXPORT'
  7167. ;;
  7168. darwin* | rhapsody*)
  7169. # PIC is the default on this platform
  7170. # Common symbols not allowed in MH_DYLIB files
  7171. lt_prog_compiler_pic='-fno-common'
  7172. ;;
  7173. haiku*)
  7174. # PIC is the default for Haiku.
  7175. # The "-static" flag exists, but is broken.
  7176. lt_prog_compiler_static=
  7177. ;;
  7178. hpux*)
  7179. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7180. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7181. # sets the default TLS model and affects inlining.
  7182. case $host_cpu in
  7183. hppa*64*)
  7184. # +Z the default
  7185. ;;
  7186. *)
  7187. lt_prog_compiler_pic='-fPIC'
  7188. ;;
  7189. esac
  7190. ;;
  7191. interix[3-9]*)
  7192. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7193. # Instead, we relocate shared libraries at runtime.
  7194. ;;
  7195. msdosdjgpp*)
  7196. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7197. # on systems that don't support them.
  7198. lt_prog_compiler_can_build_shared=no
  7199. enable_shared=no
  7200. ;;
  7201. *nto* | *qnx*)
  7202. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7203. # it will coredump.
  7204. lt_prog_compiler_pic='-fPIC -shared'
  7205. ;;
  7206. sysv4*MP*)
  7207. if test -d /usr/nec; then
  7208. lt_prog_compiler_pic=-Kconform_pic
  7209. fi
  7210. ;;
  7211. *)
  7212. lt_prog_compiler_pic='-fPIC'
  7213. ;;
  7214. esac
  7215. case $cc_basename in
  7216. nvcc*) # Cuda Compiler Driver 2.2
  7217. lt_prog_compiler_wl='-Xlinker '
  7218. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7219. ;;
  7220. esac
  7221. else
  7222. # PORTME Check for flag to pass linker flags through the system compiler.
  7223. case $host_os in
  7224. aix*)
  7225. lt_prog_compiler_wl='-Wl,'
  7226. if test "$host_cpu" = ia64; then
  7227. # AIX 5 now supports IA64 processor
  7228. lt_prog_compiler_static='-Bstatic'
  7229. else
  7230. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7231. fi
  7232. ;;
  7233. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7234. # This hack is so that the source file can tell whether it is being
  7235. # built for inclusion in a dll (and should export symbols for example).
  7236. lt_prog_compiler_pic='-DDLL_EXPORT'
  7237. ;;
  7238. hpux9* | hpux10* | hpux11*)
  7239. lt_prog_compiler_wl='-Wl,'
  7240. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7241. # not for PA HP-UX.
  7242. case $host_cpu in
  7243. hppa*64*|ia64*)
  7244. # +Z the default
  7245. ;;
  7246. *)
  7247. lt_prog_compiler_pic='+Z'
  7248. ;;
  7249. esac
  7250. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7251. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7252. ;;
  7253. irix5* | irix6* | nonstopux*)
  7254. lt_prog_compiler_wl='-Wl,'
  7255. # PIC (with -KPIC) is the default.
  7256. lt_prog_compiler_static='-non_shared'
  7257. ;;
  7258. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7259. case $cc_basename in
  7260. # old Intel for x86_64 which still supported -KPIC.
  7261. ecc*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. lt_prog_compiler_pic='-KPIC'
  7264. lt_prog_compiler_static='-static'
  7265. ;;
  7266. # icc used to be incompatible with GCC.
  7267. # ICC 10 doesn't accept -KPIC any more.
  7268. icc* | ifort*)
  7269. lt_prog_compiler_wl='-Wl,'
  7270. lt_prog_compiler_pic='-fPIC'
  7271. lt_prog_compiler_static='-static'
  7272. ;;
  7273. # Lahey Fortran 8.1.
  7274. lf95*)
  7275. lt_prog_compiler_wl='-Wl,'
  7276. lt_prog_compiler_pic='--shared'
  7277. lt_prog_compiler_static='--static'
  7278. ;;
  7279. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7280. # Portland Group compilers (*not* the Pentium gcc compiler,
  7281. # which looks to be a dead project)
  7282. lt_prog_compiler_wl='-Wl,'
  7283. lt_prog_compiler_pic='-fpic'
  7284. lt_prog_compiler_static='-Bstatic'
  7285. ;;
  7286. ccc*)
  7287. lt_prog_compiler_wl='-Wl,'
  7288. # All Alpha code is PIC.
  7289. lt_prog_compiler_static='-non_shared'
  7290. ;;
  7291. xl* | bgxl* | bgf* | mpixl*)
  7292. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7293. lt_prog_compiler_wl='-Wl,'
  7294. lt_prog_compiler_pic='-qpic'
  7295. lt_prog_compiler_static='-qstaticlink'
  7296. ;;
  7297. *)
  7298. case `$CC -V 2>&1 | sed 5q` in
  7299. *Sun\ F* | *Sun*Fortran*)
  7300. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7301. lt_prog_compiler_pic='-KPIC'
  7302. lt_prog_compiler_static='-Bstatic'
  7303. lt_prog_compiler_wl=''
  7304. ;;
  7305. *Sun\ C*)
  7306. # Sun C 5.9
  7307. lt_prog_compiler_pic='-KPIC'
  7308. lt_prog_compiler_static='-Bstatic'
  7309. lt_prog_compiler_wl='-Wl,'
  7310. ;;
  7311. esac
  7312. ;;
  7313. esac
  7314. ;;
  7315. newsos6)
  7316. lt_prog_compiler_pic='-KPIC'
  7317. lt_prog_compiler_static='-Bstatic'
  7318. ;;
  7319. *nto* | *qnx*)
  7320. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7321. # it will coredump.
  7322. lt_prog_compiler_pic='-fPIC -shared'
  7323. ;;
  7324. osf3* | osf4* | osf5*)
  7325. lt_prog_compiler_wl='-Wl,'
  7326. # All OSF/1 code is PIC.
  7327. lt_prog_compiler_static='-non_shared'
  7328. ;;
  7329. rdos*)
  7330. lt_prog_compiler_static='-non_shared'
  7331. ;;
  7332. solaris*)
  7333. lt_prog_compiler_pic='-KPIC'
  7334. lt_prog_compiler_static='-Bstatic'
  7335. case $cc_basename in
  7336. f77* | f90* | f95*)
  7337. lt_prog_compiler_wl='-Qoption ld ';;
  7338. *)
  7339. lt_prog_compiler_wl='-Wl,';;
  7340. esac
  7341. ;;
  7342. sunos4*)
  7343. lt_prog_compiler_wl='-Qoption ld '
  7344. lt_prog_compiler_pic='-PIC'
  7345. lt_prog_compiler_static='-Bstatic'
  7346. ;;
  7347. sysv4 | sysv4.2uw2* | sysv4.3*)
  7348. lt_prog_compiler_wl='-Wl,'
  7349. lt_prog_compiler_pic='-KPIC'
  7350. lt_prog_compiler_static='-Bstatic'
  7351. ;;
  7352. sysv4*MP*)
  7353. if test -d /usr/nec ;then
  7354. lt_prog_compiler_pic='-Kconform_pic'
  7355. lt_prog_compiler_static='-Bstatic'
  7356. fi
  7357. ;;
  7358. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7359. lt_prog_compiler_wl='-Wl,'
  7360. lt_prog_compiler_pic='-KPIC'
  7361. lt_prog_compiler_static='-Bstatic'
  7362. ;;
  7363. unicos*)
  7364. lt_prog_compiler_wl='-Wl,'
  7365. lt_prog_compiler_can_build_shared=no
  7366. ;;
  7367. uts4*)
  7368. lt_prog_compiler_pic='-pic'
  7369. lt_prog_compiler_static='-Bstatic'
  7370. ;;
  7371. *)
  7372. lt_prog_compiler_can_build_shared=no
  7373. ;;
  7374. esac
  7375. fi
  7376. case $host_os in
  7377. # For platforms which do not support PIC, -DPIC is meaningless:
  7378. *djgpp*)
  7379. lt_prog_compiler_pic=
  7380. ;;
  7381. *)
  7382. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7383. ;;
  7384. esac
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7386. $as_echo "$lt_prog_compiler_pic" >&6; }
  7387. #
  7388. # Check to make sure the PIC flag actually works.
  7389. #
  7390. if test -n "$lt_prog_compiler_pic"; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7392. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7393. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. lt_cv_prog_compiler_pic_works=no
  7397. ac_outfile=conftest.$ac_objext
  7398. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7399. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7400. # Insert the option either (1) after the last *FLAGS variable, or
  7401. # (2) before a word containing "conftest.", or (3) at the end.
  7402. # Note that $ac_compile itself does not contain backslashes and begins
  7403. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7404. # The option is referenced via a variable to avoid confusing sed.
  7405. lt_compile=`echo "$ac_compile" | $SED \
  7406. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7407. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7408. -e 's:$: $lt_compiler_flag:'`
  7409. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7410. (eval "$lt_compile" 2>conftest.err)
  7411. ac_status=$?
  7412. cat conftest.err >&5
  7413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414. if (exit $ac_status) && test -s "$ac_outfile"; then
  7415. # The compiler can only warn and ignore the option if not recognized
  7416. # So say no if there are warnings other than the usual output.
  7417. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7418. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7419. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7420. lt_cv_prog_compiler_pic_works=yes
  7421. fi
  7422. fi
  7423. $RM conftest*
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7426. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7427. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7428. case $lt_prog_compiler_pic in
  7429. "" | " "*) ;;
  7430. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7431. esac
  7432. else
  7433. lt_prog_compiler_pic=
  7434. lt_prog_compiler_can_build_shared=no
  7435. fi
  7436. fi
  7437. #
  7438. # Check to make sure the static flag actually works.
  7439. #
  7440. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7442. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7443. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7444. $as_echo_n "(cached) " >&6
  7445. else
  7446. lt_cv_prog_compiler_static_works=no
  7447. save_LDFLAGS="$LDFLAGS"
  7448. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7449. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7450. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7451. # The linker can only warn and ignore the option if not recognized
  7452. # So say no if there are warnings
  7453. if test -s conftest.err; then
  7454. # Append any errors to the config.log.
  7455. cat conftest.err 1>&5
  7456. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7457. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7458. if diff conftest.exp conftest.er2 >/dev/null; then
  7459. lt_cv_prog_compiler_static_works=yes
  7460. fi
  7461. else
  7462. lt_cv_prog_compiler_static_works=yes
  7463. fi
  7464. fi
  7465. $RM -r conftest*
  7466. LDFLAGS="$save_LDFLAGS"
  7467. fi
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7469. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7470. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7471. :
  7472. else
  7473. lt_prog_compiler_static=
  7474. fi
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7476. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7477. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7478. $as_echo_n "(cached) " >&6
  7479. else
  7480. lt_cv_prog_compiler_c_o=no
  7481. $RM -r conftest 2>/dev/null
  7482. mkdir conftest
  7483. cd conftest
  7484. mkdir out
  7485. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7486. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7487. # Insert the option either (1) after the last *FLAGS variable, or
  7488. # (2) before a word containing "conftest.", or (3) at the end.
  7489. # Note that $ac_compile itself does not contain backslashes and begins
  7490. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7491. lt_compile=`echo "$ac_compile" | $SED \
  7492. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7493. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7494. -e 's:$: $lt_compiler_flag:'`
  7495. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7496. (eval "$lt_compile" 2>out/conftest.err)
  7497. ac_status=$?
  7498. cat out/conftest.err >&5
  7499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7501. then
  7502. # The compiler can only warn and ignore the option if not recognized
  7503. # So say no if there are warnings
  7504. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7505. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7506. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7507. lt_cv_prog_compiler_c_o=yes
  7508. fi
  7509. fi
  7510. chmod u+w . 2>&5
  7511. $RM conftest*
  7512. # SGI C++ compiler will create directory out/ii_files/ for
  7513. # template instantiation
  7514. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7515. $RM out/* && rmdir out
  7516. cd ..
  7517. $RM -r conftest
  7518. $RM conftest*
  7519. fi
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7521. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7523. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7524. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7525. $as_echo_n "(cached) " >&6
  7526. else
  7527. lt_cv_prog_compiler_c_o=no
  7528. $RM -r conftest 2>/dev/null
  7529. mkdir conftest
  7530. cd conftest
  7531. mkdir out
  7532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7533. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7534. # Insert the option either (1) after the last *FLAGS variable, or
  7535. # (2) before a word containing "conftest.", or (3) at the end.
  7536. # Note that $ac_compile itself does not contain backslashes and begins
  7537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7538. lt_compile=`echo "$ac_compile" | $SED \
  7539. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7540. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7541. -e 's:$: $lt_compiler_flag:'`
  7542. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7543. (eval "$lt_compile" 2>out/conftest.err)
  7544. ac_status=$?
  7545. cat out/conftest.err >&5
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7548. then
  7549. # The compiler can only warn and ignore the option if not recognized
  7550. # So say no if there are warnings
  7551. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7552. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7553. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7554. lt_cv_prog_compiler_c_o=yes
  7555. fi
  7556. fi
  7557. chmod u+w . 2>&5
  7558. $RM conftest*
  7559. # SGI C++ compiler will create directory out/ii_files/ for
  7560. # template instantiation
  7561. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7562. $RM out/* && rmdir out
  7563. cd ..
  7564. $RM -r conftest
  7565. $RM conftest*
  7566. fi
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7568. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7569. hard_links="nottested"
  7570. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7571. # do not overwrite the value of need_locks provided by the user
  7572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7573. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7574. hard_links=yes
  7575. $RM conftest*
  7576. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7577. touch conftest.a
  7578. ln conftest.a conftest.b 2>&5 || hard_links=no
  7579. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7581. $as_echo "$hard_links" >&6; }
  7582. if test "$hard_links" = no; then
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7584. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7585. need_locks=warn
  7586. fi
  7587. else
  7588. need_locks=no
  7589. fi
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7591. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7592. runpath_var=
  7593. allow_undefined_flag=
  7594. always_export_symbols=no
  7595. archive_cmds=
  7596. archive_expsym_cmds=
  7597. compiler_needs_object=no
  7598. enable_shared_with_static_runtimes=no
  7599. export_dynamic_flag_spec=
  7600. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7601. hardcode_automatic=no
  7602. hardcode_direct=no
  7603. hardcode_direct_absolute=no
  7604. hardcode_libdir_flag_spec=
  7605. hardcode_libdir_flag_spec_ld=
  7606. hardcode_libdir_separator=
  7607. hardcode_minus_L=no
  7608. hardcode_shlibpath_var=unsupported
  7609. inherit_rpath=no
  7610. link_all_deplibs=unknown
  7611. module_cmds=
  7612. module_expsym_cmds=
  7613. old_archive_from_new_cmds=
  7614. old_archive_from_expsyms_cmds=
  7615. thread_safe_flag_spec=
  7616. whole_archive_flag_spec=
  7617. # include_expsyms should be a list of space-separated symbols to be *always*
  7618. # included in the symbol list
  7619. include_expsyms=
  7620. # exclude_expsyms can be an extended regexp of symbols to exclude
  7621. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7622. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7623. # as well as any symbol that contains `d'.
  7624. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7625. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7626. # platforms (ab)use it in PIC code, but their linkers get confused if
  7627. # the symbol is explicitly referenced. Since portable code cannot
  7628. # rely on this symbol name, it's probably fine to never include it in
  7629. # preloaded symbol tables.
  7630. # Exclude shared library initialization/finalization symbols.
  7631. extract_expsyms_cmds=
  7632. case $host_os in
  7633. cygwin* | mingw* | pw32* | cegcc*)
  7634. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7635. # When not using gcc, we currently assume that we are using
  7636. # Microsoft Visual C++.
  7637. if test "$GCC" != yes; then
  7638. with_gnu_ld=no
  7639. fi
  7640. ;;
  7641. interix*)
  7642. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7643. with_gnu_ld=yes
  7644. ;;
  7645. openbsd*)
  7646. with_gnu_ld=no
  7647. ;;
  7648. esac
  7649. ld_shlibs=yes
  7650. # On some targets, GNU ld is compatible enough with the native linker
  7651. # that we're better off using the native interface for both.
  7652. lt_use_gnu_ld_interface=no
  7653. if test "$with_gnu_ld" = yes; then
  7654. case $host_os in
  7655. aix*)
  7656. # The AIX port of GNU ld has always aspired to compatibility
  7657. # with the native linker. However, as the warning in the GNU ld
  7658. # block says, versions before 2.19.5* couldn't really create working
  7659. # shared libraries, regardless of the interface used.
  7660. case `$LD -v 2>&1` in
  7661. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7662. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7663. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7664. *)
  7665. lt_use_gnu_ld_interface=yes
  7666. ;;
  7667. esac
  7668. ;;
  7669. *)
  7670. lt_use_gnu_ld_interface=yes
  7671. ;;
  7672. esac
  7673. fi
  7674. if test "$lt_use_gnu_ld_interface" = yes; then
  7675. # If archive_cmds runs LD, not CC, wlarc should be empty
  7676. wlarc='${wl}'
  7677. # Set some defaults for GNU ld with shared library support. These
  7678. # are reset later if shared libraries are not supported. Putting them
  7679. # here allows them to be overridden if necessary.
  7680. runpath_var=LD_RUN_PATH
  7681. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7682. export_dynamic_flag_spec='${wl}--export-dynamic'
  7683. # ancient GNU ld didn't support --whole-archive et. al.
  7684. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7685. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7686. else
  7687. whole_archive_flag_spec=
  7688. fi
  7689. supports_anon_versioning=no
  7690. case `$LD -v 2>&1` in
  7691. *GNU\ gold*) supports_anon_versioning=yes ;;
  7692. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7693. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7694. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7695. *\ 2.11.*) ;; # other 2.11 versions
  7696. *) supports_anon_versioning=yes ;;
  7697. esac
  7698. # See if GNU ld supports shared libraries.
  7699. case $host_os in
  7700. aix[3-9]*)
  7701. # On AIX/PPC, the GNU linker is very broken
  7702. if test "$host_cpu" != ia64; then
  7703. ld_shlibs=no
  7704. cat <<_LT_EOF 1>&2
  7705. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7706. *** to be unable to reliably create shared libraries on AIX.
  7707. *** Therefore, libtool is disabling shared libraries support. If you
  7708. *** really care for shared libraries, you may want to install binutils
  7709. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7710. *** You will then need to restart the configuration process.
  7711. _LT_EOF
  7712. fi
  7713. ;;
  7714. amigaos*)
  7715. case $host_cpu in
  7716. powerpc)
  7717. # see comment about AmigaOS4 .so support
  7718. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7719. archive_expsym_cmds=''
  7720. ;;
  7721. m68k)
  7722. 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)'
  7723. hardcode_libdir_flag_spec='-L$libdir'
  7724. hardcode_minus_L=yes
  7725. ;;
  7726. esac
  7727. ;;
  7728. beos*)
  7729. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7730. allow_undefined_flag=unsupported
  7731. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7732. # support --undefined. This deserves some investigation. FIXME
  7733. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7734. else
  7735. ld_shlibs=no
  7736. fi
  7737. ;;
  7738. cygwin* | mingw* | pw32* | cegcc*)
  7739. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7740. # as there is no search path for DLLs.
  7741. hardcode_libdir_flag_spec='-L$libdir'
  7742. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7743. allow_undefined_flag=unsupported
  7744. always_export_symbols=no
  7745. enable_shared_with_static_runtimes=yes
  7746. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7747. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7748. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7749. # If the export-symbols file already is a .def file (1st line
  7750. # is EXPORTS), use it as is; otherwise, prepend...
  7751. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7752. cp $export_symbols $output_objdir/$soname.def;
  7753. else
  7754. echo EXPORTS > $output_objdir/$soname.def;
  7755. cat $export_symbols >> $output_objdir/$soname.def;
  7756. fi~
  7757. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7758. else
  7759. ld_shlibs=no
  7760. fi
  7761. ;;
  7762. haiku*)
  7763. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7764. link_all_deplibs=yes
  7765. ;;
  7766. interix[3-9]*)
  7767. hardcode_direct=no
  7768. hardcode_shlibpath_var=no
  7769. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7770. export_dynamic_flag_spec='${wl}-E'
  7771. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7772. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7773. # default) and relocated if they conflict, which is a slow very memory
  7774. # consuming and fragmenting process. To avoid this, we pick a random,
  7775. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7776. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7777. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7778. 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'
  7779. ;;
  7780. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7781. tmp_diet=no
  7782. if test "$host_os" = linux-dietlibc; then
  7783. case $cc_basename in
  7784. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7785. esac
  7786. fi
  7787. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7788. && test "$tmp_diet" = no
  7789. then
  7790. tmp_addflag=
  7791. tmp_sharedflag='-shared'
  7792. case $cc_basename,$host_cpu in
  7793. pgcc*) # Portland Group C compiler
  7794. 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'
  7795. tmp_addflag=' $pic_flag'
  7796. ;;
  7797. pgf77* | pgf90* | pgf95* | pgfortran*)
  7798. # Portland Group f77 and f90 compilers
  7799. 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'
  7800. tmp_addflag=' $pic_flag -Mnomain' ;;
  7801. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7802. tmp_addflag=' -i_dynamic' ;;
  7803. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7804. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7805. ifc* | ifort*) # Intel Fortran compiler
  7806. tmp_addflag=' -nofor_main' ;;
  7807. lf95*) # Lahey Fortran 8.1
  7808. whole_archive_flag_spec=
  7809. tmp_sharedflag='--shared' ;;
  7810. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7811. tmp_sharedflag='-qmkshrobj'
  7812. tmp_addflag= ;;
  7813. nvcc*) # Cuda Compiler Driver 2.2
  7814. 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'
  7815. compiler_needs_object=yes
  7816. ;;
  7817. esac
  7818. case `$CC -V 2>&1 | sed 5q` in
  7819. *Sun\ C*) # Sun C 5.9
  7820. 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'
  7821. compiler_needs_object=yes
  7822. tmp_sharedflag='-G' ;;
  7823. *Sun\ F*) # Sun Fortran 8.3
  7824. tmp_sharedflag='-G' ;;
  7825. esac
  7826. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7827. if test "x$supports_anon_versioning" = xyes; then
  7828. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7829. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7830. echo "local: *; };" >> $output_objdir/$libname.ver~
  7831. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7832. fi
  7833. case $cc_basename in
  7834. xlf* | bgf* | bgxlf* | mpixlf*)
  7835. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7836. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7837. hardcode_libdir_flag_spec=
  7838. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7839. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7840. if test "x$supports_anon_versioning" = xyes; then
  7841. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7842. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7843. echo "local: *; };" >> $output_objdir/$libname.ver~
  7844. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7845. fi
  7846. ;;
  7847. esac
  7848. else
  7849. ld_shlibs=no
  7850. fi
  7851. ;;
  7852. netbsd*)
  7853. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7854. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7855. wlarc=
  7856. else
  7857. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7858. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7859. fi
  7860. ;;
  7861. solaris*)
  7862. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7863. ld_shlibs=no
  7864. cat <<_LT_EOF 1>&2
  7865. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7866. *** create shared libraries on Solaris systems. Therefore, libtool
  7867. *** is disabling shared libraries support. We urge you to upgrade GNU
  7868. *** binutils to release 2.9.1 or newer. Another option is to modify
  7869. *** your PATH or compiler configuration so that the native linker is
  7870. *** used, and then restart.
  7871. _LT_EOF
  7872. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7873. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7874. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7875. else
  7876. ld_shlibs=no
  7877. fi
  7878. ;;
  7879. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7880. case `$LD -v 2>&1` in
  7881. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7882. ld_shlibs=no
  7883. cat <<_LT_EOF 1>&2
  7884. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7885. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7886. *** is disabling shared libraries support. We urge you to upgrade GNU
  7887. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7888. *** your PATH or compiler configuration so that the native linker is
  7889. *** used, and then restart.
  7890. _LT_EOF
  7891. ;;
  7892. *)
  7893. # For security reasons, it is highly recommended that you always
  7894. # use absolute paths for naming shared libraries, and exclude the
  7895. # DT_RUNPATH tag from executables and libraries. But doing so
  7896. # requires that you compile everything twice, which is a pain.
  7897. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7898. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7899. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7900. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7901. else
  7902. ld_shlibs=no
  7903. fi
  7904. ;;
  7905. esac
  7906. ;;
  7907. sunos4*)
  7908. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7909. wlarc=
  7910. hardcode_direct=yes
  7911. hardcode_shlibpath_var=no
  7912. ;;
  7913. *)
  7914. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7916. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7917. else
  7918. ld_shlibs=no
  7919. fi
  7920. ;;
  7921. esac
  7922. if test "$ld_shlibs" = no; then
  7923. runpath_var=
  7924. hardcode_libdir_flag_spec=
  7925. export_dynamic_flag_spec=
  7926. whole_archive_flag_spec=
  7927. fi
  7928. else
  7929. # PORTME fill in a description of your system's linker (not GNU ld)
  7930. case $host_os in
  7931. aix3*)
  7932. allow_undefined_flag=unsupported
  7933. always_export_symbols=yes
  7934. 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'
  7935. # Note: this linker hardcodes the directories in LIBPATH if there
  7936. # are no directories specified by -L.
  7937. hardcode_minus_L=yes
  7938. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7939. # Neither direct hardcoding nor static linking is supported with a
  7940. # broken collect2.
  7941. hardcode_direct=unsupported
  7942. fi
  7943. ;;
  7944. aix[4-9]*)
  7945. if test "$host_cpu" = ia64; then
  7946. # On IA64, the linker does run time linking by default, so we don't
  7947. # have to do anything special.
  7948. aix_use_runtimelinking=no
  7949. exp_sym_flag='-Bexport'
  7950. no_entry_flag=""
  7951. else
  7952. # If we're using GNU nm, then we don't want the "-C" option.
  7953. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7954. # Also, AIX nm treats weak defined symbols like other global
  7955. # defined symbols, whereas GNU nm marks them as "W".
  7956. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7957. 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'
  7958. else
  7959. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7960. fi
  7961. aix_use_runtimelinking=no
  7962. # Test if we are trying to use run time linking or normal
  7963. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7964. # need to do runtime linking.
  7965. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7966. for ld_flag in $LDFLAGS; do
  7967. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7968. aix_use_runtimelinking=yes
  7969. break
  7970. fi
  7971. done
  7972. ;;
  7973. esac
  7974. exp_sym_flag='-bexport'
  7975. no_entry_flag='-bnoentry'
  7976. fi
  7977. # When large executables or shared objects are built, AIX ld can
  7978. # have problems creating the table of contents. If linking a library
  7979. # or program results in "error TOC overflow" add -mminimal-toc to
  7980. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7981. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7982. archive_cmds=''
  7983. hardcode_direct=yes
  7984. hardcode_direct_absolute=yes
  7985. hardcode_libdir_separator=':'
  7986. link_all_deplibs=yes
  7987. file_list_spec='${wl}-f,'
  7988. if test "$GCC" = yes; then
  7989. case $host_os in aix4.[012]|aix4.[012].*)
  7990. # We only want to do this on AIX 4.2 and lower, the check
  7991. # below for broken collect2 doesn't work under 4.3+
  7992. collect2name=`${CC} -print-prog-name=collect2`
  7993. if test -f "$collect2name" &&
  7994. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7995. then
  7996. # We have reworked collect2
  7997. :
  7998. else
  7999. # We have old collect2
  8000. hardcode_direct=unsupported
  8001. # It fails to find uninstalled libraries when the uninstalled
  8002. # path is not listed in the libpath. Setting hardcode_minus_L
  8003. # to unsupported forces relinking
  8004. hardcode_minus_L=yes
  8005. hardcode_libdir_flag_spec='-L$libdir'
  8006. hardcode_libdir_separator=
  8007. fi
  8008. ;;
  8009. esac
  8010. shared_flag='-shared'
  8011. if test "$aix_use_runtimelinking" = yes; then
  8012. shared_flag="$shared_flag "'${wl}-G'
  8013. fi
  8014. else
  8015. # not using gcc
  8016. if test "$host_cpu" = ia64; then
  8017. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8018. # chokes on -Wl,-G. The following line is correct:
  8019. shared_flag='-G'
  8020. else
  8021. if test "$aix_use_runtimelinking" = yes; then
  8022. shared_flag='${wl}-G'
  8023. else
  8024. shared_flag='${wl}-bM:SRE'
  8025. fi
  8026. fi
  8027. fi
  8028. export_dynamic_flag_spec='${wl}-bexpall'
  8029. # It seems that -bexpall does not export symbols beginning with
  8030. # underscore (_), so it is better to generate a list of symbols to export.
  8031. always_export_symbols=yes
  8032. if test "$aix_use_runtimelinking" = yes; then
  8033. # Warning - without using the other runtime loading flags (-brtl),
  8034. # -berok will link without error, but may produce a broken library.
  8035. allow_undefined_flag='-berok'
  8036. # Determine the default libpath from the value encoded in an
  8037. # empty executable.
  8038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8039. /* end confdefs.h. */
  8040. int
  8041. main ()
  8042. {
  8043. ;
  8044. return 0;
  8045. }
  8046. _ACEOF
  8047. if ac_fn_c_try_link "$LINENO"; then :
  8048. lt_aix_libpath_sed='
  8049. /Import File Strings/,/^$/ {
  8050. /^0/ {
  8051. s/^0 *\(.*\)$/\1/
  8052. p
  8053. }
  8054. }'
  8055. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8056. # Check for a 64-bit object if we didn't find anything.
  8057. if test -z "$aix_libpath"; then
  8058. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8059. fi
  8060. fi
  8061. rm -f core conftest.err conftest.$ac_objext \
  8062. conftest$ac_exeext conftest.$ac_ext
  8063. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8064. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8065. 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"
  8066. else
  8067. if test "$host_cpu" = ia64; then
  8068. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8069. allow_undefined_flag="-z nodefs"
  8070. 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"
  8071. else
  8072. # Determine the default libpath from the value encoded in an
  8073. # empty executable.
  8074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8075. /* end confdefs.h. */
  8076. int
  8077. main ()
  8078. {
  8079. ;
  8080. return 0;
  8081. }
  8082. _ACEOF
  8083. if ac_fn_c_try_link "$LINENO"; then :
  8084. lt_aix_libpath_sed='
  8085. /Import File Strings/,/^$/ {
  8086. /^0/ {
  8087. s/^0 *\(.*\)$/\1/
  8088. p
  8089. }
  8090. }'
  8091. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8092. # Check for a 64-bit object if we didn't find anything.
  8093. if test -z "$aix_libpath"; then
  8094. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8095. fi
  8096. fi
  8097. rm -f core conftest.err conftest.$ac_objext \
  8098. conftest$ac_exeext conftest.$ac_ext
  8099. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8100. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8101. # Warning - without using the other run time loading flags,
  8102. # -berok will link without error, but may produce a broken library.
  8103. no_undefined_flag=' ${wl}-bernotok'
  8104. allow_undefined_flag=' ${wl}-berok'
  8105. if test "$with_gnu_ld" = yes; then
  8106. # We only use this code for GNU lds that support --whole-archive.
  8107. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8108. else
  8109. # Exported symbols can be pulled into shared objects from archives
  8110. whole_archive_flag_spec='$convenience'
  8111. fi
  8112. archive_cmds_need_lc=yes
  8113. # This is similar to how AIX traditionally builds its shared libraries.
  8114. 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'
  8115. fi
  8116. fi
  8117. ;;
  8118. amigaos*)
  8119. case $host_cpu in
  8120. powerpc)
  8121. # see comment about AmigaOS4 .so support
  8122. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8123. archive_expsym_cmds=''
  8124. ;;
  8125. m68k)
  8126. 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)'
  8127. hardcode_libdir_flag_spec='-L$libdir'
  8128. hardcode_minus_L=yes
  8129. ;;
  8130. esac
  8131. ;;
  8132. bsdi[45]*)
  8133. export_dynamic_flag_spec=-rdynamic
  8134. ;;
  8135. cygwin* | mingw* | pw32* | cegcc*)
  8136. # When not using gcc, we currently assume that we are using
  8137. # Microsoft Visual C++.
  8138. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8139. # no search path for DLLs.
  8140. hardcode_libdir_flag_spec=' '
  8141. allow_undefined_flag=unsupported
  8142. # Tell ltmain to make .lib files, not .a files.
  8143. libext=lib
  8144. # Tell ltmain to make .dll files, not .so files.
  8145. shrext_cmds=".dll"
  8146. # FIXME: Setting linknames here is a bad hack.
  8147. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8148. # The linker will automatically build a .lib file if we build a DLL.
  8149. old_archive_from_new_cmds='true'
  8150. # FIXME: Should let the user specify the lib program.
  8151. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8152. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8153. enable_shared_with_static_runtimes=yes
  8154. ;;
  8155. darwin* | rhapsody*)
  8156. archive_cmds_need_lc=no
  8157. hardcode_direct=no
  8158. hardcode_automatic=yes
  8159. hardcode_shlibpath_var=unsupported
  8160. if test "$lt_cv_ld_force_load" = "yes"; then
  8161. 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\"`'
  8162. else
  8163. whole_archive_flag_spec=''
  8164. fi
  8165. link_all_deplibs=yes
  8166. allow_undefined_flag="$_lt_dar_allow_undefined"
  8167. case $cc_basename in
  8168. ifort*) _lt_dar_can_shared=yes ;;
  8169. *) _lt_dar_can_shared=$GCC ;;
  8170. esac
  8171. if test "$_lt_dar_can_shared" = "yes"; then
  8172. output_verbose_link_cmd=func_echo_all
  8173. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8174. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8175. 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}"
  8176. 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}"
  8177. else
  8178. ld_shlibs=no
  8179. fi
  8180. ;;
  8181. dgux*)
  8182. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8183. hardcode_libdir_flag_spec='-L$libdir'
  8184. hardcode_shlibpath_var=no
  8185. ;;
  8186. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8187. # support. Future versions do this automatically, but an explicit c++rt0.o
  8188. # does not break anything, and helps significantly (at the cost of a little
  8189. # extra space).
  8190. freebsd2.2*)
  8191. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8192. hardcode_libdir_flag_spec='-R$libdir'
  8193. hardcode_direct=yes
  8194. hardcode_shlibpath_var=no
  8195. ;;
  8196. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8197. freebsd2.*)
  8198. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8199. hardcode_direct=yes
  8200. hardcode_minus_L=yes
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8204. freebsd* | dragonfly*)
  8205. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8206. hardcode_libdir_flag_spec='-R$libdir'
  8207. hardcode_direct=yes
  8208. hardcode_shlibpath_var=no
  8209. ;;
  8210. hpux9*)
  8211. if test "$GCC" = yes; then
  8212. 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'
  8213. else
  8214. 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'
  8215. fi
  8216. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8217. hardcode_libdir_separator=:
  8218. hardcode_direct=yes
  8219. # hardcode_minus_L: Not really in the search PATH,
  8220. # but as the default location of the library.
  8221. hardcode_minus_L=yes
  8222. export_dynamic_flag_spec='${wl}-E'
  8223. ;;
  8224. hpux10*)
  8225. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8226. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8227. else
  8228. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8229. fi
  8230. if test "$with_gnu_ld" = no; then
  8231. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8232. hardcode_libdir_flag_spec_ld='+b $libdir'
  8233. hardcode_libdir_separator=:
  8234. hardcode_direct=yes
  8235. hardcode_direct_absolute=yes
  8236. export_dynamic_flag_spec='${wl}-E'
  8237. # hardcode_minus_L: Not really in the search PATH,
  8238. # but as the default location of the library.
  8239. hardcode_minus_L=yes
  8240. fi
  8241. ;;
  8242. hpux11*)
  8243. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8244. case $host_cpu in
  8245. hppa*64*)
  8246. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. ia64*)
  8249. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. *)
  8252. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. esac
  8255. else
  8256. case $host_cpu in
  8257. hppa*64*)
  8258. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. ia64*)
  8261. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. *)
  8264. # Older versions of the 11.00 compiler do not understand -b yet
  8265. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8267. $as_echo_n "checking if $CC understands -b... " >&6; }
  8268. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8269. $as_echo_n "(cached) " >&6
  8270. else
  8271. lt_cv_prog_compiler__b=no
  8272. save_LDFLAGS="$LDFLAGS"
  8273. LDFLAGS="$LDFLAGS -b"
  8274. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8275. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8276. # The linker can only warn and ignore the option if not recognized
  8277. # So say no if there are warnings
  8278. if test -s conftest.err; then
  8279. # Append any errors to the config.log.
  8280. cat conftest.err 1>&5
  8281. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8283. if diff conftest.exp conftest.er2 >/dev/null; then
  8284. lt_cv_prog_compiler__b=yes
  8285. fi
  8286. else
  8287. lt_cv_prog_compiler__b=yes
  8288. fi
  8289. fi
  8290. $RM -r conftest*
  8291. LDFLAGS="$save_LDFLAGS"
  8292. fi
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8294. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8295. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8296. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8297. else
  8298. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8299. fi
  8300. ;;
  8301. esac
  8302. fi
  8303. if test "$with_gnu_ld" = no; then
  8304. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8305. hardcode_libdir_separator=:
  8306. case $host_cpu in
  8307. hppa*64*|ia64*)
  8308. hardcode_direct=no
  8309. hardcode_shlibpath_var=no
  8310. ;;
  8311. *)
  8312. hardcode_direct=yes
  8313. hardcode_direct_absolute=yes
  8314. export_dynamic_flag_spec='${wl}-E'
  8315. # hardcode_minus_L: Not really in the search PATH,
  8316. # but as the default location of the library.
  8317. hardcode_minus_L=yes
  8318. ;;
  8319. esac
  8320. fi
  8321. ;;
  8322. irix5* | irix6* | nonstopux*)
  8323. if test "$GCC" = yes; then
  8324. 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'
  8325. # Try to use the -exported_symbol ld option, if it does not
  8326. # work, assume that -exports_file does not work either and
  8327. # implicitly export all symbols.
  8328. save_LDFLAGS="$LDFLAGS"
  8329. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8331. /* end confdefs.h. */
  8332. int foo(void) {}
  8333. _ACEOF
  8334. if ac_fn_c_try_link "$LINENO"; then :
  8335. 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'
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext \
  8338. conftest$ac_exeext conftest.$ac_ext
  8339. LDFLAGS="$save_LDFLAGS"
  8340. else
  8341. 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'
  8342. 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'
  8343. fi
  8344. archive_cmds_need_lc='no'
  8345. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8346. hardcode_libdir_separator=:
  8347. inherit_rpath=yes
  8348. link_all_deplibs=yes
  8349. ;;
  8350. netbsd*)
  8351. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8352. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8353. else
  8354. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8355. fi
  8356. hardcode_libdir_flag_spec='-R$libdir'
  8357. hardcode_direct=yes
  8358. hardcode_shlibpath_var=no
  8359. ;;
  8360. newsos6)
  8361. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8362. hardcode_direct=yes
  8363. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8364. hardcode_libdir_separator=:
  8365. hardcode_shlibpath_var=no
  8366. ;;
  8367. *nto* | *qnx*)
  8368. ;;
  8369. openbsd*)
  8370. if test -f /usr/libexec/ld.so; then
  8371. hardcode_direct=yes
  8372. hardcode_shlibpath_var=no
  8373. hardcode_direct_absolute=yes
  8374. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8375. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8376. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8377. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8378. export_dynamic_flag_spec='${wl}-E'
  8379. else
  8380. case $host_os in
  8381. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8382. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8383. hardcode_libdir_flag_spec='-R$libdir'
  8384. ;;
  8385. *)
  8386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8387. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8388. ;;
  8389. esac
  8390. fi
  8391. else
  8392. ld_shlibs=no
  8393. fi
  8394. ;;
  8395. os2*)
  8396. hardcode_libdir_flag_spec='-L$libdir'
  8397. hardcode_minus_L=yes
  8398. allow_undefined_flag=unsupported
  8399. 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'
  8400. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8401. ;;
  8402. osf3*)
  8403. if test "$GCC" = yes; then
  8404. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8405. 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'
  8406. else
  8407. allow_undefined_flag=' -expect_unresolved \*'
  8408. 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'
  8409. fi
  8410. archive_cmds_need_lc='no'
  8411. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8412. hardcode_libdir_separator=:
  8413. ;;
  8414. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8415. if test "$GCC" = yes; then
  8416. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8417. 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'
  8418. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8419. else
  8420. allow_undefined_flag=' -expect_unresolved \*'
  8421. 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'
  8422. 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~
  8423. $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'
  8424. # Both c and cxx compiler support -rpath directly
  8425. hardcode_libdir_flag_spec='-rpath $libdir'
  8426. fi
  8427. archive_cmds_need_lc='no'
  8428. hardcode_libdir_separator=:
  8429. ;;
  8430. solaris*)
  8431. no_undefined_flag=' -z defs'
  8432. if test "$GCC" = yes; then
  8433. wlarc='${wl}'
  8434. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8436. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8437. else
  8438. case `$CC -V 2>&1` in
  8439. *"Compilers 5.0"*)
  8440. wlarc=''
  8441. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8442. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8443. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8444. ;;
  8445. *)
  8446. wlarc='${wl}'
  8447. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8449. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8450. ;;
  8451. esac
  8452. fi
  8453. hardcode_libdir_flag_spec='-R$libdir'
  8454. hardcode_shlibpath_var=no
  8455. case $host_os in
  8456. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8457. *)
  8458. # The compiler driver will combine and reorder linker options,
  8459. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8460. # but is careful enough not to reorder.
  8461. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8462. if test "$GCC" = yes; then
  8463. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8464. else
  8465. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8466. fi
  8467. ;;
  8468. esac
  8469. link_all_deplibs=yes
  8470. ;;
  8471. sunos4*)
  8472. if test "x$host_vendor" = xsequent; then
  8473. # Use $CC to link under sequent, because it throws in some extra .o
  8474. # files that make .init and .fini sections work.
  8475. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8476. else
  8477. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8478. fi
  8479. hardcode_libdir_flag_spec='-L$libdir'
  8480. hardcode_direct=yes
  8481. hardcode_minus_L=yes
  8482. hardcode_shlibpath_var=no
  8483. ;;
  8484. sysv4)
  8485. case $host_vendor in
  8486. sni)
  8487. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8488. hardcode_direct=yes # is this really true???
  8489. ;;
  8490. siemens)
  8491. ## LD is ld it makes a PLAMLIB
  8492. ## CC just makes a GrossModule.
  8493. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8494. reload_cmds='$CC -r -o $output$reload_objs'
  8495. hardcode_direct=no
  8496. ;;
  8497. motorola)
  8498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8499. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8500. ;;
  8501. esac
  8502. runpath_var='LD_RUN_PATH'
  8503. hardcode_shlibpath_var=no
  8504. ;;
  8505. sysv4.3*)
  8506. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8507. hardcode_shlibpath_var=no
  8508. export_dynamic_flag_spec='-Bexport'
  8509. ;;
  8510. sysv4*MP*)
  8511. if test -d /usr/nec; then
  8512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. hardcode_shlibpath_var=no
  8514. runpath_var=LD_RUN_PATH
  8515. hardcode_runpath_var=yes
  8516. ld_shlibs=yes
  8517. fi
  8518. ;;
  8519. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8520. no_undefined_flag='${wl}-z,text'
  8521. archive_cmds_need_lc=no
  8522. hardcode_shlibpath_var=no
  8523. runpath_var='LD_RUN_PATH'
  8524. if test "$GCC" = yes; then
  8525. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8526. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8527. else
  8528. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8529. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8530. fi
  8531. ;;
  8532. sysv5* | sco3.2v5* | sco5v6*)
  8533. # Note: We can NOT use -z defs as we might desire, because we do not
  8534. # link with -lc, and that would cause any symbols used from libc to
  8535. # always be unresolved, which means just about no library would
  8536. # ever link correctly. If we're not using GNU ld we use -z text
  8537. # though, which does catch some bad symbols but isn't as heavy-handed
  8538. # as -z defs.
  8539. no_undefined_flag='${wl}-z,text'
  8540. allow_undefined_flag='${wl}-z,nodefs'
  8541. archive_cmds_need_lc=no
  8542. hardcode_shlibpath_var=no
  8543. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8544. hardcode_libdir_separator=':'
  8545. link_all_deplibs=yes
  8546. export_dynamic_flag_spec='${wl}-Bexport'
  8547. runpath_var='LD_RUN_PATH'
  8548. if test "$GCC" = yes; then
  8549. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8550. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. else
  8552. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8553. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. fi
  8555. ;;
  8556. uts4*)
  8557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8558. hardcode_libdir_flag_spec='-L$libdir'
  8559. hardcode_shlibpath_var=no
  8560. ;;
  8561. *)
  8562. ld_shlibs=no
  8563. ;;
  8564. esac
  8565. if test x$host_vendor = xsni; then
  8566. case $host in
  8567. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8568. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8569. ;;
  8570. esac
  8571. fi
  8572. fi
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8574. $as_echo "$ld_shlibs" >&6; }
  8575. test "$ld_shlibs" = no && can_build_shared=no
  8576. with_gnu_ld=$with_gnu_ld
  8577. #
  8578. # Do we need to explicitly link libc?
  8579. #
  8580. case "x$archive_cmds_need_lc" in
  8581. x|xyes)
  8582. # Assume -lc should be added
  8583. archive_cmds_need_lc=yes
  8584. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8585. case $archive_cmds in
  8586. *'~'*)
  8587. # FIXME: we may have to deal with multi-command sequences.
  8588. ;;
  8589. '$CC '*)
  8590. # Test whether the compiler implicitly links with -lc since on some
  8591. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8592. # to ld, don't add -lc before -lgcc.
  8593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8594. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8595. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8596. $as_echo_n "(cached) " >&6
  8597. else
  8598. $RM conftest*
  8599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8600. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8601. (eval $ac_compile) 2>&5
  8602. ac_status=$?
  8603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8604. test $ac_status = 0; } 2>conftest.err; then
  8605. soname=conftest
  8606. lib=conftest
  8607. libobjs=conftest.$ac_objext
  8608. deplibs=
  8609. wl=$lt_prog_compiler_wl
  8610. pic_flag=$lt_prog_compiler_pic
  8611. compiler_flags=-v
  8612. linker_flags=-v
  8613. verstring=
  8614. output_objdir=.
  8615. libname=conftest
  8616. lt_save_allow_undefined_flag=$allow_undefined_flag
  8617. allow_undefined_flag=
  8618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8619. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8620. ac_status=$?
  8621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8622. test $ac_status = 0; }
  8623. then
  8624. lt_cv_archive_cmds_need_lc=no
  8625. else
  8626. lt_cv_archive_cmds_need_lc=yes
  8627. fi
  8628. allow_undefined_flag=$lt_save_allow_undefined_flag
  8629. else
  8630. cat conftest.err 1>&5
  8631. fi
  8632. $RM conftest*
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8635. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8636. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8637. ;;
  8638. esac
  8639. fi
  8640. ;;
  8641. esac
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8643. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8644. if test "$GCC" = yes; then
  8645. case $host_os in
  8646. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8647. *) lt_awk_arg="/^libraries:/" ;;
  8648. esac
  8649. case $host_os in
  8650. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8651. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8652. esac
  8653. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8654. case $lt_search_path_spec in
  8655. *\;*)
  8656. # if the path contains ";" then we assume it to be the separator
  8657. # otherwise default to the standard path separator (i.e. ":") - it is
  8658. # assumed that no part of a normal pathname contains ";" but that should
  8659. # okay in the real world where ";" in dirpaths is itself problematic.
  8660. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8661. ;;
  8662. *)
  8663. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8664. ;;
  8665. esac
  8666. # Ok, now we have the path, separated by spaces, we can step through it
  8667. # and add multilib dir if necessary.
  8668. lt_tmp_lt_search_path_spec=
  8669. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8670. for lt_sys_path in $lt_search_path_spec; do
  8671. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8672. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8673. else
  8674. test -d "$lt_sys_path" && \
  8675. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8676. fi
  8677. done
  8678. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8679. BEGIN {RS=" "; FS="/|\n";} {
  8680. lt_foo="";
  8681. lt_count=0;
  8682. for (lt_i = NF; lt_i > 0; lt_i--) {
  8683. if ($lt_i != "" && $lt_i != ".") {
  8684. if ($lt_i == "..") {
  8685. lt_count++;
  8686. } else {
  8687. if (lt_count == 0) {
  8688. lt_foo="/" $lt_i lt_foo;
  8689. } else {
  8690. lt_count--;
  8691. }
  8692. }
  8693. }
  8694. }
  8695. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8696. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8697. }'`
  8698. # AWK program above erroneously prepends '/' to C:/dos/paths
  8699. # for these hosts.
  8700. case $host_os in
  8701. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8702. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8703. esac
  8704. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8705. else
  8706. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8707. fi
  8708. library_names_spec=
  8709. libname_spec='lib$name'
  8710. soname_spec=
  8711. shrext_cmds=".so"
  8712. postinstall_cmds=
  8713. postuninstall_cmds=
  8714. finish_cmds=
  8715. finish_eval=
  8716. shlibpath_var=
  8717. shlibpath_overrides_runpath=unknown
  8718. version_type=none
  8719. dynamic_linker="$host_os ld.so"
  8720. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8721. need_lib_prefix=unknown
  8722. hardcode_into_libs=no
  8723. # when you set need_version to no, make sure it does not cause -set_version
  8724. # flags to be left without arguments
  8725. need_version=unknown
  8726. case $host_os in
  8727. aix3*)
  8728. version_type=linux
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8730. shlibpath_var=LIBPATH
  8731. # AIX 3 has no versioning support, so we append a major version to the name.
  8732. soname_spec='${libname}${release}${shared_ext}$major'
  8733. ;;
  8734. aix[4-9]*)
  8735. version_type=linux
  8736. need_lib_prefix=no
  8737. need_version=no
  8738. hardcode_into_libs=yes
  8739. if test "$host_cpu" = ia64; then
  8740. # AIX 5 supports IA64
  8741. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8742. shlibpath_var=LD_LIBRARY_PATH
  8743. else
  8744. # With GCC up to 2.95.x, collect2 would create an import file
  8745. # for dependence libraries. The import file would start with
  8746. # the line `#! .'. This would cause the generated library to
  8747. # depend on `.', always an invalid library. This was fixed in
  8748. # development snapshots of GCC prior to 3.0.
  8749. case $host_os in
  8750. aix4 | aix4.[01] | aix4.[01].*)
  8751. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8752. echo ' yes '
  8753. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8754. :
  8755. else
  8756. can_build_shared=no
  8757. fi
  8758. ;;
  8759. esac
  8760. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8761. # soname into executable. Probably we can add versioning support to
  8762. # collect2, so additional links can be useful in future.
  8763. if test "$aix_use_runtimelinking" = yes; then
  8764. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8765. # instead of lib<name>.a to let people know that these are not
  8766. # typical AIX shared libraries.
  8767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8768. else
  8769. # We preserve .a as extension for shared libraries through AIX4.2
  8770. # and later when we are not doing run time linking.
  8771. library_names_spec='${libname}${release}.a $libname.a'
  8772. soname_spec='${libname}${release}${shared_ext}$major'
  8773. fi
  8774. shlibpath_var=LIBPATH
  8775. fi
  8776. ;;
  8777. amigaos*)
  8778. case $host_cpu in
  8779. powerpc)
  8780. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8781. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8783. ;;
  8784. m68k)
  8785. library_names_spec='$libname.ixlibrary $libname.a'
  8786. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8787. 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'
  8788. ;;
  8789. esac
  8790. ;;
  8791. beos*)
  8792. library_names_spec='${libname}${shared_ext}'
  8793. dynamic_linker="$host_os ld.so"
  8794. shlibpath_var=LIBRARY_PATH
  8795. ;;
  8796. bsdi[45]*)
  8797. version_type=linux
  8798. need_version=no
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. soname_spec='${libname}${release}${shared_ext}$major'
  8801. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8802. shlibpath_var=LD_LIBRARY_PATH
  8803. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8804. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8805. # the default ld.so.conf also contains /usr/contrib/lib and
  8806. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8807. # libtool to hard-code these into programs
  8808. ;;
  8809. cygwin* | mingw* | pw32* | cegcc*)
  8810. version_type=windows
  8811. shrext_cmds=".dll"
  8812. need_version=no
  8813. need_lib_prefix=no
  8814. case $GCC,$host_os in
  8815. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8816. library_names_spec='$libname.dll.a'
  8817. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8818. postinstall_cmds='base_file=`basename \${file}`~
  8819. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8820. dldir=$destdir/`dirname \$dlpath`~
  8821. test -d \$dldir || mkdir -p \$dldir~
  8822. $install_prog $dir/$dlname \$dldir/$dlname~
  8823. chmod a+x \$dldir/$dlname~
  8824. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8825. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8826. fi'
  8827. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8828. dlpath=$dir/\$dldll~
  8829. $RM \$dlpath'
  8830. shlibpath_overrides_runpath=yes
  8831. case $host_os in
  8832. cygwin*)
  8833. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8834. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8835. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8836. ;;
  8837. mingw* | cegcc*)
  8838. # MinGW DLLs use traditional 'lib' prefix
  8839. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8840. ;;
  8841. pw32*)
  8842. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8843. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8844. ;;
  8845. esac
  8846. ;;
  8847. *)
  8848. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8849. ;;
  8850. esac
  8851. dynamic_linker='Win32 ld.exe'
  8852. # FIXME: first we should search . and the directory the executable is in
  8853. shlibpath_var=PATH
  8854. ;;
  8855. darwin* | rhapsody*)
  8856. dynamic_linker="$host_os dyld"
  8857. version_type=darwin
  8858. need_lib_prefix=no
  8859. need_version=no
  8860. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8861. soname_spec='${libname}${release}${major}$shared_ext'
  8862. shlibpath_overrides_runpath=yes
  8863. shlibpath_var=DYLD_LIBRARY_PATH
  8864. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8865. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8866. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8867. ;;
  8868. dgux*)
  8869. version_type=linux
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8873. soname_spec='${libname}${release}${shared_ext}$major'
  8874. shlibpath_var=LD_LIBRARY_PATH
  8875. ;;
  8876. freebsd* | dragonfly*)
  8877. # DragonFly does not have aout. When/if they implement a new
  8878. # versioning mechanism, adjust this.
  8879. if test -x /usr/bin/objformat; then
  8880. objformat=`/usr/bin/objformat`
  8881. else
  8882. case $host_os in
  8883. freebsd[23].*) objformat=aout ;;
  8884. *) objformat=elf ;;
  8885. esac
  8886. fi
  8887. version_type=freebsd-$objformat
  8888. case $version_type in
  8889. freebsd-elf*)
  8890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8891. need_version=no
  8892. need_lib_prefix=no
  8893. ;;
  8894. freebsd-*)
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8896. need_version=yes
  8897. ;;
  8898. esac
  8899. shlibpath_var=LD_LIBRARY_PATH
  8900. case $host_os in
  8901. freebsd2.*)
  8902. shlibpath_overrides_runpath=yes
  8903. ;;
  8904. freebsd3.[01]* | freebsdelf3.[01]*)
  8905. shlibpath_overrides_runpath=yes
  8906. hardcode_into_libs=yes
  8907. ;;
  8908. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8909. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8910. shlibpath_overrides_runpath=no
  8911. hardcode_into_libs=yes
  8912. ;;
  8913. *) # from 4.6 on, and DragonFly
  8914. shlibpath_overrides_runpath=yes
  8915. hardcode_into_libs=yes
  8916. ;;
  8917. esac
  8918. ;;
  8919. gnu*)
  8920. version_type=linux
  8921. need_lib_prefix=no
  8922. need_version=no
  8923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8924. soname_spec='${libname}${release}${shared_ext}$major'
  8925. shlibpath_var=LD_LIBRARY_PATH
  8926. hardcode_into_libs=yes
  8927. ;;
  8928. haiku*)
  8929. version_type=linux
  8930. need_lib_prefix=no
  8931. need_version=no
  8932. dynamic_linker="$host_os runtime_loader"
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. shlibpath_var=LIBRARY_PATH
  8936. shlibpath_overrides_runpath=yes
  8937. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8938. hardcode_into_libs=yes
  8939. ;;
  8940. hpux9* | hpux10* | hpux11*)
  8941. # Give a soname corresponding to the major version so that dld.sl refuses to
  8942. # link against other versions.
  8943. version_type=sunos
  8944. need_lib_prefix=no
  8945. need_version=no
  8946. case $host_cpu in
  8947. ia64*)
  8948. shrext_cmds='.so'
  8949. hardcode_into_libs=yes
  8950. dynamic_linker="$host_os dld.so"
  8951. shlibpath_var=LD_LIBRARY_PATH
  8952. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8954. soname_spec='${libname}${release}${shared_ext}$major'
  8955. if test "X$HPUX_IA64_MODE" = X32; then
  8956. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8957. else
  8958. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8959. fi
  8960. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8961. ;;
  8962. hppa*64*)
  8963. shrext_cmds='.sl'
  8964. hardcode_into_libs=yes
  8965. dynamic_linker="$host_os dld.sl"
  8966. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8967. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8971. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8972. ;;
  8973. *)
  8974. shrext_cmds='.sl'
  8975. dynamic_linker="$host_os dld.sl"
  8976. shlibpath_var=SHLIB_PATH
  8977. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8979. soname_spec='${libname}${release}${shared_ext}$major'
  8980. ;;
  8981. esac
  8982. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8983. postinstall_cmds='chmod 555 $lib'
  8984. # or fails outright, so override atomically:
  8985. install_override_mode=555
  8986. ;;
  8987. interix[3-9]*)
  8988. version_type=linux
  8989. need_lib_prefix=no
  8990. need_version=no
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8992. soname_spec='${libname}${release}${shared_ext}$major'
  8993. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8994. shlibpath_var=LD_LIBRARY_PATH
  8995. shlibpath_overrides_runpath=no
  8996. hardcode_into_libs=yes
  8997. ;;
  8998. irix5* | irix6* | nonstopux*)
  8999. case $host_os in
  9000. nonstopux*) version_type=nonstopux ;;
  9001. *)
  9002. if test "$lt_cv_prog_gnu_ld" = yes; then
  9003. version_type=linux
  9004. else
  9005. version_type=irix
  9006. fi ;;
  9007. esac
  9008. need_lib_prefix=no
  9009. need_version=no
  9010. soname_spec='${libname}${release}${shared_ext}$major'
  9011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9012. case $host_os in
  9013. irix5* | nonstopux*)
  9014. libsuff= shlibsuff=
  9015. ;;
  9016. *)
  9017. case $LD in # libtool.m4 will add one of these switches to LD
  9018. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9019. libsuff= shlibsuff= libmagic=32-bit;;
  9020. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9021. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9022. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9023. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9024. *) libsuff= shlibsuff= libmagic=never-match;;
  9025. esac
  9026. ;;
  9027. esac
  9028. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9029. shlibpath_overrides_runpath=no
  9030. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9031. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9032. hardcode_into_libs=yes
  9033. ;;
  9034. # No shared lib support for Linux oldld, aout, or coff.
  9035. linux*oldld* | linux*aout* | linux*coff*)
  9036. dynamic_linker=no
  9037. ;;
  9038. # This must be Linux ELF.
  9039. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9040. version_type=linux
  9041. need_lib_prefix=no
  9042. need_version=no
  9043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9044. soname_spec='${libname}${release}${shared_ext}$major'
  9045. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9046. shlibpath_var=LD_LIBRARY_PATH
  9047. shlibpath_overrides_runpath=no
  9048. # Some binutils ld are patched to set DT_RUNPATH
  9049. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9050. $as_echo_n "(cached) " >&6
  9051. else
  9052. lt_cv_shlibpath_overrides_runpath=no
  9053. save_LDFLAGS=$LDFLAGS
  9054. save_libdir=$libdir
  9055. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9056. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9058. /* end confdefs.h. */
  9059. int
  9060. main ()
  9061. {
  9062. ;
  9063. return 0;
  9064. }
  9065. _ACEOF
  9066. if ac_fn_c_try_link "$LINENO"; then :
  9067. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9068. lt_cv_shlibpath_overrides_runpath=yes
  9069. fi
  9070. fi
  9071. rm -f core conftest.err conftest.$ac_objext \
  9072. conftest$ac_exeext conftest.$ac_ext
  9073. LDFLAGS=$save_LDFLAGS
  9074. libdir=$save_libdir
  9075. fi
  9076. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9077. # This implies no fast_install, which is unacceptable.
  9078. # Some rework will be needed to allow for fast_install
  9079. # before this can be enabled.
  9080. hardcode_into_libs=yes
  9081. # Append ld.so.conf contents to the search path
  9082. if test -f /etc/ld.so.conf; then
  9083. 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' ' '`
  9084. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9085. fi
  9086. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9087. # powerpc, because MkLinux only supported shared libraries with the
  9088. # GNU dynamic linker. Since this was broken with cross compilers,
  9089. # most powerpc-linux boxes support dynamic linking these days and
  9090. # people can always --disable-shared, the test was removed, and we
  9091. # assume the GNU/Linux dynamic linker is in use.
  9092. dynamic_linker='GNU/Linux ld.so'
  9093. ;;
  9094. netbsd*)
  9095. version_type=sunos
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9100. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9101. dynamic_linker='NetBSD (a.out) ld.so'
  9102. else
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. dynamic_linker='NetBSD ld.elf_so'
  9106. fi
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. shlibpath_overrides_runpath=yes
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. newsos6)
  9112. version_type=linux
  9113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. ;;
  9117. *nto* | *qnx*)
  9118. version_type=qnx
  9119. need_lib_prefix=no
  9120. need_version=no
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. shlibpath_overrides_runpath=no
  9125. hardcode_into_libs=yes
  9126. dynamic_linker='ldqnx.so'
  9127. ;;
  9128. openbsd*)
  9129. version_type=sunos
  9130. sys_lib_dlsearch_path_spec="/usr/lib"
  9131. need_lib_prefix=no
  9132. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9133. case $host_os in
  9134. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9135. *) need_version=no ;;
  9136. esac
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9141. case $host_os in
  9142. openbsd2.[89] | openbsd2.[89].*)
  9143. shlibpath_overrides_runpath=no
  9144. ;;
  9145. *)
  9146. shlibpath_overrides_runpath=yes
  9147. ;;
  9148. esac
  9149. else
  9150. shlibpath_overrides_runpath=yes
  9151. fi
  9152. ;;
  9153. os2*)
  9154. libname_spec='$name'
  9155. shrext_cmds=".dll"
  9156. need_lib_prefix=no
  9157. library_names_spec='$libname${shared_ext} $libname.a'
  9158. dynamic_linker='OS/2 ld.exe'
  9159. shlibpath_var=LIBPATH
  9160. ;;
  9161. osf3* | osf4* | osf5*)
  9162. version_type=osf
  9163. need_lib_prefix=no
  9164. need_version=no
  9165. soname_spec='${libname}${release}${shared_ext}$major'
  9166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9167. shlibpath_var=LD_LIBRARY_PATH
  9168. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9169. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9170. ;;
  9171. rdos*)
  9172. dynamic_linker=no
  9173. ;;
  9174. solaris*)
  9175. version_type=linux
  9176. need_lib_prefix=no
  9177. need_version=no
  9178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9179. soname_spec='${libname}${release}${shared_ext}$major'
  9180. shlibpath_var=LD_LIBRARY_PATH
  9181. shlibpath_overrides_runpath=yes
  9182. hardcode_into_libs=yes
  9183. # ldd complains unless libraries are executable
  9184. postinstall_cmds='chmod +x $lib'
  9185. ;;
  9186. sunos4*)
  9187. version_type=sunos
  9188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9189. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. shlibpath_overrides_runpath=yes
  9192. if test "$with_gnu_ld" = yes; then
  9193. need_lib_prefix=no
  9194. fi
  9195. need_version=yes
  9196. ;;
  9197. sysv4 | sysv4.3*)
  9198. version_type=linux
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9200. soname_spec='${libname}${release}${shared_ext}$major'
  9201. shlibpath_var=LD_LIBRARY_PATH
  9202. case $host_vendor in
  9203. sni)
  9204. shlibpath_overrides_runpath=no
  9205. need_lib_prefix=no
  9206. runpath_var=LD_RUN_PATH
  9207. ;;
  9208. siemens)
  9209. need_lib_prefix=no
  9210. ;;
  9211. motorola)
  9212. need_lib_prefix=no
  9213. need_version=no
  9214. shlibpath_overrides_runpath=no
  9215. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9216. ;;
  9217. esac
  9218. ;;
  9219. sysv4*MP*)
  9220. if test -d /usr/nec ;then
  9221. version_type=linux
  9222. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9223. soname_spec='$libname${shared_ext}.$major'
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. fi
  9226. ;;
  9227. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9228. version_type=freebsd-elf
  9229. need_lib_prefix=no
  9230. need_version=no
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. shlibpath_overrides_runpath=yes
  9235. hardcode_into_libs=yes
  9236. if test "$with_gnu_ld" = yes; then
  9237. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9238. else
  9239. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9240. case $host_os in
  9241. sco3.2v5*)
  9242. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9243. ;;
  9244. esac
  9245. fi
  9246. sys_lib_dlsearch_path_spec='/usr/lib'
  9247. ;;
  9248. tpf*)
  9249. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9250. version_type=linux
  9251. need_lib_prefix=no
  9252. need_version=no
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. shlibpath_overrides_runpath=no
  9256. hardcode_into_libs=yes
  9257. ;;
  9258. uts4*)
  9259. version_type=linux
  9260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9261. soname_spec='${libname}${release}${shared_ext}$major'
  9262. shlibpath_var=LD_LIBRARY_PATH
  9263. ;;
  9264. *)
  9265. dynamic_linker=no
  9266. ;;
  9267. esac
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9269. $as_echo "$dynamic_linker" >&6; }
  9270. test "$dynamic_linker" = no && can_build_shared=no
  9271. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9272. if test "$GCC" = yes; then
  9273. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9274. fi
  9275. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9276. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9277. fi
  9278. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9279. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9280. fi
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9282. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9283. hardcode_action=
  9284. if test -n "$hardcode_libdir_flag_spec" ||
  9285. test -n "$runpath_var" ||
  9286. test "X$hardcode_automatic" = "Xyes" ; then
  9287. # We can hardcode non-existent directories.
  9288. if test "$hardcode_direct" != no &&
  9289. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9290. # have to relink, otherwise we might link with an installed library
  9291. # when we should be linking with a yet-to-be-installed one
  9292. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9293. test "$hardcode_minus_L" != no; then
  9294. # Linking always hardcodes the temporary library directory.
  9295. hardcode_action=relink
  9296. else
  9297. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9298. hardcode_action=immediate
  9299. fi
  9300. else
  9301. # We cannot hardcode anything, or else we can only hardcode existing
  9302. # directories.
  9303. hardcode_action=unsupported
  9304. fi
  9305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9306. $as_echo "$hardcode_action" >&6; }
  9307. if test "$hardcode_action" = relink ||
  9308. test "$inherit_rpath" = yes; then
  9309. # Fast installation is not supported
  9310. enable_fast_install=no
  9311. elif test "$shlibpath_overrides_runpath" = yes ||
  9312. test "$enable_shared" = no; then
  9313. # Fast installation is not necessary
  9314. enable_fast_install=needless
  9315. fi
  9316. if test "x$enable_dlopen" != xyes; then
  9317. enable_dlopen=unknown
  9318. enable_dlopen_self=unknown
  9319. enable_dlopen_self_static=unknown
  9320. else
  9321. lt_cv_dlopen=no
  9322. lt_cv_dlopen_libs=
  9323. case $host_os in
  9324. beos*)
  9325. lt_cv_dlopen="load_add_on"
  9326. lt_cv_dlopen_libs=
  9327. lt_cv_dlopen_self=yes
  9328. ;;
  9329. mingw* | pw32* | cegcc*)
  9330. lt_cv_dlopen="LoadLibrary"
  9331. lt_cv_dlopen_libs=
  9332. ;;
  9333. cygwin*)
  9334. lt_cv_dlopen="dlopen"
  9335. lt_cv_dlopen_libs=
  9336. ;;
  9337. darwin*)
  9338. # if libdl is installed we need to link against it
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9340. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9341. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9342. $as_echo_n "(cached) " >&6
  9343. else
  9344. ac_check_lib_save_LIBS=$LIBS
  9345. LIBS="-ldl $LIBS"
  9346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9347. /* end confdefs.h. */
  9348. /* Override any GCC internal prototype to avoid an error.
  9349. Use char because int might match the return type of a GCC
  9350. builtin and then its argument prototype would still apply. */
  9351. #ifdef __cplusplus
  9352. extern "C"
  9353. #endif
  9354. char dlopen ();
  9355. int
  9356. main ()
  9357. {
  9358. return dlopen ();
  9359. ;
  9360. return 0;
  9361. }
  9362. _ACEOF
  9363. if ac_fn_c_try_link "$LINENO"; then :
  9364. ac_cv_lib_dl_dlopen=yes
  9365. else
  9366. ac_cv_lib_dl_dlopen=no
  9367. fi
  9368. rm -f core conftest.err conftest.$ac_objext \
  9369. conftest$ac_exeext conftest.$ac_ext
  9370. LIBS=$ac_check_lib_save_LIBS
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9373. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9374. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9375. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9376. else
  9377. lt_cv_dlopen="dyld"
  9378. lt_cv_dlopen_libs=
  9379. lt_cv_dlopen_self=yes
  9380. fi
  9381. ;;
  9382. *)
  9383. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9384. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9385. lt_cv_dlopen="shl_load"
  9386. else
  9387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9388. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9389. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9390. $as_echo_n "(cached) " >&6
  9391. else
  9392. ac_check_lib_save_LIBS=$LIBS
  9393. LIBS="-ldld $LIBS"
  9394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9395. /* end confdefs.h. */
  9396. /* Override any GCC internal prototype to avoid an error.
  9397. Use char because int might match the return type of a GCC
  9398. builtin and then its argument prototype would still apply. */
  9399. #ifdef __cplusplus
  9400. extern "C"
  9401. #endif
  9402. char shl_load ();
  9403. int
  9404. main ()
  9405. {
  9406. return shl_load ();
  9407. ;
  9408. return 0;
  9409. }
  9410. _ACEOF
  9411. if ac_fn_c_try_link "$LINENO"; then :
  9412. ac_cv_lib_dld_shl_load=yes
  9413. else
  9414. ac_cv_lib_dld_shl_load=no
  9415. fi
  9416. rm -f core conftest.err conftest.$ac_objext \
  9417. conftest$ac_exeext conftest.$ac_ext
  9418. LIBS=$ac_check_lib_save_LIBS
  9419. fi
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9421. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9422. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9423. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9424. else
  9425. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9426. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9427. lt_cv_dlopen="dlopen"
  9428. else
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9430. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9431. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9432. $as_echo_n "(cached) " >&6
  9433. else
  9434. ac_check_lib_save_LIBS=$LIBS
  9435. LIBS="-ldl $LIBS"
  9436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9437. /* end confdefs.h. */
  9438. /* Override any GCC internal prototype to avoid an error.
  9439. Use char because int might match the return type of a GCC
  9440. builtin and then its argument prototype would still apply. */
  9441. #ifdef __cplusplus
  9442. extern "C"
  9443. #endif
  9444. char dlopen ();
  9445. int
  9446. main ()
  9447. {
  9448. return dlopen ();
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. if ac_fn_c_try_link "$LINENO"; then :
  9454. ac_cv_lib_dl_dlopen=yes
  9455. else
  9456. ac_cv_lib_dl_dlopen=no
  9457. fi
  9458. rm -f core conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. LIBS=$ac_check_lib_save_LIBS
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9463. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9464. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9466. else
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9468. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9469. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9470. $as_echo_n "(cached) " >&6
  9471. else
  9472. ac_check_lib_save_LIBS=$LIBS
  9473. LIBS="-lsvld $LIBS"
  9474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9475. /* end confdefs.h. */
  9476. /* Override any GCC internal prototype to avoid an error.
  9477. Use char because int might match the return type of a GCC
  9478. builtin and then its argument prototype would still apply. */
  9479. #ifdef __cplusplus
  9480. extern "C"
  9481. #endif
  9482. char dlopen ();
  9483. int
  9484. main ()
  9485. {
  9486. return dlopen ();
  9487. ;
  9488. return 0;
  9489. }
  9490. _ACEOF
  9491. if ac_fn_c_try_link "$LINENO"; then :
  9492. ac_cv_lib_svld_dlopen=yes
  9493. else
  9494. ac_cv_lib_svld_dlopen=no
  9495. fi
  9496. rm -f core conftest.err conftest.$ac_objext \
  9497. conftest$ac_exeext conftest.$ac_ext
  9498. LIBS=$ac_check_lib_save_LIBS
  9499. fi
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9501. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9502. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9503. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9504. else
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9506. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9507. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9508. $as_echo_n "(cached) " >&6
  9509. else
  9510. ac_check_lib_save_LIBS=$LIBS
  9511. LIBS="-ldld $LIBS"
  9512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9513. /* end confdefs.h. */
  9514. /* Override any GCC internal prototype to avoid an error.
  9515. Use char because int might match the return type of a GCC
  9516. builtin and then its argument prototype would still apply. */
  9517. #ifdef __cplusplus
  9518. extern "C"
  9519. #endif
  9520. char dld_link ();
  9521. int
  9522. main ()
  9523. {
  9524. return dld_link ();
  9525. ;
  9526. return 0;
  9527. }
  9528. _ACEOF
  9529. if ac_fn_c_try_link "$LINENO"; then :
  9530. ac_cv_lib_dld_dld_link=yes
  9531. else
  9532. ac_cv_lib_dld_dld_link=no
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. LIBS=$ac_check_lib_save_LIBS
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9539. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9540. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9541. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9542. fi
  9543. fi
  9544. fi
  9545. fi
  9546. fi
  9547. fi
  9548. ;;
  9549. esac
  9550. if test "x$lt_cv_dlopen" != xno; then
  9551. enable_dlopen=yes
  9552. else
  9553. enable_dlopen=no
  9554. fi
  9555. case $lt_cv_dlopen in
  9556. dlopen)
  9557. save_CPPFLAGS="$CPPFLAGS"
  9558. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9559. save_LDFLAGS="$LDFLAGS"
  9560. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9561. save_LIBS="$LIBS"
  9562. LIBS="$lt_cv_dlopen_libs $LIBS"
  9563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9564. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9565. if test "${lt_cv_dlopen_self+set}" = set; then :
  9566. $as_echo_n "(cached) " >&6
  9567. else
  9568. if test "$cross_compiling" = yes; then :
  9569. lt_cv_dlopen_self=cross
  9570. else
  9571. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9572. lt_status=$lt_dlunknown
  9573. cat > conftest.$ac_ext <<_LT_EOF
  9574. #line 11124 "configure"
  9575. #include "confdefs.h"
  9576. #if HAVE_DLFCN_H
  9577. #include <dlfcn.h>
  9578. #endif
  9579. #include <stdio.h>
  9580. #ifdef RTLD_GLOBAL
  9581. # define LT_DLGLOBAL RTLD_GLOBAL
  9582. #else
  9583. # ifdef DL_GLOBAL
  9584. # define LT_DLGLOBAL DL_GLOBAL
  9585. # else
  9586. # define LT_DLGLOBAL 0
  9587. # endif
  9588. #endif
  9589. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9590. find out it does not work in some platform. */
  9591. #ifndef LT_DLLAZY_OR_NOW
  9592. # ifdef RTLD_LAZY
  9593. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9594. # else
  9595. # ifdef DL_LAZY
  9596. # define LT_DLLAZY_OR_NOW DL_LAZY
  9597. # else
  9598. # ifdef RTLD_NOW
  9599. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9600. # else
  9601. # ifdef DL_NOW
  9602. # define LT_DLLAZY_OR_NOW DL_NOW
  9603. # else
  9604. # define LT_DLLAZY_OR_NOW 0
  9605. # endif
  9606. # endif
  9607. # endif
  9608. # endif
  9609. #endif
  9610. /* When -fvisbility=hidden is used, assume the code has been annotated
  9611. correspondingly for the symbols needed. */
  9612. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9613. void fnord () __attribute__((visibility("default")));
  9614. #endif
  9615. void fnord () { int i=42; }
  9616. int main ()
  9617. {
  9618. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9619. int status = $lt_dlunknown;
  9620. if (self)
  9621. {
  9622. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9623. else
  9624. {
  9625. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9626. else puts (dlerror ());
  9627. }
  9628. /* dlclose (self); */
  9629. }
  9630. else
  9631. puts (dlerror ());
  9632. return status;
  9633. }
  9634. _LT_EOF
  9635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9636. (eval $ac_link) 2>&5
  9637. ac_status=$?
  9638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9639. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9640. (./conftest; exit; ) >&5 2>/dev/null
  9641. lt_status=$?
  9642. case x$lt_status in
  9643. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9644. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9645. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9646. esac
  9647. else :
  9648. # compilation failed
  9649. lt_cv_dlopen_self=no
  9650. fi
  9651. fi
  9652. rm -fr conftest*
  9653. fi
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9655. $as_echo "$lt_cv_dlopen_self" >&6; }
  9656. if test "x$lt_cv_dlopen_self" = xyes; then
  9657. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9659. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9660. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9661. $as_echo_n "(cached) " >&6
  9662. else
  9663. if test "$cross_compiling" = yes; then :
  9664. lt_cv_dlopen_self_static=cross
  9665. else
  9666. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9667. lt_status=$lt_dlunknown
  9668. cat > conftest.$ac_ext <<_LT_EOF
  9669. #line 11230 "configure"
  9670. #include "confdefs.h"
  9671. #if HAVE_DLFCN_H
  9672. #include <dlfcn.h>
  9673. #endif
  9674. #include <stdio.h>
  9675. #ifdef RTLD_GLOBAL
  9676. # define LT_DLGLOBAL RTLD_GLOBAL
  9677. #else
  9678. # ifdef DL_GLOBAL
  9679. # define LT_DLGLOBAL DL_GLOBAL
  9680. # else
  9681. # define LT_DLGLOBAL 0
  9682. # endif
  9683. #endif
  9684. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9685. find out it does not work in some platform. */
  9686. #ifndef LT_DLLAZY_OR_NOW
  9687. # ifdef RTLD_LAZY
  9688. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9689. # else
  9690. # ifdef DL_LAZY
  9691. # define LT_DLLAZY_OR_NOW DL_LAZY
  9692. # else
  9693. # ifdef RTLD_NOW
  9694. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9695. # else
  9696. # ifdef DL_NOW
  9697. # define LT_DLLAZY_OR_NOW DL_NOW
  9698. # else
  9699. # define LT_DLLAZY_OR_NOW 0
  9700. # endif
  9701. # endif
  9702. # endif
  9703. # endif
  9704. #endif
  9705. /* When -fvisbility=hidden is used, assume the code has been annotated
  9706. correspondingly for the symbols needed. */
  9707. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9708. void fnord () __attribute__((visibility("default")));
  9709. #endif
  9710. void fnord () { int i=42; }
  9711. int main ()
  9712. {
  9713. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9714. int status = $lt_dlunknown;
  9715. if (self)
  9716. {
  9717. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9718. else
  9719. {
  9720. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9721. else puts (dlerror ());
  9722. }
  9723. /* dlclose (self); */
  9724. }
  9725. else
  9726. puts (dlerror ());
  9727. return status;
  9728. }
  9729. _LT_EOF
  9730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9731. (eval $ac_link) 2>&5
  9732. ac_status=$?
  9733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9734. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9735. (./conftest; exit; ) >&5 2>/dev/null
  9736. lt_status=$?
  9737. case x$lt_status in
  9738. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9739. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9740. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9741. esac
  9742. else :
  9743. # compilation failed
  9744. lt_cv_dlopen_self_static=no
  9745. fi
  9746. fi
  9747. rm -fr conftest*
  9748. fi
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9750. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9751. fi
  9752. CPPFLAGS="$save_CPPFLAGS"
  9753. LDFLAGS="$save_LDFLAGS"
  9754. LIBS="$save_LIBS"
  9755. ;;
  9756. esac
  9757. case $lt_cv_dlopen_self in
  9758. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9759. *) enable_dlopen_self=unknown ;;
  9760. esac
  9761. case $lt_cv_dlopen_self_static in
  9762. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9763. *) enable_dlopen_self_static=unknown ;;
  9764. esac
  9765. fi
  9766. striplib=
  9767. old_striplib=
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9769. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9770. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9771. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9772. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9774. $as_echo "yes" >&6; }
  9775. else
  9776. # FIXME - insert some real tests, host_os isn't really good enough
  9777. case $host_os in
  9778. darwin*)
  9779. if test -n "$STRIP" ; then
  9780. striplib="$STRIP -x"
  9781. old_striplib="$STRIP -S"
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9783. $as_echo "yes" >&6; }
  9784. else
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9786. $as_echo "no" >&6; }
  9787. fi
  9788. ;;
  9789. *)
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9791. $as_echo "no" >&6; }
  9792. ;;
  9793. esac
  9794. fi
  9795. # Report which library types will actually be built
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9797. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9799. $as_echo "$can_build_shared" >&6; }
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9801. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9802. test "$can_build_shared" = "no" && enable_shared=no
  9803. # On AIX, shared libraries and static libraries use the same namespace, and
  9804. # are all built from PIC.
  9805. case $host_os in
  9806. aix3*)
  9807. test "$enable_shared" = yes && enable_static=no
  9808. if test -n "$RANLIB"; then
  9809. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9810. postinstall_cmds='$RANLIB $lib'
  9811. fi
  9812. ;;
  9813. aix[4-9]*)
  9814. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9815. test "$enable_shared" = yes && enable_static=no
  9816. fi
  9817. ;;
  9818. esac
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9820. $as_echo "$enable_shared" >&6; }
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9822. $as_echo_n "checking whether to build static libraries... " >&6; }
  9823. # Make sure either enable_shared or enable_static is yes.
  9824. test "$enable_shared" = yes || enable_static=yes
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9826. $as_echo "$enable_static" >&6; }
  9827. fi
  9828. ac_ext=c
  9829. ac_cpp='$CPP $CPPFLAGS'
  9830. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9831. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9832. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9833. CC="$lt_save_CC"
  9834. # Source file extension for Go test sources.
  9835. ac_ext=go
  9836. # Object file extension for compiled Go test sources.
  9837. objext=o
  9838. objext_GO=$objext
  9839. # Code to be used in simple compile tests
  9840. lt_simple_compile_test_code="package main; func main() { }"
  9841. # Code to be used in simple link tests
  9842. lt_simple_link_test_code='package main; func main() { }'
  9843. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9844. # If no C compiler was specified, use CC.
  9845. LTCC=${LTCC-"$CC"}
  9846. # If no C compiler flags were specified, use CFLAGS.
  9847. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9848. # Allow CC to be a program name with arguments.
  9849. compiler=$CC
  9850. # save warnings/boilerplate of simple test code
  9851. ac_outfile=conftest.$ac_objext
  9852. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9853. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9854. _lt_compiler_boilerplate=`cat conftest.err`
  9855. $RM conftest*
  9856. ac_outfile=conftest.$ac_objext
  9857. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9858. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9859. _lt_linker_boilerplate=`cat conftest.err`
  9860. $RM -r conftest*
  9861. # Allow CC to be a program name with arguments.
  9862. lt_save_CC="$CC"
  9863. lt_save_GCC="$GCC"
  9864. GCC=yes
  9865. CC=${GOC-"gccgo"}
  9866. compiler=$CC
  9867. compiler_GO=$CC
  9868. LD_GO="$LD"
  9869. for cc_temp in $compiler""; do
  9870. case $cc_temp in
  9871. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9872. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9873. \-*) ;;
  9874. *) break;;
  9875. esac
  9876. done
  9877. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9878. # Go did not exist at the time GCC didn't implicitly link libc in.
  9879. archive_cmds_need_lc_GO=no
  9880. old_archive_cmds_GO=$old_archive_cmds
  9881. ## CAVEAT EMPTOR:
  9882. ## There is no encapsulation within the following macros, do not change
  9883. ## the running order or otherwise move them around unless you know exactly
  9884. ## what you are doing...
  9885. if test -n "$compiler"; then
  9886. lt_prog_compiler_no_builtin_flag_GO=
  9887. if test "$GCC" = yes; then
  9888. case $cc_basename in
  9889. nvcc*)
  9890. lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
  9891. *)
  9892. lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
  9893. esac
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9895. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9896. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. lt_cv_prog_compiler_rtti_exceptions=no
  9900. ac_outfile=conftest.$ac_objext
  9901. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9902. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9903. # Insert the option either (1) after the last *FLAGS variable, or
  9904. # (2) before a word containing "conftest.", or (3) at the end.
  9905. # Note that $ac_compile itself does not contain backslashes and begins
  9906. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9907. # The option is referenced via a variable to avoid confusing sed.
  9908. lt_compile=`echo "$ac_compile" | $SED \
  9909. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9910. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9911. -e 's:$: $lt_compiler_flag:'`
  9912. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9913. (eval "$lt_compile" 2>conftest.err)
  9914. ac_status=$?
  9915. cat conftest.err >&5
  9916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. if (exit $ac_status) && test -s "$ac_outfile"; then
  9918. # The compiler can only warn and ignore the option if not recognized
  9919. # So say no if there are warnings other than the usual output.
  9920. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9921. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9922. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9923. lt_cv_prog_compiler_rtti_exceptions=yes
  9924. fi
  9925. fi
  9926. $RM conftest*
  9927. fi
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9929. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9930. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9931. lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
  9932. else
  9933. :
  9934. fi
  9935. fi
  9936. lt_prog_compiler_wl_GO=
  9937. lt_prog_compiler_pic_GO=
  9938. lt_prog_compiler_static_GO=
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9940. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9941. if test "$GCC" = yes; then
  9942. lt_prog_compiler_wl_GO='-Wl,'
  9943. lt_prog_compiler_static_GO='-static'
  9944. case $host_os in
  9945. aix*)
  9946. # All AIX code is PIC.
  9947. if test "$host_cpu" = ia64; then
  9948. # AIX 5 now supports IA64 processor
  9949. lt_prog_compiler_static_GO='-Bstatic'
  9950. fi
  9951. lt_prog_compiler_pic_GO='-fPIC'
  9952. ;;
  9953. amigaos*)
  9954. case $host_cpu in
  9955. powerpc)
  9956. # see comment about AmigaOS4 .so support
  9957. lt_prog_compiler_pic_GO='-fPIC'
  9958. ;;
  9959. m68k)
  9960. # FIXME: we need at least 68020 code to build shared libraries, but
  9961. # adding the `-m68020' flag to GCC prevents building anything better,
  9962. # like `-m68040'.
  9963. lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
  9964. ;;
  9965. esac
  9966. ;;
  9967. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9968. # PIC is the default for these OSes.
  9969. ;;
  9970. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9971. # This hack is so that the source file can tell whether it is being
  9972. # built for inclusion in a dll (and should export symbols for example).
  9973. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9974. # (--disable-auto-import) libraries
  9975. lt_prog_compiler_pic_GO='-DDLL_EXPORT'
  9976. ;;
  9977. darwin* | rhapsody*)
  9978. # PIC is the default on this platform
  9979. # Common symbols not allowed in MH_DYLIB files
  9980. lt_prog_compiler_pic_GO='-fno-common'
  9981. ;;
  9982. haiku*)
  9983. # PIC is the default for Haiku.
  9984. # The "-static" flag exists, but is broken.
  9985. lt_prog_compiler_static_GO=
  9986. ;;
  9987. hpux*)
  9988. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9989. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9990. # sets the default TLS model and affects inlining.
  9991. case $host_cpu in
  9992. hppa*64*)
  9993. # +Z the default
  9994. ;;
  9995. *)
  9996. lt_prog_compiler_pic_GO='-fPIC'
  9997. ;;
  9998. esac
  9999. ;;
  10000. interix[3-9]*)
  10001. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10002. # Instead, we relocate shared libraries at runtime.
  10003. ;;
  10004. msdosdjgpp*)
  10005. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10006. # on systems that don't support them.
  10007. lt_prog_compiler_can_build_shared_GO=no
  10008. enable_shared=no
  10009. ;;
  10010. *nto* | *qnx*)
  10011. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10012. # it will coredump.
  10013. lt_prog_compiler_pic_GO='-fPIC -shared'
  10014. ;;
  10015. sysv4*MP*)
  10016. if test -d /usr/nec; then
  10017. lt_prog_compiler_pic_GO=-Kconform_pic
  10018. fi
  10019. ;;
  10020. *)
  10021. lt_prog_compiler_pic_GO='-fPIC'
  10022. ;;
  10023. esac
  10024. case $cc_basename in
  10025. nvcc*) # Cuda Compiler Driver 2.2
  10026. lt_prog_compiler_wl_GO='-Xlinker '
  10027. lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
  10028. ;;
  10029. esac
  10030. else
  10031. # PORTME Check for flag to pass linker flags through the system compiler.
  10032. case $host_os in
  10033. aix*)
  10034. lt_prog_compiler_wl_GO='-Wl,'
  10035. if test "$host_cpu" = ia64; then
  10036. # AIX 5 now supports IA64 processor
  10037. lt_prog_compiler_static_GO='-Bstatic'
  10038. else
  10039. lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
  10040. fi
  10041. ;;
  10042. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10043. # This hack is so that the source file can tell whether it is being
  10044. # built for inclusion in a dll (and should export symbols for example).
  10045. lt_prog_compiler_pic_GO='-DDLL_EXPORT'
  10046. ;;
  10047. hpux9* | hpux10* | hpux11*)
  10048. lt_prog_compiler_wl_GO='-Wl,'
  10049. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10050. # not for PA HP-UX.
  10051. case $host_cpu in
  10052. hppa*64*|ia64*)
  10053. # +Z the default
  10054. ;;
  10055. *)
  10056. lt_prog_compiler_pic_GO='+Z'
  10057. ;;
  10058. esac
  10059. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10060. lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
  10061. ;;
  10062. irix5* | irix6* | nonstopux*)
  10063. lt_prog_compiler_wl_GO='-Wl,'
  10064. # PIC (with -KPIC) is the default.
  10065. lt_prog_compiler_static_GO='-non_shared'
  10066. ;;
  10067. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10068. case $cc_basename in
  10069. # old Intel for x86_64 which still supported -KPIC.
  10070. ecc*)
  10071. lt_prog_compiler_wl_GO='-Wl,'
  10072. lt_prog_compiler_pic_GO='-KPIC'
  10073. lt_prog_compiler_static_GO='-static'
  10074. ;;
  10075. # icc used to be incompatible with GCC.
  10076. # ICC 10 doesn't accept -KPIC any more.
  10077. icc* | ifort*)
  10078. lt_prog_compiler_wl_GO='-Wl,'
  10079. lt_prog_compiler_pic_GO='-fPIC'
  10080. lt_prog_compiler_static_GO='-static'
  10081. ;;
  10082. # Lahey Fortran 8.1.
  10083. lf95*)
  10084. lt_prog_compiler_wl_GO='-Wl,'
  10085. lt_prog_compiler_pic_GO='--shared'
  10086. lt_prog_compiler_static_GO='--static'
  10087. ;;
  10088. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10089. # Portland Group compilers (*not* the Pentium gcc compiler,
  10090. # which looks to be a dead project)
  10091. lt_prog_compiler_wl_GO='-Wl,'
  10092. lt_prog_compiler_pic_GO='-fpic'
  10093. lt_prog_compiler_static_GO='-Bstatic'
  10094. ;;
  10095. ccc*)
  10096. lt_prog_compiler_wl_GO='-Wl,'
  10097. # All Alpha code is PIC.
  10098. lt_prog_compiler_static_GO='-non_shared'
  10099. ;;
  10100. xl* | bgxl* | bgf* | mpixl*)
  10101. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10102. lt_prog_compiler_wl_GO='-Wl,'
  10103. lt_prog_compiler_pic_GO='-qpic'
  10104. lt_prog_compiler_static_GO='-qstaticlink'
  10105. ;;
  10106. *)
  10107. case `$CC -V 2>&1 | sed 5q` in
  10108. *Sun\ F* | *Sun*Fortran*)
  10109. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10110. lt_prog_compiler_pic_GO='-KPIC'
  10111. lt_prog_compiler_static_GO='-Bstatic'
  10112. lt_prog_compiler_wl_GO=''
  10113. ;;
  10114. *Sun\ C*)
  10115. # Sun C 5.9
  10116. lt_prog_compiler_pic_GO='-KPIC'
  10117. lt_prog_compiler_static_GO='-Bstatic'
  10118. lt_prog_compiler_wl_GO='-Wl,'
  10119. ;;
  10120. esac
  10121. ;;
  10122. esac
  10123. ;;
  10124. newsos6)
  10125. lt_prog_compiler_pic_GO='-KPIC'
  10126. lt_prog_compiler_static_GO='-Bstatic'
  10127. ;;
  10128. *nto* | *qnx*)
  10129. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10130. # it will coredump.
  10131. lt_prog_compiler_pic_GO='-fPIC -shared'
  10132. ;;
  10133. osf3* | osf4* | osf5*)
  10134. lt_prog_compiler_wl_GO='-Wl,'
  10135. # All OSF/1 code is PIC.
  10136. lt_prog_compiler_static_GO='-non_shared'
  10137. ;;
  10138. rdos*)
  10139. lt_prog_compiler_static_GO='-non_shared'
  10140. ;;
  10141. solaris*)
  10142. lt_prog_compiler_pic_GO='-KPIC'
  10143. lt_prog_compiler_static_GO='-Bstatic'
  10144. case $cc_basename in
  10145. f77* | f90* | f95*)
  10146. lt_prog_compiler_wl_GO='-Qoption ld ';;
  10147. *)
  10148. lt_prog_compiler_wl_GO='-Wl,';;
  10149. esac
  10150. ;;
  10151. sunos4*)
  10152. lt_prog_compiler_wl_GO='-Qoption ld '
  10153. lt_prog_compiler_pic_GO='-PIC'
  10154. lt_prog_compiler_static_GO='-Bstatic'
  10155. ;;
  10156. sysv4 | sysv4.2uw2* | sysv4.3*)
  10157. lt_prog_compiler_wl_GO='-Wl,'
  10158. lt_prog_compiler_pic_GO='-KPIC'
  10159. lt_prog_compiler_static_GO='-Bstatic'
  10160. ;;
  10161. sysv4*MP*)
  10162. if test -d /usr/nec ;then
  10163. lt_prog_compiler_pic_GO='-Kconform_pic'
  10164. lt_prog_compiler_static_GO='-Bstatic'
  10165. fi
  10166. ;;
  10167. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10168. lt_prog_compiler_wl_GO='-Wl,'
  10169. lt_prog_compiler_pic_GO='-KPIC'
  10170. lt_prog_compiler_static_GO='-Bstatic'
  10171. ;;
  10172. unicos*)
  10173. lt_prog_compiler_wl_GO='-Wl,'
  10174. lt_prog_compiler_can_build_shared_GO=no
  10175. ;;
  10176. uts4*)
  10177. lt_prog_compiler_pic_GO='-pic'
  10178. lt_prog_compiler_static_GO='-Bstatic'
  10179. ;;
  10180. *)
  10181. lt_prog_compiler_can_build_shared_GO=no
  10182. ;;
  10183. esac
  10184. fi
  10185. case $host_os in
  10186. # For platforms which do not support PIC, -DPIC is meaningless:
  10187. *djgpp*)
  10188. lt_prog_compiler_pic_GO=
  10189. ;;
  10190. *)
  10191. lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
  10192. ;;
  10193. esac
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
  10195. $as_echo "$lt_prog_compiler_pic_GO" >&6; }
  10196. #
  10197. # Check to make sure the PIC flag actually works.
  10198. #
  10199. if test -n "$lt_prog_compiler_pic_GO"; then
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
  10201. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
  10202. if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
  10203. $as_echo_n "(cached) " >&6
  10204. else
  10205. lt_cv_prog_compiler_pic_works_GO=no
  10206. ac_outfile=conftest.$ac_objext
  10207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10208. lt_compiler_flag="$lt_prog_compiler_pic_GO"
  10209. # Insert the option either (1) after the last *FLAGS variable, or
  10210. # (2) before a word containing "conftest.", or (3) at the end.
  10211. # Note that $ac_compile itself does not contain backslashes and begins
  10212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10213. # The option is referenced via a variable to avoid confusing sed.
  10214. lt_compile=`echo "$ac_compile" | $SED \
  10215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10217. -e 's:$: $lt_compiler_flag:'`
  10218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10219. (eval "$lt_compile" 2>conftest.err)
  10220. ac_status=$?
  10221. cat conftest.err >&5
  10222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. if (exit $ac_status) && test -s "$ac_outfile"; then
  10224. # The compiler can only warn and ignore the option if not recognized
  10225. # So say no if there are warnings other than the usual output.
  10226. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10227. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10228. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10229. lt_cv_prog_compiler_pic_works_GO=yes
  10230. fi
  10231. fi
  10232. $RM conftest*
  10233. fi
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
  10235. $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
  10236. if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
  10237. case $lt_prog_compiler_pic_GO in
  10238. "" | " "*) ;;
  10239. *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
  10240. esac
  10241. else
  10242. lt_prog_compiler_pic_GO=
  10243. lt_prog_compiler_can_build_shared_GO=no
  10244. fi
  10245. fi
  10246. #
  10247. # Check to make sure the static flag actually works.
  10248. #
  10249. wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10251. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10252. if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. lt_cv_prog_compiler_static_works_GO=no
  10256. save_LDFLAGS="$LDFLAGS"
  10257. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10258. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10259. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10260. # The linker can only warn and ignore the option if not recognized
  10261. # So say no if there are warnings
  10262. if test -s conftest.err; then
  10263. # Append any errors to the config.log.
  10264. cat conftest.err 1>&5
  10265. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10266. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10267. if diff conftest.exp conftest.er2 >/dev/null; then
  10268. lt_cv_prog_compiler_static_works_GO=yes
  10269. fi
  10270. else
  10271. lt_cv_prog_compiler_static_works_GO=yes
  10272. fi
  10273. fi
  10274. $RM -r conftest*
  10275. LDFLAGS="$save_LDFLAGS"
  10276. fi
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
  10278. $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
  10279. if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
  10280. :
  10281. else
  10282. lt_prog_compiler_static_GO=
  10283. fi
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10285. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10286. if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. lt_cv_prog_compiler_c_o_GO=no
  10290. $RM -r conftest 2>/dev/null
  10291. mkdir conftest
  10292. cd conftest
  10293. mkdir out
  10294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10295. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10296. # Insert the option either (1) after the last *FLAGS variable, or
  10297. # (2) before a word containing "conftest.", or (3) at the end.
  10298. # Note that $ac_compile itself does not contain backslashes and begins
  10299. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10300. lt_compile=`echo "$ac_compile" | $SED \
  10301. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10302. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10303. -e 's:$: $lt_compiler_flag:'`
  10304. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10305. (eval "$lt_compile" 2>out/conftest.err)
  10306. ac_status=$?
  10307. cat out/conftest.err >&5
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10310. then
  10311. # The compiler can only warn and ignore the option if not recognized
  10312. # So say no if there are warnings
  10313. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10314. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10315. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10316. lt_cv_prog_compiler_c_o_GO=yes
  10317. fi
  10318. fi
  10319. chmod u+w . 2>&5
  10320. $RM conftest*
  10321. # SGI C++ compiler will create directory out/ii_files/ for
  10322. # template instantiation
  10323. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10324. $RM out/* && rmdir out
  10325. cd ..
  10326. $RM -r conftest
  10327. $RM conftest*
  10328. fi
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
  10330. $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10332. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10333. if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
  10334. $as_echo_n "(cached) " >&6
  10335. else
  10336. lt_cv_prog_compiler_c_o_GO=no
  10337. $RM -r conftest 2>/dev/null
  10338. mkdir conftest
  10339. cd conftest
  10340. mkdir out
  10341. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10342. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10343. # Insert the option either (1) after the last *FLAGS variable, or
  10344. # (2) before a word containing "conftest.", or (3) at the end.
  10345. # Note that $ac_compile itself does not contain backslashes and begins
  10346. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10347. lt_compile=`echo "$ac_compile" | $SED \
  10348. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10349. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10350. -e 's:$: $lt_compiler_flag:'`
  10351. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10352. (eval "$lt_compile" 2>out/conftest.err)
  10353. ac_status=$?
  10354. cat out/conftest.err >&5
  10355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10357. then
  10358. # The compiler can only warn and ignore the option if not recognized
  10359. # So say no if there are warnings
  10360. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10361. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10362. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10363. lt_cv_prog_compiler_c_o_GO=yes
  10364. fi
  10365. fi
  10366. chmod u+w . 2>&5
  10367. $RM conftest*
  10368. # SGI C++ compiler will create directory out/ii_files/ for
  10369. # template instantiation
  10370. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10371. $RM out/* && rmdir out
  10372. cd ..
  10373. $RM -r conftest
  10374. $RM conftest*
  10375. fi
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
  10377. $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
  10378. hard_links="nottested"
  10379. if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
  10380. # do not overwrite the value of need_locks provided by the user
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10382. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10383. hard_links=yes
  10384. $RM conftest*
  10385. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10386. touch conftest.a
  10387. ln conftest.a conftest.b 2>&5 || hard_links=no
  10388. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10390. $as_echo "$hard_links" >&6; }
  10391. if test "$hard_links" = no; then
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10393. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10394. need_locks=warn
  10395. fi
  10396. else
  10397. need_locks=no
  10398. fi
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10400. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10401. runpath_var=
  10402. allow_undefined_flag_GO=
  10403. always_export_symbols_GO=no
  10404. archive_cmds_GO=
  10405. archive_expsym_cmds_GO=
  10406. compiler_needs_object_GO=no
  10407. enable_shared_with_static_runtimes_GO=no
  10408. export_dynamic_flag_spec_GO=
  10409. export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10410. hardcode_automatic_GO=no
  10411. hardcode_direct_GO=no
  10412. hardcode_direct_absolute_GO=no
  10413. hardcode_libdir_flag_spec_GO=
  10414. hardcode_libdir_flag_spec_ld_GO=
  10415. hardcode_libdir_separator_GO=
  10416. hardcode_minus_L_GO=no
  10417. hardcode_shlibpath_var_GO=unsupported
  10418. inherit_rpath_GO=no
  10419. link_all_deplibs_GO=unknown
  10420. module_cmds_GO=
  10421. module_expsym_cmds_GO=
  10422. old_archive_from_new_cmds_GO=
  10423. old_archive_from_expsyms_cmds_GO=
  10424. thread_safe_flag_spec_GO=
  10425. whole_archive_flag_spec_GO=
  10426. # include_expsyms should be a list of space-separated symbols to be *always*
  10427. # included in the symbol list
  10428. include_expsyms_GO=
  10429. # exclude_expsyms can be an extended regexp of symbols to exclude
  10430. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10431. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10432. # as well as any symbol that contains `d'.
  10433. exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10434. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10435. # platforms (ab)use it in PIC code, but their linkers get confused if
  10436. # the symbol is explicitly referenced. Since portable code cannot
  10437. # rely on this symbol name, it's probably fine to never include it in
  10438. # preloaded symbol tables.
  10439. # Exclude shared library initialization/finalization symbols.
  10440. extract_expsyms_cmds=
  10441. case $host_os in
  10442. cygwin* | mingw* | pw32* | cegcc*)
  10443. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10444. # When not using gcc, we currently assume that we are using
  10445. # Microsoft Visual C++.
  10446. if test "$GCC" != yes; then
  10447. with_gnu_ld=no
  10448. fi
  10449. ;;
  10450. interix*)
  10451. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10452. with_gnu_ld=yes
  10453. ;;
  10454. openbsd*)
  10455. with_gnu_ld=no
  10456. ;;
  10457. esac
  10458. ld_shlibs_GO=yes
  10459. # On some targets, GNU ld is compatible enough with the native linker
  10460. # that we're better off using the native interface for both.
  10461. lt_use_gnu_ld_interface=no
  10462. if test "$with_gnu_ld" = yes; then
  10463. case $host_os in
  10464. aix*)
  10465. # The AIX port of GNU ld has always aspired to compatibility
  10466. # with the native linker. However, as the warning in the GNU ld
  10467. # block says, versions before 2.19.5* couldn't really create working
  10468. # shared libraries, regardless of the interface used.
  10469. case `$LD -v 2>&1` in
  10470. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10471. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10472. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10473. *)
  10474. lt_use_gnu_ld_interface=yes
  10475. ;;
  10476. esac
  10477. ;;
  10478. *)
  10479. lt_use_gnu_ld_interface=yes
  10480. ;;
  10481. esac
  10482. fi
  10483. if test "$lt_use_gnu_ld_interface" = yes; then
  10484. # If archive_cmds runs LD, not CC, wlarc should be empty
  10485. wlarc='${wl}'
  10486. # Set some defaults for GNU ld with shared library support. These
  10487. # are reset later if shared libraries are not supported. Putting them
  10488. # here allows them to be overridden if necessary.
  10489. runpath_var=LD_RUN_PATH
  10490. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  10491. export_dynamic_flag_spec_GO='${wl}--export-dynamic'
  10492. # ancient GNU ld didn't support --whole-archive et. al.
  10493. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10494. whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10495. else
  10496. whole_archive_flag_spec_GO=
  10497. fi
  10498. supports_anon_versioning=no
  10499. case `$LD -v 2>&1` in
  10500. *GNU\ gold*) supports_anon_versioning=yes ;;
  10501. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10502. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10503. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10504. *\ 2.11.*) ;; # other 2.11 versions
  10505. *) supports_anon_versioning=yes ;;
  10506. esac
  10507. # See if GNU ld supports shared libraries.
  10508. case $host_os in
  10509. aix[3-9]*)
  10510. # On AIX/PPC, the GNU linker is very broken
  10511. if test "$host_cpu" != ia64; then
  10512. ld_shlibs_GO=no
  10513. cat <<_LT_EOF 1>&2
  10514. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10515. *** to be unable to reliably create shared libraries on AIX.
  10516. *** Therefore, libtool is disabling shared libraries support. If you
  10517. *** really care for shared libraries, you may want to install binutils
  10518. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10519. *** You will then need to restart the configuration process.
  10520. _LT_EOF
  10521. fi
  10522. ;;
  10523. amigaos*)
  10524. case $host_cpu in
  10525. powerpc)
  10526. # see comment about AmigaOS4 .so support
  10527. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10528. archive_expsym_cmds_GO=''
  10529. ;;
  10530. m68k)
  10531. archive_cmds_GO='$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)'
  10532. hardcode_libdir_flag_spec_GO='-L$libdir'
  10533. hardcode_minus_L_GO=yes
  10534. ;;
  10535. esac
  10536. ;;
  10537. beos*)
  10538. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10539. allow_undefined_flag_GO=unsupported
  10540. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10541. # support --undefined. This deserves some investigation. FIXME
  10542. archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10543. else
  10544. ld_shlibs_GO=no
  10545. fi
  10546. ;;
  10547. cygwin* | mingw* | pw32* | cegcc*)
  10548. # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
  10549. # as there is no search path for DLLs.
  10550. hardcode_libdir_flag_spec_GO='-L$libdir'
  10551. export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
  10552. allow_undefined_flag_GO=unsupported
  10553. always_export_symbols_GO=no
  10554. enable_shared_with_static_runtimes_GO=yes
  10555. export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10556. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10557. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10558. # If the export-symbols file already is a .def file (1st line
  10559. # is EXPORTS), use it as is; otherwise, prepend...
  10560. archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10561. cp $export_symbols $output_objdir/$soname.def;
  10562. else
  10563. echo EXPORTS > $output_objdir/$soname.def;
  10564. cat $export_symbols >> $output_objdir/$soname.def;
  10565. fi~
  10566. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10567. else
  10568. ld_shlibs_GO=no
  10569. fi
  10570. ;;
  10571. haiku*)
  10572. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10573. link_all_deplibs_GO=yes
  10574. ;;
  10575. interix[3-9]*)
  10576. hardcode_direct_GO=no
  10577. hardcode_shlibpath_var_GO=no
  10578. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  10579. export_dynamic_flag_spec_GO='${wl}-E'
  10580. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10581. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10582. # default) and relocated if they conflict, which is a slow very memory
  10583. # consuming and fragmenting process. To avoid this, we pick a random,
  10584. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10585. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10586. archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10587. archive_expsym_cmds_GO='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'
  10588. ;;
  10589. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10590. tmp_diet=no
  10591. if test "$host_os" = linux-dietlibc; then
  10592. case $cc_basename in
  10593. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10594. esac
  10595. fi
  10596. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10597. && test "$tmp_diet" = no
  10598. then
  10599. tmp_addflag=
  10600. tmp_sharedflag='-shared'
  10601. case $cc_basename,$host_cpu in
  10602. pgcc*) # Portland Group C compiler
  10603. whole_archive_flag_spec_GO='${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'
  10604. tmp_addflag=' $pic_flag'
  10605. ;;
  10606. pgf77* | pgf90* | pgf95* | pgfortran*)
  10607. # Portland Group f77 and f90 compilers
  10608. whole_archive_flag_spec_GO='${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'
  10609. tmp_addflag=' $pic_flag -Mnomain' ;;
  10610. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10611. tmp_addflag=' -i_dynamic' ;;
  10612. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10613. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10614. ifc* | ifort*) # Intel Fortran compiler
  10615. tmp_addflag=' -nofor_main' ;;
  10616. lf95*) # Lahey Fortran 8.1
  10617. whole_archive_flag_spec_GO=
  10618. tmp_sharedflag='--shared' ;;
  10619. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10620. tmp_sharedflag='-qmkshrobj'
  10621. tmp_addflag= ;;
  10622. nvcc*) # Cuda Compiler Driver 2.2
  10623. whole_archive_flag_spec_GO='${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'
  10624. compiler_needs_object_GO=yes
  10625. ;;
  10626. esac
  10627. case `$CC -V 2>&1 | sed 5q` in
  10628. *Sun\ C*) # Sun C 5.9
  10629. whole_archive_flag_spec_GO='${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'
  10630. compiler_needs_object_GO=yes
  10631. tmp_sharedflag='-G' ;;
  10632. *Sun\ F*) # Sun Fortran 8.3
  10633. tmp_sharedflag='-G' ;;
  10634. esac
  10635. archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10636. if test "x$supports_anon_versioning" = xyes; then
  10637. archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
  10638. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10639. echo "local: *; };" >> $output_objdir/$libname.ver~
  10640. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10641. fi
  10642. case $cc_basename in
  10643. xlf* | bgf* | bgxlf* | mpixlf*)
  10644. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10645. whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
  10646. hardcode_libdir_flag_spec_GO=
  10647. hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
  10648. archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  10649. if test "x$supports_anon_versioning" = xyes; then
  10650. archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
  10651. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10652. echo "local: *; };" >> $output_objdir/$libname.ver~
  10653. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10654. fi
  10655. ;;
  10656. esac
  10657. else
  10658. ld_shlibs_GO=no
  10659. fi
  10660. ;;
  10661. netbsd*)
  10662. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10663. archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10664. wlarc=
  10665. else
  10666. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10667. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10668. fi
  10669. ;;
  10670. solaris*)
  10671. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10672. ld_shlibs_GO=no
  10673. cat <<_LT_EOF 1>&2
  10674. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10675. *** create shared libraries on Solaris systems. Therefore, libtool
  10676. *** is disabling shared libraries support. We urge you to upgrade GNU
  10677. *** binutils to release 2.9.1 or newer. Another option is to modify
  10678. *** your PATH or compiler configuration so that the native linker is
  10679. *** used, and then restart.
  10680. _LT_EOF
  10681. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10682. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10683. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10684. else
  10685. ld_shlibs_GO=no
  10686. fi
  10687. ;;
  10688. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10689. case `$LD -v 2>&1` in
  10690. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10691. ld_shlibs_GO=no
  10692. cat <<_LT_EOF 1>&2
  10693. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10694. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10695. *** is disabling shared libraries support. We urge you to upgrade GNU
  10696. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10697. *** your PATH or compiler configuration so that the native linker is
  10698. *** used, and then restart.
  10699. _LT_EOF
  10700. ;;
  10701. *)
  10702. # For security reasons, it is highly recommended that you always
  10703. # use absolute paths for naming shared libraries, and exclude the
  10704. # DT_RUNPATH tag from executables and libraries. But doing so
  10705. # requires that you compile everything twice, which is a pain.
  10706. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10707. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  10708. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10709. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10710. else
  10711. ld_shlibs_GO=no
  10712. fi
  10713. ;;
  10714. esac
  10715. ;;
  10716. sunos4*)
  10717. archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10718. wlarc=
  10719. hardcode_direct_GO=yes
  10720. hardcode_shlibpath_var_GO=no
  10721. ;;
  10722. *)
  10723. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10724. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10725. archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10726. else
  10727. ld_shlibs_GO=no
  10728. fi
  10729. ;;
  10730. esac
  10731. if test "$ld_shlibs_GO" = no; then
  10732. runpath_var=
  10733. hardcode_libdir_flag_spec_GO=
  10734. export_dynamic_flag_spec_GO=
  10735. whole_archive_flag_spec_GO=
  10736. fi
  10737. else
  10738. # PORTME fill in a description of your system's linker (not GNU ld)
  10739. case $host_os in
  10740. aix3*)
  10741. allow_undefined_flag_GO=unsupported
  10742. always_export_symbols_GO=yes
  10743. archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  10744. # Note: this linker hardcodes the directories in LIBPATH if there
  10745. # are no directories specified by -L.
  10746. hardcode_minus_L_GO=yes
  10747. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10748. # Neither direct hardcoding nor static linking is supported with a
  10749. # broken collect2.
  10750. hardcode_direct_GO=unsupported
  10751. fi
  10752. ;;
  10753. aix[4-9]*)
  10754. if test "$host_cpu" = ia64; then
  10755. # On IA64, the linker does run time linking by default, so we don't
  10756. # have to do anything special.
  10757. aix_use_runtimelinking=no
  10758. exp_sym_flag='-Bexport'
  10759. no_entry_flag=""
  10760. else
  10761. # If we're using GNU nm, then we don't want the "-C" option.
  10762. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10763. # Also, AIX nm treats weak defined symbols like other global
  10764. # defined symbols, whereas GNU nm marks them as "W".
  10765. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10766. export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10767. else
  10768. export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10769. fi
  10770. aix_use_runtimelinking=no
  10771. # Test if we are trying to use run time linking or normal
  10772. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10773. # need to do runtime linking.
  10774. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10775. for ld_flag in $LDFLAGS; do
  10776. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10777. aix_use_runtimelinking=yes
  10778. break
  10779. fi
  10780. done
  10781. ;;
  10782. esac
  10783. exp_sym_flag='-bexport'
  10784. no_entry_flag='-bnoentry'
  10785. fi
  10786. # When large executables or shared objects are built, AIX ld can
  10787. # have problems creating the table of contents. If linking a library
  10788. # or program results in "error TOC overflow" add -mminimal-toc to
  10789. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10790. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10791. archive_cmds_GO=''
  10792. hardcode_direct_GO=yes
  10793. hardcode_direct_absolute_GO=yes
  10794. hardcode_libdir_separator_GO=':'
  10795. link_all_deplibs_GO=yes
  10796. file_list_spec_GO='${wl}-f,'
  10797. if test "$GCC" = yes; then
  10798. case $host_os in aix4.[012]|aix4.[012].*)
  10799. # We only want to do this on AIX 4.2 and lower, the check
  10800. # below for broken collect2 doesn't work under 4.3+
  10801. collect2name=`${CC} -print-prog-name=collect2`
  10802. if test -f "$collect2name" &&
  10803. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10804. then
  10805. # We have reworked collect2
  10806. :
  10807. else
  10808. # We have old collect2
  10809. hardcode_direct_GO=unsupported
  10810. # It fails to find uninstalled libraries when the uninstalled
  10811. # path is not listed in the libpath. Setting hardcode_minus_L
  10812. # to unsupported forces relinking
  10813. hardcode_minus_L_GO=yes
  10814. hardcode_libdir_flag_spec_GO='-L$libdir'
  10815. hardcode_libdir_separator_GO=
  10816. fi
  10817. ;;
  10818. esac
  10819. shared_flag='-shared'
  10820. if test "$aix_use_runtimelinking" = yes; then
  10821. shared_flag="$shared_flag "'${wl}-G'
  10822. fi
  10823. else
  10824. # not using gcc
  10825. if test "$host_cpu" = ia64; then
  10826. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10827. # chokes on -Wl,-G. The following line is correct:
  10828. shared_flag='-G'
  10829. else
  10830. if test "$aix_use_runtimelinking" = yes; then
  10831. shared_flag='${wl}-G'
  10832. else
  10833. shared_flag='${wl}-bM:SRE'
  10834. fi
  10835. fi
  10836. fi
  10837. export_dynamic_flag_spec_GO='${wl}-bexpall'
  10838. # It seems that -bexpall does not export symbols beginning with
  10839. # underscore (_), so it is better to generate a list of symbols to export.
  10840. always_export_symbols_GO=yes
  10841. if test "$aix_use_runtimelinking" = yes; then
  10842. # Warning - without using the other runtime loading flags (-brtl),
  10843. # -berok will link without error, but may produce a broken library.
  10844. allow_undefined_flag_GO='-berok'
  10845. # Determine the default libpath from the value encoded in an
  10846. # empty executable.
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. int
  10850. main ()
  10851. {
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. if ac_fn_c_try_link "$LINENO"; then :
  10857. lt_aix_libpath_sed='
  10858. /Import File Strings/,/^$/ {
  10859. /^0/ {
  10860. s/^0 *\(.*\)$/\1/
  10861. p
  10862. }
  10863. }'
  10864. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10865. # Check for a 64-bit object if we didn't find anything.
  10866. if test -z "$aix_libpath"; then
  10867. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10868. fi
  10869. fi
  10870. rm -f core conftest.err conftest.$ac_objext \
  10871. conftest$ac_exeext conftest.$ac_ext
  10872. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10873. hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
  10874. archive_expsym_cmds_GO='$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"
  10875. else
  10876. if test "$host_cpu" = ia64; then
  10877. hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
  10878. allow_undefined_flag_GO="-z nodefs"
  10879. archive_expsym_cmds_GO="\$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"
  10880. else
  10881. # Determine the default libpath from the value encoded in an
  10882. # empty executable.
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. int
  10886. main ()
  10887. {
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_c_try_link "$LINENO"; then :
  10893. lt_aix_libpath_sed='
  10894. /Import File Strings/,/^$/ {
  10895. /^0/ {
  10896. s/^0 *\(.*\)$/\1/
  10897. p
  10898. }
  10899. }'
  10900. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10901. # Check for a 64-bit object if we didn't find anything.
  10902. if test -z "$aix_libpath"; then
  10903. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10904. fi
  10905. fi
  10906. rm -f core conftest.err conftest.$ac_objext \
  10907. conftest$ac_exeext conftest.$ac_ext
  10908. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10909. hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
  10910. # Warning - without using the other run time loading flags,
  10911. # -berok will link without error, but may produce a broken library.
  10912. no_undefined_flag_GO=' ${wl}-bernotok'
  10913. allow_undefined_flag_GO=' ${wl}-berok'
  10914. if test "$with_gnu_ld" = yes; then
  10915. # We only use this code for GNU lds that support --whole-archive.
  10916. whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10917. else
  10918. # Exported symbols can be pulled into shared objects from archives
  10919. whole_archive_flag_spec_GO='$convenience'
  10920. fi
  10921. archive_cmds_need_lc_GO=yes
  10922. # This is similar to how AIX traditionally builds its shared libraries.
  10923. archive_expsym_cmds_GO="\$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'
  10924. fi
  10925. fi
  10926. ;;
  10927. amigaos*)
  10928. case $host_cpu in
  10929. powerpc)
  10930. # see comment about AmigaOS4 .so support
  10931. archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10932. archive_expsym_cmds_GO=''
  10933. ;;
  10934. m68k)
  10935. archive_cmds_GO='$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)'
  10936. hardcode_libdir_flag_spec_GO='-L$libdir'
  10937. hardcode_minus_L_GO=yes
  10938. ;;
  10939. esac
  10940. ;;
  10941. bsdi[45]*)
  10942. export_dynamic_flag_spec_GO=-rdynamic
  10943. ;;
  10944. cygwin* | mingw* | pw32* | cegcc*)
  10945. # When not using gcc, we currently assume that we are using
  10946. # Microsoft Visual C++.
  10947. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10948. # no search path for DLLs.
  10949. hardcode_libdir_flag_spec_GO=' '
  10950. allow_undefined_flag_GO=unsupported
  10951. # Tell ltmain to make .lib files, not .a files.
  10952. libext=lib
  10953. # Tell ltmain to make .dll files, not .so files.
  10954. shrext_cmds=".dll"
  10955. # FIXME: Setting linknames here is a bad hack.
  10956. archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10957. # The linker will automatically build a .lib file if we build a DLL.
  10958. old_archive_from_new_cmds_GO='true'
  10959. # FIXME: Should let the user specify the lib program.
  10960. old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10961. fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
  10962. enable_shared_with_static_runtimes_GO=yes
  10963. ;;
  10964. darwin* | rhapsody*)
  10965. archive_cmds_need_lc_GO=no
  10966. hardcode_direct_GO=no
  10967. hardcode_automatic_GO=yes
  10968. hardcode_shlibpath_var_GO=unsupported
  10969. if test "$lt_cv_ld_force_load" = "yes"; then
  10970. whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10971. else
  10972. whole_archive_flag_spec_GO=''
  10973. fi
  10974. link_all_deplibs_GO=yes
  10975. allow_undefined_flag_GO="$_lt_dar_allow_undefined"
  10976. case $cc_basename in
  10977. ifort*) _lt_dar_can_shared=yes ;;
  10978. *) _lt_dar_can_shared=$GCC ;;
  10979. esac
  10980. if test "$_lt_dar_can_shared" = "yes"; then
  10981. output_verbose_link_cmd=func_echo_all
  10982. archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10983. module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10984. archive_expsym_cmds_GO="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}"
  10985. module_expsym_cmds_GO="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}"
  10986. else
  10987. ld_shlibs_GO=no
  10988. fi
  10989. ;;
  10990. dgux*)
  10991. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10992. hardcode_libdir_flag_spec_GO='-L$libdir'
  10993. hardcode_shlibpath_var_GO=no
  10994. ;;
  10995. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10996. # support. Future versions do this automatically, but an explicit c++rt0.o
  10997. # does not break anything, and helps significantly (at the cost of a little
  10998. # extra space).
  10999. freebsd2.2*)
  11000. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11001. hardcode_libdir_flag_spec_GO='-R$libdir'
  11002. hardcode_direct_GO=yes
  11003. hardcode_shlibpath_var_GO=no
  11004. ;;
  11005. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11006. freebsd2.*)
  11007. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11008. hardcode_direct_GO=yes
  11009. hardcode_minus_L_GO=yes
  11010. hardcode_shlibpath_var_GO=no
  11011. ;;
  11012. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11013. freebsd* | dragonfly*)
  11014. archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11015. hardcode_libdir_flag_spec_GO='-R$libdir'
  11016. hardcode_direct_GO=yes
  11017. hardcode_shlibpath_var_GO=no
  11018. ;;
  11019. hpux9*)
  11020. if test "$GCC" = yes; then
  11021. archive_cmds_GO='$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'
  11022. else
  11023. archive_cmds_GO='$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'
  11024. fi
  11025. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11026. hardcode_libdir_separator_GO=:
  11027. hardcode_direct_GO=yes
  11028. # hardcode_minus_L: Not really in the search PATH,
  11029. # but as the default location of the library.
  11030. hardcode_minus_L_GO=yes
  11031. export_dynamic_flag_spec_GO='${wl}-E'
  11032. ;;
  11033. hpux10*)
  11034. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11035. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11036. else
  11037. archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11038. fi
  11039. if test "$with_gnu_ld" = no; then
  11040. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11041. hardcode_libdir_flag_spec_ld_GO='+b $libdir'
  11042. hardcode_libdir_separator_GO=:
  11043. hardcode_direct_GO=yes
  11044. hardcode_direct_absolute_GO=yes
  11045. export_dynamic_flag_spec_GO='${wl}-E'
  11046. # hardcode_minus_L: Not really in the search PATH,
  11047. # but as the default location of the library.
  11048. hardcode_minus_L_GO=yes
  11049. fi
  11050. ;;
  11051. hpux11*)
  11052. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11053. case $host_cpu in
  11054. hppa*64*)
  11055. archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11056. ;;
  11057. ia64*)
  11058. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11059. ;;
  11060. *)
  11061. archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11062. ;;
  11063. esac
  11064. else
  11065. case $host_cpu in
  11066. hppa*64*)
  11067. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11068. ;;
  11069. ia64*)
  11070. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11071. ;;
  11072. *)
  11073. archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11074. ;;
  11075. esac
  11076. fi
  11077. if test "$with_gnu_ld" = no; then
  11078. hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
  11079. hardcode_libdir_separator_GO=:
  11080. case $host_cpu in
  11081. hppa*64*|ia64*)
  11082. hardcode_direct_GO=no
  11083. hardcode_shlibpath_var_GO=no
  11084. ;;
  11085. *)
  11086. hardcode_direct_GO=yes
  11087. hardcode_direct_absolute_GO=yes
  11088. export_dynamic_flag_spec_GO='${wl}-E'
  11089. # hardcode_minus_L: Not really in the search PATH,
  11090. # but as the default location of the library.
  11091. hardcode_minus_L_GO=yes
  11092. ;;
  11093. esac
  11094. fi
  11095. ;;
  11096. irix5* | irix6* | nonstopux*)
  11097. if test "$GCC" = yes; then
  11098. archive_cmds_GO='$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'
  11099. # Try to use the -exported_symbol ld option, if it does not
  11100. # work, assume that -exports_file does not work either and
  11101. # implicitly export all symbols.
  11102. save_LDFLAGS="$LDFLAGS"
  11103. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11105. /* end confdefs.h. */
  11106. int foo(void) {}
  11107. _ACEOF
  11108. if ac_fn_c_try_link "$LINENO"; then :
  11109. archive_expsym_cmds_GO='$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'
  11110. fi
  11111. rm -f core conftest.err conftest.$ac_objext \
  11112. conftest$ac_exeext conftest.$ac_ext
  11113. LDFLAGS="$save_LDFLAGS"
  11114. else
  11115. archive_cmds_GO='$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'
  11116. archive_expsym_cmds_GO='$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'
  11117. fi
  11118. archive_cmds_need_lc_GO='no'
  11119. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11120. hardcode_libdir_separator_GO=:
  11121. inherit_rpath_GO=yes
  11122. link_all_deplibs_GO=yes
  11123. ;;
  11124. netbsd*)
  11125. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11126. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11127. else
  11128. archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11129. fi
  11130. hardcode_libdir_flag_spec_GO='-R$libdir'
  11131. hardcode_direct_GO=yes
  11132. hardcode_shlibpath_var_GO=no
  11133. ;;
  11134. newsos6)
  11135. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11136. hardcode_direct_GO=yes
  11137. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11138. hardcode_libdir_separator_GO=:
  11139. hardcode_shlibpath_var_GO=no
  11140. ;;
  11141. *nto* | *qnx*)
  11142. ;;
  11143. openbsd*)
  11144. if test -f /usr/libexec/ld.so; then
  11145. hardcode_direct_GO=yes
  11146. hardcode_shlibpath_var_GO=no
  11147. hardcode_direct_absolute_GO=yes
  11148. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11149. archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11150. archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11151. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  11152. export_dynamic_flag_spec_GO='${wl}-E'
  11153. else
  11154. case $host_os in
  11155. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11156. archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11157. hardcode_libdir_flag_spec_GO='-R$libdir'
  11158. ;;
  11159. *)
  11160. archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11161. hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
  11162. ;;
  11163. esac
  11164. fi
  11165. else
  11166. ld_shlibs_GO=no
  11167. fi
  11168. ;;
  11169. os2*)
  11170. hardcode_libdir_flag_spec_GO='-L$libdir'
  11171. hardcode_minus_L_GO=yes
  11172. allow_undefined_flag_GO=unsupported
  11173. archive_cmds_GO='$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'
  11174. old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11175. ;;
  11176. osf3*)
  11177. if test "$GCC" = yes; then
  11178. allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
  11179. archive_cmds_GO='$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'
  11180. else
  11181. allow_undefined_flag_GO=' -expect_unresolved \*'
  11182. archive_cmds_GO='$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'
  11183. fi
  11184. archive_cmds_need_lc_GO='no'
  11185. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11186. hardcode_libdir_separator_GO=:
  11187. ;;
  11188. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11189. if test "$GCC" = yes; then
  11190. allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
  11191. archive_cmds_GO='$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'
  11192. hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
  11193. else
  11194. allow_undefined_flag_GO=' -expect_unresolved \*'
  11195. archive_cmds_GO='$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'
  11196. archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  11197. $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'
  11198. # Both c and cxx compiler support -rpath directly
  11199. hardcode_libdir_flag_spec_GO='-rpath $libdir'
  11200. fi
  11201. archive_cmds_need_lc_GO='no'
  11202. hardcode_libdir_separator_GO=:
  11203. ;;
  11204. solaris*)
  11205. no_undefined_flag_GO=' -z defs'
  11206. if test "$GCC" = yes; then
  11207. wlarc='${wl}'
  11208. archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11209. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11210. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11211. else
  11212. case `$CC -V 2>&1` in
  11213. *"Compilers 5.0"*)
  11214. wlarc=''
  11215. archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11216. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11217. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11218. ;;
  11219. *)
  11220. wlarc='${wl}'
  11221. archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11222. archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11223. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11224. ;;
  11225. esac
  11226. fi
  11227. hardcode_libdir_flag_spec_GO='-R$libdir'
  11228. hardcode_shlibpath_var_GO=no
  11229. case $host_os in
  11230. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11231. *)
  11232. # The compiler driver will combine and reorder linker options,
  11233. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11234. # but is careful enough not to reorder.
  11235. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11236. if test "$GCC" = yes; then
  11237. whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11238. else
  11239. whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
  11240. fi
  11241. ;;
  11242. esac
  11243. link_all_deplibs_GO=yes
  11244. ;;
  11245. sunos4*)
  11246. if test "x$host_vendor" = xsequent; then
  11247. # Use $CC to link under sequent, because it throws in some extra .o
  11248. # files that make .init and .fini sections work.
  11249. archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11250. else
  11251. archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11252. fi
  11253. hardcode_libdir_flag_spec_GO='-L$libdir'
  11254. hardcode_direct_GO=yes
  11255. hardcode_minus_L_GO=yes
  11256. hardcode_shlibpath_var_GO=no
  11257. ;;
  11258. sysv4)
  11259. case $host_vendor in
  11260. sni)
  11261. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11262. hardcode_direct_GO=yes # is this really true???
  11263. ;;
  11264. siemens)
  11265. ## LD is ld it makes a PLAMLIB
  11266. ## CC just makes a GrossModule.
  11267. archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11268. reload_cmds_GO='$CC -r -o $output$reload_objs'
  11269. hardcode_direct_GO=no
  11270. ;;
  11271. motorola)
  11272. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11273. hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
  11274. ;;
  11275. esac
  11276. runpath_var='LD_RUN_PATH'
  11277. hardcode_shlibpath_var_GO=no
  11278. ;;
  11279. sysv4.3*)
  11280. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11281. hardcode_shlibpath_var_GO=no
  11282. export_dynamic_flag_spec_GO='-Bexport'
  11283. ;;
  11284. sysv4*MP*)
  11285. if test -d /usr/nec; then
  11286. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11287. hardcode_shlibpath_var_GO=no
  11288. runpath_var=LD_RUN_PATH
  11289. hardcode_runpath_var=yes
  11290. ld_shlibs_GO=yes
  11291. fi
  11292. ;;
  11293. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11294. no_undefined_flag_GO='${wl}-z,text'
  11295. archive_cmds_need_lc_GO=no
  11296. hardcode_shlibpath_var_GO=no
  11297. runpath_var='LD_RUN_PATH'
  11298. if test "$GCC" = yes; then
  11299. archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11300. archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11301. else
  11302. archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11303. archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11304. fi
  11305. ;;
  11306. sysv5* | sco3.2v5* | sco5v6*)
  11307. # Note: We can NOT use -z defs as we might desire, because we do not
  11308. # link with -lc, and that would cause any symbols used from libc to
  11309. # always be unresolved, which means just about no library would
  11310. # ever link correctly. If we're not using GNU ld we use -z text
  11311. # though, which does catch some bad symbols but isn't as heavy-handed
  11312. # as -z defs.
  11313. no_undefined_flag_GO='${wl}-z,text'
  11314. allow_undefined_flag_GO='${wl}-z,nodefs'
  11315. archive_cmds_need_lc_GO=no
  11316. hardcode_shlibpath_var_GO=no
  11317. hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
  11318. hardcode_libdir_separator_GO=':'
  11319. link_all_deplibs_GO=yes
  11320. export_dynamic_flag_spec_GO='${wl}-Bexport'
  11321. runpath_var='LD_RUN_PATH'
  11322. if test "$GCC" = yes; then
  11323. archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11324. archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11325. else
  11326. archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11327. archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11328. fi
  11329. ;;
  11330. uts4*)
  11331. archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11332. hardcode_libdir_flag_spec_GO='-L$libdir'
  11333. hardcode_shlibpath_var_GO=no
  11334. ;;
  11335. *)
  11336. ld_shlibs_GO=no
  11337. ;;
  11338. esac
  11339. if test x$host_vendor = xsni; then
  11340. case $host in
  11341. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11342. export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
  11343. ;;
  11344. esac
  11345. fi
  11346. fi
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
  11348. $as_echo "$ld_shlibs_GO" >&6; }
  11349. test "$ld_shlibs_GO" = no && can_build_shared=no
  11350. with_gnu_ld_GO=$with_gnu_ld
  11351. #
  11352. # Do we need to explicitly link libc?
  11353. #
  11354. case "x$archive_cmds_need_lc_GO" in
  11355. x|xyes)
  11356. # Assume -lc should be added
  11357. archive_cmds_need_lc_GO=yes
  11358. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11359. case $archive_cmds_GO in
  11360. *'~'*)
  11361. # FIXME: we may have to deal with multi-command sequences.
  11362. ;;
  11363. '$CC '*)
  11364. # Test whether the compiler implicitly links with -lc since on some
  11365. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11366. # to ld, don't add -lc before -lgcc.
  11367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11368. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11369. if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
  11370. $as_echo_n "(cached) " >&6
  11371. else
  11372. $RM conftest*
  11373. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11375. (eval $ac_compile) 2>&5
  11376. ac_status=$?
  11377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11378. test $ac_status = 0; } 2>conftest.err; then
  11379. soname=conftest
  11380. lib=conftest
  11381. libobjs=conftest.$ac_objext
  11382. deplibs=
  11383. wl=$lt_prog_compiler_wl_GO
  11384. pic_flag=$lt_prog_compiler_pic_GO
  11385. compiler_flags=-v
  11386. linker_flags=-v
  11387. verstring=
  11388. output_objdir=.
  11389. libname=conftest
  11390. lt_save_allow_undefined_flag=$allow_undefined_flag_GO
  11391. allow_undefined_flag_GO=
  11392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11393. (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11394. ac_status=$?
  11395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11396. test $ac_status = 0; }
  11397. then
  11398. lt_cv_archive_cmds_need_lc_GO=no
  11399. else
  11400. lt_cv_archive_cmds_need_lc_GO=yes
  11401. fi
  11402. allow_undefined_flag_GO=$lt_save_allow_undefined_flag
  11403. else
  11404. cat conftest.err 1>&5
  11405. fi
  11406. $RM conftest*
  11407. fi
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
  11409. $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
  11410. archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
  11411. ;;
  11412. esac
  11413. fi
  11414. ;;
  11415. esac
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11417. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11418. hardcode_action_GO=
  11419. if test -n "$hardcode_libdir_flag_spec_GO" ||
  11420. test -n "$runpath_var_GO" ||
  11421. test "X$hardcode_automatic_GO" = "Xyes" ; then
  11422. # We can hardcode non-existent directories.
  11423. if test "$hardcode_direct_GO" != no &&
  11424. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11425. # have to relink, otherwise we might link with an installed library
  11426. # when we should be linking with a yet-to-be-installed one
  11427. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
  11428. test "$hardcode_minus_L_GO" != no; then
  11429. # Linking always hardcodes the temporary library directory.
  11430. hardcode_action_GO=relink
  11431. else
  11432. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11433. hardcode_action_GO=immediate
  11434. fi
  11435. else
  11436. # We cannot hardcode anything, or else we can only hardcode existing
  11437. # directories.
  11438. hardcode_action_GO=unsupported
  11439. fi
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
  11441. $as_echo "$hardcode_action_GO" >&6; }
  11442. if test "$hardcode_action_GO" = relink ||
  11443. test "$inherit_rpath_GO" = yes; then
  11444. # Fast installation is not supported
  11445. enable_fast_install=no
  11446. elif test "$shlibpath_overrides_runpath" = yes ||
  11447. test "$enable_shared" = no; then
  11448. # Fast installation is not necessary
  11449. enable_fast_install=needless
  11450. fi
  11451. fi
  11452. ac_ext=c
  11453. ac_cpp='$CPP $CPPFLAGS'
  11454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11457. GCC=$lt_save_GCC
  11458. CC="$lt_save_CC"
  11459. ac_config_commands="$ac_config_commands libtool"
  11460. # Only expand once:
  11461. CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
  11462. for ac_prog in gawk mawk nawk awk
  11463. do
  11464. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11465. set dummy $ac_prog; ac_word=$2
  11466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11467. $as_echo_n "checking for $ac_word... " >&6; }
  11468. if test "${ac_cv_prog_AWK+set}" = set; then :
  11469. $as_echo_n "(cached) " >&6
  11470. else
  11471. if test -n "$AWK"; then
  11472. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11473. else
  11474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11475. for as_dir in $PATH
  11476. do
  11477. IFS=$as_save_IFS
  11478. test -z "$as_dir" && as_dir=.
  11479. for ac_exec_ext in '' $ac_executable_extensions; do
  11480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11481. ac_cv_prog_AWK="$ac_prog"
  11482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11483. break 2
  11484. fi
  11485. done
  11486. done
  11487. IFS=$as_save_IFS
  11488. fi
  11489. fi
  11490. AWK=$ac_cv_prog_AWK
  11491. if test -n "$AWK"; then
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11493. $as_echo "$AWK" >&6; }
  11494. else
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11496. $as_echo "no" >&6; }
  11497. fi
  11498. test -n "$AWK" && break
  11499. done
  11500. WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
  11501. # Check whether --enable-werror was given.
  11502. if test "${enable_werror+set}" = set; then :
  11503. enableval=$enable_werror;
  11504. fi
  11505. if test "x$enable_werror" != "xno"; then
  11506. WERROR="-Werror"
  11507. fi
  11508. glibgo_toolexecdir=no
  11509. glibgo_toolexeclibdir=no
  11510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  11511. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  11512. # Check whether --enable-version-specific-runtime-libs was given.
  11513. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  11514. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  11515. yes) version_specific_libs=yes ;;
  11516. no) version_specific_libs=no ;;
  11517. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  11518. esac
  11519. else
  11520. version_specific_libs=no
  11521. fi
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  11523. $as_echo "$version_specific_libs" >&6; }
  11524. # Version-specific runtime libs processing.
  11525. if test $version_specific_libs = yes; then
  11526. glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
  11527. glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
  11528. fi
  11529. # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
  11530. # Install a library built with a cross compiler in tooldir, not libdir.
  11531. if test -n "$with_cross_host" &&
  11532. test x"$with_cross_host" != x"no"; then
  11533. nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
  11534. nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
  11535. else
  11536. nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
  11537. nover_glibgo_toolexeclibdir='${libdir}'
  11538. fi
  11539. multi_os_directory=`$GOC -print-multi-os-directory`
  11540. case $multi_os_directory in
  11541. .) ;; # Avoid trailing /.
  11542. *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
  11543. esac
  11544. if test x"$glibgo_toolexecdir" = x"no"; then
  11545. glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
  11546. glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
  11547. fi
  11548. # See if the user wants to configure without libffi. Some
  11549. # architectures don't support it. FIXME: We should set a default
  11550. # based on the host.
  11551. # Check whether --with-libffi was given.
  11552. if test "${with_libffi+set}" = set; then :
  11553. withval=$with_libffi; :
  11554. else
  11555. with_libffi=${with_libffi_default-yes}
  11556. fi
  11557. LIBFFI=
  11558. LIBFFIINCS=
  11559. if test "$with_libffi" != no; then
  11560. $as_echo "#define USE_LIBFFI 1" >>confdefs.h
  11561. LIBFFI=../libffi/libffi_convenience.la
  11562. LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
  11563. fi
  11564. # See if the user wants to configure without libatomic. This is useful if we are
  11565. # on an architecture for which libgo does not need an atomic support library and
  11566. # libatomic does not support our C compiler.
  11567. # Check whether --with-libatomic was given.
  11568. if test "${with_libatomic+set}" = set; then :
  11569. withval=$with_libatomic; :
  11570. else
  11571. with_libatomic=${with_libatomic_default-yes}
  11572. fi
  11573. LIBATOMIC=
  11574. if test "$with_libatomic" != no; then
  11575. LIBATOMIC=../libatomic/libatomic_convenience.la
  11576. fi
  11577. # Used to tell GNU make to include a file without telling automake to
  11578. # include it.
  11579. go_include="-include"
  11580. is_darwin=no
  11581. is_freebsd=no
  11582. is_irix=no
  11583. is_linux=no
  11584. is_netbsd=no
  11585. is_openbsd=no
  11586. is_dragonfly=no
  11587. is_rtems=no
  11588. is_solaris=no
  11589. GOOS=unknown
  11590. case ${host} in
  11591. *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
  11592. *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
  11593. *-*-irix6*) is_irix=yes; GOOS=irix ;;
  11594. *-*-linux*) is_linux=yes; GOOS=linux ;;
  11595. *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
  11596. *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
  11597. *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
  11598. *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
  11599. *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
  11600. esac
  11601. if test $is_darwin = yes; then
  11602. LIBGO_IS_DARWIN_TRUE=
  11603. LIBGO_IS_DARWIN_FALSE='#'
  11604. else
  11605. LIBGO_IS_DARWIN_TRUE='#'
  11606. LIBGO_IS_DARWIN_FALSE=
  11607. fi
  11608. if test $is_freebsd = yes; then
  11609. LIBGO_IS_FREEBSD_TRUE=
  11610. LIBGO_IS_FREEBSD_FALSE='#'
  11611. else
  11612. LIBGO_IS_FREEBSD_TRUE='#'
  11613. LIBGO_IS_FREEBSD_FALSE=
  11614. fi
  11615. if test $is_irix = yes; then
  11616. LIBGO_IS_IRIX_TRUE=
  11617. LIBGO_IS_IRIX_FALSE='#'
  11618. else
  11619. LIBGO_IS_IRIX_TRUE='#'
  11620. LIBGO_IS_IRIX_FALSE=
  11621. fi
  11622. if test $is_linux = yes; then
  11623. LIBGO_IS_LINUX_TRUE=
  11624. LIBGO_IS_LINUX_FALSE='#'
  11625. else
  11626. LIBGO_IS_LINUX_TRUE='#'
  11627. LIBGO_IS_LINUX_FALSE=
  11628. fi
  11629. if test $is_netbsd = yes; then
  11630. LIBGO_IS_NETBSD_TRUE=
  11631. LIBGO_IS_NETBSD_FALSE='#'
  11632. else
  11633. LIBGO_IS_NETBSD_TRUE='#'
  11634. LIBGO_IS_NETBSD_FALSE=
  11635. fi
  11636. if test $is_openbsd = yes; then
  11637. LIBGO_IS_OPENBSD_TRUE=
  11638. LIBGO_IS_OPENBSD_FALSE='#'
  11639. else
  11640. LIBGO_IS_OPENBSD_TRUE='#'
  11641. LIBGO_IS_OPENBSD_FALSE=
  11642. fi
  11643. if test $is_dragonfly = yes; then
  11644. LIBGO_IS_DRAGONFLY_TRUE=
  11645. LIBGO_IS_DRAGONFLY_FALSE='#'
  11646. else
  11647. LIBGO_IS_DRAGONFLY_TRUE='#'
  11648. LIBGO_IS_DRAGONFLY_FALSE=
  11649. fi
  11650. if test $is_rtems = yes; then
  11651. LIBGO_IS_RTEMS_TRUE=
  11652. LIBGO_IS_RTEMS_FALSE='#'
  11653. else
  11654. LIBGO_IS_RTEMS_TRUE='#'
  11655. LIBGO_IS_RTEMS_FALSE=
  11656. fi
  11657. if test $is_solaris = yes; then
  11658. LIBGO_IS_SOLARIS_TRUE=
  11659. LIBGO_IS_SOLARIS_FALSE='#'
  11660. else
  11661. LIBGO_IS_SOLARIS_TRUE='#'
  11662. LIBGO_IS_SOLARIS_FALSE=
  11663. fi
  11664. USE_DEJAGNU=no
  11665. case ${host} in
  11666. *-*-rtems*) USE_DEJAGNU=yes ;;
  11667. ${build}) ;;
  11668. *) USE_DEJAGNU=yes ;;
  11669. esac
  11670. is_386=no
  11671. is_alpha=no
  11672. is_arm=no
  11673. is_arm64=no
  11674. is_m68k=no
  11675. mips_abi=unknown
  11676. is_ppc=no
  11677. is_ppc64=no
  11678. is_ppc64le=no
  11679. is_s390=no
  11680. is_s390x=no
  11681. is_sparc=no
  11682. is_sparc64=no
  11683. is_x86_64=no
  11684. GOARCH=unknown
  11685. case ${host} in
  11686. alpha*-*-*)
  11687. is_alpha=yes
  11688. GOARCH=alpha
  11689. ;;
  11690. aarch64-*-*)
  11691. is_arm64=yes
  11692. GOARCH=arm64
  11693. ;;
  11694. arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
  11695. is_arm=yes
  11696. GOARCH=arm
  11697. ;;
  11698. i[34567]86-*-* | x86_64-*-*)
  11699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11700. /* end confdefs.h. */
  11701. #ifdef __x86_64__
  11702. #error 64-bit
  11703. #endif
  11704. _ACEOF
  11705. if ac_fn_c_try_compile "$LINENO"; then :
  11706. is_386=yes
  11707. else
  11708. is_x86_64=yes
  11709. fi
  11710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11711. if test "$is_386" = "yes"; then
  11712. GOARCH=386
  11713. else
  11714. GOARCH=amd64
  11715. fi
  11716. ;;
  11717. m68k*-*-*)
  11718. is_m68k=yes
  11719. GOARCH=m68k
  11720. ;;
  11721. mips*-*-*)
  11722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11723. /* end confdefs.h. */
  11724. #if _MIPS_SIM != _ABIO32
  11725. #error not o32
  11726. #endif
  11727. _ACEOF
  11728. if ac_fn_c_try_compile "$LINENO"; then :
  11729. mips_abi="o32"
  11730. else
  11731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11732. /* end confdefs.h. */
  11733. #if _MIPS_SIM != _ABIN32
  11734. #error not n32
  11735. #endif
  11736. _ACEOF
  11737. if ac_fn_c_try_compile "$LINENO"; then :
  11738. mips_abi="n32"
  11739. else
  11740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11741. /* end confdefs.h. */
  11742. #if _MIPS_SIM != _ABI64
  11743. #error not n64
  11744. #endif
  11745. _ACEOF
  11746. if ac_fn_c_try_compile "$LINENO"; then :
  11747. mips_abi="n64"
  11748. else
  11749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11750. /* end confdefs.h. */
  11751. #if _MIPS_SIM != _ABIO64
  11752. #error not o64
  11753. #endif
  11754. _ACEOF
  11755. if ac_fn_c_try_compile "$LINENO"; then :
  11756. mips_abi="o64"
  11757. else
  11758. as_fn_error "unknown MIPS ABI" "$LINENO" 5
  11759. mips_abi="n32"
  11760. fi
  11761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11762. fi
  11763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11764. fi
  11765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11766. fi
  11767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11768. case "$mips_abi" in
  11769. "o32") GOARCH=mipso32 ;;
  11770. "n32") GOARCH=mipsn32 ;;
  11771. "n64") GOARCH=mipsn64 ;;
  11772. "o64") GOARCH=mipso64 ;;
  11773. esac
  11774. ;;
  11775. rs6000*-*-* | powerpc*-*-*)
  11776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11777. /* end confdefs.h. */
  11778. #ifdef _ARCH_PPC64
  11779. #error 64-bit
  11780. #endif
  11781. _ACEOF
  11782. if ac_fn_c_try_compile "$LINENO"; then :
  11783. is_ppc=yes
  11784. else
  11785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11786. /* end confdefs.h. */
  11787. #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
  11788. #error 64be
  11789. #endif
  11790. _ACEOF
  11791. if ac_fn_c_try_compile "$LINENO"; then :
  11792. is_ppc64le=yes
  11793. else
  11794. is_ppc64=yes
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11799. if test "$is_ppc" = "yes"; then
  11800. GOARCH=ppc
  11801. elif test "$is_ppc64" = "yes"; then
  11802. GOARCH=ppc64
  11803. else
  11804. GOARCH=ppc64le
  11805. fi
  11806. ;;
  11807. s390*-*-*)
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. #if defined(__s390x__)
  11811. #error 64-bit
  11812. #endif
  11813. _ACEOF
  11814. if ac_fn_c_try_compile "$LINENO"; then :
  11815. is_s390=yes
  11816. else
  11817. is_s390x=yes
  11818. fi
  11819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11820. if test "$is_s390" = "yes"; then
  11821. GOARCH=s390
  11822. else
  11823. GOARCH=s390x
  11824. fi
  11825. ;;
  11826. sparc*-*-*)
  11827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11828. /* end confdefs.h. */
  11829. #if defined(__sparcv9) || defined(__arch64__)
  11830. #error 64-bit
  11831. #endif
  11832. _ACEOF
  11833. if ac_fn_c_try_compile "$LINENO"; then :
  11834. is_sparc=yes
  11835. else
  11836. is_sparc64=yes
  11837. fi
  11838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11839. if test "$is_sparc" = "yes"; then
  11840. GOARCH=sparc
  11841. else
  11842. GOARCH=sparc64
  11843. fi
  11844. ;;
  11845. esac
  11846. if test $is_386 = yes; then
  11847. LIBGO_IS_386_TRUE=
  11848. LIBGO_IS_386_FALSE='#'
  11849. else
  11850. LIBGO_IS_386_TRUE='#'
  11851. LIBGO_IS_386_FALSE=
  11852. fi
  11853. if test $is_alpha = yes; then
  11854. LIBGO_IS_ALPHA_TRUE=
  11855. LIBGO_IS_ALPHA_FALSE='#'
  11856. else
  11857. LIBGO_IS_ALPHA_TRUE='#'
  11858. LIBGO_IS_ALPHA_FALSE=
  11859. fi
  11860. if test $is_arm = yes; then
  11861. LIBGO_IS_ARM_TRUE=
  11862. LIBGO_IS_ARM_FALSE='#'
  11863. else
  11864. LIBGO_IS_ARM_TRUE='#'
  11865. LIBGO_IS_ARM_FALSE=
  11866. fi
  11867. if test $is_arm64 = yes; then
  11868. LIBGO_IS_ARM64_TRUE=
  11869. LIBGO_IS_ARM64_FALSE='#'
  11870. else
  11871. LIBGO_IS_ARM64_TRUE='#'
  11872. LIBGO_IS_ARM64_FALSE=
  11873. fi
  11874. if test $is_m68k = yes; then
  11875. LIBGO_IS_M68K_TRUE=
  11876. LIBGO_IS_M68K_FALSE='#'
  11877. else
  11878. LIBGO_IS_M68K_TRUE='#'
  11879. LIBGO_IS_M68K_FALSE=
  11880. fi
  11881. if test $mips_abi != unknown; then
  11882. LIBGO_IS_MIPS_TRUE=
  11883. LIBGO_IS_MIPS_FALSE='#'
  11884. else
  11885. LIBGO_IS_MIPS_TRUE='#'
  11886. LIBGO_IS_MIPS_FALSE=
  11887. fi
  11888. if test $mips_abi = o32; then
  11889. LIBGO_IS_MIPSO32_TRUE=
  11890. LIBGO_IS_MIPSO32_FALSE='#'
  11891. else
  11892. LIBGO_IS_MIPSO32_TRUE='#'
  11893. LIBGO_IS_MIPSO32_FALSE=
  11894. fi
  11895. if test $mips_abi = n32; then
  11896. LIBGO_IS_MIPSN32_TRUE=
  11897. LIBGO_IS_MIPSN32_FALSE='#'
  11898. else
  11899. LIBGO_IS_MIPSN32_TRUE='#'
  11900. LIBGO_IS_MIPSN32_FALSE=
  11901. fi
  11902. if test $mips_abi = n64; then
  11903. LIBGO_IS_MIPSN64_TRUE=
  11904. LIBGO_IS_MIPSN64_FALSE='#'
  11905. else
  11906. LIBGO_IS_MIPSN64_TRUE='#'
  11907. LIBGO_IS_MIPSN64_FALSE=
  11908. fi
  11909. if test $mips_abi = o64; then
  11910. LIBGO_IS_MIPSO64_TRUE=
  11911. LIBGO_IS_MIPSO64_FALSE='#'
  11912. else
  11913. LIBGO_IS_MIPSO64_TRUE='#'
  11914. LIBGO_IS_MIPSO64_FALSE=
  11915. fi
  11916. if test $is_ppc = yes; then
  11917. LIBGO_IS_PPC_TRUE=
  11918. LIBGO_IS_PPC_FALSE='#'
  11919. else
  11920. LIBGO_IS_PPC_TRUE='#'
  11921. LIBGO_IS_PPC_FALSE=
  11922. fi
  11923. if test $is_ppc64 = yes; then
  11924. LIBGO_IS_PPC64_TRUE=
  11925. LIBGO_IS_PPC64_FALSE='#'
  11926. else
  11927. LIBGO_IS_PPC64_TRUE='#'
  11928. LIBGO_IS_PPC64_FALSE=
  11929. fi
  11930. if test $is_ppc64le = yes; then
  11931. LIBGO_IS_PPC64LE_TRUE=
  11932. LIBGO_IS_PPC64LE_FALSE='#'
  11933. else
  11934. LIBGO_IS_PPC64LE_TRUE='#'
  11935. LIBGO_IS_PPC64LE_FALSE=
  11936. fi
  11937. if test $is_s390 = yes; then
  11938. LIBGO_IS_S390_TRUE=
  11939. LIBGO_IS_S390_FALSE='#'
  11940. else
  11941. LIBGO_IS_S390_TRUE='#'
  11942. LIBGO_IS_S390_FALSE=
  11943. fi
  11944. if test $is_s390x = yes; then
  11945. LIBGO_IS_S390X_TRUE=
  11946. LIBGO_IS_S390X_FALSE='#'
  11947. else
  11948. LIBGO_IS_S390X_TRUE='#'
  11949. LIBGO_IS_S390X_FALSE=
  11950. fi
  11951. if test $is_sparc = yes; then
  11952. LIBGO_IS_SPARC_TRUE=
  11953. LIBGO_IS_SPARC_FALSE='#'
  11954. else
  11955. LIBGO_IS_SPARC_TRUE='#'
  11956. LIBGO_IS_SPARC_FALSE=
  11957. fi
  11958. if test $is_sparc64 = yes; then
  11959. LIBGO_IS_SPARC64_TRUE=
  11960. LIBGO_IS_SPARC64_FALSE='#'
  11961. else
  11962. LIBGO_IS_SPARC64_TRUE='#'
  11963. LIBGO_IS_SPARC64_FALSE=
  11964. fi
  11965. if test $is_x86_64 = yes; then
  11966. LIBGO_IS_X86_64_TRUE=
  11967. LIBGO_IS_X86_64_FALSE='#'
  11968. else
  11969. LIBGO_IS_X86_64_TRUE='#'
  11970. LIBGO_IS_X86_64_FALSE=
  11971. fi
  11972. GO_LIBCALL_OS_FILE=
  11973. GO_LIBCALL_OS_ARCH_FILE=
  11974. GO_SYSCALL_OS_FILE=
  11975. GO_SYSCALL_OS_ARCH_FILE=
  11976. if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
  11977. GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
  11978. fi
  11979. if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
  11980. GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
  11981. fi
  11982. if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
  11983. GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
  11984. fi
  11985. if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
  11986. GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
  11987. fi
  11988. OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
  11989. case "$target" in
  11990. mips-sgi-irix6.5*)
  11991. # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
  11992. # msghdr in <sys/socket.h>.
  11993. OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
  11994. ;;
  11995. *-*-solaris2.1[01])
  11996. # Solaris 10+ needs this so struct msghdr gets the msg_control
  11997. # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
  11998. # above doesn't work with C99.
  11999. OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
  12000. ;;
  12001. esac
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
  12003. $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
  12004. if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
  12005. $as_echo_n "(cached) " >&6
  12006. else
  12007. CFLAGS_hold=$CFLAGS
  12008. CFLAGS="$CFLAGS -fsplit-stack"
  12009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12010. /* end confdefs.h. */
  12011. int i;
  12012. _ACEOF
  12013. if ac_fn_c_try_compile "$LINENO"; then :
  12014. libgo_cv_c_split_stack_supported=yes
  12015. else
  12016. libgo_cv_c_split_stack_supported=no
  12017. fi
  12018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12019. CFLAGS=$CFLAGS_hold
  12020. fi
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
  12022. $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
  12023. if test "$libgo_cv_c_split_stack_supported" = yes; then
  12024. SPLIT_STACK=-fsplit-stack
  12025. $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
  12026. else
  12027. SPLIT_STACK=
  12028. fi
  12029. if test "$libgo_cv_c_split_stack_supported" = yes; then
  12030. USING_SPLIT_STACK_TRUE=
  12031. USING_SPLIT_STACK_FALSE='#'
  12032. else
  12033. USING_SPLIT_STACK_TRUE='#'
  12034. USING_SPLIT_STACK_FALSE=
  12035. fi
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
  12037. $as_echo_n "checking whether linker supports split stack... " >&6; }
  12038. if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
  12039. $as_echo_n "(cached) " >&6
  12040. else
  12041. libgo_cv_c_linker_supports_split_stack=no
  12042. if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
  12043. libgo_cv_c_linker_supports_split_stack=yes
  12044. fi
  12045. fi
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
  12047. $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
  12048. if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
  12049. $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
  12050. fi
  12051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
  12052. $as_echo_n "checking whether compiler is llgo... " >&6; }
  12053. if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
  12054. $as_echo_n "(cached) " >&6
  12055. else
  12056. libgo_cv_c_goc_is_llgo=no
  12057. if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
  12058. libgo_cv_c_goc_is_llgo=yes
  12059. fi
  12060. fi
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
  12062. $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
  12063. if test "$libgo_cv_c_goc_is_llgo" = yes; then
  12064. GOC_IS_LLGO_TRUE=
  12065. GOC_IS_LLGO_FALSE='#'
  12066. else
  12067. GOC_IS_LLGO_TRUE='#'
  12068. GOC_IS_LLGO_FALSE=
  12069. fi
  12070. MATH_LIBS=
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12072. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12073. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  12074. $as_echo_n "(cached) " >&6
  12075. else
  12076. ac_check_lib_save_LIBS=$LIBS
  12077. LIBS="-lm $LIBS"
  12078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12079. /* end confdefs.h. */
  12080. /* Override any GCC internal prototype to avoid an error.
  12081. Use char because int might match the return type of a GCC
  12082. builtin and then its argument prototype would still apply. */
  12083. #ifdef __cplusplus
  12084. extern "C"
  12085. #endif
  12086. char sqrt ();
  12087. int
  12088. main ()
  12089. {
  12090. return sqrt ();
  12091. ;
  12092. return 0;
  12093. }
  12094. _ACEOF
  12095. if ac_fn_c_try_link "$LINENO"; then :
  12096. ac_cv_lib_m_sqrt=yes
  12097. else
  12098. ac_cv_lib_m_sqrt=no
  12099. fi
  12100. rm -f core conftest.err conftest.$ac_objext \
  12101. conftest$ac_exeext conftest.$ac_ext
  12102. LIBS=$ac_check_lib_save_LIBS
  12103. fi
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12105. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12106. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  12107. MATH_LIBS=-lm
  12108. fi
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
  12110. $as_echo_n "checking for socket libraries... " >&6; }
  12111. if test "${libgo_cv_lib_sockets+set}" = set; then :
  12112. $as_echo_n "(cached) " >&6
  12113. else
  12114. libgo_cv_lib_sockets=
  12115. libgo_check_both=no
  12116. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12117. if test "x$ac_cv_func_connect" = x""yes; then :
  12118. libgo_check_socket=no
  12119. else
  12120. libgo_check_socket=yes
  12121. fi
  12122. if test "$libgo_check_socket" = "yes"; then
  12123. unset ac_cv_func_connect
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  12125. $as_echo_n "checking for main in -lsocket... " >&6; }
  12126. if test "${ac_cv_lib_socket_main+set}" = set; then :
  12127. $as_echo_n "(cached) " >&6
  12128. else
  12129. ac_check_lib_save_LIBS=$LIBS
  12130. LIBS="-lsocket $LIBS"
  12131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12132. /* end confdefs.h. */
  12133. int
  12134. main ()
  12135. {
  12136. return main ();
  12137. ;
  12138. return 0;
  12139. }
  12140. _ACEOF
  12141. if ac_fn_c_try_link "$LINENO"; then :
  12142. ac_cv_lib_socket_main=yes
  12143. else
  12144. ac_cv_lib_socket_main=no
  12145. fi
  12146. rm -f core conftest.err conftest.$ac_objext \
  12147. conftest$ac_exeext conftest.$ac_ext
  12148. LIBS=$ac_check_lib_save_LIBS
  12149. fi
  12150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  12151. $as_echo "$ac_cv_lib_socket_main" >&6; }
  12152. if test "x$ac_cv_lib_socket_main" = x""yes; then :
  12153. libgo_cv_lib_sockets="-lsocket"
  12154. else
  12155. libgo_check_both=yes
  12156. fi
  12157. fi
  12158. if test "$libgo_check_both" = "yes"; then
  12159. libgo_old_libs=$LIBS
  12160. LIBS="$LIBS -lsocket -lnsl"
  12161. unset ac_cv_func_accept
  12162. ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
  12163. if test "x$ac_cv_func_accept" = x""yes; then :
  12164. libgo_check_nsl=no
  12165. libgo_cv_lib_sockets="-lsocket -lnsl"
  12166. fi
  12167. unset ac_cv_func_accept
  12168. LIBS=$libgo_old_libs
  12169. fi
  12170. unset ac_cv_func_gethostbyname
  12171. libgo_old_libs="$LIBS"
  12172. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12173. if test "x$ac_cv_func_gethostbyname" = x""yes; then :
  12174. else
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  12176. $as_echo_n "checking for main in -lnsl... " >&6; }
  12177. if test "${ac_cv_lib_nsl_main+set}" = set; then :
  12178. $as_echo_n "(cached) " >&6
  12179. else
  12180. ac_check_lib_save_LIBS=$LIBS
  12181. LIBS="-lnsl $LIBS"
  12182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12183. /* end confdefs.h. */
  12184. int
  12185. main ()
  12186. {
  12187. return main ();
  12188. ;
  12189. return 0;
  12190. }
  12191. _ACEOF
  12192. if ac_fn_c_try_link "$LINENO"; then :
  12193. ac_cv_lib_nsl_main=yes
  12194. else
  12195. ac_cv_lib_nsl_main=no
  12196. fi
  12197. rm -f core conftest.err conftest.$ac_objext \
  12198. conftest$ac_exeext conftest.$ac_ext
  12199. LIBS=$ac_check_lib_save_LIBS
  12200. fi
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  12202. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  12203. if test "x$ac_cv_lib_nsl_main" = x""yes; then :
  12204. libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
  12205. fi
  12206. fi
  12207. unset ac_cv_func_gethostbyname
  12208. LIBS=$libgo_old_libs
  12209. fi
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
  12211. $as_echo "$libgo_cv_lib_sockets" >&6; }
  12212. NET_LIBS="$libgo_cv_lib_sockets"
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
  12214. $as_echo_n "checking whether -pthread is supported... " >&6; }
  12215. if test "${libgo_cv_lib_pthread+set}" = set; then :
  12216. $as_echo_n "(cached) " >&6
  12217. else
  12218. CFLAGS_hold=$CFLAGS
  12219. CFLAGS="$CFLAGS -pthread"
  12220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12221. /* end confdefs.h. */
  12222. int i;
  12223. _ACEOF
  12224. if ac_fn_c_try_compile "$LINENO"; then :
  12225. libgo_cv_lib_pthread=yes
  12226. else
  12227. libgo_cv_lib_pthread=no
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12230. CFLAGS=$CFLAGS_hold
  12231. fi
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
  12233. $as_echo "$libgo_cv_lib_pthread" >&6; }
  12234. PTHREAD_CFLAGS=
  12235. if test "$libgo_cv_lib_pthread" = yes; then
  12236. PTHREAD_CFLAGS=-pthread
  12237. fi
  12238. PTHREAD_LIBS=
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  12240. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  12241. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  12242. $as_echo_n "(cached) " >&6
  12243. else
  12244. ac_check_lib_save_LIBS=$LIBS
  12245. LIBS="-lpthread $LIBS"
  12246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12247. /* end confdefs.h. */
  12248. /* Override any GCC internal prototype to avoid an error.
  12249. Use char because int might match the return type of a GCC
  12250. builtin and then its argument prototype would still apply. */
  12251. #ifdef __cplusplus
  12252. extern "C"
  12253. #endif
  12254. char pthread_create ();
  12255. int
  12256. main ()
  12257. {
  12258. return pthread_create ();
  12259. ;
  12260. return 0;
  12261. }
  12262. _ACEOF
  12263. if ac_fn_c_try_link "$LINENO"; then :
  12264. ac_cv_lib_pthread_pthread_create=yes
  12265. else
  12266. ac_cv_lib_pthread_pthread_create=no
  12267. fi
  12268. rm -f core conftest.err conftest.$ac_objext \
  12269. conftest$ac_exeext conftest.$ac_ext
  12270. LIBS=$ac_check_lib_save_LIBS
  12271. fi
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  12273. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  12274. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  12275. PTHREAD_LIBS=-lpthread
  12276. fi
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
  12278. $as_echo_n "checking for library containing sched_yield... " >&6; }
  12279. if test "${ac_cv_search_sched_yield+set}" = set; then :
  12280. $as_echo_n "(cached) " >&6
  12281. else
  12282. ac_func_search_save_LIBS=$LIBS
  12283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12284. /* end confdefs.h. */
  12285. /* Override any GCC internal prototype to avoid an error.
  12286. Use char because int might match the return type of a GCC
  12287. builtin and then its argument prototype would still apply. */
  12288. #ifdef __cplusplus
  12289. extern "C"
  12290. #endif
  12291. char sched_yield ();
  12292. int
  12293. main ()
  12294. {
  12295. return sched_yield ();
  12296. ;
  12297. return 0;
  12298. }
  12299. _ACEOF
  12300. for ac_lib in '' rt; do
  12301. if test -z "$ac_lib"; then
  12302. ac_res="none required"
  12303. else
  12304. ac_res=-l$ac_lib
  12305. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12306. fi
  12307. if ac_fn_c_try_link "$LINENO"; then :
  12308. ac_cv_search_sched_yield=$ac_res
  12309. fi
  12310. rm -f core conftest.err conftest.$ac_objext \
  12311. conftest$ac_exeext
  12312. if test "${ac_cv_search_sched_yield+set}" = set; then :
  12313. break
  12314. fi
  12315. done
  12316. if test "${ac_cv_search_sched_yield+set}" = set; then :
  12317. else
  12318. ac_cv_search_sched_yield=no
  12319. fi
  12320. rm conftest.$ac_ext
  12321. LIBS=$ac_func_search_save_LIBS
  12322. fi
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
  12324. $as_echo "$ac_cv_search_sched_yield" >&6; }
  12325. ac_res=$ac_cv_search_sched_yield
  12326. if test "$ac_res" != no; then :
  12327. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12328. fi
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
  12330. $as_echo_n "checking for library containing nanosleep... " >&6; }
  12331. if test "${ac_cv_search_nanosleep+set}" = set; then :
  12332. $as_echo_n "(cached) " >&6
  12333. else
  12334. ac_func_search_save_LIBS=$LIBS
  12335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12336. /* end confdefs.h. */
  12337. /* Override any GCC internal prototype to avoid an error.
  12338. Use char because int might match the return type of a GCC
  12339. builtin and then its argument prototype would still apply. */
  12340. #ifdef __cplusplus
  12341. extern "C"
  12342. #endif
  12343. char nanosleep ();
  12344. int
  12345. main ()
  12346. {
  12347. return nanosleep ();
  12348. ;
  12349. return 0;
  12350. }
  12351. _ACEOF
  12352. for ac_lib in '' rt; do
  12353. if test -z "$ac_lib"; then
  12354. ac_res="none required"
  12355. else
  12356. ac_res=-l$ac_lib
  12357. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12358. fi
  12359. if ac_fn_c_try_link "$LINENO"; then :
  12360. ac_cv_search_nanosleep=$ac_res
  12361. fi
  12362. rm -f core conftest.err conftest.$ac_objext \
  12363. conftest$ac_exeext
  12364. if test "${ac_cv_search_nanosleep+set}" = set; then :
  12365. break
  12366. fi
  12367. done
  12368. if test "${ac_cv_search_nanosleep+set}" = set; then :
  12369. else
  12370. ac_cv_search_nanosleep=no
  12371. fi
  12372. rm conftest.$ac_ext
  12373. LIBS=$ac_func_search_save_LIBS
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
  12376. $as_echo "$ac_cv_search_nanosleep" >&6; }
  12377. ac_res=$ac_cv_search_nanosleep
  12378. if test "$ac_res" != no; then :
  12379. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12380. fi
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12382. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12383. if test "${ac_cv_c_bigendian+set}" = set; then :
  12384. $as_echo_n "(cached) " >&6
  12385. else
  12386. ac_cv_c_bigendian=unknown
  12387. # See if we're dealing with a universal compiler.
  12388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12389. /* end confdefs.h. */
  12390. #ifndef __APPLE_CC__
  12391. not a universal capable compiler
  12392. #endif
  12393. typedef int dummy;
  12394. _ACEOF
  12395. if ac_fn_c_try_compile "$LINENO"; then :
  12396. # Check for potential -arch flags. It is not universal unless
  12397. # there are at least two -arch flags with different values.
  12398. ac_arch=
  12399. ac_prev=
  12400. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12401. if test -n "$ac_prev"; then
  12402. case $ac_word in
  12403. i?86 | x86_64 | ppc | ppc64)
  12404. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12405. ac_arch=$ac_word
  12406. else
  12407. ac_cv_c_bigendian=universal
  12408. break
  12409. fi
  12410. ;;
  12411. esac
  12412. ac_prev=
  12413. elif test "x$ac_word" = "x-arch"; then
  12414. ac_prev=arch
  12415. fi
  12416. done
  12417. fi
  12418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12419. if test $ac_cv_c_bigendian = unknown; then
  12420. # See if sys/param.h defines the BYTE_ORDER macro.
  12421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12422. /* end confdefs.h. */
  12423. #include <sys/types.h>
  12424. #include <sys/param.h>
  12425. int
  12426. main ()
  12427. {
  12428. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12429. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12430. && LITTLE_ENDIAN)
  12431. bogus endian macros
  12432. #endif
  12433. ;
  12434. return 0;
  12435. }
  12436. _ACEOF
  12437. if ac_fn_c_try_compile "$LINENO"; then :
  12438. # It does; now see whether it defined to BIG_ENDIAN or not.
  12439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12440. /* end confdefs.h. */
  12441. #include <sys/types.h>
  12442. #include <sys/param.h>
  12443. int
  12444. main ()
  12445. {
  12446. #if BYTE_ORDER != BIG_ENDIAN
  12447. not big endian
  12448. #endif
  12449. ;
  12450. return 0;
  12451. }
  12452. _ACEOF
  12453. if ac_fn_c_try_compile "$LINENO"; then :
  12454. ac_cv_c_bigendian=yes
  12455. else
  12456. ac_cv_c_bigendian=no
  12457. fi
  12458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12459. fi
  12460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12461. fi
  12462. if test $ac_cv_c_bigendian = unknown; then
  12463. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12465. /* end confdefs.h. */
  12466. #include <limits.h>
  12467. int
  12468. main ()
  12469. {
  12470. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12471. bogus endian macros
  12472. #endif
  12473. ;
  12474. return 0;
  12475. }
  12476. _ACEOF
  12477. if ac_fn_c_try_compile "$LINENO"; then :
  12478. # It does; now see whether it defined to _BIG_ENDIAN or not.
  12479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12480. /* end confdefs.h. */
  12481. #include <limits.h>
  12482. int
  12483. main ()
  12484. {
  12485. #ifndef _BIG_ENDIAN
  12486. not big endian
  12487. #endif
  12488. ;
  12489. return 0;
  12490. }
  12491. _ACEOF
  12492. if ac_fn_c_try_compile "$LINENO"; then :
  12493. ac_cv_c_bigendian=yes
  12494. else
  12495. ac_cv_c_bigendian=no
  12496. fi
  12497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12498. fi
  12499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12500. fi
  12501. if test $ac_cv_c_bigendian = unknown; then
  12502. # Compile a test program.
  12503. if test "$cross_compiling" = yes; then :
  12504. # Try to guess by grepping values from an object file.
  12505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12506. /* end confdefs.h. */
  12507. short int ascii_mm[] =
  12508. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12509. short int ascii_ii[] =
  12510. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12511. int use_ascii (int i) {
  12512. return ascii_mm[i] + ascii_ii[i];
  12513. }
  12514. short int ebcdic_ii[] =
  12515. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12516. short int ebcdic_mm[] =
  12517. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12518. int use_ebcdic (int i) {
  12519. return ebcdic_mm[i] + ebcdic_ii[i];
  12520. }
  12521. extern int foo;
  12522. int
  12523. main ()
  12524. {
  12525. return use_ascii (foo) == use_ebcdic (foo);
  12526. ;
  12527. return 0;
  12528. }
  12529. _ACEOF
  12530. if ac_fn_c_try_compile "$LINENO"; then :
  12531. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  12532. ac_cv_c_bigendian=yes
  12533. fi
  12534. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12535. if test "$ac_cv_c_bigendian" = unknown; then
  12536. ac_cv_c_bigendian=no
  12537. else
  12538. # finding both strings is unlikely to happen, but who knows?
  12539. ac_cv_c_bigendian=unknown
  12540. fi
  12541. fi
  12542. fi
  12543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12544. else
  12545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12546. /* end confdefs.h. */
  12547. $ac_includes_default
  12548. int
  12549. main ()
  12550. {
  12551. /* Are we little or big endian? From Harbison&Steele. */
  12552. union
  12553. {
  12554. long int l;
  12555. char c[sizeof (long int)];
  12556. } u;
  12557. u.l = 1;
  12558. return u.c[sizeof (long int) - 1] == 1;
  12559. ;
  12560. return 0;
  12561. }
  12562. _ACEOF
  12563. if ac_fn_c_try_run "$LINENO"; then :
  12564. ac_cv_c_bigendian=no
  12565. else
  12566. ac_cv_c_bigendian=yes
  12567. fi
  12568. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12569. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12570. fi
  12571. fi
  12572. fi
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  12574. $as_echo "$ac_cv_c_bigendian" >&6; }
  12575. case $ac_cv_c_bigendian in #(
  12576. yes)
  12577. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  12578. ;; #(
  12579. no)
  12580. ;; #(
  12581. universal)
  12582. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  12583. ;; #(
  12584. *)
  12585. as_fn_error "unknown endianness
  12586. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  12587. esac
  12588. # Check whether --with-system-libunwind was given.
  12589. if test "${with_system_libunwind+set}" = set; then :
  12590. withval=$with_system_libunwind;
  12591. fi
  12592. # If system-libunwind was not specifically set, pick a default setting.
  12593. if test x$with_system_libunwind = x; then
  12594. case ${target} in
  12595. ia64-*-hpux*) with_system_libunwind=yes ;;
  12596. *) with_system_libunwind=no ;;
  12597. esac
  12598. fi
  12599. # Based on system-libunwind and target, do we have ipinfo?
  12600. if test x$with_system_libunwind = xyes; then
  12601. case ${target} in
  12602. ia64-*-*) have_unwind_getipinfo=no ;;
  12603. *) have_unwind_getipinfo=yes ;;
  12604. esac
  12605. else
  12606. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  12607. case ${target} in
  12608. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  12609. *) have_unwind_getipinfo=yes ;;
  12610. esac
  12611. fi
  12612. if test x$have_unwind_getipinfo = xyes; then
  12613. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  12614. fi
  12615. # Check whether --enable-sjlj-exceptions was given.
  12616. if test "${enable_sjlj_exceptions+set}" = set; then :
  12617. enableval=$enable_sjlj_exceptions; case "$enableval" in
  12618. yes|no|auto) ;;
  12619. *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
  12620. esac
  12621. else
  12622. enable_sjlj_exceptions=auto
  12623. fi
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
  12625. $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
  12626. if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
  12627. $as_echo_n "(cached) " >&6
  12628. else
  12629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12630. /* end confdefs.h. */
  12631. void bar ();
  12632. void clean (int *);
  12633. void foo ()
  12634. {
  12635. int i __attribute__ ((cleanup (clean)));
  12636. bar();
  12637. }
  12638. _ACEOF
  12639. CFLAGS_hold=$CFLAGS
  12640. CFLAGS="--save-temps -fexceptions"
  12641. libgo_cv_lib_sjlj_exceptions=unknown
  12642. if ac_fn_c_try_compile; then :
  12643. if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
  12644. libgo_cv_lib_sjlj_exceptions=yes
  12645. elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
  12646. libgo_cv_lib_sjlj_exceptions=no
  12647. fi
  12648. fi
  12649. CFLAGS=$CFLAGS_hold
  12650. rm -f conftest*
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
  12653. $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
  12654. if test "$enable_sjlj_exceptions" = "auto"; then
  12655. enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
  12656. fi
  12657. case $enable_sjlj_exceptions in
  12658. yes)
  12659. $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
  12660. ;;
  12661. no)
  12662. ;;
  12663. *)
  12664. as_fn_error "unable to detect exception model" "$LINENO" 5
  12665. ;;
  12666. esac
  12667. for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
  12668. do :
  12669. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12670. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12671. eval as_val=\$$as_ac_Header
  12672. if test "x$as_val" = x""yes; then :
  12673. cat >>confdefs.h <<_ACEOF
  12674. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12675. _ACEOF
  12676. fi
  12677. done
  12678. for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
  12679. do :
  12680. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12681. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
  12682. #include <sys/socket.h>
  12683. #endif
  12684. "
  12685. eval as_val=\$$as_ac_Header
  12686. if test "x$as_val" = x""yes; then :
  12687. cat >>confdefs.h <<_ACEOF
  12688. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12689. _ACEOF
  12690. fi
  12691. done
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
  12693. $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
  12694. if test "${libgo_cv_c_ustat_h+set}" = set; then :
  12695. $as_echo_n "(cached) " >&6
  12696. else
  12697. CFLAGS_hold=$CFLAGS
  12698. CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
  12699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12700. /* end confdefs.h. */
  12701. #include <sys/types.h>
  12702. #ifdef HAVE_LINUX_FILTER_H
  12703. #include <linux/filter.h>
  12704. #endif
  12705. #include <ustat.h>
  12706. _ACEOF
  12707. if ac_fn_c_try_compile "$LINENO"; then :
  12708. libgo_cv_c_ustat_h=yes
  12709. else
  12710. libgo_cv_c_ustat_h=no
  12711. fi
  12712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12713. CFLAGS=$CFLAGS_hold
  12714. fi
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
  12716. $as_echo "$libgo_cv_c_ustat_h" >&6; }
  12717. if test $libgo_cv_c_ustat_h = yes; then
  12718. $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
  12719. fi
  12720. if test "$ac_cv_header_sys_mman_h" = yes; then
  12721. HAVE_SYS_MMAN_H_TRUE=
  12722. HAVE_SYS_MMAN_H_FALSE='#'
  12723. else
  12724. HAVE_SYS_MMAN_H_TRUE='#'
  12725. HAVE_SYS_MMAN_H_FALSE=
  12726. fi
  12727. for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
  12728. do :
  12729. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12730. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12731. eval as_val=\$$as_ac_var
  12732. if test "x$as_val" = x""yes; then :
  12733. cat >>confdefs.h <<_ACEOF
  12734. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12735. _ACEOF
  12736. fi
  12737. done
  12738. if test "$ac_cv_func_strerror_r" = yes; then
  12739. HAVE_STRERROR_R_TRUE=
  12740. HAVE_STRERROR_R_FALSE='#'
  12741. else
  12742. HAVE_STRERROR_R_TRUE='#'
  12743. HAVE_STRERROR_R_FALSE=
  12744. fi
  12745. if test "$ac_cv_func_wait4" = yes; then
  12746. HAVE_WAIT4_TRUE=
  12747. HAVE_WAIT4_FALSE='#'
  12748. else
  12749. HAVE_WAIT4_TRUE='#'
  12750. HAVE_WAIT4_FALSE=
  12751. fi
  12752. for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
  12753. do :
  12754. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12755. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12756. eval as_val=\$$as_ac_var
  12757. if test "x$as_val" = x""yes; then :
  12758. cat >>confdefs.h <<_ACEOF
  12759. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12760. _ACEOF
  12761. fi
  12762. done
  12763. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  12764. if test "x$ac_cv_type_off_t" = x""yes; then :
  12765. else
  12766. cat >>confdefs.h <<_ACEOF
  12767. #define off_t long int
  12768. _ACEOF
  12769. fi
  12770. ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
  12771. if test "x$ac_cv_type_loff_t" = x""yes; then :
  12772. cat >>confdefs.h <<_ACEOF
  12773. #define HAVE_LOFF_T 1
  12774. _ACEOF
  12775. fi
  12776. LIBS_hold="$LIBS"
  12777. LIBS="$LIBS -lm"
  12778. for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
  12779. do :
  12780. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12781. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12782. eval as_val=\$$as_ac_var
  12783. if test "x$as_val" = x""yes; then :
  12784. cat >>confdefs.h <<_ACEOF
  12785. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12786. _ACEOF
  12787. fi
  12788. done
  12789. LIBS="$LIBS_hold"
  12790. CFLAGS_hold="$CFLAGS"
  12791. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12792. LIBS_hold="$LIBS"
  12793. LIBS="$LIBS $PTHREAD_LIBS"
  12794. for ac_func in sem_timedwait
  12795. do :
  12796. ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
  12797. if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
  12798. cat >>confdefs.h <<_ACEOF
  12799. #define HAVE_SEM_TIMEDWAIT 1
  12800. _ACEOF
  12801. fi
  12802. done
  12803. CFLAGS="$CFLAGS_hold"
  12804. LIBS="$LIBS_hold"
  12805. LIBS_hold="$LIBS"
  12806. LIBS="$LIBS $MATH_LIBS"
  12807. for ac_func in matherr
  12808. do :
  12809. ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
  12810. if test "x$ac_cv_func_matherr" = x""yes; then :
  12811. cat >>confdefs.h <<_ACEOF
  12812. #define HAVE_MATHERR 1
  12813. _ACEOF
  12814. fi
  12815. done
  12816. LIBS="$LIBS_hold"
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
  12818. $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
  12819. if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
  12820. $as_echo_n "(cached) " >&6
  12821. else
  12822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12823. /* end confdefs.h. */
  12824. typedef unsigned int uint32 __attribute__ ((mode (SI)));
  12825. uint32 i;
  12826. int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
  12827. _ACEOF
  12828. if ac_fn_c_try_link "$LINENO"; then :
  12829. libgo_cv_func___sync_bool_compare_and_swap_4=yes
  12830. else
  12831. libgo_cv_func___sync_bool_compare_and_swap_4=no
  12832. fi
  12833. rm -f core conftest.err conftest.$ac_objext \
  12834. conftest$ac_exeext conftest.$ac_ext
  12835. fi
  12836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
  12837. $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
  12838. if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
  12839. $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
  12840. fi
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
  12842. $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
  12843. if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
  12844. $as_echo_n "(cached) " >&6
  12845. else
  12846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12847. /* end confdefs.h. */
  12848. typedef unsigned int uint64 __attribute__ ((mode (DI)));
  12849. uint64 i;
  12850. int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
  12851. _ACEOF
  12852. if ac_fn_c_try_link "$LINENO"; then :
  12853. libgo_cv_func___sync_bool_compare_and_swap_8=yes
  12854. else
  12855. libgo_cv_func___sync_bool_compare_and_swap_8=no
  12856. fi
  12857. rm -f core conftest.err conftest.$ac_objext \
  12858. conftest$ac_exeext conftest.$ac_ext
  12859. fi
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
  12861. $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
  12862. if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
  12863. $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
  12864. fi
  12865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
  12866. $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
  12867. if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
  12868. $as_echo_n "(cached) " >&6
  12869. else
  12870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12871. /* end confdefs.h. */
  12872. typedef unsigned int uint32 __attribute__ ((mode (SI)));
  12873. uint32 i;
  12874. int main() { return __sync_fetch_and_add (&i, 1); }
  12875. _ACEOF
  12876. if ac_fn_c_try_link "$LINENO"; then :
  12877. libgo_cv_func___sync_fetch_and_add_4=yes
  12878. else
  12879. libgo_cv_func___sync_fetch_and_add_4=no
  12880. fi
  12881. rm -f core conftest.err conftest.$ac_objext \
  12882. conftest$ac_exeext conftest.$ac_ext
  12883. fi
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
  12885. $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
  12886. if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
  12887. $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
  12888. fi
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
  12890. $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
  12891. if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
  12892. $as_echo_n "(cached) " >&6
  12893. else
  12894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12895. /* end confdefs.h. */
  12896. typedef unsigned int uint64 __attribute__ ((mode (DI)));
  12897. uint64 i;
  12898. int main() { return __sync_add_and_fetch (&i, 1); }
  12899. _ACEOF
  12900. if ac_fn_c_try_link "$LINENO"; then :
  12901. libgo_cv_func___sync_add_and_fetch_8=yes
  12902. else
  12903. libgo_cv_func___sync_add_and_fetch_8=no
  12904. fi
  12905. rm -f core conftest.err conftest.$ac_objext \
  12906. conftest$ac_exeext conftest.$ac_ext
  12907. fi
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
  12909. $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
  12910. if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
  12911. $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
  12912. fi
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
  12914. $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
  12915. if test "${libgo_cv_c_stringops+set}" = set; then :
  12916. $as_echo_n "(cached) " >&6
  12917. else
  12918. CFLAGS_hold=$CFLAGS
  12919. CFLAGS="$CFLAGS -minline-all-stringops"
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. int i;
  12923. _ACEOF
  12924. if ac_fn_c_try_compile "$LINENO"; then :
  12925. libgo_cv_c_stringops=yes
  12926. else
  12927. libgo_cv_c_stringops=no
  12928. fi
  12929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12930. CFLAGS=$CFLAGS_hold
  12931. fi
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
  12933. $as_echo "$libgo_cv_c_stringops" >&6; }
  12934. STRINGOPS_FLAG=
  12935. if test "$libgo_cv_c_stringops" = yes; then
  12936. STRINGOPS_FLAG=-minline-all-stringops
  12937. fi
  12938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
  12939. $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
  12940. if test "${libgo_cv_c_fancymath+set}" = set; then :
  12941. $as_echo_n "(cached) " >&6
  12942. else
  12943. CFLAGS_hold=$CFLAGS
  12944. CFLAGS="$CFLAGS -mfancy-math-387"
  12945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12946. /* end confdefs.h. */
  12947. int i;
  12948. _ACEOF
  12949. if ac_fn_c_try_compile "$LINENO"; then :
  12950. libgo_cv_c_fancymath=yes
  12951. else
  12952. libgo_cv_c_fancymath=no
  12953. fi
  12954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12955. CFLAGS=$CFLAGS_hold
  12956. fi
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
  12958. $as_echo "$libgo_cv_c_fancymath" >&6; }
  12959. MATH_FLAG=
  12960. if test "$libgo_cv_c_fancymath" = yes; then
  12961. MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
  12962. else
  12963. MATH_FLAG="-ffp-contract=off"
  12964. fi
  12965. CFLAGS_hold=$CFLAGS
  12966. CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
  12967. ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
  12968. if test "x$ac_cv_type_off64_t" = x""yes; then :
  12969. cat >>confdefs.h <<_ACEOF
  12970. #define HAVE_OFF64_T 1
  12971. _ACEOF
  12972. fi
  12973. CFLAGS=$CFLAGS_hold
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
  12975. $as_echo_n "checking epoll_event size... " >&6; }
  12976. if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
  12977. $as_echo_n "(cached) " >&6
  12978. else
  12979. if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
  12980. else
  12981. libgo_cv_c_epoll_event_size=0
  12982. fi
  12983. fi
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
  12985. $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
  12986. SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
  12988. $as_echo_n "checking epoll_event data.fd offset... " >&6; }
  12989. if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
  12990. $as_echo_n "(cached) " >&6
  12991. else
  12992. if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
  12993. #include <sys/epoll.h>"; then :
  12994. else
  12995. libgo_cv_c_epoll_event_fd_offset=0
  12996. fi
  12997. fi
  12998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
  12999. $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
  13000. STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
  13001. ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
  13002. "
  13003. if test "x$ac_cv_type_struct_exception" = x""yes; then :
  13004. libgo_has_struct_exception=yes
  13005. else
  13006. libgo_has_struct_exception=no
  13007. fi
  13008. if test "$libgo_has_struct_exception" = "yes"; then
  13009. $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
  13010. fi
  13011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
  13012. $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
  13013. if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
  13014. $as_echo_n "(cached) " >&6
  13015. else
  13016. CFLAGS_hold="$CFLAGS"
  13017. CFLAGS="$PTHREAD_CFLAGS"
  13018. LIBS_hold="$LIBS"
  13019. LIBS="$LIBS $PTHREAD_LIBS"
  13020. # The cast to long int works around a bug in the HP C Compiler
  13021. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13022. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13023. # This bug is HP SR number 8606223364.
  13024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13025. $as_echo_n "checking size of void *... " >&6; }
  13026. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  13027. $as_echo_n "(cached) " >&6
  13028. else
  13029. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13030. else
  13031. if test "$ac_cv_type_void_p" = yes; then
  13032. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13033. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13034. { as_fn_set_status 77
  13035. as_fn_error "cannot compute sizeof (void *)
  13036. See \`config.log' for more details." "$LINENO" 5; }; }
  13037. else
  13038. ac_cv_sizeof_void_p=0
  13039. fi
  13040. fi
  13041. fi
  13042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13043. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13044. cat >>confdefs.h <<_ACEOF
  13045. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13046. _ACEOF
  13047. as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
  13048. if test "$cross_compiling" = yes; then :
  13049. case "$target:$ptr_type_size" in
  13050. i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
  13051. libgo_cv_lib_setcontext_clobbers_tls=yes ;;
  13052. *)
  13053. libgo_cv_lib_setcontext_clobbers_tls=no ;;
  13054. esac
  13055. else
  13056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13057. /* end confdefs.h. */
  13058. #include <pthread.h>
  13059. #include <stdlib.h>
  13060. #include <ucontext.h>
  13061. #include <unistd.h>
  13062. __thread int tls;
  13063. static char stack[10 * 1024 * 1024];
  13064. static ucontext_t c;
  13065. /* Called via makecontext/setcontext. */
  13066. static void
  13067. cfn (void)
  13068. {
  13069. exit (tls);
  13070. }
  13071. /* Called via pthread_create. */
  13072. static void *
  13073. tfn (void *dummy)
  13074. {
  13075. /* The thread should still see this value after calling
  13076. setcontext. */
  13077. tls = 0;
  13078. setcontext (&c);
  13079. /* The call to setcontext should not return. */
  13080. abort ();
  13081. }
  13082. int
  13083. main ()
  13084. {
  13085. pthread_t tid;
  13086. /* The thread should not see this value. */
  13087. tls = 1;
  13088. if (getcontext (&c) < 0)
  13089. abort ();
  13090. c.uc_stack.ss_sp = stack;
  13091. #ifdef MAKECONTEXT_STACK_TOP
  13092. c.uc_stack.ss_sp += sizeof stack;
  13093. #endif
  13094. c.uc_stack.ss_flags = 0;
  13095. c.uc_stack.ss_size = sizeof stack;
  13096. c.uc_link = NULL;
  13097. makecontext (&c, cfn, 0);
  13098. if (pthread_create (&tid, NULL, tfn, NULL) != 0)
  13099. abort ();
  13100. if (pthread_join (tid, NULL) != 0)
  13101. abort ();
  13102. /* The thread should have called exit. */
  13103. abort ();
  13104. }
  13105. _ACEOF
  13106. if ac_fn_c_try_run "$LINENO"; then :
  13107. libgo_cv_lib_setcontext_clobbers_tls=no
  13108. else
  13109. libgo_cv_lib_setcontext_clobbers_tls=yes
  13110. fi
  13111. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13112. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13113. fi
  13114. CFLAGS="$CFLAGS_hold"
  13115. LIBS="$LIBS_hold"
  13116. fi
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
  13118. $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
  13119. if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
  13120. $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
  13121. fi
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
  13123. $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
  13124. if test "${libgo_cv_ro_eh_frame+set}" = set; then :
  13125. $as_echo_n "(cached) " >&6
  13126. else
  13127. libgo_cv_ro_eh_frame=no
  13128. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  13129. if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
  13130. if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
  13131. libgo_cv_ro_eh_frame=yes
  13132. elif grep '.section.*eh_frame.*#alloc' conftest.c \
  13133. | grep -v '#write' > /dev/null; then
  13134. libgo_cv_ro_eh_frame=yes
  13135. fi
  13136. fi
  13137. rm -f conftest.*
  13138. fi
  13139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
  13140. $as_echo "$libgo_cv_ro_eh_frame" >&6; }
  13141. if test "x$libgo_cv_ro_eh_frame" = xyes; then
  13142. $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
  13143. else
  13144. $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
  13145. fi
  13146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
  13147. $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
  13148. if test "${libgo_cv_c_unused_arguments+set}" = set; then :
  13149. $as_echo_n "(cached) " >&6
  13150. else
  13151. CFLAGS_hold=$CFLAGS
  13152. CFLAGS="$CFLAGS -Qunused-arguments"
  13153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13154. /* end confdefs.h. */
  13155. int i;
  13156. _ACEOF
  13157. if ac_fn_c_try_compile "$LINENO"; then :
  13158. libgo_cv_c_unused_arguments=yes
  13159. else
  13160. libgo_cv_c_unused_arguments=no
  13161. fi
  13162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13163. CFLAGS=$CFLAGS_hold
  13164. fi
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
  13166. $as_echo "$libgo_cv_c_unused_arguments" >&6; }
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
  13168. $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
  13169. if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
  13170. $as_echo_n "(cached) " >&6
  13171. else
  13172. echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
  13173. CFLAGS_hold=$CFLAGS
  13174. if test "$libgo_cv_c_unused_arguments" = yes; then
  13175. CFLAGS="$CFLAGS -Qunused-arguments"
  13176. fi
  13177. if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
  13178. libgo_cv_as_comdat_gnu=yes
  13179. else
  13180. libgo_cv_as_comdat_gnu=no
  13181. fi
  13182. CFLAGS=$CFLAGS_hold
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
  13185. $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
  13186. if test "x$libgo_cv_as_comdat_gnu" = xyes; then
  13187. $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
  13188. fi
  13189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
  13190. $as_echo_n "checking assembler supports pc related relocs... " >&6; }
  13191. if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
  13192. $as_echo_n "(cached) " >&6
  13193. else
  13194. libgo_cv_as_x86_pcrel=yes
  13195. echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
  13196. CFLAGS_hold=$CFLAGS
  13197. if test "$libgo_cv_c_unused_arguments" = yes; then
  13198. CFLAGS="$CFLAGS -Qunused-arguments"
  13199. fi
  13200. if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
  13201. libgo_cv_as_x86_pcrel=no
  13202. fi
  13203. CFLAGS=$CFLAGS_hold
  13204. fi
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
  13206. $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
  13207. if test "x$libgo_cv_as_x86_pcrel" = xyes; then
  13208. $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
  13211. $as_echo_n "checking assembler supports unwind section type... " >&6; }
  13212. if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
  13213. $as_echo_n "(cached) " >&6
  13214. else
  13215. libgo_cv_as_x86_64_unwind_section_type=yes
  13216. echo '.section .eh_frame,"a",@unwind' > conftest.s
  13217. CFLAGS_hold=$CFLAGS
  13218. if test "$libgo_cv_c_unused_arguments" = yes; then
  13219. CFLAGS="$CFLAGS -Qunused-arguments"
  13220. fi
  13221. if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
  13222. libgo_cv_as_x86_64_unwind_section_type=no
  13223. fi
  13224. CFLAGS=$CFLAGS_hold
  13225. fi
  13226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
  13227. $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
  13228. if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
  13229. $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
  13230. fi
  13231. cat >confcache <<\_ACEOF
  13232. # This file is a shell script that caches the results of configure
  13233. # tests run on this system so they can be shared between configure
  13234. # scripts and configure runs, see configure's option --config-cache.
  13235. # It is not useful on other systems. If it contains results you don't
  13236. # want to keep, you may remove or edit it.
  13237. #
  13238. # config.status only pays attention to the cache file if you give it
  13239. # the --recheck option to rerun configure.
  13240. #
  13241. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13242. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13243. # following values.
  13244. _ACEOF
  13245. # The following way of writing the cache mishandles newlines in values,
  13246. # but we know of no workaround that is simple, portable, and efficient.
  13247. # So, we kill variables containing newlines.
  13248. # Ultrix sh set writes to stderr and can't be redirected directly,
  13249. # and sets the high bit in the cache file unless we assign to the vars.
  13250. (
  13251. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13252. eval ac_val=\$$ac_var
  13253. case $ac_val in #(
  13254. *${as_nl}*)
  13255. case $ac_var in #(
  13256. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13257. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13258. esac
  13259. case $ac_var in #(
  13260. _ | IFS | as_nl) ;; #(
  13261. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13262. *) { eval $ac_var=; unset $ac_var;} ;;
  13263. esac ;;
  13264. esac
  13265. done
  13266. (set) 2>&1 |
  13267. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13268. *${as_nl}ac_space=\ *)
  13269. # `set' does not quote correctly, so add quotes: double-quote
  13270. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13271. sed -n \
  13272. "s/'/'\\\\''/g;
  13273. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13274. ;; #(
  13275. *)
  13276. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13277. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13278. ;;
  13279. esac |
  13280. sort
  13281. ) |
  13282. sed '
  13283. /^ac_cv_env_/b end
  13284. t clear
  13285. :clear
  13286. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13287. t end
  13288. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13289. :end' >>confcache
  13290. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13291. if test -w "$cache_file"; then
  13292. test "x$cache_file" != "x/dev/null" &&
  13293. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13294. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13295. cat confcache >$cache_file
  13296. else
  13297. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13298. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13299. fi
  13300. fi
  13301. rm -f confcache
  13302. if test ${multilib} = yes; then
  13303. multilib_arg="--enable-multilib"
  13304. else
  13305. multilib_arg=
  13306. fi
  13307. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  13308. ac_config_commands="$ac_config_commands default"
  13309. cat >confcache <<\_ACEOF
  13310. # This file is a shell script that caches the results of configure
  13311. # tests run on this system so they can be shared between configure
  13312. # scripts and configure runs, see configure's option --config-cache.
  13313. # It is not useful on other systems. If it contains results you don't
  13314. # want to keep, you may remove or edit it.
  13315. #
  13316. # config.status only pays attention to the cache file if you give it
  13317. # the --recheck option to rerun configure.
  13318. #
  13319. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13320. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13321. # following values.
  13322. _ACEOF
  13323. # The following way of writing the cache mishandles newlines in values,
  13324. # but we know of no workaround that is simple, portable, and efficient.
  13325. # So, we kill variables containing newlines.
  13326. # Ultrix sh set writes to stderr and can't be redirected directly,
  13327. # and sets the high bit in the cache file unless we assign to the vars.
  13328. (
  13329. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13330. eval ac_val=\$$ac_var
  13331. case $ac_val in #(
  13332. *${as_nl}*)
  13333. case $ac_var in #(
  13334. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13335. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13336. esac
  13337. case $ac_var in #(
  13338. _ | IFS | as_nl) ;; #(
  13339. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13340. *) { eval $ac_var=; unset $ac_var;} ;;
  13341. esac ;;
  13342. esac
  13343. done
  13344. (set) 2>&1 |
  13345. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13346. *${as_nl}ac_space=\ *)
  13347. # `set' does not quote correctly, so add quotes: double-quote
  13348. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13349. sed -n \
  13350. "s/'/'\\\\''/g;
  13351. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13352. ;; #(
  13353. *)
  13354. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13355. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13356. ;;
  13357. esac |
  13358. sort
  13359. ) |
  13360. sed '
  13361. /^ac_cv_env_/b end
  13362. t clear
  13363. :clear
  13364. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13365. t end
  13366. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13367. :end' >>confcache
  13368. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13369. if test -w "$cache_file"; then
  13370. test "x$cache_file" != "x/dev/null" &&
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13372. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13373. cat confcache >$cache_file
  13374. else
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13376. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13377. fi
  13378. fi
  13379. rm -f confcache
  13380. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13381. # Let make expand exec_prefix.
  13382. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13383. DEFS=-DHAVE_CONFIG_H
  13384. ac_libobjs=
  13385. ac_ltlibobjs=
  13386. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13387. # 1. Remove the extension, and $U if already installed.
  13388. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13389. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13390. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13391. # will be set to the directory where LIBOBJS objects are built.
  13392. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13393. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13394. done
  13395. LIBOBJS=$ac_libobjs
  13396. LTLIBOBJS=$ac_ltlibobjs
  13397. if test -n "$EXEEXT"; then
  13398. am__EXEEXT_TRUE=
  13399. am__EXEEXT_FALSE='#'
  13400. else
  13401. am__EXEEXT_TRUE='#'
  13402. am__EXEEXT_FALSE=
  13403. fi
  13404. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13405. as_fn_error "conditional \"AMDEP\" was never defined.
  13406. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13407. fi
  13408. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13409. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13410. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13411. fi
  13412. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13413. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13415. fi
  13416. if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
  13417. as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
  13418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13419. fi
  13420. if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
  13421. as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
  13422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13423. fi
  13424. if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
  13425. as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
  13426. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13427. fi
  13428. if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
  13429. as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
  13430. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13431. fi
  13432. if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
  13433. as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
  13434. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13435. fi
  13436. if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
  13437. as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
  13438. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13439. fi
  13440. if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
  13441. as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
  13442. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13443. fi
  13444. if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
  13445. as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
  13446. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13447. fi
  13448. if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
  13449. as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
  13450. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13451. fi
  13452. if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
  13453. as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
  13454. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13455. fi
  13456. if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
  13457. as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
  13458. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13459. fi
  13460. if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
  13461. as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
  13462. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13463. fi
  13464. if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
  13465. as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
  13466. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13467. fi
  13468. if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
  13469. as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
  13470. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13471. fi
  13472. if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
  13473. as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
  13474. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13475. fi
  13476. if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
  13477. as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
  13478. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13479. fi
  13480. if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
  13481. as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
  13482. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13483. fi
  13484. if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
  13485. as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
  13486. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13487. fi
  13488. if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
  13489. as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
  13490. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13491. fi
  13492. if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
  13493. as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
  13494. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13495. fi
  13496. if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
  13497. as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
  13498. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13499. fi
  13500. if test -z "${LIBGO_IS_PPC64LE_TRUE}" && test -z "${LIBGO_IS_PPC64LE_FALSE}"; then
  13501. as_fn_error "conditional \"LIBGO_IS_PPC64LE\" was never defined.
  13502. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13503. fi
  13504. if test -z "${LIBGO_IS_S390_TRUE}" && test -z "${LIBGO_IS_S390_FALSE}"; then
  13505. as_fn_error "conditional \"LIBGO_IS_S390\" was never defined.
  13506. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13507. fi
  13508. if test -z "${LIBGO_IS_S390X_TRUE}" && test -z "${LIBGO_IS_S390X_FALSE}"; then
  13509. as_fn_error "conditional \"LIBGO_IS_S390X\" was never defined.
  13510. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13511. fi
  13512. if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
  13513. as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
  13514. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13515. fi
  13516. if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
  13517. as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
  13518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13519. fi
  13520. if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
  13521. as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
  13522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13523. fi
  13524. if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
  13525. as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
  13526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13527. fi
  13528. if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
  13529. as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
  13530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13531. fi
  13532. if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
  13533. as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
  13534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13535. fi
  13536. if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
  13537. as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
  13538. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13539. fi
  13540. if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
  13541. as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
  13542. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13543. fi
  13544. : ${CONFIG_STATUS=./config.status}
  13545. ac_write_fail=0
  13546. ac_clean_files_save=$ac_clean_files
  13547. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13548. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13549. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13550. as_write_fail=0
  13551. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13552. #! $SHELL
  13553. # Generated by $as_me.
  13554. # Run this file to recreate the current configuration.
  13555. # Compiler output produced by configure, useful for debugging
  13556. # configure, is in config.log if it exists.
  13557. debug=false
  13558. ac_cs_recheck=false
  13559. ac_cs_silent=false
  13560. SHELL=\${CONFIG_SHELL-$SHELL}
  13561. export SHELL
  13562. _ASEOF
  13563. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13564. ## -------------------- ##
  13565. ## M4sh Initialization. ##
  13566. ## -------------------- ##
  13567. # Be more Bourne compatible
  13568. DUALCASE=1; export DUALCASE # for MKS sh
  13569. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13570. emulate sh
  13571. NULLCMD=:
  13572. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13573. # is contrary to our usage. Disable this feature.
  13574. alias -g '${1+"$@"}'='"$@"'
  13575. setopt NO_GLOB_SUBST
  13576. else
  13577. case `(set -o) 2>/dev/null` in #(
  13578. *posix*) :
  13579. set -o posix ;; #(
  13580. *) :
  13581. ;;
  13582. esac
  13583. fi
  13584. as_nl='
  13585. '
  13586. export as_nl
  13587. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13588. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13589. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13590. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13591. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13592. # but without wasting forks for bash or zsh.
  13593. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13594. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13595. as_echo='print -r --'
  13596. as_echo_n='print -rn --'
  13597. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13598. as_echo='printf %s\n'
  13599. as_echo_n='printf %s'
  13600. else
  13601. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13602. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13603. as_echo_n='/usr/ucb/echo -n'
  13604. else
  13605. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13606. as_echo_n_body='eval
  13607. arg=$1;
  13608. case $arg in #(
  13609. *"$as_nl"*)
  13610. expr "X$arg" : "X\\(.*\\)$as_nl";
  13611. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13612. esac;
  13613. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13614. '
  13615. export as_echo_n_body
  13616. as_echo_n='sh -c $as_echo_n_body as_echo'
  13617. fi
  13618. export as_echo_body
  13619. as_echo='sh -c $as_echo_body as_echo'
  13620. fi
  13621. # The user is always right.
  13622. if test "${PATH_SEPARATOR+set}" != set; then
  13623. PATH_SEPARATOR=:
  13624. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13625. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13626. PATH_SEPARATOR=';'
  13627. }
  13628. fi
  13629. # IFS
  13630. # We need space, tab and new line, in precisely that order. Quoting is
  13631. # there to prevent editors from complaining about space-tab.
  13632. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13633. # splitting by setting IFS to empty value.)
  13634. IFS=" "" $as_nl"
  13635. # Find who we are. Look in the path if we contain no directory separator.
  13636. case $0 in #((
  13637. *[\\/]* ) as_myself=$0 ;;
  13638. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13639. for as_dir in $PATH
  13640. do
  13641. IFS=$as_save_IFS
  13642. test -z "$as_dir" && as_dir=.
  13643. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13644. done
  13645. IFS=$as_save_IFS
  13646. ;;
  13647. esac
  13648. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13649. # in which case we are not to be found in the path.
  13650. if test "x$as_myself" = x; then
  13651. as_myself=$0
  13652. fi
  13653. if test ! -f "$as_myself"; then
  13654. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13655. exit 1
  13656. fi
  13657. # Unset variables that we do not need and which cause bugs (e.g. in
  13658. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13659. # suppresses any "Segmentation fault" message there. '((' could
  13660. # trigger a bug in pdksh 5.2.14.
  13661. for as_var in BASH_ENV ENV MAIL MAILPATH
  13662. do eval test x\${$as_var+set} = xset \
  13663. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13664. done
  13665. PS1='$ '
  13666. PS2='> '
  13667. PS4='+ '
  13668. # NLS nuisances.
  13669. LC_ALL=C
  13670. export LC_ALL
  13671. LANGUAGE=C
  13672. export LANGUAGE
  13673. # CDPATH.
  13674. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13675. # as_fn_error ERROR [LINENO LOG_FD]
  13676. # ---------------------------------
  13677. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13678. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13679. # script with status $?, using 1 if that was 0.
  13680. as_fn_error ()
  13681. {
  13682. as_status=$?; test $as_status -eq 0 && as_status=1
  13683. if test "$3"; then
  13684. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13685. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13686. fi
  13687. $as_echo "$as_me: error: $1" >&2
  13688. as_fn_exit $as_status
  13689. } # as_fn_error
  13690. # as_fn_set_status STATUS
  13691. # -----------------------
  13692. # Set $? to STATUS, without forking.
  13693. as_fn_set_status ()
  13694. {
  13695. return $1
  13696. } # as_fn_set_status
  13697. # as_fn_exit STATUS
  13698. # -----------------
  13699. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13700. as_fn_exit ()
  13701. {
  13702. set +e
  13703. as_fn_set_status $1
  13704. exit $1
  13705. } # as_fn_exit
  13706. # as_fn_unset VAR
  13707. # ---------------
  13708. # Portably unset VAR.
  13709. as_fn_unset ()
  13710. {
  13711. { eval $1=; unset $1;}
  13712. }
  13713. as_unset=as_fn_unset
  13714. # as_fn_append VAR VALUE
  13715. # ----------------------
  13716. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13717. # advantage of any shell optimizations that allow amortized linear growth over
  13718. # repeated appends, instead of the typical quadratic growth present in naive
  13719. # implementations.
  13720. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13721. eval 'as_fn_append ()
  13722. {
  13723. eval $1+=\$2
  13724. }'
  13725. else
  13726. as_fn_append ()
  13727. {
  13728. eval $1=\$$1\$2
  13729. }
  13730. fi # as_fn_append
  13731. # as_fn_arith ARG...
  13732. # ------------------
  13733. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13734. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13735. # must be portable across $(()) and expr.
  13736. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13737. eval 'as_fn_arith ()
  13738. {
  13739. as_val=$(( $* ))
  13740. }'
  13741. else
  13742. as_fn_arith ()
  13743. {
  13744. as_val=`expr "$@" || test $? -eq 1`
  13745. }
  13746. fi # as_fn_arith
  13747. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13748. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13749. as_expr=expr
  13750. else
  13751. as_expr=false
  13752. fi
  13753. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13754. as_basename=basename
  13755. else
  13756. as_basename=false
  13757. fi
  13758. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13759. as_dirname=dirname
  13760. else
  13761. as_dirname=false
  13762. fi
  13763. as_me=`$as_basename -- "$0" ||
  13764. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13765. X"$0" : 'X\(//\)$' \| \
  13766. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13767. $as_echo X/"$0" |
  13768. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13769. s//\1/
  13770. q
  13771. }
  13772. /^X\/\(\/\/\)$/{
  13773. s//\1/
  13774. q
  13775. }
  13776. /^X\/\(\/\).*/{
  13777. s//\1/
  13778. q
  13779. }
  13780. s/.*/./; q'`
  13781. # Avoid depending upon Character Ranges.
  13782. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13783. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13784. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13785. as_cr_digits='0123456789'
  13786. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13787. ECHO_C= ECHO_N= ECHO_T=
  13788. case `echo -n x` in #(((((
  13789. -n*)
  13790. case `echo 'xy\c'` in
  13791. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13792. xy) ECHO_C='\c';;
  13793. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13794. ECHO_T=' ';;
  13795. esac;;
  13796. *)
  13797. ECHO_N='-n';;
  13798. esac
  13799. rm -f conf$$ conf$$.exe conf$$.file
  13800. if test -d conf$$.dir; then
  13801. rm -f conf$$.dir/conf$$.file
  13802. else
  13803. rm -f conf$$.dir
  13804. mkdir conf$$.dir 2>/dev/null
  13805. fi
  13806. if (echo >conf$$.file) 2>/dev/null; then
  13807. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13808. as_ln_s='ln -s'
  13809. # ... but there are two gotchas:
  13810. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13811. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13812. # In both cases, we have to default to `cp -p'.
  13813. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13814. as_ln_s='cp -p'
  13815. elif ln conf$$.file conf$$ 2>/dev/null; then
  13816. as_ln_s=ln
  13817. else
  13818. as_ln_s='cp -p'
  13819. fi
  13820. else
  13821. as_ln_s='cp -p'
  13822. fi
  13823. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13824. rmdir conf$$.dir 2>/dev/null
  13825. # as_fn_mkdir_p
  13826. # -------------
  13827. # Create "$as_dir" as a directory, including parents if necessary.
  13828. as_fn_mkdir_p ()
  13829. {
  13830. case $as_dir in #(
  13831. -*) as_dir=./$as_dir;;
  13832. esac
  13833. test -d "$as_dir" || eval $as_mkdir_p || {
  13834. as_dirs=
  13835. while :; do
  13836. case $as_dir in #(
  13837. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13838. *) as_qdir=$as_dir;;
  13839. esac
  13840. as_dirs="'$as_qdir' $as_dirs"
  13841. as_dir=`$as_dirname -- "$as_dir" ||
  13842. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13843. X"$as_dir" : 'X\(//\)[^/]' \| \
  13844. X"$as_dir" : 'X\(//\)$' \| \
  13845. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13846. $as_echo X"$as_dir" |
  13847. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13848. s//\1/
  13849. q
  13850. }
  13851. /^X\(\/\/\)[^/].*/{
  13852. s//\1/
  13853. q
  13854. }
  13855. /^X\(\/\/\)$/{
  13856. s//\1/
  13857. q
  13858. }
  13859. /^X\(\/\).*/{
  13860. s//\1/
  13861. q
  13862. }
  13863. s/.*/./; q'`
  13864. test -d "$as_dir" && break
  13865. done
  13866. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13867. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13868. } # as_fn_mkdir_p
  13869. if mkdir -p . 2>/dev/null; then
  13870. as_mkdir_p='mkdir -p "$as_dir"'
  13871. else
  13872. test -d ./-p && rmdir ./-p
  13873. as_mkdir_p=false
  13874. fi
  13875. if test -x / >/dev/null 2>&1; then
  13876. as_test_x='test -x'
  13877. else
  13878. if ls -dL / >/dev/null 2>&1; then
  13879. as_ls_L_option=L
  13880. else
  13881. as_ls_L_option=
  13882. fi
  13883. as_test_x='
  13884. eval sh -c '\''
  13885. if test -d "$1"; then
  13886. test -d "$1/.";
  13887. else
  13888. case $1 in #(
  13889. -*)set "./$1";;
  13890. esac;
  13891. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13892. ???[sx]*):;;*)false;;esac;fi
  13893. '\'' sh
  13894. '
  13895. fi
  13896. as_executable_p=$as_test_x
  13897. # Sed expression to map a string onto a valid CPP name.
  13898. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13899. # Sed expression to map a string onto a valid variable name.
  13900. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13901. exec 6>&1
  13902. ## ----------------------------------- ##
  13903. ## Main body of $CONFIG_STATUS script. ##
  13904. ## ----------------------------------- ##
  13905. _ASEOF
  13906. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13907. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13908. # Save the log message, to keep $0 and so on meaningful, and to
  13909. # report actual input values of CONFIG_FILES etc. instead of their
  13910. # values after options handling.
  13911. ac_log="
  13912. This file was extended by package-unused $as_me version-unused, which was
  13913. generated by GNU Autoconf 2.64. Invocation command line was
  13914. CONFIG_FILES = $CONFIG_FILES
  13915. CONFIG_HEADERS = $CONFIG_HEADERS
  13916. CONFIG_LINKS = $CONFIG_LINKS
  13917. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13918. $ $0 $@
  13919. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13920. "
  13921. _ACEOF
  13922. case $ac_config_files in *"
  13923. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13924. esac
  13925. case $ac_config_headers in *"
  13926. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13927. esac
  13928. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13929. # Files that config.status was made for.
  13930. config_files="$ac_config_files"
  13931. config_headers="$ac_config_headers"
  13932. config_commands="$ac_config_commands"
  13933. _ACEOF
  13934. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13935. ac_cs_usage="\
  13936. \`$as_me' instantiates files and other configuration actions
  13937. from templates according to the current configuration. Unless the files
  13938. and actions are specified as TAGs, all are instantiated by default.
  13939. Usage: $0 [OPTION]... [TAG]...
  13940. -h, --help print this help, then exit
  13941. -V, --version print version number and configuration settings, then exit
  13942. -q, --quiet, --silent
  13943. do not print progress messages
  13944. -d, --debug don't remove temporary files
  13945. --recheck update $as_me by reconfiguring in the same conditions
  13946. --file=FILE[:TEMPLATE]
  13947. instantiate the configuration file FILE
  13948. --header=FILE[:TEMPLATE]
  13949. instantiate the configuration header FILE
  13950. Configuration files:
  13951. $config_files
  13952. Configuration headers:
  13953. $config_headers
  13954. Configuration commands:
  13955. $config_commands
  13956. Report bugs to the package provider."
  13957. _ACEOF
  13958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13959. ac_cs_version="\\
  13960. package-unused config.status version-unused
  13961. configured by $0, generated by GNU Autoconf 2.64,
  13962. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13963. Copyright (C) 2009 Free Software Foundation, Inc.
  13964. This config.status script is free software; the Free Software Foundation
  13965. gives unlimited permission to copy, distribute and modify it."
  13966. ac_pwd='$ac_pwd'
  13967. srcdir='$srcdir'
  13968. INSTALL='$INSTALL'
  13969. MKDIR_P='$MKDIR_P'
  13970. AWK='$AWK'
  13971. test -n "\$AWK" || AWK=awk
  13972. _ACEOF
  13973. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13974. # The default lists apply if the user does not specify any file.
  13975. ac_need_defaults=:
  13976. while test $# != 0
  13977. do
  13978. case $1 in
  13979. --*=*)
  13980. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13981. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13982. ac_shift=:
  13983. ;;
  13984. *)
  13985. ac_option=$1
  13986. ac_optarg=$2
  13987. ac_shift=shift
  13988. ;;
  13989. esac
  13990. case $ac_option in
  13991. # Handling of the options.
  13992. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13993. ac_cs_recheck=: ;;
  13994. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13995. $as_echo "$ac_cs_version"; exit ;;
  13996. --debug | --debu | --deb | --de | --d | -d )
  13997. debug=: ;;
  13998. --file | --fil | --fi | --f )
  13999. $ac_shift
  14000. case $ac_optarg in
  14001. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14002. esac
  14003. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14004. ac_need_defaults=false;;
  14005. --header | --heade | --head | --hea )
  14006. $ac_shift
  14007. case $ac_optarg in
  14008. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14009. esac
  14010. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14011. ac_need_defaults=false;;
  14012. --he | --h)
  14013. # Conflict between --help and --header
  14014. as_fn_error "ambiguous option: \`$1'
  14015. Try \`$0 --help' for more information.";;
  14016. --help | --hel | -h )
  14017. $as_echo "$ac_cs_usage"; exit ;;
  14018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14019. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14020. ac_cs_silent=: ;;
  14021. # This is an error.
  14022. -*) as_fn_error "unrecognized option: \`$1'
  14023. Try \`$0 --help' for more information." ;;
  14024. *) as_fn_append ac_config_targets " $1"
  14025. ac_need_defaults=false ;;
  14026. esac
  14027. shift
  14028. done
  14029. ac_configure_extra_args=
  14030. if $ac_cs_silent; then
  14031. exec 6>/dev/null
  14032. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14033. fi
  14034. _ACEOF
  14035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14036. if \$ac_cs_recheck; then
  14037. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14038. shift
  14039. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14040. CONFIG_SHELL='$SHELL'
  14041. export CONFIG_SHELL
  14042. exec "\$@"
  14043. fi
  14044. _ACEOF
  14045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14046. exec 5>>config.log
  14047. {
  14048. echo
  14049. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14050. ## Running $as_me. ##
  14051. _ASBOX
  14052. $as_echo "$ac_log"
  14053. } >&5
  14054. _ACEOF
  14055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14056. #
  14057. # INIT-COMMANDS
  14058. #
  14059. srcdir="$srcdir"
  14060. host="$host"
  14061. target="$target"
  14062. with_multisubdir="$with_multisubdir"
  14063. with_multisrctop="$with_multisrctop"
  14064. with_target_subdir="$with_target_subdir"
  14065. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14066. multi_basedir="$multi_basedir"
  14067. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14068. CC="$CC"
  14069. CXX="$CXX"
  14070. GFORTRAN="$GFORTRAN"
  14071. GCJ="$GCJ"
  14072. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14073. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14074. # if CDPATH is set.
  14075. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14076. sed_quote_subst='$sed_quote_subst'
  14077. double_quote_subst='$double_quote_subst'
  14078. delay_variable_subst='$delay_variable_subst'
  14079. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14080. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14081. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14082. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14083. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14084. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14085. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14086. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14087. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14088. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14089. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14090. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14091. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14092. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14093. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14094. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14095. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14096. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14097. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14098. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14099. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14100. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14101. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14102. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14103. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14104. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14105. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14106. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14107. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14108. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14109. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14110. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14111. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14112. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14113. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14114. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14115. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14116. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14117. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14118. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14119. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14120. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14121. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14122. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14123. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14124. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14125. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14126. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14127. 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"`'
  14128. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14129. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14130. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14131. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14132. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14133. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14134. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14135. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14136. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14137. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14138. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14139. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14140. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14141. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14142. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14143. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14144. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14145. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14146. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14147. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14148. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14149. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14150. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14151. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14152. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14153. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14154. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14155. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14156. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14157. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14158. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14159. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14160. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14161. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14162. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14163. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14164. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14165. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14166. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14167. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14168. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14169. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14170. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14171. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14172. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14173. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14174. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14175. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14176. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14177. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14178. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14179. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14180. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14181. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14182. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14183. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14184. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14185. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14186. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14187. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14188. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14189. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14190. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14191. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14192. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14193. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14194. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14195. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14196. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14197. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14198. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14199. LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
  14200. reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
  14201. reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14202. old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14203. compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
  14204. GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
  14205. lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
  14206. lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
  14207. lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
  14208. lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
  14209. lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
  14210. archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
  14211. enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
  14212. export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14213. whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14214. compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
  14215. old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14216. old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14217. archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14218. archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14219. module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14220. module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14221. with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
  14222. allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
  14223. no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
  14224. hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
  14225. hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
  14226. hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
  14227. hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
  14228. hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
  14229. hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
  14230. hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
  14231. hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
  14232. inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
  14233. link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
  14234. fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
  14235. always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
  14236. export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14237. exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
  14238. include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
  14239. prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
  14240. file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
  14241. hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
  14242. LTCC='$LTCC'
  14243. LTCFLAGS='$LTCFLAGS'
  14244. compiler='$compiler_DEFAULT'
  14245. # A function that is used when there is no print builtin or printf.
  14246. func_fallback_echo ()
  14247. {
  14248. eval 'cat <<_LTECHO_EOF
  14249. \$1
  14250. _LTECHO_EOF'
  14251. }
  14252. # Quote evaled strings.
  14253. for var in SED \
  14254. GREP \
  14255. EGREP \
  14256. FGREP \
  14257. SHELL \
  14258. ECHO \
  14259. LD \
  14260. NM \
  14261. LN_S \
  14262. lt_SP2NL \
  14263. lt_NL2SP \
  14264. reload_flag \
  14265. OBJDUMP \
  14266. deplibs_check_method \
  14267. file_magic_cmd \
  14268. AR \
  14269. AR_FLAGS \
  14270. STRIP \
  14271. RANLIB \
  14272. CC \
  14273. CFLAGS \
  14274. compiler \
  14275. lt_cv_sys_global_symbol_pipe \
  14276. lt_cv_sys_global_symbol_to_cdecl \
  14277. lt_cv_sys_global_symbol_to_c_name_address \
  14278. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14279. lt_prog_compiler_no_builtin_flag \
  14280. lt_prog_compiler_wl \
  14281. lt_prog_compiler_pic \
  14282. lt_prog_compiler_static \
  14283. lt_cv_prog_compiler_c_o \
  14284. need_locks \
  14285. DSYMUTIL \
  14286. NMEDIT \
  14287. LIPO \
  14288. OTOOL \
  14289. OTOOL64 \
  14290. shrext_cmds \
  14291. export_dynamic_flag_spec \
  14292. whole_archive_flag_spec \
  14293. compiler_needs_object \
  14294. with_gnu_ld \
  14295. allow_undefined_flag \
  14296. no_undefined_flag \
  14297. hardcode_libdir_flag_spec \
  14298. hardcode_libdir_flag_spec_ld \
  14299. hardcode_libdir_separator \
  14300. fix_srcfile_path \
  14301. exclude_expsyms \
  14302. include_expsyms \
  14303. file_list_spec \
  14304. variables_saved_for_relink \
  14305. libname_spec \
  14306. library_names_spec \
  14307. soname_spec \
  14308. install_override_mode \
  14309. finish_eval \
  14310. old_striplib \
  14311. striplib \
  14312. LD_GO \
  14313. reload_flag_GO \
  14314. compiler_GO \
  14315. lt_prog_compiler_no_builtin_flag_GO \
  14316. lt_prog_compiler_wl_GO \
  14317. lt_prog_compiler_pic_GO \
  14318. lt_prog_compiler_static_GO \
  14319. lt_cv_prog_compiler_c_o_GO \
  14320. export_dynamic_flag_spec_GO \
  14321. whole_archive_flag_spec_GO \
  14322. compiler_needs_object_GO \
  14323. with_gnu_ld_GO \
  14324. allow_undefined_flag_GO \
  14325. no_undefined_flag_GO \
  14326. hardcode_libdir_flag_spec_GO \
  14327. hardcode_libdir_flag_spec_ld_GO \
  14328. hardcode_libdir_separator_GO \
  14329. fix_srcfile_path_GO \
  14330. exclude_expsyms_GO \
  14331. include_expsyms_GO \
  14332. file_list_spec_GO; do
  14333. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14334. *[\\\\\\\`\\"\\\$]*)
  14335. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14336. ;;
  14337. *)
  14338. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14339. ;;
  14340. esac
  14341. done
  14342. # Double-quote double-evaled strings.
  14343. for var in reload_cmds \
  14344. old_postinstall_cmds \
  14345. old_postuninstall_cmds \
  14346. old_archive_cmds \
  14347. extract_expsyms_cmds \
  14348. old_archive_from_new_cmds \
  14349. old_archive_from_expsyms_cmds \
  14350. archive_cmds \
  14351. archive_expsym_cmds \
  14352. module_cmds \
  14353. module_expsym_cmds \
  14354. export_symbols_cmds \
  14355. prelink_cmds \
  14356. postinstall_cmds \
  14357. postuninstall_cmds \
  14358. finish_cmds \
  14359. sys_lib_search_path_spec \
  14360. sys_lib_dlsearch_path_spec \
  14361. reload_cmds_GO \
  14362. old_archive_cmds_GO \
  14363. old_archive_from_new_cmds_GO \
  14364. old_archive_from_expsyms_cmds_GO \
  14365. archive_cmds_GO \
  14366. archive_expsym_cmds_GO \
  14367. module_cmds_GO \
  14368. module_expsym_cmds_GO \
  14369. export_symbols_cmds_GO \
  14370. prelink_cmds_GO; do
  14371. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14372. *[\\\\\\\`\\"\\\$]*)
  14373. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14374. ;;
  14375. *)
  14376. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14377. ;;
  14378. esac
  14379. done
  14380. ac_aux_dir='$ac_aux_dir'
  14381. xsi_shell='$xsi_shell'
  14382. lt_shell_append='$lt_shell_append'
  14383. # See if we are running on zsh, and set the options which allow our
  14384. # commands through without removal of \ escapes INIT.
  14385. if test -n "\${ZSH_VERSION+set}" ; then
  14386. setopt NO_GLOB_SUBST
  14387. fi
  14388. PACKAGE='$PACKAGE'
  14389. VERSION='$VERSION'
  14390. TIMESTAMP='$TIMESTAMP'
  14391. RM='$RM'
  14392. ofile='$ofile'
  14393. # Variables needed in config.status (file generation) which aren't already
  14394. # passed by autoconf.
  14395. SUBDIRS="$SUBDIRS"
  14396. _ACEOF
  14397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14398. # Handling of arguments.
  14399. for ac_config_target in $ac_config_targets
  14400. do
  14401. case $ac_config_target in
  14402. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14403. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14404. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14405. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14406. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14407. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14408. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  14409. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14410. esac
  14411. done
  14412. # If the user did not use the arguments to specify the items to instantiate,
  14413. # then the envvar interface is used. Set only those that are not.
  14414. # We use the long form for the default assignment because of an extremely
  14415. # bizarre bug on SunOS 4.1.3.
  14416. if $ac_need_defaults; then
  14417. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14418. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14419. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14420. fi
  14421. # Have a temporary directory for convenience. Make it in the build tree
  14422. # simply because there is no reason against having it here, and in addition,
  14423. # creating and moving files from /tmp can sometimes cause problems.
  14424. # Hook for its removal unless debugging.
  14425. # Note that there is a small window in which the directory will not be cleaned:
  14426. # after its creation but before its name has been assigned to `$tmp'.
  14427. $debug ||
  14428. {
  14429. tmp=
  14430. trap 'exit_status=$?
  14431. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14432. ' 0
  14433. trap 'as_fn_exit 1' 1 2 13 15
  14434. }
  14435. # Create a (secure) tmp directory for tmp files.
  14436. {
  14437. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14438. test -n "$tmp" && test -d "$tmp"
  14439. } ||
  14440. {
  14441. tmp=./conf$$-$RANDOM
  14442. (umask 077 && mkdir "$tmp")
  14443. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14444. # Set up the scripts for CONFIG_FILES section.
  14445. # No need to generate them if there are no CONFIG_FILES.
  14446. # This happens for instance with `./config.status config.h'.
  14447. if test -n "$CONFIG_FILES"; then
  14448. ac_cr=`echo X | tr X '\015'`
  14449. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14450. # But we know of no other shell where ac_cr would be empty at this
  14451. # point, so we can use a bashism as a fallback.
  14452. if test "x$ac_cr" = x; then
  14453. eval ac_cr=\$\'\\r\'
  14454. fi
  14455. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14456. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14457. ac_cs_awk_cr='\r'
  14458. else
  14459. ac_cs_awk_cr=$ac_cr
  14460. fi
  14461. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14462. _ACEOF
  14463. {
  14464. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14465. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14466. echo "_ACEOF"
  14467. } >conf$$subs.sh ||
  14468. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14469. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14470. ac_delim='%!_!# '
  14471. for ac_last_try in false false false false false :; do
  14472. . ./conf$$subs.sh ||
  14473. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14474. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14475. if test $ac_delim_n = $ac_delim_num; then
  14476. break
  14477. elif $ac_last_try; then
  14478. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14479. else
  14480. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14481. fi
  14482. done
  14483. rm -f conf$$subs.sh
  14484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14485. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14486. _ACEOF
  14487. sed -n '
  14488. h
  14489. s/^/S["/; s/!.*/"]=/
  14490. p
  14491. g
  14492. s/^[^!]*!//
  14493. :repl
  14494. t repl
  14495. s/'"$ac_delim"'$//
  14496. t delim
  14497. :nl
  14498. h
  14499. s/\(.\{148\}\).*/\1/
  14500. t more1
  14501. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14502. p
  14503. n
  14504. b repl
  14505. :more1
  14506. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14507. p
  14508. g
  14509. s/.\{148\}//
  14510. t nl
  14511. :delim
  14512. h
  14513. s/\(.\{148\}\).*/\1/
  14514. t more2
  14515. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14516. p
  14517. b
  14518. :more2
  14519. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14520. p
  14521. g
  14522. s/.\{148\}//
  14523. t delim
  14524. ' <conf$$subs.awk | sed '
  14525. /^[^""]/{
  14526. N
  14527. s/\n//
  14528. }
  14529. ' >>$CONFIG_STATUS || ac_write_fail=1
  14530. rm -f conf$$subs.awk
  14531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14532. _ACAWK
  14533. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14534. for (key in S) S_is_set[key] = 1
  14535. FS = ""
  14536. }
  14537. {
  14538. line = $ 0
  14539. nfields = split(line, field, "@")
  14540. substed = 0
  14541. len = length(field[1])
  14542. for (i = 2; i < nfields; i++) {
  14543. key = field[i]
  14544. keylen = length(key)
  14545. if (S_is_set[key]) {
  14546. value = S[key]
  14547. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14548. len += length(value) + length(field[++i])
  14549. substed = 1
  14550. } else
  14551. len += 1 + keylen
  14552. }
  14553. print line
  14554. }
  14555. _ACAWK
  14556. _ACEOF
  14557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14558. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14559. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14560. else
  14561. cat
  14562. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14563. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14564. _ACEOF
  14565. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14566. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14567. # trailing colons and then remove the whole line if VPATH becomes empty
  14568. # (actually we leave an empty line to preserve line numbers).
  14569. if test "x$srcdir" = x.; then
  14570. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14571. s/:*\$(srcdir):*/:/
  14572. s/:*\${srcdir}:*/:/
  14573. s/:*@srcdir@:*/:/
  14574. s/^\([^=]*=[ ]*\):*/\1/
  14575. s/:*$//
  14576. s/^[^=]*=[ ]*$//
  14577. }'
  14578. fi
  14579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14580. fi # test -n "$CONFIG_FILES"
  14581. # Set up the scripts for CONFIG_HEADERS section.
  14582. # No need to generate them if there are no CONFIG_HEADERS.
  14583. # This happens for instance with `./config.status Makefile'.
  14584. if test -n "$CONFIG_HEADERS"; then
  14585. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14586. BEGIN {
  14587. _ACEOF
  14588. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14589. # here-document in config.status, that substitutes the proper values into
  14590. # config.h.in to produce config.h.
  14591. # Create a delimiter string that does not exist in confdefs.h, to ease
  14592. # handling of long lines.
  14593. ac_delim='%!_!# '
  14594. for ac_last_try in false false :; do
  14595. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14596. if test -z "$ac_t"; then
  14597. break
  14598. elif $ac_last_try; then
  14599. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14600. else
  14601. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14602. fi
  14603. done
  14604. # For the awk script, D is an array of macro values keyed by name,
  14605. # likewise P contains macro parameters if any. Preserve backslash
  14606. # newline sequences.
  14607. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14608. sed -n '
  14609. s/.\{148\}/&'"$ac_delim"'/g
  14610. t rset
  14611. :rset
  14612. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14613. t def
  14614. d
  14615. :def
  14616. s/\\$//
  14617. t bsnl
  14618. s/["\\]/\\&/g
  14619. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14620. D["\1"]=" \3"/p
  14621. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14622. d
  14623. :bsnl
  14624. s/["\\]/\\&/g
  14625. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14626. D["\1"]=" \3\\\\\\n"\\/p
  14627. t cont
  14628. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14629. t cont
  14630. d
  14631. :cont
  14632. n
  14633. s/.\{148\}/&'"$ac_delim"'/g
  14634. t clear
  14635. :clear
  14636. s/\\$//
  14637. t bsnlc
  14638. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14639. d
  14640. :bsnlc
  14641. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14642. b cont
  14643. ' <confdefs.h | sed '
  14644. s/'"$ac_delim"'/"\\\
  14645. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14647. for (key in D) D_is_set[key] = 1
  14648. FS = ""
  14649. }
  14650. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14651. line = \$ 0
  14652. split(line, arg, " ")
  14653. if (arg[1] == "#") {
  14654. defundef = arg[2]
  14655. mac1 = arg[3]
  14656. } else {
  14657. defundef = substr(arg[1], 2)
  14658. mac1 = arg[2]
  14659. }
  14660. split(mac1, mac2, "(") #)
  14661. macro = mac2[1]
  14662. prefix = substr(line, 1, index(line, defundef) - 1)
  14663. if (D_is_set[macro]) {
  14664. # Preserve the white space surrounding the "#".
  14665. print prefix "define", macro P[macro] D[macro]
  14666. next
  14667. } else {
  14668. # Replace #undef with comments. This is necessary, for example,
  14669. # in the case of _POSIX_SOURCE, which is predefined and required
  14670. # on some systems where configure will not decide to define it.
  14671. if (defundef == "undef") {
  14672. print "/*", prefix defundef, macro, "*/"
  14673. next
  14674. }
  14675. }
  14676. }
  14677. { print }
  14678. _ACAWK
  14679. _ACEOF
  14680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14681. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14682. fi # test -n "$CONFIG_HEADERS"
  14683. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14684. shift
  14685. for ac_tag
  14686. do
  14687. case $ac_tag in
  14688. :[FHLC]) ac_mode=$ac_tag; continue;;
  14689. esac
  14690. case $ac_mode$ac_tag in
  14691. :[FHL]*:*);;
  14692. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14693. :[FH]-) ac_tag=-:-;;
  14694. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14695. esac
  14696. ac_save_IFS=$IFS
  14697. IFS=:
  14698. set x $ac_tag
  14699. IFS=$ac_save_IFS
  14700. shift
  14701. ac_file=$1
  14702. shift
  14703. case $ac_mode in
  14704. :L) ac_source=$1;;
  14705. :[FH])
  14706. ac_file_inputs=
  14707. for ac_f
  14708. do
  14709. case $ac_f in
  14710. -) ac_f="$tmp/stdin";;
  14711. *) # Look for the file first in the build tree, then in the source tree
  14712. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14713. # because $ac_f cannot contain `:'.
  14714. test -f "$ac_f" ||
  14715. case $ac_f in
  14716. [\\/$]*) false;;
  14717. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14718. esac ||
  14719. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14720. esac
  14721. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14722. as_fn_append ac_file_inputs " '$ac_f'"
  14723. done
  14724. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14725. # use $as_me), people would be surprised to read:
  14726. # /* config.h. Generated by config.status. */
  14727. configure_input='Generated from '`
  14728. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14729. `' by configure.'
  14730. if test x"$ac_file" != x-; then
  14731. configure_input="$ac_file. $configure_input"
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14733. $as_echo "$as_me: creating $ac_file" >&6;}
  14734. fi
  14735. # Neutralize special characters interpreted by sed in replacement strings.
  14736. case $configure_input in #(
  14737. *\&* | *\|* | *\\* )
  14738. ac_sed_conf_input=`$as_echo "$configure_input" |
  14739. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14740. *) ac_sed_conf_input=$configure_input;;
  14741. esac
  14742. case $ac_tag in
  14743. *:-:* | *:-) cat >"$tmp/stdin" \
  14744. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14745. esac
  14746. ;;
  14747. esac
  14748. ac_dir=`$as_dirname -- "$ac_file" ||
  14749. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14750. X"$ac_file" : 'X\(//\)[^/]' \| \
  14751. X"$ac_file" : 'X\(//\)$' \| \
  14752. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14753. $as_echo X"$ac_file" |
  14754. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14755. s//\1/
  14756. q
  14757. }
  14758. /^X\(\/\/\)[^/].*/{
  14759. s//\1/
  14760. q
  14761. }
  14762. /^X\(\/\/\)$/{
  14763. s//\1/
  14764. q
  14765. }
  14766. /^X\(\/\).*/{
  14767. s//\1/
  14768. q
  14769. }
  14770. s/.*/./; q'`
  14771. as_dir="$ac_dir"; as_fn_mkdir_p
  14772. ac_builddir=.
  14773. case "$ac_dir" in
  14774. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14775. *)
  14776. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14777. # A ".." for each directory in $ac_dir_suffix.
  14778. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14779. case $ac_top_builddir_sub in
  14780. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14781. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14782. esac ;;
  14783. esac
  14784. ac_abs_top_builddir=$ac_pwd
  14785. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14786. # for backward compatibility:
  14787. ac_top_builddir=$ac_top_build_prefix
  14788. case $srcdir in
  14789. .) # We are building in place.
  14790. ac_srcdir=.
  14791. ac_top_srcdir=$ac_top_builddir_sub
  14792. ac_abs_top_srcdir=$ac_pwd ;;
  14793. [\\/]* | ?:[\\/]* ) # Absolute name.
  14794. ac_srcdir=$srcdir$ac_dir_suffix;
  14795. ac_top_srcdir=$srcdir
  14796. ac_abs_top_srcdir=$srcdir ;;
  14797. *) # Relative name.
  14798. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14799. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14800. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14801. esac
  14802. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14803. case $ac_mode in
  14804. :F)
  14805. #
  14806. # CONFIG_FILE
  14807. #
  14808. case $INSTALL in
  14809. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14810. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14811. esac
  14812. ac_MKDIR_P=$MKDIR_P
  14813. case $MKDIR_P in
  14814. [\\/$]* | ?:[\\/]* ) ;;
  14815. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14816. esac
  14817. _ACEOF
  14818. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14819. # If the template does not know about datarootdir, expand it.
  14820. # FIXME: This hack should be removed a few years after 2.60.
  14821. ac_datarootdir_hack=; ac_datarootdir_seen=
  14822. ac_sed_dataroot='
  14823. /datarootdir/ {
  14824. p
  14825. q
  14826. }
  14827. /@datadir@/p
  14828. /@docdir@/p
  14829. /@infodir@/p
  14830. /@localedir@/p
  14831. /@mandir@/p'
  14832. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14833. *datarootdir*) ac_datarootdir_seen=yes;;
  14834. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14836. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14837. _ACEOF
  14838. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14839. ac_datarootdir_hack='
  14840. s&@datadir@&$datadir&g
  14841. s&@docdir@&$docdir&g
  14842. s&@infodir@&$infodir&g
  14843. s&@localedir@&$localedir&g
  14844. s&@mandir@&$mandir&g
  14845. s&\\\${datarootdir}&$datarootdir&g' ;;
  14846. esac
  14847. _ACEOF
  14848. # Neutralize VPATH when `$srcdir' = `.'.
  14849. # Shell code in configure.ac might set extrasub.
  14850. # FIXME: do we really want to maintain this feature?
  14851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14852. ac_sed_extra="$ac_vpsub
  14853. $extrasub
  14854. _ACEOF
  14855. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14856. :t
  14857. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14858. s|@configure_input@|$ac_sed_conf_input|;t t
  14859. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14860. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14861. s&@srcdir@&$ac_srcdir&;t t
  14862. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14863. s&@top_srcdir@&$ac_top_srcdir&;t t
  14864. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14865. s&@builddir@&$ac_builddir&;t t
  14866. s&@abs_builddir@&$ac_abs_builddir&;t t
  14867. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14868. s&@INSTALL@&$ac_INSTALL&;t t
  14869. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14870. $ac_datarootdir_hack
  14871. "
  14872. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14873. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14874. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14875. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14876. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14878. which seems to be undefined. Please make sure it is defined." >&5
  14879. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14880. which seems to be undefined. Please make sure it is defined." >&2;}
  14881. rm -f "$tmp/stdin"
  14882. case $ac_file in
  14883. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14884. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14885. esac \
  14886. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14887. ;;
  14888. :H)
  14889. #
  14890. # CONFIG_HEADER
  14891. #
  14892. if test x"$ac_file" != x-; then
  14893. {
  14894. $as_echo "/* $configure_input */" \
  14895. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14896. } >"$tmp/config.h" \
  14897. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14898. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14900. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14901. else
  14902. rm -f "$ac_file"
  14903. mv "$tmp/config.h" "$ac_file" \
  14904. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14905. fi
  14906. else
  14907. $as_echo "/* $configure_input */" \
  14908. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14909. || as_fn_error "could not create -" "$LINENO" 5
  14910. fi
  14911. # Compute "$ac_file"'s index in $config_headers.
  14912. _am_arg="$ac_file"
  14913. _am_stamp_count=1
  14914. for _am_header in $config_headers :; do
  14915. case $_am_header in
  14916. $_am_arg | $_am_arg:* )
  14917. break ;;
  14918. * )
  14919. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14920. esac
  14921. done
  14922. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14923. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14924. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14925. X"$_am_arg" : 'X\(//\)$' \| \
  14926. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14927. $as_echo X"$_am_arg" |
  14928. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14929. s//\1/
  14930. q
  14931. }
  14932. /^X\(\/\/\)[^/].*/{
  14933. s//\1/
  14934. q
  14935. }
  14936. /^X\(\/\/\)$/{
  14937. s//\1/
  14938. q
  14939. }
  14940. /^X\(\/\).*/{
  14941. s//\1/
  14942. q
  14943. }
  14944. s/.*/./; q'`/stamp-h$_am_stamp_count
  14945. ;;
  14946. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14947. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14948. ;;
  14949. esac
  14950. case $ac_file$ac_mode in
  14951. "default-1":C)
  14952. # Only add multilib support code if we just rebuilt the top-level
  14953. # Makefile.
  14954. case " $CONFIG_FILES " in
  14955. *" Makefile "*)
  14956. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14957. ;;
  14958. esac ;;
  14959. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14960. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14961. # are listed without --file. Let's play safe and only enable the eval
  14962. # if we detect the quoting.
  14963. case $CONFIG_FILES in
  14964. *\'*) eval set x "$CONFIG_FILES" ;;
  14965. *) set x $CONFIG_FILES ;;
  14966. esac
  14967. shift
  14968. for mf
  14969. do
  14970. # Strip MF so we end up with the name of the file.
  14971. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14972. # Check whether this is an Automake generated Makefile or not.
  14973. # We used to match only the files named `Makefile.in', but
  14974. # some people rename them; so instead we look at the file content.
  14975. # Grep'ing the first line is not enough: some people post-process
  14976. # each Makefile.in and add a new line on top of each file to say so.
  14977. # Grep'ing the whole file is not good either: AIX grep has a line
  14978. # limit of 2048, but all sed's we know have understand at least 4000.
  14979. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14980. dirpart=`$as_dirname -- "$mf" ||
  14981. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14982. X"$mf" : 'X\(//\)[^/]' \| \
  14983. X"$mf" : 'X\(//\)$' \| \
  14984. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14985. $as_echo X"$mf" |
  14986. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14987. s//\1/
  14988. q
  14989. }
  14990. /^X\(\/\/\)[^/].*/{
  14991. s//\1/
  14992. q
  14993. }
  14994. /^X\(\/\/\)$/{
  14995. s//\1/
  14996. q
  14997. }
  14998. /^X\(\/\).*/{
  14999. s//\1/
  15000. q
  15001. }
  15002. s/.*/./; q'`
  15003. else
  15004. continue
  15005. fi
  15006. # Extract the definition of DEPDIR, am__include, and am__quote
  15007. # from the Makefile without running `make'.
  15008. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15009. test -z "$DEPDIR" && continue
  15010. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15011. test -z "am__include" && continue
  15012. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15013. # When using ansi2knr, U may be empty or an underscore; expand it
  15014. U=`sed -n 's/^U = //p' < "$mf"`
  15015. # Find all dependency output files, they are included files with
  15016. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15017. # simplest approach to changing $(DEPDIR) to its actual value in the
  15018. # expansion.
  15019. for file in `sed -n "
  15020. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15021. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15022. # Make sure the directory exists.
  15023. test -f "$dirpart/$file" && continue
  15024. fdir=`$as_dirname -- "$file" ||
  15025. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15026. X"$file" : 'X\(//\)[^/]' \| \
  15027. X"$file" : 'X\(//\)$' \| \
  15028. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15029. $as_echo X"$file" |
  15030. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15031. s//\1/
  15032. q
  15033. }
  15034. /^X\(\/\/\)[^/].*/{
  15035. s//\1/
  15036. q
  15037. }
  15038. /^X\(\/\/\)$/{
  15039. s//\1/
  15040. q
  15041. }
  15042. /^X\(\/\).*/{
  15043. s//\1/
  15044. q
  15045. }
  15046. s/.*/./; q'`
  15047. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15048. # echo "creating $dirpart/$file"
  15049. echo '# dummy' > "$dirpart/$file"
  15050. done
  15051. done
  15052. }
  15053. ;;
  15054. "libtool":C)
  15055. # See if we are running on zsh, and set the options which allow our
  15056. # commands through without removal of \ escapes.
  15057. if test -n "${ZSH_VERSION+set}" ; then
  15058. setopt NO_GLOB_SUBST
  15059. fi
  15060. cfgfile="${ofile}T"
  15061. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15062. $RM "$cfgfile"
  15063. cat <<_LT_EOF >> "$cfgfile"
  15064. #! $SHELL
  15065. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15066. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15067. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15068. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15069. #
  15070. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15071. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15072. # Written by Gordon Matzigkeit, 1996
  15073. #
  15074. # This file is part of GNU Libtool.
  15075. #
  15076. # GNU Libtool is free software; you can redistribute it and/or
  15077. # modify it under the terms of the GNU General Public License as
  15078. # published by the Free Software Foundation; either version 2 of
  15079. # the License, or (at your option) any later version.
  15080. #
  15081. # As a special exception to the GNU General Public License,
  15082. # if you distribute this file as part of a program or library that
  15083. # is built using GNU Libtool, you may include this file under the
  15084. # same distribution terms that you use for the rest of that program.
  15085. #
  15086. # GNU Libtool is distributed in the hope that it will be useful,
  15087. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15088. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15089. # GNU General Public License for more details.
  15090. #
  15091. # You should have received a copy of the GNU General Public License
  15092. # along with GNU Libtool; see the file COPYING. If not, a copy
  15093. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15094. # obtained by writing to the Free Software Foundation, Inc.,
  15095. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15096. # The names of the tagged configurations supported by this script.
  15097. available_tags="GO "
  15098. # ### BEGIN LIBTOOL CONFIG
  15099. # A sed program that does not truncate output.
  15100. SED=$lt_SED
  15101. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15102. Xsed="\$SED -e 1s/^X//"
  15103. # A grep program that handles long lines.
  15104. GREP=$lt_GREP
  15105. # An ERE matcher.
  15106. EGREP=$lt_EGREP
  15107. # A literal string matcher.
  15108. FGREP=$lt_FGREP
  15109. # Shell to use when invoking shell scripts.
  15110. SHELL=$lt_SHELL
  15111. # An echo program that protects backslashes.
  15112. ECHO=$lt_ECHO
  15113. # Which release of libtool.m4 was used?
  15114. macro_version=$macro_version
  15115. macro_revision=$macro_revision
  15116. # Whether or not to build shared libraries.
  15117. build_libtool_libs=$enable_shared
  15118. # Whether or not to build static libraries.
  15119. build_old_libs=$enable_static
  15120. # What type of objects to build.
  15121. pic_mode=$pic_mode
  15122. # Whether or not to optimize for fast installation.
  15123. fast_install=$enable_fast_install
  15124. # The host system.
  15125. host_alias=$host_alias
  15126. host=$host
  15127. host_os=$host_os
  15128. # The build system.
  15129. build_alias=$build_alias
  15130. build=$build
  15131. build_os=$build_os
  15132. # A BSD- or MS-compatible name lister.
  15133. NM=$lt_NM
  15134. # Whether we need soft or hard links.
  15135. LN_S=$lt_LN_S
  15136. # What is the maximum length of a command?
  15137. max_cmd_len=$max_cmd_len
  15138. # Object file suffix (normally "o").
  15139. objext=$ac_objext
  15140. # Executable file suffix (normally "").
  15141. exeext=$exeext
  15142. # whether the shell understands "unset".
  15143. lt_unset=$lt_unset
  15144. # turn spaces into newlines.
  15145. SP2NL=$lt_lt_SP2NL
  15146. # turn newlines into spaces.
  15147. NL2SP=$lt_lt_NL2SP
  15148. # An object symbol dumper.
  15149. OBJDUMP=$lt_OBJDUMP
  15150. # Method to check whether dependent libraries are shared objects.
  15151. deplibs_check_method=$lt_deplibs_check_method
  15152. # Command to use when deplibs_check_method == "file_magic".
  15153. file_magic_cmd=$lt_file_magic_cmd
  15154. # The archiver.
  15155. AR=$lt_AR
  15156. AR_FLAGS=$lt_AR_FLAGS
  15157. # A symbol stripping program.
  15158. STRIP=$lt_STRIP
  15159. # Commands used to install an old-style archive.
  15160. RANLIB=$lt_RANLIB
  15161. old_postinstall_cmds=$lt_old_postinstall_cmds
  15162. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15163. # Whether to use a lock for old archive extraction.
  15164. lock_old_archive_extraction=$lock_old_archive_extraction
  15165. # A C compiler.
  15166. LTCC=$lt_CC
  15167. # LTCC compiler flags.
  15168. LTCFLAGS=$lt_CFLAGS
  15169. # Take the output of nm and produce a listing of raw symbols and C names.
  15170. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15171. # Transform the output of nm in a proper C declaration.
  15172. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15173. # Transform the output of nm in a C name address pair.
  15174. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15175. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15176. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15177. # The name of the directory that contains temporary libtool files.
  15178. objdir=$objdir
  15179. # Used to examine libraries when file_magic_cmd begins with "file".
  15180. MAGIC_CMD=$MAGIC_CMD
  15181. # Must we lock files when doing compilation?
  15182. need_locks=$lt_need_locks
  15183. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15184. DSYMUTIL=$lt_DSYMUTIL
  15185. # Tool to change global to local symbols on Mac OS X.
  15186. NMEDIT=$lt_NMEDIT
  15187. # Tool to manipulate fat objects and archives on Mac OS X.
  15188. LIPO=$lt_LIPO
  15189. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15190. OTOOL=$lt_OTOOL
  15191. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15192. OTOOL64=$lt_OTOOL64
  15193. # Old archive suffix (normally "a").
  15194. libext=$libext
  15195. # Shared library suffix (normally ".so").
  15196. shrext_cmds=$lt_shrext_cmds
  15197. # The commands to extract the exported symbol list from a shared archive.
  15198. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15199. # Variables whose values should be saved in libtool wrapper scripts and
  15200. # restored at link time.
  15201. variables_saved_for_relink=$lt_variables_saved_for_relink
  15202. # Do we need the "lib" prefix for modules?
  15203. need_lib_prefix=$need_lib_prefix
  15204. # Do we need a version for libraries?
  15205. need_version=$need_version
  15206. # Library versioning type.
  15207. version_type=$version_type
  15208. # Shared library runtime path variable.
  15209. runpath_var=$runpath_var
  15210. # Shared library path variable.
  15211. shlibpath_var=$shlibpath_var
  15212. # Is shlibpath searched before the hard-coded library search path?
  15213. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15214. # Format of library name prefix.
  15215. libname_spec=$lt_libname_spec
  15216. # List of archive names. First name is the real one, the rest are links.
  15217. # The last name is the one that the linker finds with -lNAME
  15218. library_names_spec=$lt_library_names_spec
  15219. # The coded name of the library, if different from the real name.
  15220. soname_spec=$lt_soname_spec
  15221. # Permission mode override for installation of shared libraries.
  15222. install_override_mode=$lt_install_override_mode
  15223. # Command to use after installation of a shared archive.
  15224. postinstall_cmds=$lt_postinstall_cmds
  15225. # Command to use after uninstallation of a shared archive.
  15226. postuninstall_cmds=$lt_postuninstall_cmds
  15227. # Commands used to finish a libtool library installation in a directory.
  15228. finish_cmds=$lt_finish_cmds
  15229. # As "finish_cmds", except a single script fragment to be evaled but
  15230. # not shown.
  15231. finish_eval=$lt_finish_eval
  15232. # Whether we should hardcode library paths into libraries.
  15233. hardcode_into_libs=$hardcode_into_libs
  15234. # Compile-time system search path for libraries.
  15235. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15236. # Run-time system search path for libraries.
  15237. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15238. # Whether dlopen is supported.
  15239. dlopen_support=$enable_dlopen
  15240. # Whether dlopen of programs is supported.
  15241. dlopen_self=$enable_dlopen_self
  15242. # Whether dlopen of statically linked programs is supported.
  15243. dlopen_self_static=$enable_dlopen_self_static
  15244. # Commands to strip libraries.
  15245. old_striplib=$lt_old_striplib
  15246. striplib=$lt_striplib
  15247. # The linker used to build libraries.
  15248. LD=$lt_LD
  15249. # How to create reloadable object files.
  15250. reload_flag=$lt_reload_flag
  15251. reload_cmds=$lt_reload_cmds
  15252. # Commands used to build an old-style archive.
  15253. old_archive_cmds=$lt_old_archive_cmds
  15254. # A language specific compiler.
  15255. CC=$lt_compiler
  15256. # Is the compiler the GNU compiler?
  15257. with_gcc=$GCC
  15258. # Compiler flag to turn off builtin functions.
  15259. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15260. # How to pass a linker flag through the compiler.
  15261. wl=$lt_lt_prog_compiler_wl
  15262. # Additional compiler flags for building library objects.
  15263. pic_flag=$lt_lt_prog_compiler_pic
  15264. # Compiler flag to prevent dynamic linking.
  15265. link_static_flag=$lt_lt_prog_compiler_static
  15266. # Does compiler simultaneously support -c and -o options?
  15267. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15268. # Whether or not to add -lc for building shared libraries.
  15269. build_libtool_need_lc=$archive_cmds_need_lc
  15270. # Whether or not to disallow shared libs when runtime libs are static.
  15271. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15272. # Compiler flag to allow reflexive dlopens.
  15273. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15274. # Compiler flag to generate shared objects directly from archives.
  15275. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15276. # Whether the compiler copes with passing no objects directly.
  15277. compiler_needs_object=$lt_compiler_needs_object
  15278. # Create an old-style archive from a shared archive.
  15279. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15280. # Create a temporary old-style archive to link instead of a shared archive.
  15281. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15282. # Commands used to build a shared archive.
  15283. archive_cmds=$lt_archive_cmds
  15284. archive_expsym_cmds=$lt_archive_expsym_cmds
  15285. # Commands used to build a loadable module if different from building
  15286. # a shared archive.
  15287. module_cmds=$lt_module_cmds
  15288. module_expsym_cmds=$lt_module_expsym_cmds
  15289. # Whether we are building with GNU ld or not.
  15290. with_gnu_ld=$lt_with_gnu_ld
  15291. # Flag that allows shared libraries with undefined symbols to be built.
  15292. allow_undefined_flag=$lt_allow_undefined_flag
  15293. # Flag that enforces no undefined symbols.
  15294. no_undefined_flag=$lt_no_undefined_flag
  15295. # Flag to hardcode \$libdir into a binary during linking.
  15296. # This must work even if \$libdir does not exist
  15297. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15298. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15299. # during linking. This must work even if \$libdir does not exist.
  15300. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15301. # Whether we need a single "-rpath" flag with a separated argument.
  15302. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15303. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15304. # DIR into the resulting binary.
  15305. hardcode_direct=$hardcode_direct
  15306. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15307. # DIR into the resulting binary and the resulting library dependency is
  15308. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15309. # library is relocated.
  15310. hardcode_direct_absolute=$hardcode_direct_absolute
  15311. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15312. # into the resulting binary.
  15313. hardcode_minus_L=$hardcode_minus_L
  15314. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15315. # into the resulting binary.
  15316. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15317. # Set to "yes" if building a shared library automatically hardcodes DIR
  15318. # into the library and all subsequent libraries and executables linked
  15319. # against it.
  15320. hardcode_automatic=$hardcode_automatic
  15321. # Set to yes if linker adds runtime paths of dependent libraries
  15322. # to runtime path list.
  15323. inherit_rpath=$inherit_rpath
  15324. # Whether libtool must link a program against all its dependency libraries.
  15325. link_all_deplibs=$link_all_deplibs
  15326. # Fix the shell variable \$srcfile for the compiler.
  15327. fix_srcfile_path=$lt_fix_srcfile_path
  15328. # Set to "yes" if exported symbols are required.
  15329. always_export_symbols=$always_export_symbols
  15330. # The commands to list exported symbols.
  15331. export_symbols_cmds=$lt_export_symbols_cmds
  15332. # Symbols that should not be listed in the preloaded symbols.
  15333. exclude_expsyms=$lt_exclude_expsyms
  15334. # Symbols that must always be exported.
  15335. include_expsyms=$lt_include_expsyms
  15336. # Commands necessary for linking programs (against libraries) with templates.
  15337. prelink_cmds=$lt_prelink_cmds
  15338. # Specify filename containing input files.
  15339. file_list_spec=$lt_file_list_spec
  15340. # How to hardcode a shared library path into an executable.
  15341. hardcode_action=$hardcode_action
  15342. # ### END LIBTOOL CONFIG
  15343. _LT_EOF
  15344. case $host_os in
  15345. aix3*)
  15346. cat <<\_LT_EOF >> "$cfgfile"
  15347. # AIX sometimes has problems with the GCC collect2 program. For some
  15348. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15349. # vanish in a puff of smoke.
  15350. if test "X${COLLECT_NAMES+set}" != Xset; then
  15351. COLLECT_NAMES=
  15352. export COLLECT_NAMES
  15353. fi
  15354. _LT_EOF
  15355. ;;
  15356. esac
  15357. ltmain="$ac_aux_dir/ltmain.sh"
  15358. # We use sed instead of cat because bash on DJGPP gets confused if
  15359. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15360. # text mode, it properly converts lines to CR/LF. This bash problem
  15361. # is reportedly fixed, but why not run on old versions too?
  15362. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15363. || (rm -f "$cfgfile"; exit 1)
  15364. case $xsi_shell in
  15365. yes)
  15366. cat << \_LT_EOF >> "$cfgfile"
  15367. # func_dirname file append nondir_replacement
  15368. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15369. # otherwise set result to NONDIR_REPLACEMENT.
  15370. func_dirname ()
  15371. {
  15372. case ${1} in
  15373. */*) func_dirname_result="${1%/*}${2}" ;;
  15374. * ) func_dirname_result="${3}" ;;
  15375. esac
  15376. }
  15377. # func_basename file
  15378. func_basename ()
  15379. {
  15380. func_basename_result="${1##*/}"
  15381. }
  15382. # func_dirname_and_basename file append nondir_replacement
  15383. # perform func_basename and func_dirname in a single function
  15384. # call:
  15385. # dirname: Compute the dirname of FILE. If nonempty,
  15386. # add APPEND to the result, otherwise set result
  15387. # to NONDIR_REPLACEMENT.
  15388. # value returned in "$func_dirname_result"
  15389. # basename: Compute filename of FILE.
  15390. # value retuned in "$func_basename_result"
  15391. # Implementation must be kept synchronized with func_dirname
  15392. # and func_basename. For efficiency, we do not delegate to
  15393. # those functions but instead duplicate the functionality here.
  15394. func_dirname_and_basename ()
  15395. {
  15396. case ${1} in
  15397. */*) func_dirname_result="${1%/*}${2}" ;;
  15398. * ) func_dirname_result="${3}" ;;
  15399. esac
  15400. func_basename_result="${1##*/}"
  15401. }
  15402. # func_stripname prefix suffix name
  15403. # strip PREFIX and SUFFIX off of NAME.
  15404. # PREFIX and SUFFIX must not contain globbing or regex special
  15405. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15406. # dot (in which case that matches only a dot).
  15407. func_stripname ()
  15408. {
  15409. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15410. # positional parameters, so assign one to ordinary parameter first.
  15411. func_stripname_result=${3}
  15412. func_stripname_result=${func_stripname_result#"${1}"}
  15413. func_stripname_result=${func_stripname_result%"${2}"}
  15414. }
  15415. # func_opt_split
  15416. func_opt_split ()
  15417. {
  15418. func_opt_split_opt=${1%%=*}
  15419. func_opt_split_arg=${1#*=}
  15420. }
  15421. # func_lo2o object
  15422. func_lo2o ()
  15423. {
  15424. case ${1} in
  15425. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15426. *) func_lo2o_result=${1} ;;
  15427. esac
  15428. }
  15429. # func_xform libobj-or-source
  15430. func_xform ()
  15431. {
  15432. func_xform_result=${1%.*}.lo
  15433. }
  15434. # func_arith arithmetic-term...
  15435. func_arith ()
  15436. {
  15437. func_arith_result=$(( $* ))
  15438. }
  15439. # func_len string
  15440. # STRING may not start with a hyphen.
  15441. func_len ()
  15442. {
  15443. func_len_result=${#1}
  15444. }
  15445. _LT_EOF
  15446. ;;
  15447. *) # Bourne compatible functions.
  15448. cat << \_LT_EOF >> "$cfgfile"
  15449. # func_dirname file append nondir_replacement
  15450. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15451. # otherwise set result to NONDIR_REPLACEMENT.
  15452. func_dirname ()
  15453. {
  15454. # Extract subdirectory from the argument.
  15455. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15456. if test "X$func_dirname_result" = "X${1}"; then
  15457. func_dirname_result="${3}"
  15458. else
  15459. func_dirname_result="$func_dirname_result${2}"
  15460. fi
  15461. }
  15462. # func_basename file
  15463. func_basename ()
  15464. {
  15465. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15466. }
  15467. # func_stripname prefix suffix name
  15468. # strip PREFIX and SUFFIX off of NAME.
  15469. # PREFIX and SUFFIX must not contain globbing or regex special
  15470. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15471. # dot (in which case that matches only a dot).
  15472. # func_strip_suffix prefix name
  15473. func_stripname ()
  15474. {
  15475. case ${2} in
  15476. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15477. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15478. esac
  15479. }
  15480. # sed scripts:
  15481. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15482. my_sed_long_arg='1s/^-[^=]*=//'
  15483. # func_opt_split
  15484. func_opt_split ()
  15485. {
  15486. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15487. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15488. }
  15489. # func_lo2o object
  15490. func_lo2o ()
  15491. {
  15492. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15493. }
  15494. # func_xform libobj-or-source
  15495. func_xform ()
  15496. {
  15497. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15498. }
  15499. # func_arith arithmetic-term...
  15500. func_arith ()
  15501. {
  15502. func_arith_result=`expr "$@"`
  15503. }
  15504. # func_len string
  15505. # STRING may not start with a hyphen.
  15506. func_len ()
  15507. {
  15508. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15509. }
  15510. _LT_EOF
  15511. esac
  15512. case $lt_shell_append in
  15513. yes)
  15514. cat << \_LT_EOF >> "$cfgfile"
  15515. # func_append var value
  15516. # Append VALUE to the end of shell variable VAR.
  15517. func_append ()
  15518. {
  15519. eval "$1+=\$2"
  15520. }
  15521. _LT_EOF
  15522. ;;
  15523. *)
  15524. cat << \_LT_EOF >> "$cfgfile"
  15525. # func_append var value
  15526. # Append VALUE to the end of shell variable VAR.
  15527. func_append ()
  15528. {
  15529. eval "$1=\$$1\$2"
  15530. }
  15531. _LT_EOF
  15532. ;;
  15533. esac
  15534. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15535. || (rm -f "$cfgfile"; exit 1)
  15536. mv -f "$cfgfile" "$ofile" ||
  15537. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15538. chmod +x "$ofile"
  15539. cat <<_LT_EOF >> "$ofile"
  15540. # ### BEGIN LIBTOOL TAG CONFIG: GO
  15541. # The linker used to build libraries.
  15542. LD=$lt_LD_GO
  15543. # How to create reloadable object files.
  15544. reload_flag=$lt_reload_flag_GO
  15545. reload_cmds=$lt_reload_cmds_GO
  15546. # Commands used to build an old-style archive.
  15547. old_archive_cmds=$lt_old_archive_cmds_GO
  15548. # A language specific compiler.
  15549. CC=$lt_compiler_GO
  15550. # Is the compiler the GNU compiler?
  15551. with_gcc=$GCC_GO
  15552. # Compiler flag to turn off builtin functions.
  15553. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
  15554. # How to pass a linker flag through the compiler.
  15555. wl=$lt_lt_prog_compiler_wl_GO
  15556. # Additional compiler flags for building library objects.
  15557. pic_flag=$lt_lt_prog_compiler_pic_GO
  15558. # Compiler flag to prevent dynamic linking.
  15559. link_static_flag=$lt_lt_prog_compiler_static_GO
  15560. # Does compiler simultaneously support -c and -o options?
  15561. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
  15562. # Whether or not to add -lc for building shared libraries.
  15563. build_libtool_need_lc=$archive_cmds_need_lc_GO
  15564. # Whether or not to disallow shared libs when runtime libs are static.
  15565. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
  15566. # Compiler flag to allow reflexive dlopens.
  15567. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
  15568. # Compiler flag to generate shared objects directly from archives.
  15569. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
  15570. # Whether the compiler copes with passing no objects directly.
  15571. compiler_needs_object=$lt_compiler_needs_object_GO
  15572. # Create an old-style archive from a shared archive.
  15573. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
  15574. # Create a temporary old-style archive to link instead of a shared archive.
  15575. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
  15576. # Commands used to build a shared archive.
  15577. archive_cmds=$lt_archive_cmds_GO
  15578. archive_expsym_cmds=$lt_archive_expsym_cmds_GO
  15579. # Commands used to build a loadable module if different from building
  15580. # a shared archive.
  15581. module_cmds=$lt_module_cmds_GO
  15582. module_expsym_cmds=$lt_module_expsym_cmds_GO
  15583. # Whether we are building with GNU ld or not.
  15584. with_gnu_ld=$lt_with_gnu_ld_GO
  15585. # Flag that allows shared libraries with undefined symbols to be built.
  15586. allow_undefined_flag=$lt_allow_undefined_flag_GO
  15587. # Flag that enforces no undefined symbols.
  15588. no_undefined_flag=$lt_no_undefined_flag_GO
  15589. # Flag to hardcode \$libdir into a binary during linking.
  15590. # This must work even if \$libdir does not exist
  15591. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
  15592. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15593. # during linking. This must work even if \$libdir does not exist.
  15594. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
  15595. # Whether we need a single "-rpath" flag with a separated argument.
  15596. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
  15597. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15598. # DIR into the resulting binary.
  15599. hardcode_direct=$hardcode_direct_GO
  15600. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15601. # DIR into the resulting binary and the resulting library dependency is
  15602. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15603. # library is relocated.
  15604. hardcode_direct_absolute=$hardcode_direct_absolute_GO
  15605. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15606. # into the resulting binary.
  15607. hardcode_minus_L=$hardcode_minus_L_GO
  15608. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15609. # into the resulting binary.
  15610. hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
  15611. # Set to "yes" if building a shared library automatically hardcodes DIR
  15612. # into the library and all subsequent libraries and executables linked
  15613. # against it.
  15614. hardcode_automatic=$hardcode_automatic_GO
  15615. # Set to yes if linker adds runtime paths of dependent libraries
  15616. # to runtime path list.
  15617. inherit_rpath=$inherit_rpath_GO
  15618. # Whether libtool must link a program against all its dependency libraries.
  15619. link_all_deplibs=$link_all_deplibs_GO
  15620. # Fix the shell variable \$srcfile for the compiler.
  15621. fix_srcfile_path=$lt_fix_srcfile_path_GO
  15622. # Set to "yes" if exported symbols are required.
  15623. always_export_symbols=$always_export_symbols_GO
  15624. # The commands to list exported symbols.
  15625. export_symbols_cmds=$lt_export_symbols_cmds_GO
  15626. # Symbols that should not be listed in the preloaded symbols.
  15627. exclude_expsyms=$lt_exclude_expsyms_GO
  15628. # Symbols that must always be exported.
  15629. include_expsyms=$lt_include_expsyms_GO
  15630. # Commands necessary for linking programs (against libraries) with templates.
  15631. prelink_cmds=$lt_prelink_cmds_GO
  15632. # Specify filename containing input files.
  15633. file_list_spec=$lt_file_list_spec_GO
  15634. # How to hardcode a shared library path into an executable.
  15635. hardcode_action=$hardcode_action_GO
  15636. # ### END LIBTOOL TAG CONFIG: GO
  15637. _LT_EOF
  15638. ;;
  15639. "default":C) if test -n "$CONFIG_FILES"; then
  15640. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  15641. # that multilib installs will end up installed in the correct place.
  15642. # The testsuite needs it for multilib-aware ABI baseline files.
  15643. # To work around this not being passed down from config-ml.in ->
  15644. # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
  15645. # append it here. Only modify Makefiles that have just been created.
  15646. #
  15647. # Also, get rid of this simulated-VPATH thing that automake does.
  15648. cat > vpsed << \_EOF
  15649. s!`test -f '$<' || echo '$(srcdir)/'`!!
  15650. _EOF
  15651. for i in $SUBDIRS; do
  15652. case $CONFIG_FILES in
  15653. *${i}/Makefile*)
  15654. #echo "Adding MULTISUBDIR to $i/Makefile"
  15655. sed -f vpsed $i/Makefile > tmp
  15656. grep '^MULTISUBDIR =' Makefile >> tmp
  15657. mv tmp $i/Makefile
  15658. ;;
  15659. esac
  15660. done
  15661. rm vpsed
  15662. fi
  15663. ;;
  15664. esac
  15665. done # for ac_tag
  15666. as_fn_exit 0
  15667. _ACEOF
  15668. ac_clean_files=$ac_clean_files_save
  15669. test $ac_write_fail = 0 ||
  15670. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15671. # configure is writing to config.log, and then calls config.status.
  15672. # config.status does its own redirection, appending to config.log.
  15673. # Unfortunately, on DOS this fails, as config.log is still kept open
  15674. # by configure, so config.status won't be able to write to it; its
  15675. # output is simply discarded. So we exec the FD to /dev/null,
  15676. # effectively closing config.log, so it can be properly (re)opened and
  15677. # appended to by config.status. When coming back to configure, we
  15678. # need to make the FD available again.
  15679. if test "$no_create" != yes; then
  15680. ac_cs_success=:
  15681. ac_config_status_args=
  15682. test "$silent" = yes &&
  15683. ac_config_status_args="$ac_config_status_args --quiet"
  15684. exec 5>/dev/null
  15685. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15686. exec 5>>config.log
  15687. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15688. # would make configure fail if this is the last instruction.
  15689. $ac_cs_success || as_fn_exit $?
  15690. fi
  15691. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15693. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15694. fi